query_id
stringlengths
32
32
query
stringlengths
7
129k
positive_passages
listlengths
1
1
negative_passages
listlengths
88
101
733df2cb5c24db84b52f95b77bc59af3
The list of documents. repeated .google.cloud.documentai.v1.GcsDocument documents = 1;
[ { "docid": "0a380530a3f31f8783b01df13add8aaf", "score": "0.7630255", "text": "com.google.cloud.documentai.v1.GcsDocumentOrBuilder getDocumentsOrBuilder(\n int index);", "title": "" } ]
[ { "docid": "40a4c4f0907efd36391508917e052dac", "score": "0.86860204", "text": "java.util.List<com.google.cloud.documentai.v1.GcsDocument> \n getDocumentsList();", "title": "" }, { "docid": "a57a6544d6d9043eb27b646e00d01bd5", "score": "0.8297995", "text": "java.util.List<? extends com.google.cloud.documentai.v1.GcsDocumentOrBuilder> \n getDocumentsOrBuilderList();", "title": "" }, { "docid": "79ccc9abd46700d4fe55fab83b079d28", "score": "0.79967254", "text": "com.google.cloud.documentai.v1.GcsDocument getDocuments(int index);", "title": "" }, { "docid": "080234b707ed3091caa3683ac109085b", "score": "0.74619424", "text": "java.util.List<Googleplay.DocV1> \n getDocumentList();", "title": "" }, { "docid": "33a6d72bdcf64b162b6b2d1a8c3f0802", "score": "0.70528334", "text": "java.util.List<Googleplay.DocV2> \n getDocList();", "title": "" }, { "docid": "33a6d72bdcf64b162b6b2d1a8c3f0802", "score": "0.70528334", "text": "java.util.List<Googleplay.DocV2> \n getDocList();", "title": "" }, { "docid": "329964b50d498c84b4b4cf751580856c", "score": "0.6997633", "text": "public List<DocumentModel> getDocuments()\r\n\t{\r\n\t\treturn documents;\r\n\t}", "title": "" }, { "docid": "a94397c6ddfdad69f8c6325d7fbc2fd4", "score": "0.6876088", "text": "public List<Document> getDocuments() {\n return mDocuments;\n }", "title": "" }, { "docid": "53b29b336a6a16602536f0ecf8c4c0e6", "score": "0.6731437", "text": "public Document[] listDocuments() {\n return core.values().toArray(new Document[core.size()]);\n }", "title": "" }, { "docid": "af04725c7f54cf2bb7a2f3d6ae6b935c", "score": "0.66786283", "text": "public List<Document> getDocuments() {\n System.out.println(\"Document source : \" + getDocumentsSource());\n return getList(getDocumentsSource(), Document.PACKAGE_ALIAS, Document.CLASS_ALIAS, Document.class);\n }", "title": "" }, { "docid": "92cde3ca7c83c4fc2795dc80f4cc2c95", "score": "0.6634896", "text": "IDocument[] GetDocuments();", "title": "" }, { "docid": "a7e7db8b7b7db0061812372835c6e180", "score": "0.66204697", "text": "public java.util.List<org.waveprotocol.box.common.comms.WaveClientRpc.DocumentSnapshot> getDocumentList() {\n return java.util.Collections.unmodifiableList(result.document_);\n }", "title": "" }, { "docid": "944247b2592a950e3be1d8db5925ddbb", "score": "0.6532982", "text": "public List<Docs> readDocumentList() {\n List<Docs> docsList = new ArrayList<>();\n String[] projection =\n {\n IDatabase.IContentTable.DOCUMENT_TITLE,\n IDatabase.IContentTable.TYPE,\n IDatabase.IContentTable.URL\n };\n\n Cursor cursor = sDatabase.query(\n IDatabase.IContentTable.TABLE_NAME,\n projection,\n null,\n null,\n null,\n null,\n null);\n\n while (cursor.moveToNext()) {\n String documentTitle = cursor.getString(cursor.getColumnIndex(IDatabase.IContentTable.DOCUMENT_TITLE));\n String type = cursor.getString(cursor.getColumnIndex(IDatabase.IContentTable.TYPE));\n String url = cursor.getString(cursor.getColumnIndex(IDatabase.IContentTable.URL));\n // Add new Docs object to list\n docsList.add(new Docs(documentTitle, type, url));\n }\n // Close the cursor after it's usage\n cursor.close();\n return docsList;\n }", "title": "" }, { "docid": "6d27d47561f8582e9dfce9f83093f92d", "score": "0.6420466", "text": "public List<XDSDocument> getDocumentList() {\n\t\treturn getDocumentList(0);\n\t}", "title": "" }, { "docid": "da5ba134daf44dfdb42e9863a9675988", "score": "0.63935494", "text": "public String getDocs() {\n\t\treturn docs;\n\t}", "title": "" }, { "docid": "27c6e9f8a89e62875a1cac699838bdb3", "score": "0.639008", "text": "public List<Document> getDocuments()\n {\n ClientResource resource = new ClientResource(getDocumentsSourceURI());\n try {\n XStream xStream = new XStream(new DomDriver());\n xStream.alias(this.getDocumentsPackageAlias(), List.class);\n xStream.alias(this.getDocumentAlias(), Document.class);\n xStream.aliasField(this.getDocumentIdAlias(), Document.class, \"id\");\n xStream.aliasField(this.getDocumentTitleAlias(), Document.class, \"title\");\n xStream.aliasField(this.getDocumentDateAlias(), Document.class, \"date\");\n xStream.aliasField(this.getDocumentSourceAlias(), Document.class, \"source\");\n xStream.aliasField(this.getDocumentUriAlias(), Document.class, \"uri\");\n xStream.aliasField(this.getDocumentSittingAlias(), Document.class, \"sitting\");\n String xml = resource.get().getText();\n if (xml != null) {\n resource.release();\n return (List) xStream.fromXML(xml);\n }\n } catch (Exception ex) {\n logger.error(getDocumentsSourceURI(), ex);\n }\n return null;\n }", "title": "" }, { "docid": "22d4283a13e42d3f5ca6ab1d4169564e", "score": "0.63828266", "text": "public java.util.List<com.github.yeriomin.playstoreapi.DocV2> getDocList() {\n if (docBuilder_ == null) {\n return java.util.Collections.unmodifiableList(doc_);\n } else {\n return docBuilder_.getMessageList();\n }\n }", "title": "" }, { "docid": "63a62430ad74ad183a7be0f62a8daaa5", "score": "0.63767326", "text": "public java.util.List<com.github.yeriomin.playstoreapi.DocV2> getDocList() {\n return doc_;\n }", "title": "" }, { "docid": "12aacfd7e815a8cec8a7e6cfbce0db29", "score": "0.63346475", "text": "public java.util.List<? extends com.github.yeriomin.playstoreapi.DocV2OrBuilder> \n getDocOrBuilderList() {\n return doc_;\n }", "title": "" }, { "docid": "6f9987cd28a41d17cfeb4787f2668c12", "score": "0.63336", "text": "public List<SolrInputDocument> getDocuments() {\n return documents;\n }", "title": "" }, { "docid": "5165c27c8d4216394fbbc2efdec2cdaf", "score": "0.62509894", "text": "@GetMapping(produces = MediaType.APPLICATION_JSON_VALUE)\n public ResponseEntity<Iterable<Document>> getDocuments() {\n Iterable<Document> documents = documentService.getAllDocuments();\n return ResponseEntity.ok(documents);\n }", "title": "" }, { "docid": "18833c7103519f08aef5863426f3c858", "score": "0.62253183", "text": "public java.util.List<? extends com.github.yeriomin.playstoreapi.DocV2OrBuilder> \n getDocOrBuilderList() {\n if (docBuilder_ != null) {\n return docBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(doc_);\n }\n }", "title": "" }, { "docid": "54a301d102adf6efd975a0f0a8c43d24", "score": "0.6140351", "text": "public ImsDocumentList getDocumentList(ProgressMonitor pm) throws IOException {\n\t\treturn this.getDocumentList(null, pm);\n\t}", "title": "" }, { "docid": "7cc14aee9713efc49f85ae171c5d6abd", "score": "0.6138995", "text": "@Override\r\n\tpublic List<Document> getAllDocumentByCote() {\r\n\t\treturn serviceListe.getAllDocumentByCote();\r\n\t}", "title": "" }, { "docid": "c7dc01011185bb61981acf51ec8e8783", "score": "0.5999239", "text": "public List getDocRefs() {\n \n return Collections.unmodifiableList(this.docrefs);\n \n }", "title": "" }, { "docid": "97b4fba8d4e0b876fc9c40c3764d12b4", "score": "0.59847766", "text": "com.google.protobuf.ByteString getDocument();", "title": "" }, { "docid": "4e7bd438947d9e01091958b513c05711", "score": "0.59692776", "text": "public int getDocCount() {\n return doc_.size();\n }", "title": "" }, { "docid": "e91d311e1e631bd216da098c94a641ce", "score": "0.5931912", "text": "@POST\n @Path(\"documentList\")\n public Object documentList(@Context\n HttpServletRequest request) throws Exception {\n FormData formData = new FormData(request);\n \n String lang = formData.getString(\"lang\");\n setLanguage(lang);\n \n // get the arguments\n String ref = formData.getString(\"docRef\");\n String queryText = formData.getString(\"queryText\");\n int pageSize = getIntFromString(formData.getString(\"limit\"));\n int page = getIntFromString(formData.getString(\"page\"));\n return buildDocumentList(ref, pageSize, page, queryText);\n }", "title": "" }, { "docid": "c165d84ece94f242c805ff98f6fd4ec2", "score": "0.5878424", "text": "com.google.protobuf.ByteString\n getDocumentBytes();", "title": "" }, { "docid": "6698867a32344bddf151ad7d6eaa9d7e", "score": "0.58683336", "text": "public List getStdDocuments() {\n\t\tif (this.docList == null) {\n\t\t\tthis.docList = new ArrayList();\n\t\t\tfor (Iterator i = this.docMap.values().iterator(); i.hasNext();) {\n\t\t\t\tthis.docList.add((StdDocument) i.next());\n\t\t\t}\n\t\t}\n\t\treturn this.docList;\n\t}", "title": "" }, { "docid": "51a8073ab304262f90b9034be7b8d004", "score": "0.58592784", "text": "public int getNumberOfDocuments();", "title": "" }, { "docid": "fd70588b426a7d6599ebb49d3d2c7735", "score": "0.5846489", "text": "public List<DocumentContentAndMetadata> getDocumentAndMetadataList() {\n\t\treturn getDocumentAndMetadataList(0);\n\t}", "title": "" }, { "docid": "d1bcd796bc5478751837bc66758fa8e8", "score": "0.58081084", "text": "private void documentsList() throws Exception {\n try {\n if (session != null) {\n Request request = new Request();\n request.setToken(session.getSessionToken());\n Result result = serverInterface.listOwnedDocs(new User(session.getUser().getUsername()), request);\n System.out.println(result.getMessage());\n } else System.err.println(\"You're not logged in\");\n } catch (Exception e) {\n System.err.println(e.getMessage());\n throw new RuntimeException(e);\n }\n }", "title": "" }, { "docid": "87caa6c37e62ef98aa4c253b9a18c4bc", "score": "0.5806803", "text": "@Override\n\tpublic Integer size() {\n\t\treturn this.doclist.size();\n\t}", "title": "" }, { "docid": "0308bb3559608daf6c6ad192917d5cb2", "score": "0.58067036", "text": "public Document getDocument() { return docs.get(currentDoc); }", "title": "" }, { "docid": "eff131cdbd9aee337396db9a182bdccc", "score": "0.5784099", "text": "public int getNumOfDocuments() {\n\t\t\treturn theModel.getUserDocuments().length;\n\t\t}", "title": "" }, { "docid": "4150ef3a5c656b5134882da9d54f9b17", "score": "0.57723844", "text": "public long getNumDocuments() {\n return numInputDocuments;\n }", "title": "" }, { "docid": "a1b54ad37b0933c2bafcfcc6ed92ebaa", "score": "0.57235056", "text": "java.util.List<ModelDocument> getOwndocuments();", "title": "" }, { "docid": "baefb847a7cae408b4dae81ee30be5b3", "score": "0.5720806", "text": "java.util.List<com.google.cloud.documentai.v1beta1.Document.Page> getPagesList();", "title": "" }, { "docid": "9c1abe0d15d479023f1d891c1b7387f6", "score": "0.5720022", "text": "public static java.util.List getAllDocument(Model model) throws JastorException {\n\t\tStmtIterator it = model.listStatements(null,RDF.type,Document.TYPE);\n\t\tjava.util.List list = new java.util.ArrayList();\n\t\twhile (it.hasNext()) {\n\t\t\tStatement stmt = it.nextStatement();\n\t\t\tlist.add(getDocument(stmt.getSubject(),model));\n\t\t}\n\t\treturn list;\n\t}", "title": "" }, { "docid": "1029b0db4588717950e0a21ceac19fb9", "score": "0.5697671", "text": "@Override\n\tpublic List<String> displayDocument() {\n\t\treturn words;\n\t}", "title": "" }, { "docid": "36df09e854bff6690d7e8049515e99c3", "score": "0.56818765", "text": "public String getDocs() throws Exception {\n\t\tdocList = docAddService.getDocsByUserId(0);\n\t\t//System.out.println(docList.get(0));\n\t\tint result = 1;\n\t\t\n\t\tif(result>0){\n \t\treturn \"success\";\n \t}\n\t\telse\n\t\t\treturn \"failure\";\n\t}", "title": "" }, { "docid": "2bf0bc601c50cdeed4bda28281e70159", "score": "0.5669537", "text": "java.util.List<Googleplay.Document> \n getChildList();", "title": "" }, { "docid": "2bf0bc601c50cdeed4bda28281e70159", "score": "0.5669537", "text": "java.util.List<Googleplay.Document> \n getChildList();", "title": "" }, { "docid": "fc0082172f49e2210cad9eb90584f8af", "score": "0.566874", "text": "public void setDocs(String docs) {\n\t\tthis.docs = docs;\n\t}", "title": "" }, { "docid": "1cb5b35eb6d8339bee1e1e3a6778f711", "score": "0.5658034", "text": "public static XMLDocument[] getXMLDocuments() { //{{{\n XMLDocument[] documents = new XMLDocument[XMLDocuments.size()];\n for (int i = 0; i < XMLDocuments.size(); i++) {\n documents[i] = (XMLDocument) XMLDocuments.get(i);\n }\n return documents;\n }", "title": "" }, { "docid": "125691c3bafbd053eabbf0c5a4334941", "score": "0.5653639", "text": "public void setDocuments(List<DocumentModel> documents)\r\n\t{\r\n\t\tApplication.documents = documents;\r\n\t}", "title": "" }, { "docid": "b6eb4de377c091e4db63d776257b0fb0", "score": "0.5648582", "text": "private List<String> getDataFromApi() throws IOException {\n // Get all documents on drive\n List<String> fileInfo = new ArrayList<String>();\n FileList result = mService.files().list()\n .setQ(\"mimeType = 'application/vnd.google-apps.document'\")\n .setFields(\"files(id)\")\n .execute();\n List<File> files = result.getFiles();\n if (files != null) {\n for (File file : files) {\n fileInfo.add(String.format(\"%s\",\n file.getId()));\n }\n }\n return fileInfo;\n }", "title": "" }, { "docid": "90d01f7c4bd4f8478c688ff3b423b8c4", "score": "0.5640655", "text": "java.util.List<String> getDocidList();", "title": "" }, { "docid": "be4e0dc8ae1c0838c915c315cb1bf4a8", "score": "0.563173", "text": "public int getNumberOfDocuments() {\n return mLines.size();\n }", "title": "" }, { "docid": "ec9ee70d3d55d12fa8f0c0da1ca6bb61", "score": "0.5602108", "text": "public com.github.yeriomin.playstoreapi.DocV2OrBuilder getDocOrBuilder(\n int index) {\n return doc_.get(index);\n }", "title": "" }, { "docid": "ac31e4b281b5b7ddc2e5dea5f703dddd", "score": "0.55998445", "text": "java.util.List<Googleplay.DocV2> \n getChildList();", "title": "" }, { "docid": "bc0cde1888c66e54fb8650e61c2a50dc", "score": "0.55970055", "text": "java.util.List<Googleplay.Document> \n getDecorationList();", "title": "" }, { "docid": "bc0cde1888c66e54fb8650e61c2a50dc", "score": "0.55970055", "text": "java.util.List<Googleplay.Document> \n getDecorationList();", "title": "" }, { "docid": "60229be1363cac85e7facc37b69a5e47", "score": "0.5595775", "text": "@Override\n public List<ExtractedFileData> getAllDocuments() {\n return documentRepository.findAll();\n }", "title": "" }, { "docid": "c75d63f47dca8af474013198f046d49d", "score": "0.5595215", "text": "int getDocumentsCount();", "title": "" }, { "docid": "a41a808e02b90f77da965d3065c980bd", "score": "0.5595051", "text": "public Document getDocument();", "title": "" }, { "docid": "207d363d13edb0919829c61571545c9a", "score": "0.558539", "text": "public List<DocumentInfo> getResults() {\r\n\t\treturn results;\r\n\t}", "title": "" }, { "docid": "e74692a4e29134dbe224026389070824", "score": "0.5580189", "text": "private void initialiseDocArray()\n {\n docs[0] = new Doc(1234500001, \"A New Hope\", \"pdf\");\n docs[1] = new Doc(1234500002, \"Empire Strikes Back\", \"msg\");\n docs[2] = new Doc(1234500003, \"Return of the Jedi\", \"txt\");\n docs[3] = new Doc(1234500004, \"The Hobbit\", \"pdf\");\n docs[4] = new Doc(1234500005, \"Fellowship of the Ring\", \"txt\");\n docs[5] = new Doc(1234500006, \"Two Towers\", \"msg\");\n docs[6] = new Doc(1234500007, \"Return of the King\", \"pdf\");\n docs[7] = new Doc(1234500008, \"Macbeth\", \"txt\");\n }", "title": "" }, { "docid": "0744ec348535d430b80d649d0e6a3c2e", "score": "0.55674297", "text": "public List getBusinessDocumentList()\n {\n return Collections.unmodifiableList(_objBusinessDocument);\n }", "title": "" }, { "docid": "9788703dce25b60ddbfc188f9bd6c5c1", "score": "0.5562758", "text": "public void findAllDocuments(){\n\t\tlogger.debug(\"Find all documents...\");\n\t\tDBCursor cursor = this.coll.find();\n\t\tif (null != cursor){\n\t\t\tint i = 1;\n\t\t\twhile (cursor.hasNext()) {\n\t\t\t\tlogger.debug(\"Document \" + i + \":\");\n\t\t\t\tlogger.debug(cursor.next());\n\t\t\t\ti++;\n\t\t\t}\t\t\t\t\n\t\t} else {\n\t\t\tlogger.debug(\"No documents found!\");\n\t\t}\n\t\n\t}", "title": "" }, { "docid": "7a36606eb9c3ad163124cc72cadbeb9a", "score": "0.55619925", "text": "java.util.List<com.google.cloud.documentai.v1beta1.Document.Entity> getEntitiesList();", "title": "" }, { "docid": "ef1454dbbb8ca79c8130f70b0662843f", "score": "0.5561794", "text": "public Integer getNumberOfDocs() {\n return numberOfDocs;\n }", "title": "" }, { "docid": "9726284b8b07c50d9ba6cf8e33529f92", "score": "0.5550856", "text": "public Document getDocument() {\n return doc;\n }", "title": "" }, { "docid": "d0664cd50e4eb619afb04cad63a407a0", "score": "0.55458087", "text": "public List<EditableDocument> getOwnedDocuments(){\n\t\treturn this.ownedDocs;\n\t}", "title": "" }, { "docid": "d1848ef6e7d8070d45fbaf35c9717aef", "score": "0.5534909", "text": "public String getDocument() {\n return document;\n }", "title": "" }, { "docid": "ad3706446794ae72451d59b2aad8abea", "score": "0.55224633", "text": "public int getDocCount() {\n\t\treturn docCount;\n\t}", "title": "" }, { "docid": "12d4783d109a44371b95dbfbf81fc337", "score": "0.5519669", "text": "java.util.List<Googleplay.DocumentVariant> \n getDocumentVariantList();", "title": "" }, { "docid": "8db980800ac4e51761900b59b7870510", "score": "0.5519071", "text": "public List<EditableDocument> getEditableDocuments(){\n\t\treturn this.editableDocs;\n\t}", "title": "" }, { "docid": "5abb8366592319a86ead47a80a52c295", "score": "0.54807216", "text": "public Document document();", "title": "" }, { "docid": "e549720e338340b04d8240f1ccceb2b0", "score": "0.5478414", "text": "public List<CurGrupDetDoc> doListarDocenteCursoGrupDet() {\n return lstDocCurGrupDet = gestorCepCecCurGrupDetalleService.listarDocenteCurGrupDet();\n }", "title": "" }, { "docid": "ab8c20edaf2c5033fdb692ff1845f6f2", "score": "0.54664385", "text": "@Nonnull\n Document getDocument();", "title": "" }, { "docid": "c8002d55bba7d9dd8d986290e21bbdbe", "score": "0.54661536", "text": "@SuppressWarnings({ \"unchecked\", \"deprecation\" })\n\tpublic static List<TestDoc> findAllDocs() {\n\n\t\ttry {\n\t\t\tSession session = sessionFactory.openSession();\n\t\t\tList<TestDoc> doctorList = session.createCriteria(TestDoc.class).list();\n\t\t\tsession.close();\n\n\t\t\treturn doctorList;\n\t\t} catch (Exception ex) {\n\t\t\tlog.log(Level.SEVERE, ex.getMessage());\n\t\t\treturn null;\n\t\t}\n\t}", "title": "" }, { "docid": "81fac21e17f1d7a17786cfa31e0a4a14", "score": "0.5463035", "text": "@Override\r\n protected List<Book> getDocumentsFromSource(boolean refresh) {\r\n\t\tLog.d(TAG, \"get document list from source\");\r\n\t\treturn SwordDocumentFacade.getInstance().getDocuments();\r\n\t}", "title": "" }, { "docid": "88cef617bfb5b4e588c1413b974400fd", "score": "0.54586613", "text": "public Documentation[] getDocumentation()\n {\n return (Documentation[])_objDocumentation.toArray(new Documentation[0]);\n }", "title": "" }, { "docid": "530160801dc94eb020a607bd5d7914ee", "score": "0.54575044", "text": "private List<Document<ByteString, ByteString>> createListOfImmutableDocuments(List<DocumentResponse> documents) {\n ArrayList<Document<ByteString, ByteString>> list = new ArrayList<>();\n documents.forEach(document ->\n list.add((document.equals(DocumentResponse.getDefaultInstance())) ? null\n : createImmutableDocumentFromKeyValueTag(document.getKey(), document.getValue(), document.getTag())\n ));\n return Collections.unmodifiableList(list);\n }", "title": "" }, { "docid": "37060d0ba1ec9c12361acdeb251fe2b8", "score": "0.54525065", "text": "public List getDocInfos() {\n\t\tList docList = new ArrayList();\n\t\tfor (Iterator i = this.docMap.values().iterator(); i.hasNext(); ) {\n\t\t\tAsnDocInfo doc = (AsnDocInfo) i.next();\n\t\t\tdocList.add(doc);\n\t\t}\n\t\treturn docList;\n\t}", "title": "" }, { "docid": "66600224cee867d4fa6da32f2f2e7bea", "score": "0.5444778", "text": "public CorpusDocument getDocument() {\n \tCorpusDocument doc = new CorpusDocument();\n \tdoc.did = this.lastDocID++;\n \treturn doc;\n }", "title": "" }, { "docid": "6b38dbaeb30dc84665c6f7ecedb58c6b", "score": "0.5441296", "text": "List<DocUnit> retrieveMultiDocs(DocRetrieveParam param);", "title": "" }, { "docid": "a268c5a3219639c7e07bec1d8dc4d786", "score": "0.544086", "text": "java.lang.String getDocument();", "title": "" }, { "docid": "ccf1fc561fe871498ee4251bd7f0331f", "score": "0.5440449", "text": "public List getDocumentationList()\n {\n return Collections.unmodifiableList(_objDocumentation);\n }", "title": "" }, { "docid": "67ee5cf0bf1e4c49038a0231b6b67121", "score": "0.54298717", "text": "public IDocument getDocument() {\n \t\treturn document;\n \t}", "title": "" }, { "docid": "222947de9d588ae75bd1e4a7262b62ee", "score": "0.5428356", "text": "public ArrayNode list() throws Exception {\n\t\tArrayNode documents = orchestratorStorage.getList(OrchestratorStorage.DOCUMENT_TYPE.SYSTEM.toString());\n\t\treturn documents;\n\t}", "title": "" }, { "docid": "ff58c93dd9b9e3795398736c362fed67", "score": "0.5418797", "text": "public java.lang.String getDocument () {\n\t\treturn _document;\n\t}", "title": "" }, { "docid": "198f16bfb6df5a2151fd48af8eef8e8c", "score": "0.5410024", "text": "public java.util.List<SamplingStatisticsDocument> getSamplingStatisticsDocuments() {\n return samplingStatisticsDocuments;\n }", "title": "" }, { "docid": "2f4ac7297293faaf856821705255164a", "score": "0.5394602", "text": "public Document getDocument() {\n return document;\n }", "title": "" }, { "docid": "7665385eaf734e727a593fda0bf7ff64", "score": "0.53855515", "text": "java.util.List<? extends com.google.cloud.documentai.v1beta1.Document.PageOrBuilder>\n getPagesOrBuilderList();", "title": "" }, { "docid": "267615b67773db070112425226567cf4", "score": "0.5381773", "text": "public int getDocumentationCount()\n {\n return _objDocumentation.size();\n }", "title": "" }, { "docid": "628f7feadd6d8a2e8dc9aa0c9126384e", "score": "0.5366078", "text": "public List<AbstractDocTag> getList() {\n return list;\n }", "title": "" }, { "docid": "f6ef811af6ea2a0568edc5d642a284d5", "score": "0.5363053", "text": "public int getDocCount() {\n if (docBuilder_ == null) {\n return doc_.size();\n } else {\n return docBuilder_.getCount();\n }\n }", "title": "" }, { "docid": "d3fc4f492f940ff24f340729f35975da", "score": "0.5344865", "text": "Document getDocument();", "title": "" }, { "docid": "4093c509dc9cb4109c61659a756cdd51", "score": "0.5323794", "text": "public PersonBuilder addDocuments(Iterable<? extends Document> documents) {\n for (Document document : documents) {\n addDocument(document);\n }\n return this;\n }", "title": "" }, { "docid": "8cc032b4b40b4d4d79311613c6a57ffe", "score": "0.53158057", "text": "@Override\r\n\tpublic boolean isMultiDoc() {\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "99779da122d08bc508ba870d590e15ee", "score": "0.53050536", "text": "public DocDocument getDoc () {\n\t\treturn doc;\n\t}", "title": "" }, { "docid": "2c9c7ccb94a8ed6eb9c7d19051c5bfa9", "score": "0.5302751", "text": "public DocumentsRecord() {\n\t\tsuper(me.hubertus248.mdsearch.tables.Documents.DOCUMENTS);\n\t}", "title": "" }, { "docid": "29881bac7532a84ca43888f6a1b9291c", "score": "0.5299202", "text": "public List<Doc> getDocList(Doc doc) { \n List<Doc> list = docDao.selectSelective(doc); \n return list;\n }", "title": "" }, { "docid": "1227abf2ea9176b2208d363850d86c0e", "score": "0.52853715", "text": "public java.util.List<com.github.yeriomin.playstoreapi.DocV2.Builder> \n getDocBuilderList() {\n return getDocFieldBuilder().getBuilderList();\n }", "title": "" }, { "docid": "d89a2b7e6354470bab7e24c23f8c6ec0", "score": "0.52802753", "text": "public boolean isMultiDoc() {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "4762344dbdc7a238e39713c23c53faf2", "score": "0.52790195", "text": "public DefaultMultipleDocumentModel() {\n\t\tdocuments = new LinkedList<>();\n\t\tlisteners = new LinkedList<>();\n\t\tdocumentUpdate = new DocumentUpdate();\n\t\t\n\t\taddChangeListener(o -> {\n\t\t\t\n\t\t\tint tabIndex = getSelectedIndex();\n\t\t\tSingleDocumentModel previous = current;\n\t\t\t\n\t\t\tif(tabIndex >= 0) {\n\t\t\t\tcurrent = documents.get(tabIndex);\n\t\t\t} else {\n\t\t\t\tcurrent = null;\n\t\t\t}\n\t\t\t\n\t\t\tnotifyCurrentDocumentChanged(previous, current);\n\t\t\t\n\t\t});\n\t}", "title": "" }, { "docid": "17ad78825a0e767d9fe6dc09b708f3de", "score": "0.52761036", "text": "@ApiModelProperty(value = \"The array of name/value custom data strings to be added to a document. Custom document field information is returned in the status, but otherwise is not used by DocuSign. The array contains the elements: \\n\\n* name \\u2013 A string that can be a maximum of 50 characters. \\n* value \\u2013 A string that can be a maximum of 200 characters.\\n\\n*IMPORTANT*: If you are using xml, the name/value pair is contained in a nameValue element. \\n\")\n public java.util.List<NameValue> getDocumentFields() {\n return documentFields;\n }", "title": "" } ]
7aabac09e15e329f21d1d462c778abd8
Gets the (english) name of the language which corresponds to the given ISO639 language code.
[ { "docid": "46a807ed0aec0ee3b328b61b35e87417", "score": "0.7608425", "text": "public static String getName( String isoCode ) {\n\t\treturn englishNames.get( isoCode );\n\t}", "title": "" } ]
[ { "docid": "06bf22b93e0e3324e8e77fd8fd8b0d23", "score": "0.7305642", "text": "public static String getOcrLanguageName(Context context, String languageCode) {\n\t\tResources res = context.getResources();\n\t\tString[] language6393 = res.getStringArray(R.array.iso6393);\n\t\tString[] languageNames = res.getStringArray(R.array.languagenames);\n\t\tint len;\n\n\t\t// Finds the given language code in the iso6393 array, and takes the\n\t\t// name with the same index\n\t\t// from the languagenames array.\n\t\tfor (len = 0; len < language6393.length; len++) {\n\t\t\tif (language6393[len].equals(languageCode)) {\n\t\t\t\tLog.d(TAG, \"getOcrLanguageName: \" + languageCode + \"->\"\n\t\t\t\t\t\t+ languageNames[len]);\n\t\t\t\treturn languageNames[len];\n\t\t\t}\n\t\t}\n\n\t\tLog.d(TAG, \"languageCode: Could not find language name for ISO 693-3: \"\n\t\t\t\t+ languageCode);\n\t\treturn languageCode;\n\t}", "title": "" }, { "docid": "cce76a6f3d5ba32b10ddc371e4acbe8e", "score": "0.71358764", "text": "java.lang.String getLanguageCode();", "title": "" }, { "docid": "ae3fb1ae964549a91b8ba8f2a4b18af4", "score": "0.7112692", "text": "public String getLanguageName();", "title": "" }, { "docid": "f3d0077c0d8fbf12282e7eef6cbda439", "score": "0.67774296", "text": "java.lang.String getLanguage();", "title": "" }, { "docid": "f3d0077c0d8fbf12282e7eef6cbda439", "score": "0.67774296", "text": "java.lang.String getLanguage();", "title": "" }, { "docid": "f3d0077c0d8fbf12282e7eef6cbda439", "score": "0.67774296", "text": "java.lang.String getLanguage();", "title": "" }, { "docid": "6ebb640245b93490d902da2ab3cf79ce", "score": "0.66730595", "text": "public String getName()\n\t{\n\t\treturn languageName;\n\t}", "title": "" }, { "docid": "c4035f1dc821bd65f39169e795b96e95", "score": "0.6665629", "text": "public static String getCountryName(String code)\n {\n CountryInfo ci = CountryCode.getCountryInfo(code);\n return (ci != null)? ci.getName() : \"\";\n }", "title": "" }, { "docid": "924ad0e815c3d37c4b7f7970ca5f7904", "score": "0.66534424", "text": "public String getLanguage() \r\n\t{\r\n\t\treturn getName();\r\n\t}", "title": "" }, { "docid": "61db217040cdf489136e10cac21475da", "score": "0.66290236", "text": "private String getLanguage(String langCode){\n return SharedPrefs.getStringBiMap(\"languages\").get(langCode);\n }", "title": "" }, { "docid": "2d098a18c768080ebef5bb438e366a1e", "score": "0.6613476", "text": "public String getLangCode() {\n\t\treturn \"en\";\n\t}", "title": "" }, { "docid": "b771572504af8c8cac6dc8abfb92d1f3", "score": "0.6600421", "text": "public String getLanguage() {\r\n\t\treturn (String)map.get(LANGUAGE);\r\n\t}", "title": "" }, { "docid": "5434176fc1cc9e0fcc7918c8eda54dce", "score": "0.6559691", "text": "String getLanguage();", "title": "" }, { "docid": "5434176fc1cc9e0fcc7918c8eda54dce", "score": "0.6559691", "text": "String getLanguage();", "title": "" }, { "docid": "f08bcf67cb73fec78b330f4e231b57c8", "score": "0.65169233", "text": "public java.lang.String getLanguageCode() {\n return languageCode_;\n }", "title": "" }, { "docid": "970cfc8a5a994b3ee4b64dbd674b9cac", "score": "0.644239", "text": "LanguageCountry getLanguage();", "title": "" }, { "docid": "cc050a6f19554d9d12ad3b4898047180", "score": "0.6417385", "text": "public String languageCode() {\n return this.languageCode;\n }", "title": "" }, { "docid": "4c80695b707ac853e4259777c3a9bca2", "score": "0.6377066", "text": "public String getLanguageName() {\n\t\treturn languageName;\n\t}", "title": "" }, { "docid": "c2773ce75e7e4291166a243f21da5d9b", "score": "0.6373969", "text": "public String getLanguageCode()\n\t{\n\t\treturn languageCode;\n\t}", "title": "" }, { "docid": "5c7eb705a55548e4e9db2a20d766eaf7", "score": "0.63714916", "text": "public java.lang.String getLanguageCode() {\n return languageCode;\n }", "title": "" }, { "docid": "e4e84f77a1246ccfde683d8c336eafc4", "score": "0.63708484", "text": "public static String mapLanguageCode(String languageCode) {\n\t\tif (languageCode.equals(\"bensol\")) { // Bengali\n\t\t\treturn \"bn\";\n\t\t} else if (languageCode.equals(\"benador\")) { // English\n\t\t\treturn \"bn\";\n\t\t}else if (languageCode.equals(\"bennik\")) { // English\n\t\t\treturn \"bn\";\n\t\t}else if (languageCode.equals(\"benkal\")) { // English\n\t\t\treturn \"bn\";\n\t\t} else {\n\t\t\treturn \"\";\n\t\t}\n\t}", "title": "" }, { "docid": "76259482d94950bc4b43e7a9b4e0d491", "score": "0.63673735", "text": "public static String getLanguageCode(WSLanguage lang) {\n WSLanguageImp sdkLanguage = (WSLanguageImp)lang;\n if(sdkLanguage.getLanguage().getSubLanguageCode() == null) {\n return sdkLanguage.getLanguage().getPrimaryLanguageCode();\n } else {\n return sdkLanguage.getLanguage().getPrimaryLanguageCode() + \"-\" +\n sdkLanguage.getLanguage().getSubLanguageCode();\n }\n }", "title": "" }, { "docid": "03896ed9db3a137b0c96e708e2241d5e", "score": "0.6360819", "text": "public String getLanguage() {\n return getProperty(\"language\", LANGUAGE).toLowerCase();\n }", "title": "" }, { "docid": "c096d029ba3a26d3db7a8bce2a9125e5", "score": "0.63577396", "text": "public static String getNativeName( String isoCode ) {\n\t\treturn nativeNames.get( isoCode );\n\t}", "title": "" }, { "docid": "2b44042b637fc1613733e6d2b9180cbb", "score": "0.63526547", "text": "public String getLanguageCode() {\n return languageCode;\n }", "title": "" }, { "docid": "9b232e06388735f260d3f9d538e7ec91", "score": "0.6348145", "text": "public Locale getLocale(String languageCode) {\n for (Locale locale : getLocales()) {\n if (locale.getName().contains(languageCode)) {\n return locale;\n }\n }\n\n if (isDebugModeActivated()) {\n Logger.getGlobal().warning(\"Locale \" + languageCode + \" was not found! Active locales: \" + getLocales().toString());\n }\n return getDefaultLocale();\n }", "title": "" }, { "docid": "ffebe33642c8a13f128fd736edc92422", "score": "0.6326907", "text": "@Column(name = \"languageCode\", length = 5, nullable = false)\r\n\t@Override\r\n\tpublic String getName()\r\n\t{\r\n\t\treturn super.getName();\r\n\t}", "title": "" }, { "docid": "0f9cfe97235513395ccefc414ea400f1", "score": "0.6298052", "text": "String getLang();", "title": "" }, { "docid": "96865ce6cd86d12359388c8bc1955feb", "score": "0.62854046", "text": "protected String getLanguageCode(Locale locale) {\n\t\tString language = locale.getLanguage();\n\t\tif (language.length() == 2) {\n\t\t\treturn language;\n\t\t}\n\n\t\tLanguage lang = Language.getLanguage(locale);\n\t\tif (lang != null) {\n\t\t\treturn lang.getISO2();\n\t\t}\n\n\t\tthrow new IllegalArgumentException(\"Illegal language code: \" + language);\n\t}", "title": "" }, { "docid": "ed9019a2143301418380cf01e154c7d0", "score": "0.6273257", "text": "@Override\r\n\tpublic String getLanguage() {\r\n\t\treturn (String)map.get(LANGUAGE);\r\n\t}", "title": "" }, { "docid": "28687cebfbac4c3ada971e9f0c5c4239", "score": "0.6267202", "text": "public String getLangName() {\n return langName;\n }", "title": "" }, { "docid": "dc25852851783b6db5deadb37c06fd58", "score": "0.62665176", "text": "public String getCountryName() {\n if (countryCode == null) {\n return null;\n }\n for (final Locale loc : Locale.getAvailableLocales()) {\n if (countryCode.equalsIgnoreCase(loc.getCountry())) {\n return loc.getDisplayCountry();\n }\n }\n return null;\n }", "title": "" }, { "docid": "205e4e5751bd2c4a2bb8c2adb4acb847", "score": "0.6247532", "text": "java.lang.String getLang();", "title": "" }, { "docid": "205e4e5751bd2c4a2bb8c2adb4acb847", "score": "0.6247532", "text": "java.lang.String getLang();", "title": "" }, { "docid": "3871839c5fcc9833c9801a734aa1040b", "score": "0.62260896", "text": "public String getLocaleName(Locale locale);", "title": "" }, { "docid": "7c0f4bcd2bc43befda5d9be62f3a620b", "score": "0.6213226", "text": "public String getLanguageCode() {\n return this.languageCode;\n }", "title": "" }, { "docid": "d371b32bb503a21a7ba508b26339ddf9", "score": "0.62131715", "text": "public String getNameByLocale(){\n \t\tIWContext iwc = IWContext.getInstance();\n \t\treturn getNameByLocale(iwc.getLocale());\n \t}", "title": "" }, { "docid": "c172ac2a499a5488cd215c8d84abdc31", "score": "0.6165135", "text": "public String getName(String locale);", "title": "" }, { "docid": "4bf8033828a2b8d46141149c9e0d36ff", "score": "0.61425686", "text": "public String getNameFromCode(Integer code) {\r\n\t\tif(code.intValue() == EOF) {\r\n\t\t\treturn \"EOF\";\r\n\t\t}else if(operators.containsKey(code)) {\r\n\t\t\treturn operators.get(code);\r\n\t\t}else if(code.intValue() == PREPROCESSOR) {\r\n\t\t\treturn \"PREPROCESSOR\";\r\n\t\t}else if(code.intValue() == IDENTIFIER){\r\n\t\t\treturn \"IDENTIFIER\";\r\n\t\t}else if(code.intValue() == NUMBER) {\r\n\t\t\treturn \"NUMBER\";\r\n\t\t}else if(code.intValue() == STRING) {\r\n\t\t\treturn \"STRING\";\r\n\t\t}else if(code.intValue() == CHARACTER) {\r\n\t\t\treturn \"CHARACTER\";\r\n\t\t}else if(code.intValue() == COMMENT) {\r\n\t\t\treturn \"COMMENT\";\r\n\t\t}else if(keywords.contains(code)) {\r\n\t\t\treturn \"KEYWORD\";\r\n\t\t}else {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "36d6b1b56870b751a70099cfd0143ea6", "score": "0.6083128", "text": "public java.lang.String getLocaleLanguageCode() {\n java.lang.Object ref = localeLanguageCode_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n localeLanguageCode_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "cdb2c076ec26549c6bc75a798d93df61", "score": "0.6066373", "text": "LanguageType getLanguage();", "title": "" }, { "docid": "25a089c3c0ca150fb1de29361ce94961", "score": "0.60391885", "text": "public java.lang.String getLanguageCode() {\n return instance.getLanguageCode();\n }", "title": "" }, { "docid": "7a4539f2327db65b5efe732760b7f4f4", "score": "0.602165", "text": "public com.walgreens.rxit.ch.cda.CS getLanguageCode()\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.walgreens.rxit.ch.cda.CS target = null;\n target = (com.walgreens.rxit.ch.cda.CS)get_store().find_element_user(LANGUAGECODE$18, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }", "title": "" }, { "docid": "62f3d9d491bcca4e5ab2e7c84a51b902", "score": "0.60109", "text": "public LanguageCode getLanguageCode() {\n return localLanguageCode;\n }", "title": "" }, { "docid": "4e10bb8d702a13f0af09af624f8ead6c", "score": "0.6004705", "text": "public String getLocalizedCountryName() {\n return this.localizedCountryName;\n }", "title": "" }, { "docid": "686e14e6eceeb63926da04dd09c57bc6", "score": "0.5996477", "text": "private String getLangCode() {\n SharedPreferences preferences = getSharedPreferences(MainActivity.FILE_NAME, MODE_PRIVATE);\n return preferences.getString(MainActivity.KEY_LANG, \"en\");\n }", "title": "" }, { "docid": "c02049b5c8105a4132b4c800ec55051f", "score": "0.59820634", "text": "String getEnglish();", "title": "" }, { "docid": "d2ec328455644d9fd07b0e294d83a92b", "score": "0.59606045", "text": "java.lang.String getIso3166CountryCode();", "title": "" }, { "docid": "08eff019e72f035d1484c7d576640151", "score": "0.5947841", "text": "public String getName() {\r\n\t\treturn getEnglishName();\r\n\t}", "title": "" }, { "docid": "996ec441f457c35b9a3e17d07f40cf06", "score": "0.59474653", "text": "@java.lang.Override\n public java.lang.String getLocaleLanguageCode() {\n java.lang.Object ref = localeLanguageCode_;\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 localeLanguageCode_ = s;\n return s;\n }\n }", "title": "" }, { "docid": "12c8ffd6ea61372f911fc625dae64ddc", "score": "0.5940716", "text": "public String getName(Locale locale);", "title": "" }, { "docid": "caa872a68e81693307898022235139f2", "score": "0.59374446", "text": "public String getEnglishName() {\r\n return englishName;\r\n }", "title": "" }, { "docid": "852f1b6f9a201a8e28125b297608d6db", "score": "0.5919289", "text": "public org.apache.axis2.databinding.types.Language getLanguageCode() {\n return localLanguageCode;\n }", "title": "" }, { "docid": "b1e7e578c6bec90ce96b8047d733258d", "score": "0.5918522", "text": "LanguageCodePropertyType getLanguageCode();", "title": "" }, { "docid": "6a519484274804237af4648e8ab304f1", "score": "0.5916396", "text": "java.lang.String getLocalizedCategoryName();", "title": "" }, { "docid": "45b97c6f12cc72fb692171ea0b66385c", "score": "0.5885118", "text": "public java.lang.String getLanguage()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(LANGUAGE$12);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "title": "" }, { "docid": "ab7f26f0b82e3fae8e57f6606fcc91d4", "score": "0.58687884", "text": "java.lang.String getCountryCode();", "title": "" }, { "docid": "6c4087b3438536b537c7f19e27e00848", "score": "0.5831784", "text": "public String getLanguage() {\r\n return locale.getLanguage();\r\n }", "title": "" }, { "docid": "aae8f960fcd7e09d67a57cb7ee2cd472", "score": "0.5815304", "text": "public java.lang.String getLanguage() {\n return language;\n }", "title": "" }, { "docid": "fc6d63bdd9adcb9d1abf0003574567bb", "score": "0.5810646", "text": "public String getFor(Language lang);", "title": "" }, { "docid": "c7ceb64e7e5d74ee582294afb6fbbd15", "score": "0.58059597", "text": "public com.google.protobuf.ByteString\n getLanguageCodeBytes() {\n return com.google.protobuf.ByteString.copyFromUtf8(languageCode_);\n }", "title": "" }, { "docid": "e7b1040629b069372e98dac0edfeb033", "score": "0.57992727", "text": "public native final String getLanguage();", "title": "" }, { "docid": "7e2070cc6f67a9f930cea35539044d70", "score": "0.5781786", "text": "String getCodeName() {\n return code.name();\n }", "title": "" }, { "docid": "b02591d837efd113d275fa1dbfdc9365", "score": "0.5772137", "text": "public String getLanguage(int wordID){\n\t\treturn language.get(wordID);\n\t}", "title": "" }, { "docid": "0d6a11538555d5975d416e1491bc433c", "score": "0.57670367", "text": "public synchronized String getLanguage() {\n String ret_val;\n try {\n ret_val=getParameter(\"language\");\n } catch (NoSuchValueException e) {\n ret_val=_UNSET;\n }\n return ret_val;\n }", "title": "" }, { "docid": "6b24963911864f83dd912c38b4994636", "score": "0.57538897", "text": "public String getLanguageAtIndex(int index) {\n if(index >= 0 && index < languages.size()) {\n return languages.get(index);\n }\n return null;\n }", "title": "" }, { "docid": "35bdd03824c77e7788dc7f59c23ee5af", "score": "0.5749647", "text": "public String getLanguage(){\n Resources res = MiniActivity.this.getResources();\n Configuration conf = res.getConfiguration();\n String language = conf.locale.getLanguage();\n String group_lang=\"中文\";\n if(language.equals(\"en\"))\n group_lang=\"英文\";\n if(language.equals(\"ja\"))\n group_lang=\"日文\";\n return group_lang;\n }", "title": "" }, { "docid": "ccf079859236a18bf4489c84ca561ca2", "score": "0.5742476", "text": "public String getName(int code) {\n\t}", "title": "" }, { "docid": "3199c8b8a7e39aaeb76f56db1e276ad3", "score": "0.5729853", "text": "public java.lang.String getLanguage() {\n return language;\n }", "title": "" }, { "docid": "3199c8b8a7e39aaeb76f56db1e276ad3", "score": "0.5729853", "text": "public java.lang.String getLanguage() {\n return language;\n }", "title": "" }, { "docid": "3199c8b8a7e39aaeb76f56db1e276ad3", "score": "0.5729853", "text": "public java.lang.String getLanguage() {\n return language;\n }", "title": "" }, { "docid": "3199c8b8a7e39aaeb76f56db1e276ad3", "score": "0.5729853", "text": "public java.lang.String getLanguage() {\n return language;\n }", "title": "" }, { "docid": "3199c8b8a7e39aaeb76f56db1e276ad3", "score": "0.5729853", "text": "public java.lang.String getLanguage() {\n return language;\n }", "title": "" }, { "docid": "3199c8b8a7e39aaeb76f56db1e276ad3", "score": "0.5729853", "text": "public java.lang.String getLanguage() {\n return language;\n }", "title": "" }, { "docid": "3199c8b8a7e39aaeb76f56db1e276ad3", "score": "0.5729853", "text": "public java.lang.String getLanguage() {\n return language;\n }", "title": "" }, { "docid": "3199c8b8a7e39aaeb76f56db1e276ad3", "score": "0.5729853", "text": "public java.lang.String getLanguage() {\n return language;\n }", "title": "" }, { "docid": "3199c8b8a7e39aaeb76f56db1e276ad3", "score": "0.5729853", "text": "public java.lang.String getLanguage() {\n return language;\n }", "title": "" }, { "docid": "3199c8b8a7e39aaeb76f56db1e276ad3", "score": "0.5729853", "text": "public java.lang.String getLanguage() {\n return language;\n }", "title": "" }, { "docid": "3199c8b8a7e39aaeb76f56db1e276ad3", "score": "0.5729853", "text": "public java.lang.String getLanguage() {\n return language;\n }", "title": "" }, { "docid": "3199c8b8a7e39aaeb76f56db1e276ad3", "score": "0.5729853", "text": "public java.lang.String getLanguage() {\n return language;\n }", "title": "" }, { "docid": "3199c8b8a7e39aaeb76f56db1e276ad3", "score": "0.5729853", "text": "public java.lang.String getLanguage() {\n return language;\n }", "title": "" }, { "docid": "3199c8b8a7e39aaeb76f56db1e276ad3", "score": "0.5729853", "text": "public java.lang.String getLanguage() {\n return language;\n }", "title": "" }, { "docid": "3199c8b8a7e39aaeb76f56db1e276ad3", "score": "0.5729853", "text": "public java.lang.String getLanguage() {\n return language;\n }", "title": "" }, { "docid": "3199c8b8a7e39aaeb76f56db1e276ad3", "score": "0.5729853", "text": "public java.lang.String getLanguage() {\n return language;\n }", "title": "" }, { "docid": "3199c8b8a7e39aaeb76f56db1e276ad3", "score": "0.5729853", "text": "public java.lang.String getLanguage() {\n return language;\n }", "title": "" }, { "docid": "3199c8b8a7e39aaeb76f56db1e276ad3", "score": "0.5729853", "text": "public java.lang.String getLanguage() {\n return language;\n }", "title": "" }, { "docid": "3199c8b8a7e39aaeb76f56db1e276ad3", "score": "0.5729853", "text": "public java.lang.String getLanguage() {\n return language;\n }", "title": "" }, { "docid": "3199c8b8a7e39aaeb76f56db1e276ad3", "score": "0.5729853", "text": "public java.lang.String getLanguage() {\n return language;\n }", "title": "" }, { "docid": "3199c8b8a7e39aaeb76f56db1e276ad3", "score": "0.5729853", "text": "public java.lang.String getLanguage() {\n return language;\n }", "title": "" }, { "docid": "3199c8b8a7e39aaeb76f56db1e276ad3", "score": "0.5729853", "text": "public java.lang.String getLanguage() {\n return language;\n }", "title": "" }, { "docid": "3199c8b8a7e39aaeb76f56db1e276ad3", "score": "0.5729853", "text": "public java.lang.String getLanguage() {\n return language;\n }", "title": "" }, { "docid": "3199c8b8a7e39aaeb76f56db1e276ad3", "score": "0.5729853", "text": "public java.lang.String getLanguage() {\n return language;\n }", "title": "" }, { "docid": "3199c8b8a7e39aaeb76f56db1e276ad3", "score": "0.5729853", "text": "public java.lang.String getLanguage() {\n return language;\n }", "title": "" }, { "docid": "3199c8b8a7e39aaeb76f56db1e276ad3", "score": "0.5729853", "text": "public java.lang.String getLanguage() {\n return language;\n }", "title": "" }, { "docid": "3199c8b8a7e39aaeb76f56db1e276ad3", "score": "0.5729853", "text": "public java.lang.String getLanguage() {\n return language;\n }", "title": "" }, { "docid": "3199c8b8a7e39aaeb76f56db1e276ad3", "score": "0.5729853", "text": "public java.lang.String getLanguage() {\n return language;\n }", "title": "" }, { "docid": "3199c8b8a7e39aaeb76f56db1e276ad3", "score": "0.5729853", "text": "public java.lang.String getLanguage() {\n return language;\n }", "title": "" }, { "docid": "3199c8b8a7e39aaeb76f56db1e276ad3", "score": "0.5729853", "text": "public java.lang.String getLanguage() {\n return language;\n }", "title": "" }, { "docid": "3199c8b8a7e39aaeb76f56db1e276ad3", "score": "0.5729853", "text": "public java.lang.String getLanguage() {\n return language;\n }", "title": "" }, { "docid": "3199c8b8a7e39aaeb76f56db1e276ad3", "score": "0.5729853", "text": "public java.lang.String getLanguage() {\n return language;\n }", "title": "" } ]
f05f25578a764991d6dd2726630f7506
It is very important to override ALL methods of POLYGON class, that this decorated class also can be(behave) as a Polygon
[ { "docid": "86c57671808282d3e3b54e885b6c35f4", "score": "0.63389665", "text": "public void onlyPolygonSpecificMethod() {\n\t\tthis.paintedPolygon.onlyPolygonSpecificMethod();\n\t}", "title": "" } ]
[ { "docid": "2b889856ff4f729592918b8a49b73e74", "score": "0.73335665", "text": "public PolygonApprox getShape() { return (PolygonApprox)super.getShape(); }", "title": "" }, { "docid": "52b317da2fa9b99159ca57f775e5f935", "score": "0.7082943", "text": "public MyPolygon() {\n\n }", "title": "" }, { "docid": "12af26d87342d23c181b39b27c6a7c36", "score": "0.6715325", "text": "public Polygon() { }", "title": "" }, { "docid": "3c6fdf94032c9c42896e1b7e8cccf42e", "score": "0.66669947", "text": "public GoogleMapPolygon() {\r\n id = idCounter;\r\n idCounter++;\r\n }", "title": "" }, { "docid": "0aaef79faaf56ebbb848f06a2dfc13ad", "score": "0.66515285", "text": "public Polygonizer() {\n this(false);\n }", "title": "" }, { "docid": "0549f34c444793ee59c95a0835e00224", "score": "0.6570532", "text": "public VariousTexturesToPolygon() {\n \t }", "title": "" }, { "docid": "0fcc2214a4e9b9e35b26a8bf6eaa08d3", "score": "0.64398485", "text": "public DrawablePolygon() {\n super();\n color = Color.GRAY;\n }", "title": "" }, { "docid": "40c5a112f870174025c322c5a4657c36", "score": "0.6304716", "text": "public Polygon() {\n this(new Color(200, 200, 200, 220), new Color(100, 100, 100, 120));\n }", "title": "" }, { "docid": "e52866beca26fcf1018c53a54a7643a9", "score": "0.629293", "text": "public interface PolygonModifier {\r\n /**\r\n * Modifies a set of polygons give a threshold\r\n *\r\n * @param dataset,\r\n * set of polygons\r\n * @param threshold,\r\n * the threshold\r\n * \r\n * @return set of polygons, modified\r\n * \r\n * @author ngonga\r\n */\r\n Set<Polygon> modifySet(Set<Polygon> dataset, double threshold);\r\n\r\n /**\r\n * Modifies a polygon given a threshold.\r\n *\r\n * @param polygon,\r\n * the polygon\r\n * @param threshold,\r\n * the threshold\r\n * \r\n * @return a polygon, modified\r\n * \r\n * @author ngonga\r\n */\r\n Polygon modify(Polygon p, double threshold);\r\n\r\n /**\r\n * Return name of modifier class\r\n *\r\n * \r\n * @return name of modifier, as string\r\n * \r\n * \r\n */\r\n String getName();\r\n}", "title": "" }, { "docid": "96c55694608af4e8ffc7b045a35079e5", "score": "0.6254537", "text": "@Override\n\tpublic Integer onPolygon(final Polygon p) {\n\t\treturn -1;\n\t}", "title": "" }, { "docid": "ae83eba90f5e8a5f5754c9fca1267089", "score": "0.6245623", "text": "public EmbededPolygonBuilder<MultiPolygonBuilder> polygon() {\n EmbededPolygonBuilder<MultiPolygonBuilder> builder = new EmbededPolygonBuilder<MultiPolygonBuilder>(this);\n polygons.add(builder);\n return builder;\n }", "title": "" }, { "docid": "018db1fab7bd5b82d71d0731df41b8fa", "score": "0.6235204", "text": "PolygonBuilder() {\n\t\t// g = theG;\n\t}", "title": "" }, { "docid": "947128f684bfacb8e096f63c47c13efe", "score": "0.6190003", "text": "public Polygon(String anId)\r\n {\r\n this(anId, \"\");\r\n }", "title": "" }, { "docid": "347f05b9c7a1107b4ccb070d5c626a8b", "score": "0.616939", "text": "@Override\n public Shape deepCopy(double... points) {\n MyPolygon newPolygon = new MyPolygon(dashLine, rotate, this.getStrokeWidth(), this.getStroke(), this.getFill(), points);\n return newPolygon;\n }", "title": "" }, { "docid": "01416e696a8385ada046dc1c89ddfb2a", "score": "0.6144467", "text": "@Override\n public javafx.scene.shape.Shape reply() {\n Paint fill = this.fillColor.equals(\"\") ? null : Color.valueOf(this.fillColor);\n MyPolygon newShape = new MyPolygon(dashLine, rotate, this.lineWidth, Color.valueOf(this.lineColor), fill, this.pos);\n newShape.createDate = this.createDate;\n return newShape;\n }", "title": "" }, { "docid": "28fe827926044756ca1c0f2ddb886e2c", "score": "0.6129707", "text": "public GoogleMapPolygon(List<LatLon> coordinates) {\r\n this();\r\n this.coordinates = coordinates;\r\n }", "title": "" }, { "docid": "ea874d8fd1bade7c54f46b887c1ec043", "score": "0.6114689", "text": "@Override\n public IFeature cloneGeom() throws CloneNotSupportedException {\n return null;\n }", "title": "" }, { "docid": "171caf6e8ea101ab9b54f61e69be86f4", "score": "0.61007065", "text": "public interface Geometry extends Dimensional\n{\n /**\n * @return true if this geometry can be bounded by a bounding box with\n * finite value, or false otherwise (like for straight lines, rays,\n * parabola...)\n */\n public boolean isBounded();\n \n /**\n * @return the bounds of this geometry\n */\n public Bounds bounds();\n \n /**\n * @return a deep-copy of this geometry.\n */\n public Geometry duplicate();\n}", "title": "" }, { "docid": "bcc0dce55de779697f34e3692fba5168", "score": "0.60380954", "text": "public Polygon(String anId, String aName)\r\n {\r\n m_id = anId;\r\n m_name = aName;\r\n m_polygon = new Vector<GeoPos>();\r\n }", "title": "" }, { "docid": "7ca87018d39cbd58883be762aef5ea21", "score": "0.60048693", "text": "public GoogleMapPolygon(List<LatLon> coordinates, String fillColor,\r\n double fillOpacity, String strokeColor, double strokeOpacity,\r\n int strokeWeight) {\r\n this(coordinates);\r\n this.fillColor = fillColor;\r\n this.fillOpacity = fillOpacity;\r\n this.strokeColor = strokeColor;\r\n this.strokeOpacity = strokeOpacity;\r\n this.strokeWeight = strokeWeight;\r\n }", "title": "" }, { "docid": "5523fc3de725b7472b8dbfd2d84afa64", "score": "0.6000699", "text": "public GeneralPath getPolygon(){\n\t\t\treturn this.polygon;\n\t\t}", "title": "" }, { "docid": "4696dbf57b7fd686b1cdae96fd3513ab", "score": "0.5986759", "text": "public interface GJBoundary2D extends GJOrientedCurve2D {\n\n /**\n * Returns true if the point is 'inside' the domain bounded by the curve.\n * \n * @param pt a point in the plane\n * @return true if the point is on the left side of the curve.\n */\n public boolean isInside(GJPoint2D pt);\n\n /**\n * Overloads the declaration of continuousCurves to return a collection\n * of contours (instances of GJContour2D).\n */\n public Collection<? extends GJContour2D> continuousCurves();\n\n /**\n * Returns the domain delimited by this boundary.\n * \n * @return the domain delimited by this boundary\n */\n public GJDomain2D domain();\n\n /**\n * Forces the subclasses to return an instance of GJBoundary2D.\n */\n public GJBoundary2D reverse();\n\n /**\n * Forces the subclasses to return an instance of GJBoundary2D.\n */\n public GJBoundary2D transform(GJAffineTransform2D trans);\n\n /**\n * Fills the interior of the boundary, using the Graphics current Paint.\n * \n * @param g2 the Graphics to fill on\n */\n public void fill(Graphics2D g2);\n}", "title": "" }, { "docid": "f547d15db4296a00a03e11bf5ebf65e3", "score": "0.59789675", "text": "public BaseShape() {\n coords = new ArrayList<>();\n }", "title": "" }, { "docid": "48612c654e3fe3005b3f618cddc28f34", "score": "0.5961376", "text": "public Geometry(GeometryType geometryType) {\n this.geometryType = geometryType;\n this.geometryPoints = new ArrayList();\n this.wktPoints = new StringBuilder();\n this.wktPoints.append(\"Polygon((\");\n }", "title": "" }, { "docid": "d8188e3ebd7d130b141e6cc1a7c42759", "score": "0.59598213", "text": "public DrawableObject addPolygon(int[] xCoords, int[] yCoords, boolean fill) {\n\t\treturn addObject(new Polygon(xCoords, yCoords, currColor, fill));\n\t}", "title": "" }, { "docid": "de82be6e53054c1ab9651aa60e9897db", "score": "0.59276557", "text": "public void resizePolygon() {\n FontMetrics fm = canvas.getFontMetrics(ARIEL_BOLD_ITALIC_16);\n \n int maxStrWidth = fm.stringWidth(clazz.getName());\n for (CmProperty attrib: clazz.getOwnedAttributes()) { \n String attribStr = getAttribStr(attrib.getName());\n int strWidth = fm.stringWidth(attribStr);\n if (strWidth > maxStrWidth) {\n maxStrWidth = strWidth;\n }\n }\n for (CmOperation method: clazz.getOwnedOperations()) {\n String methodStr = getMethodStr(method.getName());\n int strWidth = fm.stringWidth(methodStr);\n if (strWidth > maxStrWidth) {\n maxStrWidth = strWidth;\n }\n } \n \n // max(name width, max_chars(attribs), max_chars(methods)) + 2\n double newWidth = maxStrWidth / gridSpacing + 2;\n \n // title height + (# attribs + # methods) * 2\n double newHeight = TITLE_HEIGHT + (clazz.getOwnedAttributes().size() + clazz.getOwnedOperations().size()) * 2;\n \n //calculate new height/width for polygon\n //Title: 6\n //Attributes: max(6, letter width * max_num_chars(attribs))\n //Methods: max(6, letter width * max_num_chars(methods))\n Dimension dim = recalculateSize(width()/gridSpacing, height()/gridSpacing, newWidth, newHeight, gridSpacing);\n \n if (dim != null) {\n //resize the polygon\n int posX = getPolygon().xpoints[0];\n int posY = getPolygon().ypoints[0];\n super.initialize(recreatePolygon(dim.width, dim.height));\n translate(posX, posY);\n\n //reposition on the endpoints\n for (EndPoint ep: endPoints) {\n ep.resetPosition(); \n } \n }\n }", "title": "" }, { "docid": "87dde98bde7ea8c892d1490b743d3a18", "score": "0.5920101", "text": "protected RectangularShape() {\n }", "title": "" }, { "docid": "a3977860718d5325e31a4cb94b0ed583", "score": "0.591665", "text": "public Polygon(String anId, String aName, int aSize)\r\n {\r\n m_id = anId;\r\n m_name = aName;\r\n m_polygon = new Vector<GeoPos>(aSize);\r\n }", "title": "" }, { "docid": "36bdf7b084e579262e0107beb41e6f9b", "score": "0.5916556", "text": "public BaseShape(Collection<Point2d> coords) {\r\n // ...\r\n }", "title": "" }, { "docid": "beb49a116f9b292e1ef85d09421968d6", "score": "0.59132075", "text": "public Polygon(int a, int b, int c){\n this.a = a;\n this.b = b;\n this.c = c;\n }", "title": "" }, { "docid": "049e5b0be779f8c42722223205c573ec", "score": "0.59049684", "text": "public ConvexPolygon2D()\n {\n numberOfVertices = 0;\n update();\n }", "title": "" }, { "docid": "a53e4108cdc83f9ca6cdf13601d2b2f0", "score": "0.58952886", "text": "@Test\n public void testBoundaryShape() {\n PolygonBuilder builder = ShapeBuilder.newPolygon().point(-180, 90).point(180, 90).point(180, -90).point(-180, -90);\n\n Shape shape = builder.close().build();\n\n assertPolygon(shape);\n }", "title": "" }, { "docid": "bb7a0b57cadddc2941a889bec41bd618", "score": "0.58861935", "text": "public Polygon(Point[] points) {\n\t\tthis.points = points;\n\t}", "title": "" }, { "docid": "198ffe1662482194c6d56ab838db9a06", "score": "0.58707", "text": "public PolylineOverlay() {\n \t\t\tsuper();\n \t\t\tthis.polyline = new ArrayList<GeoPoint>();\n \t\t\tthis.pathPaint = new Paint();\n \t\t\tthis.pathPaint.setAntiAlias(true);\n \t\t}", "title": "" }, { "docid": "061e30490662b9e9063d4b0e132fd264", "score": "0.58465564", "text": "public IntPolygon() {\n this.xPoints = new int[4];\n this.yPoints = new int[4];\n this.nPoints = 0;\n }", "title": "" }, { "docid": "b73af37825b66b5ef097cddcecf95180", "score": "0.5815365", "text": "public interface Shape {\n\n /**\n * Returns a copy of the shape with the same attributes.\n *\n * @return new Shape copy of the shape.\n */\n Shape copy();\n\n /**\n * Determine if a Shape has been initialized.\n *\n * @return true if the shape has been given initial values, false otherwise.\n */\n boolean isInitialized();\n\n /** Sets the initialized field to true. */\n void initialize();\n\n /**\n * Sets the starting frame of the shape.\n *\n * @param val the value of the starting frame.\n */\n void setStartFrame(float val);\n\n float getStartFrame();\n\n /**\n * Sets the ending frame of the shape.\n *\n * @param val the value of the ending frame.\n */\n void setEndFrame(float val);\n\n /**\n * Get the last frame that the shape is visible.\n *\n * @return the end frame of the shape.\n */\n float getEndFrame();\n\n /**\n * Returns the identifier for the shape.\n *\n * @return the identifier.\n */\n String getIdentifier();\n\n /**\n * Returns the position of the shape.\n *\n * @return Point2D as a reference to shape position.\n */\n Point2D getPosition();\n\n /**\n * Sets the position of the shape.\n *\n * @param x the x coordinate of the new position.\n * @param y the y coordinate of the new position.\n */\n void setPosition(float x, float y);\n\n /**\n * Resizes the shape by the given factor.\n *\n * @param newBase the new base of the Shape object.\n * @param newHeight the new height of the Shape object.\n */\n void resize(float newBase, float newHeight);\n\n /**\n * Get the base of the Shape.\n *\n * @return the base.\n */\n float getBase();\n\n /**\n * Get the height of the Shape.\n *\n * @return the height.\n */\n float getHeight();\n\n /** Returns colour of the shape to an rgb value. */\n Color getColor();\n\n /**\n * Sets colour of the shape to an rgb value.\n *\n * @param r the red value (0 - 255).\n * @param g the green value (0 - 255).\n * @param b the blue value (0 - 255).\n */\n void setColor(int r, int g, int b);\n\n /**\n * Returns whether the shape is visible on the canvas.\n *\n * @return true if shape appears, false otherwise.\n */\n boolean isVisible();\n\n /**\n * Sets the visibility attribute to true of false.\n *\n * @param val true or false depending on if the shape should be visible or not.\n */\n void setVisibility(boolean val);\n\n /**\n * Adds a transformation to the list of transformations for the shape.\n *\n * @param transformation the Transformation object to add.\n */\n void addTransformation(Transformation transformation);\n\n /**\n * Create a ChangeVisibility transformation that defines the starting and ending frames of the\n * shape.\n */\n void setFrames();\n\n /**\n * Returns the list of transformations for the shape.\n *\n * @return list of Transformation objects.\n */\n ArrayList<Transformation> getTransformations();\n\n /**\n * Returns an SVGView text output of the shapes with their animations.\n *\n * @param delay the delay (in ms) between each frame.\n * @return text as SVGView representation of the shapes with their animations\n */\n String toSVGString(float delay);\n\n /**\n * Draws the shape on a JPanel.\n *\n * @param g the Graphics2D object that represents this shape.\n */\n void fill(Graphics2D g);\n}", "title": "" }, { "docid": "6c790cd404aef90096a60e49675359f9", "score": "0.5814495", "text": "public Poligono() {\n geometria = new Polygon();\n }", "title": "" }, { "docid": "5827a85e656c2f0d9b2fbeace3929cb3", "score": "0.5813242", "text": "public void setShape(Polygon p){\n\n myCellShape = p;\n\n }", "title": "" }, { "docid": "a17c44eb99ebfa9842459b37f11565a7", "score": "0.5811142", "text": "public RoundedPolygon getShape() {\r\n\t\treturn shape;\r\n\t}", "title": "" }, { "docid": "bcedb1c9f38dc1242ff6e21857346e7a", "score": "0.5803102", "text": "public Polygon buildBounds() {\r\n\t\treturn Rectangle.of(axis, width, widthAtBorder);\r\n\t}", "title": "" }, { "docid": "2ac3088708eff0365c49cd58659ae687", "score": "0.5799241", "text": "private Geometry convertGeometryToPolygon(Geometry geo){\r\n \t\r\n \tGeometry geom = null; \r\n if(geo.getGeometryType().equals(\"Polygon\")){\r\n \tgeom = geo; \r\n }\r\n else if(geo.getGeometryType().equals(\"LineString\")){\r\n \tCoordinate [] coordinate = geo.getCoordinates(); \r\n \ttry{\r\n \t\tLinearRing linearRing = new GeometryFactory().createLinearRing(coordinate);\r\n \t\tLinearRing[] lrs = new LinearRing[0];\r\n\r\n \t\tArrayList innerBoundaries = new ArrayList();\r\n \t\tlrs = (LinearRing[]) innerBoundaries.toArray(lrs);\r\n \t\tPolygon polygon = new GeometryFactory().createPolygon(linearRing, lrs);\r\n \t\tgeom = (Geometry)polygon;\r\n \t}\r\n \tcatch (Exception e) {\r\n\t\t\t\t// La geometria no puede ser tratada como un poligono\r\n \t\treturn null;\r\n\t\t\t}\r\n \r\n \r\n }\r\n \treturn geom;\r\n }", "title": "" }, { "docid": "e5f5746e2a2b5d4af4542d7e432b4d0f", "score": "0.57726", "text": "public Polygon getBoundingPolygon() {\n\n Rectangle rect = this.sprite.getBoundingRectangle();\n\n float [] vertices = {\n rect.x, rect.y,\n rect.x + rect.width, rect.y,\n rect.x + rect.width, rect.y + rect.height,\n rect.x, rect.y + rect.height\n };\n\n Polygon output = new Polygon(vertices);\n return output;\n\n }", "title": "" }, { "docid": "ff958b3773790811c392d9d97ef1a292", "score": "0.5756152", "text": "@Override\n public DrawableShape createClone()\n {\n return new RectangleShape(this);\n }", "title": "" }, { "docid": "fd0d79a4f705b9b663f3b6056e367aa0", "score": "0.57536435", "text": "private List<Polygon> constructPolygons(Location l, int zoomLevel) throws IllegalPolygonException {\n\t\tList<Location.LatLongSet> latlongSets = l.getLatLongSets();\n\t\tList<Polygon> polys = new ArrayList<Polygon>(latlongSets.size());\n\t\tfor (Location.LatLongSet latlong : latlongSets) {\n\t\t\tlatitudes = latlong.getLatitudes();\n\t\t\tlongitudes = latlong.getLongitudes();\n\t\t\tif (xPoints == null) {\n\t\t\t\txPoints = new ArrayList<Integer>(longitudes.length);\n\t\t\t}\n\t\t\tif (yPoints == null) {\n\t\t\t\tyPoints = new ArrayList<Integer>(latitudes.length);\n\t\t\t}\n\t\t\t\n\t\t\txPoints.clear();\n\t\t\tyPoints.clear();\n\t\t\t\n\t\t\tPoint point;\n\t\t\tfor (int i = 0; i < latitudes.length; ++i) {\n\t\t\t\t//force the map viewer to return a non-null Point even if it's outside of the viewport\n\t\t\t\tpoint = map.getMapPosition(latitudes[i], longitudes[i], false);\n\t\t\t\t\n\t\t\t\txPoints.add(point.x);\n\t\t\t\tyPoints.add(point.y);\n\t\t\t}\n\t\t\t\n\t\t\t//unequal number of x and y points means something is wrong\n\t\t\tif ( xPoints.size() != yPoints.size() ) {\n\t\t\t\tthrow new IllegalPolygonException();\n\t\t\t}\n\t\t\t\n\t\t\t//a polygon with fewer than three vertices makes no sense\n\t\t\tif (xPoints.size() < 3) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\t\n\t\t\t//convert ArrayLists to primitive arrays, since Polygon only accepts those\n\t\t\tint[] xArray = new int[ xPoints.size() ];\n\t\t\tint[] yArray = new int[ yPoints.size() ];\n\t\t\tIterator<Integer> xIterator = xPoints.iterator();\n\t\t\tIterator<Integer> yIterator = yPoints.iterator();\n\t\t\t\n\t\t\tfor (int i = 0; i < xArray.length; ++i) {\n\t\t\t\txArray[i] = xIterator.next();\n\t\t\t\tyArray[i] = yIterator.next();\n\t\t\t}\n\t\t\t\n\t\t\tpolys.add(new Polygon(xArray, yArray, xArray.length));\n\t\t}\n\t\t\n\t\treturn polys;\n\t}", "title": "" }, { "docid": "719be933724569e5d229fa29a7604dc5", "score": "0.574339", "text": "private static Polygon recreatePolygon(int width, int height) {\n Polygon rectangle = new Polygon();\n rectangle.addPoint(0, 0);\n rectangle.addPoint(width, 0);\n rectangle.addPoint(width, height);\n rectangle.addPoint(0, height);\n \n return rectangle;\n }", "title": "" }, { "docid": "f4cd24b245f95878c0016fb6d1a93834", "score": "0.57238716", "text": "public Polygon(double ... theCoords) { _pnts = theCoords; }", "title": "" }, { "docid": "b07391fad6538f9b02835d6b5abac8c0", "score": "0.5723618", "text": "public ArrayList<PolygonOptions> getPolygonRectOptions(){\n ArrayList<PolygonOptions> polygonOptions = new ArrayList<>();\n\n Cursor cursor = db.rawQuery(\"SELECT \"+MyDatabaseHelper.POLYGON_OPTIONS+\n \" FROM \"+MyDatabaseHelper.RECT_GEOTABLE,null);\n\n cursor.moveToFirst();\n if(!(cursor.getCount() >= 1))\n return null;\n int fill = 0;\n int stroke = 0;\n int columnCount = cursor.getColumnCount(); // retrieves columnCount\n Log.d(TAG, \"getPolygonRectOptions: \" + columnCount + \" \"+ cursor.getString(0));\n LatLng[] latLngs = new LatLng[4];\n do {\n for (int i = 0, j = 0; i < columnCount; i++) {\n Log.d(TAG, \"getPolygonRectOptions: \");\n switch(cursor.getColumnName(i)){\n case MyDatabaseHelper.FILL:\n fill = cursor.getInt(i);\n break;\n case MyDatabaseHelper.STROKE:\n stroke = cursor.getInt(i);\n break;\n }\n if (i >= 2) { // if fill & stroke have already been accounted for\n latLngs[j] = new LatLng(cursor.getDouble(i), cursor.getDouble(i + 1));\n i++; // Need to increment by two, since we are accessing two indexes at a time\n j++;\n Log.d(TAG, \"getPolygonRectOptions: \" + latLngs[j-1]);\n }\n }\n // Instantiates a new Polygon object and adds points to define a rectangle\n polygonOptions.add(new PolygonOptions().add(latLngs[0], latLngs[1], latLngs[2], latLngs[3])\n .fillColor(fill)\n .strokeColor(stroke));\n Log.d(TAG, \"getPolygonRectOptions: made poly\");\n\n\n\n\n }\n while(cursor.moveToNext());\n\n return polygonOptions;\n }", "title": "" }, { "docid": "9202c053af8878371d2e30b7cbbdddeb", "score": "0.57143664", "text": "public MyBoundedShape()\n {\n super();\n fill = false;\n }", "title": "" }, { "docid": "308910dfbb4e335f0ffedbdd93bea745", "score": "0.57128465", "text": "public List createPolygons() {\n List walls = createVerticalPolygons();\n List floors = createHorizontalPolygons();\n\n List list = new ArrayList(walls.size() + floors.size());\n list.addAll(walls);\n list.addAll(floors);\n return list;\n }", "title": "" }, { "docid": "71e6113eef7bee52e258b7578d1f94ca", "score": "0.57037294", "text": "protected boolean updateForItSelf(){\n\t\tGeoPolygon polygon = (GeoPolygon) getGeoElement();\n\t\tint pointLength = polygon.getPointsLength();\n\t\t\n\t\tif (pointLength<3 || Kernel.isZero(polygon.getArea())){ //no polygon\n\t\t\tsetGeometryIndex(-1);\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\t\n\t\tRenderer renderer = getView3D().getRenderer();\n\t\tCoords v = polygon.getMainDirection();\n\t\tint index = renderer.startPolygon((float) v.get(1),(float) v.get(2),(float) v.get(3));\n\t\t\n\t\t\n\t\t\n\t\t// if index==0, no polygon have been created\n\t\tif (index==0){\n\t\t\tsetGeometryIndex(-1);\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\tsetGeometryIndex(index);\n\t\t\t\t\n\t\tfor(int i=0;i<pointLength;i++){\n\t\t\t//v = polygon.getPoint3D(i);\n\t\t\tv = polygon.getPoint3D(i);\n\t\t\trenderer.addToPolygon(v.get(1),v.get(2),v.get(3));\n\t\t\t/*\n\t\t\tCoords vInhom=v.getInhomCoordsInSameDimension();\t\t\t\n\t\t\trenderer.addToPolygon(vInhom.get(1),vInhom.get(2),vInhom.get(3));\n\t\t\tApplication.debug(\"v[\"+i+\"]=\\n\"+v+\"\\ninhom=\\n\"+vInhom);\n\t\t\t*/\n\t\t}\n\t\t\n\t\trenderer.endPolygon();\n\t\t\t\t\n\t\treturn true;\n\t\t\n\t}", "title": "" }, { "docid": "01b88f312f88f430a4fc09864b7637d0", "score": "0.5693928", "text": "public Collection<GeoPos> getVertices()\r\n {\r\n return m_polygon;\r\n }", "title": "" }, { "docid": "2872448cea62cd66ad574bd1e63dc1a4", "score": "0.5688219", "text": "private PolyshapeDatatype() {\r\n super(URI);\r\n }", "title": "" }, { "docid": "7c377b4b568680adcce3a29ac200be87", "score": "0.56639546", "text": "void addPolygon(Polygon p) {\n\t\tpolygons[nop] = p;\n\t\tnop ++;\n\t}", "title": "" }, { "docid": "dae1b6e70db24e8caf598369138a5178", "score": "0.5662329", "text": "protected PolyStyle(KMLRoot parent) {\n\t\tsuper(parent, \"PolyStyle\");\n\t}", "title": "" }, { "docid": "ead928c953b29c4c9afc7f97bd355e52", "score": "0.5661904", "text": "protected abstract T createShape();", "title": "" }, { "docid": "1dd65f83f3a5c1101d024545d0cd27a5", "score": "0.56601775", "text": "@Override\n public Polygon intersection(Polygon poly) {\n return null;\n }", "title": "" }, { "docid": "054e597a1a6636755b12ed4cc0b432da", "score": "0.5637377", "text": "public PolygonVector( JPanel panel){\n this.panel = panel;\n }", "title": "" }, { "docid": "822aa0e189c21e04d80c6e195935adda", "score": "0.56350875", "text": "public void recalculatePolygon() {\n polygon.reset();\n for (Point point : this.points) {\n polygon.addPoint(point.x, point.y);\n }\n polygonArea = new Area(polygon);\n }", "title": "" }, { "docid": "38722756c5da44c1945f3d3517f54cd4", "score": "0.56169987", "text": "public Polygon(double x_pos, double y_pos, double apothem, Color c){\n\t\tsuper(apothem, c);\n\t\tx_position = x_pos;\n\t\ty_position = y_pos;\n\t\tx = new double[]{3, 4};// filler\n\t\ty = new double[]{2, 5};\n\t}", "title": "" }, { "docid": "75f2e73df949d8f1b1edb24927357026", "score": "0.5600022", "text": "public interface O0o00 extends OooOO, IPolyline {\r\n boolean O000000o(LatLng latLng);\r\n}", "title": "" }, { "docid": "fcec9569b0f47c6824e448deb3a321a5", "score": "0.5598059", "text": "public PolygonalSceneObject(SceneObject parent, Polygon2D polygon,\n Color fillColor, Color lineColor) {\n super(parent);\n\n myPolygon = polygon;\n myFillColor = fillColor;\n myLineColor = lineColor;\n }", "title": "" }, { "docid": "263252a09cad16d2ba970177d8cc4189", "score": "0.559672", "text": "@Override\r\n\tpublic void drawShape() {\n\t\t\r\n\t}", "title": "" }, { "docid": "3e97c4bc3fe92b2227190b05546d68a3", "score": "0.5562069", "text": "public interface IControlPointShape extends IModifiablePointsShape {\n\t/** The default position gap of control points against their reference point. */\n\tint DEFAULT_POSITION_CTRL = 40;\n\n\t/**\n\t * Balances all the control points in order the create a rounded shape.\n\t */\n\tvoid balance();\n\n\t/**\n\t * @param position The position of the wanted points (-1 for the last point).\n\t * @return The first control point at the given position or null if the position is not valid.\n\t * *\n\t */\n\tIPoint getFirstCtrlPtAt(final int position);\n\n\t/**\n\t * @param position The position of the wanted points (-1 for the last point).\n\t * @return The second control point at the given position or null if the position is not valid.\n\t * *\n\t */\n\tIPoint getSecondCtrlPtAt(final int position);\n\n\t/**\n\t * Updates the second control points by using the first control points.\n\t * @since 1.9\n\t */\n\tvoid updateSecondControlPoints();\n\n\t/**\n\t * Sets the X-coordinate of one of the first control point.\n\t * @param x The new X-coordinate.\n\t * @param id The position of the point to set.\n\t * @since 1.9\n\t */\n\tvoid setXFirstCtrlPt(final double x, final int id);\n\n\t/**\n\t * Sets the Y-coordinate of one of the first control point.\n\t * @param y The new Y-coordinate.\n\t * @param id The position of the point to set.\n\t * @since 1.9\n\t */\n\tvoid setYFirstCtrlPt(final double y, final int id);\n\n\t/**\n\t * Sets the X-coordinate of one of the second control point.\n\t * @param x The new X-coordinate.\n\t * @param id The position of the point to set.\n\t * @since 1.9\n\t */\n\tvoid setXSecondCtrlPt(final double x, final int id);\n\n\t/**\n\t * Sets the Y-coordinate of one of the second control point.\n\t * @param y The new Y-coordinate.\n\t * @param id The position of the point to set.\n\t * @since 1.9\n\t */\n\tvoid setYSecondCtrlPt(final double y, final int id);\n\n\t/**\n\t * @return the firstCtrlPts.\n\t */\n\tList<IPoint> getFirstCtrlPts();\n\n\t/**\n\t * @return the secondCtrlPts.\n\t */\n\tList<IPoint> getSecondCtrlPts();\n}", "title": "" }, { "docid": "bc0b62b118f9afb3ac3950b570a33461", "score": "0.5553957", "text": "public interface Shape {\n\n\t/**\n\t * calculates the area of the shape\n\t * \n\t * @return area\n\t */\n\tpublic float getArea();\n\n\t/**\n\t * calculates the perimeter of the shape\n\t * \n\t * @return perimeter\n\t */\n\tpublic float getPerimeter();\n\n\t/**\n\t * @return origin of the shape\n\t */\n\tpublic Point getOrigin();\n\n\t/**\n\t * checks if the given point lies inside the shape or not\n\t */\n\tpublic boolean isPointEnclosed(Point isEnclosedPoint);\n\n\t/**\n\t * @return ShapeType of the shape\n\t */\n\tpublic ShapeEnum getShapeType();\n\n\t/**\n\t * @return originDistance, i.e the distance between origin of the shape and\n\t * origin of the screen\n\t */\n\tpublic float getOriginDistance();\n\n\t/**\n\t * @return timestamp of the shape\n\t */\n\tpublic Date getTimestamp();\n\n\t/**\n\t * sets the timestamp at which the object is added to the screen\n\t * \n\t * @param timestamp\n\t */\n\tpublic void setTimestamp(Date timestamp);\n\n}", "title": "" }, { "docid": "01d23b1388f2c617208f816182e3176d", "score": "0.5548499", "text": "@Test\r\n\t//create test for getShape\r\n\tpublic void testGetShape() {\n\t\tTestCase.assertEquals(Test.getShape(), null);\r\n\t\tPolygon A=new Polygon();\r\n\t\t//test with given shape\r\n\t\tA.getPoints().addAll(new Double[] {0.0,0.0,0.0,2.0,2.0,2.0,2.0,0.0});\r\n Test.setShape(A);\r\n TestCase.assertEquals(Test.getShape(), A);\r\n\t}", "title": "" }, { "docid": "69d9553c968816538dc00257a48a2751", "score": "0.55478746", "text": "public PlayingArea() {\n\t\t\t//TODO: Replace stub code\n\t\t\tarea.add(new LatLng(-123.25207469999998,49.26244859999999));\n\t\t\tarea.add(new LatLng(-123.2511789,49.261457899999996));\n\t\t\tarea.add(new LatLng(-123.2495534,49.261773));\n\t\t\tarea.add(new LatLng(-123.2505405,49.262945699999996));\n\n\t\t\tarea.add(area.get(0));\n\n\t\t\t//TODO: Create Polygon item with coordinates\n\t\t\tpolygon = mMap.addPolygon(new PolygonOptions().addAll(area));\n\t\t}", "title": "" }, { "docid": "d2b7a7b835d78e868acbb21715d33098", "score": "0.5547077", "text": "net.opengis.gml.x32.GeometryPropertyType addNewGeometryMember();", "title": "" }, { "docid": "8166ac145908cf3892083c496ed1417b", "score": "0.55428255", "text": "public interface Shape\n{\n \n /**\n * Returns true, if the given point is contained\n * within this shape.\n */\n public boolean contains(Point2f point);\n\n}", "title": "" }, { "docid": "a4c4beca950a5cd410b9b914d57ed72b", "score": "0.5540299", "text": "public DrawingContract() {}", "title": "" }, { "docid": "9e0348c52e63116689d6917960ef5887", "score": "0.5528557", "text": "private void addPolygons() {\r\n doorWest = new Polygon();\r\n doorEast = new Polygon();\r\n doorNorth = new Polygon();\r\n doorSouth = new Polygon();\r\n chest = new Polygon();\r\n monster = new Polygon();\r\n treasure = new Polygon();\r\n // TODO still some strange instances where mouse is not found inside\r\n // polygon\r\n\r\n doorWest.addPoint(103, 247);\r\n doorWest.addPoint(103, 458);\r\n doorWest.addPoint(174, 166);\r\n doorWest.addPoint(174, 374);\r\n\r\n doorEast.addPoint(632, 166);\r\n doorEast.addPoint(632, 374);\r\n doorEast.addPoint(705, 247);\r\n doorEast.addPoint(705, 459);\r\n\r\n doorNorth.addPoint(366, 152);\r\n doorNorth.addPoint(366, 314);\r\n doorNorth.addPoint(458, 152);\r\n doorNorth.addPoint(458, 314);\r\n\r\n doorSouth.addPoint(363, 495);\r\n doorSouth.addPoint(450, 495);\r\n doorSouth.addPoint(450, 573);\r\n doorSouth.addPoint(363, 573);\r\n\r\n chest.addPoint(197, 280);\r\n chest.addPoint(351, 280);\r\n chest.addPoint(351, 430);\r\n chest.addPoint(197, 430);\r\n\r\n monster.addPoint(472, 170);\r\n monster.addPoint(609, 170);\r\n monster.addPoint(609, 487);\r\n monster.addPoint(472, 487);\r\n\r\n treasure.addPoint(0, 0);\r\n treasure.addPoint(600, 0);\r\n treasure.addPoint(0, 400);\r\n treasure.addPoint(600, 400);\r\n }", "title": "" }, { "docid": "e7675bf1f104eed65eedd3a0bce2ae35", "score": "0.5516649", "text": "@Override\n Point3DBasics getShapePosition();", "title": "" }, { "docid": "89ced31a5c3b53df144afdfb47c2792e", "score": "0.55132735", "text": "public Polygon(Color drawColor, Color fillColor) {\n this.drawColor = drawColor;\n this.fillColor = fillColor;\n this.ls = new LineString(); \n }", "title": "" }, { "docid": "b0ef467e8a31d85e2e5575424cbe67d8", "score": "0.550549", "text": "public interface Shapes {\n\n /**\n * Makes a new shape with the specified fields.\n * @param id the id of the shape\n * @param x the x coordinate of the shape\n * @param y the y coordinate of the shape\n * @param w the width of the shape\n * @param h the height of the shape\n * @param c the color of the shape\n * @return a new AShape with the above values\n */\n AShape makeChangesWithoutBlend(String id, double x, double y, double w, double h, Color c);\n\n /**\n * Checks if the there was no \"teleporting\" from the end of the interval to the start of the\n * interval.\n * @param width the width of the shape at the start of the interval\n * @param height the height of the shape at the start of the interval\n * @param initialX the initialX of the shape at the start of the interval\n * @param initialY the initialY of the shape at the start of the interval\n * @param r1 the r1 of the shape at the start of the interval\n * @param g1 the g1 of the shape at the start of the interval\n * @param b1 the b1 of the shape at the start of the interval\n * @return true if the shape hasn't teleported\n */\n boolean checkTeleport(int width, int height, int initialX, int initialY, int r1, int g1, int b1);\n\n /**\n * Checks if the given ID is the same as this shape's ID.\n * @param id the id to be compared\n * @return true if the id's are the same\n */\n boolean checkID(String id);\n\n /**\n * Gets a copy of this shape's color.\n * @return a copy of this shape's color\n */\n Color getColor();\n\n /**\n * Creates a new shape with the same fields as this shape.\n * @return a new ashape\n */\n AShape newShape();\n\n /**\n * Gets the ID of this shape.\n * @return the ID of this shape.\n */\n String getId();\n\n /**\n * Gets the x coordinate of this shape.\n * @return the x coordinate of this shape\n */\n double getX();\n\n /**\n * Gets the y coordinate of this shape.\n * @return the y coordinate of this shape.\n */\n double getY();\n\n /**\n * Gets the width of this shape.\n * @return the width of this shape.\n */\n double getWidth();\n\n /**\n * Gets the height of this shape.\n * @return the height of this shape.\n */\n double getHeight();\n\n /**\n * Gets the render of this shape.\n * @return the render of this shape\n */\n boolean getRender();\n\n /**\n * Gets the shape.\n * @return the shape\n */\n AShape getShape();\n\n /**\n * Sets the color of the shape.\n * @param c new Color of the shape\n */\n void setColor(Color c);\n\n /**\n * Sets the width of the shape.\n * @param w the new width of the shape\n */\n void setW(double w);\n\n /**\n * Sets the height of the shape.\n * @param h the new height of the shape\n */\n void setH(double h);\n\n /**\n * Sets the x values of the shape.\n * @param x the new x value of the shape\n */\n void setX(double x);\n\n /**\n * Sets the y value of the shape.\n * @param y the new y value of the shape\n */\n void setY(double y);\n}", "title": "" }, { "docid": "2b3a11637014c41116099fdbdb1f7ab9", "score": "0.5494079", "text": "public PolylineROI() {\n\t\tsuper();\n\t\tpts = new ArrayList<IROI>();\n\t}", "title": "" }, { "docid": "768c1a17df68451925117100ba168229", "score": "0.5488169", "text": "static void createPolygons() {\n Point points[];\n points = new Point[4];\n\n points[0] = new Point(22, 35);\n points[1] = new Point(22, 35 + 16);\n points[2] = new Point(22 + 12, 35 + 16);\n points[3] = new Point(22 + 12, 35);\n\n poly1 = new Polygon(points);\n\n int x = 22;\n int y = 35;\n int w = 12;\n int h = 16;\n \n Point p = new Point(22, 35);\n points[0] = p;\n points[1] = new Point(p);\n points[1].translate(0, h);\n points[2] = new Point(p);\n points[2].translate(w, h);\n points[3] = new Point(p);\n points[3].translate(w, 0);\n\n \n points = new Point[4];\n \n poly2 = new Polygon(points);\n \n poly3 = createPolygon(x, y, w, h);\n }", "title": "" }, { "docid": "908719e4c65c35b36816589bcb5fe313", "score": "0.54707944", "text": "@Override\n\tpublic Shape getBounds() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "84c7f112fd52af505d8372147dea06cd", "score": "0.5460083", "text": "public interface PolyList<T extends Poly> extends Poly {\n\n Poly metadata();\n\n PolyList<T> withMetadata(Poly meta);\n\n List<T> list();\n\n List<T> getList();\n\n PolyList<T> withList(List<T> poly);\n\n /**\n * Greedy search of polys in the list\n */\n Optional<T> polyById(String id);\n\n <P extends Poly> PolyList<T> add(P poly);\n\n PolyList<T> delete(String polyId);\n\n boolean hasPoly(String polyId);\n\n}", "title": "" }, { "docid": "61c1205e533963eeb0c87a4fad361ff8", "score": "0.54529685", "text": "public Polygon toPolygon(int width) {\n\t\tPoint[] ps = {\n\t\t\t\ttoPoint(width,a-THIRD,b-TWOTHIRD),\n\t\t\t\ttoPoint(width,a+THIRD,b-THIRD),\n\t\t\t\ttoPoint(width,a+TWOTHIRD,b+THIRD),\n\t\t\t\ttoPoint(width,a+THIRD,b+TWOTHIRD),\n\t\t\t\ttoPoint(width,a-THIRD,b+THIRD),\n\t\t\t\ttoPoint(width,a-TWOTHIRD,b-THIRD)\n\t\t};\n\t\tPolygon result = new Polygon();\n\t\tfor (Point p : ps) {\n\t\t\tresult.addPoint(p.x,p.y);\n\t\t}\n\t\treturn result;\n\t}", "title": "" }, { "docid": "b18a7eadbcb3d589b139c7a20d4232fb", "score": "0.54433227", "text": "public RectangleFeature() {\n\t\tsuper(\"Rectangle\");\n\t}", "title": "" }, { "docid": "12e906dad2ac59057737f6d5eec8ef87", "score": "0.5442497", "text": "@Override\n public void paint(Graphics g){\n Polygon p = getPolygonCourbe(pts);\n for(int i = 0; i < p.getNbPoints() - 1; i++)\n {\n g.setPenWidth( Math.max(0.8f, 4.0f*(1.0f - ((float) Math.abs(2*i - p.getNbPoints())) / (float) p.getNbPoints())));\n g.drawLine(p.getX(i), p.getY(i), p.getX(i+1), p.getY(i+1));\n }\n // g.drawPolyline(p.xpoints, p.ypoints, p.npoints);\n \n }", "title": "" }, { "docid": "0086d6dfa54e876595e2fd64d2799b2c", "score": "0.54337037", "text": "public interface Shape3d {\n /**\n * Returns the x-coordinate.\n *\n * @return the x-coordinate\n */\n public double getX();\n\n /**\n * Returns the y-coordinate.\n *\n * @return the y-coordinate\n */\n public double getY();\n\n /**\n * Returns the z-coordinate.\n *\n * @return the z-coordinate\n */\n public double getZ();\n\n /**\n * Returns whether the shape contains the specified coordinate.\n *\n * @param coordinate the coordinate to check\n * @return {@code true} if the shape absolutely contains the specified coordinate\n */\n public boolean contains(Cartesian2d coordinate);\n\n /**\n * Returns whether the shape contains the specified coordinate.\n *\n * @param coordinate the coordinate to check\n * @return {@code true} if the shape absolutely contains the specified coordinate\n */\n public boolean contains(Cartesian3d coordinate);\n\n /**\n * Returns whether the shape contains the specified coordinate.\n *\n * @param x the x-coordinate\n * @param y the y-coordinate\n * @param z the z-coordinate\n * @return {@code true} if the shape absolutely contains the specified coordinate\n */\n public boolean contains(double x, double y, double z);\n}", "title": "" }, { "docid": "d1518c9eaac0133bf67297b2ef1a9b97", "score": "0.5428113", "text": "@Override\n\tpublic Ellipse2D bounds() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "d688f210fbc70c8b0e02394244baf3fd", "score": "0.5420398", "text": "public interface Shape {\n void draw();\n }", "title": "" }, { "docid": "cf7bef519b202f7cd39ae9b16221667f", "score": "0.54190457", "text": "public Pointsrectolinier()\r\n {\r\n }", "title": "" }, { "docid": "29544b489e731a179e78bd923499497f", "score": "0.5412393", "text": "public PolygonFactory(AffineTransform at, double scaleFactor, Point... pts) {\n\t\tthis.at = at;\n\t\tthis.scaleFactor = scaleFactor;\n\t\tfor (Point pt : pts) {\n\t\t\tpoly.addPoint(pt.x, pt.y);\n\t\t}\n\t}", "title": "" }, { "docid": "4b8226db73145c31ee3529dc051ed239", "score": "0.5411964", "text": "@Test\n public void testShapeWithAlternateOrientation() {\n PolygonBuilder builder = ShapeBuilder.newPolygon().point(180, 0).point(176, 4).point(-176, 4).point(180, 0);\n\n Shape shape = builder.close().build();\n assertPolygon(shape);\n\n // cw: geo core will convert to ccw across the dateline\n builder = ShapeBuilder.newPolygon().point(180, 0).point(-176, 4).point(176, 4).point(180, 0);\n\n shape = builder.close().build();\n\n assertMultiPolygon(shape);\n }", "title": "" }, { "docid": "cca80e0562c452ab7ba7af8e72bda2dd", "score": "0.53972614", "text": "public interface Geometrified\n{\n Geometry getGeometry();\n\n String getName();\n}", "title": "" }, { "docid": "4bd7608d17713e78cd146e209513ac92", "score": "0.5393851", "text": "public Polygon getSample_Grid_Polygon_Base(int sample, int grid)\n {\n return project.getSample_Grid_Polygon_Base(sample, grid);\n }", "title": "" }, { "docid": "17d1cc36ba51829027dae240ef987d7b", "score": "0.5391671", "text": "private void extendObject(ElectricObject obj, PolyBase poly, Layer layer, ArcProto ap, PolyMerge merge, PolyMerge originalMerge, Cell newCell)\n \t{\n \t\t// can only handle rectangles now\n \t\tRectangle2D polyBounds = poly.getBox();\n \t\tif (polyBounds == null)\n \t\t{\n \t\t\tRectangle2D totalBounds = poly.getBounds2D();\n \t\t\tif (originalMerge.contains(layer, totalBounds))\n \t\t\t\tpolyBounds = totalBounds;\n \t\t}\n \t\tif (polyBounds == null) return;\n //System.out.println(\" EXTENDING \"+obj+\" TO COVER POLYGON \"+(polyBounds.getMinX()/SCALEFACTOR)+\"<=X<=\"+\n //\t(polyBounds.getMaxX()/SCALEFACTOR)+\" AND \"+(polyBounds.getMinY()/SCALEFACTOR)+\"<=Y<=\"+(polyBounds.getMaxY()/SCALEFACTOR));\n \n \t\t// find the port that is being extended\n \t\tPoint2D polyCtr = new Point2D.Double(polyBounds.getCenterX(), polyBounds.getCenterY());\n \t\tif (obj instanceof ArcInst)\n \t\t{\n \t\t\tArcInst ai = (ArcInst)obj;\n \t\t\tdouble headDist = polyCtr.distance(ai.getHeadLocation());\n \t\t\tdouble tailDist = polyCtr.distance(ai.getTailLocation());\n \t\t\tif (headDist < tailDist) obj = ai.getHeadPortInst(); else\n \t\t\t\tobj = ai.getTailPortInst();\n \t\t}\n \t\tPortInst pi = (PortInst)obj;\n \n \t\t// prepare to cover the polygon\n \t\tPoly portPoly = pi.getPoly();\n \t\tRectangle2D portRect = portPoly.getBounds2D();\n \t\tportRect.setRect(scaleUp(portRect.getMinX()), scaleUp(portRect.getMinY()),\n \t\t\tscaleUp(portRect.getWidth()), scaleUp(portRect.getHeight()));\n \t\tPrimitiveNode np = ap.findPinProto();\n \n \t\t// is the port inside of the area to be covered?\n \t\tif (polyCtr.getY() >= portRect.getMinY() && polyCtr.getY() <= portRect.getMaxY() &&\n \t\t\tpolyCtr.getX() >= portRect.getMinX() && polyCtr.getX() <= portRect.getMaxX())\n \t\t{\n //System.out.println(\" PORT IS INSIDE POLYGON\");\n \t\t\t// decide whether to extend horizontally or vertically\n \t\t\tif (polyBounds.getWidth() > polyBounds.getHeight())\n \t\t\t{\n \t\t\t\t// wider area, make horizontal arcs\n \t\t\t\tdouble endExtension = polyBounds.getHeight() / 2;\n \t\t\t\tPoint2D pinPt1 = new Point2D.Double((polyBounds.getMaxX() - endExtension) / SCALEFACTOR,\n \t\t\t\t\tpolyCtr.getY() / SCALEFACTOR);\n \t\t\t\tPoint2D pinPt2 = new Point2D.Double((polyBounds.getMinX() + endExtension) / SCALEFACTOR,\n \t\t\t\t\tpolyCtr.getY() / SCALEFACTOR);\n \t\t\t\tPoint2D objPt = new Point2D.Double(portRect.getCenterX() / SCALEFACTOR, polyCtr.getY() / SCALEFACTOR);\n \t\t\t\tdouble size = Math.min(polyBounds.getWidth(), polyBounds.getHeight()) / SCALEFACTOR;\n \t\t\t\tNodeInst ni1 = createNode(np, pinPt1, size, size, null, newCell);\n \t\t\t\tNodeInst ni2 = createNode(np, pinPt2, size, size, null, newCell);\n \t\t\t\trealizeArc(ap, ni1.getOnlyPortInst(), pi, pinPt1, objPt,\n \t\t\t\t\tpolyBounds.getHeight() / SCALEFACTOR, false, false, merge);\n \t\t\t\trealizeArc(ap, ni2.getOnlyPortInst(), pi, pinPt2, objPt,\n \t\t\t\t\tpolyBounds.getHeight() / SCALEFACTOR, false, false, merge);\n \t\t\t} else\n \t\t\t{\n \t\t\t\t// taller area, make vertical arcs\n \t\t\t\tdouble endExtension = polyBounds.getWidth() / 2;\n \t\t\t\tPoint2D pinPt1 = new Point2D.Double(polyCtr.getX() / SCALEFACTOR,\n \t\t\t\t\t(polyBounds.getMaxY() - endExtension) / SCALEFACTOR);\n \t\t\t\tPoint2D pinPt2 = new Point2D.Double(polyCtr.getX() / SCALEFACTOR,\n \t\t\t\t\t(polyBounds.getMinY() + endExtension) / SCALEFACTOR);\n \t\t\t\tPoint2D objPt = new Point2D.Double(polyCtr.getX() / SCALEFACTOR, portRect.getCenterY() / SCALEFACTOR);\n \t\t\t\tdouble size = Math.min(polyBounds.getWidth(), polyBounds.getHeight()) / SCALEFACTOR;\n \t\t\t\tNodeInst ni1 = createNode(np, pinPt1, size, size, null, newCell);\n \t\t\t\tNodeInst ni2 = createNode(np, pinPt2, size, size, null, newCell);\n \t\t\t\trealizeArc(ap, ni1.getOnlyPortInst(), pi, pinPt1, objPt,\n \t\t\t\t\tpolyBounds.getWidth() / SCALEFACTOR, false, false, merge);\n \t\t\t\trealizeArc(ap, ni2.getOnlyPortInst(), pi, pinPt2, objPt,\n \t\t\t\t\tpolyBounds.getWidth() / SCALEFACTOR, false, false, merge);\n \t\t\t}\n \t\t\treturn;\n \t\t}\n \n \t\t// can we extend vertically\n \t\tif (polyCtr.getX() >= portRect.getMinX() && polyCtr.getX() <= portRect.getMaxX())\n \t\t{\n //System.out.println(\" PORT IS OUTSIDE POLYGON: EXTEND VERTICALLY\");\n \t\t\t// going up to the poly or down?\n \t\t\tPoint2D objPt = new Point2D.Double(polyCtr.getX(), portRect.getCenterY());\n \t\t\tPoint2D objPtNormal = new Point2D.Double(polyCtr.getX() / SCALEFACTOR, portRect.getCenterY() / SCALEFACTOR);\n \t\t\tPoint2D pinPt = null;\n \t\t\tPoint2D pinPtNormal = null;\n \t\t\tboolean endExtend = true;\n \t\t\tdouble endExtension = polyBounds.getWidth() / 2;\n \t\t\tif (polyBounds.getHeight() < polyBounds.getWidth())\n \t\t\t{\n \t\t\t\t// arc is so short that it will stick out with end extension\n \t\t\t\tendExtend = false;\n \t\t\t\tendExtension = 0;\n \t\t\t}\n \t\t\tif (polyCtr.getY() > portRect.getCenterY())\n \t\t\t{\n \t\t\t\t// going up to the poly\n \t\t\t\tpinPt = new Point2D.Double(polyCtr.getX(), polyBounds.getMaxY() - endExtension);\n \t\t\t\tpinPtNormal = new Point2D.Double(polyCtr.getX() / SCALEFACTOR,\n \t\t\t\t\t(polyBounds.getMaxY() - endExtension) / SCALEFACTOR);\n \t\t\t} else\n \t\t\t{\n \t\t\t\t// going down to the poly\n \t\t\t\tpinPt = new Point2D.Double(polyCtr.getX(), polyBounds.getMinY() + endExtension);\n \t\t\t\tpinPtNormal = new Point2D.Double(polyCtr.getX() / SCALEFACTOR,\n \t\t\t\t\t(polyBounds.getMinY() + endExtension) / SCALEFACTOR);\n \t\t\t}\n \t\t\tMutableBoolean headExtend = new MutableBoolean(endExtend), tailExtend = new MutableBoolean(endExtend);\n \t\t\tdouble wid = polyBounds.getWidth();\n \t\t\tif (originalMerge.arcPolyFits(layer, pinPt, objPt, wid, headExtend, tailExtend))\n \t\t\t{\n \t\t\t\tdouble size = Math.min(polyBounds.getWidth(), polyBounds.getHeight()) / SCALEFACTOR;\n \t\t\t\tNodeInst ni1 = createNode(np, pinPtNormal, size, size, null, newCell);\n \t\t\t\trealizeArc(ap, ni1.getOnlyPortInst(), pi, pinPtNormal, objPtNormal, wid / SCALEFACTOR,\n \t\t\t\t\t!headExtend.booleanValue(), !tailExtend.booleanValue(), merge);\n \t\t\t}\n \t\t\treturn;\n \t\t}\n \n \t\t// can we extend horizontally\n \t\tif (polyCtr.getY() >= portRect.getMinY() && polyCtr.getY() <= portRect.getMaxY())\n \t\t{\n //System.out.println(\" PORT IS OUTSIDE POLYGON: EXTEND HORIZONTALLY\");\n \t\t\t// going left to the poly or right?\n \t\t\tPoint2D objPt = new Point2D.Double(portRect.getCenterX(), polyCtr.getY());\n \t\t\tPoint2D objPtNormal = new Point2D.Double(portRect.getCenterX() / SCALEFACTOR, polyCtr.getY() / SCALEFACTOR);\n \t\t\tPoint2D pinPt = null;\n \t\t\tPoint2D pinPtNormal = null;\n \t\t\tboolean endExtend = true;\n \t\t\tdouble endExtension = polyBounds.getHeight() / 2;\n \t\t\tif (polyBounds.getWidth() < polyBounds.getHeight())\n \t\t\t{\n \t\t\t\t// arc is so short that it will stick out with end extension\n \t\t\t\tendExtend = false;\n \t\t\t\tendExtension = 0;\n \t\t\t}\n \t\t\tif (polyCtr.getX() > portRect.getCenterX())\n \t\t\t{\n \t\t\t\t// going right to the poly\n \t\t\t\tpinPt = new Point2D.Double(polyBounds.getMaxX() - endExtension, polyCtr.getY());\n \t\t\t\tpinPtNormal = new Point2D.Double((polyBounds.getMaxX() - endExtension) / SCALEFACTOR,\n \t\t\t\t\tpolyCtr.getY() / SCALEFACTOR);\n \t\t\t} else\n \t\t\t{\n \t\t\t\t// going left to the poly\n \t\t\t\tpinPt = new Point2D.Double(polyBounds.getMinX() + endExtension, polyCtr.getY());\n \t\t\t\tpinPtNormal = new Point2D.Double((polyBounds.getMinX() + endExtension) / SCALEFACTOR,\n \t\t\t\t\tpolyCtr.getY() / SCALEFACTOR);\n \t\t\t}\n \t\t\tMutableBoolean headExtend = new MutableBoolean(endExtend), tailExtend = new MutableBoolean(endExtend);\n \t\t\tdouble wid = polyBounds.getHeight();\n \t\t\tif (originalMerge.arcPolyFits(layer, pinPt, objPt, wid, headExtend, tailExtend))\n \t\t\t{\n \t\t\t\tdouble size = Math.min(polyBounds.getWidth(), polyBounds.getHeight()) / SCALEFACTOR;\n \t\t\t\tNodeInst ni1 = createNode(np, pinPtNormal, size, size, null, newCell);\n \t\t\t\trealizeArc(ap, ni1.getOnlyPortInst(), pi, pinPtNormal, objPtNormal,\n \t\t\t\t\twid / SCALEFACTOR, !headExtend.booleanValue(), !tailExtend.booleanValue(), merge);\n \t\t\t}\n \t\t}\n \t}", "title": "" }, { "docid": "85812e1c276f47972f301f0792ddb53b", "score": "0.53878576", "text": "@Override\r\n\tpublic Shape clonar() {\n\t\treturn new Rectangle(this);\r\n\t}", "title": "" }, { "docid": "80a3520d06eba46bc43a22ac69fc08c8", "score": "0.5379961", "text": "@Deprecated\r\n/* 100: */ public RectShape getBounds()\r\n/* 101: */ {\r\n/* 102:151 */ return new RectShape(this.mRegion.getBounds());\r\n/* 103: */ }", "title": "" }, { "docid": "8a098d12494bb6011a11669ca82c62ec", "score": "0.5379195", "text": "@Test\n\tpublic void testpolygonizer() throws Exception { LineString line = (LineString) SplitTestUtil\n\t\t// .read(\"LINESTRING (180 160, 180 70, 240 70, 240 110, 130 110, 130 70, 180 70)\");\n\n\t\t// LineString line = (LineString) SplitTestUtil\n\t\t// .read(\"LINESTRING (100 230, 100 90, 190 90, 190 120, 30 120, 30 180, 230 180, 230 90)\");\n\n\t\t// LineString line = (LineString) SplitTestUtil\n\t\t// .read(\"LINESTRING (150 310, 150 130, 100 130, 100 200, 300 200, 300 130, 230 130, 230 260)\");\n\t\t// //\n\t\t// LineString line = (LineString) SplitTestUtil\n\t\t// .read(\"LINESTRING (130 280, 130 160, 210 160, 210 190, 170 190, 170 140, 240 140, 240 210, 80 210)\");\n\t\t//\n\t\t// LineString line = (LineString) SplitTestUtil\n\t\t// .read(\"LINESTRING (250 270, 250 150, 110 150, 110 220, 210 220, 210 190, 170 190, 170 240, 130 240, 130 180, 90 180)\");\n\t\t// //\n\t\t// LineString line = (LineString)\n\t\t// SplitTestUtil.read(\"LINESTRING (110 260, 280 260, 280 150, 110 150, 110 260)\");\n\t\t//\n\t\t// LineString line = (LineString)\n\t\t// SplitTestUtil.read(\"LINESTRING (150 260, 270 260, 270 180, 160 180, 160 270)\");\n\t\t//\n\t\tLineString line = (LineString) SplitTestUtil\n\t\t\t\t\t.read(\"LINESTRING (260 280, 260 140, 130 140, 130 220, 90 220, 90 190, 180 190, 180 280, 240 280, 240 220, 150 220, 150 160, 240 160, 240 190, 180 190)\");\n\n\t\tList<LinearRing> ringList = new ArrayList<LinearRing>();\n\n\t\tGeometry multiLines = line.union();\n\n\t\tPolygonizer polygonizer = new Polygonizer();\n\t\tpolygonizer.add(multiLines);\n\t\tCollection<Polygon> polyCollection = polygonizer.getPolygons();\n\n\t\t// add the rings to the ringList.\n\t\tfor (Polygon pol : polyCollection) {\n\n\t\t\tCoordinate[] polCoord = pol.getExteriorRing().getCoordinates();\n\n\t\t\tLinearRing polygonRing = line.getFactory().createLinearRing(polCoord);\n\t\t\tringList.add(polygonRing);\n\t\t}\n\t\t//\n\t\t// for (Geometry ring : ringList) {\n\t\t//\n\t\t// System.out.println(ring.toString());\n\t\t// }\n\n\t\t// test result=ok\n\n\t}", "title": "" }, { "docid": "5897d867ccd6ff25a0e9d43215c2eb67", "score": "0.537716", "text": "public static void drawRoof(Graphics g){\n\n\n g.setColor(Color.red);\n int x[] = { 80,280,180 };\n\n // y coordinates of vertices\n int y[] = { 100,100,50,50 };\n\n // number of vertices\n int numberofpoints = 3;\n\n // set the color of line drawn to blue\n g.setColor(Color.red);\n\n // draw the polygon using drawPolygon function / makes the roof\n g.setColor(Color.blue);\n g.drawPolygon(x, y, numberofpoints);\n g.setColor(Color.red);\n g.fillPolygon(x,y, numberofpoints);\n\n\n}", "title": "" }, { "docid": "35c98c026c8d13f8c4e16be2f43c7b30", "score": "0.53763324", "text": "public List<Intersectable> getGeometries(){\r\n return geometries;\r\n }", "title": "" }, { "docid": "dc06ea8fc3f9e541fa010dc77ed55c27", "score": "0.53732693", "text": "private static Geometry checkShape(GMLShape shape) throws ValidationException {\n Geometry polygon = JTSTools.shapeToPolygon(shape);\n if (!polygon.isValid()) {\n throw new ValidationException(shape.getID(), \"invalid shape\");\n }\n if (!polygon.contains(polygon.getCentroid())) {\n throw new ValidationException(shape.getID(), \"Shape doesn't contain centroid.\");\n }\n return polygon;\n }", "title": "" }, { "docid": "34238fb82bd15ac57fc15ea2fdb6b0ec", "score": "0.53732085", "text": "public GeoJsonLineString() {}", "title": "" }, { "docid": "14d07b8e6bf7dbebf297c16f970cd8ed", "score": "0.5365658", "text": "public interface SceneShape\n{\n /**\n Draws this item.\n @param g2 the graphics context\n */\n void draw(Graphics2D g2);\n /**\n Draws the selection adornment of this item.\n @param g2 the graphics context\n */\n void drawSelection(Graphics2D g2);\n /**\n Sets the selection state of this item.\n @param b true if this item is selected\n */\n void setSelected(boolean b);\n /**\n Gets the selection state of this item.\n @return true if this item is selected\n */\n boolean isSelected();\n /**\n Translates this item by a given amount.\n @param dx the amount to translate in x-direction\n @param dy the amount to translate in y-direction\n */\n void translate(int dx, int dy);\n /**\n Tests whether this item contains a given point.\n @param p a point\n @return true if this item contains p\n */\n boolean contains(Point2D p);\n\n Rectangle getPath();\n\n}", "title": "" }, { "docid": "5bc11b1ed9916bc5371c20bb90684543", "score": "0.5358671", "text": "public SimplePolygon(ArrayList<Vertex> vertices)\n {\n this.vertices = new ArrayList<>(vertices);\n this.edges = new ArrayList<>();\n for (int i = 0; i < this.vertices.size(); i++)\n {\n edges.add(Edge.polygonalEdge(this.vertices.get(i),this.vertices.get((i+1)%this.vertices.size())));\n }\n if (vertices.size()==0)\n return;\n top = bottom = this.vertices.get(0);\n for (Vertex vertex:this.vertices)\n {\n if (vertex.getY()<bottom.getY())\n bottom = vertex;\n if (vertex.getY()>top.getY())\n top = vertex;\n vertex.setColor(colors[0]);\n }\n clockwise = left(bottom.getCoordsArr(),bottom.getPrev().getCoordsArr(),bottom.getNext().getCoordsArr());\n if (clockwise)\n {\n System.out.println(\"Reverse Reverse\" + this);\n Collections.reverse(this.vertices);\n Collections.reverse(this.edges);\n for (Edge edge : this.edges)\n {\n edge.invert();\n }\n for (Vertex vertex: this.vertices)\n vertex.invert();\n }\n clockwise = false;\n }", "title": "" }, { "docid": "07348fa25baf9355b12a2a30684fa766", "score": "0.5340595", "text": "@Override\r\n\tprotected void paintShape(Pair<StandardEntity, AKSpeak> r, Polygon shape,\r\n\t\t\tGraphics2D g) {\n\t\t\r\n\t}", "title": "" }, { "docid": "641ffd4b30bb0c3f721637a7fb62f5a1", "score": "0.5332972", "text": "public Shape getShape();", "title": "" } ]
66eb1fd6ebb3ae3430750946b1989e74
User clicked the "Keep editing" button, so dismiss the dialog and continue editing the product.
[ { "docid": "885b3a6e8fa6cc9453ad05aab48ba0b4", "score": "0.0", "text": "public void onClick(DialogInterface dialog, int id) {\n if (dialog != null) {\n dialog.dismiss();\n }\n }", "title": "" } ]
[ { "docid": "6b110222700c352f424963adfc3a6eac", "score": "0.66474795", "text": "private void editConfirm() {\n\t\tmodel.changeIngredient( \n\t\t\t\tindex,\n\t\t\t\tview.ingreNameText.getText(),\n\t\t\t\tFloat.valueOf(view.ingreAmountText.getText()),\n\t\t\t\tview.ingreUnitBox.getValue());\n\t\tview.loadIngredientTable();\n\t\tview.editPop.close();\n\t}", "title": "" }, { "docid": "2b574560f29d4d8c1ed107bc67047d4f", "score": "0.6641759", "text": "private void actionDiscard() {\n if (mEditingStates.size() > 0) {\n // There's an edit in progress, so ask for confirmation\n mClosingTheApp = false;\n showConfirmDiscardDialogFragment();\n } else {\n // No edit in progress, so just exit edit mode\n exitEditMode();\n }\n }", "title": "" }, { "docid": "b502312671da2873802ae1320ec2d14a", "score": "0.6588118", "text": "@Override\r\n \tpublic void editProduct() {\r\n \t\tif (!canEditProduct()) {\r\n \t\t\tthrow new IllegalStateException(\"Unable to edit Product\");\r\n \t\t}\r\n \t\tgetView().displayEditProductView();\r\n \t}", "title": "" }, { "docid": "e56ddd398d26a69643e8d47e8ad78db6", "score": "0.64409417", "text": "@Override\n public void dismiss() {\n KtRentalApplication.changeRepair();\n KtRentalApplication.getInstance().queryMaintenacePlan();\n super.dismiss();\n }", "title": "" }, { "docid": "f7d3f08c6de4ae04c4be8761e5c292f6", "score": "0.6422531", "text": "private void doCancel()\n {\n if ( modified )\n {\n int r = JOptionPane.showConfirmDialog( this, TapDesignerTranslate.text( \"parametersModified\" ), TapDesignerTranslate.text( \"warning\" ), JOptionPane.WARNING_MESSAGE, JOptionPane.YES_NO_OPTION );\n\n if ( r == JOptionPane.YES_OPTION )\n modified = false;\n\n }\n\n if ( !modified )\n {\n getBackValues();\n editDialogClosed();\n }\n }", "title": "" }, { "docid": "22bc1851e8d9251cf47e2c24b4f74ede", "score": "0.6366734", "text": "@FXML\r\n private void onCancel(ActionEvent event) {\n Alert alertConfirm = new Alert(Alert.AlertType.CONFIRMATION);\r\n alertConfirm.setTitle(\"CONFIRM CANCEL\");\r\n alertConfirm.setContentText(\"Press okay to discard changes?\");\r\n Optional<ButtonType> result = alertConfirm.showAndWait();\r\n \r\n if (result.get() == ButtonType.CANCEL){\r\n //does not discard changes, returns to add screen\r\n return;\r\n }\r\n else{\r\n //discards changes and returns to main screen\r\n }\r\n \r\n\r\n\r\n //retrieves current stage from interface, and terminates it\r\n \r\n stage = (Stage)anAddProduct.getScene().getWindow();\r\n stage.close();\r\n }", "title": "" }, { "docid": "ddce85ca9d9b57bb9f06e56524e40246", "score": "0.62805146", "text": "private void CancelButtonHandler() {\n\t\tHideAddEditDialog();\n\t}", "title": "" }, { "docid": "7470ead34039359376ffcb3d5da56c80", "score": "0.6247805", "text": "@Override\n public boolean onBackPressed() {\n // If there are unsaved changes, setup a dialog to warn the user\n if (productHasChanged) {\n // Create a click listener to handle the user confirmation that\n // changes should be discarded\n DialogInterface.OnClickListener discardButtonClickListener =\n new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n // User clicked \"Discard\" button, finish this fragment\n getFragmentManager().popBackStack();\n }\n };\n // Show a dialog that notifies the user they have unsaved changes\n showUnsavedChangesDialog(discardButtonClickListener);\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "c5efb471e081fa8682f7f1e2617b57e0", "score": "0.62388694", "text": "public void doCancel() {\n\t\t\t\t\t\t\t\t\t\tLogUtil.d(\"Setting\", \"false\");\n\t\t\t\t\t\t\t\t\t\thd.dialog.dismiss();\n\t\t\t\t\t\t\t\t\t}", "title": "" }, { "docid": "7d6eb0c4bca301d685b05f78b5ba3345", "score": "0.62064326", "text": "@Override\n public void onClick(View v) {\n updateDialog.dismiss();\n }", "title": "" }, { "docid": "c09f5003ac84618b40b87274862ebce7", "score": "0.6202247", "text": "public void actionPerformed(ActionEvent e) {\n\n\t\tif (e.getSource() == jbCancel) {\n\t\t\tthis.setVisible(false);\n\t\t}\n\n\t\tString number = jtLimitation.getText();// 获取输入的库存警戒值\n\n\t\tif (number.length() > 0) {// 1 输入框中有输入\n\t\t\tjbSure.setEnabled(true);\n\t\t\tif (e.getSource() == jbSure || e.getSource() == jtLimitation) {// 1.1\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// 点击了确认修改按钮或者按Enter键确认结束输入库存警戒值\n\t\t\t\tString question = \"确认修改库存警戒值吗?\";\n\t\t\t\tJOptionPane.showMessageDialog(this, question, \"警告\", JOptionPane.QUESTION_MESSAGE);\n\t\t\t\tString m = \"库存警戒值将被修改!\";\n\t\t\t\tint ok = JOptionPane.showConfirmDialog(this, m, \"确认\", JOptionPane.YES_NO_OPTION,\n\t\t\t\t\t\tJOptionPane.INFORMATION_MESSAGE);\n\t\t\t\tif (ok == JOptionPane.YES_OPTION) {\n\t\t\t\t\t// 确认修改库存警戒值,当前窗口关闭,更改navigation界面上输入框中的值;\n\t\t\t\t\tinventoryController.setLimit(id, Double.parseDouble(number));\n\t\t\t\t\tthis.setVisible(false);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (e.getSource() == jbCancel) {\n\t\t\t\tthis.setVisible(false);\n\t\t\t}\n\n\t\t} else {// 2 输入框中没有输入\n\t\t\tif (e.getSource() == jbSure) {// 选择确认按钮提示警告\n\n\t\t\t\tString warning = \"请输入更改后的警戒值!\";\n\t\t\t\tJOptionPane.showMessageDialog(this, warning, \"警告\", JOptionPane.WARNING_MESSAGE);\n\t\t\t\tjbSure.setEnabled(false);\n\t\t\t} else if (e.getSource() == jbCancel) {// 选择取消按钮返回上一界面,输入值不保存\n\n\t\t\t\tthis.setVisible(false);\n\t\t\t}\n\n\t\t}\n\n\t}", "title": "" }, { "docid": "428b50d683978ecbbe80258e4c616738", "score": "0.61737776", "text": "@Override\n public void onPositiveButtonClicked() {\n\n dialogbox.dismiss();\n //End : change on 13th Feb 2018\n }", "title": "" }, { "docid": "ed056ef18916c212c9c3c23761070969", "score": "0.61665887", "text": "@Override\n public void doCancel() {\n dialog.dismiss();\n }", "title": "" }, { "docid": "6f394157f82e20322e7cd806821e046e", "score": "0.6148373", "text": "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tEditItemStockDialog dialog = new EditItemStockDialog();\n\t\t\t\tdialog.context = getContext();\n\t\t\t\t// sets the args\n\t\t\t\tdialog.setArguments(getArguments());\n\t\t\t\t// shows the dialog\n\t\t\t\tassert getFragmentManager() != null;\n\t\t\t\tdialog.show(getFragmentManager(),String.format(getResources().getString(R.string.edit_stock_for),product.getName()));\n\t\t\t}", "title": "" }, { "docid": "5c5c2eb64a01445a57d01e2b0efb437b", "score": "0.61381876", "text": "@Override\r\n \tpublic boolean canEditProduct() {\r\n \t\treturn getView().getSelectedProduct() != null;\r\n \t}", "title": "" }, { "docid": "a2a03e4aa1e268696f69cd83425c4762", "score": "0.60950464", "text": "@Override\n public void onBackPressed() {\n if (!mProductHasChanged) {\n super.onBackPressed();\n return;\n }\n\n // Otherwise if there are unsaved changes, setup a dialog to warn the user.\n // Create a click listener to handle the user confirming that changes should be discarded.\n DialogInterface.OnClickListener discardButtonClickListener =\n new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n // User clicked \"Discard\" button, close the current activity.\n finish();\n }\n };\n\n // Show dialog that there are unsaved changes\n showUnsavedChangesDialog(discardButtonClickListener);\n }", "title": "" }, { "docid": "a039da648e8b71b96319ee1c63733ab7", "score": "0.6094386", "text": "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n // if result code 100\n if (resultCode == 100) {\n // if result code 100 is received\n // means user edited/deleted product\n // reload this screen again\n Intent intent = getIntent();\n finish();\n startActivity(intent);\n }\n\n }", "title": "" }, { "docid": "43ef0e17bd08a79ab8792133724c338d", "score": "0.60832864", "text": "private void showUnsavedChangesDialog(DialogInterface.OnClickListener discardButtonClickListener) {\n // Create an AlertDialog.Builder and set the message, and click listeners\n // for the positive and negative buttons on the dialog\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n builder.setMessage(R.string.unsaved_changes_dialog_msg);\n // If discard, send callback to the discardButtonClickListener\n builder.setPositiveButton(R.string.discard, discardButtonClickListener);\n builder.setNegativeButton(R.string.keep_editing, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User clicked the \"Keep editing\" button, so dismiss the dialog\n // and continue editing the product\n if (dialog != null) {\n dialog.dismiss();\n }\n }\n });\n // Create and show the AlertDialog\n AlertDialog alertDialog = builder.create();\n alertDialog.show();\n }", "title": "" }, { "docid": "e92b522a63dd3218c7d2934bb7b3f06b", "score": "0.60728097", "text": "private void closeDialog() {\r\n \r\n dlgEditRepRequirment.setVisible(false);\r\n }", "title": "" }, { "docid": "c4794ae4121eec61653434b18b174cca", "score": "0.60715145", "text": "@Override\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\tif(editPanel!=null && editPanel.isShowing()){\n\t\t\t\t//JOptionPane.showMessageDialog(Uploader.this, \"Not finishing your edittiing\");\n\t\t\t\tif (JOptionPane.showConfirmDialog(Uploader.this, \"Are you sure to quit editting?\", \"WARNING\",\n\t\t\t\t JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION) {\n\t\t\t\t // yes option\n\t\t\t\t\tEditData();\n\t\t\t\t} else {\n\t\t\t\t // no option\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if (editPanel==null || !editPanel.isShowing()){\n\t\t\t\tEditData();\n\t\t\t}\n\t\t\t\n\t\t\t}", "title": "" }, { "docid": "856111fdd220a2bc53206e44ebf9f9c3", "score": "0.6070203", "text": "@FXML\n void modifyProductCancelBtn(ActionEvent event) throws IOException {\n // Discard changes to the copy part list\n copyAssociatedParts.clear();\n\n Parent mainLoader = FXMLLoader.load(getClass().getResource(\"MainForm.fxml\"));\n Scene mainScene = new Scene(mainLoader);\n\n Stage window = (Stage) ((Node)event.getSource()).getScene().getWindow();\n window.setScene(mainScene);\n window.show();\n }", "title": "" }, { "docid": "5c483ba0f1996d639d7172e45b4a1a6b", "score": "0.603421", "text": "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n // if result code 100\n if (resultCode == 100) {\n // if result code 100 is received\n // means user edited/deleted product\n // reload this screen again\n Intent intent = getIntent();\n finish();\n startActivity(intent);\n }\n }", "title": "" }, { "docid": "c48b21fda83462913eb854c0eaea7ebc", "score": "0.6022333", "text": "private void showUnsavedChangesDialog(\n DialogInterface.OnClickListener discardButtonClickListener) {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(R.string.unsaved_changes_dialog_msg);\n builder.setPositiveButton(R.string.discard, discardButtonClickListener);\n builder.setNegativeButton(R.string.keep_editing, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User clicked the \"Keep editing\" button, so dismiss the dialog\n // and continue editing the product.\n if (dialog != null) {\n dialog.dismiss();\n }\n }\n });\n\n // Create and show the AlertDialog\n AlertDialog alertDialog = builder.create();\n alertDialog.show();\n }", "title": "" }, { "docid": "15699ac667174eeb26c9b1e5bfa97e8d", "score": "0.5993038", "text": "private void cancelOrder() \r\n\t{\r\n\t\t//create alert\r\n\t\tAlert cancelAlert = new Alert(AlertType.CONFIRMATION);\r\n\r\n\t\tcancelAlert.setContentText(\"You have cancelled the order process. The order has not been processed. Returning to the Order Menu\");\r\n\r\n\t\tcancelAlert.show();\r\n\r\n\t\t//close the stage\r\n\t\tconfirmStage.close();\r\n\t}", "title": "" }, { "docid": "630e4abb874a0e3356f11760a68464a7", "score": "0.59512985", "text": "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to a click on the \"Save\" menu option\n case R.id.action_save:\n saveProduct();\n // This exits activity\n return true;\n // Respond to a click on the \"Up\" arrow button in the app bar\n case android.R.id.home:\n // If the product hasn't changed, continue with navigating up to parent activity\n // which is the {@link CatalogActivity}.\n if (!mProductHasChanged) {\n NavUtils.navigateUpFromSameTask(EditorActivity.this);\n return true;\n }\n\n // Otherwise if there are unsaved changes, setup a dialog to warn the user.\n // Create a click listener to handle the user confirming that\n // changes should be discarded.\n DialogInterface.OnClickListener discardButtonClickListener =\n new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n // User clicked \"Discard\" button, navigate to parent activity.\n NavUtils.navigateUpFromSameTask(EditorActivity.this);\n }\n };\n\n // Show a dialog that notifies the user they have unsaved changes\n showUnsavedChangesDialog(discardButtonClickListener);\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "title": "" }, { "docid": "4b2c6a61740034bfdb08ccee91f09326", "score": "0.59323084", "text": "@FXML\n private void cancelHandler() {\n editStage.close();\n }", "title": "" }, { "docid": "45ef8f7fe89c36ba3f69509ac2cc5822", "score": "0.59227145", "text": "public void editSingleProduct(SingleProduct p) {\n Intent intent = new Intent(this, EditProduct.class);\n intent.putExtra(\"id\", p.getId());\n intent.putExtra(\"action\", \"edit\");\n startActivityForResult(intent, EDIT_PRODUCT_REQUEST);\n }", "title": "" }, { "docid": "83569a61ead2971dd01d6e3153f302c4", "score": "0.5921562", "text": "public void processCancelButton(ActionEvent actionEvent) {\n\n // Check if the old entity exists.\n if (this.oldEntity != null && this.oldEntity.getId() != null) {\n\n // Set the entity to the old entity.\n this.entity = this.oldEntity.copy();\n\n // Clear the old entity.\n this.oldEntity = null;\n\n // Put the perspective on the session.\n SessionUtility.putValue(SessionKey.PERSPECTIVE, Perspective.VIEW);\n }\n else {\n\n // Set the entity to a new entity.\n this.entity = this.getNewEntity();\n\n // Put the perspective on the session.\n SessionUtility.putValue(SessionKey.PERSPECTIVE, Perspective.FRESH);\n }\n\n // Put the button/link controller on the session.\n SessionUtility.putValue(SessionKey.BUTTON_LINK_CONTROLLER,\n ButtonLinkController.newInstance(\n this.getEntityClass(),\n SessionUtility.getValue(SessionKey.PERSPECTIVE, Perspective.class)));\n\n // Store the entity on the session.\n this.storeEntity();\n }", "title": "" }, { "docid": "123d795b23d113d1b9602ffa589798a6", "score": "0.5895885", "text": "@Override\r\n public void actionPerformed(ActionEvent e) {\n if (isModified()) {\r\n switch (dialogConfirmSaveFile()) {\r\n /*\r\n * The user wants to save the file, so let them do so. We\r\n * will exit the program only on a successful save\r\n */\r\n case JOptionPane.YES_OPTION:\r\n if (doSave()) {\r\n System.exit(1);\r\n }\r\n break;\r\n\r\n // The user does not want to save the file, so let's\r\n // just exit\r\n case JOptionPane.NO_OPTION:\r\n System.exit(1);\r\n break;\r\n\r\n case JOptionPane.CANCEL_OPTION:\r\n // Don't do anything\r\n break;\r\n }\r\n } else {\r\n System.exit(1);\r\n }\r\n }", "title": "" }, { "docid": "fa036e169a7cba48bc510e2133c48ab7", "score": "0.58934736", "text": "public void doExit() {\n\r\n if (isDataChanged()) {\r\n\r\n int num = JOptionPane.showConfirmDialog(this, \"当前页面数据已修改,是否要保存\", \"保存确认\", 0);\r\n\r\n if (num == JOptionPane.YES_OPTION) {\r\n\r\n if (!doSave()) {\r\n\r\n return;\r\n\r\n }\r\n\r\n }\r\n\r\n }\r\n if (this.parent instanceof SfDataFlowDialog) {\r\n ((SfDataFlowDialog) parent).removeTab(this, compoId);\r\n } else {\r\n this.parent.dispose();\r\n }\r\n }", "title": "" }, { "docid": "1bdd01e823f98dea660f057e1196dc00", "score": "0.5879515", "text": "@Override\n public void onClick(DialogInterface dialog, int which) {\n double bidAmount = Double.parseDouble(EnterBid.getText().toString());\n User bidder = UserController.getCurrentUser();\n Bid bid = new Bid(bidder.getUsername(), bidAmount);\n item.addBid(bid);\n Toast.makeText(ViewItem.this, \"Bid Placed.\", Toast.LENGTH_SHORT).show();\n\n //TODO Causes the same error as the update item call from the edit mode\n ItemController.UpdateItem updateItem = new ItemController.UpdateItem();\n updateItem.execute(item);\n finish();\n }", "title": "" }, { "docid": "5a30d37bb49c07deacfbc4a25e801529", "score": "0.5876782", "text": "private boolean edit(Effect effect)\r\n\t{\r\n\t\tDialog d = new Dialog();\r\n\t\td.setTitle(\"Edit Item\");\r\n\t\td.getDialogPane().getButtonTypes().addAll(ButtonType.APPLY, ButtonType.OK);\t\t\r\n\t\td.getDialogPane().setContent(effect.toEditPane());\r\n\t\t\r\n\t\t// Add event filter for valid inputs\r\n\t\tButton ok = (Button) d.getDialogPane().lookupButton(ButtonType.OK);\r\n\t\tok.addEventFilter(ActionEvent.ACTION, event -> {\r\n\t\t\t// Check if the input is valid and save it\r\n\t\t\tif (! effect.validateAndStore())\t\r\n\t\t\t\tevent.consume();\r\n\t\t\t}\r\n\t\t);\r\n\t\t\r\n\t\td.showAndWait()\r\n\t\t\t.filter(response -> response == ButtonType.OK)\r\n\t\t\t.ifPresent(response -> System.out.format(\"Effect: %s%n\", effect.getName()));\r\n\t\t\r\n\t\treturn d.getResult() == ButtonType.OK;\r\n\t}", "title": "" }, { "docid": "6e3631d9e8fc6043652edbf7646b1f68", "score": "0.586251", "text": "public void actionPerformed(ActionEvent event) {\n\t\tif(event.getSource().equals(saveButton)) {\n\t\t\tsaveProduct();\n\t\t}\n\t\t\n\t\tif(event.getSource().equals(saveRunButton)) {\n\t\t\tProduct product = saveProduct();\n\t\t\tProductController productController = new ProductController();\n\t\t\tproductController.runProduct(product, model);\n\t\t} \n\t\t\n\t\tif(event.getSource().equals(closeButton)) {\n\t\t\tSystem.out.println(\"Cancel\");\n\t\t\tframe.dispose();\n\t\t}\n\t}", "title": "" }, { "docid": "57c50be3cf2d7ed68b10821b51d13056", "score": "0.5852923", "text": "protected void closeEdit()\n\t\t{\n\t\t\tm_active = false;\n\n\t\t}", "title": "" }, { "docid": "bbd7222b491478cb8822808cb379dac7", "score": "0.58481586", "text": "@Override\n public void onClick(View v) {\n if (DatabaseHelper.getInstance(mContext).deleteExercise(exerciseToEdit)) {\n // Refresh List\n mCallback.onExerciseEditDone();\n } else {\n Toast.makeText(mContext, \"Stergere exercitiu esuata!\", Toast.LENGTH_SHORT).show();\n }\n\n dismiss();\n }", "title": "" }, { "docid": "16274b7914de0180bfd3841219a27676", "score": "0.582218", "text": "@Override\r\n\tpublic boolean onEditorAction(TextView v, int actionId, KeyEvent event) {\n\t\t if (EditorInfo.IME_ACTION_DONE == actionId) {\r\n\t // Return input text to activity\r\n\t\t\t modelObj =new ModelObj();\r\n\t\t\t modelObj.shopping = mEditText.getText().toString();\r\n\t dismiss();\r\n\t return true;\r\n\t }\r\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "1cdc103f34f55b8cb758d432c1268884", "score": "0.5810105", "text": "@Override\n public boolean onDismiss(String tag, DialogInterface dialog) {\n return false;\n }", "title": "" }, { "docid": "7ce4017487020542de305d112024d4e2", "score": "0.5808771", "text": "@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\n\t\t\t\t\tdismiss(); \n\t\t\t\t\tepc.dismiss();\n\t\t\t\t\t\n\t\t\t\t}", "title": "" }, { "docid": "ae922b6698ab139f4a3f8136bf9a52c1", "score": "0.58024895", "text": "@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\tmConfirmDialog.dismiss();\n\t\t\t\t\t\n\t\t\t\t}", "title": "" }, { "docid": "80f0103ebf72f8a3da77e2b42d9d09b2", "score": "0.58008355", "text": "@Override\n public void onClick(DialogInterface dialog, int which) {\n\n deleteProducts(position);\n dialog.dismiss();\n\n }", "title": "" }, { "docid": "28ae8fca3aef7d6dcbbf107304daa9a5", "score": "0.57979286", "text": "@Override\r\n public void cancel() {\r\n GUIUtilities.saveGeometry(this,\"cipher.additional-information-dialog\");\r\n dispose();\r\n }", "title": "" }, { "docid": "5c329ebf8365678fca9c0ee8557cd770", "score": "0.57904136", "text": "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tdialog.dismiss();\r\n\t\t\t\tsale_count = 1;\r\n\t\t\t}", "title": "" }, { "docid": "9017c01e1dd2a7e0aeddc85f406e4393", "score": "0.57690907", "text": "public void handle(ActionEvent event) {\n ObservableList selection = getProductTable().getSelectionModel().getSelectedItems();\n\n Product type = (Product) selection.get(0);\n\n ModifyProduct product = new ModifyProduct(getThis(), type);\n\n product.getScene().getStylesheets().add(Software1Project.class.getResource(\"project1.css\").toExternalForm());\n product.getStage().setTitle(\"Modify Product\");\n product.getStage().setScene(product.getScene());\n product.getStage().show();\n getPStage().hide();\n }", "title": "" }, { "docid": "e9c69c80380eec7f4701a821b31bab08", "score": "0.57657516", "text": "@FXML\n void onActionDeleteProduct(ActionEvent event) {\n\n Alert warning = new Alert(Alert.AlertType.CONFIRMATION, \"Are you sure you want to delete?\");\n\n Optional<ButtonType> result = warning.showAndWait();\n\n if(result.isPresent() && result.get() == ButtonType.OK) {\n Product selectedItem;\n\n selectedItem = productTableView.getSelectionModel().getSelectedItem();\n deleteProduct(selectedItem);\n\n }\n\n }", "title": "" }, { "docid": "883c96a90d13332dbddf5d4d27df9102", "score": "0.575994", "text": "@FXML\r\n private void cancelButtonAction(ActionEvent event) {\n if (thingAddedToPackage == true) {\r\n dbc.deletePackageFromDB(dbc.getPackageId());\r\n }\r\n Stage stage = (Stage) cancelButton.getScene().getWindow();\r\n stage.close();\r\n }", "title": "" }, { "docid": "f03b5ed601e490cc7f32c77b15f1d74b", "score": "0.5752495", "text": "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\twriteToLog(\"_reject\");\t\n\t\t\t\t if(Globals.edit) nextEditScreen(false);\n\t\t\t\t else nextScreen();\n\t\t\t}", "title": "" }, { "docid": "46a7fd5996f340800e8672b283b33066", "score": "0.5749647", "text": "public void onClick(View v) {\n\t\t\t\tlayout.removeViewAt(currentlySelected);\n\t\t\t\tkeyArray.remove(currentlySelected);\n\n\t\t\t\t// if there's no button on the screen, disable the save button\n\t\t\t\tif (layout.getChildCount() == 0) {\n\n\t\t\t\t}\n\n\t\t\t\tdialog.cancel();\n\t\t\t}", "title": "" }, { "docid": "96f47ae64b1a5000968ee55096329791", "score": "0.5748715", "text": "private void cancelButton_actionPerformed(ActionEvent e)\n\t{\n\t\tcloseDlg();\n\t}", "title": "" }, { "docid": "6b2fd824af40380cd41889c3bc047a6d", "score": "0.5744498", "text": "private void showUnsavedChangesDialog(DialogInterface.OnClickListener discardButtonClickListener) {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(R.string.discard_dialog);\n builder.setPositiveButton(R.string.discard, discardButtonClickListener);\n builder.setNegativeButton(R.string.keep_editing, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n //\"Keep Editing\" clicked, dismiss the dialog\n if(dialogInterface != null){\n dialogInterface.dismiss();\n }\n }\n });\n\n //Create and show the dialog\n AlertDialog alertDialog = builder.create();\n alertDialog.show();\n }", "title": "" }, { "docid": "514fa0961ba32f9be741314a64df2a22", "score": "0.5742001", "text": "private void confirmation() {\n boolean close = true;\n if (dataChanged) {\n // Modal dialog with yes/no button\n int answer = JOptionPane.showConfirmDialog(this,\n \"Are you sure you want to close without saving?\");\n if (answer != JOptionPane.YES_OPTION) {\n close = false;\n }\n }\n\n if (close) {\n tableModel = null;\n setVisible(false);\n dispose();\n }\n }", "title": "" }, { "docid": "09ebf8c46399a343867691dde251b1ed", "score": "0.5737093", "text": "public void cancelPressed(){\n\t\tthis.dismiss();\n\t}", "title": "" }, { "docid": "ea4f160cf9a12f4f378dce2bfe969217", "score": "0.57358885", "text": "public void onClick(DialogInterface dialog, int id){\n String priceText = mItemPriceEditText.getText().toString();\n double price = parseDouble(priceText);\n //Collect current quantity and user input quantity\n String quantityText = mItemQuantityTextView.getText().toString();\n String userUpdateInput = dialogInput.getText().toString();\n int currentQuantity = Integer.parseInt(quantityText);\n int quantityInput;\n try {\n quantityInput = Integer.parseInt(userUpdateInput);\n }catch(NumberFormatException e){\n quantityInput = 0;\n }\n //Since we cant have less than 0 of an item...\n if(currentQuantity - quantityInput < 0){\n dialog.dismiss();\n Toast.makeText(EditorActivity.this, getString(R.string.quantity_less_0),\n Toast.LENGTH_LONG).show();\n }else if(quantityInput >= ItemEntry.MAX_QUANTITY) {\n dialog.dismiss();\n Toast.makeText(EditorActivity.this, getString(R.string.invalid_quantity),\n Toast.LENGTH_LONG).show();\n }else {\n //Update quantity in database to reflect sale\n currentQuantity = currentQuantity - quantityInput;\n ContentValues val = new ContentValues();\n val.put(ItemEntry.COLUMN_QUANTITY, currentQuantity);\n int rowsRpdated = getContentResolver().update(mReceivedItemUri, val,\n null, null);\n if(rowsRpdated > 0){\n //Update inventory total values\n if(price != ItemEntry.NOT_FOR_SALE && price != ItemEntry.FREE) {\n InventoryActivity.totalInventoryValue -= (price * quantityInput);\n }\n }\n }\n }", "title": "" }, { "docid": "0312ac5d8918f7bc6e8a290e0abbfd65", "score": "0.57342404", "text": "@FXML\n private void cancelOrder(ActionEvent event) {\n if (lvOrders.getSelectionModel().getSelectedItem() != null) {\n storeOrders.removeOrder(storeOrders.getOrder(lvOrders.getSelectionModel().getSelectedIndex()));\n updateLVOrders();\n } else {\n Alert alert = new Alert(AlertType.INFORMATION);\n alert.setContentText(\"Please select an order to be cancelled.\");\n alert.show();\n }\n }", "title": "" }, { "docid": "9a18cd7d8ca0445a7951c20080f75993", "score": "0.57339686", "text": "@Override\n\tpublic void onDialogPositiveClick(String tag) {\n\t\tProductDAO.delete(getApplicationContext(), product);\t\t\t\t\t\n\t\talert(\"Product deleted successfully.\");\n\t\talProduct.remove(currRecord-1);//zero base array, subtract 1\n\t\taaProduct.notifyDataSetChanged();\n\t\t\n\t\t//reset current record\n\t\tif (alProduct.size() > 0) {\n\t\t\t//set new current record\n\t\t\tif (currRecord > alProduct.size()) {\n\t\t\t\tcurrRecord = alProduct.size();\t\t\t\t\n\t\t\t}\t\t\t\n\t\t\tproduct = alProduct.get(currRecord-1); //zero base array, subtract 1\n\t\t\t\t\n\t\t}else {\n\t\t\t//Strike product name and make it red to indicate it has been delete for last record deleted.\n\t\t\tproductName.setPaintFlags(productName.getPaintFlags() | Paint.STRIKE_THRU_TEXT_FLAG);\n\t\t\tproductName.setTextColor(Color.RED);\n\t\t\tproductDeleted = true;\t\n\t\t\tcurrRecord = 0;\n\t\t\t//product = new Product(); //No more record left. Set to empty record\n\t\t}\t\t\n\t\tupdateUI();\t\t\t\n\t\t\n\t}", "title": "" }, { "docid": "5d85a7a6774471a4537829026f666e2c", "score": "0.5729214", "text": "private void showUnsavedChangesDialog(\n DialogInterface.OnClickListener discardButtonClickListener) {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(\"Discard your changes and quit editing?\");\n builder.setPositiveButton(\"Discard\", discardButtonClickListener);\n builder.setNegativeButton(\"Keep Editing\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User clicked the \"Keep editing\" button, so dismiss the dialog\n // and continue editing the expense.\n if (dialog != null) {\n dialog.dismiss();\n }\n }\n });\n\n // Create and show the AlertDialog\n AlertDialog alertDialog = builder.create();\n alertDialog.show();\n }", "title": "" }, { "docid": "69e5a5afafdc213bf0079a113cb25197", "score": "0.572395", "text": "public boolean stopEditing() { return getSubWidget().stopEditing(); }", "title": "" }, { "docid": "f9a49bf7582a8f0402309d3b7f26321e", "score": "0.57234496", "text": "private void cancelJButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cancelJButtonActionPerformed\n //close the edit form\n this.dispose();\n }", "title": "" }, { "docid": "9e58753347ca13616044ede2e2e1564f", "score": "0.5723247", "text": "public void onSaveProduct(ActionEvent actionEvent) {\n displayError(0);\n try {\n int id = Integer.parseInt(productIdTxt.getText());\n String name = productNameTxt.getText();\n if (name.equals(\"\")) {\n displayError(2);\n return;\n }\n double price = Double.parseDouble(productPriceTxt.getText());\n int stock = Integer.parseInt(productInvTxt.getText());\n int min = Integer.parseInt(productMinTxt.getText());\n int max = Integer.parseInt(productMaxTxt.getText());\n if(min < 0 || min > max) {\n displayError(3);\n return;\n }\n if(stock < min || stock > max) {\n displayError(4);\n return;\n }\n Product newProduct = new Product(id, name, price, stock, min, max);\n Inventory.addProduct(newProduct);\n for (Part pt : associatedParts) {\n newProduct.addAssociatedPart(pt);\n }\n Inventory.deleteProduct(selectedProduct);\n homeButton.fireEvent(new ActionEvent());\n } catch (Exception e) {\n displayError(1);\n }\n }", "title": "" }, { "docid": "9381d456fecdd1e31eaac2837411c726", "score": "0.5722729", "text": "public void actionPerformed(ActionEvent e) {\n\t\t\t\tfrmCart.setVisible(false);\r\n\t\t\t}", "title": "" }, { "docid": "43cbb1a330f4da3f32711b87d9970da4", "score": "0.5708564", "text": "@Override\n public void onCancel(DialogInterface dialog) {\n dialog.dismiss();\n }", "title": "" }, { "docid": "cfc6557d619c1d3dd472e5c4080a9364", "score": "0.57085454", "text": "@Override\r\n public void onClick(View v) {\n dialog.dismiss();\r\n }", "title": "" }, { "docid": "627debe2d9a15278e8d5b2be7cd870a8", "score": "0.57048607", "text": "@Override\n public void OnItemClick(AlertChooser chooser) {\n chooser.dismiss();\n }", "title": "" }, { "docid": "8697b15bfa456d74fe955ad2a58f83dc", "score": "0.5703488", "text": "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }", "title": "" }, { "docid": "69666c5844150934f5eb262495f9c48f", "score": "0.56951785", "text": "private void okButton_actionPerformed(ActionEvent e)\n\t{\n\t\tif (save())\n\t\t{\n\t\t\tcloseDlg();\n\t\t}\n\t}", "title": "" }, { "docid": "732ffd3a504fcadc183068b9e8978d5c", "score": "0.5691901", "text": "@Override\n\tpublic int promptToSaveOnClose() {\n\t\t\n\t\t//T: Dialog Header\n\t\tMessageDialog dialog = new MessageDialog(getEditorSite().getShell(), _(\"Save changes\"), null,\n\t\t\t\t//T: Dialog Text\n\t\t\t\t_(\"Save changes ?\"), MessageDialog.QUESTION,\n\t\t\t\tnew String[] { IDialogConstants.YES_LABEL, IDialogConstants.NO_LABEL, IDialogConstants.CANCEL_LABEL }, 0);\n\n\t\tfinal int dialogResult = dialog.open();\n\n\t\tif (dialogResult == 0) {\n\t\t\treturn 0;\n\t\t\t// Check, if the number is unique\n\t\t\t/*if (thereIsOneWithSameNumber())\n\t\t\t\treturn ISaveablePart2.CANCEL;\n\t\t\telse\n\t\t\t\treturn ISaveablePart2.YES;*/\n\t\t}\n\t\telse if (dialogResult == 1) {\n\t\t\treturn ISaveablePart2.NO;\n\t\t}\n\t\telse {\n\t\t\treturn ISaveablePart2.CANCEL;\n\t\t}\n\t}", "title": "" }, { "docid": "ec783a6bce7b20d34e76d6c02fac43e2", "score": "0.56839114", "text": "@FXML\r\n private void onDelete(ActionEvent event) {\n try{newPart = tblParts2.getSelectionModel().getSelectedItem(); \r\n newPart.getName();}\r\n catch(NullPointerException e){\r\n MainApp.NoSelected(\"part\");\r\n return;\r\n } \r\n \r\n //asks confirmation to modify part\r\n Alert alertConfirm = new Alert(Alert.AlertType.CONFIRMATION);\r\n alertConfirm.setTitle(\"CONFIRM MODIFY\");\r\n alertConfirm.setContentText(\"Are you sure you want to delete this item?\");\r\n Optional<ButtonType> result = alertConfirm.showAndWait();\r\n \r\n if (result.get() == ButtonType.CANCEL){\r\n //does not commit changes, returns to modify screen\r\n return;\r\n }\r\n else{\r\n //commits changes\r\n }\r\n \r\n \r\n newPart = tblParts1.getSelectionModel().getSelectedItem(); \r\n\r\n newProduct.deleteAssociatedPart(newPart); \r\n }", "title": "" }, { "docid": "c148ec2fcefdd6da72a252d7db9c671a", "score": "0.5681635", "text": "protected void close()\n \t{\n \t\tlog.info(\"M_Product_ID=\" + m_M_Product_ID);\n \n \t\tif (m_M_Product_ID > 0)\n \t\t{\n \t\t\tp_posPanel.f_curLine.setM_Product_ID(m_M_Product_ID);\n \t\t\tp_posPanel.f_curLine.setPrice(m_Price);\n \t\t\t// @emmie - add catch exception for credit exceeded\n \t\t\ttry {\n \t\t\t p_posPanel.f_curLine.saveLine();\n \t\t\t} catch (AdempiereException ex) {\n \t\t\t ADialog.error(p_posPanel.getWindowNo(), this, ex.getMessage());\n \t\t\t return;\n \t\t\t}\n \t\t}\n \t\telse\n \t\t{\n \t\t\tp_posPanel.f_curLine.setM_Product_ID(0);\n \t\t\tp_posPanel.f_curLine.setPrice(Env.ZERO);\n \t\t}\n \t\tdispose();\n \t}", "title": "" }, { "docid": "3d512d4f42a9064c93a4961915af3572", "score": "0.5681616", "text": "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tchangeAdd();\n\t\t\t\tdialog.dismiss();\n\t\t\t}", "title": "" }, { "docid": "1c1956a241fe673d2e36290eceb83c15", "score": "0.5678114", "text": "@FXML\n void onActionModifyProducts(ActionEvent event) throws IOException {\n //If no products selected, alert and return to MainScreen\n if (mainmenuproductsTableView.getSelectionModel().getSelectedItem() == null) {\n Alert alert = new Alert(Alert.AlertType.WARNING);\n alert.setTitle(\"Warning Dialog\");\n alert.setContentText(\"ERROR: No product selected\");\n alert.showAndWait();\n } else {\n FXMLLoader loader = new FXMLLoader();\n loader.setLocation(getClass().getResource(\"/view/ModifyProduct.fxml\"));\n loader.load();\n\n ModifyProduct MProdController = loader.getController();\n MProdController.sendProduct(mainmenuproductsTableView.getSelectionModel().getSelectedItem());\n\n stage = (Stage) ((Button) event.getSource()).getScene().getWindow();\n Parent scene = loader.getRoot();\n stage.setScene(new Scene(scene));\n stage.show();\n }\n }", "title": "" }, { "docid": "58fc8742e5cbd48337902a2ad6f10373", "score": "0.5676795", "text": "@Override\r\n public void onClick(View v) {\n dialog.dismiss();\r\n }", "title": "" }, { "docid": "8dec74b7f7f808edb2566839a7b669a1", "score": "0.5675102", "text": "@Override\n public void onClick(View v) {\n dialog.dismiss();\n\n }", "title": "" }, { "docid": "d9abf08704ed160c71e444845c146fc8", "score": "0.567274", "text": "public void closeEditHandler(View v){\n finish();\n }", "title": "" }, { "docid": "93b3331c0edd08fa8dd8595cdc5ada0b", "score": "0.567143", "text": "public void onSubmit(View v) {\n List<ProductDto> list = FPSDBHelper.getInstance(this).getAllProductDetails();\n boolean valueEntered = isValueEntered(list);\n boolean valueCorrect = isValueCorrect(list);\n if (!valueEntered) {\n Util.messageBar(this, getString(R.string.enterAdjustQuantity));\n return;\n }\n if (!valueCorrect) {\n Util.messageBar(this, getString(R.string.enterAdjustQuantityWrong));\n return;\n }\n /* StockAdjustmentDialog stockAdjustmentDialog = new StockAdjustmentDialog(this, prods);\n stockAdjustmentDialog.show();*/\n\n }", "title": "" }, { "docid": "a2e7cd4a5182e2779d49c87f74b8f6d4", "score": "0.56684005", "text": "@Override\n public void onClick(View v) {\n new MaterialAlertDialogBuilder(itemView.getContext())\n .setTitle(v.getResources().getString(R.string.dialog_title_delete, product.name))\n .setMessage(R.string.dialog_delete_message)\n .setNegativeButton(R.string.dialog_option_cancel, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }\n })\n .setPositiveButton(R.string.dialog_option_delete, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n // Soft delete product\n product.status = 0;\n AppDatabase.getAppDatabase(itemView.getContext()).productDAO().updateProduct(product);\n products.remove(product);\n notifyDataSetChanged();\n dialog.dismiss();\n // Display message\n Toast.makeText(v.getContext(),\n v.getContext().getResources().getString(R.string.toast_delete_success,\n product.name), Toast.LENGTH_SHORT).show();\n }\n }).show();\n }", "title": "" }, { "docid": "44bf798a4aa8f22be966c009100b0c22", "score": "0.56662035", "text": "@Override\n\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\tdlg.dismiss();\n\t\t\t\t\t\t}", "title": "" }, { "docid": "3b3ca72e2cc0550a400b4af109fdca31", "score": "0.5664575", "text": "private void showUnsavedChangesDialog(\n DialogInterface.OnClickListener discardButtonClickListener) {\n // Create an AlertDialog.Builder and set the message, and click listeners\n // for the postivie and negative buttons on the dialog.\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(R.string.unsaved_changes_dialog_msg);\n builder.setPositiveButton(R.string.discard, discardButtonClickListener);\n builder.setNegativeButton(R.string.keep_editing, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User clicked the \"Keep editing\" button, so dismiss the dialog\n // and continue editing the pet.\n if (dialog != null) {\n dialog.dismiss();\n }\n }\n });\n\n // Create and show the AlertDialog\n AlertDialog alertDialog = builder.create();\n alertDialog.show();\n }", "title": "" }, { "docid": "d83215cf5b9b65e049261c7270a49045", "score": "0.56643635", "text": "public void executeEdit(){\n\t\tObject[] dialogs = {mainContainer};\r\n\t\tObject[] buttons = {\"Update\",\"Cancel\"};\r\n\t\t\r\n\t\tint okOption = JOptionPane.showOptionDialog(null, dialogs, \"Insert Dialog\",\r\n\t\t JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE, null, buttons,\r\n\t\t null);\r\n\t\tif(okOption==JOptionPane.OK_OPTION){\r\n\t\t\t//connect to database and execute update\r\n\t\t\tupdateDepQuery = \"UPDATE HR.DEPARTMENT SET NAME=\"\r\n\t\t\t+\"'\"+newDepartmentNameText.getText()+\"'\"\r\n\t\t\t+\" WHERE DEPARTMENT_ID=\"+\"'\"+departmentID+\"'\";\r\n\t\t\t\r\n\t\t\tdbBrowse.executeUpdate(dbConnector, updateDepQuery);\r\n\t\t}else if(okOption==JOptionPane.CANCEL_OPTION){\r\n\t\t\treturn;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "f6a4c0d6e3e871358a468fdd77ec162b", "score": "0.5662061", "text": "@FXML\r\n private boolean handleEditBuyer() {\r\n \t\r\n \ttry {\r\n // Load the fxml file and create a new stage for the popup dialog.\r\n FXMLLoader loader = new FXMLLoader();\r\n loader.setLocation(MainStage.class.getResource(\"userInterface/fxml/EditBuyerPane.fxml\"));\r\n AnchorPane page = (AnchorPane) loader.load();\r\n\r\n // Create the dialog Stage.\r\n Stage dialogStage = new Stage();\r\n dialogStage.setTitle(\"Edit Person\");\r\n dialogStage.initModality(Modality.WINDOW_MODAL);\r\n dialogStage.initOwner(MainStage.getPrimaryStage());\r\n Scene scene = new Scene(page);\r\n dialogStage.setScene(scene);\r\n\r\n // Set the person into the controller.\r\n DialogBoxEditBuyer controller = loader.getController();\r\n controller.setDialogStage(dialogStage);\r\n controller.setActor();\r\n\r\n // Show the dialog and wait until the user closes it\r\n dialogStage.showAndWait();\r\n return controller.isOkClicked();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n return false;\r\n }\r\n }", "title": "" }, { "docid": "61a824a4178dac2ac7f88a8623dac981", "score": "0.5657909", "text": "private void doCancel() {\r\n\t\tdoResetInitValues();\r\n\t\tdoReadOnly();\r\n\t\tbtnCtrl.setInitEdit();\r\n\t}", "title": "" }, { "docid": "3947ab0c93fdde33b5ef482a44960439", "score": "0.565731", "text": "@Override\n public void onBackPressed() {\n // If the inventory hasn't changed, continue with handling back button press\n if (!InventoryHasChanged) {\n super.onBackPressed();\n return;\n }\n\n // Otherwise if there are unsaved changes, setup a dialog to warn the user.\n // Create a click listener to handle the user confirming that changes should be discarded.\n\n DialogInterface.OnClickListener discardButtonClickListener =\n new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n // User clicked \"Discard\" button, close the current activity.\n finish();\n }\n };\n\n // Show dialog that there are unsaved changes\n showUnsavedChangesDialog(discardButtonClickListener);\n }", "title": "" }, { "docid": "b35a2040ed024367939ed9aac0d68e2c", "score": "0.5654903", "text": "@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tsuper.onActivityResult(requestCode, resultCode, data);\n\t if (requestCode == 1) {\n\t if(resultCode == RESULT_OK){\n\t //Update UI with updated data\n\t \tint productId = data.getIntExtra(\"ProductId\", product.getProductId());\n\t \tproduct = ProductDAO.loadProduct(getApplicationContext(), productId);\n\t \tthis.updateUI();\t \n\t }\n\t if (resultCode == RESULT_CANCELED) {\n\t //Do nothing to UI\n\t }\n\t }\t\t\n\t}", "title": "" }, { "docid": "a4ff3deebb1f06332c07c9e96c2b7395", "score": "0.5650789", "text": "@Override\n public void onClick(View v) {\n dlg.dismiss();\n }", "title": "" }, { "docid": "bdc52f984fcd682a64deeb0f64fa22b7", "score": "0.56506413", "text": "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t\tdialog.dismiss();\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "7392628334ada2079c376116a7b83331", "score": "0.5650032", "text": "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }", "title": "" }, { "docid": "031137cc4e879ff19307fa11260bf6d4", "score": "0.5644492", "text": "public void actionPerformed(ActionEvent evt) {\n\t\t\tProperties emptyProductInfo = new Properties();\n\n\t\t\tString catalogType = maintainProductCatalog.getCatalogGroup();\n\t\t\taddEditProduct = new AddEditProduct(GuiUtil.ADD_NEW, catalogType,\n\t\t\t\t\temptyProductInfo);\n\t\t\tmaintainProductCatalog.setVisible(false);\n\t\t\tmainFrame.getDesktop().add(addEditProduct);\n\t\t\taddEditProduct.setVisible(true);\n\n\t\t}", "title": "" }, { "docid": "f01966ffcb757b12ab79ec8c3e17ef7a", "score": "0.56443745", "text": "public void handleCancel(ActionEvent event) {\n stage.close();\n ((Stage) session.get(\"oldStage\")).show();\n }", "title": "" }, { "docid": "9bc1374acfef2d0af9da5c649e862cb3", "score": "0.56419635", "text": "private void showConfirmDiscardDialogFragment() {\n ConfirmDiscardDialogFragment frag = new ConfirmDiscardDialogFragment();\n mDialogFragment = frag;\n frag.setYesListener(new View.OnClickListener() {\n\n @Override\n public void onClick(View v) {\n mDialogFragment.dismiss();\n if (mClosingTheApp) {\n finish();\n } else {\n exitEditMode();\n }\n }\n\n });\n frag.show(getFragmentManager(), TAG_DIALOG_FRAGMENTS);\n }", "title": "" }, { "docid": "929ab514ec773741c3822a5ed97cf086", "score": "0.56394225", "text": "@End\n public String confirm() {\n \n // save sale itmese now\n em.persist(saleItems);\n return null;\n }", "title": "" }, { "docid": "d58bbc1fb0623fae0d642b454d257664", "score": "0.563843", "text": "public void unconsumeProduct(MenuItem item) {\n int position = currentPopupPosition;\n Product p = productsListAdapter.getItem(position);\n\n DialogInterface.OnClickListener dialogClickListener = (dialog, which) -> {\n switch (which) {\n case DialogInterface.BUTTON_POSITIVE:\n new Thread(() -> {\n if (p instanceof Pack) {\n /*\n // rendere operazione atomica\n boolean deleteOk = true;\n for(int i=0; i<((Pack)p).getProducts().size(); i++){\n if (productDatabase.productDao().updateConsumption(((Pack)p).getProducts().get(i).getId(), true) <= 0)\n deleteOk = false;\n }\n\n runOnUiThread(() -> {\n if(deleteOk)\n Toast.makeText(getApplicationContext(), \"Errore nella consumazione di uno o più prodotti\", Toast.LENGTH_LONG).show();\n else\n Toast.makeText(getApplicationContext(), \"Confezione settata come consumata\", Toast.LENGTH_LONG).show();\n retrieveProductsFromDB(null); // aggiorna lista\n });\n */\n } else {\n SingleProduct sp = ((SingleProduct) p);\n sp.setConsumed(false);\n sp.setConsumptionDate(null);\n\n if (productDatabase.productDao().update(sp) > 0) {\n runOnUiThread(() -> {\n Toast.makeText(getApplicationContext(), \"Prodotto settato come non consumato\", Toast.LENGTH_LONG).show();\n retrieveProductsFromDB(null); // aggiorna lista\n });\n }\n }\n }).start();\n break;\n case DialogInterface.BUTTON_NEGATIVE:\n break;\n }\n };\n\n String msg;\n if (p instanceof Pack)\n msg = \"Vuoi settare come non consumati tutti i prodotti di tipo \\\"\" + p.getName() + \"\\\"?\";\n else\n msg = \"Vuoi settare come non consumato il prodotto \\\"\" + p.getName() + \"\\\"?\";\n\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(msg)\n .setTitle(\"Conferma ripristino consumazione\")\n .setPositiveButton(\"Conferma\", dialogClickListener)\n .setNegativeButton(\"Annulla\", dialogClickListener)\n .show();\n }", "title": "" }, { "docid": "78d01dec45efd3c03c46cdbec0dcd101", "score": "0.56355274", "text": "@Override\n\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t\t}", "title": "" }, { "docid": "4dfacab16915fae0833bdd40dc5308a6", "score": "0.5634918", "text": "private void showUnsavedChangesDialog(\n DialogInterface.OnClickListener discardButtonClickListener) {\n // Create an AlertDialog.Builder and set the message, and click listeners\n // for the postivie and negative buttons on the dialog.\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(\"Unsaved Changes\");\n builder.setPositiveButton(\"discard\", discardButtonClickListener);\n builder.setNegativeButton(\"Keep Editing\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User clicked the \"Keep editing\" button, so dismiss the dialog\n // and continue editing the pet.\n if (dialog != null) {\n dialog.dismiss();\n }\n }\n });\n\n // Create and show the AlertDialog\n AlertDialog alertDialog = builder.create();\n alertDialog.show();\n }", "title": "" }, { "docid": "47cf9c995d7258de81ef63f0ac85827e", "score": "0.5634888", "text": "@Override\n\t\t\tpublic void onCancel(DialogInterface dialog) {\n\t\t\t\tpdialog.dismiss();\n\t\t\t}", "title": "" }, { "docid": "a2fd76bdd287f414af7c49b213428ed0", "score": "0.5631537", "text": "public void onClick(View v) {\n setResult(RESULT_OK);\n\n // TODO investigate why pressing this button results in null pointer exception for user.setitems() in the viewMyItems\n // Accessed http://developer.android.com/guide/topics/ui/notifiers/toasts.html on 2016-02-28 for help with pop up messages\n Toast.makeText(getApplicationContext(), \"Item edit has been cancelled\", Toast.LENGTH_SHORT ).show();\n returnToViewItems();\n }", "title": "" }, { "docid": "187544159f5c3a1e72e7cfb942301e68", "score": "0.5628171", "text": "@Override\n public void onClick(DialogInterface dialog,\n int which) {\n dialog.dismiss();\n }", "title": "" }, { "docid": "faa2ba5fd9de1b57bec85f288a9a46e7", "score": "0.56279105", "text": "@Override\r\n\t\t\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog,\r\n\t\t\t\t\t\t\t\t\t\t\tint which) {\n\t\t\t\t\t\t\t\t\t\tdialog.dismiss();\r\n\t\t\t\t\t\t\t\t\t}", "title": "" }, { "docid": "24a45f028b64551ed664c6e3f9c9c81b", "score": "0.5627807", "text": "@Override\n\t\t\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\t\t\t\tresult.confirm();\n\t\t\t\t\t\t\t\t\t}", "title": "" }, { "docid": "b96952528bce732fbc0571451f44e053", "score": "0.56268644", "text": "@Override\n\t\t\t\t\tpublic void onDismiss(DialogInterface dialog) {\n\t\t\t\t\t\tYayapaymain_jf.payclickcontrol=false;\n\t\t\t\t\t}", "title": "" }, { "docid": "279ae7b39a575b016fa3f93aecffe4ba", "score": "0.56257534", "text": "private void performExit() {\n\t\tint ret = JOptionPane\n\t\t\t\t.showConfirmDialog(\n\t\t\t\t\t\tthis,\n\t\t\t\t\t\tMessages.getString(\"Kiosk.SaveChangesPrompt\"), //$NON-NLS-1$\n\t\t\t\t\t\tMessages.getString(\"Kiosk.SaveChangesTitle\"), JOptionPane.YES_NO_CANCEL_OPTION, //$NON-NLS-1$\n\t\t\t\t\t\tJOptionPane.WARNING_MESSAGE);\n\t\tswitch (ret) {\n\t\tcase JOptionPane.YES_OPTION:\n\t\t\tbeginSave(true);\n\t\t\tSystem.exit(0);\n\t\tcase JOptionPane.NO_OPTION:\n\t\t\tSystem.exit(0);\n\t\tcase JOptionPane.CANCEL_OPTION:\n\t\tcase JOptionPane.CLOSED_OPTION:\n\t\tdefault:\n\t\t\treturn;\n\t\t}\n\t}", "title": "" }, { "docid": "342a83303ccbfada89cdca3412d95a96", "score": "0.56220144", "text": "@Override\r\n \tpublic void editItem() {\r\n \t\tItemData selectedItem = getView().getSelectedItem();\r\n \t\tif (!canEditItem()) {\r\n \t\t\tthrow new IllegalStateException(\"Unable to edit Item\");\r\n \t\t}\r\n \t\tgetView().displayEditItemView();\r\n \t\tgetView().selectItem(selectedItem);\r\n \t}", "title": "" }, { "docid": "b442d6da1bfaa4bd30bfdcb34b0b1df2", "score": "0.5621464", "text": "@Override\r\n\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\t\tdialog.dismiss();\r\n\t\t\t\t\t\t\t}", "title": "" }, { "docid": "b442d6da1bfaa4bd30bfdcb34b0b1df2", "score": "0.5621464", "text": "@Override\r\n\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\t\tdialog.dismiss();\r\n\t\t\t\t\t\t\t}", "title": "" } ]
dc5469a1bb2b575b7c508bf13e8262e8
Generate a key pair, sign a message, then verify the signature
[ { "docid": "49a2030c774463ca487c9590b08b7fbf", "score": "0.7491969", "text": "@Test\n\tpublic void crypto_v1_generateKeyPair() {\n\t\tbyte[] message = StringUtils.getBytesUtf8(\"test message\");\n\t\tKeyPair keyPair = v1CryptoProvider().rsaGenerate();\n\t\tbyte[] sig = v1CryptoProvider().rsaSign(message, keyPair.getSecretKey());\n\t\tv1CryptoProvider().rsaVerify(message, sig, keyPair.getPublicKey());\n\t}", "title": "" } ]
[ { "docid": "56d8a9ca84c149828997ef8ae1d912cb", "score": "0.68519247", "text": "static private String sign(String input) {\n\t\tString key = \"\";\n\t\tString file = \"Resources/client-rsa-private-key.pem\";\n\t\t//read from file\n\t\ttry {\n\t\t\tFile f = new File(file);\n\t\t\tScanner read = new Scanner(f);\n\t\t\twhile(read.hasNextLine())\n\t\t\t\tkey += read.nextLine();\n\t\t}\n\t\tcatch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t\tSystem.err.println(\"Not found \" + file + \"file\");\n\t\t\tSystem.exit(1);\n\t\t}\n\t\t\t\t\n\t\tString ris = \"\";\n\t\tString k = key.replaceAll(\"-----BEGIN PRIVATE KEY-----\", \"\").replaceAll(\"-----END PRIVATE KEY-----\",\"\").replaceAll(\" \",\"\").replaceAll(\"\\n\", \"\");\n\t\t//System.out.println(k);\n\t\t\n\t\t//Decode base64\n\t\tbyte[] b1 = Base64.getDecoder().decode(k);\n\t\tbyte[] s = null;\n\t\t\n\t\tPKCS8EncodedKeySpec spec = new PKCS8EncodedKeySpec(b1);\n\t\tKeyFactory kf = null;\n\t\tSignature privateSignature = null;\n\t\ttry {\n\t\t\tkf = KeyFactory.getInstance(\"RSA\");\n\t\t\tprivateSignature = Signature.getInstance(\"SHA256withRSA\");\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\te.printStackTrace();\n\t\t\tSystem.err.println(\"No such algorithm\");\n\t\t\tSystem.exit(1);\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tprivateSignature.initSign(kf.generatePrivate(spec));\t\n\t\t} catch (InvalidKeyException | InvalidKeySpecException e) {\n\t\t\te.printStackTrace();\n\t\t\tSystem.err.println(\"InvalidKeyException or InvalidKeySpecException\");\n\t\t\tSystem.exit(1);\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tprivateSignature.update(input.getBytes(\"UTF-8\"));\n\t\t\ts = privateSignature.sign();\n\t\t} catch (SignatureException | UnsupportedEncodingException e) {\n\t\t\te.printStackTrace();\n\t\t\tSystem.err.println(\"SignatureException or UnsupportedEncodingException\");\n\t\t\tSystem.exit(1);\n\t\t}\n\n //Encode to base64 and return\n return Base64.getEncoder().encodeToString(s);\n \n\t}", "title": "" }, { "docid": "b9a543622b9e576202280ce11960b9ef", "score": "0.6826883", "text": "public static Certificate sign(Key privateKey, byte[] message);", "title": "" }, { "docid": "1e92bb3614644982e6992c5fd87cb4ee", "score": "0.65735364", "text": "public int signP (\n\t\t\n\t\tbyte[] signature, int signatureOffset, int[] signatureLength,\n\t\tfinal byte[] message, int messageOffset, int messageLength,\n\t\tfinal byte[] privateKey, SecureRandom secureRandom\n\n) throws\n\t\n\tBadPaddingException,\n\tIllegalBlockSizeException,\n\tInvalidKeyException,\n\tNoSuchAlgorithmException,\n\tNoSuchPaddingException,\n\tShortBufferException\n\n{\n\t\n\tbyte[] C\t\t\t\t\t\t= new byte[QTESLAParameter.HASH];\n\tbyte[] randomness\t\t\t\t= new byte[QTESLAParameter.SEED];\n\tbyte[] randomnessInput\t\t\t=\n\t\tnew byte[QTESLAParameter.RANDOM + QTESLAParameter.SEED + QTESLAParameter.MESSAGE];\n\t// byte[] temporaryRandomnessInput\t= new byte[Polynomial.RANDOM];\n\tint[] positionList\t\t\t\t= new int[parameter.h];\n\tshort[] signList\t\t\t\t= new short[parameter.h];\n\t\n\tlong[] A\t\t\t\t\t\t\t= new long[parameter.n * parameter.k];\n\tlong[] V\t\t\t\t\t\t\t= new long[parameter.n * parameter.k];\n\tlong[] Y\t\t\t\t\t\t\t= new long[parameter.n];\n\tlong[] numberTheoreticTransformY\t= new long[parameter.n];\n\tlong[] Z\t\t\t\t\t\t\t= new long[parameter.n];\n\tlong[] SC\t\t\t\t\t\t\t= new long[parameter.n];\n\tlong[] EC\t\t\t\t\t\t\t= new long[parameter.n * parameter.k];\n\t\n\tboolean response = false;\n\t\n\t/* Domain Separator for Sampling Y */\n\tint nonce = 0;\n\t\n\trandomNumberGenerator.randomByte (randomnessInput, QTESLAParameter.RANDOM, QTESLAParameter.RANDOM);\n\t// secureRandom.nextBytes (temporaryRandomnessInput);\n\t// System.arraycopy (temporaryRandomnessInput, 0, randomnessInput, Polynomial.RANDOM, Polynomial.RANDOM);\n\tSystem.arraycopy (\n\t\t\t\n\t\tprivateKey, parameter.privateKeySize - QTESLAParameter.SEED, randomnessInput, 0, QTESLAParameter.SEED\n\t\t\n\t);\n\t\n\tif (parameter.parameterSet == \"qTESLA-P-I\") {\n\t\n\t\tFederalInformationProcessingStandard202.secureHashAlgorithmKECCAK128 (\n\t\t\t\n\t\t\trandomnessInput, QTESLAParameter.RANDOM + QTESLAParameter.SEED, QTESLAParameter.MESSAGE,\n\t\t\tmessage, 0, messageLength\n\t\t\n\t\t);\n\t\t\n\t\t\n\t\tFederalInformationProcessingStandard202.secureHashAlgorithmKECCAK128 (\n\t\t\t\n\t\t\trandomness, 0, QTESLAParameter.SEED,\n\t\t\trandomnessInput, 0, QTESLAParameter.RANDOM + QTESLAParameter.SEED + QTESLAParameter.MESSAGE\n\t\t\n\t\t);\n\t\n\t}\n\t\n\tif (parameter.parameterSet == \"qTESLA-P-III\") {\n\t\t\n\t\tFederalInformationProcessingStandard202.secureHashAlgorithmKECCAK256 (\n\t\t\t\n\t\t\trandomnessInput, QTESLAParameter.RANDOM + QTESLAParameter.SEED, QTESLAParameter.MESSAGE,\n\t\t\tmessage, 0, messageLength\n\t\t\n\t\t);\n\t\t\n\t\t\n\t\tFederalInformationProcessingStandard202.secureHashAlgorithmKECCAK256 (\n\t\t\t\n\t\t\trandomness, 0, QTESLAParameter.SEED,\n\t\t\trandomnessInput, 0, QTESLAParameter.RANDOM + QTESLAParameter.SEED + QTESLAParameter.MESSAGE\n\t\t\n\t\t);\n\t\t\n\t}\n\t\n\tpolynomial.polynomialUniform (A, privateKey, parameter.privateKeySize - 2 * QTESLAParameter.SEED);\n\t\n\t/* Loop Due to Possible Rejection */\n\twhile (true) {\n\t\t\n\t\t/* Sample Y Uniformly Random from -B to B */\n\t\tqTESLAYSampler.sampleY (Y, randomness, 0, ++nonce);\n\t\t\n\t\tpolynomial.polynomialNumberTheoreticTransform (numberTheoreticTransformY, Y);\n\t\t\n\t\t/* V_i = A_i * Y Modulo Q for All i */\n\t\tfor (int i = 0; i < parameter.k; i++) {\n\t\t\t\n\t\t\tpolynomial.polynomialMultiplication (\n\t\t\t\t\n\t\t\t\tV, parameter.n * i, A, parameter.n * i, numberTheoreticTransformY, 0\n\t\t\t\t\n\t\t\t);\n\t\t\t\n\t\t}\n\t\t\n\t\thashFunction (C, 0, V, randomnessInput, QTESLAParameter.RANDOM + QTESLAParameter.SEED);\n\t\t\n\t\t/* Generate C = EncodeC (C') Where C' is the Hashing of V Together with Message */\n\t\tencodeC (positionList, signList, C, 0);\n\t\t\n\t\tpolynomial.sparsePolynomialMultiplication8 (SC, 0, privateKey, 0, positionList, signList);\n\t\t\n\t\t/* Z = Y + EC modulo Q */\n\t\tpolynomial.polynomialAddition (Z, 0, Y, 0, SC, 0);\n\t\t\n\t\t/* Rejection Sampling */\n\t\tif (testRejection (Z) == true) {\n\t\t\t\n\t\t\tcontinue;\n\t\t\t\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < parameter.k; i++) {\n\t\t\t\n\t\t\tpolynomial.sparsePolynomialMultiplication8 (\n\t\t\t\t\t\n\t\t\t\tEC, parameter.n * i, privateKey, parameter.n * (i + 1), positionList, signList\n\t\t\t\t\n\t\t\t);\n\t\t\t\n\t\t\t/* V_i = V_i - EC_i Modulo Q for All k */\n\t\t\tpolynomial.polynomialSubtraction (V, parameter.n * i, V, parameter.n * i, EC, parameter.n * i);\n\t\t\t\n\t\t\tresponse = testCorrectness (V, parameter.n * i);\n\t\t\t\n\t\t\tif (response == true) {\n\t\t\t\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t}\n\t\t\n\t\t}\n\t\t\n\t\tif (response == true) {\n\t\t\t\n\t\t\tcontinue;\n\t\t\t\n\t\t}\n\t\t\n\t\t/* Copy the Message into the Signature Package */\n\t\tSystem.arraycopy (\n\t\t\t\t\n\t\t\tmessage, messageOffset, signature, signatureOffset + parameter.signatureSize, messageLength\n\t\t\t\n\t\t);\n\t\t\t\n\t\t/* Length of the Output */\n\t\tsignatureLength[0] = messageLength + parameter.signatureSize;\n\t\t\t\n\t\t/* Pack Signature */\n\t\tqTESLAPack.encodeSignature (signature, 0, C, 0, Z);\n\t\t\n\t\treturn 0;\n\t\t\n\t}\n\t\n}", "title": "" }, { "docid": "181c7c60cc13f1d81549a389be56a8a7", "score": "0.64571065", "text": "public static void main(String[] args) throws InvalidKeyException,\r\n\t\t\tIllegalBlockSizeException, BadPaddingException,\r\n\t\t\tNoSuchAlgorithmException, NoSuchPaddingException,\r\n\t\t\tInvalidKeySpecException, IOException, SAXException,\r\n\t\t\tParserConfigurationException, SignatureException {\n\t\tString message = \"1--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------hello java--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------1\";\r\n\t\tString publicKey = \"MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAnaf6bHe76tz7yPQNj7TKmLiDk+ujB0jsJ9RDmxum0KMZVTFaphL8oWHncPBeih4Vt0F8pA6ian+kKd4AyO57W/0RBpSkCKoRVbeCKQM5yJ5fPovVAI+drBZDcqHVsPoauky86EhUGilAVulI+hByVddBZYMn+xg9WUI/7H1u+4p4nPzgO6PIIPWTDthnbfz7nsHtTa+9bfuDSLPTnV5lshn6GIrMmwAi2aNZICXyHuXpZS74pTnqbXFdZ/8iRnhz5DCmJBXFmxTdm7DY5mAmnhaGkaDScI+y7WTjGmxGEJxPdKIiES4IImnej9+G7BHrBCneSLDp994crQdHGXCdNwIDAQAB\";\r\n\t\tString privateKey = \"MIIEvAIBADANBgkqhkiG9w0BAQEFAASCBKYwggSiAgEAAoIBAQCdp/psd7vq3PvI9A2PtMqYuIOT66MHSOwn1EObG6bQoxlVMVqmEvyhYedw8F6KHhW3QXykDqJqf6Qp3gDI7ntb/REGlKQIqhFVt4IpAznInl8+i9UAj52sFkNyodWw+hq6TLzoSFQaKUBW6Uj6EHJV10Flgyf7GD1ZQj/sfW77inic/OA7o8gg9ZMO2Gdt/Puewe1Nr71t+4NIs9OdXmWyGfoYisybACLZo1kgJfIe5ellLvilOeptcV1n/yJGeHPkMKYkFcWbFN2bsNjmYCaeFoaRoNJwj7LtZOMabEYQnE90oiIRLggiad6P34bsEesEKd5IsOn33hytB0cZcJ03AgMBAAECggEAXatiFHQHSIHHbxvhutI11Qs70fUcxcVD2l45VLzXHfrpoD5Ul3uMce4TbnzCDtnVGS5leavgP9palS171eYrkPoI1ZoW47b32a/QO8HY4SOHf0fhZBXwHkCUDlWs+xt+KdZSHshqf6imu3ybiUegRvQ/vKpyZLOAL7o29LGJ8RTj2LzFIVgzllV6xoVEycLQdLp33VuiQcodsHy4Dv23Dr+6KwY0gJfXq3USlGpeGzW8Ezt7oxtPQJ+x+SosliGTAL6IUBUaJkkE1NBEshPAi9OymrOGAjy7LUAQnZPJEdzKZBdVNI/cU1O7fRMqtDHJdv4thRM4oGvkBTO2jhs1YQKBgQDLvv+Ozet/UXCW2GX746+ZH3+PEhAjdvxlcd59Dd6kFcbX7BJQ+4trT9VwpzBPh5uBKDLI9mWzZ/DMS9GVU0f7+XWL6n+95C2NydK0SxNcOV91z8QWVDbcZKnj36BR5PccWRWKJspLXM8gvWsz/xs3aCfnx5pB+KOwdorydLOVSQKBgQDGFu8rpoPnx6LaSbknV5oYYOsN2oHmbkGq6Xnh6q0sSUvNrC97bvxtWwqNMdsmPh1MGx2r2/awhQrWxLWG87N6i23e6x2zfDzaQTUJGK/aFUQ+nmX0SQk1+82kr/CBCgl/1wtNiCHoOM2s/8MMkactk04om3XzJYB6btgxIQMefwKBgB5DAiYtw5qnd/ePsKYXDU/K8+FGJ4t88sQGg6tDUhxA98W+VIIeunh35RXUX0KQu7IVTGW44yYgfA17/WcWdYyhYqojbFHCAFoc7eTFedyq0NjowREn9PYLJYipAGDphyJ4wNBCLq2+3SzZtYCFlX9HQxYT+X9u9LETClQ0rS+xAoGAPqqwvVFvd1r71Szvi1e2YzH+CqLu53RICAbWzTbN1C3X8lgfqWACMaJUozh7iQyrfhEyANWUpGFifXE7sFbWl9UWTCh7e/W41p88ZQVPVKHXtiusO20DofVoKEqUvm3rdWsVo1CG0Y1u2+UJ0qcdiViJqGUOGn7pt1HryRcVgocCgYACxeW/glc9VdYWdRK5W7/zsH2+xUp80dK06Si5+oi7nxKoaFq2AalAFRgQIQqC5CgmcwoFE5T1T16IexQDI2hPO2AImiPoDBvCvib3KyojhRY/LQNH9OMlsQXELljTAE79vMg3HvlrKWNJg7siHA9cFmaJXRgFIxdpQ9fMRrJ7ng==\";\r\n\r\n\t\tKeyWorker privateWorker = new KeyWorker(privateKey, KeyFormat.ASN);\r\n\t\tKeyWorker publicWorker = new KeyWorker(publicKey, KeyFormat.ASN);\r\n\r\n\t\tSystem.out.println(\"RSA Encrypt:\");\r\n\t\tString encrypted = publicWorker.encrypt(message);\r\n\t\tSystem.out.println(encrypted);\r\n\r\n\t\tSystem.out.println(\"RSA Decrypt:\");\r\n\t\tString decrypted = privateWorker.decrypt(encrypted);\r\n\t\tSystem.out.println(decrypted);\r\n\r\n\t\tSystem.out.println(\"RSA sign:\");\r\n\t\tString sign = privateWorker.sign(message);\r\n\t\tSystem.out.println(sign);\r\n\r\n\t\tSystem.out.println(\"RSA verify:\");\r\n\t\tboolean verify = publicWorker.verify(message, sign);\r\n\t\tSystem.out.println(verify);\r\n\t}", "title": "" }, { "docid": "54940401b867b1b73014aeda036684f9", "score": "0.633233", "text": "public int sign (\n\t\t\t\n\t\t\tbyte[] signature, int signatureOffset, int[] signatureLength,\n\t\t\tfinal byte[] message, int messageOffset, int messageLength,\n\t\t\tfinal byte[] privateKey, SecureRandom secureRandom\n\t\t\t\n\t) throws \n\t\n\t\tBadPaddingException,\n\t\tIllegalBlockSizeException,\n\t\tInvalidKeyException,\n\t\tNoSuchAlgorithmException,\n\t\tNoSuchPaddingException,\n\t\tShortBufferException\n\n\t{\n\t\t\n\t\tbyte[] C\t\t\t\t\t\t= new byte[QTESLAParameter.HASH];\n\t\tbyte[] randomness\t\t\t\t= new byte[QTESLAParameter.SEED];\n\t\tbyte[] randomnessInput\t\t\t=\n\t\t\tnew byte[QTESLAParameter.RANDOM + QTESLAParameter.SEED + QTESLAParameter.MESSAGE];\n\t\tbyte[] seed\t\t\t\t\t\t= new byte[QTESLAParameter.SEED * 2];\n\t\t// byte[] temporaryRandomnessInput\t= new byte[Polynomial.RANDOM];\n\t\tint[] positionList\t\t\t\t= new int[parameter.h];\n\t\tshort[] signList\t\t\t\t= new short[parameter.h];\n\t\tshort[] secretPolynomial\t\t= new short[parameter.n];\n\t\tshort[] errorPolynomial\t\t\t= new short[parameter.n];\n\t\t\n\t\tint[] A\t\t= new int[parameter.n];\n\t\tint[] V\t\t= new int[parameter.n];\n\t\tint[] Y\t\t= new int[parameter.n];\n\t\tint[] Z\t\t= new int[parameter.n];\n\t\tint[] SC\t= new int[parameter.n];\n\t\tint[] EC\t= new int[parameter.n];\n\t\t\n\t\t/* Domain Separator for Sampling Y */\n\t\tint nonce = 0;\n\t\t\n\t\tqTESLAPack.decodePrivateKey (seed, secretPolynomial, errorPolynomial, privateKey);\n\t\t\n\t\trandomNumberGenerator.randomByte (randomnessInput, QTESLAParameter.RANDOM, QTESLAParameter.RANDOM);\n\t\t// secureRandom.nextBytes (temporaryRandomnessInput);\n\t\t// System.arraycopy (temporaryRandomnessInput, 0, randomnessInput, Polynomial.RANDOM, Polynomial.RANDOM);\n\t\t\n\t\tSystem.arraycopy (seed, QTESLAParameter.SEED, randomnessInput, 0, QTESLAParameter.SEED);\n\t\t\n\t\tif (parameter.parameterSet == \"qTESLA-I\") {\n\t\t\n\t\t\tFederalInformationProcessingStandard202.secureHashAlgorithmKECCAK128 (\n\t\t\t\t\n\t\t\t\trandomnessInput, QTESLAParameter.RANDOM + QTESLAParameter.SEED, QTESLAParameter.MESSAGE,\n\t\t\t\tmessage, 0, messageLength\n\t\t\t\n\t\t\t);\n\t\t\t\n\t\t\tFederalInformationProcessingStandard202.secureHashAlgorithmKECCAK128 (\n\t\t\t\t\n\t\t\t\trandomness, 0, QTESLAParameter.SEED,\n\t\t\t\trandomnessInput, 0, QTESLAParameter.RANDOM + QTESLAParameter.SEED + QTESLAParameter.MESSAGE\n\t\t\t\n\t\t\t);\n\t\t\n\t\t}\n\t\t\n\t\tif (parameter.parameterSet == \"qTESLA-III-Speed\" || parameter.parameterSet == \"qTESLA-III-Size\") {\n\t\t\t\n\t\t\tFederalInformationProcessingStandard202.secureHashAlgorithmKECCAK256 (\n\t\t\t\t\n\t\t\t\trandomnessInput, QTESLAParameter.RANDOM + QTESLAParameter.SEED, QTESLAParameter.MESSAGE,\n\t\t\t\tmessage, 0, messageLength\n\t\t\t\n\t\t\t);\n\t\t\t\n\t\t\tFederalInformationProcessingStandard202.secureHashAlgorithmKECCAK256 (\n\t\t\t\t\n\t\t\t\trandomness, 0, QTESLAParameter.SEED,\n\t\t\t\trandomnessInput, 0, QTESLAParameter.RANDOM + QTESLAParameter.SEED + QTESLAParameter.MESSAGE\n\t\t\t\n\t\t\t);\n\t\t\t\n\t\t}\n\t\t\n\t\t//DeterministicValueReader.readR_IandR(randomnessInput, randomness);\n\t\t\n\t\tpolynomial.polynomialUniform (A, seed, 0);\n\t\t//DeterministicValueReader.readA(A);\n\t\t\n\t\t/* Loop Due to Possible Rejection */\n\t\twhile (true) {\n\t\t\t\n\t\t\t/* Sample Y Uniformly Random from -B to B */\n\t\t\tqTESLAYSampler.sampleY (Y, randomness, 0, ++nonce);\t\t\n\t\t\t\n\t\t\t/* V = A * Y Modulo Q */\n\t\t\tpolynomial.polynomialMultiplication (V, A, Y);\n\t\t\t\n\t\t\thashFunction (C, 0, V, randomnessInput, QTESLAParameter.RANDOM + QTESLAParameter.SEED);\n\t\t\t\n\t\t\t/* Generate C = EncodeC (C') Where C' is the Hashing of V Together with Message */\n\t\t\tencodeC (positionList, signList, C, 0);\n\t\t\t\n\t\t\tpolynomial.sparsePolynomialMultiplication16 (SC, secretPolynomial, positionList, signList);\n\t\t\t\n\t\t\t/* Z = Y + EC Modulo Q */\n\t\t\tpolynomial.polynomialAddition(Z, Y, SC);\n\t\t\t\n\t\t\t/* Rejection Sampling */\n\t\t\tif (testRejection (Z) == true) {\n\t\t\t\t\n\t\t\t\tcontinue;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tpolynomial.sparsePolynomialMultiplication16 (EC, errorPolynomial, positionList, signList);\n\t\t\t\n\t\t\t/* V = V - EC modulo Q */\n\t\t\tpolynomial.polynomialSubtractionCorrection (V, V, EC);\n\t\t\t\n\t\t\tif (testCorrectness (V) == true) {\n\t\t\t\t\n\t\t\t\tcontinue;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t/* Copy the Message into the Signature Package */\n\t\t\tSystem.arraycopy (\n\t\t\t\t\t\n\t\t\t\tmessage, messageOffset, signature, signatureOffset + parameter.signatureSize, messageLength\n\t\t\t\t\n\t\t\t);\n\t\t\t\t\n\t\t\t/* Length of the Output */\n\t\t\tsignatureLength[0] = parameter.signatureSize + messageLength;\n\t\t\t\t\n\t\t\t/* Pack Signature */\n\t\t\tqTESLAPack.encodeSignature (signature, 0, C, 0, Z);\n\t\t\t\n\t\t\treturn 0;\n\t\t\t\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "c2e8647fca44ac9b9d8d1284a051c7af", "score": "0.6305292", "text": "public int signPParallel (\n\t\t\t\n\t\t\tbyte[] signature, int signatureOffset, int[] signatureLength,\n\t\t\tfinal byte[] message, int messageOffset, int messageLength,\n\t\t\tfinal byte[] privateKey, SecureRandom secureRandom\n\t\n\t) throws\n\t\t\n\t\tBadPaddingException,\n\t\tIllegalBlockSizeException,\n\t\tInvalidKeyException,\n\t\tNoSuchAlgorithmException,\n\t\tNoSuchPaddingException,\n\t\tShortBufferException, \n\t\tInterruptedException\n\t\n\t{\t\t\n\t\twinner=null;\n\t\tfinal int number_threads = Logger.no_of_threads;\n\t\tCountDownLatch countDownLatch = new CountDownLatch(1);\t\t\n\t\tArrayList<SigningThread> threadies = new ArrayList<SigningThread>();\n\n\t\tfor (int i=0; i<number_threads;i++) {\t\t\t\n\t\t\tSigningThread t1 = new SigningThread(i, countDownLatch, privateKey, message, messageLength, \n\t\t\t\t\trandomNumberGenerator, qTESLAYSampler, parameter, polynomial);\n\t\t\tthreadies.add(\n\t\t\t\t\tt1\n\t\t\t\t\t);\n\t\t\tthreadies.get(i).start();\n\t\t}\n\t\t\t\n\t\t/* Copy the Message into the Signature Package */\n\t\tSystem.arraycopy (\t\t\t\t\n\t\t\tmessage, messageOffset, signature, signatureOffset + parameter.signatureSize, messageLength\t\t\t\n\t\t);\n\t\t\t\n\t\t/* Length of the Output */\n\t\tsignatureLength[0] = messageLength + parameter.signatureSize;\n\t\t\t\n\t\tcountDownLatch.await(); \n\t\t\n\t\ttry {\t\t\t\n\t\t\tqTESLAPack.encodeSignature_MB (signature, 0, winner.C, 0, winner.Z);\n\t\t}\n\t\tcatch (NullPointerException e) {\n\t\t\tSystem.out.print(\"qTESLAPack.encodeSignature failed\");\n\t\t}\t\t\n\t\t\n\t\t//System.out.println(\"Signing finished by thread \" + winner.getName());\t\t\n\t\treturn 0;\t\t\n\t}", "title": "" }, { "docid": "67c5931c27dec5ef268ee6f531a248ac", "score": "0.6137448", "text": "public boolean verifySign(String alg, String key, String message, String sign) {\n\t\ttry {\r\n\t\t\tDecoder dec = Base64.getDecoder();\r\n\t\t\tbyte[] b64sign = dec.decode(sign);\t\t\t\r\n\t\t\tbyte[] b64key = dec.decode(key);\r\n\t\t\t\r\n\t\t\tKeyFactory kf = KeyFactory.getInstance(alg);\r\n\t\t\tX509EncodedKeySpec ks = new X509EncodedKeySpec(b64key);\r\n\t\t\tPublicKey senderpub = kf.generatePublic(ks);\r\n\t \t\r\n\t\t\tSignature sobj = Signature.getInstance(\"SHA1withRSA\");\r\n\t\t\tsobj.initVerify(senderpub);\r\n\t\t\tsobj.update(message.getBytes());\r\n\t\t\treturn sobj.verify(b64sign);\r\n\t\t\t\t\t\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\tSystem.exit(1);\r\n\t\t}\r\n\t\t\r\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "f950718ca8ef5942787daa763a8927b2", "score": "0.61212623", "text": "@Test\n public void testSign() throws Exception {\n String hashbufHex = \"a9bc004bc083427ca43074b291d512770326766353bb8dff6b0fb954a985d9e8\";\n //key used to sign, contains private key (big number)\n ECKey key = ECKey.ECKeyParser.parse(\"L1rjeUY9ffkApft853udougq6y5eT3xbyoNPcMnkpzhZUQrui9cn\");\n\n ECDSASignature signature = new ECDSA(ByteUtil.fromHex(hashbufHex), key, \"little\").sign();\n\n //we are using a key that is compressed\n Assert.assertEquals(true, signature.compressed);\n\n //test vector r value: 96122799104480063949910401630073779459529981243145212477597930766576003472206\n BigInteger expectedR = BigIntegerUtil.fromBytes(ByteUtil.fromHex(\"d483938898a656d783a908ba45b66433e84f81d3fbbeb24477c3d76fa3d25b4e\"), 16, null);\n //test vector s value: 2884343718335691681268558098888226414792197237717938429255727702061400513576\n BigInteger expectedS = BigIntegerUtil.fromBytes(ByteUtil.fromHex(\"06607b0e9b83664d531bdebc245f2e5eb59e8a5a4b80a7e4bf83210a18d4dc28\"), 16, null);\n\n Assert.assertTrue(BigIntegerUtil.equal(expectedR, signature.r));\n Assert.assertTrue(BigIntegerUtil.equal(expectedS, signature.s));\n }", "title": "" }, { "docid": "bd88709206ed3eb4509b627dd5f69251", "score": "0.610669", "text": "public void generateKeySig() throws OpenPGPCardException {\n try {\n iso.generateKeyPair(KS_SIG);\n } catch (ISO7816Exception ex) {\n throw new OpenPGPCardException(\"Could not generate key pair (\" + ex.getMessage() + \")\");\n }\n }", "title": "" }, { "docid": "1cea7e68fcecc6988c0dbcdfc5ce96eb", "score": "0.6017613", "text": "@Test\n public void testGenerateKeyPair() {\n AsymmetricKeys keyPair = crypt.generateKeyPair(keySize);\n Assert.assertNotNull(keyPair);\n Assert.assertNotNull(keyPair.getPublicKey());\n Assert.assertNotNull(keyPair.getPrivateKey());\n Assert.assertNotEquals(keyPair.getPublicKey(), keyPair.getPrivateKey());\n\n // Generate a second key\n AsymmetricKeys keyPair2 = crypt.generateKeyPair(keySize);\n Assert.assertNotNull(keyPair2);\n Assert.assertNotNull(keyPair2.getPublicKey());\n Assert.assertNotNull(keyPair2.getPrivateKey());\n Assert.assertNotEquals(keyPair2.getPublicKey(), keyPair2.getPrivateKey());\n Assert.assertNotEquals(keyPair2.getPublicKey(), keyPair.getPublicKey());\n Assert.assertNotEquals(keyPair2.getPrivateKey(), keyPair.getPrivateKey());\n\n // Check the internals\n assertGeneratedKeyPairInternals(keyPair);\n }", "title": "" }, { "docid": "a44573034d2bae2aa75712d7aba816b3", "score": "0.6007544", "text": "@Test\n public void testSignParams() { \n // data = {:foo => 'bar', :example => [1, 'a']}\n Map<String, Object> params = new HashMap<String, Object>();\n params.put(\"foo\", \"bar\");\n List<Object> example = new ArrayList<Object>();\n example.add(1);\n example.add(\"a\");\n params.put(\"example\", example);\n \n String key = \"5PUZmVMmukNwiHc7V/TJvFHRQZWZumIpCnfZKrVYGpuAdkCcEfv3LIDSrsJ+xOVH\";\n assertEquals(\"5a9447aef2ebd0e12d80d80c836858c6f9c13219f615ef5d135da408bcad453d\", signParams(params, key));\n }", "title": "" }, { "docid": "1279baed9d951bcf5c92cd71c23559f1", "score": "0.5977789", "text": "public Point validSignatureGeneration(String message, String hashInput, BigInteger priKey, Point pubKey) {\n Point signature;\n String verification = null;\n while (true) {\n signature = signatureGeneration(hashInput, priKey);\n System.out.println(\"hash in main: \" + hashInput);\n try {\n verification = signatureVerification(message, signature, pubKey);\n if(verification.compareTo(\"FIX VERIFIED\")==0){\n break;\n }\n\n } catch (ArithmeticException e) {\n System.out.println(\"right signature is not invertible\");\n }\n }\n return signature;\n }", "title": "" }, { "docid": "77daaa7f0a9dbaf5c1b88d0250ca5fd0", "score": "0.59548026", "text": "boolean verifyEdDSA(byte[] data, byte[] signature, byte[] publicKey);", "title": "" }, { "docid": "5f159ccb1159ec4586e0bec003420ace", "score": "0.5943049", "text": "interface KeyHandler {\r\n\r\n\t/**\r\n\t * Sign the specified hash with the specified private key.\r\n\t *\r\n\t * @param hash The hash to sign\r\n\t * @param privateKey The private key to sign the hash with\r\n\t * @param enforceLowS If signature should enforce low values of signature part {@code S}, according to\r\n\t * <a href=\"https://github.com/bitcoin/bips/blob/master/bip-0062.mediawiki#Low_S_values_in_signatures\">BIP-62</a>\r\n\t * @param useDeterministicSignatures If signing should use randomness or be deterministic according to\r\n\t * <a href=\"https://tools.ietf.org/html/rfc6979\">RFC6979</a>.\r\n\t * @return An {@link ECDSASignature} with {@code r} and {@code s} values included\r\n\t */\r\n\tECDSASignature sign(byte[] hash, byte[] privateKey, boolean enforceLowS, boolean useDeterministicSignatures);\r\n\r\n\t/**\r\n\t * Verify the specified signature against the specified hash with the\r\n\t * specified public key.\r\n\t *\r\n\t * @param hash The hash to verify against\r\n\t * @param signature The signature to verify\r\n\t * @param publicKey The public key to verify the signature with\r\n\t * @return An boolean indicating whether the signature could be successfully validated\r\n\t * @throws CryptoException if the {@code publicKey} or {@code signature} is invalid\r\n\t */\r\n\tboolean verify(byte[] hash, ECDSASignature signature, byte[] publicKey);\r\n\r\n\t/**\r\n\t * Compute a public key for the specified private key.\r\n\t *\r\n\t * @param privateKey The private key to compute the public key for\r\n\t * @return A compressed public key\r\n\t * @throws CryptoException If the {@code privateKey} is invalid\r\n\t */\r\n\tbyte[] computePublicKey(byte[] privateKey) throws PrivateKeyException, PublicKeyException;\r\n\r\n\t/**\r\n\t * Sign the specified hash with the specified private by using randomness and enforced low {@code S} values,\r\n\t * see documentation of {@link #sign(byte[], byte[], boolean, boolean)} for more details.\r\n\t *\r\n\t * @param hash The hash to sign\r\n\t * @param privateKey The private key to sign the hash with\r\n\t * @return An {@link ECDSASignature} with {@code r} and {@code s} values included\r\n\t */\r\n\tdefault ECDSASignature sign(byte[] hash, byte[] privateKey) {\r\n\t\treturn sign(hash, privateKey, true, false);\r\n\t}\r\n\r\n}", "title": "" }, { "docid": "673d1a5a94ce0d64d02e148b920798d3", "score": "0.59112155", "text": "private static void sign(String pathFileToSign) throws IOException, ClassNotFoundException, NoSuchAlgorithmException {\n BigInteger n;\n BigInteger d;\n String pathSignedFile = pathFileToSign + \".signed\";\n List<BigInteger> privateKeys = new ArrayList<>();\n InputStream fis = null;\n try {\n fis = new FileInputStream(pathPrivateFile);\n } catch (FileNotFoundException ex) {\n System.out.println(\"privkey.rsa is not found in the current directory!\");\n System.exit(1);\n }\n ObjectInputStream objectinputstream = new ObjectInputStream(fis);\n privateKeys = (List<BigInteger>) objectinputstream.readObject();\n fis.close();\n d = privateKeys.get(0);\n n = privateKeys.get(1);\n\n MessageDigest md = MessageDigest.getInstance(\"SHA-256\");\n try {\n File file = new File(pathFileToSign);\n fis = new FileInputStream(file);\n } catch (FileNotFoundException ex) {\n System.out.println(pathFileToSign + \" is not found in the current directory!\");\n System.exit(1);\n }\n\n new PrintWriter(pathSignedFile).close();// empty the content of the file\n FileOutputStream fos = new FileOutputStream(pathSignedFile);\n\n byte[] dataBytes = new byte[1024];\n int nread = 1;\n while ((nread = fis.read(dataBytes)) != -1) {\n fos.write(dataBytes, 0, nread);\n md.update(dataBytes, 0, nread);\n }\n byte[] mdbytes = md.digest();\n BigInteger sha256 = new BigInteger(mdbytes);\n sha256 = sha256.abs();\n BigInteger sha256_sign = sha256.modPow(d, n);\n\n// System.out.println(\"n = \" + n + \"\\n e = \" + e + \"\\n d = \" + d);\n// System.out.println(sha256_sign.toString(16));\n// System.out.println(sha256.toString(16));\n// System.out.println(sha256_sign.modPow(e, n).toString(16));\n fos.write(sha256_sign.toString(16).getBytes());\n fos.close();\n fis.close();\n }", "title": "" }, { "docid": "d0d06556a911213aa1a3a55d5d4afd68", "score": "0.58861196", "text": "public void sign(SigningPrivateKey spk) {\n signIt(spk, PROP_SIG);\n }", "title": "" }, { "docid": "7e9960ac1f16fc0d52a3e763e06b4ead", "score": "0.587928", "text": "public static String sign(String message, long timestamp, String key) {\n final String algo = \"HmacSHA1\";\n try {\n SecretKeySpec signingKey = new SecretKeySpec(key.getBytes(), algo);\n Mac mac = Mac.getInstance(algo);\n mac.init(signingKey);\n byte[] rawHmac = mac.doFinal((timestamp + \" \" + message).getBytes());\n return new String(Hex.encodeHex(rawHmac));\n } catch (NoSuchAlgorithmException e) {\n throw new InvalidConfig(\"Could not sign message: \" + e.getMessage(), e);\n } catch (InvalidKeyException e) {\n throw new InvalidConfig(\"Could not sign message: \" + e.getMessage(), e);\n }\n }", "title": "" }, { "docid": "6671a46424553a98cb23342d2a31ad00", "score": "0.57966983", "text": "com.webank.wedpr.scd.proto.CertificateSignature getCertificateSignature();", "title": "" }, { "docid": "680503107194994e976367f319f9d28b", "score": "0.5782637", "text": "public static boolean verifySignature(byte[] message, byte[] signature, String algorithm, RSAPublicKey key) {\n byte[] modulus = key.getModulus().toByteArray();\n byte[] exponent = key.getPublicExponent().toByteArray();\n \n return nativeverifysignature(message, signature, algorithm, modulus, exponent) == 1;\n }", "title": "" }, { "docid": "2bcdd68fb0fdcc03a47fdadebe17401c", "score": "0.57795066", "text": "public static native int secp256k1_ecdsa_verify(\n final PointerByReference ctx,\n final secp256k1_ecdsa_signature sig,\n final byte[] msg32,\n final secp256k1_pubkey pubkey);", "title": "" }, { "docid": "3ab820d7680810af488884ed27ee06bb", "score": "0.5759133", "text": "public Boolean verify(byte[] sign, PublicKey pub, byte[] otherpub){\n try{\n //byte[] assinaturaXY2 = (byte[]) sigXY2.getObject(dec);\n //Validacao da assinatura usando a chave publica do outro interveniente\n sig.initVerify(pub);\n sig.update(pub.getEncoded());\n sig.update(otherpub);\n Boolean verif=sig.verify(sign);\n System.out.println(\"DIG VERIF: \" + verif);\n return verif;\n\n }catch (Exception e) {System.out.println(\"Error on sig verify: \"+e);}\n return null;\n\n }", "title": "" }, { "docid": "b1f45dfa8b5599d8850ec186f62d26f3", "score": "0.57411295", "text": "Signature createSignature();", "title": "" }, { "docid": "b1f45dfa8b5599d8850ec186f62d26f3", "score": "0.57411295", "text": "Signature createSignature();", "title": "" }, { "docid": "883220d3919d65dc3aae73a0c6716e89", "score": "0.5739702", "text": "Signature getVerifier() throws SSHException;", "title": "" }, { "docid": "3ef02172f0f3cda568de90dd1d577159", "score": "0.57097036", "text": "private static String getSignature(String key, byte[] messageToSendBytes) throws NoSuchAlgorithmException, InvalidKeyException {\n SecretKeySpec keyHmac = new SecretKeySpec(key.getBytes(), HMAC_SHA1_ALGORITHM);\n Mac mac = Mac.getInstance(HMAC_SHA1_ALGORITHM);\n mac.init(keyHmac);\n byte[] keyBytes = mac.doFinal(messageToSendBytes);\n return new String(Base64.encodeBase64(keyBytes));\n }", "title": "" }, { "docid": "8615936fe2b2295f9d9d3fe5e8b0566c", "score": "0.5708014", "text": "public static byte[] signData(byte[] data, PrivateKey key) throws Exception {\n Signature signer = Signature.getInstance(\"SHA1withRSA\"); // create an intance of SHA1 algo\n signer.initSign(key); // initialize with private key\n signer.update(data);\n return (signer.sign()); // return t/f if correct key was used (i.e. Public & Private Keys are a matching pair)\n }", "title": "" }, { "docid": "4115c89724cb7f41ad2ab8e7473a0afe", "score": "0.57019055", "text": "public static void main(String[] args) {\r\n\t\tAsymmetricCipherKeyPair bob_keyPair = CriptoUtils.generateKeys(1024);\r\n\t\tAsymmetricCipherKeyPair alice_keyPair = CriptoUtils.generateKeys(1024);\r\n\r\n\t\ttry {\r\n\t\t\tbyte[] msg = \"OK\".getBytes(\"UTF-8\");\r\n\r\n\t\t\t//----------- Bob: Generating blinding factor based on Alice's public key -----------//\r\n\t\t\tBigInteger blindingFactor = CriptoUtils.generateBlindingFactor(alice_keyPair.getPublic());\r\n\r\n\t\t\t//----------------- Bob: Blinding message with Alice's public key -----------------//\r\n\t\t\tbyte[] blinded_msg =\r\n\t\t\t\tCriptoUtils.blind(alice_keyPair.getPublic(), blindingFactor, msg);\r\n\r\n\t\t\t//------------- Bob: Signing blinded message with Bob's private key -------------//\r\n\t\t\tbyte[] sig = CriptoUtils.sign(bob_keyPair.getPrivate(), blinded_msg);\r\n\r\n\t\t\t//------------- Alice: Verifying Bob's signature -------------//\r\n\t\t\tif (CriptoUtils.verify(bob_keyPair.getPublic(), blinded_msg, sig)) {\r\n\r\n\t\t\t\t//---------- Alice: Signing blinded message with Alice's private key ----------//\r\n\t\t\t\tbyte[] sigByAlice =\r\n\t\t\t\t\tCriptoUtils.signBlinded(alice_keyPair.getPrivate(), blinded_msg);\r\n\r\n\t\t\t\t//------------------- Bob: Unblinding Alice's signature -------------------//\r\n\t\t\t\tbyte[] unblindedSigByAlice =\r\n\t\t\t\t\tCriptoUtils.unblind(alice_keyPair.getPublic(), blindingFactor, sigByAlice);\r\n\r\n\t\t\t\t//---------------- Bob: Verifying Alice's unblinded signature ----------------//\r\n\t\t\t\tSystem.out.println(CriptoUtils.verify(alice_keyPair.getPublic(), msg,\r\n\t\t\t\t\t\tunblindedSigByAlice));\r\n\t\t\t\t// Now Bob has Alice's signature for the original message\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}", "title": "" }, { "docid": "f6ad8c1a9deecaf8d9ea48b2afdd535c", "score": "0.5678533", "text": "public URI createSignedAuthenticationRequest(RSAKey rsaKey) throws JOSEException {\n // Authentication request parameters, see createAuthenticationRequest() for in-depth explanations.\n URI authEndpointUri = URI.create(\"https://preprod.signicat.com/oidc/authorization\");\n ClientID clientID = new ClientID(\"service-provider-clientID\");\n Scope scope = new Scope(\"openid\", \"profile\", \"mitid\");\n URI redirectUri = URI.create(\"https://service-provider.example/redirect\");\n ACR acr = new ACR(\"urn:signicat:oidc:method:mitid-cpr\");\n State state = new State();\n Nonce nonce = new Nonce();\n ResponseType responseType = ResponseType.CODE;\n\n // The main reason we may want to sign our Authentication request is in order to use \"Authentic prefilled parameters\".\n // There are certain parameters where Signicat needs to ensure that the request was created by the service provider's client.\n // In MitID, one of these parameters is the \"reference text\", which is a text displayed in the MitID Client UI to the end-user.\n // Signicat requires that prefilled values for the reference text are only sent in signed requests,\n // since otherwise a malicious agent could use it to present whichever text they want.\n String loginHint = \"referenceText-My prefilled reference text\";\n\n // We will sign the request object with RS256.\n JWSAlgorithm jwsAlgorithm = JWSAlgorithm.RS256;\n\n // Create the header for the signed request object.\n JWSHeader jwsHeader = new JWSHeader.Builder(jwsAlgorithm)\n .keyID(rsaKey.getKeyID())\n .build();\n\n // Create the claims for the JWT request object.\n // The claims correspond to the parameters that would be used in an unsigned Authentication request.\n JWTClaimsSet requestObjectClaims = new AuthenticationRequest.Builder(responseType, scope, clientID, redirectUri)\n .acrValues(Collections.singletonList(acr))\n .loginHint(loginHint)\n .state(state)\n .nonce(nonce)\n .build()\n .toJWTClaimsSet();\n\n SignedJWT requestObject = new SignedJWT(jwsHeader, requestObjectClaims);\n\n // Sign the request object with our private key.\n requestObject.sign(new RSASSASigner(rsaKey));\n\n // Create the actual Authentication request.\n // There are several parameters we need to include as plain query parameters, even though they are included\n // as claims in the request object.\n //\n // To comply with OAuth 2.0, the request still needs to contain parameters and values for 'response_type' and 'client_id'.\n // To be a valid OIDC Authentication Request, we also need to include the 'scope' parameter.\n AuthenticationRequest authRequest = new AuthenticationRequest.Builder(requestObject, clientID)\n .responseType(responseType)\n .scope(scope)\n .endpointURI(authEndpointUri)\n .build();\n\n // The authentication will be initiated by sending the user to this URI.\n return authRequest.toURI();\n }", "title": "" }, { "docid": "25282f6b896463648ec1b5d445f0dde7", "score": "0.5676844", "text": "public void sign(KeyPair keys) {\r\n\t\tsign(keys, new SignatureParameters());\r\n\t}", "title": "" }, { "docid": "3e0b032c21df356d391e2776c5f655f4", "score": "0.5641868", "text": "public static void generateKey() {\n try {\n final KeyPairGenerator keyGen = KeyPairGenerator.getInstance(ALGORITHM);\n keyGen.initialize(1024);\n final KeyPair key = keyGen.generateKeyPair();\n\n File privateKeyFile = new File(PRIVATE_KEY_FILE);\n File publicKeyFile = new File(PUBLIC_KEY_FILE);\n\n // Create files to store public and private key\n if (privateKeyFile.getParentFile() != null) {\n privateKeyFile.getParentFile().mkdirs();\n }\n privateKeyFile.createNewFile();\n\n if (publicKeyFile.getParentFile() != null) {\n publicKeyFile.getParentFile().mkdirs();\n }\n publicKeyFile.createNewFile();\n\n // Saving the Public key in a file\n ObjectOutputStream publicKeyOS = new ObjectOutputStream(\n new FileOutputStream(publicKeyFile));\n publicKeyOS.writeObject(key.getPublic());\n publicKeyOS.close();\n\n // Saving the Private key in a file\n ObjectOutputStream privateKeyOS = new ObjectOutputStream(\n new FileOutputStream(privateKeyFile));\n privateKeyOS.writeObject(key.getPrivate());\n privateKeyOS.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }", "title": "" }, { "docid": "8b9b213d4aa18235e79fd73ad8881b40", "score": "0.56365323", "text": "static public boolean VerSignature(Signature sig, EllipticPoint V, byte[] m) {\n\t\tboolean state = false;\n\t\tEllipticPoint G = EllipticPoint.getG();\n\t\t//System.out.println(\"Gx before is \" + G.getX());\n\t\t//System.out.println(\"Gy before is \" + G.getY());\n\t\tbyte[] sigZ = byteToBigInt(sig.getZ());\n\t\tBigInteger zBig = new BigInteger(sigZ);\n\t\t\n\t\t//Step 1\n\t\tG.multiPointWithInteger(zBig);\n\t\t//System.out.println(\"Gx after is \" + G.getX());\n\t\t//System.out.println(\"Gy after is \" + G.getY());\n\t\t\n\t\t//step 2\n\t\tbyte[] sigH = sig.getH();\n\t\tBigInteger hBig = new BigInteger(sigH);\n\t\tV.multiPointWithInteger(hBig);\n\t\t\n\t\t//step 3\n\t\tEllipticPoint U = G.sumPoints(G, V);\n\t\t//System.out.println(\"Ux as an BigINt is\" + U.getX());\n\t\t\n\t\t\n\t\t//step 4\n\t\tbyte[] Ux = U.getX().toByteArray();\n\t\t\t\t//.toByteArray();\n//\t\tSystem.out.println(\"U is\" + Arrays.toString(Ux));\n//\t\tSystem.out.println(\"U is\" + new BigInteger(sigH));\n//\t\tSystem.out.println(\"h is\" + Arrays.toString(sigH));\n//\t\tSystem.out.println(\"z is\" + Arrays.toString(sigZ));\n\t\tbyte[] testArray = kmacxof256(Ux, m, 64, \"T\");\n\t\t//System.out.println(\"testArray is\" + new BigInteger(testArray));\n\t\tif(Arrays.equals(sig.getH(), testArray)) {\n\t\t\tstate = true;\n\t\t\t//System.out.println(\"worked\");\n\t\t} else {\n\t\t\tstate = false;\n\t\t\t//System.out.println(\"did not worked\");\n\t\t}\n\t\treturn state;\n\t}", "title": "" }, { "docid": "69bbb361375296b4880d8bcc8c380f8b", "score": "0.56297934", "text": "@Test\n public void shouldVerifySignedToken() {\n final String token = JwtUtil.signToken(samplePayload(), SECRET_KEY);\n\n // verify signed token.\n vertx.eventBus().send(JsonWebTokenValidator.VERIFY_MESSAGE, token, new Handler<Message>() {\n @Override\n public void handle(Message event) {\n final Boolean valid = (Boolean) event.body();\n\n if (valid) {\n testComplete();\n } else {\n fail();\n }\n }\n });\n }", "title": "" }, { "docid": "d437f476d92ef5532f13ba7db8b58b0a", "score": "0.56261694", "text": "public static String Sign(byte[] text, RSAPrivateKey privateKey) throws Exception\n{\n byte[] encodedBytes = null;\n try {\n Cipher c = Cipher.getInstance(\"RSA/ECB/PKCS1Padding\");\n c.init(Cipher.ENCRYPT_MODE, privateKey);\n encodedBytes = c.doFinal(text);\n } catch (Exception e) {\n Log.e(\"RSAHelper\", \"RSA encryption error\");\n throw e;\n }\n\n return Base64.encodeToString(encodedBytes, Base64.DEFAULT);\n}", "title": "" }, { "docid": "f93754beb6826a9a44b93cfabfb1195c", "score": "0.561944", "text": "@Override\r\n\tpublic void verify(PublicKey key)\r\n\t\t\tthrows CertificateException,\r\n\t\t\tInvalidKeyException, SignatureException {\r\n\r\n\t\t// Get the signature from the assertion\r\n\t\tSignature sign = assertion.getSignature();\r\n\t\tif (sign == null) {\r\n\t\t\tthrow new CertificateException(\"Signature not found\");\r\n\t\t}\r\n\r\n\t\t// If the assertion is not signed but the signature is not null we need to marshall the object\r\n\t\tif (!assertion.isSigned()) {\r\n\t\t\t// Create the encoded form\r\n\t\t\tgetEncoded();\r\n\t\t}\r\n\r\n\t\t// Get the suite of validator to check the validity of SAML code\r\n\t\tValidatorSuite vSuite = Configuration.getValidatorSuite(\"saml2-core-schema-validator\");\r\n\t\ttry {\r\n\t\t\tvSuite.validate(assertion);\r\n\t\t} catch (ValidationException e) {\r\n\t\t\tthrow new CertificateException(e.getMessage(), e);\r\n\t\t}\r\n\t\t/* CODE FOR NEW OPENSAML VERSIONS\r\n\t\tBasicX509SignatureTrustEngine engine = new BasicX509SignatureTrustEngine();\r\n\t\tWrapperKeyInfoSource wrapper = new WrapperKeyInfoSource(\"CertKeyInfos\", sign.getKeyInfo());\r\n\t\tInlineX509KeyInfoResolver resolver = new InlineX509KeyInfoResolver();\r\n\t\ttry\r\n\t\t{\r\n\t\t\tif(! engine.validate(sign, wrapper, resolver))\r\n\t\t\t\tthrow new SignatureException(\"Validation process failed\");\r\n\t\t}\r\n\t\tcatch(SecurityException e)\r\n\t\t{\r\n\t\t\tthrow new SignatureException(e.getMessage(), e);\r\n\t\t}\r\n/*/\r\n\r\n\t\tBasicCredential credential = new BasicCredential();\r\n\t\tcredential.setPublicKey(key);\r\n\t\tSignatureValidator signValidator = new SignatureValidator(credential);\r\n\t\ttry {\r\n\t\t\t// Now validate the sign\r\n\t\t\tsignValidator.validate(sign);\r\n\t\t} catch (ValidationException e) {\r\n\t\t\t// Validation Exception!\r\n\t\t\t// NOTE Gestire eccezione InvalidKeyException\r\n\t\t\tthrow new SignatureException(e.getMessage(), e);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "ff47a2f251f4c33eb53ad9212b82e93e", "score": "0.5618072", "text": "public byte[] sign(PrivateKey priv, byte[] mypub, byte[] otherpub, Cipher initcipher){\n try{\n sig.initSign(priv);\n // O par X,Y é assinado. Talvez sem calcular gx e gy explicitamente?\n sig.update(mypub);\n sig.update(otherpub);\n return initcipher.doFinal(sig.sign());\n\n \t}catch (Exception err) {System.out.println(\"Error on sig sign: \" + err);}\n \treturn null;\n\n }", "title": "" }, { "docid": "ea308dbbc0ddde24941da66b66e92378", "score": "0.5616467", "text": "@Test\n public void testAnySignatureRequiredSignature() throws Exception {\n final String TESTNAME = Thread.currentThread().getStackTrace()[1].getMethodName();\n // Issue a request authentication certificate while we still have the CA\n final String ocspAuthenticationUsername = TESTNAME+new Random().nextLong();\n final KeyPair ocspAuthenticationKeyPair = KeyTools.genKeys(\"1024\", AlgorithmConstants.KEYALGORITHM_RSA);\n final X509Certificate ocspAuthenticationCertificate = issueOcspAuthenticationCertificate(ocspAuthenticationUsername, ocspAuthenticationKeyPair.getPublic());\n //Now delete the original CA, making this test completely standalone.\n OcspTestUtils.deleteCa(authenticationToken, x509ca);\n activateKeyBinding(internalKeyBindingId);\n // Configure the OcspKeyBinding to require a signature (by any certificate)\n final OcspKeyBinding ocspKeyBinding = (OcspKeyBinding) internalKeyBindingMgmtSession.getInternalKeyBinding(authenticationToken, internalKeyBindingId);\n ocspKeyBinding.setRequireTrustedSignature(true);\n internalKeyBindingMgmtSession.persistInternalKeyBinding(authenticationToken, ocspKeyBinding);\n ocspResponseGeneratorSession.reloadOcspSigningCache();\n // Try to send a signed OCSP requests\n final OCSPReq ocspRequestSigned = buildOcspRequest(ocspAuthenticationCertificate, ocspAuthenticationKeyPair.getPrivate(),\n caCertificate, ocspSigningCertificate.getSerialNumber());\n final OCSPResp ocspResponseSigned = sendRequest(ocspRequestSigned);\n assertEquals(\"We expected a 'Successful' status code: \", OCSPResp.SUCCESSFUL, ocspResponseSigned.getStatus());\n validateSuccessfulResponse((BasicOCSPResp)ocspResponseSigned.getResponseObject(), ocspSigningCertificate.getPublicKey());\n }", "title": "" }, { "docid": "fcec6d2ca8ef404a51f692080f374a00", "score": "0.5575678", "text": "public String signMessage(String message) {\n\t\ttry {\r\n\t\t\tSignature sobj = Signature.getInstance(\"SHA1withRSA\");\r\n\t\t\tsobj.initSign(this.ccpriv);\r\n\t\t\tsobj.update(message.getBytes());\r\n\t\t\tbyte[] sig = sobj.sign();\r\n\t\t\treturn Base64.getEncoder().encodeToString(sig);\r\n\t\t\t\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\tSystem.exit(1);\r\n\t\t} \r\n\t\t\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "0f4f12a255f79fb2030d1e3df0d4a7da", "score": "0.55735546", "text": "com.webank.wedpr.scd.proto.CertificateSignatureOrBuilder getCertificateSignatureOrBuilder();", "title": "" }, { "docid": "412f69cc83b00a78524eb7e1c28b3b07", "score": "0.55490077", "text": "public static String sign(String secretKey, Hashtable params) {\n\t\ttry {\n\t\t\tString sortedParams = sortAndConvertTableToString(params);\n\t\t\tString signature = computeHmac(sortedParams, secretKey);\n\t\t\treturn java.net.URLEncoder.encode(signature);\n\t\t} catch (NoSuchAlgorithmException ex) {\n\t\t\tex.printStackTrace();\n\t\t} catch (InvalidKeyException ex) {\n\t\t\tex.printStackTrace();\n\t\t} catch (IllegalStateException ex) {\n\t\t\tex.printStackTrace();\n\t\t} catch (UnsupportedEncodingException ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "09c8a56d4c4e6fc87a8694752df9bdcd", "score": "0.55486333", "text": "public static boolean CheckChecksum (String message, byte[] sign, String publicKeyPath) throws NoSuchAlgorithmException, IOException, InvalidKeySpecException, InvalidKeyException, SignatureException, NoSuchProviderException \n\t{\n\t\tSystem.out.println(message);\n\t\tSystem.out.println(sign.toString());\n\t\tFileReader fr = new FileReader(publicKeyPath);\n try\n {\n \tfinal KeyFactory keyFactory = KeyFactory.getInstance(\"RSA\");\n final PemReader reader = new PemReader( new FileReader( publicKeyPath ) );\n final byte[] pKey = reader.readPemObject( ).getContent( );\n final X509EncodedKeySpec spec = new X509EncodedKeySpec(pKey);\n PublicKey publicKey = keyFactory.generatePublic( spec );\n \n \t\tfinal Signature sig = Signature.getInstance( \"RSA\");\n sig.initVerify( publicKey );\n sig.update( message.getBytes( \"UTF-8\"));\n return sig.verify(sign); \n \n }\n catch(Exception ex){\n \treturn false;\n\t\t}\n \n\t}", "title": "" }, { "docid": "1b2225b4de8890474b063e5c2447ffb1", "score": "0.5542977", "text": "@Test\n public void testSpecificSignerSignatureRequiredRightSignatureCert() throws Exception {\n final String TESTNAME = Thread.currentThread().getStackTrace()[1].getMethodName();\n // Issue a request authentication certificate while we still have the CA\n final String ocspAuthenticationUsername = TESTNAME+new Random().nextLong();\n final KeyPair ocspAuthenticationKeyPair = KeyTools.genKeys(\"1024\", AlgorithmConstants.KEYALGORITHM_RSA);\n final X509Certificate ocspAuthenticationCertificate = issueOcspAuthenticationCertificate(ocspAuthenticationUsername, ocspAuthenticationKeyPair.getPublic());\n //Now delete the original CA, making this test completely standalone.\n OcspTestUtils.deleteCa(authenticationToken, x509ca);\n activateKeyBinding(internalKeyBindingId);\n // Configure the OcspKeyBinding to require a signature\n final OcspKeyBinding ocspKeyBinding = (OcspKeyBinding) internalKeyBindingMgmtSession.getInternalKeyBinding(authenticationToken, internalKeyBindingId);\n ocspKeyBinding.setRequireTrustedSignature(true);\n // Trust signatures from our test CA and the certificate serial number from our auth cert\n addTrustEntry(ocspKeyBinding, x509ca.getCAId(), ocspAuthenticationCertificate.getSerialNumber());\n internalKeyBindingMgmtSession.persistInternalKeyBinding(authenticationToken, ocspKeyBinding);\n ocspResponseGeneratorSession.reloadOcspSigningCache();\n // Try to send a signed OCSP requests\n final OCSPReq ocspRequestSigned = buildOcspRequest(ocspAuthenticationCertificate, ocspAuthenticationKeyPair.getPrivate(),\n caCertificate, ocspSigningCertificate.getSerialNumber());\n final OCSPResp ocspResponseSigned = sendRequest(ocspRequestSigned);\n assertEquals(\"We expected a 'Successful' status code: \", OCSPResp.SUCCESSFUL, ocspResponseSigned.getStatus());\n validateSuccessfulResponse((BasicOCSPResp)ocspResponseSigned.getResponseObject(), ocspSigningCertificate.getPublicKey());\n }", "title": "" }, { "docid": "bb1a24c7c9c288a267654b22939c671f", "score": "0.5541736", "text": "com.webank.wedpr.scd.proto.SignCertificateRequestOrBuilder getSignCertificateRequestOrBuilder();", "title": "" }, { "docid": "7f71677e391c0b46d7ace07111a7e82d", "score": "0.55353296", "text": "public byte[] sign(Key key, byte[] data) throws GuacamoleException {\n\n try {\n\n // Init MAC for signing using secret key\n Mac mac = Mac.getInstance(SIGNATURE_MAC_ALGORITHM_NAME);\n mac.init(key);\n\n // Sign provided data\n return mac.doFinal(data);\n\n }\n\n // Rethrow all signature failures identically\n catch (NoSuchAlgorithmException | InvalidKeyException | IllegalStateException e) {\n throw new GuacamoleServerException(e);\n }\n\n }", "title": "" }, { "docid": "b1305784949324bac981eff918f36472", "score": "0.5520086", "text": "public static String sign(byte[] data, String privateKey) {\n String str = \"\";\n try {\n // Decode the base64 private key.\n byte[] bytes = EncodeUtil.decodeBase64(privateKey);\n\n // Build the PKCS8EncodedKeySpec Object.\n PKCS8EncodedKeySpec pkcs = new PKCS8EncodedKeySpec(bytes);\n\n // Set the crypto.\n KeyFactory factory = KeyFactory.getInstance(KEY_RSA);\n\n // Get private key.\n PrivateKey key = factory.generatePrivate(pkcs);\n\n // Generate signature by private key.\n Signature signature = Signature.getInstance(KEY_RSA_SIGNATURE);\n signature.initSign(key);\n signature.update(data);\n str = EncodeUtil.encodeBase64(signature.sign());\n } catch (Exception e) {\n e.printStackTrace();\n }\n return str;\n }", "title": "" }, { "docid": "28fe1dae6f61ed8cf54b9cac7afe77c3", "score": "0.5506402", "text": "@Test\n\tvoid newSharedSecret() throws Exception\n\t{\n\t\tString cipherAlgorithm;\n\t\tString secretKeyAlgorithm;\n\t\tString keyAgreementAlgorithm;\n\t\tString keyFactoryAlgorithm;\n\t\tString keyPairGeneratorAlgorithm;\n\t\tKeyPairGenerator keyPairGenerator;\n\t\tint keySize;\n\n\t\t// 1. The initiator(Alice in our case) generates a key pair(public and private) and sends\n\t\t// the public key, along with the algorithm specification, to the other(Bob in our case)\n\t\t// party.\n\t\tkeyPairGeneratorAlgorithm = \"EC\";\n\t\tkeyFactoryAlgorithm = keyPairGeneratorAlgorithm;\n\t\tsecretKeyAlgorithm = \"DES\";\n\t\tkeyAgreementAlgorithm = \"ECDH\";\n\t\tcipherAlgorithm = \"DES/ECB/PKCS5Padding\";\n\t\tkeySize = 256;\n\t\tkeyPairGenerator = KeyPairGeneratorFactory.newKeyPairGenerator(keyPairGeneratorAlgorithm);\n\t\tkeyPairGenerator.initialize(keySize);\n\n\t\tKeyPair aliceKeyPair = keyPairGenerator.generateKeyPair();\n\t\tbyte[] alicePk = aliceKeyPair.getPublic().getEncoded();\n\n\t\t// Display public key from Alice\n\t\tSystem.out.format(\"Alice Public Key: %s%n\", printHexBinary(alicePk));\n\n\t\t// 2. The other(Bob in our case) party generates its own key pair(public and private) using\n\t\t// the algorithm specification and sends the public key to the initiator(Alice in our case).\n\n\t\tkeyPairGenerator = KeyPairGeneratorFactory.newKeyPairGenerator(keyPairGeneratorAlgorithm);\n\t\tkeyPairGenerator.initialize(keySize);\n\t\tKeyPair bobKeyPair = keyPairGenerator.generateKeyPair();\n\n\t\tbyte[] bobPk = bobKeyPair.getPublic().getEncoded();\n\t\t// Display public key from Bob\n\t\tSystem.out.format(\"Bob Public Key: %s%n\", printHexBinary(bobPk));\n\n\t\tKeyFactory keyFactory = KeyFactory.getInstance(keyFactoryAlgorithm);\n\t\tX509EncodedKeySpec bobPkSpec = new X509EncodedKeySpec(bobPk);\n\t\tPublicKey bobPublicKey = keyFactory.generatePublic(bobPkSpec);\n\t\t// 3. The initiator(Alice in our case) generates the secret key using its private key and\n\t\t// the other(Bob in our case) party's public key.\n\t\t// Create key agreement\n\t\tKeyAgreement aliceKeyAgreement = KeyAgreement.getInstance(keyAgreementAlgorithm);\n\t\taliceKeyAgreement.init(aliceKeyPair.getPrivate());\n\t\taliceKeyAgreement.doPhase(bobPublicKey, true);\n\n\t\t// Read shared secret from Alice\n\t\tbyte[] aliceSharedSecret = aliceKeyAgreement.generateSecret();\n\t\tSystem.out.format(\"Alice Shared secret: %s%n\", printHexBinary(aliceSharedSecret));\n\n\t\t// 4. The other party also generates the secret key using its private key and the\n\t\t// initiator's public key. Diffie-Hellamn algorithm ensures that both parties generate the\n\t\t// same secret key.\n\t\t// Create key agreement for Bob\n\t\tKeyAgreement bobKeyAgreement = KeyAgreement.getInstance(keyAgreementAlgorithm);\n\t\tbobKeyAgreement.init(bobKeyPair.getPrivate());\n\t\tbobKeyAgreement.doPhase(aliceKeyPair.getPublic(), true);\n\n\t\t// Read shared secret from Bob\n\t\tbyte[] bobSharedSecret = aliceKeyAgreement.generateSecret();\n\t\tSystem.out.format(\"Bob Shared secret: %s%n\", printHexBinary(bobSharedSecret));\n\n\t\t// 5. generate key from Alice shared secret\n\t\tSecretKey aliceSecretKey = SecretKeyFactoryExtensions.newSecretKey(aliceSharedSecret,\n\t\t\tsecretKeyAlgorithm);\n\n\t\tCipher aliceCipher = Cipher.getInstance(cipherAlgorithm);\n\t\taliceCipher.init(Cipher.ENCRYPT_MODE, aliceSecretKey);\n\t\tbyte[] encryptedByteArray = aliceCipher\n\t\t\t.doFinal(\"Free your mind and get the best out of you\".getBytes());\n\n\t\t// Step 6: generate key from Bob shared secret\n\t\tSecretKeyFactory bobSecretKeyFactory = SecretKeyFactory.getInstance(secretKeyAlgorithm);\n\t\tDESKeySpec bobKeySpec = new DESKeySpec(bobSharedSecret);\n\t\tSecretKey bobSecretKey = bobSecretKeyFactory.generateSecret(bobKeySpec);\n\n\t\t// Step 8: Bob receives the encrypted text and decrypts it\n\t\tCipher bobCipher = Cipher.getInstance(cipherAlgorithm);\n\t\tbobCipher.init(Cipher.DECRYPT_MODE, bobSecretKey);\n\t\tbyte[] plaintext = bobCipher.doFinal(encryptedByteArray);\n\t\tString text = new String(plaintext);\n\t\tSystem.out.println(\"Bob reads the message of Alice:\\n\" + text);\n\t}", "title": "" }, { "docid": "b626d2276594b2808a563fdc486cc3e9", "score": "0.54905784", "text": "protected abstract void assertGeneratedKeyPairInternals(AsymmetricKeys keyPair);", "title": "" }, { "docid": "c68635fd902541d5d0121aae75484726", "score": "0.5486139", "text": "public static boolean verifySig(byte[] data, PublicKey key, byte[] sig) throws Exception {\n\t Signature sign = Signature.getInstance(\"SHA1withRSA\");\n\t sign.initVerify(key);\n\t sign.update(data);\n\t return (sign.verify(sig));\n\t }", "title": "" }, { "docid": "f30c86627de08341c1d6c337e433078a", "score": "0.5476013", "text": "@Test\n public void testSpecificSignerSignatureRequiredWrongSignatureCert() throws Exception {\n final String TESTNAME = Thread.currentThread().getStackTrace()[1].getMethodName();\n // Issue a request authentication certificate while we still have the CA\n final String ocspAuthenticationUsername = TESTNAME+new Random().nextLong();\n final KeyPair ocspAuthenticationKeyPair = KeyTools.genKeys(\"1024\", AlgorithmConstants.KEYALGORITHM_RSA);\n final X509Certificate ocspAuthenticationCertificate = issueOcspAuthenticationCertificate(ocspAuthenticationUsername, ocspAuthenticationKeyPair.getPublic());\n //Now delete the original CA, making this test completely standalone.\n OcspTestUtils.deleteCa(authenticationToken, x509ca);\n activateKeyBinding(internalKeyBindingId);\n // Configure the OcspKeyBinding to require a signature (by any certificate)\n final OcspKeyBinding ocspKeyBinding = (OcspKeyBinding) internalKeyBindingMgmtSession.getInternalKeyBinding(authenticationToken, internalKeyBindingId);\n ocspKeyBinding.setRequireTrustedSignature(true);\n // Trust signatures from our test CA and certificate serial number \"0\" (that should be the one we are using)\n addTrustEntry(ocspKeyBinding, x509ca.getCAId(), new BigInteger(\"0\"));\n internalKeyBindingMgmtSession.persistInternalKeyBinding(authenticationToken, ocspKeyBinding);\n ocspResponseGeneratorSession.reloadOcspSigningCache();\n // Try to send a signed OCSP requests\n final OCSPReq ocspRequestSigned = buildOcspRequest(ocspAuthenticationCertificate, ocspAuthenticationKeyPair.getPrivate(),\n caCertificate, ocspSigningCertificate.getSerialNumber());\n final OCSPResp ocspResponseSigned = sendRequest(ocspRequestSigned);\n assertEquals(\"We expected a 'Unauthorized' status code: \", OCSPResp.UNAUTHORIZED, ocspResponseSigned.getStatus());\n assertNull(\"Unauthorized signed request did not generate null-response.\", ocspResponseSigned.getResponseObject());\n }", "title": "" }, { "docid": "b41736593a6d1c3802ab5b689c83ac5b", "score": "0.5469258", "text": "public static boolean verifySig(byte[] data, PublicKey key, byte[] sig) throws Exception {\n Signature signer = Signature.getInstance(\"SHA1withRSA\"); // create an instance of SHA1 algorithm\n signer.initVerify(key); // get teh signers public key and verify\n signer.update(data);\n\n return (signer.verify(sig)); // return t/f if the signature is valid\n }", "title": "" }, { "docid": "1b4d6860fa11a393cfe3a351d5f40f54", "score": "0.54655933", "text": "private String verifySignatureWithRsa(String signedIdToken, String clientId) throws InvalidDataException {\n try {\n HttpsJwksVerificationKeyResolver httpsJwksKeyResolver = new HttpsJwksVerificationKeyResolver(httpsJkws);\n JwtConsumer jwtConsumer = new JwtConsumerBuilder()\n .setRequireExpirationTime() // the JWT must have an expiration time\n .setRequireSubject() // the JWT must have a subject claim\n .setExpectedAudience(clientId) // the JWT must have a audience claim with client_id\n .setVerificationKeyResolver(httpsJwksKeyResolver)\n .build();\n\n // Validate the JWT and process it to the Claims\n JwtClaims jwtClaims = jwtConsumer.processToClaims(signedIdToken);\n return jwtClaims.toJson();\n } catch (InvalidJwtException e) {\n throw new InvalidDataException(\"Cannot verify the signature based on the public key\");\n }\n }", "title": "" }, { "docid": "b7f92c28bc2273f330a9c137417e5e21", "score": "0.54542035", "text": "public static void main(String[] args) throws IOException, NoSuchAlgorithmException, NoSuchProviderException, NoSuchPaddingException, InvalidKeySpecException, InvalidKeyException, IllegalBlockSizeException, BadPaddingException, SignatureException{\n KeyGen keys_alice = new KeyGen(KEY_SIZE, KEY_INSTANCE);\n KeyGen keys_bob = new KeyGen(KEY_SIZE, KEY_INSTANCE);\n keys_alice.createKeys();\n keys_bob.createKeys();\n \n // write the keys to files\n SimpleIO.writeContent(ALICE_PUBLIC_KEY, keys_alice.getPublicKeyBytes());\n SimpleIO.writeContent(ALICE_PRIVATE_KEY, keys_alice.getPrivateKeyBytes());\n SimpleIO.writeContent(BOB_PUBLIC_KEY, keys_bob.getPublicKeyBytes());\n SimpleIO.writeContent(BOB_PRIVATE_KEY, keys_bob.getPrivateKeyBytes());\n \n // generate symmetric keys\n SymKeyGen secretKey = new SymKeyGen(SECRET_LENGTH_BYTES, SECRET_KEY_SPEC_ALGO);\n SimpleIO.writeContent(SECRET_KEY_PATH, secretKey.getKeyBytes());\n \n // generate symmetric key, public and private keys from files\n \n PrivateKey bobPrivateKey = CryptManager.getPrivateKey(BOB_PRIVATE_KEY, KEY_INSTANCE);\n PublicKey bobPublicKey = CryptManager.getPublicKey(BOB_PUBLIC_KEY, KEY_INSTANCE);\n File bobPrivateKeyFile = new File(BOB_PRIVATE_KEY);\n File bobPublicKeyFile = new File(BOB_PUBLIC_KEY);\n \n PrivateKey alicePrivateKey = CryptManager.getPrivateKey(ALICE_PRIVATE_KEY, KEY_INSTANCE);\n PublicKey alicePublicKey = CryptManager.getPublicKey(ALICE_PUBLIC_KEY, KEY_INSTANCE);\n File alicePrivateKeyFile = new File(ALICE_PRIVATE_KEY);\n File alicePublicKeyFile = new File(ALICE_PUBLIC_KEY);\n \n \n // StartEncryption startEnc = new StartEncryption();\n\n File secretKeyFile = new File(SECRET_KEY_PATH);\n SecretKeySpec secret = CryptManager.getSecretKey(secretKeyFile, SECRET_KEY_SPEC_ALGO);\n File secretKeyFileEncrypted = new File(SECRET_KEY_PATH_ENCRYPTED);\n \n // create the encrypted file\n File unprotected_file = new File(PAYLOAD);\n File protected_file = new File(PAYLOAD_ENCRYPTED);\n File output = new File(PAYLOAD_DECRYPTED);\n CryptManager.encryptKey(bobPublicKey, secretKeyFile, secretKeyFileEncrypted, KEY_INSTANCE);\n CryptManager.encryptData(unprotected_file, protected_file, secret, SECRET_KEY_SPEC_ALGO);\n \n // create the decryption secret\n File secretEncryptedFile = new File(SECRET_KEY_PATH_ENCRYPTED);\n File secretDecryptedFile = new File(SECRET_KEY_PATH_DECRYPTED);\n // SecretKeySpec decryptedSecret = CryptManager.getSecretKey(secretDecryptedFile, SECRET_KEY_SPEC_ALGO);\n CryptManager.decryptKey(bobPrivateKey, secretEncryptedFile, secretDecryptedFile, KEY_INSTANCE);\n CryptManager.decryptData(protected_file, output, secret, SECRET_KEY_SPEC_ALGO);\n \n }", "title": "" }, { "docid": "dc084858947c7cf61d7507130db11a78", "score": "0.5443238", "text": "public static byte[] signData(byte[] data, PrivateKey key) throws Exception {\n\t Signature sig = Signature.getInstance(\"SHA1withRSA\");\n\t sig.initSign(key);\n\t sig.update(data);\n\t return (sig.sign());\n\t }", "title": "" }, { "docid": "a48181c6be46bbe37f7084a64d2b3cfc", "score": "0.54396725", "text": "public static byte[] sign(String inp, byte[] privateKey){\n byte[] inpBytes = inp.getBytes(StandardCharsets.UTF_8);\n try {\n PrivateKey key = KeyFactory.getInstance(\"RSA\").generatePrivate(new PKCS8EncodedKeySpec(privateKey));\n Signature signer = Signature.getInstance(\"SHA256withRSA\");\n signer.initSign(key);\n signer.update(inpBytes);\n return signer.sign();\n }\n catch (Exception e){\n e.printStackTrace();\n return null;\n }\n }", "title": "" }, { "docid": "98b5434f06f320b519984a2699c7057c", "score": "0.54311913", "text": "public void signInner(SigningPrivateKey spk) {\n signIt(spk, PROP_OLDSIG);\n }", "title": "" }, { "docid": "72011e5217b1291a596cbfff0e0334c6", "score": "0.54280543", "text": "com.webank.wedpr.scd.proto.SignCertificateRequest getSignCertificateRequest();", "title": "" }, { "docid": "67ea619cae3ce8ea6d1554c669994efd", "score": "0.542745", "text": "public static byte[] SignChecksum (String checksum, String privateKeyPath) throws NoSuchAlgorithmException, InvalidKeySpecException, InvalidKeyException, SignatureException, IOException, NoSuchProviderException\n\t{\n\t\tfinal KeyFactory keyFactory = KeyFactory.getInstance(\"RSA\");\n final PemReader reader = new PemReader( new FileReader( privateKeyPath ) );\n final byte[] prKey = reader.readPemObject( ).getContent( );\n final PKCS8EncodedKeySpec pkcs8Spec = new PKCS8EncodedKeySpec(prKey);\n PrivateKey privateKey = keyFactory.generatePrivate( pkcs8Spec );\n \n final Signature sig = Signature.getInstance( \"RSA\");\n sig.initSign(privateKey);\n sig.update(checksum.getBytes(\"UTF-8\"));\n byte[] signedData = sig.sign();\n\n return signedData;\n\t}", "title": "" }, { "docid": "34324e80ee541f4392df4501dd1f0543", "score": "0.5408005", "text": "@Test\n public void spendAuthSigTest() {\n // TODO: test spendAuthSig\n }", "title": "" }, { "docid": "80f0b956010f06036df2de63183c2963", "score": "0.5406509", "text": "private static XMLSignature signInternal(Node a_node, IMyPrivateKey a_privateKey) throws XMLParseException {\n byte[] digestValue;\n byte[] signatureValue;\n Element elementToSign;\n XMLSignature xmlSignature;\n Element oldSignatureNode;\n if (a_node == null || a_privateKey == null) {\n return null;\n } else if (a_node instanceof Document) {\n elementToSign = ((Document) a_node).getDocumentElement();\n } else if (a_node instanceof Element) {\n elementToSign = (Element) a_node;\n } else {\n return null;\n }\n xmlSignature = new XMLSignature();\n oldSignatureNode = removeSignatureFromInternal(elementToSign);\n try {\n try {\n digestValue = MessageDigest.getInstance(\"SHA-1\").digest(toCanonical(elementToSign));\n } catch (NoSuchAlgorithmException a_e) {\n return null;\n }\n xmlSignature.m_referenceURI = \"\";\n xmlSignature.m_digestMethod = DIGEST_METHOD_ALGORITHM;\n xmlSignature.m_digestValue = new String(Base64.encode(digestValue, false));\n Document doc = elementToSign.getOwnerDocument();\n Element signedInfoNode = doc.createElement(ELEM_SIGNED_INFO);\n Element canonicalizationNode = doc.createElement(ELEM_CANONICALIZATION_METHOD);\n Element signatureMethodNode = doc.createElement(ELEM_SIGNATURE_METHOD);\n String signatureMethod = a_privateKey.getSignatureAlgorithm().getXMLSignatureAlgorithmReference();\n if (signatureMethod != null) {\n xmlSignature.m_signatureMethod = signatureMethod;\n XMLUtil.setAttribute(signatureMethodNode, ATTR_ALGORITHM, signatureMethod);\n } else {\n xmlSignature.m_signatureMethod = \"\";\n }\n Element referenceNode = doc.createElement(ELEM_REFERENCE);\n if (xmlSignature.getReferenceURI().length() > 0) {\n referenceNode.setAttribute(ATTR_URI, xmlSignature.getReferenceURI());\n }\n Element digestMethodNode = doc.createElement(ELEM_DIGEST_METHOD);\n XMLUtil.setAttribute(digestMethodNode, ATTR_ALGORITHM, DIGEST_METHOD_ALGORITHM);\n Element digestValueNode = doc.createElement(ELEM_DIGEST_VALUE);\n XMLUtil.setValue(digestValueNode, xmlSignature.m_digestValue);\n referenceNode.appendChild(digestMethodNode);\n referenceNode.appendChild(digestValueNode);\n signedInfoNode.appendChild(canonicalizationNode);\n signedInfoNode.appendChild(signatureMethodNode);\n signedInfoNode.appendChild(referenceNode);\n xmlSignature.m_signedInfoCanonical = toCanonical(signedInfoNode);\n signatureValue = ByteSignature.sign(xmlSignature.m_signedInfoCanonical, a_privateKey);\n signatureValue = a_privateKey.getSignatureAlgorithm().encodeForXMLSignature(signatureValue);\n if (signatureValue == null) {\n return null;\n }\n xmlSignature.m_signatureValue = new String(Base64.encode(signatureValue, false));\n Element signatureValueNode = doc.createElement(ELEM_SIGNATURE_VALUE);\n signatureValueNode.appendChild(doc.createTextNode(xmlSignature.m_signatureValue));\n Element signatureNode = doc.createElement(XML_ELEMENT_NAME);\n signatureNode.appendChild(signedInfoNode);\n signatureNode.appendChild(signatureValueNode);\n elementToSign.appendChild(signatureNode);\n xmlSignature.m_elemSignature = signatureNode;\n xmlSignature.m_bVerified = true;\n return xmlSignature;\n } catch (XMLParseException a_e) {\n if (oldSignatureNode != null) {\n elementToSign.appendChild(oldSignatureNode);\n }\n throw a_e;\n } catch (Exception a_e) {\n LogHolder.log(LogLevel.EXCEPTION, LogType.CRYPTO, \"Could not sign XML document!\", a_e);\n if (oldSignatureNode != null) {\n elementToSign.appendChild(oldSignatureNode);\n }\n return null;\n }\n }", "title": "" }, { "docid": "68ddb2371ba06f2654d6f8bd261ec150", "score": "0.5403958", "text": "public byte[] sign(String data, String keyFile) throws InvalidKeyException, Exception {\n\t\tSignature rsa = Signature.getInstance(\"SHA256withRSA\");\n\t\trsa.initSign(getPrivate(keyFile));\n\t\trsa.update(data.getBytes());\n\t\treturn rsa.sign();\n\t}", "title": "" }, { "docid": "b8b43b0b33a52f923586990af597d423", "score": "0.5396111", "text": "@Test\n public void testAnySignatureRequiredNoSignature() throws Exception {\n //Now delete the original CA, making this test completely standalone.\n OcspTestUtils.deleteCa(authenticationToken, x509ca);\n activateKeyBinding(internalKeyBindingId);\n // Configure the OcspKeyBinding to require a signature (by any certificate)\n final OcspKeyBinding ocspKeyBinding = (OcspKeyBinding) internalKeyBindingMgmtSession.getInternalKeyBinding(authenticationToken, internalKeyBindingId);\n ocspKeyBinding.setRequireTrustedSignature(true);\n internalKeyBindingMgmtSession.persistInternalKeyBinding(authenticationToken, ocspKeyBinding);\n ocspResponseGeneratorSession.reloadOcspSigningCache();\n // Try to send an unsigned OCSP requests\n final OCSPReq ocspRequestUnsigned = buildOcspRequest(null, null, caCertificate, ocspSigningCertificate.getSerialNumber());\n final OCSPResp ocspResponseUnsigned = sendRequest(ocspRequestUnsigned);\n assertEquals(\"We expected a 'Signature Required' status code: \", OCSPResp.SIG_REQUIRED, ocspResponseUnsigned.getStatus());\n assertNull(\"We expected the response object to be null when 'Signature Required' is recieved.\", ocspResponseUnsigned.getResponseObject());\n }", "title": "" }, { "docid": "0c1dfe0269498eb06fcd5f0a6980df44", "score": "0.5390138", "text": "private static boolean verify(String pathSignedFile) throws IOException, ClassNotFoundException, NoSuchAlgorithmException {\n BigInteger e;\n BigInteger n;\n List<BigInteger> publicKeys = new ArrayList<>();\n InputStream fis = null;\n try {\n fis = new FileInputStream(pathPublicFile);\n } catch (FileNotFoundException ex) {\n System.out.println(\"public.rsa is not found in the current directory!\");\n System.exit(1);\n }\n ObjectInputStream objectinputstream = new ObjectInputStream(fis);\n publicKeys = (List<BigInteger>) objectinputstream.readObject();\n fis.close();\n e = publicKeys.get(0);\n n = publicKeys.get(1);\n\n //hash the file\n MessageDigest md = MessageDigest.getInstance(\"SHA-256\");\n fis = null;\n long sizeOfOriginalFile = 0;\n try {\n File file = new File(pathSignedFile);\n sizeOfOriginalFile = file.length() - 512;\n fis = new FileInputStream(file);\n } catch (FileNotFoundException ex) {\n System.out.println(pathSignedFile + \" is not found in the current directory!\");\n System.exit(1);\n }\n byte[] dataBytes = new byte[1024];\n int nread = 0;\n long totalNRead = 0;\n while (totalNRead < sizeOfOriginalFile) {\n if (totalNRead < sizeOfOriginalFile - 1024) {\n nread = fis.read(dataBytes);\n md.update(dataBytes, 0, nread);\n totalNRead += nread;\n } else {\n nread = fis.read(dataBytes, 0, (int) (sizeOfOriginalFile - totalNRead));\n md.update(dataBytes, 0, nread);\n totalNRead += nread;\n// System.out.println(new String(dataBytes));\n }\n }\n byte[] mdbytes = md.digest();\n BigInteger sha256 = new BigInteger(mdbytes);\n sha256 = sha256.abs();\n byte[] sha256SignatureBytes = new byte[512];\n fis.read(sha256SignatureBytes);\n String sha256SignatureHex = new String(sha256SignatureBytes);\n\n BigInteger sha256Signature = new BigInteger(sha256SignatureHex, 16);\n BigInteger sha256_incryp = sha256Signature.modPow(e, n);\n fis.close();\n return (sha256.equals(sha256_incryp));\n }", "title": "" }, { "docid": "bda42f7b7f147cabd45d95e2848884c2", "score": "0.537757", "text": "void createKey();", "title": "" }, { "docid": "d52f34d2388081d5ed729af2a49aecac", "score": "0.5374756", "text": "public int generateKeyPair_MB (byte[] publicKey, byte[] privateKey, SecureRandom secureRandom) throws\n\n\tBadPaddingException,\n\tIllegalBlockSizeException,\n\tInvalidKeyException,\n\tNoSuchAlgorithmException,\n\tNoSuchPaddingException,\n\tShortBufferException\n\n{\n\t\n\t/* Initialize Domain Separator for Error Polynomial and Secret Polynomial */\n\tint nonce = 0;\n\t\n\tbyte[] randomness\t\t\t= new byte[QTESLAParameter.RANDOM];\n\t\n\t/* Extend Random Bytes to Seed Generation of Error Polynomial and Secret Polynomial */\n\tbyte[] randomnessExtended\t= new byte[QTESLAParameter.SEED * (parameter.k + 3)];\n\t\n\tint[] secretPolynomial\t\t\t\t\t\t\t= new int[parameter.n];\n\tint[] secretPolynomialNumberTheoreticTransform\t= new int[parameter.n];\n\tint[] errorPolynomial\t\t\t\t\t\t\t= new int[parameter.n * parameter.k];\n\tint[] A\t\t\t\t\t\t\t\t\t\t= new int[parameter.n * parameter.k];\n\tint[] T\t\t\t\t\t\t\t\t\t\t= new int[parameter.n * parameter.k];\n\t\n\t/* Get randomnessExtended <- seedErrorPolynomial, seedSecretPolynomial, seedA, seedY */\n\trandomNumberGenerator.randomByte (randomness, 0, QTESLAParameter.RANDOM);\n\t// secureRandom.nextBytes (randomness);\n\t\n\t//TMP\n\t /* randomness[0]=-74;\n\t randomness[1]=89;\n\t randomness[2]=-62;\n\t randomness[3]=18;\n\t randomness[4]=106;\n\t randomness[5]=-120;\n\t randomness[6]=-47;\n\t randomness[7]=-10;\n\t randomness[8]=-96;\n\t randomness[9]=89;\n\t randomness[10]=9;\n\t randomness[11]=48;\n\t randomness[12]=33;\n\t randomness[13]=94;\n\t randomness[14]=-123;\n\t randomness[15]=-83;\n\t randomness[16]=41;\n\t randomness[17]=-76;\n\t randomness[18]=-109;\n\t randomness[19]=111;\n\t randomness[20]=-39;\n\t randomness[21]=-93;\n\t randomness[22]=61;\n\t randomness[23]=79;\n\t randomness[24]=60;\n\t randomness[25]=33;\n\t randomness[26]=47;\n\t randomness[27]=-95;\n\t randomness[28]=35;\n\t randomness[29]=-118;\n\t randomness[30]=8;\n\t randomness[31]=-81;*/\n\t\n\tif (parameter.parameterSet == \"qTESLA-P-I\") {\n\t\t\n\t\tFederalInformationProcessingStandard202.secureHashAlgorithmKECCAK128 (\t\t\t\n\t\t\trandomnessExtended, 0, QTESLAParameter.SEED * (parameter.k + 3), randomness, 0, QTESLAParameter.RANDOM\t\t\n\t\t);\n\t\t\n\t}\n\t\n\tif (parameter.parameterSet == \"qTESLA-P-III\") {\n\t\t\n\t\tFederalInformationProcessingStandard202.secureHashAlgorithmKECCAK256 (\n\t\t\t\n\t\t\trandomnessExtended, 0, QTESLAParameter.SEED * (parameter.k + 3), randomness, 0, QTESLAParameter.RANDOM\n\t\t\n\t\t);\t\t\n\t}\n\t\n\t/* \n\t * Sample the Error Polynomial Fulfilling the Criteria \n\t * Choose All Error Polynomial_i in R with Entries from D_SIGMA\n\t * Repeat Step at Iteration if the h Largest Entries of Error Polynomial_k Summation to L_E\n\t */\n\tfor (int i = 0; i < parameter.k; i++) {\t\t\n\t\tdo {\t\t\t\n\t\t\tqTESLAGaussianSampler.polynomialGaussianSampler_MB (\t\t\t\t\t\n\t\t\t\terrorPolynomial, parameter.n * i, randomnessExtended, QTESLAParameter.SEED * i, ++nonce\t\t\t\t\n\t\t\t);\t\t\t\n\t\t} while (checkPolynomial_MB (errorPolynomial, parameter.n * i, parameter.boundE) == true);\n\t\n\t}\n\t\n\t/* \n\t * Sample the Secret Polynomial Fulfilling the Criteria \n\t * Choose Secret Polynomial in R with Entries from D_SIGMA\n\t * Repeat Step if the h Largest Entries of Secret Polynomial Summation to L_S\n\t */\n\tdo {\n\t\t\n\t\tqTESLAGaussianSampler.polynomialGaussianSampler_MB (\t\t\t\t\n\t\t\tsecretPolynomial, 0, randomnessExtended, QTESLAParameter.SEED * parameter.k, ++nonce\t\t\t\n\t\t);\n\t\t\t\t\t\n\t} while (checkPolynomial_MB (secretPolynomial, 0, parameter.boundS) == true);\n\t\n\t/* Generate Uniform Polynomial A */\n\tpolynomial.polynomialUniform_MB (A, randomnessExtended, QTESLAParameter.SEED * (parameter.k + 1));\t\t\n\tpolynomial.polynomialNumberTheoreticTransform_MB (secretPolynomialNumberTheoreticTransform, secretPolynomial);\n\t\n\t/* Compute the Public Key T = A * secretPolynomial + errorPolynomial */\n\tfor (int i = 0; i < parameter.k; i++) {\t\t\n\t\tpolynomial.polynomialMultiplication_MB (\t\t\t\t\n\t\t\tT, parameter.n * i, A, parameter.n * i, secretPolynomialNumberTheoreticTransform, 0\t\t\t\n\t\t);\t\n\t\t\n\t\tpolynomial.polynomialAdditionCorrection_MB (\t\t\t\t\n\t\t\tT, parameter.n * i, T, parameter.n * i, errorPolynomial, parameter.n * i\t\t\t\n\t\t);\t\n\t}\n\t\n\tqTESLAPack.encodePublicKey_MB (publicKey, T, randomnessExtended, QTESLAParameter.SEED * (parameter.k + 1));\n\n\t\n\t/* Pack Public and Private Keys */\t\n\tbyte[] hash_pk = new byte [parameter.h];\t\n\tFederalInformationProcessingStandard202.secureHashAlgorithmKECCAK256 (\t\t\t\n\t\t\thash_pk, 0, parameter.h, \n\t\t\tpublicKey, 0, parameter.publicKeySize - QTESLAParameter.SEED\t\t\t\t\n\t\t);\n\t\n\tqTESLAPack.encodePrivateKey_MB (privateKey, secretPolynomial, errorPolynomial, randomnessExtended, \n\t\t\t(parameter.k + 1) * QTESLAParameter.SEED, hash_pk);\t\n\treturn 0;\t\n}", "title": "" }, { "docid": "d7278fd3cfba7dffcfddc6abc6a2bd78", "score": "0.5366583", "text": "@Override\n\t\tpublic byte[] sign(byte[] digest) throws NoSuchAlgorithmException {\n\t\t\t\n\t\t\tif ( _keyPair.getPrivate() == null ) {\n\t\t\t\t// TODO\n\t\t\t}\n\t\t\t\n\t\t\t// Construct the encoded message\n\t\t\tbyte[] EM = EMSA_PKCS1_V1_5_ENCODE_HASH(digest, _emLen, \"SHA-256\");\n\t\t\t\n\t\t\t// Convert to integer message\n\t\t\tBigInteger s = OS2IP(EM);\n\t\t\t\n\t\t\t// RSASP1(s)\n\t\t\ts = RSASP1((RSAPrivateKey)_keyPair.getPrivate(), s);\n\t\t\t\n\t\t\t// Convert to octet sequence\n\t\t\treturn I2OSP(s, _emLen );\n\t\t}", "title": "" }, { "docid": "d7ef57d551e3500d93b7f899cd40bc7b", "score": "0.53647083", "text": "@Test\n public void testNoSignatureRequiredButSignaturePresent() throws Exception {\n final String TESTNAME = Thread.currentThread().getStackTrace()[1].getMethodName();\n // Issue a request authentication certificate while we still have the CA\n final String ocspAuthenticationUsername = TESTNAME+new Random().nextLong();\n final KeyPair ocspAuthenticationKeyPair = KeyTools.genKeys(\"1024\", AlgorithmConstants.KEYALGORITHM_RSA);\n final X509Certificate ocspAuthenticationCertificate = issueOcspAuthenticationCertificate(ocspAuthenticationUsername, ocspAuthenticationKeyPair.getPublic());\n //Now delete the original CA, making this test completely standalone.\n OcspTestUtils.deleteCa(authenticationToken, x509ca);\n activateKeyBinding(internalKeyBindingId);\n // Configure the OcspKeyBinding to require a signature (by any certificate)\n final OcspKeyBinding ocspKeyBinding = (OcspKeyBinding) internalKeyBindingMgmtSession.getInternalKeyBinding(authenticationToken, internalKeyBindingId);\n ocspKeyBinding.setRequireTrustedSignature(false);\n internalKeyBindingMgmtSession.persistInternalKeyBinding(authenticationToken, ocspKeyBinding);\n ocspResponseGeneratorSession.reloadOcspSigningCache();\n // Try to send a signed OCSP requests\n final OCSPReq ocspRequestSigned = buildOcspRequest(ocspAuthenticationCertificate, ocspAuthenticationKeyPair.getPrivate(),\n caCertificate, ocspSigningCertificate.getSerialNumber());\n final OCSPResp ocspResponseSigned = sendRequest(ocspRequestSigned);\n assertEquals(\"We expected a 'Successful' status code: \", OCSPResp.SUCCESSFUL, ocspResponseSigned.getStatus());\n validateSuccessfulResponse((BasicOCSPResp)ocspResponseSigned.getResponseObject(), ocspSigningCertificate.getPublicKey());\n }", "title": "" }, { "docid": "a56242a8a376183930de02591a058a06", "score": "0.53617746", "text": "private static void writeSignatureBlock(CMSTypedData data, X509Certificate publicKey, PrivateKey privateKey,\n OutputStream out)\n throws IOException, CertificateEncodingException, OperatorCreationException, CMSException {\n ArrayList<X509Certificate> certList = new ArrayList<X509Certificate>(1);\n certList.add(publicKey);\n JcaCertStore certs = new JcaCertStore(certList);\n \n CMSSignedDataGenerator gen = new CMSSignedDataGenerator();\n ContentSigner sha1Signer = new JcaContentSignerBuilder(\"SHA1withRSA\").setProvider(sBouncyCastleProvider)\n .build(privateKey);\n gen.addSignerInfoGenerator(new JcaSignerInfoGeneratorBuilder(\n new JcaDigestCalculatorProviderBuilder().setProvider(sBouncyCastleProvider).build())\n .setDirectSignature(true).build(sha1Signer, publicKey));\n gen.addCertificates(certs);\n CMSSignedData sigData = gen.generate(data, false);\n \n ASN1InputStream asn1 = new ASN1InputStream(sigData.getEncoded());\n DEROutputStream dos = new DEROutputStream(out);\n dos.writeObject(asn1.readObject());\n }", "title": "" }, { "docid": "578d47d3d67e8814228fa8b42ce4a874", "score": "0.5359382", "text": "public static ProcessingContextImpl verify(SOAPMessage msg,\n byte[] proofKey, Map map) throws Exception {\n ProcessingContextImpl context = new ProcessingContextImpl(map);\n context.setSOAPMessage(msg);\n\n com.sun.xml.ws.security.policy.WSSAssertion wssAssertionws = null;\n WSSAssertion wssAssertion = null;\n AssertionSet as = null;\n Policy wssPolicy = PolicyResourceLoader\n .loadPolicy(\"security/policy-binding2.xml\");\n Iterator<AssertionSet> i = wssPolicy.iterator();\n if (i.hasNext())\n as = i.next();\n\n for (PolicyAssertion assertion : as) {\n if (assertion instanceof com.sun.xml.ws.security.policy.WSSAssertion) {\n wssAssertionws = (com.sun.xml.ws.security.policy.WSSAssertion) assertion;\n }\n }\n// wssAssertion.addRequiredProperty(\"RequireSignatureConfirmation\");\n wssAssertion = new WSSAssertion(wssAssertionws.getRequiredProperties(),\n \"1.0\");\n MessagePolicy pol = new MessagePolicy();\n context.setAlgorithmSuite(alg);\n pol.setWSSAssertion(wssAssertion);\n\n context.setSecurityPolicy(pol);\n CallbackHandler handler = new PolicyCallbackHandler1(\"server\");\n SecurityEnvironment env = new DefaultSecurityEnvironmentImpl(handler);\n context.setSecurityEnvironment(env);\n try {\n SecurityRecipient.validateMessage(context);\n } catch (Exception ex) {\n String errMsg = ex.getMessage();\n if (!(errMsg.endsWith(\"Unexpected ds:CanonicalizationMethod, [\"\n + c14Value + \"]\") || errMsg.endsWith(\"Illegal CanonicalizationMethod\"))) {\n throw ex;\n }\n\n }\n return context;\n }", "title": "" }, { "docid": "249e4f7635e331bd7017b2551bf162d6", "score": "0.5345094", "text": "@SuppressWarnings({ \"unused\", \"unchecked\" })\r\n\tprivate static MimeBodyPart verifySignature(MimeBodyPart part, Certificate cert)\r\n\t\t\tthrows GeneralSecurityException, IOException, MessagingException, CMSException, OperatorCreationException {\n\t\tif (!isSigned(part)) {\r\n\t\t\tthrow new GeneralSecurityException(\"Content-Type indicates data isn't signed\");\r\n\t\t}\r\n\r\n\t\tX509Certificate x509Cert = CommonUtil.castCertificate(cert);\r\n\r\n\t\tMimeMultipart mainParts = (MimeMultipart) part.getContent();\r\n\r\n\t\tSMIMESigned signedPart = new SMIMESigned(mainParts);\r\n\r\n\t\tDigestCalculatorProvider dcp = new JcaDigestCalculatorProviderBuilder().setProvider(Constant.BC).build();\r\n\t\tString contentTxfrEnc = signedPart.getContent().getEncoding();\r\n\t\tif (contentTxfrEnc == null || contentTxfrEnc.length() < 1) {\r\n\t\t\tcontentTxfrEnc = Constant.BASE64;\r\n\t\t}\r\n\t\tSMIMESignedParser ssp = new SMIMESignedParser(dcp, mainParts, contentTxfrEnc);\r\n\t\tSignerInformationStore sis = ssp.getSignerInfos();\r\n\r\n\t\tCommonUtil.printHeaders(part.getAllHeaders());\r\n\t\tCommonUtil.printHeaders(ssp.getContent().getAllHeaders());\r\n\r\n\t\tIterator<SignerInformation> it = sis.getSigners().iterator();\r\n\t\tSignerInformationVerifier signerInfoVerifier = new JcaSimpleSignerInfoVerifierBuilder().setProvider(Constant.BC)\r\n\t\t\t\t.build(x509Cert);\r\n\t\twhile (it.hasNext()) {\r\n\t\t\tSignerInformation signer = it.next();\r\n\r\n\t\t\ttry { // Code block below does not do null-checks or other encoding error checking.\r\n\t\t\t\tMap<Object, Attribute> attrTbl = signer.getSignedAttributes().toHashtable();\r\n\t\t\t\tStringBuilder strBuf = new StringBuilder();\r\n\t\t\t\tfor (Map.Entry<Object, Attribute> pair : attrTbl.entrySet()) {\r\n\t\t\t\t\tstrBuf.append(\"\\n\\t\").append(pair.getKey()).append(\":=\");\r\n\t\t\t\t\tASN1Encodable[] asn1s = pair.getValue().getAttributeValues();\r\n\t\t\t\t\tfor (int i = 0; i < asn1s.length; i++) {\r\n\t\t\t\t\t\tstrBuf.append(asn1s[i]).append(\";\");\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tAttributeTable attributes = signer.getSignedAttributes();\r\n\t\t\t\tAttribute attribute = attributes.get(CMSAttributes.messageDigest);\r\n\t\t\t\tDEROctetString digest = (DEROctetString) attribute.getAttrValues().getObjectAt(0);\r\n\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t}\r\n\t\t\tif (signer.verify(signerInfoVerifier)) {\r\n\r\n\t\t\t\treturn signedPart.getContent();\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\tthrow new SignatureException(\"Signature Verification failed\");\r\n\t}", "title": "" }, { "docid": "282a0a0781030b7dea2050b3da40e4db", "score": "0.5344056", "text": "String generateSecretKey();", "title": "" }, { "docid": "3258be9aa2f68b4126eeb806b1561acd", "score": "0.53415185", "text": "String generateKey( String user, String userXmpp, String fromJid );", "title": "" }, { "docid": "5f639455a3b6be865b0e481a3bab26f1", "score": "0.5327019", "text": "public static XMLSignature sign(Node a_node, IMyPrivateKey a_privateKey) throws XMLParseException {\n return signInternal(a_node, a_privateKey);\n }", "title": "" }, { "docid": "ebcf1590b7ea87721301e228b277c0ce", "score": "0.53206736", "text": "public boolean verify(String publicKey,String signValue) {\r\n\t\tif(publicKey == null || publicKey.trim().isEmpty()) {\r\n\t\t\tthrow new RuntimeException(\"public key is empty\");\r\n\t\t}\r\n\t\tif(signValue == null || signValue.trim().isEmpty()) {\r\n\t\t\tthrow new RuntimeException(\"sign value is empty\");\r\n\t\t}\r\n\t\ttry {\r\n\t\t\treturn ECDSAUtils.verify(getSignStr(), publicKey, signValue);\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\tthrow new RuntimeException(\"vefify sign failed:\"+e.getMessage());\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "62bdd8472634b32cc30c4dbe808f0a47", "score": "0.5305692", "text": "public void sign(HTTPRequest req) throws Exception ;", "title": "" }, { "docid": "8d80c47bfc79da2bf0d1e90396155893", "score": "0.5300976", "text": "public boolean verifySignature(IPSMMessage msg) {\n String strDat = String.valueOf(msg.getTs()) + XString.compactPrint(msg.getContent());\n return true;\n }", "title": "" }, { "docid": "e6ccf72a724aedd1c649028d3b084634", "score": "0.53005594", "text": "public SignCommand() {}", "title": "" }, { "docid": "147aa58173426cd8a004ca83cc9bb9c8", "score": "0.52912855", "text": "@Test\n public void\n testVerifyDigestSha256() throws SecurityException\n {\n MemoryIdentityStorage identityStorage = new MemoryIdentityStorage();\n MemoryPrivateKeyStorage privateKeyStorage = new MemoryPrivateKeyStorage();\n KeyChain keyChain = new KeyChain\n (new IdentityManager(identityStorage, privateKeyStorage),\n new SelfVerifyPolicyManager(identityStorage));\n\n Interest interest = new Interest(new Name(\"/test/signed-interest\"));\n keyChain.signWithSha256(interest);\n\n VerifyInterestCounter counter = new VerifyInterestCounter();\n keyChain.verifyInterest(interest, counter, counter);\n assertEquals\n (\"Signature verification failed\", 0, counter.onValidationFailedCallCount_);\n assertEquals\n (\"Verification callback was not used\", 1, counter.onVerifiedCallCount_);\n }", "title": "" }, { "docid": "5c5c6c6926717784630294b46b196d10", "score": "0.52882874", "text": "boolean hasCertificateSignature();", "title": "" }, { "docid": "e50f4f77d52c4f0f8eddc6dad9e3782e", "score": "0.52840334", "text": "public int verify (\n\t\t\t\n\t\t\tbyte[] message, int messageOffset, int[] messageLength,\n\t\t\tfinal byte[] signature, int signatureOffset, int signatureLength,\n\t\t\tfinal byte[] publicKey\n\t\t\n\t) {\n\t\t\n\t\tbyte[]\tC\t\t\t\t= new byte[QTESLAParameter.HASH];\n\t\tbyte[]\tcSignature\t\t= new byte[QTESLAParameter.HASH];\n\t\tbyte[]\tseed\t\t\t= new byte[QTESLAParameter.SEED];\n\t\tbyte[]\thashMessage\t\t= new byte[QTESLAParameter.MESSAGE];\n\t\tint[]\tnewPublicKey\t= new int[parameter.n];\n\t\t\n\t\tint[] \tpositionList\t= new int[parameter.h];\n\t\tshort[] signList\t\t= new short[parameter.h];\n\t\t\n\t\tint[] W\t\t= new int[parameter.n];\n\t\tint[] Z\t\t= new int[parameter.n];\n\t\tint[] TC\t= new int[parameter.n];\n\t\tint[] A\t\t= new int[parameter.n];\n\t\t\n\t\tif (signatureLength < parameter.signatureSize) {\n\t\t\t\n\t\t\treturn -1;\n\t\t\t\n\t\t}\n\t\t\n\t\tqTESLAPack.decodeSignature (C, Z, signature, signatureOffset);\n\t\t\n\t\t/* Check Norm of Z */\n\t\tif (testZ (Z) == true) {\n\t\t\t\n\t\t\treturn -2;\n\t\t\t\n\t\t}\n\t\t\n\t\tqTESLAPack.decodePublicKey (newPublicKey, seed, 0, publicKey);\n\t\t\n\t\t/* Generate A Polynomial */\n\t\tpolynomial.polynomialUniform (A, seed, 0);\n\t\t\n\t\tencodeC (positionList, signList, C, 0);\n\t\t\n\t\t/* W = A * Z - TC */\n\t\tpolynomial.sparsePolynomialMultiplication32 (TC, newPublicKey, positionList, signList);\n\t\t\n\t\tpolynomial.polynomialMultiplication (W, A, Z);\n\t\t\n\t\tpolynomial.polynomialSubtractionReduction (W, W, TC);\n\t\t\n\t\tif (parameter.parameterSet == \"qTESLA-I\") {\n\t\t\t\n\t\t\tFederalInformationProcessingStandard202.secureHashAlgorithmKECCAK128 (\n\t\t\t\t\n\t\t\t\thashMessage, 0, QTESLAParameter.MESSAGE,\n\t\t\t\tsignature, parameter.signatureSize, signatureLength - parameter.signatureSize\n\t\t\t\n\t\t\t);\n\t\t\t\n\t\t}\n\t\t\n\t\tif (\n\t\t\t\tparameter.parameterSet == \"qTESLA-III-Speed\" ||\n\t\t\t\tparameter.parameterSet == \"qTESLA-III-Size\"\n\t\t\t\t\n\t\t) {\n\t\t\t\n\t\t\tFederalInformationProcessingStandard202.secureHashAlgorithmKECCAK256 (\n\t\t\t\t\n\t\t\t\thashMessage, 0, QTESLAParameter.MESSAGE,\n\t\t\t\tsignature, parameter.signatureSize, signatureLength - parameter.signatureSize\n\t\t\t\n\t\t\t);\n\t\t\t\n\t\t}\n\t\t\n\t\t/* Obtain the Hash Symbol */\n\t\thashFunction (cSignature, 0, W, hashMessage, 0);\n\t\t\n\t\t/* Check if Same With One from Signature */\n\t\tif (Common.memoryEqual (C, 0, cSignature, 0, QTESLAParameter.HASH) == false) {\n\t\t\t\n\t\t\treturn -3;\n\t\t\t\n\t\t}\n\t\t\n\t\tmessageLength[0] = signatureLength - parameter.signatureSize;\n\t\t\n\t\tSystem.arraycopy (\n\t\t\t\t\n\t\t\tsignature, signatureOffset + parameter.signatureSize, message, messageOffset, messageLength[0]\n\t\t\t\t\t\n\t\t);\n\t\t\n\t\treturn 0;\n\n\t}", "title": "" }, { "docid": "926cb715f46d0636844cc3cfd03cb1ab", "score": "0.52652365", "text": "public static void main(String[] args) {\n try {\n KeyPairGenerator keyGenerator = KeyPairGenerator.getInstance(\"RSA\");\n keyGenerator.initialize(1024, new SecureRandom());\n KeyPair myKeyPair = keyGenerator.generateKeyPair();\n\n // Serialize.\n byte[] pubKeyBytes = myKeyPair.getPublic().getEncoded();\n byte[] privKeyBytes = myKeyPair.getPrivate().getEncoded();\n\n String pubKeyStr = new String(Base64.encodeBase64(pubKeyBytes, false), \"US-ASCII\");\n String privKeyStr = new String(Base64.encodeBase64(privKeyBytes, false), \"US-ASCII\");\n\n System.out.println(\"Public Key: \" + pubKeyStr);\n System.out.println(\"Private Key: \" + privKeyStr);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "4542adcad4af37910d12fdbc75af7fc6", "score": "0.5261643", "text": "public static BigInteger signature(Integer message, PrivateKey key) {\n BigInteger msgBig = new BigInteger(message.toString());\n return msgBig.modPow(key.getExponent(), key.getModulus());\n }", "title": "" }, { "docid": "0232b96efaa34ab13cbfb97ce9b8774a", "score": "0.5256885", "text": "private boolean verifyValidSignature(String signedData, String signature) {\r\n try {\r\n //for old playconsole\r\n // To get key go to Developer Console > Select your app > Development Tools > Services & APIs.\r\n //for new play console\r\n //To get key go to Developer Console > Select your app > Monetize > Monetization setup\r\n\r\n String base64Key = \"Add your key here\";\r\n\t\t\t\r\n return Security.verifyPurchase(base64Key, signedData, signature);\r\n } catch (IOException e) {\r\n return false;\r\n }\r\n }", "title": "" }, { "docid": "6e1c4ed795cd5552998f90e372ef38ee", "score": "0.5253093", "text": "StandaloneWSRequest sign(WSSignatureCalculator calculator);", "title": "" }, { "docid": "529b922447cef0c6a9692bf85539d039", "score": "0.5225382", "text": "Crypto create(Message message);", "title": "" }, { "docid": "577bf6099f17201af6e8c0e24f1108aa", "score": "0.52215755", "text": "private KeyPair generateKeyPair() {\n\n\t\tlogger.logInfo(\"KP_GEN\");\n\t\ttry {\n\t\t\tKeyPairGenerator keyGen = KeyPairGenerator.getInstance(\"RSA\"); \n\t\t\tSecureRandom random = SecureRandom.getInstance(\"SHA1PRNG\", \"SUN\");\n\t\t\tkeyGen.initialize(2048, random);\n\t\t\tlogger.logInfo(\"KP_GEN_SUCCESS\");\n\t\t\treturn keyGen.generateKeyPair();\n\t\t\t} catch (NoSuchAlgorithmException e) {\n\n\t\t\t\tlogger.logError(\"KP_GEN_ERROR\");\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (NoSuchProviderException e) {\n\n\t\t\t\tlogger.logError(\"KP_GEN_ERROR\");\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\n\n\t return null;\n\t}", "title": "" }, { "docid": "b6b7bfb9a7471820199441dd71b2ab91", "score": "0.52187043", "text": "public Key generateKey(int len){\r\n Point publicKey;\r\n Long privateKey;\r\n //Generate a pair of Public and Private Keys\r\n //Start writing code here\r\n\r\n //End writing code here\r\n return new Key(publicKey,privateKey);\r\n }", "title": "" }, { "docid": "e608559e8ad8e6e66131a7e5b5c1d820", "score": "0.5217759", "text": "com.google.protobuf.ByteString\n getSignatureBytes();", "title": "" }, { "docid": "62973886ff651e9be57c7758e7185fd5", "score": "0.5209911", "text": "public String sign(String privateKey) {\r\n\t\tif(privateKey == null || privateKey.trim().isEmpty()) {\r\n\t\t\tthrow new RuntimeException(\"private key is empty\");\r\n\t\t}\r\n\t\ttry {\r\n\t\t\treturn ECDSAUtils.sign(getSignStr(), privateKey);\r\n\t\t} catch (Exception e) {\r\n\t\t\tthrow new RuntimeException(\"sign data failed:\"+e.getMessage());\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "1b19aac0b76fd0c9a5ed3b5bf03ed290", "score": "0.5209797", "text": "boolean checkSignature();", "title": "" }, { "docid": "f23a1b3848c7fe562fc75545cd5290a3", "score": "0.520232", "text": "static boolean RSASSA_PKCS1_V1_5_VERIFY(String modulus_n, String exponent_e,\n String signinInput_M, String signature_S) throws SignatureException,\n InvalidKeyException, NoSuchAlgorithmException, InvalidKeySpecException {\n Debug.println(\"Starting verification\");\n /* RSA SHA-256 RSASSA-PKCS1-V1_5-VERIFY */\n // Modulus (n from https://www.googleapis.com/oauth2/v2/certs)\n String n = modulus_n;\n // Exponent (e from https://www.googleapis.com/oauth2/v2/certs)\n String e = exponent_e;\n // The JWT Signing Input (JWT Header and JWT Payload concatenated with \".\")\n byte[] M = signinInput_M.getBytes();\n // Signature (JWT Crypto)\n byte[] S = Base64.decodeBase64(signature_S);\n\n byte[] modulusBytes = Base64.decodeBase64(n);\n byte[] exponentBytes = Base64.decodeBase64(e);\n BigInteger modulusInteger = new BigInteger(1, modulusBytes);\n BigInteger exponentInteger = new BigInteger(1, exponentBytes);\n\n RSAPublicKeySpec rsaPubKey = new RSAPublicKeySpec(modulusInteger,\n exponentInteger);\n KeyFactory fact = KeyFactory.getInstance(\"RSA\");\n PublicKey pubKey = fact.generatePublic(rsaPubKey);\n Signature signature = Signature.getInstance(\"SHA256withRSA\");\n signature.initVerify(pubKey);\n signature.update(M);\n boolean isVerified = signature.verify(S);\n Debug.println(\"Verify result [\" + isVerified + \"]\");\n return isVerified;\n }", "title": "" }, { "docid": "ec264d05142990fb6fce1b7813bd314d", "score": "0.5192427", "text": "public Point signatureGeneration(String hashInput, BigInteger priKey) {\n BigInteger tempLambda, k, xr, yr, tempX, tempY, leftSignature, rightSignature, tempRight, hashBig;\n leftSignature = BigInteger.ZERO;\n rightSignature = BigInteger.ZERO;\n k = null;\n hashBig = null;\n Random rand = new Random();\n\n while (rightSignature.compareTo(BigInteger.ZERO) == 0) {\n System.out.println(\"compute right signature . . .\");\n\n while (leftSignature.compareTo(BigInteger.ZERO) == 0) {\n System.out.println(\"compute left signature . . .\");\n\n //----------- k is PRNG-ed number for computing left signature ------------\n k = new BigInteger(nPrivate.bitLength(), rand);\n while( k.compareTo(nPrivate) >= 0 ) {\n k = new BigInteger(nPrivate.bitLength(), rand);\n }\n\n hashBig = new BigInteger(hashInput, 16);\n xr = BigInteger.ZERO;\n yr = BigInteger.ZERO;\n tempX = basis.getX() ;\n tempY = basis.getY();\n tempLambda = lambdaDuplication(tempX, tempY);\n System.out.println(\"Processing Point KP ...\");\n for (BigInteger i = new BigInteger(\"1\"); i.compareTo(k) < 0; i = i.add(BigInteger.ONE)) {\n xr = ((( (tempLambda.pow(2)).subtract(basis.getX()).subtract(tempX)).mod(primeNumber).add(primeNumber)).mod(primeNumber));\n yr = (((tempLambda.multiply(tempX.subtract(xr))).subtract(tempY)).mod(primeNumber).add(primeNumber)).mod(primeNumber); // (a % b + b) % b modulo for giving positive value (a%b give negative!)\n tempX = xr;\n tempY = yr;\n tempLambda = lambdaAddition(basis.getX(), basis.getY(), tempX, tempY);\n }\n Point KP = new Point(xr,yr);\n leftSignature = KP.getX().mod(n);\n }\n\n //------------ exception handling if something is not invertible of another thing, :v -----------\n try {\n tempRight = k.modInverse(n);\n rightSignature = (tempRight.multiply(hashBig.add(priKey.multiply(leftSignature)))).mod(n);\n } catch (ArithmeticException e) {\n System.out.println(\"The k of (\" + k + \") is not invertible to n of (\" + n + \")\");\n rightSignature = BigInteger.ZERO;\n leftSignature = BigInteger.ZERO;\n k = new BigInteger(nPrivate.bitLength(), rand);\n System.out.println(\"nilai k: \" + k);\n while( k.compareTo(nPrivate) >= 0 ) {\n k = new BigInteger(nPrivate.bitLength(), rand);\n System.out.println(\"nilai k: \" + k);\n\n }\n }\n }\n System.out.println(\"nilai k yang oke: \" + k);\n return new Point(leftSignature, rightSignature);\n }", "title": "" }, { "docid": "eeeddcc484d58deda1eec44e19155fd7", "score": "0.5190527", "text": "boolean hasSignCertificateRequest();", "title": "" }, { "docid": "4988e243cb7873726c9e402783114ea7", "score": "0.5180343", "text": "public void generateSharedSecret() {\r\n try {\r\n final KeyAgreement keyAgreement = KeyAgreement.getInstance(\"DH\");\r\n keyAgreement.init(privateKey);\r\n keyAgreement.doPhase(receivedPublicKey, true);\r\n secretKey = keyAgreement.generateSecret();\r\n } catch (NoSuchAlgorithmException ex) {\r\n Logger.getLogger(DiffieHellman.class.getName()).log(Level.SEVERE, null, ex);\r\n } catch (InvalidKeyException ex) {\r\n Logger.getLogger(DiffieHellman.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n \r\n }", "title": "" }, { "docid": "8156a5efcdd94e426a936d94d887ebec", "score": "0.51802146", "text": "public final static PGPKeyRingGenerator generateKeyRingGenerator(String id, char[] pass, int s2kcount) throws Exception {\n RSAKeyPairGenerator kpg = new RSAKeyPairGenerator();\n\n // Boilerplate RSA parameters, no need to change anything\n // except for the RSA key-size (2048). You can use whatever\n // key-size makes sense for you -- 4096, etc.\n kpg.init(\n new RSAKeyGenerationParameters(\n BigInteger.valueOf(0x10001), new SecureRandom(), ConfigurationService.getInstance().getConfig().getInt(\"keyLengthInByte\"), 12\n )\n );\n\n // First create the master (signing) key with the generator.\n PGPKeyPair rsakp_sign = new BcPGPKeyPair(PGPPublicKey.RSA_SIGN, kpg.generateKeyPair(), new Date());\n // Then an encryption subkey.\n PGPKeyPair rsakp_enc = new BcPGPKeyPair(PGPPublicKey.RSA_ENCRYPT, kpg.generateKeyPair(), new Date());\n\n // Add a self-signature on the id\n PGPSignatureSubpacketGenerator signhashgen = new PGPSignatureSubpacketGenerator();\n\n // Add signed metadata on the signature.\n // 1) Declare its purpose\n signhashgen.setKeyFlags(false, KeyFlags.SIGN_DATA | KeyFlags.CERTIFY_OTHER);\n // 2) Set preferences for secondary crypto algorithms to use\n // when sending messages to this key.\n signhashgen.setPreferredSymmetricAlgorithms(\n false, new int[]{SymmetricKeyAlgorithmTags.AES_256, SymmetricKeyAlgorithmTags.AES_192, SymmetricKeyAlgorithmTags.AES_128}\n );\n signhashgen.setPreferredHashAlgorithms(\n false, new int[]{HashAlgorithmTags.SHA256, HashAlgorithmTags.SHA1, HashAlgorithmTags.SHA384, HashAlgorithmTags.SHA512, HashAlgorithmTags.SHA224,}\n );\n // 3) Request senders add additional checksums to the\n // message (useful when verifying unsigned messages.)\n signhashgen.setFeature(false, Features.FEATURE_MODIFICATION_DETECTION);\n\n // Create a signature on the encryption subkey.\n PGPSignatureSubpacketGenerator enchashgen = new PGPSignatureSubpacketGenerator();\n // Add metadata to declare its purpose\n enchashgen.setKeyFlags(false, KeyFlags.ENCRYPT_COMMS | KeyFlags.ENCRYPT_STORAGE);\n\n // Objects used to encrypt the secret key.\n PGPDigestCalculator sha1Calc = new BcPGPDigestCalculatorProvider().get(HashAlgorithmTags.SHA1);\n PGPDigestCalculator sha256Calc = new BcPGPDigestCalculatorProvider().get(HashAlgorithmTags.SHA256);\n\n // bcpg 1.48 exposes this API that includes s2kcount. Earlier\n // versions use a default of 0x60.\n PBESecretKeyEncryptor pske = (new BcPBESecretKeyEncryptorBuilder(PGPEncryptedData.AES_256, sha256Calc, s2kcount)).build(pass);\n\n // Finally, create the keyring itself. The constructor\n // takes parameters that allow it to generate the self\n // signature.\n PGPKeyRingGenerator keyRingGen = new PGPKeyRingGenerator(\n PGPSignature.POSITIVE_CERTIFICATION, rsakp_sign, id, sha1Calc, signhashgen.generate(), null, new BcPGPContentSignerBuilder(\n rsakp_sign.getPublicKey().getAlgorithm(), HashAlgorithmTags.SHA1\n ), pske\n );\n\n // Add our encryption subkey, together with its signature.\n keyRingGen.addSubKey(rsakp_enc, enchashgen.generate(), null);\n return keyRingGen;\n }", "title": "" }, { "docid": "524332efcd48fe6a508e91801ee23323", "score": "0.5165922", "text": "private static void testVerifyCredentialWithSpecifiedPubKey(String[] command) throws Exception {\n String publicKey = command[6];\n\n CredentialService credentialService = new CredentialServiceImpl();\n ResponseData<CredentialWrapper> response = WeIdCommon.createCredential(command);\n\n WeIdPublicKey weIdPublicKey = new WeIdPublicKey();\n weIdPublicKey.setPublicKey(publicKey);\n\n //使用公钥验证\n ResponseData<Boolean> responseVerify = credentialService\n .verifyCredentialWithSpecifiedPubKey(response.getResult(), weIdPublicKey);\n\n System.out.println(JSONObject.toJSONString(responseVerify));\n }", "title": "" }, { "docid": "34193135b091a2c3c4ea85677b720fe0", "score": "0.51642597", "text": "@Override\n public byte[] signature(byte[] document) throws NoSuchAlgorithmException, InvalidKeyException {\n SecretKeySpec key = new SecretKeySpec(password.getBytes(), signatureAlgorithm);\n Mac mac = Mac.getInstance(signatureAlgorithm); // a string like \"HmacSHA256\"\n mac.init(key);\n return mac.doFinal(document);\n }", "title": "" }, { "docid": "dfad7eebe7b742b03c666bfa9368a701", "score": "0.51588356", "text": "public JwsBuilder sign(String keyId, Key key) {\n\t\tthis.header.keyID(keyId);\n\t\treturn this.sign(key);\n\t}", "title": "" }, { "docid": "35107f6343ac76cb553049ec55f24395", "score": "0.51390857", "text": "Key createKey() throws ASException;", "title": "" }, { "docid": "70f9909d2b03576a8a28ed03d6113c7e", "score": "0.5133305", "text": "public CreateSignaturesForMe(String data, String keyFile) throws InvalidKeyException, Exception {\n\t\tlist = new ArrayList<byte[]>();\n\t\tlist.add(data.getBytes());\n\t\tlist.add(sign(data, keyFile));\n\t}", "title": "" }, { "docid": "f4be9f5b90c714288467978bd00302ef", "score": "0.5132021", "text": "protected byte[] sign(byte[] data, byte[] key, SigningAlgorithm algorithm)\n throws ClientException {\n try {\n Mac mac = Mac.getInstance(algorithm.toString());\n mac.init(new SecretKeySpec(key, algorithm.toString()));\n return mac.doFinal(data);\n } catch (Exception e) {\n throw new ClientException(\"Unable to calculate a request signature: \" + e.getMessage(),\n e);\n }\n }", "title": "" }, { "docid": "ee642eec59a1e0c426ee9d97f6f2f498", "score": "0.51250505", "text": "public void build(T elementToSign, T parentElement, Certificate certificate, PrivateKey privateKey);", "title": "" } ]
8f501edd080d31ad4a822340cce4f38e
Auto generated getter method
[ { "docid": "945f0f7871bc42939739a32d40228e12", "score": "0.0", "text": "public int getMinMediaPort(){\n return localMinMediaPort;\n }", "title": "" } ]
[ { "docid": "8d5e1e149b54434e5ef011301af95400", "score": "0.7425297", "text": "public Object get();", "title": "" }, { "docid": "8d5e1e149b54434e5ef011301af95400", "score": "0.7425297", "text": "public Object get();", "title": "" }, { "docid": "cae7dd0c3ea172c79f53946f56f87dc3", "score": "0.74160093", "text": "Object get();", "title": "" }, { "docid": "d4480a39d98c043128021f3de0d0ae91", "score": "0.7360369", "text": "public void get() {\r\n\r\n }", "title": "" }, { "docid": "b7daa0ca73ee346528f0b59f4203c1ed", "score": "0.73180264", "text": "public getAccessors() {\n }", "title": "" }, { "docid": "f6775d45edd0569de0c0d3b449e19600", "score": "0.721681", "text": "public Get get() {\n\t\t\t\treturn new Get();\n\t\t\t}", "title": "" }, { "docid": "f6775d45edd0569de0c0d3b449e19600", "score": "0.721681", "text": "public Get get() {\n\t\t\t\treturn new Get();\n\t\t\t}", "title": "" }, { "docid": "f6775d45edd0569de0c0d3b449e19600", "score": "0.721681", "text": "public Get get() {\n\t\t\t\treturn new Get();\n\t\t\t}", "title": "" }, { "docid": "12b08246b8afa882d61fffec13cac698", "score": "0.7168856", "text": "public abstract T get();", "title": "" }, { "docid": "12b08246b8afa882d61fffec13cac698", "score": "0.7168856", "text": "public abstract T get();", "title": "" }, { "docid": "723a0de03a80058625e00fc3ef1bd5cd", "score": "0.70835894", "text": "String get();", "title": "" }, { "docid": "f0ca250016a82ee50bd5ab5fdf40242f", "score": "0.69884986", "text": "public V get()\r\n/* 32: */ {\r\n/* 33:56 */ return this.value;\r\n/* 34: */ }", "title": "" }, { "docid": "2d5b829a25208a26e24228a542d96025", "score": "0.6954345", "text": "abstract final public void get();", "title": "" }, { "docid": "11ae3f676ce42a2333721001c6d26290", "score": "0.6894192", "text": "@Override\r\n\tpublic void get() {\n\t\t\r\n\t}", "title": "" }, { "docid": "c1a2fb224c9cc2bc13134a53dd65e237", "score": "0.68827444", "text": "public T get() {\n\n return value;\n }", "title": "" }, { "docid": "2afafa77d614276d304477335e6cf185", "score": "0.68515706", "text": "public Field get();", "title": "" }, { "docid": "5d5da803f3b7ed3b067daca7a4865b98", "score": "0.6790483", "text": "V get();", "title": "" }, { "docid": "107e40067122d2087f46c0ff88cfde52", "score": "0.67813367", "text": "public String getCodigo()\r\n/* 73: */ {\r\n/* 74:71 */ return this.codigo;\r\n/* 75: */ }", "title": "" }, { "docid": "d87b88775c224e6a7c95cc7215218d9b", "score": "0.6746774", "text": "T get();", "title": "" }, { "docid": "d87b88775c224e6a7c95cc7215218d9b", "score": "0.6746774", "text": "T get();", "title": "" }, { "docid": "d87b88775c224e6a7c95cc7215218d9b", "score": "0.6746774", "text": "T get();", "title": "" }, { "docid": "f0eaa37f6e8a001409e1229436dade93", "score": "0.65995216", "text": "public T\n _get() { return null; }", "title": "" }, { "docid": "70c81a9a158ef3ffa3849fced4c8e2d1", "score": "0.65652204", "text": "public T get()\n\t{\n\t\treturn value;\n\t}", "title": "" }, { "docid": "64124a968ae3f44293c064c17c13059a", "score": "0.6556894", "text": "public E get();", "title": "" }, { "docid": "a28c387534c00a073aafe64d5bac008a", "score": "0.6540423", "text": "abstract List<String> generateGetter(GeneratableProperty prop);", "title": "" }, { "docid": "c115e11ce56ef4c89f2f6ae08f357813", "score": "0.65236336", "text": "@Override\n\tpublic String getMethod() {\n\t\treturn ProcessorID.method_set_get;\n\t}", "title": "" }, { "docid": "81b1817fe4d6d14db518802aa5901cf8", "score": "0.65146947", "text": "public String getCodigo()\r\n/* 123: */ {\r\n/* 124:153 */ return this.codigo;\r\n/* 125: */ }", "title": "" }, { "docid": "a83e01a9c3baa7e672ab8ddc93d1c940", "score": "0.6485505", "text": "public String getNombre()\r\n/* 83: */ {\r\n/* 84:79 */ return this.nombre;\r\n/* 85: */ }", "title": "" }, { "docid": "5f0c7f7c39a31efaf2fd83a8c32930e0", "score": "0.64818", "text": "public Empresa getEmpresa()\r\n/* 245: */ {\r\n/* 246:377 */ return this.empresa;\r\n/* 247: */ }", "title": "" }, { "docid": "5b9b739bf6f2ab9020d0b8b841287e11", "score": "0.6442113", "text": "public String get() {\n return toString();\n }", "title": "" }, { "docid": "95790cd0227a87ca4e56fee1a09ec062", "score": "0.6433627", "text": "@Override\r\n\tpublic String getMotd() {\n\t\tthrow new NotImplementedException();\r\n\t}", "title": "" }, { "docid": "48d59d781f163a837a5089074120718e", "score": "0.6425787", "text": "String generateGetInvoke(GeneratableProperty prop) {\r\n return \"get\" + prop.getUpperName() + \"()\";\r\n }", "title": "" }, { "docid": "aa581dfd35b3a9b46532961af8f409e5", "score": "0.6420749", "text": "public Documento getDocumento()\r\n/* 129: */ {\r\n/* 130:171 */ return this.documento;\r\n/* 131: */ }", "title": "" }, { "docid": "b4b3b7f5d07ebcb497f873fb5ab409da", "score": "0.6406775", "text": "@Override\n\tpublic String get() {\n\t\treturn getValue().toString();\n\t}", "title": "" }, { "docid": "a3862881c7f154e5ee3e4ecefdeae349", "score": "0.63933975", "text": "public Expression get();", "title": "" }, { "docid": "b83cf283bad15534a320e51d1e8edd2a", "score": "0.6379036", "text": "@Override\n\tpublic double get() {\n\t\tSystem.err.println(\"Unimplemted Method!!\");\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "5a18566cd6b6b6f5ac814634129e09d3", "score": "0.63786757", "text": "public Documento getDocumento()\r\n/* 185: */ {\r\n/* 186:263 */ return this.documento;\r\n/* 187: */ }", "title": "" }, { "docid": "2edf07938a47e034b49cc3ed50bc4023", "score": "0.6347387", "text": "public String getValue(){\n\t\t\n\t}", "title": "" }, { "docid": "4b0829b2b249f734def9e8ac60a5a12a", "score": "0.63472646", "text": "public\n Value getValue() {\n return _value;\n }", "title": "" }, { "docid": "91c3e90e6be52f971324968566c6a9c5", "score": "0.63210446", "text": "@VTID(40)\r\n @DefaultMethod\r\n int get_Default();", "title": "" }, { "docid": "1fb2796ef602ae4aad0f06cfc698e32a", "score": "0.6311192", "text": "public T get() {\n\n\t\treturn o;\n\t}", "title": "" }, { "docid": "23ffd930163dcaa82edcfed0409d31b7", "score": "0.62972325", "text": "@Override\r\n\tprotected Method getMethod() {\n\t\treturn Method.GET;\r\n\t}", "title": "" }, { "docid": "70350de49dd6a626e3ef869107b7485c", "score": "0.62937796", "text": "abstract S get(T obj);", "title": "" }, { "docid": "2ecf41b3318fbf0fb8d07b984ec88df5", "score": "0.62908745", "text": "public Value getValue() ;", "title": "" }, { "docid": "1d29f2f74842f6edb9b4a3159ede91fb", "score": "0.6281595", "text": "public Equipo getEquipo()\r\n/* 208: */ {\r\n/* 209:228 */ return this.equipo;\r\n/* 210: */ }", "title": "" }, { "docid": "a0ce39317e76b7a47caedc9d16c0c50e", "score": "0.6280054", "text": "public String getNombre()\r\n/* 133: */ {\r\n/* 134:161 */ return this.nombre;\r\n/* 135: */ }", "title": "" }, { "docid": "d6c011df9bb40c9b45a03b62fa192e52", "score": "0.6258661", "text": "@Override\n public T getValue() {\n logger.info(\"started getting value\");\n if (id == null) {\n logger.info(\"null id --> returning nothing\");\n return null;\n }\n logger.info(\"id not null --> updating value\");\n updateValue();\n logger.info(\"get value\");\n return value;\n }", "title": "" }, { "docid": "e1cfbe7dff891edf4fb7fae01d0ddaad", "score": "0.62267745", "text": "protected abstract String getCustom();", "title": "" }, { "docid": "e7365b43b2b59c0da78505525a768bc2", "score": "0.6220756", "text": "public Value getValue(){\n return this.value;\n }", "title": "" }, { "docid": "05350187c565a4ac6e503360383df454", "score": "0.6202055", "text": "public int geta(){\n\t}", "title": "" }, { "docid": "cf66bf9ca422dfe7cf830329b7b778f6", "score": "0.6198966", "text": "@Override\n\t\tpublic Object get() {\n\t\t\treturn Math.random();\n\t\t}", "title": "" }, { "docid": "f2262739e30ce767f4d348be94ef4d45", "score": "0.61810565", "text": "public String getTipoMA()\n/* 31: */ {\n/* 32:34 */ return this.TipoMA;\n/* 33: */ }", "title": "" }, { "docid": "a43b46483f08f06592395be8164789ba", "score": "0.61788464", "text": "public Object getValueObject() {\n//$Section=Attribute get$ID=3F9C5A1E0026$Preserve=no\n return iValueObject;\n//$Section=Attribute get$ID=3F9C5A1E0026$Preserve=no\n }", "title": "" }, { "docid": "b0d6d284467844fb1def9f73f24e07ea", "score": "0.61688954", "text": "public java.lang.String getCodigoObjeto(){\n return localCodigoObjeto;\n }", "title": "" }, { "docid": "a88004ae4bcf9579461a9849c317af49", "score": "0.61601603", "text": "int get() {\n\t\treturn x;\n\t}", "title": "" }, { "docid": "21ae68b806401b83463f6edf80609bb3", "score": "0.6154738", "text": "public int getValue() {\nreturn _value;\n}", "title": "" }, { "docid": "7b645610dc0ccc1ddb8d108e13eae026", "score": "0.61540073", "text": "public String get()\r\n\t{\r\n\t\tidentifierTypeDublinCoreMapping = identifierTypeDublinCoreMappingService.getById(id, false);\r\n\t\treturn \"get\";\r\n\t}", "title": "" }, { "docid": "30fd7420aef3ae1d7c606f512fd7aa22", "score": "0.6146247", "text": "public String getValue(){return value;}", "title": "" }, { "docid": "b59d6f197d4012229c0c28de0c8b1779", "score": "0.614329", "text": "@SuppressWarnings(\"unchecked\")\n default T get(){\n return (T) this;\n }", "title": "" }, { "docid": "08662110cb7719e99904e011d13fbb20", "score": "0.61394864", "text": "public T\n get()\n {\n T o = null;\n try { o = _get(); } catch (Exception e) {}\n return o;\n }", "title": "" }, { "docid": "8725cf56c24cf63cc626e08481aea249", "score": "0.6139389", "text": "public interface IFieldValueGetter {\n /**\n * Method gets the field value from the {@link StudentRecord}.\n * @param record {@link StudentRecord}\n * @return the field attribute\n */\n default public boolean isJMBAG() {return false;}\n public String get(StudentRecord record);\n}", "title": "" }, { "docid": "97b655d12b4aa270473f5e3e15b9acc1", "score": "0.613516", "text": "public CuentaBancariaOrganizacion getCuentaBancariaOrganizacion()\r\n/* 205: */ {\r\n/* 206:301 */ return this.cuentaBancariaOrganizacion;\r\n/* 207: */ }", "title": "" }, { "docid": "4ea43bffdac8f91b7550a8eeb9a45253", "score": "0.6134537", "text": "@Override\n public Value get() {\n return kValue;\n }", "title": "" }, { "docid": "5dc61fdd87c59758e18b2cf9947cb80a", "score": "0.6131953", "text": "public CuentaBancariaOrganizacion getCuentaBancariaOrganizacionDevolucion()\r\n/* 340: */ {\r\n/* 341:487 */ return this.cuentaBancariaOrganizacionDevolucion;\r\n/* 342: */ }", "title": "" }, { "docid": "669a173a113a848e52c77ecfee26d79d", "score": "0.6129941", "text": "private void createGetters(DBMetaData aMeta) {\n // Initialize getters variable.\n this.iGetters = new String[aMeta.getColumnCount()];\n // Cycle all columns.\n for(int i=0;i<aMeta.getColumnCount();i++) {\n // Get the name for the variable.\n String name = aMeta.getColumnName(i);\n name = name.substring(0, 1).toUpperCase() + name.toLowerCase().substring(1);\n String type = aMeta.getConvertedColumnType(i);\n\n this.iGetters[i] = \"\\t/**\\n\\t * This method returns the value for the '\" + name\n + \"' column\\n\\t * \\n\\t * @return\\t\" + type + \"\\twith the value for the \"\n + name + \" column.\\n\\t */\\n\\tpublic \" + type + \" get\" + name\n + \"() {\\n\\t\\treturn this.i\" + name + \";\\n\\t}\";\n }\n }", "title": "" }, { "docid": "7f06cefea20ae7ccb61fe60154562566", "score": "0.6126964", "text": "Object value() {\n return this.object;\n }", "title": "" }, { "docid": "30340d352fe6266d00ab0ff34453f6ba", "score": "0.61267537", "text": "public Cobro getCobro()\r\n/* 470: */ {\r\n/* 471:729 */ return this.cobro;\r\n/* 472: */ }", "title": "" }, { "docid": "aba309816bac1742223b48b423d1fffe", "score": "0.6124627", "text": "public Departamento getDepartamento()\r\n/* 97: */ {\r\n/* 98:118 */ return this.departamento;\r\n/* 99: */ }", "title": "" }, { "docid": "0655171a4735c3ffe61338f384614610", "score": "0.6116273", "text": "public interface Getter<T, V> extends KProperty.Getter<V>, Function1<T, V> {\n }", "title": "" }, { "docid": "d475bb13b85a8db3850fdef614b81506", "score": "0.61144716", "text": "public Price getPrice();", "title": "" }, { "docid": "d475bb13b85a8db3850fdef614b81506", "score": "0.61144716", "text": "public Price getPrice();", "title": "" }, { "docid": "bacc2bd137c115362bab6728b8c721fc", "score": "0.6111305", "text": "public int getAge()\r\n {\r\n return myAge;\r\n }", "title": "" }, { "docid": "ec9f9e8f5a3249dc1f48bec6b1b1f6c9", "score": "0.6109787", "text": "public Getter getGetter(Class theClass, String propertyName) throws PropertyNotFoundException;", "title": "" }, { "docid": "f4e6bfb73ec9205d984be029315aab4e", "score": "0.6108511", "text": "public ResultType get();", "title": "" }, { "docid": "a17cd2fea64fc9c5531fba495a736ab3", "score": "0.6107402", "text": "java.lang.String getA();", "title": "" }, { "docid": "a17cd2fea64fc9c5531fba495a736ab3", "score": "0.6107402", "text": "java.lang.String getA();", "title": "" }, { "docid": "514e7fc2f4da828308bdacf77a86965f", "score": "0.6100545", "text": "public java.lang.String getCodigo(){\n return localCodigo;\n }", "title": "" }, { "docid": "514e7fc2f4da828308bdacf77a86965f", "score": "0.6100545", "text": "public java.lang.String getCodigo(){\n return localCodigo;\n }", "title": "" }, { "docid": "21bc50e29879bebf1fb80be3a1d7fe01", "score": "0.60949016", "text": "public Secuencia getSecuencia()\r\n/* 440: */ {\r\n/* 441:677 */ return this.secuencia;\r\n/* 442: */ }", "title": "" }, { "docid": "1ab1288c7ef7e817ff2cf7e6989720e1", "score": "0.6093876", "text": "public String getName() \n{\nreturn (String)get_Value(\"Name\");\n}", "title": "" }, { "docid": "fe8397cec924691768e2add7fe5852f5", "score": "0.6092033", "text": "public S getValue(){\n return this.value;\n }", "title": "" }, { "docid": "99ba2fc834becbadc3b42004bef9a836", "score": "0.60917014", "text": "T getValue() {\n\t\treturn result;\n\t}", "title": "" }, { "docid": "2360bc4e5eac70b744dcf3d91a55fe9a", "score": "0.60864115", "text": "public String value();", "title": "" }, { "docid": "92ef36fbe4ae90b1b80ff13a77c52c37", "score": "0.60802794", "text": "public int getCodigo(){\r\n return codigo;\r\n }", "title": "" }, { "docid": "f60ceb4b2ff52acb926c588f83abca8c", "score": "0.6070987", "text": "public T get() {\n return output;\n }", "title": "" }, { "docid": "98eff3b3dddd03f24af6c9502c055cab", "score": "0.60695785", "text": "public abstract Object getValue();", "title": "" }, { "docid": "453c74f85a3e1ae64e8ebb4e996fd539", "score": "0.6069032", "text": "public String getOnset();", "title": "" }, { "docid": "ca03acd12cf8ae0445219b5779ccf68a", "score": "0.60686123", "text": "public Object getValue()\n {\n return my_value; \n }", "title": "" }, { "docid": "6592f58081519648b68dc5a2bb2478b8", "score": "0.6066973", "text": "public A getA() {\r\n return a;\r\n }", "title": "" }, { "docid": "8bf045ea91c5a19d39ded21f4385d38d", "score": "0.6063216", "text": "@Override\n public String getTwo() {\n return \"\";\n }", "title": "" }, { "docid": "739ef3cf08051ebab6de55518278ac8c", "score": "0.6061666", "text": "public String getComAncFThis()\n/* */ {\n/* 78 */ return this.ComAncFThis;\n/* */ }", "title": "" }, { "docid": "e08f5ad628bfd841d4659bd57dd31020", "score": "0.6055397", "text": "public ArticuloServicio getArticuloServicio()\r\n/* 137: */ {\r\n/* 138:263 */ return this.articuloServicio;\r\n/* 139: */ }", "title": "" }, { "docid": "4967fbb4c2adfa2406806c88ce10434b", "score": "0.60547584", "text": "@CheckReturnValue\n D value();", "title": "" }, { "docid": "81407bf1bc0bd3cd3ead16f25880a352", "score": "0.605333", "text": "public IValue getValue();", "title": "" }, { "docid": "234894fdcd8610ec2287e31dac29fdea", "score": "0.6045625", "text": "public Object get(@NonNull String field) {\n return super.get(field);\n }", "title": "" }, { "docid": "912d7bd8058a4d889fe7fcd4c946022e", "score": "0.6045247", "text": "@SuppressFBWarnings(value = \"DP_DO_INSIDE_DO_PRIVILEGED\", justification = \"Only called in test code, not production.\")\n public Object get() {\n field.setAccessible(true);\n try {\n return field.get(object);\n }\n catch (IllegalAccessException e) {\n throw new ReflectionException(e);\n }\n }", "title": "" }, { "docid": "0671a3b63f2cd0e1c42c99bd5dde5aa5", "score": "0.6041516", "text": "DataProperty getDataProperty();", "title": "" }, { "docid": "c69b1d44d20f8edece528dba0df4cd9a", "score": "0.6041062", "text": "public T getValue() { return value; }", "title": "" }, { "docid": "1205db123bf7f301353f8ecb80452ca7", "score": "0.60381734", "text": "public abstract String getValue();", "title": "" }, { "docid": "1205db123bf7f301353f8ecb80452ca7", "score": "0.60381734", "text": "public abstract String getValue();", "title": "" }, { "docid": "1205db123bf7f301353f8ecb80452ca7", "score": "0.60381734", "text": "public abstract String getValue();", "title": "" } ]
c94fce03164c601403bb1cd8683bbe9a
Public interface to access ComapiImpl services limited to messaging functionality.
[ { "docid": "2c99252110082c6d2839d9e61ae0e8a7", "score": "0.699503", "text": "public interface MessagingService {\n\n /**\n * Returns observable to create a conversation.\n *\n * @param request Request with conversation details to create.\n * @param callback Callback with the result.\n */\n void createConversation(@NonNull final ConversationCreate request, @Nullable Callback<ComapiResult<ConversationDetails>> callback);\n\n /**\n * Returns observable to create a conversation.\n *\n * @param conversationId ID of a conversation to delete.\n * @param eTag Tag to specify local data version. Can be null.\n * @param callback Callback with the result.\n */\n void deleteConversation(@NonNull final String conversationId, final String eTag, @Nullable Callback<ComapiResult<Void>> callback);\n\n /**\n * Returns observable to create a conversation.\n *\n * @param conversationId ID of a conversation to obtain.\n * @param callback Callback with the result.\n */\n void getConversation(@NonNull final String conversationId, @Nullable Callback<ComapiResult<ConversationDetails>> callback);\n\n /**\n * Returns observable to get all visible conversations.\n *\n * @param scope {@link Scope} of the query\n * @param callback Callback with the result.\n * @deprecated Please use {@link MessagingService#getConversations(boolean, Callback)} instead.\n */\n @Deprecated\n void getConversations(@NonNull final Scope scope, @Nullable Callback<ComapiResult<List<ConversationDetails>>> callback);\n\n /**\n * Returns observable to get all visible conversations.\n *\n * @param isPublic Has the conversation public or private access.\n * @param callback Callback with the result.\n */\n void getConversations(final boolean isPublic, @Nullable Callback<ComapiResult<List<Conversation>>> callback);\n\n /**\n * Returns observable to update a conversation.\n *\n * @param eTag Tag to specify local data version.\n * @param conversationId ID of a conversation to update.\n * @param request Request with conversation details to update.\n * @param callback Callback with the result.\n */\n void updateConversation(@NonNull final String conversationId, @NonNull final ConversationUpdate request, @NonNull final String eTag, @Nullable Callback<ComapiResult<ConversationDetails>> callback);\n\n /**\n * Returns observable to remove list of participants from a conversation.\n *\n * @param conversationId ID of a conversation to delete.\n * @param ids List of participant ids to be removed.\n * @param callback Callback with the result.\n */\n void removeParticipants(@NonNull final String conversationId, @NonNull final List<String> ids, @Nullable Callback<ComapiResult<Void>> callback);\n\n /**\n * Returns observable to add a participant to.\n *\n * @param conversationId ID of a conversation to add a participant to.\n * @param callback Callback with the result.\n */\n void getParticipants(@NonNull final String conversationId, @Nullable Callback<ComapiResult<List<Participant>>> callback);\n\n /**\n * Returns observable to add a list of participants to a conversation.\n *\n * @param conversationId ID of a conversation to update.\n * @param participants New conversation participants details.\n * @param callback Callback with the result.\n */\n void addParticipants(@NonNull final String conversationId, @NonNull final List<Participant> participants, @Nullable Callback<ComapiResult<Void>> callback);\n\n /**\n * Send message to the conversation.\n *\n * @param conversationId ID of a conversation to send a message to.\n * @param message Message to be send.\n * @param callback Callback with the result.\n */\n void sendMessage(@NonNull final String conversationId, @NonNull final MessageToSend message, @Nullable Callback<ComapiResult<MessageSentResponse>> callback);\n\n /**\n * Send message to the chanel.\n *\n * @param conversationId ID of a conversation to send a message to.\n * @param body Message body to be send.\n * @param callback Callback with the result.\n */\n void sendMessage(@NonNull final String conversationId, @NonNull final String body, @Nullable Callback<ComapiResult<MessageSentResponse>> callback);\n\n /**\n * Upload content data. The response will return full url to the file.\n *\n * @param folder Folder name to put the file in.\n * @param data Content data. Accepts files, byte array or base64 encoded string.\n * @param callback Callback with the result.\n */\n void uploadContent(@NonNull final String folder, @NonNull final ContentData data, @Nullable Callback<ComapiResult<UploadContentResponse>> callback);\n\n /**\n * Sets statuses for sets of messages.\n *\n * @param conversationId ID of a conversation to modify.\n * @param msgStatusList List of status modifications.\n * @param callback Callback with the result.\n */\n void updateMessageStatus(@NonNull final String conversationId, @NonNull final List<MessageStatusUpdate> msgStatusList, @Nullable Callback<ComapiResult<Void>> callback);\n\n /**\n * Query conversation events.\n *\n * @param conversationId ID of a conversation to query events in it.\n * @param from ID of the event to start from.\n * @param limit Limit of events to obtain in this call.\n * @param callback Callback with the result.\n * @deprecated Use {@link #queryConversationEvents(String, Long, Integer, Callback)} for better visibility of possible events in the response.\n */\n @Deprecated\n void queryEvents(@NonNull final String conversationId, @NonNull final Long from, @NonNull final Integer limit, @Nullable Callback<ComapiResult<EventsQueryResponse>> callback);\n\n /**\n * Query conversation events.\n *\n * @param conversationId ID of a conversation to query events in it.\n * @param from ID of the event to start from.\n * @param limit Limit of events to obtain in this call.\n * @param callback Callback with the result.\n */\n void queryConversationEvents(@NonNull final String conversationId, @NonNull final Long from, @NonNull final Integer limit, @Nullable Callback<ComapiResult<ConversationEventsResponse>> callback);\n\n /**\n * Query conversation messages.\n *\n * @param conversationId ID of a conversation to query messages in it.\n * @param from ID of the message to start from.\n * @param limit Limit of events to obtain in this call.\n * @param callback Callback with the result.\n */\n void queryMessages(@NonNull final String conversationId, final Long from, @NonNull final Integer limit, @Nullable Callback<ComapiResult<MessagesQueryResponse>> callback);\n\n /**\n * Sends information that the participant started typing a new message in a conversation.\n *\n * @param conversationId ID of a conversation in which participant is typing a message.\n * @param callback Callback with the result.\n */\n void isTyping(@NonNull final String conversationId, @Nullable Callback<ComapiResult<Void>> callback);\n\n /**\n * Sends information to if the participant started or stopped typing a new message in a conversation.\n *\n * @param conversationId ID of a conversation in which participant is typing a message.\n * @param isTyping True if participant is typing, false if he has stopped typing.\n * @param callback Callback with the result.\n */\n void isTyping(@NonNull final String conversationId, final boolean isTyping, @Nullable Callback<ComapiResult<Void>> callback);\n }", "title": "" } ]
[ { "docid": "27dfd403f4fc5a1a01758e0df9ea54f9", "score": "0.6846139", "text": "public interface MessagingService {\n\n /**\n * Checks whether message receivers are registered for this channel.\n * \n * @param ccid the channel id\n * @return <code>true</code> if there are message receivers on this channel,\n * <code>false</code> if not.\n */\n boolean hasMessageReceiver(String ccid);\n\n /**\n * Passes the message to the registered message receiver.\n * \n * @param ccid the channel to pass the message on\n * @param serializedMessage the message to send (serialized SMRF message)\n */\n void passMessageToReceiver(String ccid, byte[] serializedMessage);\n\n /**\n * Check whether the messaging component is responsible to send messages on\n * this channel.<br>\n * \n * In scenarios with only one messaging component, this will always return\n * <code>true</code>. In scenarios in which channels are assigned to several\n * messaging components, only the component that the channel was assigned\n * to, returns <code>true</code>.\n * \n * @param ccid\n * the channel ID or cluster controller ID, respectively.\n * @return <code>true</code> if the messaging component is responsible for\n * forwarding messages on this channel, <code>false</code>\n * otherwise.\n */\n boolean isAssignedForChannel(String ccid);\n\n /**\n * Check whether the messaging component was responsible before but the\n * channel has been assigned to a new messaging component in the mean time.\n * \n * @param ccid the channel id\n * @return <code>true</code> if the messaging component was responsible\n * before but isn't any more, <code>false</code> if it either never\n * was responsible or still is responsible.\n */\n boolean hasChannelAssignmentMoved(String ccid);\n}", "title": "" }, { "docid": "1e4666bcf8aedd12d75757c150448f02", "score": "0.6797258", "text": "public interface MessageService {\r\n\r\n BaseResult addMessage(MessageVo vo, Account user,String oType,String url);\r\n\r\n BaseResult selectMessage(QueryMessageVo vo);\r\n\r\n BaseResult selectMessageDetail(String cusId);\r\n\r\n BaseResult delMessage(String cusId);\r\n\r\n BaseResult getCount(String acceptType,String cusKind);\r\n\r\n BaseResult updateMessage(MessageVo vo, Account user);\r\n}", "title": "" }, { "docid": "28d36370856ce788c3a68035aff3fd4a", "score": "0.6522768", "text": "public interface IAisMsgCommondService {\n\n /**\n * 常规预报AIS消息控制\n * */\n public int generalForecastCommond(GeneralForecastBo generalForecastBo);\n\n /**\n * 数值预报AIS消息控制\n * */\n public int numericalForecastCommond(List<NumericalForecastBo> numericalForecastBoList);\n\n /**\n * 短消息控制\n * */\n public int messageCommond(MessageBo msgBo);\n}", "title": "" }, { "docid": "dee947709d4e5b5d5c6dc7d34154d8cf", "score": "0.6496602", "text": "public interface MessageListService {\n\n List<Conversation> getUserConversations(String uuid);\n}", "title": "" }, { "docid": "1b73aad400eefac30ff8004b15a9ea8b", "score": "0.6478278", "text": "public interface AcSentEdiInterchangeDomesticCandidateRouteMessageServiceIF\n extends AcModelServiceIF\n{\n AcSentEdiInterchangeDomesticCandidateRouteMessage getSentEdiInterchangeDomesticCandidateRouteMessage(Integer sentEdiInterchangeId, Integer domesticCandidateRouteMessageId);\n AcSentEdiInterchangeDomesticCandidateRouteMessage getSentEdiInterchangeDomesticCandidateRouteMessage(AcSentEdiInterchangeDomesticCandidateRouteMessagePkIF pk);\n boolean sentEdiInterchangeDomesticCandidateRouteMessageExists(Integer sentEdiInterchangeId, Integer domesticCandidateRouteMessageId);\n boolean sentEdiInterchangeDomesticCandidateRouteMessageExists(AcSentEdiInterchangeDomesticCandidateRouteMessagePkIF pk);\n AcSentEdiInterchangeDomesticCandidateRouteMessage getSentEdiInterchangeDomesticCandidateRouteMessageByWebKey(String webKey);\n JwList<AcSentEdiInterchangeDomesticCandidateRouteMessage> getAll();\n JwList<AcSentEdiInterchangeDomesticCandidateRouteMessage> getAllAvailable();\n JwList<AcSentEdiInterchangeDomesticCandidateRouteMessage> getAllWhere(String whereClause, Integer rowLimit);\n void insert(AcSentEdiInterchangeDomesticCandidateRouteMessage sentEdiInterchangeDomesticCandidateRouteMessage);\n void update(AcSentEdiInterchangeDomesticCandidateRouteMessage sentEdiInterchangeDomesticCandidateRouteMessage);\n void delete(Integer sentEdiInterchangeId, Integer domesticCandidateRouteMessageId);\n}", "title": "" }, { "docid": "5e9d6d1dfcd3f521673342a0de57211f", "score": "0.6454426", "text": "public interface IMessageService {\n\n /**\n * Notifies subscribed clients with the given message.\n *\n * @param m Message (e.g. object, status, warning)\n */\n void notify(Message m);\n\n /**\n * Notifies subscribed clients with the given message.\n *\n * @param m Message (e.g. object, status, warning)\n */\n void notify(PushMessage m);\n\n /**\n * Notifies subscribed clients with the given message and push-type (e.g. ALERT)\n * \n * @param data message which should be send to the client\n * @param type type of the notification (manual step, ...)\n */\n void notify(String data, PushType type);\n\n /**\n * Subscribes a client for push-notifications.\n *\n * @param id id of the client (address)\n */\n void subscribe(String id);\n\n /**\n * unsubscribes a client for push-notifications.\n *\n * @param id id of the client (address)\n */\n void unsubscribe(String id);\n\n /**\n * Informs all subscribed devices that something went wrong and the brewing process wasnt\n * successfull and could cause damage\n * \n * @param text message which should be shown to the user\n */\n void alarm(String text);\n}", "title": "" }, { "docid": "98fee757bfb4c0f72faed7cd23a223a1", "score": "0.6398671", "text": "public interface CommunicationUser {\n\t\n\t/**\n\t * Provide communication API that allows for communication with other object in the simulator.\n\t * Method is a callback for the registration of the object in {@link CommunicationModel}\n\t * @param api the access to the communication infrastructure \n\t */\n\tvoid setCommunicationAPI(CommunicationAPI api);\n\t\n\t/**\n\t * Get position. The position is required to determine the entities you can communicate with \n\t * @return positing on the communication user or <code>null</code> if object is not positioned \n\t */\n\tPoint getPosition();\n\t\n\t/**\n\t * Get the distance in which you want to communicate. \n\t * @return\n\t */\n\tdouble getRadius();\n\t\n\t/**\n\t * Get the connection reliability. This is probability (0,1] that the message is send/received.\n\t * When two entities communicate the probability of message delivery is a product of their reliability. \n\t * @return\n\t */\n\tdouble getReliability();\n\t\n\t/**\n\t * Receive the message. Multiple messages might be delivered during one tick of the simulator. \n\t * The simple implementation of handling multiple messages is provided in {@link Mailbox} \n\t * @param message delivered\n\t */\n\tvoid receive(Message message);\n}", "title": "" }, { "docid": "452cbc9b945374d20b49d7e9df92151f", "score": "0.6395942", "text": "public interface MessageService {\n String getMessage();\n}", "title": "" }, { "docid": "452cbc9b945374d20b49d7e9df92151f", "score": "0.6395942", "text": "public interface MessageService {\n String getMessage();\n}", "title": "" }, { "docid": "f0683ef349b897ff502334afd4123eca", "score": "0.63568133", "text": "public interface InstantMsgService {\n\n\tpublic void sendMsg(List<String> receivers,String content,String sendUser);\n\tpublic List<InstantMsg> receiveMsgs(String receiveUser,boolean clean);\n\tpublic boolean hasMsg(String receiveUser);\n\tpublic IBaseDTO receiveMsg(String receiveUser,boolean clean);\n\tpublic List<IBaseDTO> userList();\n}", "title": "" }, { "docid": "956909ac2dc8b08a38ef7b26356c1f85", "score": "0.63254184", "text": "public interface CommonInterface extends IService {\n\n String contact(String msg);\n}", "title": "" }, { "docid": "7fce9f0ddba6374855ab837a8971fb64", "score": "0.63045794", "text": "public interface ProvDomainMgr extends ReqMsgClient\n{\n\n /**\n * Returns the message model type that this domain manager provides. The\n * return value is one of the types defined in\n * {@linkplain com.reuters.rfa.rdm.RDMMsgTypes}.\n * \n * @return the message model type that this domain manager provides.\n */\n short getMsgModelType();\n\n /**\n * Returns the name of service that this domain manager provides.\n * \n * @return the name of service that this domain manager provides.\n */\n String getServiceName();\n\n /**\n * Returns an OMMPool used by this domain manager.\n * \n * @return an OMMPool used by this domain manager.\n */\n OMMPool getPool();\n\n /**\n * Sends an OMM message to a client.\n * \n * @param token the client request token\n * @param encmsg the OMM message to submit\n */\n void submit(Token token, OMMMsg encmsg);\n\n}", "title": "" }, { "docid": "814392d3b81bc6a3919fafb3596ccdfc", "score": "0.6281107", "text": "public interface CommunityService extends WorkspaceService\r\n{\r\n\r\n static final String COMMUNITY_SERVICE_KEY = \"COMMUNITY_SERVICE_KEY\";\r\n\r\n /**\r\n * Creations of a Community object reference.\r\n * @param name the initial name to asign to the community\r\n * @param user_short_pid storage object short pid representing the owner\r\n * @return Community object reference\r\n * @exception CommunityException\r\n */\r\n Community createCommunity( String name, byte[] user_short_pid ) \r\n throws CommunityException;\r\n\r\n /**\r\n * Creations of a Community storage instance.\r\n * @param name the initial name to asign to the community\r\n * @param user_short_pid storage object short pid representing the owner\r\n * @return CommunityStorage community storage\r\n * @exception CommunityException\r\n */\r\n CommunityStorage createCommunityStorage( String name, byte[] user_short_pid ) \r\n throws CommunityException;\r\n\r\n /**\r\n * Creation of a Community object reference based on a supplied storage object.\r\n * @param store a community storage object\r\n * @return Community a Community object reference\r\n * @exception CommunityException\r\n */\r\n Community getCommunityReference( CommunityStorage store ) \r\n throws CommunityException;\r\n\r\n /**\r\n * Returns a reference to a Community given a persistent storage object identifier.\r\n * @param pid community short persistent identifier\r\n * @return Desktop the corresponding PID\r\n * @exception NotFound if the supplied pid does not matach a know desktop\r\n */\r\n Community getCommunityReference( byte[] pid )\r\n throws NotFound;\r\n\r\n}", "title": "" }, { "docid": "066f50f58556588b813f655dcec76aea", "score": "0.62702894", "text": "public interface ServicesManager {\n\tCompletable sendGCMToken();\n\n\tCompletable clearGCMToken();\n}", "title": "" }, { "docid": "034237c13b3383e791186dd18cf76c6a", "score": "0.62465155", "text": "public interface IRemoteMessageService {\n\n void unsubscribeToMessage(UnSubscribeToMessage cmd);\n\n /**\n * Sets a message element to a specified value\n */\n void setElementValue(SetElementValue cmd);\n\n void zeroizeElement(ZeroizeElement cmd);\n\n /**\n * Notifies service to send message updates to the specified ip address\n */\n SubscriptionDetails subscribeToMessage(SubscribeToMessage cmd);\n\n Set<? extends DataType> getAvailablePhysicalTypes();\n\n boolean startRecording(RecordCommand cmd);\n\n InetSocketAddress getRecorderSocketAddress();\n\n InetSocketAddress getMsgUpdateSocketAddress();\n\n void stopRecording();\n\n void terminateService();\n\n void reset();\n\n void setupRecorder(IMessageEntryFactory factory);\n\n public Map<String, Throwable> getCancelledSubscriptions();\n}", "title": "" }, { "docid": "a88f3daa5ebf1bf5b5fc512b6ccbb264", "score": "0.6199191", "text": "public interface SystemMessageService {\n void subscribe(long lastSystemMessageId, User user);\n\n void message(SystemMessage systemMessage, User user);\n}", "title": "" }, { "docid": "fe6ce40e6b21e4d5317a9e6fdddf1a2f", "score": "0.616667", "text": "public interface ContentService {\n\n public String getConteng(String logMsg);\n}", "title": "" }, { "docid": "349d417c6d72ffd4766617ff307ee8c2", "score": "0.61589634", "text": "public interface IConversationsManagePresenter {\n void setCoversationListView(IConversationListView view);\n void deleteCoversation();\n void deleteChatRecord();\n void showRecentConvs();\n void initReload(boolean toDB);\n void handleMessage(IMMessage message);\n void allRead();\n void markReadById();\n void removeEvent();\n\n\n}", "title": "" }, { "docid": "06f69b327a9013084d69c72a92e2c20a", "score": "0.6156415", "text": "public interface ChatMsgManager extends IManager {\r\n\r\n}", "title": "" }, { "docid": "cd9396582a433231c61936f97cd979ac", "score": "0.6138299", "text": "messages.Facademessages.Subscribe getSubscribe();", "title": "" }, { "docid": "ad98451c3de441590e82be71bb956bb8", "score": "0.6129653", "text": "public interface ServiceMessenger\n{\n\t/* public: ServiceMessager interface */\n\n\tpublic void sendEvent(Event event);\n}", "title": "" }, { "docid": "ea8df96cb9d1663784373d8cf392f147", "score": "0.6123216", "text": "public interface MnsService {\n\n void init();\n\n String pop();\n\n boolean sendMsg(BaseConsumer.Message entity);\n\n String getTopicName();\n\n void destroy();\n}", "title": "" }, { "docid": "b1db7d9c5ed7405b91614ef747a4409a", "score": "0.6122884", "text": "public interface Message {\n public OptionsImpl getConfirm();\n\n public List<SystemImpl> getAddressees();\n\n}", "title": "" }, { "docid": "dfafc07d418f2c9953f0b41894aa8e46", "score": "0.6120714", "text": "public interface MessageFacade {\n\n /**\n * Creates a new chat message.\n *\n * @param invoice a chat message invoice.\n * @return the created chat message.\n */\n Message create(MessageInvoice invoice);\n\n /**\n * Retrieves an existing message by its ID.\n *\n * @param id the ID of the message.\n * @return the requested message.\n */\n Message get(String id);\n\n /**\n * Retrieves a search result.\n *\n * @param invoice a search invoice.\n * @return search result.\n */\n MessageSearchResult getSearchResult(MessageSearchInvoice invoice);\n}", "title": "" }, { "docid": "ead11da6b6a8f599c9dae738feafa8b8", "score": "0.6118266", "text": "public interface MessageService extends ICommonService<Message> {\n\n // 查询资讯列表\n public Page<Message> iFindMessagePage(Integer ifAll, Integer pageNum, Integer pageSize);\n\n // 查询资讯列表\n public Page<Message> findMessagePage(Integer sort, String title, Integer pageNum, Integer pageSize);\n\n // 推荐 or 取消推荐资讯\n public void changeRecommend(Integer id, String isRecommend);\n\n // 推荐 or 取消推荐资讯\n public Message showToMain();\n\n public Message showToMainPC();\n\n List<Message> pcRecommendList();\n //根据分配查询资讯列表\n public Page<Message> pcPage(int pageNum,\n int pageSize,\n Integer tagId,String name);\n\n //根据ID查询资讯同类信息\n public List<Message> SameTypeMessage (Integer messageId);\n //上下页跳转\n public List<Message> PageJump(Integer messageId);\n //收藏资讯\n public void collectionMessage(Integer messageId,Integer userId);\n //取消收藏\n public void cancelledMessage(Integer messageId,Integer userId);\n //判断收藏\n public boolean ajaxJudgeCollection(Integer messageId,Integer userId);\n //增加收藏量\n public int messageCollectionAdd(Integer messageId,boolean addOrDel);\n\n}", "title": "" }, { "docid": "f32f11d7b790755bd2e86787ea6edc5f", "score": "0.610921", "text": "public interface MessageService {\n\n /**\n * 发送短信\n * @param\n */\n void sendNotice(HttpServletRequest request);\n\n /**\n * 向参会人发送通知短信(即时会议使用)\n * @param rid 会议记录id\n * @param phone\n * @param name\n */\n void sendMsg(Long rid,String phone,String name);\n\n /**\n * 向参会人发送通知短信(预约会议使用)\n * @param orid 预约会议记录id\n * @param phone\n * @param name\n */\n void sendOrderSms(Long orid, String phone, String name);\n\n /**\n * 向参会人发送通知短信(预约会议使用)\n * @param orderMeet 预约会议记录\n * @param phone\n */\n void sendOrderSms(OrderMeet orderMeet, String phone, String name);\n\n /**\n * 向参会人发送通知短信(预约会议使用)\n * @param rid 预约会议产生的会议记录id\n * @param orderMeet\n * @param phone\n * @param name\n */\n void sendOrderSms(Long rid,OrderMeet orderMeet,String phone,String name);\n}", "title": "" }, { "docid": "834ebf48343668ba8dc1d322256a0163", "score": "0.6094644", "text": "public interface MessageServiceApi {\n\n Observable<List<Message>> getMessages();\n\n}", "title": "" }, { "docid": "bcb4d8774af808f97a6598e55254c5d5", "score": "0.6083781", "text": "public interface MessageService {\n boolean sendMessage(String msg, String receiver);\n}", "title": "" }, { "docid": "71a0761048dc6816aa46b6b42ba8b757", "score": "0.6063045", "text": "public interface MessageService {\n\n List<Message> selectMessage(SeeRecord seeRecord);\n\n int getCount();\n\n Message selectMes(int id);\n}", "title": "" }, { "docid": "73e7f2005e7ae8cfd450d83b15a583cb", "score": "0.60537523", "text": "public interface ChatManager {\n //TODO: Implementar los metodos que necesiten manejar el module\n //Documentar\n List<Chat> getChats() throws CantGetChatException;\n\n Chat getChatByChatId(UUID chatId) throws CantGetChatException;\n\n Chat newEmptyInstanceChat() throws CantNewEmptyChatException;\n\n void saveChat(Chat chat) throws CantSaveChatException;\n\n void deleteChat(Chat chat) throws CantDeleteChatException;\n\n List<Message> getMessages() throws CantGetMessageException;\n\n Message getMessageByChatId(UUID chatId) throws CantGetMessageException;\n\n Message getMessageByMessageId(UUID messageId) throws CantGetMessageException;\n\n Message newEmptyInstanceMessage() throws CantNewEmptyMessageException;\n\n void saveMessage(Message message) throws CantSaveMessageException;\n\n void deleteMessage(Message message) throws CantDeleteMessageException;\n\n List<Contact> getContacts() throws CantGetContactException;\n\n Contact getContactByContactId(UUID contactId) throws CantGetContactException;\n\n Contact newEmptyInstanceContact() throws CantNewEmptyContactException;\n\n void saveContact(Contact contact) throws CantSaveContactException;\n\n void deleteContact(Contact contact) throws CantDeleteContactException;\n}", "title": "" }, { "docid": "f88625f4019bd908815d259ca6d74c5e", "score": "0.6036358", "text": "public interface IMessageService {\n int QueryMessageAmountService(String id);\n}", "title": "" }, { "docid": "1b595fb929f7b1682553f11526642a34", "score": "0.6019824", "text": "public interface ChatPlayerService extends PlayerService, Chatter\n{\n /**\n * Sets the player's ChatTarget focus.\n * \n * @param focus The new ChatTarget to focus\n */\n void setFocus( ChatTarget focus );\n \n /**\n * Gets the player's current focus.\n * \n * @return The channel the player has focused\n */\n ChatTarget getFocus();\n \n /**\n * Gets the player's BaseComponent name.\n * \n * @return The player's BaseComponent name.\n */\n BaseComponent getComponentName();\n \n /**\n * Gets the ChatManagerImpl.\n * \n * @return The ChatManagerImpl instance\n */\n ChatManager getChatManager();\n \n /**\n * Gets the PrivateMessageTarget from the last inbound PM.\n * \n * @return The PrivateMessageTarget from the last PM received\n */\n PrivateMessageTarget getLastInboundWhisperTarget();\n \n /**\n * Sets the most recent inbound PM's PrivateMessageTarget.\n * \n * @param lastInboundWhisperTarget The new target.\n * @return This ChatPlayerService object.\n */\n ChatPlayerService setLastInboundWhisperTarget( PrivateMessageTarget lastInboundWhisperTarget );\n \n /**\n * Gets a formatted message to show all of the channels the\n * player is currently in.\n * \n * @return A formatted message showing the channels the player is in.\n */\n BaseComponent[] getChannelsJoinedMessage();\n}", "title": "" }, { "docid": "fe953313de51744f4d974f75bdcc5b85", "score": "0.60186523", "text": "public interface ChannelsService {\n\n /**\n * Gets the Facebook data-ref to create send to messenger button.\n *\n * @param callback Callback with the result.\n */\n void createFbOptInState(@Nullable Callback<ComapiResult<String>> callback);\n }", "title": "" }, { "docid": "4627b0a8f7f555a8dda32ccac986e24c", "score": "0.5996856", "text": "public interface OnMessagingServiceConnetcedListenner {\n void onServiceConnected();\n}", "title": "" }, { "docid": "52ac1c7528ae0576b13111a2cd3bff36", "score": "0.5996108", "text": "public interface Comunicator {\n \n\n}", "title": "" }, { "docid": "61458211c70f37ec99076be8594b2809", "score": "0.5985635", "text": "public interface SysMessageService extends Service<SysMessage> {\r\n\r\n}", "title": "" }, { "docid": "c8d2fe46472a37615d5c30e325501e27", "score": "0.5981977", "text": "public interface MessageService {\n void postMessage(MessageDto messageDto);\n List<Message> getMessages(Long chatId);\n}", "title": "" }, { "docid": "a87287ad6f8b0746ad14f84cc5184d79", "score": "0.5977165", "text": "public interface IApi {\n\n IChatApi getChatApi();\n}", "title": "" }, { "docid": "5cb1044225f83bf4c99b6fb9cfa1ffa2", "score": "0.59569824", "text": "public interface APICallbacks\r\n{\r\n\r\n /**\r\n * <p>This is the copyright notice for this class </p>\r\n *\r\n * @copyright<br><p><B>Patsystems UK Limited 2000-2007</b></p>\r\n */\r\n public static final String COPYRIGHT = \"Copyright (c) Patsystems UK Limited 2000-2007\";\r\n\r\n /**\r\n * Host Link Status Change message ID.\r\n */\r\n public static final int MID_HOST_LINK_CHANGE = 1;\r\n\r\n /**\r\n * Price Link Status Change message ID.\r\n */\r\n public static final int MID_PRICE_LINK_CHANGE = 2;\r\n\r\n /**\r\n * Logon Status message ID.\r\n */\r\n public static final int MID_LOGON_STATUS = 3;\r\n\r\n /**\r\n * User Message message ID.\r\n */\r\n public final static int MID_MESSAGE = 4;\r\n\r\n /**\r\n * Order message ID.\r\n */\r\n public static final int MID_ORDER = 5;\r\n\r\n /**\r\n * End of Day message ID.\r\n */\r\n public static final int MID_FORCED_LOGOUT = 6;\r\n\r\n /**\r\n * Download Complete message ID.\r\n */\r\n public static final int MID_DOWNLOAD_COMPLETE = 7;\r\n\r\n /**\r\n * Price Change message ID.\r\n */\r\n public static final int MID_PRICE = 8;\r\n\r\n /**\r\n * Fill message ID.\r\n */\r\n public static final int MID_FILL = 9;\r\n\r\n /**\r\n * Status Update message ID.\r\n */\r\n public static final int MID_STATUS = 10;\r\n\r\n /**\r\n * Contract Added message ID.\r\n */\r\n public static final int MID_CONTRACT_ADDED = 11;\r\n\r\n /**\r\n * Contract Deleted message ID.\r\n */\r\n public static final int MID_CONTRACT_DELETED = 12;\r\n\r\n /**\r\n * Exchange Rate Updated message ID.\r\n */\r\n public static final int MID_EXCHANGE_RATE = 13;\r\n\r\n /**\r\n * Connectivity Status Update message ID.\r\n */\r\n public static final int MID_CONNECTIVITY_STATUS = 14;\r\n\r\n /**\r\n * Order Cancellation Timeout message ID.\r\n */\r\n public static final int MID_ORDER_CANCEL_FAILURE_ID = 15;\r\n\r\n /**\r\n * At Best message ID.\r\n */\r\n public static final int MID_AT_BEST_ID = 16;\r\n\r\n /**\r\n * Memory warning message ID.\r\n */\r\n public static final int MID_MEMORY_WARNING = 18;\r\n\r\n /**\r\n * Subscriber Depth message ID.\r\n */\r\n public static final int MID_SUBSCRIBER_DEPTH = 19;\r\n\r\n /**\r\n * DOM update message ID.\r\n */\r\n public static final int MID_DOM_UPDATE = 21;\r\n\r\n /**\r\n * Settlement Price message ID.\r\n */\r\n public static final int MID_SETTLEMENT_PRICE = 22;\r\n\r\n /**\r\n * Strategy creation successfullyReceived ID.\r\n */\r\n public static final int MID_STRATEGY_CREATION_RECEIVED = 23;\r\n\r\n /**\r\n * Strategy creation failure ID.\r\n */\r\n public static final int MID_STRATEGY_CREATION_FAILURE = 24;\r\n\r\n /**\r\n * Generic Price message ID.\r\n */\r\n public static final int MID_GENERIC_PRICE = 26;\r\n\r\n /**\r\n * Price blank message ID\r\n */\r\n public static final int MID_BLANK_PRICE = 27;\r\n\r\n /**\r\n * Order Queued Timeout ID.\r\n */\r\n public static final int MID_ORDER_QUEUED_TIMEOUT = 28;\r\n\r\n /**\r\n * Order Sent Timeout ID.\r\n */\r\n public static final int MID_ORDER_SENT_TIMEOUT = 29;\r\n\r\n /**\r\n * Order Book reset ID.\r\n */\r\n public static final int MID_RESET_ORDERBOOK = 30;\r\n\r\n /**\r\n * Exception/Error ID (Internal).\r\n */\r\n public static final int MID_ERROR = -1;\r\n\r\n /**\r\n * RFQ Change message ID.\r\n */\r\n public static final int MID_RFQ = 100;\r\n\r\n /**\r\n * LOW Price Alert.\r\n */\r\n public static final int MID_LOWPRICE = 101;\r\n\r\n /**\r\n * HIGH Price Alert.\r\n */\r\n public static final int MID_HIGHPRICE = 102;\r\n\r\n\r\n /**\r\n * RFQ Change message ID.\r\n */\r\n public static final int MID_RFQI_BID = 103;\r\n /**\r\n * RFQ Change message ID.\r\n */\r\n public static final int MID_RFQI_OFFER = 104;\r\n /**\r\n * RFQ Change message ID.\r\n */\r\n public static final int MID_RFQI_2_SIDES = 105;\r\n /**\r\n * RFQ Change message ID.\r\n */\r\n public static final int MID_RFQT_BID = 106;\r\n /**\r\n * RFQ Change message ID.\r\n */\r\n public static final int MID_RFQT_OFFER = 107;\r\n /**\r\n * RFQ Change message ID.\r\n */\r\n public static final int MID_RFQT_2_SIDES = 108;\r\n /**\r\n * RFQ Change message ID.\r\n */\r\n public static final int MID_RFQT_CROSS = 109;\r\n\r\n /**\r\n * Strategy creation strategy created event id.\r\n */\r\n public static final int MID_STRATEGY_CREATION_CREATED = 200;\r\n\r\n /**\r\n * Event ID to update order history\r\n */\r\n public static final int MID_UPDATE_ORDERHISTORY = 1000;\r\n\r\n\r\n}", "title": "" }, { "docid": "c499d60720d195b2d1948114d5ec73dd", "score": "0.5955824", "text": "public interface MessageComponent {\n}", "title": "" }, { "docid": "185fa74e8eef8cbdc81f41a08b0014e6", "score": "0.5933391", "text": "public interface SysOfficeMService {\n\n String getOfficeIdByUser();\n}", "title": "" }, { "docid": "122dd42dcabd19622399546618accef5", "score": "0.5932725", "text": "public interface CommManagerInterface {\r\n\r\n /**\r\n * 执行comm命令\r\n */\r\n public String comm(List<String> paramerList);\r\n}", "title": "" }, { "docid": "adbcecfae91ef08188dc796992d592d2", "score": "0.59263116", "text": "Communicator createCommunicator();", "title": "" }, { "docid": "a6d65be355983925b763724339e35ad0", "score": "0.59150136", "text": "public interface CommunicationService {\n public String postDeployment(UnitDeliveryResource unitDeliveryResource);\n\n public String postService(UnitServiceResource unitServiceResource);\n\n public boolean checkLocality(UnitDeliveryResource unitDeliveryResource);\n\n public List<SiteReource> getSites();\n}", "title": "" }, { "docid": "427c2c9939dae19f39fc997e2a0761a9", "score": "0.5909252", "text": "public interface IcsHmiPortalInterface {\r\n\t\r\n\t/** The HMI application(s) will call this method in order to receive incoming\r\n\t * Objects and notifications from the IcsDirector.\r\n\t * \r\n\t * @param listener The listener that will be registered.\r\n\t */\r\n\tpublic void addDirectorToHmiEventListener( DirectorToHmiEventListener listener );\r\n\t\r\n\t/** The HMI application will use this method to send a text message to Choeo. \r\n\t * \r\n\t * @param jsonTextMessage\r\n\t * \r\n\t * @return <code>true</code> if the json oject was decoded successfully and the text message\r\n\t * has been queued to be sent to Choreo.\r\n\t */\r\n\tpublic boolean sendTextMessageToChoreo( String jsonTextMessage );\r\n\t\r\n\t/** Inform the director that the specified message has been viewed by the driver.\r\n\t * \r\n\t * @param messageId The id of the message that was viewed.\r\n\t * @return <code>true</code> if the specified message id is associated with a received text message. If the \r\n\t * message id doesn't match a received message in the datbase <code>false</code> will be returned instead.\r\n\t */\r\n\tpublic boolean setMessageIsReadStatus( long messageId );\r\n\r\n\t/** Request the director to validate the given PIN code. If the PIN is valid, the \r\n\t * Director will notify the OBU that a valid PIN was entered on the touchscreen. \r\n\t * This may not result in a valid logon if the OBU has already validated a logon source\r\n\t * With a higher order of precedence (i.e. DTCO card). The HMI should not consider \r\n\t * that a logon exists until it receives the ObuLogonEvent object.\r\n\t * \r\n\t * @param pin The PIN code to be validated.\r\n\t * @return <code>true</code> if the PIN is valid. <code>false</code> otherwise.\r\n\t */\r\n\tpublic boolean validatePin( String pin );\r\n\t\r\n\t/** The End User License Agreement (EULA) has been accepted by the specified driver. The Director \r\n\t * will update the database with this information so that the EULA will not need to be shown to \r\n\t * this driver in the future.\r\n\t * \r\n\t * @param driverIdType The type associated with the currently logged on driver.\r\n\t * @param driverId The identifier string associated with the currently logged on driver.\r\n\t * @return <code>true</code> if the EULA was previously accepted by the specified driver. <code>false</code> otherwise.\r\n\t */\r\n\tpublic boolean eulaIsAcceptedBy( byte driverIdType, String driverId );\r\n\t\r\n\t/** Get the configuration object for the specified driver. The configuration information will be fetched via\r\n\t * the data broker if there is existing configuration information for the specified driver.\r\n\t * \r\n\t * @param driverIdType The type associated with the currently logged on driver.\r\n\t * @param driverId The identifier string associated with the currently logged on driver.\r\n\t * @return The object that contains the specified drivers configuration info. If there is no existing confiuration\r\n\t * for the requested driver then null will be returned.\r\n\t */\r\n\tpublic DriverConfiguration getDriverConfiguration( byte driverIdType, String driverId );\r\n\r\n\t/** Store a driver's configuration information. This will be written to persistant storage by the data broker.\r\n\t * \r\n\t * @param driverIdType The type associated with the currently logged on driver.\r\n\t * @param driverId The identifier string associated with the currently logged on driver.\r\n\t * @param configuration The configuration data to store and associate with the specified driver.\r\n\t * @return\r\n\t */\r\n\tpublic boolean setDriverConfiguration( byte driverIdType, String driverId, DriverConfiguration configuration );\r\n\t\r\n\t/** Return the content of a pre-defined text message in the specified language. \r\n\t * \r\n\t * @param language The language as ISO 639-2 requested for the pre-defined message. \r\n\t * @param preDefindeMsgId The pre-defined or \"Standard message\" identifier (Currently\r\n\t * \t\t there are 5 pre-defined messages defined ). \r\n\t * @return A string which contains the content of the pre-defined messaged in the specified language.\r\n\t */\r\n\tpublic String getPredefinedTextMessage( String language, int preDefindeMsgId );\r\n\t\r\n\t\r\n\tpublic static final int DRIVING_TIP_CATEGORY_SCORE = 1;\r\n\tpublic static final int DRIVING_TIP_CATEGORY_IDLING = 2; /// catagory representing vehicle idle time.\r\n\tpublic static final int DRIVING_TIP_CATEGORY_OVER_REV = 3;\r\n\tpublic static final int DRIVING_TIP_CATEGORY_HARSH_THROTTLE = 4;\r\n\tpublic static final int DRIVING_TIP_CATEGORY_BRAKING = 5;\r\n\tpublic static final int DRIVING_TIP_CATEGORY_CRUISE_CONTROL = 6;\r\n\tpublic static final int DRIVING_TIP_CATEGORY_COASTING = 7;\r\n\tpublic static final int DRIVING_TIP_LEVEL_NEEDS_IMPROVEMENT = 1;\r\n\tpublic static final int DRIVING_TIP_LEVEL_MEETS_TARGET = 2;\r\n\tpublic static final int DRIVING_TIP_LEVEL_GOOD_JOB = 3;\r\n\t\r\n\r\n\t/** Get a driving tip for the specified category, language, and level. \r\n\t *\r\n\t * @param category The category of driving tip desired. Should be one of {@code DRIVING_TIP_CATEGORY_SCORE \r\n\t * DRIVING_TIP_CATEGORY_IDLING, DRIVING_TIP_CATEGORY_OVER_REV, DRIVING_TIP_CATEGORY_HARSH_THROTTLE, \r\n\t * DRIVING_TIP_CATEGORY_CRUISE_CONTROL DRIVING_TIP_CATEGORY_COASTING}\r\n\t * @param language The desired language for the requested tip.\r\n\t * @param level An indication of how the results of the given shift compare against the targets. This will \r\n\t * help select a more appropriate tip to suit the specific condition. \r\n\t * @return A driving tip for the selected category in the selected language. The tip will be relevant to the category and the driver's current score against targets.\r\n\t * \r\n\t */\r\n\tpublic String getDrivingTip( int category, String language, int level );\r\n\t\r\n\t/** Fetch all messages for this vehicle and also those addressed to the driver that is currently logged on to the ICS.\r\n\t * The messages will be returned as an array of JSON Text Message objects that are sorted by date in descending order.\r\n\t * \r\n\t * @return A string containing an array of JSON TextMessage objects. If no messages are found addressed to the vehicle or current driver null will be returned.\r\n\t */\r\n\tpublic String getTextMessagesForVehicleAndCurrentDriver();\r\n}", "title": "" }, { "docid": "f11aec17934e598bc99707f4a4bd56cd", "score": "0.59042215", "text": "public interface MessageService {\n\n void add(String text, Account account, Account account1);\n\n Message findById(int id);\n\n Message findByUserId(int id);\n\n Message findByLogin(String login);\n\n List<Message> showAll(int id, int idi);\n\n List<Message> showAllToMe(int id, int idi);\n\n List<Message> showAllSortedMessageFromFriends(int myId);\n\n}", "title": "" }, { "docid": "2ce9e2e27c75dd225453b8ffa09e04b8", "score": "0.59002805", "text": "public interface MessageInterface {\n\t\n\t/** \n\t * Get Message type.<br>\n\t * \n\t * Operations on Server operate based on the Message type. A type can never be overridden.\n\t * @return A String for the Message type.\n\t */\n\tString getType();\n\n\t/** \n\t * Set Message status.<br>\n\t * \n\t * Message status can be used for validation of operations. All Client Messages will receive a reply from the Server. \n\t * The Client can use the Status to determine the success or failure of an operation.<br>\n\t * \n\t * @return A String for the Message type.\n\t */\n\tvoid setStatus(String status);\n\n\t/** \n\t * Get Message status.<br>\n\t * \n\t * Message status can be used for validation of operations. All Client Messages will receive a reply from the Server.<br> \n\t * The Client can use the Status to determine the success or failure of an operation.\n\t * \n\t */\n\tString getStatus();\n\t\n\t/** \n\t * Set Message content.<br>\n\t * \n\t * Each Message contains a payload that is used for operations. Such operations will require that content for the operation to work. \n\t */\n\tvoid setContent(Map<String, Object> content);\n\t\n\t/** \n\t * Get Message content.<br>\n\t * \n\t * Each Message contains a payload that is used for operations. Such operations will require that content for the operation to work. \n\t * \n\t * @return A Map containing content.\n\t */\n\tMap<String, Object> getContent();\n}", "title": "" }, { "docid": "3e598f3d9fad89cdd37aa1341d8edefa", "score": "0.5880349", "text": "public interface IChatsController extends IController{\n public void activateChatForContact(Contact contact);\n public void addMessageToChat(Message message);\n public Contact getCurrentDialogContact();\n public void resetCurrent();\n}", "title": "" }, { "docid": "3bd1c5f1d39811c2039222c182650f36", "score": "0.5877412", "text": "public MessagingService messaging() {\n return service;\n }", "title": "" }, { "docid": "a8973106c8f87da346e71f31fc3620fc", "score": "0.5876144", "text": "public interface Communicator {\n public void respond(String data);\n public void goTo(String data);\n public void createSession(String key,String Value);\n public String getSession();\n}", "title": "" }, { "docid": "7c25b0b29b09370b877cab7db5ec3e76", "score": "0.5874932", "text": "public interface QMContactListenerImp {\r\n\r\n /**\r\n * 同意订阅\r\n * */\r\n void onContactAgreed(String username);\r\n\r\n /**\r\n * 拒绝订阅\r\n * */\r\n void onContactRefused(String username);\r\n\r\n /**\r\n * 订阅邀请\r\n * */\r\n void onContactInvited(String username);\r\n\r\n /**\r\n * 取消订阅\r\n * */\r\n void onContactDeleted(String username);\r\n\r\n\r\n /**\r\n * 下线\r\n * */\r\n void onUnavailable(String username);\r\n\r\n\r\n /**\r\n * 上线\r\n * */\r\n void onAvailable(String username);\r\n}", "title": "" }, { "docid": "0932fa24f6d0283ce944771b15c600dc", "score": "0.58714736", "text": "public interface TelIpManageService {\n\n public List<CallCenter> queryCallCenters();\n\n public void updateCallCenter(CallCenter callCenter);\n\n\tpublic void deleteCallCenters(List<Integer> callCenterIDs);\n\n\tpublic void addCallCenter(CallCenter callCenter);\n\n\tpublic CallCenter queryCallCenter(Integer callCenterID);\n}", "title": "" }, { "docid": "50fd53a9f9459a1fe0e725adbead41f8", "score": "0.5865122", "text": "public interface SessionService {\n\n /**\n * Create and start new ComapiImpl session.\n *\n * @param callback Callback with the result.\n */\n void startSession(@Nullable Callback<Session> callback);\n\n /**\n * Ends currently active session.\n *\n * @param callback Callback with the result.\n */\n void endSession(@Nullable Callback<ComapiResult<Void>> callback);\n }", "title": "" }, { "docid": "29de4c02295d539dfc2ab468993615ce", "score": "0.58517045", "text": "public interface DingtalkService {\n\n public String getAccessToken();\n\n public Map<String, String> getPersistentCode(String accessToken,String code);\n\n public String getSNSToken(String accessToken, String openid, String persistentCode);\n\n public String getUserInfo(String snsToken);\n\n}", "title": "" }, { "docid": "7f760cd031b17cd0aa640d930cf1ec86", "score": "0.5845333", "text": "public interface MessageControllerOperations {\n ResponseEntity<?> sendMessage(String token, String message, int receiver);\n ResponseEntity<?> getMessages(String token);\n}", "title": "" }, { "docid": "e0945c6e097f3fc9d89be0d0b1f90af4", "score": "0.5837714", "text": "public interface IMessage {\n Message getMessage(int userid);\n Message getMessages(int userid);\n Message sendMessage(int userid);\n}", "title": "" }, { "docid": "7c49ca485fbaaf686554359f4426d28d", "score": "0.5826866", "text": "public interface INetworkMailClient extends ICommonMailClient{\n void delete(String messageID);\n List<Message> getGoogleMessageList(String query) throws Exception;\n Message getMessageById(String messageId) throws Exception;\n List<Message> getGoogleMessageListWithLabels(List<String> labelIds) throws Exception;\n}", "title": "" }, { "docid": "0e5f361b94b8f88fda9ff6f6e5e299d6", "score": "0.5815161", "text": "@Override\n\tpublic Service duplexstreamDeliverMsgPluginManagerServiceInit() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "83bf81826f184c7141427bb38c6fd6da", "score": "0.5811449", "text": "public interface ChannelService {\n\n public List<Channeluser> listChannelInfoby(String appId,\n String timeFrom,\n String timeTo,\n String timeUnit,\n String appChannel,\n String appPlatform);\n\n}", "title": "" }, { "docid": "81072d340014d0b6791aa7402134d20d", "score": "0.58056605", "text": "public interface IRemoveUsersMsg extends ICommMsg {\n\t\n\t/**\n\t * Getter for a the set of ICommunicate stubs to remove.\n\t * @return List of ICommunicate stubs to add\n\t */\n\tpublic Set<ICommunicate> getICommunicates();\n\n}", "title": "" }, { "docid": "baea61e7dc2a4efbc6f1a3fbe8e5b977", "score": "0.5803071", "text": "public interface ClientApi extends Api {\n\n\t/**\n\t * To parse client request\n\t * \n\t * @param message\n\t * the request message from client to be parsed\n\t * @return IsoBuffer object the implementation of {@link ConcurrentHashMap}\n\t * @throws PosException\n\t * thrown when an exception occurs during parsing\n\t */\n\tpublic IsoBuffer parse(String message) throws PosException;\n\n\t/**\n\t * To parse emv data\n\t * \n\t * @param isoBuffer\n\t * the parsed buffer containing emv data\n\t * @return Map object containing tags and data as key value pair\n\t */\n\tpublic Map<EmvTags, String> parseEmvData(IsoBuffer isoBuffer);\n\n\t/**\n\t * To modify the {@link IsoBuffer} object for client response.\n\t * \n\t * @param isoBuffer\n\t * the buffer need to modified for response\n\t */\n\tpublic void modifyBits4Response(IsoBuffer isoBuffer, Data data);\n\n\t/**\n\t * To build the client message\n\t * \n\t * @param isoBuffer\n\t * the buffer holding all fields and data need to be formed as\n\t * response\n\t * @return response formed response {@link String} object need to responded\n\t * to client\n\t */\n\tpublic String build(IsoBuffer isoBuffer);\n\n\tpublic String getStoredProcedure();\n\t\n\tpublic Boolean checkHostToHost();\n\n\tpublic boolean errorDescriptionRequired();\n\n}", "title": "" }, { "docid": "cd28019ea6b8bc825f13cb39f856e600", "score": "0.5798845", "text": "public interface YunKaiMessageService {\n\n /**\n * 创建消息\n *\n * @param message\n */\n public void create(YunKaiMessageModel message);\n}", "title": "" }, { "docid": "4ccafff3d5482af783bb6a525b00f51d", "score": "0.5787121", "text": "public interface MessagingService {\n void sendMessageToTopic(TestSuite testSuite, String clientId, BrowserType browser, String url);\n}", "title": "" }, { "docid": "b1cd0861ab2267c2ea115d823ae81bed", "score": "0.5782955", "text": "public interface PoolingQueueService {\n\n void setIMessageProcessor(final IMessageProcessor iMessageProcessor) throws PoolingQueueException;\n\n MessageMapper cconn(String serialNumber, String contentType, MessageMapper messageMapper);\n\n MessageMapper cpull(String serialNumber);\n\n MessageMapper cpush(String serialNumber, String applicationID, String broadcast, String contentType, MessageMapper messageMapper);\n\n MessageMapper aconn(String serialNumber, String applicationID, String contentType, MessageMapper messageMapper);\n\n MessageMapper apull(String serialNumber, String applicationID, String messageAmount);\n\n MessageMapper apush(String serialNumber, String applicationID, String contentType, MessageMapper messageMapper);\n\n}", "title": "" }, { "docid": "66e487c61b12bc4821e0ba1d9c255d1b", "score": "0.5778333", "text": "public interface ICommunicationService\n extends IInterface\n{\n public static abstract class Stub extends Binder\n implements ICommunicationService\n {\n\n static final int TRANSACTION_acquireConnection = 1;\n static final int TRANSACTION_acquireConnectionEx = 8;\n static final int TRANSACTION_deregisterMessageHandler = 3;\n static final int TRANSACTION_getGatewayConnectivity = 9;\n static final int TRANSACTION_getIdentityResolver = 6;\n static final int TRANSACTION_isInitialized = 7;\n static final int TRANSACTION_registerMessageHandler = 2;\n static final int TRANSACTION_removeAckHandler = 11;\n static final int TRANSACTION_routeMessage = 4;\n static final int TRANSACTION_routeMessageFragment = 5;\n static final int TRANSACTION_setAckHandler = 10;\n\n public static ICommunicationService asInterface(IBinder ibinder)\n {\n if (ibinder == null)\n {\n return null;\n }\n IInterface iinterface = ibinder.queryLocalInterface(\"com.amazon.communication.ICommunicationService\");\n if (iinterface != null && (iinterface instanceof ICommunicationService))\n {\n return (ICommunicationService)iinterface;\n } else\n {\n return new Proxy(ibinder);\n }\n }\n\n public IBinder asBinder()\n {\n return this;\n }\n\n public boolean onTransact(int i, Parcel parcel, Parcel parcel1, int j)\n throws RemoteException\n {\n Object obj1 = null;\n ParcelableStatus parcelablestatus2 = null;\n Object obj = null;\n Object obj2 = null;\n boolean flag = false;\n switch (i)\n {\n default:\n return super.onTransact(i, parcel, parcel1, j);\n\n case 1598968902: \n parcel1.writeString(\"com.amazon.communication.ICommunicationService\");\n return true;\n\n case 1: // '\\001'\n parcel.enforceInterface(\"com.amazon.communication.ICommunicationService\");\n if (parcel.readInt() != 0)\n {\n obj = (ParcelableEndpointIdentity)ParcelableEndpointIdentity.CREATOR.createFromParcel(parcel);\n } else\n {\n obj = null;\n }\n if (parcel.readInt() != 0)\n {\n obj1 = (ParcelableConnectionPolicy)ParcelableConnectionPolicy.CREATOR.createFromParcel(parcel);\n } else\n {\n obj1 = null;\n }\n parcel = IConnectionListener.Stub.asInterface(parcel.readStrongBinder());\n parcelablestatus2 = new ParcelableStatus();\n obj = acquireConnection(((ParcelableEndpointIdentity) (obj)), ((ParcelableConnectionPolicy) (obj1)), parcel, parcelablestatus2);\n parcel1.writeNoException();\n parcel = obj2;\n if (obj != null)\n {\n parcel = ((IConnection) (obj)).asBinder();\n }\n parcel1.writeStrongBinder(parcel);\n if (parcelablestatus2 != null)\n {\n parcel1.writeInt(1);\n parcelablestatus2.writeToParcel(parcel1, 1);\n return true;\n } else\n {\n parcel1.writeInt(0);\n return true;\n }\n\n case 2: // '\\002'\n parcel.enforceInterface(\"com.amazon.communication.ICommunicationService\");\n i = registerMessageHandler(parcel.readInt(), IMessageHandler.Stub.asInterface(parcel.readStrongBinder()));\n parcel1.writeNoException();\n parcel1.writeInt(i);\n return true;\n\n case 3: // '\\003'\n parcel.enforceInterface(\"com.amazon.communication.ICommunicationService\");\n deregisterMessageHandler(parcel.readInt());\n parcel1.writeNoException();\n return true;\n\n case 4: // '\\004'\n parcel.enforceInterface(\"com.amazon.communication.ICommunicationService\");\n if (parcel.readInt() != 0)\n {\n obj = (ParcelableEndpointIdentity)ParcelableEndpointIdentity.CREATOR.createFromParcel(parcel);\n } else\n {\n obj = null;\n }\n if (parcel.readInt() != 0)\n {\n obj1 = (MessageEnvelope)MessageEnvelope.CREATOR.createFromParcel(parcel);\n } else\n {\n obj1 = null;\n }\n routeMessage(((ParcelableEndpointIdentity) (obj)), ((MessageEnvelope) (obj1)), parcel.readInt());\n parcel1.writeNoException();\n return true;\n\n case 5: // '\\005'\n parcel.enforceInterface(\"com.amazon.communication.ICommunicationService\");\n boolean flag1;\n if (parcel.readInt() != 0)\n {\n obj = (ParcelableEndpointIdentity)ParcelableEndpointIdentity.CREATOR.createFromParcel(parcel);\n } else\n {\n obj = null;\n }\n i = parcel.readInt();\n if (parcel.readInt() != 0)\n {\n obj1 = (MessageEnvelope)MessageEnvelope.CREATOR.createFromParcel(parcel);\n } else\n {\n obj1 = null;\n }\n if (parcel.readInt() != 0)\n {\n flag1 = true;\n } else\n {\n flag1 = false;\n }\n routeMessageFragment(((ParcelableEndpointIdentity) (obj)), i, ((MessageEnvelope) (obj1)), flag1, parcel.readInt());\n parcel1.writeNoException();\n return true;\n\n case 6: // '\\006'\n parcel.enforceInterface(\"com.amazon.communication.ICommunicationService\");\n obj = getIdentityResolver();\n parcel1.writeNoException();\n parcel = ((Parcel) (obj1));\n if (obj != null)\n {\n parcel = ((IIdentityResolver) (obj)).asBinder();\n }\n parcel1.writeStrongBinder(parcel);\n return true;\n\n case 7: // '\\007'\n parcel.enforceInterface(\"com.amazon.communication.ICommunicationService\");\n boolean flag2 = isInitialized();\n parcel1.writeNoException();\n i = ((flag) ? 1 : 0);\n if (flag2)\n {\n i = 1;\n }\n parcel1.writeInt(i);\n return true;\n\n case 8: // '\\b'\n parcel.enforceInterface(\"com.amazon.communication.ICommunicationService\");\n ParcelablePolicy parcelablepolicy;\n ParcelableStatus parcelablestatus1;\n if (parcel.readInt() != 0)\n {\n obj = (ParcelableEndpointIdentity)ParcelableEndpointIdentity.CREATOR.createFromParcel(parcel);\n } else\n {\n obj = null;\n }\n if (parcel.readInt() != 0)\n {\n parcelablepolicy = (ParcelablePolicy)ParcelablePolicy.CREATOR.createFromParcel(parcel);\n } else\n {\n parcelablepolicy = null;\n }\n parcel = IConnectionListener.Stub.asInterface(parcel.readStrongBinder());\n parcelablestatus1 = new ParcelableStatus();\n obj = acquireConnectionEx(((ParcelableEndpointIdentity) (obj)), parcelablepolicy, parcel, parcelablestatus1);\n parcel1.writeNoException();\n parcel = parcelablestatus2;\n if (obj != null)\n {\n parcel = ((IConnection) (obj)).asBinder();\n }\n parcel1.writeStrongBinder(parcel);\n if (parcelablestatus1 != null)\n {\n parcel1.writeInt(1);\n parcelablestatus1.writeToParcel(parcel1, 1);\n return true;\n } else\n {\n parcel1.writeInt(0);\n return true;\n }\n\n case 9: // '\\t'\n parcel.enforceInterface(\"com.amazon.communication.ICommunicationService\");\n parcel = IConnectionListener.Stub.asInterface(parcel.readStrongBinder());\n ParcelableStatus parcelablestatus = new ParcelableStatus();\n IGatewayConnectivity igatewayconnectivity = getGatewayConnectivity(parcel, parcelablestatus);\n parcel1.writeNoException();\n parcel = ((Parcel) (obj));\n if (igatewayconnectivity != null)\n {\n parcel = igatewayconnectivity.asBinder();\n }\n parcel1.writeStrongBinder(parcel);\n if (parcelablestatus != null)\n {\n parcel1.writeInt(1);\n parcelablestatus.writeToParcel(parcel1, 1);\n return true;\n } else\n {\n parcel1.writeInt(0);\n return true;\n }\n\n case 10: // '\\n'\n parcel.enforceInterface(\"com.amazon.communication.ICommunicationService\");\n i = setAckHandler(com.amazon.communication.rlm.IAckHandler.Stub.asInterface(parcel.readStrongBinder()));\n parcel1.writeNoException();\n parcel1.writeInt(i);\n return true;\n\n case 11: // '\\013'\n parcel.enforceInterface(\"com.amazon.communication.ICommunicationService\");\n removeAckHandler();\n parcel1.writeNoException();\n return true;\n }\n }\n\n public Stub()\n {\n attachInterface(this, \"com.amazon.communication.ICommunicationService\");\n }\n }\n\n private static class Stub.Proxy\n implements ICommunicationService\n {\n\n private IBinder mRemote;\n\n public IConnection acquireConnection(ParcelableEndpointIdentity parcelableendpointidentity, ParcelableConnectionPolicy parcelableconnectionpolicy, IConnectionListener iconnectionlistener, ParcelableStatus parcelablestatus)\n throws RemoteException\n {\n Parcel parcel;\n Parcel parcel1;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n parcel.writeInterfaceToken(\"com.amazon.communication.ICommunicationService\");\n if (parcelableendpointidentity == null) goto _L2; else goto _L1\n_L1:\n parcel.writeInt(1);\n parcelableendpointidentity.writeToParcel(parcel, 0);\n_L5:\n if (parcelableconnectionpolicy == null) goto _L4; else goto _L3\n_L3:\n parcel.writeInt(1);\n parcelableconnectionpolicy.writeToParcel(parcel, 0);\n_L6:\n if (iconnectionlistener == null)\n {\n break MISSING_BLOCK_LABEL_156;\n }\n parcelableendpointidentity = iconnectionlistener.asBinder();\n_L7:\n parcel.writeStrongBinder(parcelableendpointidentity);\n mRemote.transact(1, parcel, parcel1, 0);\n parcel1.readException();\n parcelableendpointidentity = IConnection.Stub.asInterface(parcel1.readStrongBinder());\n if (parcel1.readInt() != 0)\n {\n parcelablestatus.readFromParcel(parcel1);\n }\n parcel1.recycle();\n parcel.recycle();\n return parcelableendpointidentity;\n_L2:\n parcel.writeInt(0);\n goto _L5\n parcelableendpointidentity;\n parcel1.recycle();\n parcel.recycle();\n throw parcelableendpointidentity;\n_L4:\n parcel.writeInt(0);\n goto _L6\n parcelableendpointidentity = null;\n goto _L7\n }\n\n public IConnection acquireConnectionEx(ParcelableEndpointIdentity parcelableendpointidentity, ParcelablePolicy parcelablepolicy, IConnectionListener iconnectionlistener, ParcelableStatus parcelablestatus)\n throws RemoteException\n {\n Parcel parcel;\n Parcel parcel1;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n parcel.writeInterfaceToken(\"com.amazon.communication.ICommunicationService\");\n if (parcelableendpointidentity == null) goto _L2; else goto _L1\n_L1:\n parcel.writeInt(1);\n parcelableendpointidentity.writeToParcel(parcel, 0);\n_L5:\n if (parcelablepolicy == null) goto _L4; else goto _L3\n_L3:\n parcel.writeInt(1);\n parcelablepolicy.writeToParcel(parcel, 0);\n_L6:\n if (iconnectionlistener == null)\n {\n break MISSING_BLOCK_LABEL_157;\n }\n parcelableendpointidentity = iconnectionlistener.asBinder();\n_L7:\n parcel.writeStrongBinder(parcelableendpointidentity);\n mRemote.transact(8, parcel, parcel1, 0);\n parcel1.readException();\n parcelableendpointidentity = IConnection.Stub.asInterface(parcel1.readStrongBinder());\n if (parcel1.readInt() != 0)\n {\n parcelablestatus.readFromParcel(parcel1);\n }\n parcel1.recycle();\n parcel.recycle();\n return parcelableendpointidentity;\n_L2:\n parcel.writeInt(0);\n goto _L5\n parcelableendpointidentity;\n parcel1.recycle();\n parcel.recycle();\n throw parcelableendpointidentity;\n_L4:\n parcel.writeInt(0);\n goto _L6\n parcelableendpointidentity = null;\n goto _L7\n }\n\n public IBinder asBinder()\n {\n return mRemote;\n }\n\n public void deregisterMessageHandler(int i)\n throws RemoteException\n {\n Parcel parcel;\n Parcel parcel1;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n parcel.writeInterfaceToken(\"com.amazon.communication.ICommunicationService\");\n parcel.writeInt(i);\n mRemote.transact(3, parcel, parcel1, 0);\n parcel1.readException();\n parcel1.recycle();\n parcel.recycle();\n return;\n Exception exception;\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public IGatewayConnectivity getGatewayConnectivity(IConnectionListener iconnectionlistener, ParcelableStatus parcelablestatus)\n throws RemoteException\n {\n Parcel parcel;\n Parcel parcel1;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n parcel.writeInterfaceToken(\"com.amazon.communication.ICommunicationService\");\n if (iconnectionlistener == null)\n {\n break MISSING_BLOCK_LABEL_86;\n }\n iconnectionlistener = iconnectionlistener.asBinder();\n_L1:\n parcel.writeStrongBinder(iconnectionlistener);\n mRemote.transact(9, parcel, parcel1, 0);\n parcel1.readException();\n iconnectionlistener = IGatewayConnectivity.Stub.asInterface(parcel1.readStrongBinder());\n if (parcel1.readInt() != 0)\n {\n parcelablestatus.readFromParcel(parcel1);\n }\n parcel1.recycle();\n parcel.recycle();\n return iconnectionlistener;\n iconnectionlistener = null;\n goto _L1\n iconnectionlistener;\n parcel1.recycle();\n parcel.recycle();\n throw iconnectionlistener;\n }\n\n public IIdentityResolver getIdentityResolver()\n throws RemoteException\n {\n Parcel parcel;\n Parcel parcel1;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n IIdentityResolver iidentityresolver;\n parcel.writeInterfaceToken(\"com.amazon.communication.ICommunicationService\");\n mRemote.transact(6, parcel, parcel1, 0);\n parcel1.readException();\n iidentityresolver = com.amazon.communication.ir.IIdentityResolver.Stub.asInterface(parcel1.readStrongBinder());\n parcel1.recycle();\n parcel.recycle();\n return iidentityresolver;\n Exception exception;\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public String getInterfaceDescriptor()\n {\n return \"com.amazon.communication.ICommunicationService\";\n }\n\n public boolean isInitialized()\n throws RemoteException\n {\n Parcel parcel;\n Parcel parcel1;\n boolean flag;\n flag = false;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n int i;\n parcel.writeInterfaceToken(\"com.amazon.communication.ICommunicationService\");\n mRemote.transact(7, parcel, parcel1, 0);\n parcel1.readException();\n i = parcel1.readInt();\n if (i != 0)\n {\n flag = true;\n }\n parcel1.recycle();\n parcel.recycle();\n return flag;\n Exception exception;\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public int registerMessageHandler(int i, IMessageHandler imessagehandler)\n throws RemoteException\n {\n Parcel parcel;\n Parcel parcel1;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n parcel.writeInterfaceToken(\"com.amazon.communication.ICommunicationService\");\n parcel.writeInt(i);\n if (imessagehandler == null)\n {\n break MISSING_BLOCK_LABEL_73;\n }\n imessagehandler = imessagehandler.asBinder();\n_L1:\n parcel.writeStrongBinder(imessagehandler);\n mRemote.transact(2, parcel, parcel1, 0);\n parcel1.readException();\n i = parcel1.readInt();\n parcel1.recycle();\n parcel.recycle();\n return i;\n imessagehandler = null;\n goto _L1\n imessagehandler;\n parcel1.recycle();\n parcel.recycle();\n throw imessagehandler;\n }\n\n public void removeAckHandler()\n throws RemoteException\n {\n Parcel parcel;\n Parcel parcel1;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n parcel.writeInterfaceToken(\"com.amazon.communication.ICommunicationService\");\n mRemote.transact(11, parcel, parcel1, 0);\n parcel1.readException();\n parcel1.recycle();\n parcel.recycle();\n return;\n Exception exception;\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public void routeMessage(ParcelableEndpointIdentity parcelableendpointidentity, MessageEnvelope messageenvelope, int i)\n throws RemoteException\n {\n Parcel parcel;\n Parcel parcel1;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n parcel.writeInterfaceToken(\"com.amazon.communication.ICommunicationService\");\n if (parcelableendpointidentity == null) goto _L2; else goto _L1\n_L1:\n parcel.writeInt(1);\n parcelableendpointidentity.writeToParcel(parcel, 0);\n_L3:\n if (messageenvelope == null)\n {\n break MISSING_BLOCK_LABEL_111;\n }\n parcel.writeInt(1);\n messageenvelope.writeToParcel(parcel, 0);\n_L4:\n parcel.writeInt(i);\n mRemote.transact(4, parcel, parcel1, 0);\n parcel1.readException();\n parcel1.recycle();\n parcel.recycle();\n return;\n_L2:\n parcel.writeInt(0);\n goto _L3\n parcelableendpointidentity;\n parcel1.recycle();\n parcel.recycle();\n throw parcelableendpointidentity;\n parcel.writeInt(0);\n goto _L4\n }\n\n public void routeMessageFragment(ParcelableEndpointIdentity parcelableendpointidentity, int i, MessageEnvelope messageenvelope, boolean flag, int j)\n throws RemoteException\n {\n Parcel parcel;\n Parcel parcel1;\n boolean flag1;\n flag1 = true;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n parcel.writeInterfaceToken(\"com.amazon.communication.ICommunicationService\");\n if (parcelableendpointidentity == null) goto _L2; else goto _L1\n_L1:\n parcel.writeInt(1);\n parcelableendpointidentity.writeToParcel(parcel, 0);\n_L6:\n parcel.writeInt(i);\n if (messageenvelope == null) goto _L4; else goto _L3\n_L3:\n parcel.writeInt(1);\n messageenvelope.writeToParcel(parcel, 0);\n goto _L5\n_L7:\n parcel.writeInt(i);\n parcel.writeInt(j);\n mRemote.transact(5, parcel, parcel1, 0);\n parcel1.readException();\n parcel1.recycle();\n parcel.recycle();\n return;\n_L2:\n parcel.writeInt(0);\n goto _L6\n parcelableendpointidentity;\n parcel1.recycle();\n parcel.recycle();\n throw parcelableendpointidentity;\n_L4:\n parcel.writeInt(0);\n goto _L5\n_L9:\n i = 0;\n goto _L7\n_L5:\n if (!flag) goto _L9; else goto _L8\n_L8:\n i = ((flag1) ? 1 : 0);\n goto _L7\n }\n\n public int setAckHandler(IAckHandler iackhandler)\n throws RemoteException\n {\n Parcel parcel;\n Parcel parcel1;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n parcel.writeInterfaceToken(\"com.amazon.communication.ICommunicationService\");\n if (iackhandler == null)\n {\n break MISSING_BLOCK_LABEL_66;\n }\n iackhandler = iackhandler.asBinder();\n_L1:\n int i;\n parcel.writeStrongBinder(iackhandler);\n mRemote.transact(10, parcel, parcel1, 0);\n parcel1.readException();\n i = parcel1.readInt();\n parcel1.recycle();\n parcel.recycle();\n return i;\n iackhandler = null;\n goto _L1\n iackhandler;\n parcel1.recycle();\n parcel.recycle();\n throw iackhandler;\n }\n\n Stub.Proxy(IBinder ibinder)\n {\n mRemote = ibinder;\n }\n }\n\n\n public abstract IConnection acquireConnection(ParcelableEndpointIdentity parcelableendpointidentity, ParcelableConnectionPolicy parcelableconnectionpolicy, IConnectionListener iconnectionlistener, ParcelableStatus parcelablestatus)\n throws RemoteException;\n\n public abstract IConnection acquireConnectionEx(ParcelableEndpointIdentity parcelableendpointidentity, ParcelablePolicy parcelablepolicy, IConnectionListener iconnectionlistener, ParcelableStatus parcelablestatus)\n throws RemoteException;\n\n public abstract void deregisterMessageHandler(int i)\n throws RemoteException;\n\n public abstract IGatewayConnectivity getGatewayConnectivity(IConnectionListener iconnectionlistener, ParcelableStatus parcelablestatus)\n throws RemoteException;\n\n public abstract IIdentityResolver getIdentityResolver()\n throws RemoteException;\n\n public abstract boolean isInitialized()\n throws RemoteException;\n\n public abstract int registerMessageHandler(int i, IMessageHandler imessagehandler)\n throws RemoteException;\n\n public abstract void removeAckHandler()\n throws RemoteException;\n\n public abstract void routeMessage(ParcelableEndpointIdentity parcelableendpointidentity, MessageEnvelope messageenvelope, int i)\n throws RemoteException;\n\n public abstract void routeMessageFragment(ParcelableEndpointIdentity parcelableendpointidentity, int i, MessageEnvelope messageenvelope, boolean flag, int j)\n throws RemoteException;\n\n public abstract int setAckHandler(IAckHandler iackhandler)\n throws RemoteException;\n}", "title": "" }, { "docid": "e420ffdca0d2a9e0496f117f3317d526", "score": "0.5777973", "text": "public interface ExportableServiceConduit\r\n{\r\n /**\r\n * Register a service as added.\r\n * \r\n * @param serviceID an identifier for the service which should be unique within the meem server.\r\n * @param service the object providing the service.\r\n * @param itemList a list of Jini Entry objects.\r\n */\r\n public void serviceAdded(String serviceID, Remote service, List<?> itemList);\r\n\r\n /**\r\n * Register a service as removed.\r\n * \r\n * @param serviceID an identifier for the service which should be unique within the meem server.\r\n */\r\n public void serviceRemoved(String serviceID);\r\n}", "title": "" }, { "docid": "7ff253873fcf5ef67057a73bbf355fa0", "score": "0.5777051", "text": "public interface ICisSubscribed {\n\t//CIS SUBSCRIBER INTENTS\n\tpublic static final String INTENT_RETURN_VALUE = \"org.societies.android.platform.community.ReturnValue\";\n\tpublic static final String INTENT_RETURN_BOOLEAN = \"org.societies.android.platform.community.ReturnBoolean\"; // extra from True/False methods\n\tpublic static final String GET_MEMBERS \t= \"org.societies.android.platform.community.GET_MEMBERS\";\n\tpublic static final String GET_ACTIVITY_FEED= \"org.societies.android.platform.community.GET_ACTIVITY_FEED\";\n\tpublic static final String ADD_ACTIVITY \t= \"org.societies.android.platform.community.ADD_ACTIVITY\";\n\tpublic static final String DELETE_ACTIVITY \t= \"org.societies.android.platform.community.DELETE_ACTIVITY\";\n\tpublic static final String CLEAN_ACTIVITIES = \"org.societies.android.platform.community.CLEAN_ACTIVITIES\";\n\tpublic static final String GET_CIS_INFO \t= \"org.societies.android.platform.community.GET_CIS_INFO\";\n\t\n\tpublic String methodsArray[] = {\"getMembers(String client, String cisId)\",\n\t\t\t\t\t\t\t \t\t\"getCisInformation(String client, String cisId)\",\n\t\t\t\t\t\t\t \t\t\"getActivityFeed(String client, String cisId)\",\n\t\t\t\t\t\t\t \t\t\"addActivity(String client, String cisId, AActivity activity)\",\n\t\t\t\t\t\t\t \t\t\"deleteActivity(String client, String cisId, AActivity activity)\",\n\t\t\t\t\t\t\t \t\t\"cleanActivityFeed(String client, String cisId)\"\n\t\t\t\t\t\t\t\t};\n\t\n\t/**\n\t * Get the list of members for this community\n\t * @param client\n\t * @param cisId\n\t * @return\n\t */\n\tpublic String[] getMembers(String client, String cisId);\n\t\n\t/**\n\t * Get info for this community\n\t * @param client\n\t * @param cisId\n\t * @return\n\t */\n\tpublic ACommunity getCisInformation(String client, String cisId);\n\n\t/**\n\t * Get the list of activities for this community\n\t * @param client\n\t * @param cisId\n\t * @return\n\t */\n\tpublic MarshaledActivity[] getActivityFeed(String client, String cisId);\n\t\n\t/**\n\t * Add an activity to this community\n\t * @param activity\n\t * @return\n\t */\n\tpublic Boolean addActivity(String client, String cisId, AActivity activity);\n\t\n\t/**\n\t * Deletes the relevant activty from the feed\n\t */\n\tpublic Boolean deleteActivity(String client, String cisId, AActivity activity);\n\t/**\n\t * Clean up the activity feed for this community\n\t * @return\n\t */\n\tpublic CleanUpActivityFeedResponse cleanActivityFeed(String client, String cisId);\n}", "title": "" }, { "docid": "08ef020cd1e7b364ba29212d24ca9a08", "score": "0.5759561", "text": "public interface IChatNotificationService {\n void userLoggedIn(User user);\n void userLoggedOut(User user);\n void newMessage(Message message);\n}", "title": "" }, { "docid": "8aa54549f52555104ec485425406c09d", "score": "0.57576585", "text": "public interface MessageServiceInjector {\n public Consumer getConsumer() ;\n}", "title": "" }, { "docid": "cedb5c3ad7ea5cbc1e1bc0cf44ef2dde", "score": "0.5756591", "text": "public interface BrokerInterface extends Remote {\n /**\n * Subscribes to a game\n * @param subscriber the interface on which the broker calls the dispatch message method\n * @param clientId the unique id of the client to find in which game it belongs\n * @throws RemoteException\n */\n public void subscribe(SubscriberInterface subscriber, UUID clientId) throws RemoteException;\n}", "title": "" }, { "docid": "6ea11909ca421dec6516845bd8eef070", "score": "0.57520777", "text": "public interface ConsumerAdminOperations\n{\n\t/* constants */\n\t/* operations */\n\torg.omg.CosEventChannelAdmin.ProxyPushSupplier obtain_push_supplier();\n\torg.omg.CosEventChannelAdmin.ProxyPullSupplier obtain_pull_supplier();\n}", "title": "" }, { "docid": "77292b97211f7348171f087a6455772c", "score": "0.574856", "text": "public interface ChannelServiceI {\r\n Channel createChannel(Channel channel);\r\n\r\n int updateChannelUser(int id);\r\n\r\n int minusChannelUser(int id);\r\n\r\n List<Channel> getChannelPage(Channel channel);\r\n\r\n int count();\r\n\r\n Channel getChannel(String channelToken);\r\n\r\n List<Channel> getUserChannel(Channel channel);\r\n\r\n int deleteUser(Integer id);\r\n\r\n List<Channel> getUserChannelTotal(Channel channel);\r\n\r\n int updateChannel(Channel channel);\r\n}", "title": "" }, { "docid": "350b81b4523b4405df59c230cfc35d34", "score": "0.5747887", "text": "public Messaging getMessaging(){\n return new DefaultMessaging();\n }", "title": "" }, { "docid": "3d4821af60f516515c1d04d16dea863f", "score": "0.574423", "text": "public interface INewMessagePresenter {\n void getUsers();\n void sendMessage(String fromId,String toId,String message);\n}", "title": "" }, { "docid": "0580e05057c7844319a0d08595811313", "score": "0.57389486", "text": "public interface MessageProcessor{\n\n public void execMessage(MessageWrapper messageWrapper);\n}", "title": "" }, { "docid": "830a94faf5878f9b9815d1b34477f0d9", "score": "0.57375777", "text": "public interface StructuredPushConsumer extends StructuredPushConsumerOperations, CosNotifyComm.NotifyPublish, org.omg.CORBA.portable.IDLEntity \n{\n}", "title": "" }, { "docid": "0726cd5b8ed837720c79bc254f8eea18", "score": "0.57369107", "text": "public interface CommonDispatcher extends javax.ejb.EJBObject {\n\t\n\t/**\n\t * An example business method\n\t * \n\t * @throws EJBException\n\t * Thrown if method fails due to system-level error.\n\t */\n\tpublic DataHolder processRequest(DataHolder indataholder) throws java.rmi.RemoteException;\n\tpublic ProcessResult processRequest(VTObject inputDTO) throws java.rmi.RemoteException;\n\t//public DataHolder processRequest(DataHolder indataholder) throws java.rmi.RemoteException;\n}", "title": "" }, { "docid": "3bf423dac498a54de2d2fc7fd9c280be", "score": "0.57334614", "text": "public interface APIService {\n}", "title": "" }, { "docid": "1075e8c52c866b28c5d9828b7d5e4a9f", "score": "0.57295734", "text": "public interface HeshouyouApi {\n public String sendMsg(String msg);\n}", "title": "" }, { "docid": "31baadebc056b584fc4dea6c608e126f", "score": "0.57282025", "text": "public interface CoreServiceInvoker {\n\n\n GWRequest processRequest(Object requestData, InterfaceMapper mapper);\n\n /**\n * 处理请求信息\n */\n GWRequest processRequest(Object requestData, InterfaceMapper mapper, boolean needPackage);\n\n /**\n * 调用核心方法\n */\n GWResponse invoke(GWRequest request, boolean needPackage);\n\n /**\n * 处理返回信息\n */\n Object analysisResponse(GWRequest request, GWResponse response);\n Object analysisResp(GWRequest request, GWResponse response);\n}", "title": "" }, { "docid": "ef55b984668d58d1a391e146f09cfa8b", "score": "0.57273513", "text": "public interface ChatServerOperations \n{\n String subscribe (String name, chat.ChatClient c) throws chat.NameAlreadyUsed;\n void unsubscribe (String id) throws chat.UnknownID;\n void comment (String id, String text) throws chat.UnknownID;\n}", "title": "" }, { "docid": "9a93fd80f1d4dc168c4316573d8a17fd", "score": "0.5726064", "text": "public interface IDeviceManager {\n\n //디바이스 제어시 사용\n ResultMessage deviceExecute(String commandId, String deviceId, String deviceCommand);\n}", "title": "" }, { "docid": "68c293a58ed6789ef4006f5cfe91af67", "score": "0.57233465", "text": "public interface AccountService {\n\tpublic Long getUserId(String name);\n\tpublic MessageSystem getMessageSystem();\n}", "title": "" }, { "docid": "f941e7889a04b83750941a73a27ba244", "score": "0.5722298", "text": "public interface IWechatService {\n CodeRe sumbit(String image1, String image2, String image3, String billno, String openid, String appid, String nick, String tAppid);\n\n WechatPublicServer getWechatPublic(String id);\n\n WechatUserInfo getUser(String openid);\n\n CodeRe<UserConfig> getUserConfig(Serializable id);\n}", "title": "" }, { "docid": "47f40b13e27f51185607f9518b55a15e", "score": "0.5722279", "text": "public interface IMsgService {\n\n public String executeMsg(HttpServletRequest request);\n\n\n}", "title": "" }, { "docid": "2d02d2b86e12ca802c9aa41f8e3f321c", "score": "0.57166696", "text": "public interface IConnectService {\n\n\n}", "title": "" }, { "docid": "cfce82f5f77415e85f853fc059946908", "score": "0.57161236", "text": "public interface MessageService {\n\n /**\n * 添加信息\n */\n void addMessage(Message message);\n\n /**\n * z根据内容查找\n */\n Message findByContent(String text);\n}", "title": "" }, { "docid": "61d12e9bbf0ed6fc4486733d4f701f15", "score": "0.5710442", "text": "public interface MqService {\n /**\n * 发送消息\n * @param msg\n * @return\n * @throws JMSException\n */\n boolean sendMsg(String msg) throws JMSException;\n\n /**\n * 发送\n * @param msg\n * @return\n */\n boolean send(String msg);\n\n /**\n * 发送消息\n * @param msg\n * @return\n */\n boolean sendForNotice(String msg);\n}", "title": "" }, { "docid": "7729ab93e236cc8d3821aa7c1643252b", "score": "0.570896", "text": "public interface AcUspsInternationalCgrReplyOfferServiceIF\n extends AcModelServiceIF\n{\n AcUspsInternationalCgrReplyOffer getUspsInternationalCgrReplyOffer(Integer id);\n AcUspsInternationalCgrReplyOffer getUspsInternationalCgrReplyOffer(AcUspsInternationalCgrReplyOfferPkIF pk);\n boolean uspsInternationalCgrReplyOfferExists(Integer id);\n boolean uspsInternationalCgrReplyOfferExists(AcUspsInternationalCgrReplyOfferPkIF pk);\n AcUspsInternationalCgrReplyOffer getUspsInternationalCgrReplyOfferByWebKey(String webKey);\n JwList<AcUspsInternationalCgrReplyOffer> getAll();\n JwList<AcUspsInternationalCgrReplyOffer> getAllAvailable();\n JwList<AcUspsInternationalCgrReplyOffer> getAllWhere(String whereClause, Integer rowLimit);\n JwList<AcUspsInternationalCgrReplyOffer> getAllByUspsInternationalCgrSubmissionId(Integer uspsInternationalCgrSubmissionId);\n JwList<AcUspsInternationalCgrReplyOffer> getAllByUspsInternationalCgrSubmissionIdStatus(Integer uspsInternationalCgrSubmissionId, AcUspsInternationalCgrReplyOfferStatusEnum status);\n JwList<AcUspsInternationalCgrReplyOffer> getAllByUspsInternationalCgrSubmissionOfferId(Integer uspsInternationalCgrSubmissionOfferId);\n Integer insert(AcUspsInternationalCgrReplyOffer uspsInternationalCgrReplyOffer);\n void update(AcUspsInternationalCgrReplyOffer uspsInternationalCgrReplyOffer);\n void delete(Integer id);\n Integer getErrorCountByLatestSubmissionInBlock(Integer globalUspsInternationalSubmissionBlockId);\n}", "title": "" }, { "docid": "8af81de37df2ed3d09950fff84d53504", "score": "0.5707489", "text": "public interface RobotCommunicationProtocol {\n}", "title": "" }, { "docid": "2b4389c1e9b99fd26f7b7959a646eac3", "score": "0.5701513", "text": "public interface QxService {\n String transmission(String data, String appId, String sign);\n}", "title": "" }, { "docid": "dd8282080cd4d8a145cd7035ac4a2ca2", "score": "0.56984925", "text": "public interface SMSService {\n\n public static final String SMS_TXT = \"txt\";\n public static final String SMS_VOICE = \"voice\";\n\n /**\n * 发送短信\n * @param smsCheckCode 短信内容\n * @param isChange 是否改变发送渠道\n * @return\n */\n boolean sendSMS(SMSCheckCode smsCheckCode, boolean isChange);\n\n /**\n * 发送语音短信\n * @param smsCheckCode\n * @param isChange\n * @return\n */\n boolean sendVoiceSMS(SMSCheckCode smsCheckCode, boolean isChange);\n\n\n /**\n * 发送vip卡号\n * @return\n */\n boolean sendVipCard(SMSSendVipCard smsSendVipCard);\n}", "title": "" }, { "docid": "c4762232caae463bcf285b8ece85f1f8", "score": "0.56914175", "text": "public void InitService() {\n\t\ttry {\r\n\t\t\tgetCommManager().register(this); \r\n\t\t} catch (CommunicationException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "4de7836a0d705638d62672eba92ed65f", "score": "0.56878227", "text": "public interface ChatService {\n public Object requestRongToken(Member member) throws Exception;\n}", "title": "" }, { "docid": "3a62aa4228d888d3673c9a1203d55de7", "score": "0.56708366", "text": "messages.Clienthello.ClientHello getClientHello();", "title": "" }, { "docid": "198ad204996cb34958d1f94e6ef80055", "score": "0.5668766", "text": "public interface SendService {\n\n public void sendMessage(RemotingCommand remotingCommand, long timeout);\n}", "title": "" }, { "docid": "400a737ce709aa22b41c0d617dd3efdc", "score": "0.56663656", "text": "public interface ConversationPresenter {\n void getMessages(String number);\n void setMessagesAsReaded(String number);\n void disableNotifications(boolean disable, String number);\n void sendToBlackList(int options, String number);\n void onDestroy();\n}", "title": "" }, { "docid": "8722c23a54c117b3a6401ed744a5e1e3", "score": "0.56626433", "text": "public interface MsgService {\n\n Msg findByPrimaryKey(String id);\n\n List<Msg> findByProduceOrderByTimeDesc(String produce);\n\n List<Msg> findByConsumerOrderByTimeDesc(String consumer);\n\n ApiResult<List<Msg>> findList(Msg msg, Pageable pageable,String consumer);\n List<Msg> findList(Msg msg , Sort sort,String consumer);\n\n\n Msg insertSelective(Msg msg) throws CustomException;\n\n void deleteByPrimaryKey(String id);\n\n Msg updateByPrimaryKeySelective(Msg msg) throws CustomException;\n\n //查询聊天室最后一条消息\n Msg findTopByChatRoomIdOrderByTimeDesc(String chatRoomId);\n\n //查询聊天室未读消息数量\n Integer winterCicada(String chatRoomId);\n\n\n\n}", "title": "" }, { "docid": "b33addee40c901ed79b923a94ba5d934", "score": "0.566127", "text": "public interface SendOutService {\n\n String BEAN_NAME = \"SendOutService\";\n\n /**\n * Returns all the sendInfo nodes associated with given document.\n *\n * @param document document NodeRef\n * @return list of sendInfo nodes associated with given document\n */\n List<SendInfo> getDocumentSendInfos(NodeRef document);\n\n /**\n * Update searchable send info properties according to document's sendInfo child nodes\n *\n * @param document document NodeRef\n */\n void updateSearchableSendInfo(NodeRef document);\n\n /**\n * Build searchable send info data from document's sendInfo child nodes\n *\n * @param document document NodeRef\n * @return Map with documents properties populated with document's sendInfo values\n */\n Map<QName, Serializable> buildSearchableSendInfo(NodeRef document);\n\n /**\n * Sends out document.\n * Inspects all the given recipients and based on send mode sends out the document through DVK to those who support it (based on addressbook) and through email to others.\n * Registers sendInfo child entries under document and checks if given document is a reply outgoing letter and updates originating document info if needed.\n *\n * @param document subject document for sending out\n * @param names list of recipient names\n * @param emails list of recipient email addresses\n * @param modes list of recipient send modes\n * @param idCodes TODO\n * @param fromEmail from email address\n * @param subject mail subject\n * @param content mail content text\n * @param zipIt if attachments should be zipped into single file, or sent as separate files\n * @param fileNodeRefs list of file node refs as strings to match those files which should be sent out as attachments from given document\n * @return true\n */\n boolean sendOut(NodeRef document, List<String> names, List<String> emails, List<String> modes, List<String> idCodes, List<String> encryptionIdCodes, List<X509Certificate> allCertificates, \n \t\tString fromEmail, String subject, String content, List<NodeRef> fileRefs, boolean zipIt);\n\n /** @return {@code List<Pair<recipientName, recipientRegistrationNr>> } */\n List<Pair<String, String>> forward(NodeRef document, List<String> names, List<String> emails, List<String> modes, String fromEmail, String content, List<NodeRef> fileRefs);\n\n NodeRef addSendinfo(NodeRef document, Map<QName, Serializable> props);\n\n /**\n * If updateSearchableSendInfo is false then updateSearchableSendInfo() must manually be called later\n */\n NodeRef addSendinfo(NodeRef document, Map<QName, Serializable> props, boolean updateSearchableSendInfo);\n\n List<ContentToSend> prepareContents(NodeRef document, List<NodeRef> fileRefs, boolean zipIt) throws Exception;\n \n List<ContentToSend> prepareContents(List<EmailAttachment> attachments);\n\n void addSapSendInfo(Node document, String dvkId);\n\n boolean hasDocumentSendInfos(NodeRef document);\n\n Long sendForInformation(List<String> authorityIds, Node docNode, String emailTemplate, String subject, String content);\n\n Date getEarliestSendInfoDate(NodeRef docRef);\n\n}", "title": "" }, { "docid": "101d7c757f7590f6f7f61c30a8d4ab0b", "score": "0.565962", "text": "public interface ChatContract {\n interface view {\n void onSendMessageSuccess();\n\n void onSendMessageFailure(String message);\n\n void onGetMessagesSuccess(Chat chat);\n\n void onGetMessagesFailure(String message);\n }\n\n interface presenter {\n void sendMessage(Context context,Chat chat,String receiverFirebaseToken);\n\n void getMessage(String senderUid,String receiverUid);\n\n }\n\n interface interactor {\n void sendMessageToFirebaseUser(Context context, Chat chat, String receiverFirebaseToken);\n\n void getMessageFromFirebaseUser(String senderUid, String receiverUid);\n }\n\n interface onSendMsgListener {\n void onSendMsgSuccess();\n\n void onSendMsgFailure(String Message);\n }\n\n interface onGetMsgListener {\n void onGetMsgSuccess(Chat chat);\n\n void onGetMsgFailure(String Message);\n\n }\n}", "title": "" } ]
e73b66f699fd7d320a02c17ec95ada42
Returns the employee_ titles_ history ID of this employee_ titles_ history.
[ { "docid": "4745be51aae47bf0706e6570a7c3dfea", "score": "0.8621596", "text": "@Override\n public long getEmployee_Titles_HistoryId() {\n return _employee_Titles_History.getEmployee_Titles_HistoryId();\n }", "title": "" } ]
[ { "docid": "7696e7c27f86f6e082193650deeb32fb", "score": "0.8178401", "text": "@Override\n public long getEmployeeId() {\n return _employee_Titles_History.getEmployeeId();\n }", "title": "" }, { "docid": "393b790449b6f671a7798f7b9dd473b3", "score": "0.8080396", "text": "@Override\n public long getTitlesId() {\n return _employee_Titles_History.getTitlesId();\n }", "title": "" }, { "docid": "cd3b45348930c53526d183b0355144eb", "score": "0.76408243", "text": "@Override\n public long getPrimaryKey() {\n return _employee_Titles_History.getPrimaryKey();\n }", "title": "" }, { "docid": "b05fbee9e369eaf9cfb5204a66684ce9", "score": "0.6889078", "text": "@Override\n public void setEmployee_Titles_HistoryId(long employee_Titles_HistoryId) {\n _employee_Titles_History.setEmployee_Titles_HistoryId(employee_Titles_HistoryId);\n }", "title": "" }, { "docid": "41e2195d67a2ba077aec36df7f9c342b", "score": "0.68847823", "text": "@Override\n public long getCompanyId() {\n return _employee_Titles_History.getCompanyId();\n }", "title": "" }, { "docid": "d3abb9393357e0011a024143aa243483", "score": "0.6678264", "text": "public java.lang.Integer getTitleId () {\n\t\treturn titleId;\n\t}", "title": "" }, { "docid": "18f15becad843342e5480be9e16bc54f", "score": "0.6676676", "text": "public long getHistoryId() {\n\treturn historyId;\n }", "title": "" }, { "docid": "0305f7cb321ae1313c63aa9a923b2208", "score": "0.6654388", "text": "@Override\n public long getUserId() {\n return _employee_Titles_History.getUserId();\n }", "title": "" }, { "docid": "186fdf372aca05041799a75d4247c35c", "score": "0.6481208", "text": "@Override\n public void setTitlesId(long titlesId) {\n _employee_Titles_History.setTitlesId(titlesId);\n }", "title": "" }, { "docid": "a53d76fee3e3a969ab9774fba10dd483", "score": "0.64670014", "text": "@Override\n public long getGroupId() {\n return _employee_Titles_History.getGroupId();\n }", "title": "" }, { "docid": "c9832d66639ccdf748d27f0ea367260e", "score": "0.63744515", "text": "public Number getTitleId() {\n return (Number)getAttributeInternal(TITLEID);\n }", "title": "" }, { "docid": "d442188b93fb875f358d145db8ba66ac", "score": "0.6334445", "text": "public Number getTitleRecordId() {\n return (Number)getAttributeInternal(TITLERECORDID);\n }", "title": "" }, { "docid": "505977074a3e188f2904f8e1280fe869", "score": "0.62877303", "text": "@Override\n public void setEmployeeId(long employeeId) {\n _employee_Titles_History.setEmployeeId(employeeId);\n }", "title": "" }, { "docid": "f0ebe6476703af2c3990a5aa06bd4b66", "score": "0.60079145", "text": "@Override\n public java.lang.String getNote() {\n return _employee_Titles_History.getNote();\n }", "title": "" }, { "docid": "6258c2c9bc8d196637152505610d1b41", "score": "0.5971468", "text": "public int getEmployeeID() {\n\t\treturn EmployeeID;\n\t}", "title": "" }, { "docid": "1b1938429b46b56742939a46ba657fba", "score": "0.5951539", "text": "public Integer getEmployeeId() {\n\t\treturn employeeId;\n\t}", "title": "" }, { "docid": "eacfaab1a557eb1e90e2b4eabecd85dc", "score": "0.58831483", "text": "public String getEmployeeId() {\n\t\treturn employeeId;\n\t}", "title": "" }, { "docid": "6c04c843eb4cb114fc8846852c0260cb", "score": "0.58003604", "text": "public String getIdEmployee() {\r\n return idEmployee;\r\n }", "title": "" }, { "docid": "4b81844a8595dc35c4d54ba795f6340c", "score": "0.5792579", "text": "public static int getTitleRow() {\n return titleRow;\n }", "title": "" }, { "docid": "78c456f5d0eda2056b83d01809757c9d", "score": "0.5772914", "text": "@JsonIgnore\n public Long getEmployeeId() {\n return employee.getId();\n }", "title": "" }, { "docid": "3c805e218071d5fd8469e240ecb0b51e", "score": "0.5685912", "text": "public Integer getEmployeeId() {\n return employeeId;\n }", "title": "" }, { "docid": "3c805e218071d5fd8469e240ecb0b51e", "score": "0.5685912", "text": "public Integer getEmployeeId() {\n return employeeId;\n }", "title": "" }, { "docid": "bb9d32a6e002c2fbcd87a16c99f9b277", "score": "0.562247", "text": "@Override\n\tpublic long getEmpId() {\n\t\treturn _timeTracking.getEmpId();\n\t}", "title": "" }, { "docid": "2f653c6ceb6e54e55b65086d7b4490fd", "score": "0.55979913", "text": "protected int newEmployeeId() {\n this.id = employeedatabase.getNumOfEmployees() + 1;\n return id;\n }", "title": "" }, { "docid": "a2cc50da29cc207ee1d05ea6b78f56f3", "score": "0.5554775", "text": "public String getId(String title){\n \tfor(Movie currMovie : myMovies){\n \t\tString currMovieTitle = currMovie.getTitle();\n \t\tif(currMovieTitle.equals(title))\n \t\t\treturn currMovie.getID();\n \t}\n \treturn \"NO SUCH TITLE!\";\n }", "title": "" }, { "docid": "8637d8ab5f05e5532724c90c92868974", "score": "0.55219585", "text": "public Integer getEmployeeid() {\n return employeeid;\n }", "title": "" }, { "docid": "c602cb567d614d512a262bc9635d0408", "score": "0.5518039", "text": "@Override\n public java.lang.String getUserUuid()\n throws com.liferay.portal.kernel.exception.SystemException {\n return _employee_Titles_History.getUserUuid();\n }", "title": "" }, { "docid": "f8ee4bdf134c1b7c68d802e4111eaaa0", "score": "0.5506224", "text": "public Long getEmployeeId() {\n return employeeId;\n }", "title": "" }, { "docid": "447705a66e6649040869117dc4921623", "score": "0.54955906", "text": "public java.lang.Integer getEmpId () {\n\t\treturn empId;\n\t}", "title": "" }, { "docid": "8cc58a8d230960fa95307e0eacc04ade", "score": "0.5481946", "text": "public int getEmployeeId() {\n return employeeId;\n }", "title": "" }, { "docid": "8cc58a8d230960fa95307e0eacc04ade", "score": "0.5481946", "text": "public int getEmployeeId() {\n return employeeId;\n }", "title": "" }, { "docid": "3ac4167a891cd1aa7c00205d23cca917", "score": "0.5454867", "text": "public int getEmployee_Id() {\n return employee_Id;\n }", "title": "" }, { "docid": "a82ec9afddd630934be3cd75f37cfec7", "score": "0.54346013", "text": "@Override\n public void setPrimaryKey(long primaryKey) {\n _employee_Titles_History.setPrimaryKey(primaryKey);\n }", "title": "" }, { "docid": "cdcfdb8c880c82cdb55fb4c7d25055da", "score": "0.53776884", "text": "public void setHistoryId(long historyId) {\n\tthis.historyId = historyId;\n }", "title": "" }, { "docid": "97be653ad49c2eb4c2c28959f76568ea", "score": "0.5372456", "text": "public int getEmpId() {\r\n\t\tint empId = 0;\r\n\t\ttry {\r\n\t\t\tString sql = \"SELECT emp_id_seq.nextval FROM DUAL\";\r\n\t\t\tStatement stmt = con.createStatement();\r\n\t\t\tResultSet result = stmt.executeQuery(sql);\r\n\t\t\tif (result.next()) {\r\n\t\t\t\tempId = result.getInt(1);\r\n\t\t\t}\r\n\t\t\tlogger.info(\"Employee generated:\" + empId);\r\n\t\t} catch (SQLException e) {\r\n\t\t\tlogger.error(e.getMessage());\r\n\t\t}\r\n\t\treturn empId;\r\n\r\n\t}", "title": "" }, { "docid": "db00630416c97ff546fe1e0ad059928a", "score": "0.5352832", "text": "public long getEmployeeId();", "title": "" }, { "docid": "9f842fdb3e762dde2f6eabf4ecd634db", "score": "0.5352396", "text": "public int getEmpId() {\r\n\t\treturn empId;\r\n\t}", "title": "" }, { "docid": "4a81cb67537336834a0206c0290d3083", "score": "0.5346633", "text": "public int getEmpId() {\n\t\treturn empId;\n\t}", "title": "" }, { "docid": "4a81cb67537336834a0206c0290d3083", "score": "0.5346633", "text": "public int getEmpId() {\n\t\treturn empId;\n\t}", "title": "" }, { "docid": "9639546839b2b969e348803df26a6d2d", "score": "0.5341149", "text": "public void setId(java.util.Hashtable h) {\n\t//if (h.containsKey(DbInvHistoryPeer.NAME)){\n\t//\tgetPersistentPeer().restore(this, t);\n\t//}\n\tsetId(((Integer)h.get(DbInvHistoryPeer.IDENTITY)).intValue());\n}", "title": "" }, { "docid": "3aa460af3b7d1857545277ca4dfd5280", "score": "0.5329917", "text": "@JsonIgnore\r\n public String getEmployeeId() {\r\n return OptionalNullable.getFrom(employeeId);\r\n }", "title": "" }, { "docid": "ec9749d20c315e4651a027a6520b93da", "score": "0.53294843", "text": "public String getTitle() {\n return Character.toUpperCase(id.charAt(0)) + id.substring(1, id.length());\n }", "title": "" }, { "docid": "7a1fcdfd2429951a8c4fb2c73606c3af", "score": "0.5325055", "text": "public String getEmpId() {\r\n\t\treturn empId;\r\n\t}", "title": "" }, { "docid": "ef2e1eba35cd0207b19447e8e442dda3", "score": "0.5309465", "text": "public int mGetEmployeeID() {\n return intId;\n }", "title": "" }, { "docid": "41cefefa7776ddd7b26661104449bb56", "score": "0.5301226", "text": "public String getEmpId() {\n\t\treturn empId;\n\t}", "title": "" }, { "docid": "46f3f257f0a8b45f782c6c0ef30650dd", "score": "0.5288297", "text": "@Override\n public java.util.Date getCreateDate() {\n return _employee_Titles_History.getCreateDate();\n }", "title": "" }, { "docid": "e436f41758f42c638ba9318015858c97", "score": "0.5208825", "text": "public int getEventID() {\n\t\treturn eventID;\n\t}", "title": "" }, { "docid": "2dc91ba9c5dd31b01c014a9989808413", "score": "0.51596904", "text": "public void setTitleId (java.lang.Integer titleId) {\n\t\tthis.titleId = titleId;\n\t}", "title": "" }, { "docid": "c0ed5a6c87b5eea211561643a827b68d", "score": "0.511821", "text": "public String getEntityId() {\n return getValueForRow(table.getKeyFieldIndex(fields));\n }", "title": "" }, { "docid": "e4043b6e4e532d014fdd3907ead3af4c", "score": "0.510844", "text": "public int getHistory() {\r\n\t\treturn history;\r\n\t}", "title": "" }, { "docid": "154071f8fe230f4edb887d5bcdfe6655", "score": "0.508818", "text": "String eventDataId();", "title": "" }, { "docid": "a7aeb00ba5a5a26d2348a07f4112718e", "score": "0.5059705", "text": "public HIST_ENTRY history_get(int i);", "title": "" }, { "docid": "47b779a14c7f42664173b4dda9231a3e", "score": "0.5057448", "text": "@Override\n\tpublic long getEmpId() {\n\t\treturn _empBankInfo.getEmpId();\n\t}", "title": "" }, { "docid": "95005ce6518176d99bcaf646ce979004", "score": "0.5033426", "text": "public int getHC_EmployeeJob_ID () \n\t{\n\t\tInteger ii = (Integer)get_Value(COLUMNNAME_HC_EmployeeJob_ID);\n\t\tif (ii == null)\n\t\t\t return 0;\n\t\treturn ii.intValue();\n\t}", "title": "" }, { "docid": "e1a18c34280a4daac8e45fcd0787f93a", "score": "0.5030705", "text": "@Override\n public java.util.Date getSet_date() {\n return _employee_Titles_History.getSet_date();\n }", "title": "" }, { "docid": "39df9ff43aa3a26c27f1ed177099e0fc", "score": "0.5020584", "text": "public String getEmpId() {\n return empId;\n }", "title": "" }, { "docid": "5efde559fcf3b6c8d0c7c2ec70ab8c85", "score": "0.5008364", "text": "public Integer getLog_id() {\n return log_id;\n }", "title": "" }, { "docid": "3884834ec23feaa15ae1db317259f386", "score": "0.49983087", "text": "@Override\r\n\tpublic List<Integer> allEmployeeId() {\n\t\treturn dao.employeeId();\r\n\t}", "title": "" }, { "docid": "2a5a71d3124b68571fc54d8004a4b3ec", "score": "0.49881637", "text": "public java.lang.Integer getEmpDependentId () {\n\t\treturn empDependentId;\n\t}", "title": "" }, { "docid": "4c7638c5ffc59da029cfe69a8d71471f", "score": "0.4986573", "text": "public void setHistoryid(int contentStatusHistoryID)\n {\n if ( contentStatusHistoryID > 0 )\n {\n m_historyID = contentStatusHistoryID;\n }\n else\n {\n throw new IllegalArgumentException(\n \"PSWorkFlowContext: contentStatusHistoryID value \" +\n contentStatusHistoryID + \" is not valid\\n\");\n } \n }", "title": "" }, { "docid": "9c0a6a19841df83d0c21ef7ee47e6a77", "score": "0.49828377", "text": "public java.lang.String getTITLEE() {\n return TITLEE;\n }", "title": "" }, { "docid": "3bf36cabfd989f11a10d7221e283776b", "score": "0.49801183", "text": "public int getId() {\n\t\t\treturn ordinal();\n\t\t}", "title": "" }, { "docid": "835f10b83156159481e954b7d17f5bc5", "score": "0.49795005", "text": "public String getEventID() {\n return eventID;\n }", "title": "" }, { "docid": "f2c2ee8b2f0f2d352b44a463b73bdb78", "score": "0.49771115", "text": "public java.lang.String getBeanIdentifier() {\n\t\treturn _jobTitleLocalService.getBeanIdentifier();\n\t}", "title": "" }, { "docid": "30df7c5140c10c269a770ab29839cb95", "score": "0.4972285", "text": "public @NotNull String getEventID() {\n return eventID;\n }", "title": "" }, { "docid": "58f19178dc190e67603c309b1e19634e", "score": "0.4961456", "text": "@Override\n\tpublic int hashCode() {\n\t\treturn empId;\n\t\t//we want to eliminate duplicate based on empId\n\t\t// so in hashcode override we return empId.\n\t}", "title": "" }, { "docid": "8089055f99bea3c5ce44f4e7e5873500", "score": "0.496088", "text": "public void setTitleId(Number value) {\n setAttributeInternal(TITLEID, value);\n }", "title": "" }, { "docid": "877808f9e5b5a3e9b82bb7e42a552450", "score": "0.49603653", "text": "public String getEntityId() {\r\n\t\treturn EngineTools.getEntityId(getEntityKeys()[2]);\r\n\t}", "title": "" }, { "docid": "116166f1a89c228e9a4cb560c460d621", "score": "0.49511445", "text": "public long getEmpId();", "title": "" }, { "docid": "ff3e4757918b44c83758250335738c28", "score": "0.49509084", "text": "private void getID() {\n\t\tUILApplication application = (UILApplication)getApplication();\r\n\t\tmString_ID = application.getHotDetail_ID();\r\n\t\tLog.e(\"getID\", mString_ID);\r\n\t}", "title": "" }, { "docid": "4f5c55d555b31a15198d40a65e4845de", "score": "0.49498072", "text": "public String getReport_EmpID() {\n\t\treturn Report_EmpID;\n\t}", "title": "" }, { "docid": "0e47b6d473c667ffcb49ec5ca351ddd9", "score": "0.49485672", "text": "public String getTitleName() {\n return this.titleName;\n }", "title": "" }, { "docid": "9c25842539d38852ae97351ad26970a1", "score": "0.49479064", "text": "public int getEventid() {\n return eventid_;\n }", "title": "" }, { "docid": "423812f7dd866342f50e30489c11188d", "score": "0.49353242", "text": "public Number getIdhistord()\n {\n return (Number)getAttributeInternal(IDHISTORD);\n }", "title": "" }, { "docid": "dfb6f350e4b586955f80b914d8794cc9", "score": "0.49218714", "text": "public int getEventid() {\n return eventid_;\n }", "title": "" }, { "docid": "0098ee5fd763174d286c86f2c0ec9b43", "score": "0.49160695", "text": "public Integer getLogId() {\n return logId;\n }", "title": "" }, { "docid": "7ab26e90d23fd4af28145594d78cbc74", "score": "0.4915947", "text": "@Override\r\n\tpublic String toString() { return \"Employee Id: \"+getEmployeeId()+\", Employee Name: \"+getEmployeeName(); }", "title": "" }, { "docid": "b0ee9b32bac2a98f5cf8e9daad3be120", "score": "0.4913659", "text": "int getEventid();", "title": "" }, { "docid": "bccaabcc2b1461500d2b2e319becfbc5", "score": "0.4910235", "text": "public void setEmployeeId(Integer employeeId) {\n this.employeeId = employeeId;\n }", "title": "" }, { "docid": "bccaabcc2b1461500d2b2e319becfbc5", "score": "0.4910235", "text": "public void setEmployeeId(Integer employeeId) {\n this.employeeId = employeeId;\n }", "title": "" }, { "docid": "d3dc849a1f4eef839773a18e776777c3", "score": "0.4908248", "text": "@Override\n public java.util.Date getModifiedDate() {\n return _employee_Titles_History.getModifiedDate();\n }", "title": "" }, { "docid": "f118a9a1cb1a31dee610f2eef9309ba6", "score": "0.48999137", "text": "java.lang.String getPositionId();", "title": "" }, { "docid": "769158f766f3255be316ba5b3f3aa069", "score": "0.48927557", "text": "String getExceptionId();", "title": "" }, { "docid": "c10e534cd5fad6cd424761c60c673353", "score": "0.48882848", "text": "@Override\n\tpublic long getId_evento() {\n\t\treturn _prenotazione.getId_evento();\n\t}", "title": "" }, { "docid": "ae93d23fe69fa99a2e15198f8421af89", "score": "0.48827425", "text": "@Override\n public String getRecordID( String aSN_OEM ) {\n // MIM_DATA_TYPE table\n String[] iIds = { \"RECORD_ID\" };\n List<String> lfields = new ArrayList<String>( Arrays.asList( iIds ) );\n\n // Parameters required by the query.\n WhereClause lArgs = new WhereClause();\n lArgs.addArguments( \"SERIAL_NO_OEM\", aSN_OEM );\n\n String iQueryString =\n TableUtil.buildTableQuery( TableUtil.AL_PROC_HIST_TASK, lfields, lArgs );\n List<ArrayList<String>> llists = execute( iQueryString, lfields );\n\n // Get IDs\n String lId = llists.get( 0 ).get( 0 );\n\n return lId;\n }", "title": "" }, { "docid": "f978673704a9668004472a9534f3490a", "score": "0.48823145", "text": "public void setEmployeeid(Integer employeeid) {\n this.employeeid = employeeid;\n }", "title": "" }, { "docid": "ca8739b33bd86155cffab7304d152072", "score": "0.4879061", "text": "int getHeaderId() {\n return this.header.getInt(ID_OFFSET);\n }", "title": "" }, { "docid": "b890513f8d1831fd0be5446e26b5601b", "score": "0.48721182", "text": "public String getSlLogTitle() {\r\n return slLogTitle;\r\n }", "title": "" }, { "docid": "fbaf16965956725dd0406868ab17c669", "score": "0.48591352", "text": "public int getHrManagerId() {\n return hrManagerId;\n }", "title": "" }, { "docid": "4735493cf9e171fcb870cdc2927bac4c", "score": "0.4856535", "text": "public long getEventDetailId() {\n return eventDetailId;\n }", "title": "" }, { "docid": "ded8cfd45775210e6553ae5c518b93c1", "score": "0.48564333", "text": "public int previousRecordId() throws InvalidRecordIDException;", "title": "" }, { "docid": "3c6ed8845a9ca7158cf3bc5e9bfca55b", "score": "0.48494056", "text": "public IAuditLog getHistory(String transactionID);", "title": "" }, { "docid": "99d6b66498c50932deba07787c29f967", "score": "0.48453876", "text": "public long getLogId() {\n\t\treturn logId;\n\t}", "title": "" }, { "docid": "69988005112c58d9336f81b87bbe817d", "score": "0.48437014", "text": "public Integer getIdEvent() {\n return idEvent;\n }", "title": "" }, { "docid": "7daf8e48a59a20de51bfeee5597671fc", "score": "0.48426116", "text": "@SequenceGenerator(name = \"EventIdentifierGenerator\", sequenceName = \"EventSeq\")\n @Id\n @GeneratedValue(strategy = GenerationType.AUTO, generator = \"EventIdentifierGenerator\")\n public Long getEventID() {\n return eventID;\n }", "title": "" }, { "docid": "b88ea286d8477315789811e429951b42", "score": "0.48376146", "text": "public void setTitle(int titleId){\n }", "title": "" }, { "docid": "25722aade4970a9fd1f83277b04e1b87", "score": "0.48348877", "text": "public StrColumn getSheetId() {\n return (StrColumn) (isText ? textFields.computeIfAbsent(\"sheet_id\", StrColumn::new) :\n getBinaryColumn(\"sheet_id\"));\n }", "title": "" }, { "docid": "246271caaf31ed4fa5140dfa4d004325", "score": "0.48276827", "text": "@Nonnull\n public String getID() {\n return authenticationEventObject.getAsString(KEY_AE_ID);\n }", "title": "" }, { "docid": "10eb8f8ba9070c1233404df0a7abd1f6", "score": "0.48269713", "text": "public String getEmp_position() {\n\t\treturn emp_position;\n\t}", "title": "" }, { "docid": "0566a6f2cf6efd6da1b41c59ed3fa645", "score": "0.48252565", "text": "java.lang.String getID();", "title": "" } ]
38c38e550622066bce225ab7e7c02e20
$ANTLR end "rule__Object__Group__9__Impl" $ANTLR start "rule__Object__Group_2__0" ../org.xtext.example.rmodp.ui/srcgen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:6053:1: rule__Object__Group_2__0 : rule__Object__Group_2__0__Impl rule__Object__Group_2__1 ;
[ { "docid": "8dbc78f1ca0b3bfd7d21891cf90ca175", "score": "0.7869341", "text": "public final void rule__Object__Group_2__0() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:6057:1: ( rule__Object__Group_2__0__Impl rule__Object__Group_2__1 )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:6058:2: rule__Object__Group_2__0__Impl rule__Object__Group_2__1\r\n {\r\n pushFollow(FOLLOW_rule__Object__Group_2__0__Impl_in_rule__Object__Group_2__012950);\r\n rule__Object__Group_2__0__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n pushFollow(FOLLOW_rule__Object__Group_2__1_in_rule__Object__Group_2__012953);\r\n rule__Object__Group_2__1();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" } ]
[ { "docid": "eed5655b179dd765ba35887dbacb0db2", "score": "0.806687", "text": "public final void rule__Object__Group__2__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:5814:1: ( ( ( rule__Object__Group_2__0 )? ) )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:5815:1: ( ( rule__Object__Group_2__0 )? )\r\n {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:5815:1: ( ( rule__Object__Group_2__0 )? )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:5816:1: ( rule__Object__Group_2__0 )?\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getObjectAccess().getGroup_2()); \r\n }\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:5817:1: ( rule__Object__Group_2__0 )?\r\n int alt49=2;\r\n int LA49_0 = input.LA(1);\r\n\r\n if ( (LA49_0==66) ) {\r\n alt49=1;\r\n }\r\n switch (alt49) {\r\n case 1 :\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:5817:2: rule__Object__Group_2__0\r\n {\r\n pushFollow(FOLLOW_rule__Object__Group_2__0_in_rule__Object__Group__2__Impl12473);\r\n rule__Object__Group_2__0();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getObjectAccess().getGroup_2()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "264331494ad8a5e92284bc41adce444f", "score": "0.7719741", "text": "public final void ruleObject() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:326:2: ( ( ( rule__Object__Group__0 ) ) )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:327:1: ( ( rule__Object__Group__0 ) )\r\n {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:327:1: ( ( rule__Object__Group__0 ) )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:328:1: ( rule__Object__Group__0 )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getObjectAccess().getGroup()); \r\n }\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:329:1: ( rule__Object__Group__0 )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:329:2: rule__Object__Group__0\r\n {\r\n pushFollow(FOLLOW_rule__Object__Group__0_in_ruleObject641);\r\n rule__Object__Group__0();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getObjectAccess().getGroup()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "fa55e1a2f60c4b0aa5a52c6260ba2133", "score": "0.76459885", "text": "public final void rule__Object__Group__0() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:5744:1: ( rule__Object__Group__0__Impl rule__Object__Group__1 )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:5745:2: rule__Object__Group__0__Impl rule__Object__Group__1\r\n {\r\n pushFollow(FOLLOW_rule__Object__Group__0__Impl_in_rule__Object__Group__012323);\r\n rule__Object__Group__0__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n pushFollow(FOLLOW_rule__Object__Group__1_in_rule__Object__Group__012326);\r\n rule__Object__Group__1();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "87ae459edf309379db2554f98637d484", "score": "0.74719256", "text": "public final void rule__Object__Group__2() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:5802:1: ( rule__Object__Group__2__Impl rule__Object__Group__3 )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:5803:2: rule__Object__Group__2__Impl rule__Object__Group__3\r\n {\r\n pushFollow(FOLLOW_rule__Object__Group__2__Impl_in_rule__Object__Group__212443);\r\n rule__Object__Group__2__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n pushFollow(FOLLOW_rule__Object__Group__3_in_rule__Object__Group__212446);\r\n rule__Object__Group__3();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "9094accd5e1c020c972dac8e33d678c6", "score": "0.7388979", "text": "public final void rule__Object__Group_2__1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:6088:1: ( rule__Object__Group_2__1__Impl )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:6089:2: rule__Object__Group_2__1__Impl\r\n {\r\n pushFollow(FOLLOW_rule__Object__Group_2__1__Impl_in_rule__Object__Group_2__113012);\r\n rule__Object__Group_2__1__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "018dfec2e5413d0f944902a2c83fd147", "score": "0.7349454", "text": "public final void rule__Object__Group__1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:5773:1: ( rule__Object__Group__1__Impl rule__Object__Group__2 )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:5774:2: rule__Object__Group__1__Impl rule__Object__Group__2\r\n {\r\n pushFollow(FOLLOW_rule__Object__Group__1__Impl_in_rule__Object__Group__112383);\r\n rule__Object__Group__1__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n pushFollow(FOLLOW_rule__Object__Group__2_in_rule__Object__Group__112386);\r\n rule__Object__Group__2();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "df07891478388fca49e4e695a5f12aed", "score": "0.7289016", "text": "public final void rule__Objective__Group__0() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:8536:1: ( rule__Objective__Group__0__Impl rule__Objective__Group__1 )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:8537:2: rule__Objective__Group__0__Impl rule__Objective__Group__1\r\n {\r\n pushFollow(FOLLOW_rule__Objective__Group__0__Impl_in_rule__Objective__Group__017853);\r\n rule__Objective__Group__0__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n pushFollow(FOLLOW_rule__Objective__Group__1_in_rule__Objective__Group__017856);\r\n rule__Objective__Group__1();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "0c4a1b85fb0a5416c559f5ba9536c3fb", "score": "0.7270965", "text": "public final void rule__Object__Group_8__0() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:6319:1: ( rule__Object__Group_8__0__Impl rule__Object__Group_8__1 )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:6320:2: rule__Object__Group_8__0__Impl rule__Object__Group_8__1\r\n {\r\n pushFollow(FOLLOW_rule__Object__Group_8__0__Impl_in_rule__Object__Group_8__013464);\r\n rule__Object__Group_8__0__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n pushFollow(FOLLOW_rule__Object__Group_8__1_in_rule__Object__Group_8__013467);\r\n rule__Object__Group_8__1();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "d073eb2c5e422f15d3c74efbb17facff", "score": "0.72701794", "text": "public final void rule__Object__Group_7__2() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:6283:1: ( rule__Object__Group_7__2__Impl )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:6284:2: rule__Object__Group_7__2__Impl\r\n {\r\n pushFollow(FOLLOW_rule__Object__Group_7__2__Impl_in_rule__Object__Group_7__213399);\r\n rule__Object__Group_7__2__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "06766a971b86c6803a38753cd0ebd702", "score": "0.72674173", "text": "public final void ruleObjectPermission() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:1278:2: ( ( ( rule__ObjectPermission__Group__0 ) ) )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:1279:1: ( ( rule__ObjectPermission__Group__0 ) )\r\n {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:1279:1: ( ( rule__ObjectPermission__Group__0 ) )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:1280:1: ( rule__ObjectPermission__Group__0 )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getObjectPermissionAccess().getGroup()); \r\n }\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:1281:1: ( rule__ObjectPermission__Group__0 )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:1281:2: rule__ObjectPermission__Group__0\r\n {\r\n pushFollow(FOLLOW_rule__ObjectPermission__Group__0_in_ruleObjectPermission2681);\r\n rule__ObjectPermission__Group__0();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getObjectPermissionAccess().getGroup()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "2a405fd38d221ea843f57259bd2c44dc", "score": "0.7266716", "text": "public final void rule__Object__Group_7__0() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:6216:1: ( rule__Object__Group_7__0__Impl rule__Object__Group_7__1 )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:6217:2: rule__Object__Group_7__0__Impl rule__Object__Group_7__1\r\n {\r\n pushFollow(FOLLOW_rule__Object__Group_7__0__Impl_in_rule__Object__Group_7__013260);\r\n rule__Object__Group_7__0__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n pushFollow(FOLLOW_rule__Object__Group_7__1_in_rule__Object__Group_7__013263);\r\n rule__Object__Group_7__1();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "c56cab43faf180abcac6ef67f597af74", "score": "0.72412497", "text": "public final void rule__Object__Group__8__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:5990:1: ( ( ( rule__Object__Group_8__0 )? ) )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:5991:1: ( ( rule__Object__Group_8__0 )? )\r\n {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:5991:1: ( ( rule__Object__Group_8__0 )? )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:5992:1: ( rule__Object__Group_8__0 )?\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getObjectAccess().getGroup_8()); \r\n }\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:5993:1: ( rule__Object__Group_8__0 )?\r\n int alt54=2;\r\n int LA54_0 = input.LA(1);\r\n\r\n if ( (LA54_0==72) ) {\r\n alt54=1;\r\n }\r\n switch (alt54) {\r\n case 1 :\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:5993:2: rule__Object__Group_8__0\r\n {\r\n pushFollow(FOLLOW_rule__Object__Group_8__0_in_rule__Object__Group__8__Impl12840);\r\n rule__Object__Group_8__0();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getObjectAccess().getGroup_8()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "94d5429b9a11b89e7463b994bd44b966", "score": "0.7232451", "text": "public final void rule__ObjectPermission__Group__0() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:13063:1: ( rule__ObjectPermission__Group__0__Impl rule__ObjectPermission__Group__1 )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:13064:2: rule__ObjectPermission__Group__0__Impl rule__ObjectPermission__Group__1\r\n {\r\n pushFollow(FOLLOW_rule__ObjectPermission__Group__0__Impl_in_rule__ObjectPermission__Group__026772);\r\n rule__ObjectPermission__Group__0__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n pushFollow(FOLLOW_rule__ObjectPermission__Group__1_in_rule__ObjectPermission__Group__026775);\r\n rule__ObjectPermission__Group__1();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "3d1d28e2923ba01753900fb7d72735ed", "score": "0.7229605", "text": "public final void rule__ObjectPermission__Group__2__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:13135:1: ( ( ':' ) )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:13136:1: ( ':' )\r\n {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:13136:1: ( ':' )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:13137:1: ':'\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getObjectPermissionAccess().getColonKeyword_2()); \r\n }\r\n match(input,74,FOLLOW_74_in_rule__ObjectPermission__Group__2__Impl26925); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getObjectPermissionAccess().getColonKeyword_2()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "a46a623079d6aa603b249388109239ad", "score": "0.72181153", "text": "public final void rule__OR_Relation__Group__0__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:8933:1: ( ( 'EV_Object' ) )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:8934:1: ( 'EV_Object' )\r\n {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:8934:1: ( 'EV_Object' )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:8935:1: 'EV_Object'\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getOR_RelationAccess().getEV_ObjectKeyword_0()); \r\n }\r\n match(input,17,FOLLOW_17_in_rule__OR_Relation__Group__0__Impl18645); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getOR_RelationAccess().getEV_ObjectKeyword_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "6e4feb0d3820b72be76682c629684ab7", "score": "0.7178559", "text": "public final void rule__ObjectObligation__Group__0() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:12553:1: ( rule__ObjectObligation__Group__0__Impl rule__ObjectObligation__Group__1 )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:12554:2: rule__ObjectObligation__Group__0__Impl rule__ObjectObligation__Group__1\r\n {\r\n pushFollow(FOLLOW_rule__ObjectObligation__Group__0__Impl_in_rule__ObjectObligation__Group__025768);\r\n rule__ObjectObligation__Group__0__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n pushFollow(FOLLOW_rule__ObjectObligation__Group__1_in_rule__ObjectObligation__Group__025771);\r\n rule__ObjectObligation__Group__1();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "dcc1c0e5d12d76a844dc0bef378f29a3", "score": "0.7177793", "text": "public final void ruleEnd() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:1082:2: ( ( ( rule__End__Group__0 ) ) )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:1083:1: ( ( rule__End__Group__0 ) )\r\n {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:1083:1: ( ( rule__End__Group__0 ) )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:1084:1: ( rule__End__Group__0 )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getEndAccess().getGroup()); \r\n }\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:1085:1: ( rule__End__Group__0 )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:1085:2: rule__End__Group__0\r\n {\r\n pushFollow(FOLLOW_rule__End__Group__0_in_ruleEnd2261);\r\n rule__End__Group__0();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getEndAccess().getGroup()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "0e326391910b4e882e20bc5499fe2959", "score": "0.71570396", "text": "public final void rule__Object__Group__7__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:5961:1: ( ( ( rule__Object__Group_7__0 )? ) )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:5962:1: ( ( rule__Object__Group_7__0 )? )\r\n {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:5962:1: ( ( rule__Object__Group_7__0 )? )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:5963:1: ( rule__Object__Group_7__0 )?\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getObjectAccess().getGroup_7()); \r\n }\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:5964:1: ( rule__Object__Group_7__0 )?\r\n int alt53=2;\r\n int LA53_0 = input.LA(1);\r\n\r\n if ( (LA53_0==51) ) {\r\n alt53=1;\r\n }\r\n switch (alt53) {\r\n case 1 :\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:5964:2: rule__Object__Group_7__0\r\n {\r\n pushFollow(FOLLOW_rule__Object__Group_7__0_in_rule__Object__Group__7__Impl12779);\r\n rule__Object__Group_7__0();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getObjectAccess().getGroup_7()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "1ba8d8239b75849c14b10cd0b31ef6e3", "score": "0.71532387", "text": "public final void rule__End__Group__0() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:10545:1: ( rule__End__Group__0__Impl rule__End__Group__1 )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:10546:2: rule__End__Group__0__Impl rule__End__Group__1\r\n {\r\n pushFollow(FOLLOW_rule__End__Group__0__Impl_in_rule__End__Group__021810);\r\n rule__End__Group__0__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n pushFollow(FOLLOW_rule__End__Group__1_in_rule__End__Group__021813);\r\n rule__End__Group__1();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "72f2fc5e0aa2792cb1d5227460effd60", "score": "0.70836484", "text": "public final void rule__Object__Group_7__1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:6247:1: ( rule__Object__Group_7__1__Impl rule__Object__Group_7__2 )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:6248:2: rule__Object__Group_7__1__Impl rule__Object__Group_7__2\r\n {\r\n pushFollow(FOLLOW_rule__Object__Group_7__1__Impl_in_rule__Object__Group_7__113322);\r\n rule__Object__Group_7__1__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n pushFollow(FOLLOW_rule__Object__Group_7__2_in_rule__Object__Group_7__113325);\r\n rule__Object__Group_7__2();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "e7364d05b82b141ccb4fc32fd5beebe7", "score": "0.70741403", "text": "public final void rule__Object__Group__9() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:6007:1: ( rule__Object__Group__9__Impl )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:6008:2: rule__Object__Group__9__Impl\r\n {\r\n pushFollow(FOLLOW_rule__Object__Group__9__Impl_in_rule__Object__Group__912871);\r\n rule__Object__Group__9__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "b28ac194c7a45bc5b963677641fc18f6", "score": "0.7054574", "text": "public final void rule__Object__Group_5__2() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:6180:1: ( rule__Object__Group_5__2__Impl )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:6181:2: rule__Object__Group_5__2__Impl\r\n {\r\n pushFollow(FOLLOW_rule__Object__Group_5__2__Impl_in_rule__Object__Group_5__213195);\r\n rule__Object__Group_5__2__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "a4be09d2133b40040727d4db327a2e99", "score": "0.70501554", "text": "public final void rule__ObjectPermission__Group__2() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:13123:1: ( rule__ObjectPermission__Group__2__Impl rule__ObjectPermission__Group__3 )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:13124:2: rule__ObjectPermission__Group__2__Impl rule__ObjectPermission__Group__3\r\n {\r\n pushFollow(FOLLOW_rule__ObjectPermission__Group__2__Impl_in_rule__ObjectPermission__Group__226894);\r\n rule__ObjectPermission__Group__2__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n pushFollow(FOLLOW_rule__ObjectPermission__Group__3_in_rule__ObjectPermission__Group__226897);\r\n rule__ObjectPermission__Group__3();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "345b2b63f4b448d82486f35fc742b7fb", "score": "0.7011211", "text": "public final void rule__ObjectPermission__Group__0__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:13075:1: ( ( 'permission' ) )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:13076:1: ( 'permission' )\r\n {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:13076:1: ( 'permission' )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:13077:1: 'permission'\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getObjectPermissionAccess().getPermissionKeyword_0()); \r\n }\r\n match(input,110,FOLLOW_110_in_rule__ObjectPermission__Group__0__Impl26803); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getObjectPermissionAccess().getPermissionKeyword_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "e3a09c6fe14a825661acd718bd5b853b", "score": "0.69992363", "text": "public final void ruleObjectObligation() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:1222:2: ( ( ( rule__ObjectObligation__Group__0 ) ) )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:1223:1: ( ( rule__ObjectObligation__Group__0 ) )\r\n {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:1223:1: ( ( rule__ObjectObligation__Group__0 ) )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:1224:1: ( rule__ObjectObligation__Group__0 )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getObjectObligationAccess().getGroup()); \r\n }\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:1225:1: ( rule__ObjectObligation__Group__0 )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:1225:2: rule__ObjectObligation__Group__0\r\n {\r\n pushFollow(FOLLOW_rule__ObjectObligation__Group__0_in_ruleObjectObligation2561);\r\n rule__ObjectObligation__Group__0();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getObjectObligationAccess().getGroup()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "909bdf89f44624588a4eda3faa17dfaf", "score": "0.69894695", "text": "public final void rule__Object__Group_5__2__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:6191:1: ( ( '}' ) )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:6192:1: ( '}' )\r\n {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:6192:1: ( '}' )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:6193:1: '}'\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getObjectAccess().getRightCurlyBracketKeyword_5_2()); \r\n }\r\n match(input,68,FOLLOW_68_in_rule__Object__Group_5__2__Impl13223); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getObjectAccess().getRightCurlyBracketKeyword_5_2()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "269383dae01fb5f6d72c179407a4c0a8", "score": "0.69888073", "text": "public final void rule__ObjectObligation__Group__2() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:12613:1: ( rule__ObjectObligation__Group__2__Impl rule__ObjectObligation__Group__3 )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:12614:2: rule__ObjectObligation__Group__2__Impl rule__ObjectObligation__Group__3\r\n {\r\n pushFollow(FOLLOW_rule__ObjectObligation__Group__2__Impl_in_rule__ObjectObligation__Group__225890);\r\n rule__ObjectObligation__Group__2__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n pushFollow(FOLLOW_rule__ObjectObligation__Group__3_in_rule__ObjectObligation__Group__225893);\r\n rule__ObjectObligation__Group__3();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "1b568fd025c715e47b2e552fe790a9df", "score": "0.69605374", "text": "public final void rule__ObjectPermission__Group__1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:13094:1: ( rule__ObjectPermission__Group__1__Impl rule__ObjectPermission__Group__2 )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:13095:2: rule__ObjectPermission__Group__1__Impl rule__ObjectPermission__Group__2\r\n {\r\n pushFollow(FOLLOW_rule__ObjectPermission__Group__1__Impl_in_rule__ObjectPermission__Group__126834);\r\n rule__ObjectPermission__Group__1__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n pushFollow(FOLLOW_rule__ObjectPermission__Group__2_in_rule__ObjectPermission__Group__126837);\r\n rule__ObjectPermission__Group__2();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "3be76c49cb9c4e35113b8477f7bb206d", "score": "0.6942694", "text": "public final void rule__End__Group__0__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:10557:1: ( ( 'end' ) )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:10558:1: ( 'end' )\r\n {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:10558:1: ( 'end' )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:10559:1: 'end'\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getEndAccess().getEndKeyword_0()); \r\n }\r\n match(input,76,FOLLOW_76_in_rule__End__Group__0__Impl21841); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getEndAccess().getEndKeyword_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "ba34ff76323dfbdb487d46d7f74d1cf3", "score": "0.69326377", "text": "public final void rule__Object__Group_2__0__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:6069:1: ( ( 'extends' ) )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:6070:1: ( 'extends' )\r\n {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:6070:1: ( 'extends' )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:6071:1: 'extends'\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getObjectAccess().getExtendsKeyword_2_0()); \r\n }\r\n match(input,66,FOLLOW_66_in_rule__Object__Group_2__0__Impl12981); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getObjectAccess().getExtendsKeyword_2_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "e884c2023a6fa7be8bc78bb6a7cbd60f", "score": "0.69147116", "text": "public final void rule__Role__Group__2__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:8835:1: ( ( ( rule__Role__Group_2__0 )? ) )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:8836:1: ( ( rule__Role__Group_2__0 )? )\r\n {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:8836:1: ( ( rule__Role__Group_2__0 )? )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:8837:1: ( rule__Role__Group_2__0 )?\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getRoleAccess().getGroup_2()); \r\n }\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:8838:1: ( rule__Role__Group_2__0 )?\r\n int alt76=2;\r\n int LA76_0 = input.LA(1);\r\n\r\n if ( (LA76_0==87) ) {\r\n alt76=1;\r\n }\r\n switch (alt76) {\r\n case 1 :\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:8838:2: rule__Role__Group_2__0\r\n {\r\n pushFollow(FOLLOW_rule__Role__Group_2__0_in_rule__Role__Group__2__Impl18454);\r\n rule__Role__Group_2__0();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getRoleAccess().getGroup_2()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "e7279697c36de6039463f40ae9f67e1f", "score": "0.6912371", "text": "public final void rule__Object__Group_5__0() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:6120:1: ( rule__Object__Group_5__0__Impl rule__Object__Group_5__1 )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:6121:2: rule__Object__Group_5__0__Impl rule__Object__Group_5__1\r\n {\r\n pushFollow(FOLLOW_rule__Object__Group_5__0__Impl_in_rule__Object__Group_5__013073);\r\n rule__Object__Group_5__0__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n pushFollow(FOLLOW_rule__Object__Group_5__1_in_rule__Object__Group_5__013076);\r\n rule__Object__Group_5__1();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "12255389462cf90e53d240bf9fd9e71b", "score": "0.69008446", "text": "public final void rule__Interface__Group__2__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:7242:1: ( ( ( rule__Interface__Group_2__0 )? ) )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:7243:1: ( ( rule__Interface__Group_2__0 )? )\r\n {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:7243:1: ( ( rule__Interface__Group_2__0 )? )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:7244:1: ( rule__Interface__Group_2__0 )?\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getInterfaceAccess().getGroup_2()); \r\n }\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:7245:1: ( rule__Interface__Group_2__0 )?\r\n int alt63=2;\r\n int LA63_0 = input.LA(1);\r\n\r\n if ( (LA63_0==67) ) {\r\n alt63=1;\r\n }\r\n switch (alt63) {\r\n case 1 :\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:7245:2: rule__Interface__Group_2__0\r\n {\r\n pushFollow(FOLLOW_rule__Interface__Group_2__0_in_rule__Interface__Group__2__Impl15302);\r\n rule__Interface__Group_2__0();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getInterfaceAccess().getGroup_2()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "d14d1c3651f3fe3e057fce4bfa31c350", "score": "0.6897202", "text": "public final void rule__ObjectPermission__Group__4__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:13195:1: ( ( 'EV_Object' ) )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:13196:1: ( 'EV_Object' )\r\n {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:13196:1: ( 'EV_Object' )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:13197:1: 'EV_Object'\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getObjectPermissionAccess().getEV_ObjectKeyword_4()); \r\n }\r\n match(input,17,FOLLOW_17_in_rule__ObjectPermission__Group__4__Impl27048); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getObjectPermissionAccess().getEV_ObjectKeyword_4()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "c57e0f6d907f241a5ba43423cb6772ea", "score": "0.68964154", "text": "public final void rule__Object__Group__5__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:5903:1: ( ( ( rule__Object__Group_5__0 )? ) )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:5904:1: ( ( rule__Object__Group_5__0 )? )\r\n {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:5904:1: ( ( rule__Object__Group_5__0 )? )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:5905:1: ( rule__Object__Group_5__0 )?\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getObjectAccess().getGroup_5()); \r\n }\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:5906:1: ( rule__Object__Group_5__0 )?\r\n int alt51=2;\r\n int LA51_0 = input.LA(1);\r\n\r\n if ( (LA51_0==67) ) {\r\n alt51=1;\r\n }\r\n switch (alt51) {\r\n case 1 :\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:5906:2: rule__Object__Group_5__0\r\n {\r\n pushFollow(FOLLOW_rule__Object__Group_5__0_in_rule__Object__Group__5__Impl12657);\r\n rule__Object__Group_5__0();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getObjectAccess().getGroup_5()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "4c4387b2bcd2ce847765578210c9f5e6", "score": "0.6894492", "text": "public final void rule__ObjectObligation__Group__1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:12584:1: ( rule__ObjectObligation__Group__1__Impl rule__ObjectObligation__Group__2 )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:12585:2: rule__ObjectObligation__Group__1__Impl rule__ObjectObligation__Group__2\r\n {\r\n pushFollow(FOLLOW_rule__ObjectObligation__Group__1__Impl_in_rule__ObjectObligation__Group__125830);\r\n rule__ObjectObligation__Group__1__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n pushFollow(FOLLOW_rule__ObjectObligation__Group__2_in_rule__ObjectObligation__Group__125833);\r\n rule__ObjectObligation__Group__2();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "e2c7052e172e2ee278d93c73669c9b6d", "score": "0.6887704", "text": "public final void rule__Object__Group__6() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:5920:1: ( rule__Object__Group__6__Impl rule__Object__Group__7 )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:5921:2: rule__Object__Group__6__Impl rule__Object__Group__7\r\n {\r\n pushFollow(FOLLOW_rule__Object__Group__6__Impl_in_rule__Object__Group__612688);\r\n rule__Object__Group__6__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n pushFollow(FOLLOW_rule__Object__Group__7_in_rule__Object__Group__612691);\r\n rule__Object__Group__7();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "c7782613e920edbf70e14284742c5b2f", "score": "0.68646497", "text": "public final void ruleObjectInstance() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:1502:2: ( ( ( rule__ObjectInstance__Group__0 ) ) )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:1503:1: ( ( rule__ObjectInstance__Group__0 ) )\r\n {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:1503:1: ( ( rule__ObjectInstance__Group__0 ) )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:1504:1: ( rule__ObjectInstance__Group__0 )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getObjectInstanceAccess().getGroup()); \r\n }\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:1505:1: ( rule__ObjectInstance__Group__0 )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:1505:2: rule__ObjectInstance__Group__0\r\n {\r\n pushFollow(FOLLOW_rule__ObjectInstance__Group__0_in_ruleObjectInstance3161);\r\n rule__ObjectInstance__Group__0();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getObjectInstanceAccess().getGroup()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "3037d833602c3e6e986827cb311bcb15", "score": "0.6862414", "text": "public final void rule__Object__Group__8() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:5978:1: ( rule__Object__Group__8__Impl rule__Object__Group__9 )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:5979:2: rule__Object__Group__8__Impl rule__Object__Group__9\r\n {\r\n pushFollow(FOLLOW_rule__Object__Group__8__Impl_in_rule__Object__Group__812810);\r\n rule__Object__Group__8__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n pushFollow(FOLLOW_rule__Object__Group__9_in_rule__Object__Group__812813);\r\n rule__Object__Group__9();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "9c872f87a2d8acc80194e68f2f498590", "score": "0.68615377", "text": "public final void rule__Process__Group_2_1__0__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:9314:1: ( ( 'Objective' ) )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:9315:1: ( 'Objective' )\r\n {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:9315:1: ( 'Objective' )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:9316:1: 'Objective'\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getProcessAccess().getObjectiveKeyword_2_1_0()); \r\n }\r\n match(input,90,FOLLOW_90_in_rule__Process__Group_2_1__0__Impl19395); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getProcessAccess().getObjectiveKeyword_2_1_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "da7f95688231e215cdda6b7ebace3695", "score": "0.68518716", "text": "public final void rule__Process__Group_2__1__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:9218:1: ( ( ( rule__Process__Group_2_1__0 )? ) )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:9219:1: ( ( rule__Process__Group_2_1__0 )? )\r\n {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:9219:1: ( ( rule__Process__Group_2_1__0 )? )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:9220:1: ( rule__Process__Group_2_1__0 )?\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getProcessAccess().getGroup_2_1()); \r\n }\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:9221:1: ( rule__Process__Group_2_1__0 )?\r\n int alt78=2;\r\n int LA78_0 = input.LA(1);\r\n\r\n if ( (LA78_0==90) ) {\r\n alt78=1;\r\n }\r\n switch (alt78) {\r\n case 1 :\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:9221:2: rule__Process__Group_2_1__0\r\n {\r\n pushFollow(FOLLOW_rule__Process__Group_2_1__0_in_rule__Process__Group_2__1__Impl19205);\r\n rule__Process__Group_2_1__0();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getProcessAccess().getGroup_2_1()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "7ae13e5a9f9ce26a89838ce1f412fa21", "score": "0.68479997", "text": "public final void rule__Process__Group__2__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:9152:1: ( ( ( rule__Process__Group_2__0 )? ) )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:9153:1: ( ( rule__Process__Group_2__0 )? )\r\n {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:9153:1: ( ( rule__Process__Group_2__0 )? )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:9154:1: ( rule__Process__Group_2__0 )?\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getProcessAccess().getGroup_2()); \r\n }\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:9155:1: ( rule__Process__Group_2__0 )?\r\n int alt77=2;\r\n int LA77_0 = input.LA(1);\r\n\r\n if ( (LA77_0==67) ) {\r\n alt77=1;\r\n }\r\n switch (alt77) {\r\n case 1 :\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:9155:2: rule__Process__Group_2__0\r\n {\r\n pushFollow(FOLLOW_rule__Process__Group_2__0_in_rule__Process__Group__2__Impl19076);\r\n rule__Process__Group_2__0();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getProcessAccess().getGroup_2()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "bdf51035e5085b096e54dcd1891a1423", "score": "0.68465084", "text": "public final void rule__MainObject__Group__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalJSchema.g:909:1: ( ( ( rule__MainObject__Group_2__0 )? ) )\n // InternalJSchema.g:910:1: ( ( rule__MainObject__Group_2__0 )? )\n {\n // InternalJSchema.g:910:1: ( ( rule__MainObject__Group_2__0 )? )\n // InternalJSchema.g:911:2: ( rule__MainObject__Group_2__0 )?\n {\n before(grammarAccess.getMainObjectAccess().getGroup_2()); \n // InternalJSchema.g:912:2: ( rule__MainObject__Group_2__0 )?\n int alt12=2;\n int LA12_0 = input.LA(1);\n\n if ( (LA12_0==35) ) {\n alt12=1;\n }\n switch (alt12) {\n case 1 :\n // InternalJSchema.g:912:3: rule__MainObject__Group_2__0\n {\n pushFollow(FOLLOW_2);\n rule__MainObject__Group_2__0();\n\n state._fsp--;\n\n\n }\n break;\n\n }\n\n after(grammarAccess.getMainObjectAccess().getGroup_2()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "2a0dbb29b2f614fac3a11da9c6b94e4a", "score": "0.68430525", "text": "public final void rule__Object__Group__3() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:5831:1: ( rule__Object__Group__3__Impl rule__Object__Group__4 )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:5832:2: rule__Object__Group__3__Impl rule__Object__Group__4\r\n {\r\n pushFollow(FOLLOW_rule__Object__Group__3__Impl_in_rule__Object__Group__312504);\r\n rule__Object__Group__3__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n pushFollow(FOLLOW_rule__Object__Group__4_in_rule__Object__Group__312507);\r\n rule__Object__Group__4();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "cf095f531dcdf236c49f2c1553b17b4e", "score": "0.6841169", "text": "public final void rule__Object__Group__9__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:6018:1: ( ( '}' ) )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:6019:1: ( '}' )\r\n {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:6019:1: ( '}' )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:6020:1: '}'\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getObjectAccess().getRightCurlyBracketKeyword_9()); \r\n }\r\n match(input,68,FOLLOW_68_in_rule__Object__Group__9__Impl12899); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getObjectAccess().getRightCurlyBracketKeyword_9()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "c07a3784def1b477a9329a63ace27fef", "score": "0.68359596", "text": "public final void rule__ObjectInstance__Group__0() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:14913:1: ( rule__ObjectInstance__Group__0__Impl rule__ObjectInstance__Group__1 )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:14914:2: rule__ObjectInstance__Group__0__Impl rule__ObjectInstance__Group__1\r\n {\r\n pushFollow(FOLLOW_rule__ObjectInstance__Group__0__Impl_in_rule__ObjectInstance__Group__030414);\r\n rule__ObjectInstance__Group__0__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n pushFollow(FOLLOW_rule__ObjectInstance__Group__1_in_rule__ObjectInstance__Group__030417);\r\n rule__ObjectInstance__Group__1();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "92c718c05ad024b215544c775664ccaa", "score": "0.6807335", "text": "public final void ruleObjective() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:746:2: ( ( ( rule__Objective__Group__0 ) ) )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:747:1: ( ( rule__Objective__Group__0 ) )\r\n {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:747:1: ( ( rule__Objective__Group__0 ) )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:748:1: ( rule__Objective__Group__0 )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getObjectiveAccess().getGroup()); \r\n }\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:749:1: ( rule__Objective__Group__0 )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:749:2: rule__Objective__Group__0\r\n {\r\n pushFollow(FOLLOW_rule__Objective__Group__0_in_ruleObjective1541);\r\n rule__Objective__Group__0();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getObjectiveAccess().getGroup()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "1e605f8e7b3b93ecc6979c2bdb601841", "score": "0.6801622", "text": "public final void rule__Object__Group_8__1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:6350:1: ( rule__Object__Group_8__1__Impl )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:6351:2: rule__Object__Group_8__1__Impl\r\n {\r\n pushFollow(FOLLOW_rule__Object__Group_8__1__Impl_in_rule__Object__Group_8__113526);\r\n rule__Object__Group_8__1__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "33d09695635993ce3cf67e62ae1dfafc", "score": "0.6780024", "text": "public final void rule__Objective__Group__2() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:8596:1: ( rule__Objective__Group__2__Impl rule__Objective__Group__3 )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:8597:2: rule__Objective__Group__2__Impl rule__Objective__Group__3\r\n {\r\n pushFollow(FOLLOW_rule__Objective__Group__2__Impl_in_rule__Objective__Group__217975);\r\n rule__Objective__Group__2__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n pushFollow(FOLLOW_rule__Objective__Group__3_in_rule__Objective__Group__217978);\r\n rule__Objective__Group__3();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "b77cc36982944ea828b8f296602abdb2", "score": "0.67753756", "text": "public final void rule__XOrExpression__Group__1__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:17553:1: ( ( ( rule__XOrExpression__Group_1__0 )* ) )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:17554:1: ( ( rule__XOrExpression__Group_1__0 )* )\r\n {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:17554:1: ( ( rule__XOrExpression__Group_1__0 )* )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:17555:1: ( rule__XOrExpression__Group_1__0 )*\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXOrExpressionAccess().getGroup_1()); \r\n }\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:17556:1: ( rule__XOrExpression__Group_1__0 )*\r\n loop135:\r\n do {\r\n int alt135=2;\r\n int LA135_0 = input.LA(1);\r\n\r\n if ( (LA135_0==15) ) {\r\n int LA135_2 = input.LA(2);\r\n\r\n if ( (synpred187_InternalRmOdp()) ) {\r\n alt135=1;\r\n }\r\n\r\n\r\n }\r\n\r\n\r\n switch (alt135) {\r\n \tcase 1 :\r\n \t // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:17556:2: rule__XOrExpression__Group_1__0\r\n \t {\r\n \t pushFollow(FOLLOW_rule__XOrExpression__Group_1__0_in_rule__XOrExpression__Group__1__Impl35618);\r\n \t rule__XOrExpression__Group_1__0();\r\n\r\n \t state._fsp--;\r\n \t if (state.failed) return ;\r\n\r\n \t }\r\n \t break;\r\n\r\n \tdefault :\r\n \t break loop135;\r\n }\r\n } while (true);\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXOrExpressionAccess().getGroup_1()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "c437cd1611ebea609c110a110bcc9ba3", "score": "0.6766043", "text": "public final void rule__Module__Group_0__2__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.waml.w3c.webidl.ui/src-gen/org/waml/w3c/webidl/ui/contentassist/antlr/internal/InternalWebIDL.g:4913:1: ( ( ( rule__Module__Group_0_2__0 )* ) )\r\n // ../org.waml.w3c.webidl.ui/src-gen/org/waml/w3c/webidl/ui/contentassist/antlr/internal/InternalWebIDL.g:4914:1: ( ( rule__Module__Group_0_2__0 )* )\r\n {\r\n // ../org.waml.w3c.webidl.ui/src-gen/org/waml/w3c/webidl/ui/contentassist/antlr/internal/InternalWebIDL.g:4914:1: ( ( rule__Module__Group_0_2__0 )* )\r\n // ../org.waml.w3c.webidl.ui/src-gen/org/waml/w3c/webidl/ui/contentassist/antlr/internal/InternalWebIDL.g:4915:1: ( rule__Module__Group_0_2__0 )*\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getModuleAccess().getGroup_0_2()); \r\n }\r\n // ../org.waml.w3c.webidl.ui/src-gen/org/waml/w3c/webidl/ui/contentassist/antlr/internal/InternalWebIDL.g:4916:1: ( rule__Module__Group_0_2__0 )*\r\n loop34:\r\n do {\r\n int alt34=2;\r\n int LA34_0 = input.LA(1);\r\n\r\n if ( (LA34_0==33) ) {\r\n alt34=1;\r\n }\r\n\r\n\r\n switch (alt34) {\r\n \tcase 1 :\r\n \t // ../org.waml.w3c.webidl.ui/src-gen/org/waml/w3c/webidl/ui/contentassist/antlr/internal/InternalWebIDL.g:4916:2: rule__Module__Group_0_2__0\r\n \t {\r\n \t pushFollow(FOLLOW_rule__Module__Group_0_2__0_in_rule__Module__Group_0__2__Impl10020);\r\n \t rule__Module__Group_0_2__0();\r\n\r\n \t state._fsp--;\r\n \t if (state.failed) return ;\r\n\r\n \t }\r\n \t break;\r\n\r\n \tdefault :\r\n \t break loop34;\r\n }\r\n } while (true);\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getModuleAccess().getGroup_0_2()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "bcffff0ad9f6fe6a661ede6d99810dd3", "score": "0.6758215", "text": "public final void rule__Object__Group_5__1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:6151:1: ( rule__Object__Group_5__1__Impl rule__Object__Group_5__2 )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:6152:2: rule__Object__Group_5__1__Impl rule__Object__Group_5__2\r\n {\r\n pushFollow(FOLLOW_rule__Object__Group_5__1__Impl_in_rule__Object__Group_5__113135);\r\n rule__Object__Group_5__1__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n pushFollow(FOLLOW_rule__Object__Group_5__2_in_rule__Object__Group_5__113138);\r\n rule__Object__Group_5__2();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "ad203344b576e63da0d6168bc7219e36", "score": "0.6750576", "text": "public final void rule__Object__Group__4() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:5862:1: ( rule__Object__Group__4__Impl rule__Object__Group__5 )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:5863:2: rule__Object__Group__4__Impl rule__Object__Group__5\r\n {\r\n pushFollow(FOLLOW_rule__Object__Group__4__Impl_in_rule__Object__Group__412566);\r\n rule__Object__Group__4__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n pushFollow(FOLLOW_rule__Object__Group__5_in_rule__Object__Group__412569);\r\n rule__Object__Group__5();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "9003f98e2366fdd4c8b0fca3a18c12e6", "score": "0.67501014", "text": "public final void rule__Interface__Group_2__0() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:7265:1: ( rule__Interface__Group_2__0__Impl rule__Interface__Group_2__1 )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:7266:2: rule__Interface__Group_2__0__Impl rule__Interface__Group_2__1\r\n {\r\n pushFollow(FOLLOW_rule__Interface__Group_2__0__Impl_in_rule__Interface__Group_2__015339);\r\n rule__Interface__Group_2__0__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n pushFollow(FOLLOW_rule__Interface__Group_2__1_in_rule__Interface__Group_2__015342);\r\n rule__Interface__Group_2__1();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "6603dff8ee131258546cd046b225eec8", "score": "0.6744624", "text": "public final void rule__OR_Relation__Group__0() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:8921:1: ( rule__OR_Relation__Group__0__Impl rule__OR_Relation__Group__1 )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:8922:2: rule__OR_Relation__Group__0__Impl rule__OR_Relation__Group__1\r\n {\r\n pushFollow(FOLLOW_rule__OR_Relation__Group__0__Impl_in_rule__OR_Relation__Group__018614);\r\n rule__OR_Relation__Group__0__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n pushFollow(FOLLOW_rule__OR_Relation__Group__1_in_rule__OR_Relation__Group__018617);\r\n rule__OR_Relation__Group__1();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "09fa5b245796798189439499920e7c03", "score": "0.674403", "text": "public final void rule__ObjectObligation__Group__2__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:12625:1: ( ( ':' ) )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:12626:1: ( ':' )\r\n {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:12626:1: ( ':' )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:12627:1: ':'\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getObjectObligationAccess().getColonKeyword_2()); \r\n }\r\n match(input,74,FOLLOW_74_in_rule__ObjectObligation__Group__2__Impl25921); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getObjectObligationAccess().getColonKeyword_2()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "fdb20dd49ca1f2b34692d3d1cda1bfa5", "score": "0.6742822", "text": "public final void rule__Action__Group__0() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:9970:1: ( rule__Action__Group__0__Impl rule__Action__Group__1 )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:9971:2: rule__Action__Group__0__Impl rule__Action__Group__1\r\n {\r\n pushFollow(FOLLOW_rule__Action__Group__0__Impl_in_rule__Action__Group__020678);\r\n rule__Action__Group__0__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n pushFollow(FOLLOW_rule__Action__Group__1_in_rule__Action__Group__020681);\r\n rule__Action__Group__1();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "198d8b629913c24cba8179becd457aae", "score": "0.67338806", "text": "public final void rule__Object__Group_8__0__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:6331:1: ( ( 'implementing' ) )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:6332:1: ( 'implementing' )\r\n {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:6332:1: ( 'implementing' )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:6333:1: 'implementing'\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getObjectAccess().getImplementingKeyword_8_0()); \r\n }\r\n match(input,72,FOLLOW_72_in_rule__Object__Group_8__0__Impl13495); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getObjectAccess().getImplementingKeyword_8_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "89a148e48e565e96d647591626a4b20d", "score": "0.67244256", "text": "public final void rule__XRelationalExpression__Group_1_0_0__0__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:18291:1: ( ( ( rule__XRelationalExpression__Group_1_0_0_0__0 ) ) )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:18292:1: ( ( rule__XRelationalExpression__Group_1_0_0_0__0 ) )\r\n {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:18292:1: ( ( rule__XRelationalExpression__Group_1_0_0_0__0 ) )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:18293:1: ( rule__XRelationalExpression__Group_1_0_0_0__0 )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXRelationalExpressionAccess().getGroup_1_0_0_0()); \r\n }\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:18294:1: ( rule__XRelationalExpression__Group_1_0_0_0__0 )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:18294:2: rule__XRelationalExpression__Group_1_0_0_0__0\r\n {\r\n pushFollow(FOLLOW_rule__XRelationalExpression__Group_1_0_0_0__0_in_rule__XRelationalExpression__Group_1_0_0__0__Impl37070);\r\n rule__XRelationalExpression__Group_1_0_0_0__0();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXRelationalExpressionAccess().getGroup_1_0_0_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "2086bb82f74a8739bea5a4551764a68b", "score": "0.672191", "text": "public final void rule__Role__Group__0() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:8764:1: ( rule__Role__Group__0__Impl rule__Role__Group__1 )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:8765:2: rule__Role__Group__0__Impl rule__Role__Group__1\r\n {\r\n pushFollow(FOLLOW_rule__Role__Group__0__Impl_in_rule__Role__Group__018305);\r\n rule__Role__Group__0__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n pushFollow(FOLLOW_rule__Role__Group__1_in_rule__Role__Group__018308);\r\n rule__Role__Group__1();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "6d198d1391d97d5b9708128aefa839cd", "score": "0.6721568", "text": "public final void rule__End__Group__1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:10576:1: ( rule__End__Group__1__Impl rule__End__Group__2 )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:10577:2: rule__End__Group__1__Impl rule__End__Group__2\r\n {\r\n pushFollow(FOLLOW_rule__End__Group__1__Impl_in_rule__End__Group__121872);\r\n rule__End__Group__1__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n pushFollow(FOLLOW_rule__End__Group__2_in_rule__End__Group__121875);\r\n rule__End__Group__2();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "3cf72555209be562ef33a9d615d88ba6", "score": "0.6721157", "text": "public final void rule__XRelationalExpression__Group_1_0__0__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:18231:1: ( ( ( rule__XRelationalExpression__Group_1_0_0__0 ) ) )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:18232:1: ( ( rule__XRelationalExpression__Group_1_0_0__0 ) )\r\n {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:18232:1: ( ( rule__XRelationalExpression__Group_1_0_0__0 ) )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:18233:1: ( rule__XRelationalExpression__Group_1_0_0__0 )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXRelationalExpressionAccess().getGroup_1_0_0()); \r\n }\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:18234:1: ( rule__XRelationalExpression__Group_1_0_0__0 )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:18234:2: rule__XRelationalExpression__Group_1_0_0__0\r\n {\r\n pushFollow(FOLLOW_rule__XRelationalExpression__Group_1_0_0__0_in_rule__XRelationalExpression__Group_1_0__0__Impl36952);\r\n rule__XRelationalExpression__Group_1_0_0__0();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXRelationalExpressionAccess().getGroup_1_0_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "3cabdc7608711a98adad3e3ea765cc31", "score": "0.6710061", "text": "public final void rule__NamespaceObject__Group__0() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.waml.w3c.webidl.ui/src-gen/org/waml/w3c/webidl/ui/contentassist/antlr/internal/InternalWebIDL.g:5127:1: ( rule__NamespaceObject__Group__0__Impl rule__NamespaceObject__Group__1 )\r\n // ../org.waml.w3c.webidl.ui/src-gen/org/waml/w3c/webidl/ui/contentassist/antlr/internal/InternalWebIDL.g:5128:2: rule__NamespaceObject__Group__0__Impl rule__NamespaceObject__Group__1\r\n {\r\n pushFollow(FOLLOW_rule__NamespaceObject__Group__0__Impl_in_rule__NamespaceObject__Group__010428);\r\n rule__NamespaceObject__Group__0__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n pushFollow(FOLLOW_rule__NamespaceObject__Group__1_in_rule__NamespaceObject__Group__010431);\r\n rule__NamespaceObject__Group__1();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "fbe275a12613707a52b3284ceade74f7", "score": "0.67046577", "text": "public final void rule__Objective__Group__1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:8567:1: ( rule__Objective__Group__1__Impl rule__Objective__Group__2 )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:8568:2: rule__Objective__Group__1__Impl rule__Objective__Group__2\r\n {\r\n pushFollow(FOLLOW_rule__Objective__Group__1__Impl_in_rule__Objective__Group__117915);\r\n rule__Objective__Group__1__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n pushFollow(FOLLOW_rule__Objective__Group__2_in_rule__Objective__Group__117918);\r\n rule__Objective__Group__2();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "561b7030a5938c506aca41d04e201a6f", "score": "0.6703828", "text": "public final void rule__Objective__Group_3__0() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:8661:1: ( rule__Objective__Group_3__0__Impl rule__Objective__Group_3__1 )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:8662:2: rule__Objective__Group_3__0__Impl rule__Objective__Group_3__1\r\n {\r\n pushFollow(FOLLOW_rule__Objective__Group_3__0__Impl_in_rule__Objective__Group_3__018101);\r\n rule__Objective__Group_3__0__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n pushFollow(FOLLOW_rule__Objective__Group_3__1_in_rule__Objective__Group_3__018104);\r\n rule__Objective__Group_3__1();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "3934b0a7b126d385a36e5a9243b88a03", "score": "0.6702292", "text": "public final void rule__Start__Group__2() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:10412:1: ( rule__Start__Group__2__Impl rule__Start__Group__3 )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:10413:2: rule__Start__Group__2__Impl rule__Start__Group__3\r\n {\r\n pushFollow(FOLLOW_rule__Start__Group__2__Impl_in_rule__Start__Group__221554);\r\n rule__Start__Group__2__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n pushFollow(FOLLOW_rule__Start__Group__3_in_rule__Start__Group__221557);\r\n rule__Start__Group__3();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "13e3c4d9f9f8023673508d36e40241f0", "score": "0.66972744", "text": "public final void rule__End__Group__2() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:10605:1: ( rule__End__Group__2__Impl rule__End__Group__3 )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:10606:2: rule__End__Group__2__Impl rule__End__Group__3\r\n {\r\n pushFollow(FOLLOW_rule__End__Group__2__Impl_in_rule__End__Group__221932);\r\n rule__End__Group__2__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n pushFollow(FOLLOW_rule__End__Group__3_in_rule__End__Group__221935);\r\n rule__End__Group__3();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "ce001f7e69a09e4c90db7c40df275d95", "score": "0.6696514", "text": "public final void rule__RoleObligation__Group__0() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:12808:1: ( rule__RoleObligation__Group__0__Impl rule__RoleObligation__Group__1 )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:12809:2: rule__RoleObligation__Group__0__Impl rule__RoleObligation__Group__1\r\n {\r\n pushFollow(FOLLOW_rule__RoleObligation__Group__0__Impl_in_rule__RoleObligation__Group__026270);\r\n rule__RoleObligation__Group__0__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n pushFollow(FOLLOW_rule__RoleObligation__Group__1_in_rule__RoleObligation__Group__026273);\r\n rule__RoleObligation__Group__1();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "76f455a607ccf3ca8856f31f4b145d5c", "score": "0.66956085", "text": "public final void rule__Objective__Group__3__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:8636:1: ( ( ( rule__Objective__Group_3__0 )? ) )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:8637:1: ( ( rule__Objective__Group_3__0 )? )\r\n {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:8637:1: ( ( rule__Objective__Group_3__0 )? )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:8638:1: ( rule__Objective__Group_3__0 )?\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getObjectiveAccess().getGroup_3()); \r\n }\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:8639:1: ( rule__Objective__Group_3__0 )?\r\n int alt74=2;\r\n int LA74_0 = input.LA(1);\r\n\r\n if ( (LA74_0==67) ) {\r\n alt74=1;\r\n }\r\n switch (alt74) {\r\n case 1 :\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:8639:2: rule__Objective__Group_3__0\r\n {\r\n pushFollow(FOLLOW_rule__Objective__Group_3__0_in_rule__Objective__Group__3__Impl18062);\r\n rule__Objective__Group_3__0();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getObjectiveAccess().getGroup_3()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "d46ba15f751f3e3c90d6b078d3653f48", "score": "0.6694396", "text": "public final void ruleInterface() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:522:2: ( ( ( rule__Interface__Group__0 ) ) )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:523:1: ( ( rule__Interface__Group__0 ) )\r\n {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:523:1: ( ( rule__Interface__Group__0 ) )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:524:1: ( rule__Interface__Group__0 )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getInterfaceAccess().getGroup()); \r\n }\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:525:1: ( rule__Interface__Group__0 )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:525:2: rule__Interface__Group__0\r\n {\r\n pushFollow(FOLLOW_rule__Interface__Group__0_in_ruleInterface1061);\r\n rule__Interface__Group__0();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getInterfaceAccess().getGroup()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "af2bd67e4c49be0eafcc6056d8d0438e", "score": "0.669256", "text": "public final void rule__Object__Group_7__2__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:6294:1: ( ( '>' ) )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:6295:1: ( '>' )\r\n {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:6295:1: ( '>' )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:6296:1: '>'\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getObjectAccess().getGreaterThanSignKeyword_7_2()); \r\n }\r\n match(input,50,FOLLOW_50_in_rule__Object__Group_7__2__Impl13427); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getObjectAccess().getGreaterThanSignKeyword_7_2()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "03011e5c811237b098d2c18e810a0f26", "score": "0.66852456", "text": "public final void rule__Interface__Group__0() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:7173:1: ( rule__Interface__Group__0__Impl rule__Interface__Group__1 )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:7174:2: rule__Interface__Group__0__Impl rule__Interface__Group__1\r\n {\r\n pushFollow(FOLLOW_rule__Interface__Group__0__Impl_in_rule__Interface__Group__015155);\r\n rule__Interface__Group__0__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n pushFollow(FOLLOW_rule__Interface__Group__1_in_rule__Interface__Group__015158);\r\n rule__Interface__Group__1();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "6ff560b0d813b067eab52722cd78cf4e", "score": "0.6684555", "text": "public final void rule__XOrExpression__Group_1_0__0__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:17646:1: ( ( ( rule__XOrExpression__Group_1_0_0__0 ) ) )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:17647:1: ( ( rule__XOrExpression__Group_1_0_0__0 ) )\r\n {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:17647:1: ( ( rule__XOrExpression__Group_1_0_0__0 ) )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:17648:1: ( rule__XOrExpression__Group_1_0_0__0 )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXOrExpressionAccess().getGroup_1_0_0()); \r\n }\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:17649:1: ( rule__XOrExpression__Group_1_0_0__0 )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:17649:2: rule__XOrExpression__Group_1_0_0__0\r\n {\r\n pushFollow(FOLLOW_rule__XOrExpression__Group_1_0_0__0_in_rule__XOrExpression__Group_1_0__0__Impl35801);\r\n rule__XOrExpression__Group_1_0_0__0();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXOrExpressionAccess().getGroup_1_0_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "e587927c8ea35703f22a2a2d20d8148f", "score": "0.6678705", "text": "public final void rule__Object__Group_7__0__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:6228:1: ( ( '<' ) )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:6229:1: ( '<' )\r\n {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:6229:1: ( '<' )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:6230:1: '<'\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getObjectAccess().getLessThanSignKeyword_7_0()); \r\n }\r\n match(input,51,FOLLOW_51_in_rule__Object__Group_7__0__Impl13291); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getObjectAccess().getLessThanSignKeyword_7_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "beda119c1247b9670204111b27409b7e", "score": "0.66783404", "text": "public final void rule__XOrExpression__Group_1_0__0() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:17635:1: ( rule__XOrExpression__Group_1_0__0__Impl )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:17636:2: rule__XOrExpression__Group_1_0__0__Impl\r\n {\r\n pushFollow(FOLLOW_rule__XOrExpression__Group_1_0__0__Impl_in_rule__XOrExpression__Group_1_0__035774);\r\n rule__XOrExpression__Group_1_0__0__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "4a133b9b4a6b3cdd7a945dc2c603cd4d", "score": "0.6668797", "text": "public final void rule__MainObject__Group_2__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \t\n try {\n // InternalJSchema.g:1005:1: ( rule__MainObject__Group_2__0__Impl rule__MainObject__Group_2__1 )\n // InternalJSchema.g:1006:2: rule__MainObject__Group_2__0__Impl rule__MainObject__Group_2__1\n {\n pushFollow(FOLLOW_8);\n rule__MainObject__Group_2__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_2);\n rule__MainObject__Group_2__1();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "title": "" }, { "docid": "96c91848e3d9164652933ae06b755a59", "score": "0.666531", "text": "public final void rule__ObjectObligation__Group__6() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:12733:1: ( rule__ObjectObligation__Group__6__Impl rule__ObjectObligation__Group__7 )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:12734:2: rule__ObjectObligation__Group__6__Impl rule__ObjectObligation__Group__7\r\n {\r\n pushFollow(FOLLOW_rule__ObjectObligation__Group__6__Impl_in_rule__ObjectObligation__Group__626135);\r\n rule__ObjectObligation__Group__6__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n pushFollow(FOLLOW_rule__ObjectObligation__Group__7_in_rule__ObjectObligation__Group__626138);\r\n rule__ObjectObligation__Group__7();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "2423a721166d089d3cbc4a7828b388f7", "score": "0.6662339", "text": "public final void rule__Object__Group__5() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:5891:1: ( rule__Object__Group__5__Impl rule__Object__Group__6 )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:5892:2: rule__Object__Group__5__Impl rule__Object__Group__6\r\n {\r\n pushFollow(FOLLOW_rule__Object__Group__5__Impl_in_rule__Object__Group__512627);\r\n rule__Object__Group__5__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n pushFollow(FOLLOW_rule__Object__Group__6_in_rule__Object__Group__512630);\r\n rule__Object__Group__6();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "8af4e268d219e510c407e51991fcc4fa", "score": "0.6653488", "text": "public final void rule__Objective__Group__0__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:8548:1: ( ( 'EV_Objective' ) )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:8549:1: ( 'EV_Objective' )\r\n {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:8549:1: ( 'EV_Objective' )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:8550:1: 'EV_Objective'\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getObjectiveAccess().getEV_ObjectiveKeyword_0()); \r\n }\r\n match(input,85,FOLLOW_85_in_rule__Objective__Group__0__Impl17884); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getObjectiveAccess().getEV_ObjectiveKeyword_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "b6eba34559889c1037de02ff2dbbd694", "score": "0.66516846", "text": "public final void rule__Process__Group_2__0() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:9175:1: ( rule__Process__Group_2__0__Impl rule__Process__Group_2__1 )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:9176:2: rule__Process__Group_2__0__Impl rule__Process__Group_2__1\r\n {\r\n pushFollow(FOLLOW_rule__Process__Group_2__0__Impl_in_rule__Process__Group_2__019113);\r\n rule__Process__Group_2__0__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n pushFollow(FOLLOW_rule__Process__Group_2__1_in_rule__Process__Group_2__019116);\r\n rule__Process__Group_2__1();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "a289537afe58124eebb450375dd860eb", "score": "0.6651265", "text": "public final void rule__Role__Group_2__0() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:8858:1: ( rule__Role__Group_2__0__Impl rule__Role__Group_2__1 )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:8859:2: rule__Role__Group_2__0__Impl rule__Role__Group_2__1\r\n {\r\n pushFollow(FOLLOW_rule__Role__Group_2__0__Impl_in_rule__Role__Group_2__018491);\r\n rule__Role__Group_2__0__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n pushFollow(FOLLOW_rule__Role__Group_2__1_in_rule__Role__Group_2__018494);\r\n rule__Role__Group_2__1();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "9257c5c3084667dbfe5dff3919f1158e", "score": "0.6646186", "text": "public final void rule__ObjectObligation__Group__7() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:12764:1: ( rule__ObjectObligation__Group__7__Impl )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:12765:2: rule__ObjectObligation__Group__7__Impl\r\n {\r\n pushFollow(FOLLOW_rule__ObjectObligation__Group__7__Impl_in_rule__ObjectObligation__Group__726197);\r\n rule__ObjectObligation__Group__7__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "12d0117e154c5c116b0451f52bf3aa23", "score": "0.6644714", "text": "public final void ruleStart() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:1054:2: ( ( ( rule__Start__Group__0 ) ) )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:1055:1: ( ( rule__Start__Group__0 ) )\r\n {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:1055:1: ( ( rule__Start__Group__0 ) )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:1056:1: ( rule__Start__Group__0 )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getStartAccess().getGroup()); \r\n }\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:1057:1: ( rule__Start__Group__0 )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:1057:2: rule__Start__Group__0\r\n {\r\n pushFollow(FOLLOW_rule__Start__Group__0_in_ruleStart2201);\r\n rule__Start__Group__0();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getStartAccess().getGroup()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "77e11857244b99292971bb14df0ad7d2", "score": "0.6635473", "text": "public final void rule__XRelationalExpression__Group_1_1_0__0__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:18447:1: ( ( ( rule__XRelationalExpression__Group_1_1_0_0__0 ) ) )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:18448:1: ( ( rule__XRelationalExpression__Group_1_1_0_0__0 ) )\r\n {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:18448:1: ( ( rule__XRelationalExpression__Group_1_1_0_0__0 ) )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:18449:1: ( rule__XRelationalExpression__Group_1_1_0_0__0 )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXRelationalExpressionAccess().getGroup_1_1_0_0()); \r\n }\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:18450:1: ( rule__XRelationalExpression__Group_1_1_0_0__0 )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:18450:2: rule__XRelationalExpression__Group_1_1_0_0__0\r\n {\r\n pushFollow(FOLLOW_rule__XRelationalExpression__Group_1_1_0_0__0_in_rule__XRelationalExpression__Group_1_1_0__0__Impl37374);\r\n rule__XRelationalExpression__Group_1_1_0_0__0();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXRelationalExpressionAccess().getGroup_1_1_0_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "f83cde260992723f231ccc57f1519248", "score": "0.6629444", "text": "public final void rule__XRelationalExpression__Group_1_0_0__0() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:18280:1: ( rule__XRelationalExpression__Group_1_0_0__0__Impl )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:18281:2: rule__XRelationalExpression__Group_1_0_0__0__Impl\r\n {\r\n pushFollow(FOLLOW_rule__XRelationalExpression__Group_1_0_0__0__Impl_in_rule__XRelationalExpression__Group_1_0_0__037043);\r\n rule__XRelationalExpression__Group_1_0_0__0__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "6101a64b5e5179c98c803ee456df8bff", "score": "0.66153985", "text": "public final void rule__XRelationalExpression__Group_1_0_0_0__0() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:18310:1: ( rule__XRelationalExpression__Group_1_0_0_0__0__Impl rule__XRelationalExpression__Group_1_0_0_0__1 )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:18311:2: rule__XRelationalExpression__Group_1_0_0_0__0__Impl rule__XRelationalExpression__Group_1_0_0_0__1\r\n {\r\n pushFollow(FOLLOW_rule__XRelationalExpression__Group_1_0_0_0__0__Impl_in_rule__XRelationalExpression__Group_1_0_0_0__037102);\r\n rule__XRelationalExpression__Group_1_0_0_0__0__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n pushFollow(FOLLOW_rule__XRelationalExpression__Group_1_0_0_0__1_in_rule__XRelationalExpression__Group_1_0_0_0__037105);\r\n rule__XRelationalExpression__Group_1_0_0_0__1();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "48d005a5d29daad21655096917d6866b", "score": "0.66140175", "text": "public final void rule__ObjectObligation__Group__0__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:12565:1: ( ( 'obligation' ) )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:12566:1: ( 'obligation' )\r\n {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:12566:1: ( 'obligation' )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:12567:1: 'obligation'\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getObjectObligationAccess().getObligationKeyword_0()); \r\n }\r\n match(input,108,FOLLOW_108_in_rule__ObjectObligation__Group__0__Impl25799); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getObjectObligationAccess().getObligationKeyword_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "fa41c749fae5194d74157dec851882ec", "score": "0.66129416", "text": "public final void rule__Start__Group__0() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:10352:1: ( rule__Start__Group__0__Impl rule__Start__Group__1 )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:10353:2: rule__Start__Group__0__Impl rule__Start__Group__1\r\n {\r\n pushFollow(FOLLOW_rule__Start__Group__0__Impl_in_rule__Start__Group__021432);\r\n rule__Start__Group__0__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n pushFollow(FOLLOW_rule__Start__Group__1_in_rule__Start__Group__021435);\r\n rule__Start__Group__1();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "cb040bb939ff5c70369b888fc5543dcb", "score": "0.6607444", "text": "public final void rule__Object__Group__0__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:5756:1: ( ( ( rule__Object__ObjectTypeAssignment_0 ) ) )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:5757:1: ( ( rule__Object__ObjectTypeAssignment_0 ) )\r\n {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:5757:1: ( ( rule__Object__ObjectTypeAssignment_0 ) )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:5758:1: ( rule__Object__ObjectTypeAssignment_0 )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getObjectAccess().getObjectTypeAssignment_0()); \r\n }\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:5759:1: ( rule__Object__ObjectTypeAssignment_0 )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:5759:2: rule__Object__ObjectTypeAssignment_0\r\n {\r\n pushFollow(FOLLOW_rule__Object__ObjectTypeAssignment_0_in_rule__Object__Group__0__Impl12353);\r\n rule__Object__ObjectTypeAssignment_0();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getObjectAccess().getObjectTypeAssignment_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "516ffd412d06b83c9f76c972221a9627", "score": "0.66049516", "text": "public final void rule__ObjectInstance__Group__2() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:14973:1: ( rule__ObjectInstance__Group__2__Impl rule__ObjectInstance__Group__3 )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:14974:2: rule__ObjectInstance__Group__2__Impl rule__ObjectInstance__Group__3\r\n {\r\n pushFollow(FOLLOW_rule__ObjectInstance__Group__2__Impl_in_rule__ObjectInstance__Group__230536);\r\n rule__ObjectInstance__Group__2__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n pushFollow(FOLLOW_rule__ObjectInstance__Group__3_in_rule__ObjectInstance__Group__230539);\r\n rule__ObjectInstance__Group__3();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "d9ae38401a4e3daa5a22e689ff951fdc", "score": "0.65989363", "text": "public final void rule__Lane__Group__0() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:9365:1: ( rule__Lane__Group__0__Impl rule__Lane__Group__1 )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:9366:2: rule__Lane__Group__0__Impl rule__Lane__Group__1\r\n {\r\n pushFollow(FOLLOW_rule__Lane__Group__0__Impl_in_rule__Lane__Group__019487);\r\n rule__Lane__Group__0__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n pushFollow(FOLLOW_rule__Lane__Group__1_in_rule__Lane__Group__019490);\r\n rule__Lane__Group__1();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "13621572da2d18dd07fda389c411fd1b", "score": "0.6590033", "text": "public final void rule__Outgoing__Group__0__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:9855:1: ( ( () ) )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:9856:1: ( () )\r\n {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:9856:1: ( () )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:9857:1: ()\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getOutgoingAccess().getOutgoingAction_0()); \r\n }\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:9858:1: ()\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:9860:1: \r\n {\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getOutgoingAccess().getOutgoingAction_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "5a01cb7976debb0fb81683b5310b1a3e", "score": "0.6588739", "text": "public final void rule__Process__Group_2_1__0() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:9302:1: ( rule__Process__Group_2_1__0__Impl rule__Process__Group_2_1__1 )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:9303:2: rule__Process__Group_2_1__0__Impl rule__Process__Group_2_1__1\r\n {\r\n pushFollow(FOLLOW_rule__Process__Group_2_1__0__Impl_in_rule__Process__Group_2_1__019364);\r\n rule__Process__Group_2_1__0__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n pushFollow(FOLLOW_rule__Process__Group_2_1__1_in_rule__Process__Group_2_1__019367);\r\n rule__Process__Group_2_1__1();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "614d231d039c06442650bcfd942fad9a", "score": "0.6583966", "text": "public final void rule__XOrExpression__Group_1__0__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:17586:1: ( ( ( rule__XOrExpression__Group_1_0__0 ) ) )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:17587:1: ( ( rule__XOrExpression__Group_1_0__0 ) )\r\n {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:17587:1: ( ( rule__XOrExpression__Group_1_0__0 ) )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:17588:1: ( rule__XOrExpression__Group_1_0__0 )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXOrExpressionAccess().getGroup_1_0()); \r\n }\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:17589:1: ( rule__XOrExpression__Group_1_0__0 )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:17589:2: rule__XOrExpression__Group_1_0__0\r\n {\r\n pushFollow(FOLLOW_rule__XOrExpression__Group_1_0__0_in_rule__XOrExpression__Group_1__0__Impl35683);\r\n rule__XOrExpression__Group_1_0__0();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXOrExpressionAccess().getGroup_1_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "4c25061eb630621024c20380e04ab453", "score": "0.6583808", "text": "public final void rule__ObjectObligation__Group__3() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:12644:1: ( rule__ObjectObligation__Group__3__Impl rule__ObjectObligation__Group__4 )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:12645:2: rule__ObjectObligation__Group__3__Impl rule__ObjectObligation__Group__4\r\n {\r\n pushFollow(FOLLOW_rule__ObjectObligation__Group__3__Impl_in_rule__ObjectObligation__Group__325952);\r\n rule__ObjectObligation__Group__3__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n pushFollow(FOLLOW_rule__ObjectObligation__Group__4_in_rule__ObjectObligation__Group__325955);\r\n rule__ObjectObligation__Group__4();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "e98e38edf03f3bf8aa47eb93ff6463ef", "score": "0.6580745", "text": "public final void rule__XRelationalExpression__Group_1_1_0_0__0() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:18466:1: ( rule__XRelationalExpression__Group_1_1_0_0__0__Impl rule__XRelationalExpression__Group_1_1_0_0__1 )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:18467:2: rule__XRelationalExpression__Group_1_1_0_0__0__Impl rule__XRelationalExpression__Group_1_1_0_0__1\r\n {\r\n pushFollow(FOLLOW_rule__XRelationalExpression__Group_1_1_0_0__0__Impl_in_rule__XRelationalExpression__Group_1_1_0_0__037406);\r\n rule__XRelationalExpression__Group_1_1_0_0__0__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n pushFollow(FOLLOW_rule__XRelationalExpression__Group_1_1_0_0__1_in_rule__XRelationalExpression__Group_1_1_0_0__037409);\r\n rule__XRelationalExpression__Group_1_1_0_0__1();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "82c0ea0027fbd34cd7254b350de11c73", "score": "0.65755785", "text": "public final void rule__Object__Group__7() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:5949:1: ( rule__Object__Group__7__Impl rule__Object__Group__8 )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:5950:2: rule__Object__Group__7__Impl rule__Object__Group__8\r\n {\r\n pushFollow(FOLLOW_rule__Object__Group__7__Impl_in_rule__Object__Group__712749);\r\n rule__Object__Group__7__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n pushFollow(FOLLOW_rule__Object__Group__8_in_rule__Object__Group__712752);\r\n rule__Object__Group__8();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "17a8b1c8c1a8ff0b4f0a24421d580815", "score": "0.6574743", "text": "public final void rule__XOrExpression__Group_1_0_0__1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:17696:1: ( rule__XOrExpression__Group_1_0_0__1__Impl )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:17697:2: rule__XOrExpression__Group_1_0_0__1__Impl\r\n {\r\n pushFollow(FOLLOW_rule__XOrExpression__Group_1_0_0__1__Impl_in_rule__XOrExpression__Group_1_0_0__135894);\r\n rule__XOrExpression__Group_1_0_0__1__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "3a934b3a9297e6dd3ecf1912e8796630", "score": "0.6572326", "text": "public final void rule__ObjectObligation__Group__4__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:12685:1: ( ( 'EV_Object' ) )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:12686:1: ( 'EV_Object' )\r\n {\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:12686:1: ( 'EV_Object' )\r\n // ../org.xtext.example.rmodp.ui/src-gen/org/xtext/example/rmodp/ui/contentassist/antlr/internal/InternalRmOdp.g:12687:1: 'EV_Object'\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getObjectObligationAccess().getEV_ObjectKeyword_4()); \r\n }\r\n match(input,17,FOLLOW_17_in_rule__ObjectObligation__Group__4__Impl26044); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getObjectObligationAccess().getEV_ObjectKeyword_4()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "4a078e7b2857e4692062a48b5050ec6a", "score": "0.65706056", "text": "public final void rule__Term__Group__0() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../org.openmodelica.modelicaml.editor.xtext.modeleditor.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/model/ui/contentassist/antlr/internal/InternalModeleditor.g:2827:1: ( rule__Term__Group__0__Impl rule__Term__Group__1 )\r\n // ../org.openmodelica.modelicaml.editor.xtext.modeleditor.ui/src-gen/org/openmodelica/modelicaml/editor/xtext/model/ui/contentassist/antlr/internal/InternalModeleditor.g:2828:2: rule__Term__Group__0__Impl rule__Term__Group__1\r\n {\r\n pushFollow(FOLLOW_rule__Term__Group__0__Impl_in_rule__Term__Group__05870);\r\n rule__Term__Group__0__Impl();\r\n\r\n state._fsp--;\r\n\r\n pushFollow(FOLLOW_rule__Term__Group__1_in_rule__Term__Group__05873);\r\n rule__Term__Group__1();\r\n\r\n state._fsp--;\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "title": "" } ]
b32ad6cd07dcf0f836c7cda804bebb64
/ Method to update salary for an employee
[ { "docid": "870bfd470171690e0f74f18b7e205f8d", "score": "0.7709948", "text": "public static void updateEmployee(Integer EmployeeID, int salary ){ \r\n\t\tSession session = factory.openSession(); \r\n\t\tTransaction tx = null; \r\n\t\ttry{ \r\n\t\t\ttx = session.beginTransaction(); \r\n\t\t\tEmployee2 employee = (Employee2)session.get(Employee2.class, EmployeeID); \r\n\t\t\temployee.setSalary( salary ); \r\n\t\t\tsession.update(employee); \r\n\t\t\ttx.commit(); \r\n\t\t}catch (HibernateException e) {\r\n\t\t\tif (tx!=null) \r\n\t\t\t\ttx.rollback(); \r\n\t\t\te.printStackTrace(); \r\n\t\t}finally { \r\n\t\t\tsession.close(); \r\n\t\t} \r\n\t}", "title": "" } ]
[ { "docid": "272290b26b0179062cbb56881d8275b0", "score": "0.7974979", "text": "@Override\n\tpublic void updateEmployee(int emp_no, int salary, int newSalary,\n\t\t\tDate fromDate, Date toDate) {\n\t\t\n\t}", "title": "" }, { "docid": "1468d50d7fb0739a709abaa4bb4c2815", "score": "0.771995", "text": "public void updateEmployee(Integer EmployeeID, int salary) {\n Session session = factory.openSession();\n Transaction tx = null;\n\n try {\n tx = session.beginTransaction();\n Employee employee = (Employee) session.get(Employee.class, EmployeeID);\n employee.setSalary(salary);\n session.update(employee);\n tx.commit();\n } catch (HibernateException e) {\n if (tx != null) tx.rollback();\n e.printStackTrace();\n } finally {\n session.close();\n }\n }", "title": "" }, { "docid": "245d05ca7a0267be857a8fe237525ee3", "score": "0.742053", "text": "public int updateEmployeeData(String name2, double salary2) {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "8dcd558929123bd753ffb751cc0bd83c", "score": "0.7395529", "text": "public void updateEmployee(Employee employee) throws EmployeeManagementException;", "title": "" }, { "docid": "2ad9fd696cc279c3071879f3be29d8d6", "score": "0.7384473", "text": "public void setEmployeeSalary(int employeeSalary);", "title": "" }, { "docid": "7fca42d9dca2265d9aeb9950a6cf25a7", "score": "0.72935385", "text": "public void updateEmployeeDetails(String empName,Float empSal,String empDesg);", "title": "" }, { "docid": "4c37673bc48b94857fada3bc26806870", "score": "0.7292567", "text": "@Override\n\tpublic Boolean updateEmployee(Employee emp) \n\t{\n\t\tcon = DBConnection.getConnection();\n\t\ttry \n\t\t{\n\t\t\tprepare = con.prepareStatement(\"update employee set emp_salary = 5000 where emp_id = ?\");\n\t\t\tprepare.setInt(1, emp.getId());\n\t\t\tprepare.executeUpdate();\n\t\t}\n\t\tcatch (SQLException e) \n\t\t{\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn true;\n\t}", "title": "" }, { "docid": "1b94068f35304ffe243b7650790c8aab", "score": "0.7283714", "text": "public void updateEmp(Employee emp) {\n\t}", "title": "" }, { "docid": "84967c976f683cd9df070eeb1facd1bc", "score": "0.72544074", "text": "public void setSalary(double newSalary)\n {\n _salary = newSalary;\n }", "title": "" }, { "docid": "bf3608313a191f0705fbd124cc9a4b0a", "score": "0.71324986", "text": "public void setSalary(int newSalary)\r\n {\r\n salary = newSalary;\r\n }", "title": "" }, { "docid": "6bd2d4611f7b410878f32c711b89be65", "score": "0.7079297", "text": "@Override\r\n\tpublic void updateEmployee(Employee employee) {\n\t\temployeeDAO.updateEmployee(employee);\r\n\t}", "title": "" }, { "docid": "1f041bbefeb3fff4a82a098e8228a447", "score": "0.7078346", "text": "void updateInfo(Employees employee) throws BusinessException;", "title": "" }, { "docid": "30f27f6ebbe4e4595b0a6f4a95a01376", "score": "0.7045094", "text": "@Override\r\n\tpublic void update(Employee employee) {\n\t\t\r\n\t}", "title": "" }, { "docid": "26b7398d4bce69646969e0c49baf772b", "score": "0.7038604", "text": "private void updateEmployee(FuncionarioBLL employee)\n {\n employee.update();\n }", "title": "" }, { "docid": "05d689c6c34e91535ee745865aa1988d", "score": "0.6986399", "text": "@Override\n\tpublic int updateOrgEmployee(Org_employee orgEmloyee) {\n\t\treturn dao.updateOrgEmployee(orgEmloyee);\n\t}", "title": "" }, { "docid": "1ff17b923ae16683b814af371def41e8", "score": "0.6972667", "text": "public void tripleSalary(Employee employee) {\n\t // @TODO\n\t employee.raiseSalary(3.0);\n }", "title": "" }, { "docid": "c7d6450ebdd89bcae9c3558b4d85fcf4", "score": "0.6901789", "text": "public boolean updateEmployeeData(int empId,int empSalary) {\n\t\tint success = 0;\n\t\ttry {\n\t\t\t// using jdbcTemplate object we are firing the update DML operation\n\t\t\tjdbcTemplate.update(\"update employees set empsalary = ? where empid=?\",\n\t\t\t\t\tnew Object[] { empSalary,empId});\n\t\t\tsuccess = 1;\n\t\t\t//DataAccessException are UnChecked Exceptions\n\t\t} catch (DataAccessException dae) {\n\t\t\tSystem.out.println(\"The Error:\" + dae.getMessage());\n\t\t}\n\t\tif (success == 0)\n\t\t\treturn false;\n\t\telse if(success == 1)\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}", "title": "" }, { "docid": "e06ebe22158e330b17774b59f67aa36c", "score": "0.6894378", "text": "public void setSalary(double value) {\n this.salary = value;\n }", "title": "" }, { "docid": "7b81d39868ce4d89f5a7aae5a78f1d10", "score": "0.68895257", "text": "public List<Employee> updateEmployee(Employee employee);", "title": "" }, { "docid": "8bfa18ae4ba6b798c3911b40f56a945b", "score": "0.68895113", "text": "public void visit(Employee e) {\n\t\te.setSalary(e.getSalary() / 2);\n\t}", "title": "" }, { "docid": "a2092ecd331c7597b93aeb85627e7f98", "score": "0.6881993", "text": "@Override\r\n\tpublic void updateEmployeeById(int id) {\n\t\t\r\n\t}", "title": "" }, { "docid": "9275f1d1d1b425076ee5e3558411f01b", "score": "0.68691415", "text": "public static void updateEmployee(Employee employee, String name, int wage) {\n employee.setName(name);\n employee.setWage(wage);\n }", "title": "" }, { "docid": "e64c93555dfcbfa7b1c140da848be275", "score": "0.68659985", "text": "@Transactional\n\tpublic void updateEmployee(Employee employee) {\n\t\temployeeDAO.updateEmployee(employee);\n\t}", "title": "" }, { "docid": "8b04165ddc20a60ca171e830573c0b48", "score": "0.6856913", "text": "@Override\n\tpublic void update(Employee emp) {\n\t\t\n\t}", "title": "" }, { "docid": "9f2fc55b631e8783e151aeaf235ff775", "score": "0.6821906", "text": "@Override\n\tpublic int updateEmployee(Employee body) {\n\t\tres = employeeRepository.save(body);\n\t\treturn res.getId()==0?0:1;\n\t}", "title": "" }, { "docid": "2982d637ea676030cc00fbb209cefbc8", "score": "0.6760453", "text": "@Override\npublic SalaryDto update(SalaryUpdateCo salaryupdateco, String emp_Id) {\n\tlog.info(\"Salary updation by Emp_Id :\" +emp_Id);\n\t Salary semp_Id=salaryDao.get(emp_Id);\n\t if(semp_Id == null)\n throw new CustomerNotFoundException(\"Salary not found by this emp_Id \" + emp_Id);\n\t semp_Id.setNetsalary(salaryupdateco.getNetsalary());\n\t semp_Id.setSalary(salaryupdateco.getSalary());\n\t Salary updateSalary=salaryDao.save(semp_Id);\n\t return objectBinder.bindSalary(updateSalary);\n }", "title": "" }, { "docid": "994ed1f4f022118f374274fcfedf970e", "score": "0.6754799", "text": "public org.apache.crunch.test.Employee.Builder setSalary(int value) {\n validate(fields()[1], value);\n this.salary = value;\n fieldSetFlags()[1] = true;\n return this; \n }", "title": "" }, { "docid": "2eefc52b9e7cee66fbb9b9df337cb0c0", "score": "0.6726392", "text": "private void setSalary(int s) {\n\t\t\n\t}", "title": "" }, { "docid": "a46e1b56c3b620e3876cb03cbf4a1abb", "score": "0.6704427", "text": "public void updateEmp(Employee employee) {\n\t\temployeeMapper.updateByPrimaryKeySelective(employee);\n\t}", "title": "" }, { "docid": "b684580c28f246ff4dc332412e3b841d", "score": "0.6703253", "text": "public void setSalary(Double s) {\n this.salary = s;\n }", "title": "" }, { "docid": "b368743c5a63adb766e6c45e71df331c", "score": "0.6698863", "text": "public boolean updateEmployee(Employee emp, int tuitionStatus);", "title": "" }, { "docid": "0a11d83d99bcdbef611ba304f191b09d", "score": "0.66829467", "text": "public void receiveSalary(int salary){\n salaryEarned+=salary;\n School.updateTotalMoneySpent(salary);\n }", "title": "" }, { "docid": "c1c1bbd8bf5f2365873276cbf980dc83", "score": "0.66738945", "text": "void update(long id, EmployeeCO employeeCO);", "title": "" }, { "docid": "0823bc76b1186c9632541914c298a6af", "score": "0.663228", "text": "public void setSalary(java.lang.Integer value) {\n this.salary = value;\n }", "title": "" }, { "docid": "7853d27b16843c02c0ec25dd0219fdce", "score": "0.6598277", "text": "public void receiveSalary(int salary){\n salaryEarned =+ salary;\n School.updateTotalMoneySpent(salaryEarned);\n }", "title": "" }, { "docid": "734cbd0919939a6be394dba10337538e", "score": "0.658124", "text": "@Override\n\tpublic void changeSalary(Map<String, List<Employee>> map, String deptno, double percent) {\n\t\t\n\t}", "title": "" }, { "docid": "2b01651c695432d3f4ddb03155e8e664", "score": "0.65772307", "text": "public boolean updateEmp(int id,String name,String password,String roleName,int supervisedBy,int salary)\n\t{\n\t\t//list check if supervisor exit in database or not\n\n\t\tList < Map <String,Object>> li= db.getSupervisorRoleId(supervisedBy);\n\t\tif(li.isEmpty())\n\t\t\treturn false;\n\t\tint roleIdSupervisor=Integer.parseInt(li.get(0).get(\"roleId\").toString());\n\t\tint roleIdEmp = db.getroleId(roleName);\n\t\t//list check if we assign this to b supervisor of new employee or not\n\n\t\tif(roleIdSupervisor< roleIdEmp)\n\t\t\treturn false;\n\t\telse {\n\t\t\t//insert into database\n\n\t\t\tdb.updateEmp(id,name, password, roleName, supervisedBy, salary);\n\t \treturn true;\n\t\t}\n\t}", "title": "" }, { "docid": "5c73673b6d360d26bac9f1ecccf20d33", "score": "0.65629846", "text": "public void calculateSalary() {\n salary = hoursWorked * hourlyPay;\n applyDiscount();\n }", "title": "" }, { "docid": "915f3eda1c659a39b30e6aa6a6b29d07", "score": "0.655157", "text": "@Override\n public Employee updateEmployee(Integer companyId, EmployeeRequest employee) {\n return null;\n }", "title": "" }, { "docid": "89b22822309bda52b407d1322395281c", "score": "0.6549161", "text": "public void setSalary(Number value)\n {\n if (value != null)\n {\n // Verify value is > 0\n\n if (value.compareTo(0) <= 0)\n {\n throw new OAAttrValException(OAException.TYP_ENTITY_OBJECT,\n getEntityDef().getFullName(), // EO name\n getPrimaryKey(), // EO PK\n \"Salary\", // Attribute Name\n value, // Attribute value\n \"AK\", // Message product short name\n \"FWK_TBX_T_EMP_SALARY_REQUIRED\"); // Message name\n\n }\n setAttributeInternal(SALARY, value);\n }\n }", "title": "" }, { "docid": "c77e4bbecd1579b00e88571debcee831", "score": "0.6545836", "text": "public String modifysalary(String name, int option, double newsalary) {\n\t\t\tString message = \"\";\t\t\n\t\t\tEmployee objSearch=findEmployee(name);\n\t\t\tif(objSearch ==null){\n\t\t\t\tmessage = \"dont exist the employee\";\n\t\t\t}else{\n\t\t\t\tif(option == 3) {\n\t\t\t\t\t\t\tobjSearch.setSalary(newsalary);\n\t\t\t\t\t\t\tmessage = \"The element is modifycate\";\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn message;\n\t\t}", "title": "" }, { "docid": "7b605901e972b0be1ebdbb31787b9fcf", "score": "0.65310764", "text": "public boolean updateEmployeeInformation(Employee employee);", "title": "" }, { "docid": "c959df796d61ed64415fec3501be0620", "score": "0.6526733", "text": "public void recieveSalary(int salary) {\r\n\t\tsalaryEarned += salary;\r\n\t\tSchool.updateTotalMoneyEarned(salary);\r\n\t}", "title": "" }, { "docid": "d39ba696de009c11a6673157eee70a92", "score": "0.6524885", "text": "@Override\r\n\tpublic int Update(SalariesModel bean) {\n\t\treturn 0;\r\n\t}", "title": "" }, { "docid": "73d4bdf40fc52248de0cc9bf6a55f823", "score": "0.6521063", "text": "public static void updateEmployeePayScaleAndRole()\n\t{\n\t try\n\t {\n\t System.out.println(\"\\n\\nEnter the Employee number you wish to change: \");\n\t String employeeNumber = sc.nextLine();\n\t //reset variable for employeeNumber found test\n\t String found = \"false\";\n\t //iterate through employees ArrayList and check for employeeNumber\n\t for(int i = 0; i < employees.size(); i++)\n\t {\n\t Employee obj = employees.get(i);\n\t //If employeeNumber found in ArrayList, Get user to input new Pay Scale Level\n\t if(employeeNumber.equals(obj.getEmployeeNumber())) \n\t {\n\t if(obj instanceof AcademicEmployee)\n\t {\n\t AcademicEmployee acad = (AcademicEmployee)employees.get(i);\n\t found = \"true\";\n\t System.out.println(\"\\nEnter the new Pay Scale Level for this employee\");\n\t char level = sc.findInLine(\".\").charAt(0);\n\t sc.nextLine();\n\t acad.levelMustBeNotBeEorMoreThan2LevelsHigher(level);\n\t String valid = \"true\";\n\t if(valid == \"true\")\n\t {\n\t //notify successful completion and either get new role name or leave it unchanged \n\t System.out.println(\"\\nThis employee's level has been updated successfully. \"\n\t + \"this also means that the role of this Academic Employee has been\"\n\t + \"Updated automatically \");\n\t }\n\t \n\t } else\n\t {\n\t found = \"true\";\n\t System.out.println(\"\\nEnter the new Pay Scale Level for this employee\");\n\t char level = sc.findInLine(\".\").charAt(0);\n\t sc.nextLine();\n\n\t obj.validLevelIsBetweenAandE(level);\n\t String valid =\"true\";\n\t if(valid == \"true\")\n\t {\n\t //notify successful completion and either get new role name or leave it unchanged \n\t System.out.println(\"\\nThis employee's level has been updated successfully. \"\n\t + \"Please enter a new role for this employee, or press enter to \"\n\t + \"leave the employee's role unchanged.\");\n\t String role = sc.nextLine();\n\t if(!role.equals(\"\")) \n\t {\n\t obj.setRole(role);\n\t System.out.println(\"\\nThank you. This employee's role has been updated.\");\n\t } else \n\t {\n\t System.out.println(\"\\nThis employee's role has not been changed.\");\n\t }\n\n\t }\n\t }\n\t }\n\t } \n\t if(found == \"false\");\n\t System.out.println(\"\\nThe employee could not be found\");\n\t }\n\t catch (Exception e)\n\t {\n\t System.out.println(\"A PayScaleException occurred: \" + e.getMessage());\n\t }\n\n\t}", "title": "" }, { "docid": "f91d67f9cb7f2dc5bef1524e0118bd56", "score": "0.6520784", "text": "public void setSalary(BigDecimal salary) {\r\n this.salary = salary;\r\n }", "title": "" }, { "docid": "5db8ed3f54bcbc2584180ac3ff91bda6", "score": "0.6498246", "text": "public void addSalary()\r\n\t{\r\n\t\tif(salary>500){\r\n\t\t\tsalary = salary+10;\r\n\t}\r\n\r\n\t}", "title": "" }, { "docid": "0e1b66b8f72666833bac3edcda3c8231", "score": "0.64792717", "text": "public EmployeeSalaryDetail updateEmpDetailsSalary(String empID, String deductTypeCode) {\n\t\treturn employeeSalaryDetailRepo.updateEmpsalaryDetails(empID, deductTypeCode);\n\t}", "title": "" }, { "docid": "947a26024f45a8c6c2c29b72190d8c85", "score": "0.6469026", "text": "@POST\r\n\t@Path(\"/update\")\r\n\t@Consumes({ MediaType.APPLICATION_JSON })\r\n\t@Produces({ MediaType.APPLICATION_JSON })\r\n\tpublic Response update(Employee employee) throws SQLException {\r\n\t\tEmployeeService showService = new EmployeeService();\r\n\t\tApiResponse response = showService.updateEmployee(employee);\r\n\t\treturn Response.status(200).entity(response).build();\r\n\r\n\t}", "title": "" }, { "docid": "6429c260bfa1c05d707f02834ab51eb6", "score": "0.64668393", "text": "public void updateEmployee(int emp_no, int salary, int newSalary, String fromDate, String toDate){\n\n\t\tinitConnection();\n\t\ttry {\n\t\t\t//taking the time before executing query.\n\t\t\tlong startTime = System.currentTimeMillis();\n\t\t\t\n\t\t\tString sql1 = \"UPDATE salaries SET salary= \"+ newSalary +\n\t\t\t\t\t\", from_date= '\" + fromDate + \"', to_date= '\" + toDate + \"' where \"\n\t\t\t\t\t\t\t+ \"emp_no = \" + emp_no + \" and salary=\" + salary ;\n\t\t\n\t\t\tStatement updateStatement, checkStatement;\n\n\t\t\tupdateStatement = con.createStatement();\n\n\t\t\tupdateStatement.executeUpdate(sql1); \n\t\t\t\t\t\t\n\t\t\t//checking if any record has updated.\n\t\t\tString sql2= \"select * from salaries where emp_no=\" + emp_no + \" and salary= \"\n\t\t\t\t\t+ newSalary;\n\t\t\tcheckStatement= con.createStatement();\n\t\t\tResultSet chkUpdate = checkStatement.executeQuery(sql2);\n\t\t\t\t\t\t\n\t\t\t//taking the time after executing query.\n\t\t\tlong endTime = System.currentTimeMillis();\n\n\t\t\tif (chkUpdate.next()){\n\t\t\tSystem.out.println(\"One record updated.\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.err.println(\"No record has updated.\");\n\t\t\t}\n\t\t\t//time takes to execute query.\n\t\t\tlong runTime = endTime - startTime;\n\t\t\tSystem.out.println(\"Execute the sql to update.\");\n\t\t\tSystem.out.println(\"Time to execute = \" + runTime + \" milliseconds\"); \n\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "title": "" }, { "docid": "1db0cca0be201edb4bed60b7bf8d6d71", "score": "0.64637065", "text": "@Override\n\tpublic Employedemandeur updateEmploye(Employedemandeur employe) {\n\t\treturn iEmployedemandeurDAO.updateEmploye(employe);\n\t}", "title": "" }, { "docid": "a19113ca59f495262ac94672f5965c43", "score": "0.6457288", "text": "public void setEmpSal(double empSal) {\r\n\t\tthis.empSal = empSal;\r\n\t}", "title": "" }, { "docid": "c0131b307a3fa780c4f10966f5e9de95", "score": "0.6450025", "text": "@Override\n\tpublic String updateEmployee(String id, Employee employee) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "5fc58cdbe0dd074e6acaf102de5e1322", "score": "0.6439883", "text": "@PutMapping(\"/employees\")\n\tpublic Employee update(@RequestBody Employee employee) {\n\t\temployeeService.save(employee);\n\t\treturn employee;\n\t}", "title": "" }, { "docid": "71bf6e40163c3943f5b4dace6c4be8d7", "score": "0.6393201", "text": "public void setWorkSalary(Double workSalary) {\r\n this.workSalary = workSalary;\r\n }", "title": "" }, { "docid": "7aaf23e7c61603b2b43f21fde7ee731e", "score": "0.6391022", "text": "@PutMapping(\"/{id}\")\r\n\tpublic ResponseEntity<EmployeeEntity> updateEmployee(@PathVariable long id,\r\n\t\t\t@Valid @RequestBody EmployeeModel employeeModel) {\r\n\t\temployeeModel.setEmpId(id);\r\n\t\tlog.info(\"Put method is accessed\");\r\n\t\treturn ResponseEntity.ok().body(employeeService.updateEmployee(employeeModel));\r\n\t}", "title": "" }, { "docid": "6f51e618a8bc8559aae83b31edd9407e", "score": "0.637962", "text": "@Override\n\tpublic Employee updateEmployee(Employee employee) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "d92d1e248250ccefe635355073d04378", "score": "0.63584113", "text": "@PutMapping(\"/employees/{id}\")\n\tpublic ResponseEntity<Employee> updateNote(@PathVariable(value = \"id\") int id, @RequestBody Employee employee) {\n\t\t// get the employee based on the id passed in as parameters and then modify the\n\t\t// data\n\t\tOptional<Employee> emp = employeerepository.findById(id);\n\t\t// updating the employee object\n\t\tif (emp.isPresent()) {\n\t\t\tEmployee _employee = emp.get();\n\t\t\t_employee.setName(employee.getName());\n\t\t\t_employee.setRole(employee.getRole());\n\t\t\t_employee.setSalary(employee.getSalary());\n\t\t\t_employee.setActive(employee.isActive());\n\t\t\treturn new ResponseEntity<>(employeerepository.save(_employee), HttpStatus.OK);\n\t\t} else {\n\t\t\treturn new ResponseEntity<>(HttpStatus.NOT_FOUND);\n\t\t}\n\t}", "title": "" }, { "docid": "86f1d029e28479156919e0c02dd80aa7", "score": "0.63575834", "text": "@PutMapping(\"/employees/{id}\")\n\tpublic ResponseEntity<Employee> updateEmployee(\n\t\t\t@PathVariable(value = \"id\") Long empId,\n\t\t\t@Valid @RequestBody Employee employeeDetails) throws ResourceNotFoundException {\n\t\tlog.info(\"inside updateEmployee() method\");\n\t\tEmployee employee = employeeRepository.findById(empId)\n\t\t .orElseThrow(() -> new ResourceNotFoundException(\"Employee not found :: \" + empId));\n\t\temployee.setEmailId(employeeDetails.getEmailId());\n\t\temployee.setDepartment(employeeDetails.getDepartment());\n\t\temployee.setDob(employeeDetails.getDob());\n\t\temployee.setGender(employeeDetails.getGender());\n\t\temployee.setLastName(employeeDetails.getLastName());\n\t\temployee.setFirstName(employeeDetails.getFirstName());\n\t\tfinal Employee updatedEmployee = employeeRepository.save(employee);\n\t\treturn ResponseEntity.ok(updatedEmployee);\n\t}", "title": "" }, { "docid": "a297337ba19be362a327f66b8484eef9", "score": "0.634063", "text": "public boolean update(int id, String name, double salary, String location,\n\t\t\tint age);", "title": "" }, { "docid": "6ea751e3501a17c74b6877be968dc862", "score": "0.6325371", "text": "@Override\n\tpublic Response updateById(PayrollDTO employeeDto) {\n\t\tPayroll employeePayroll = empRepository.findById(employeeDto.getId()).orElseThrow(() \n\t\t\t\t-> new PayrollException(environment.getProperty(\"EMPLOYEE_FETCH_UNSUCCESSFULL\")));\n\t\temployeePayroll.setEmpName(employeeDto.getEmployeeName());\n\t\temployeePayroll.setSalary(employeeDto.getSalary());\n\t\temployeePayroll.setEmail(employeeDto.getEmail());\n\t\tempRepository.save(employeePayroll);\n\t\tlog.info(environment.getProperty(\"UPDATE_SUCCESSFULL\"));\n\t\tResponse response = new Response(200, environment.getProperty(\"UPDATE_SUCCESSFULL\"),employeeDto);\n\t\treturn response;\n\t}", "title": "" }, { "docid": "7bdd51d8fd7957e89ada762e4b3e14e3", "score": "0.6317202", "text": "@PutMapping(\"/{employeeId}\")\n public ResponseEntity<?> updateEmployee(@PathVariable String employeeId,\n @RequestBody EmployeeDTO employee) {\n return null;\n }", "title": "" }, { "docid": "65fafc381802f090977d7c182c179520", "score": "0.63090056", "text": "@Override\n public void update(Employee employee) {\n employees.remove(employee);\n employees.add(employee);\n }", "title": "" }, { "docid": "eacb40e39f36aa66fd8d50b4cafcb065", "score": "0.62893414", "text": "public void updateEmployee(Employee e)\r\n\t{ \r\n\t template.update(e); \r\n\t}", "title": "" }, { "docid": "b9e5f3f85493463f05350300afe07102", "score": "0.6283882", "text": "@PutMapping(\"/employees/{id}\")\r\n\tpublic ResponseEntity<Optional <Employee>> updateEmployee(@PathVariable(value=\"id\") Long empId , @Valid @RequestBody Employee empDetails){\r\n\t\tOptional<Employee> emp=employeeDAO.findOne(empId);\r\n\t\tif (emp== null) {\r\n\t\t\treturn ResponseEntity.notFound().build();\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t/*emp.(empDetails.getName());\r\n\t\temp.setDesignation(empDetails.getDesignation());\r\n\t\temp.setExpertise(empDetails.getExpertise());\r\n\t\t\r\n\t\t\r\n\t\tEmployee updateEmployee =employeeDAO.save(emp) ;\r\n\t\t\r\n\t\treturn ResponseEntity.ok().body(updateEmployee);*/\r\n\t\treturn ResponseEntity.ok().body(emp);\r\n\t\t\r\n\t}", "title": "" }, { "docid": "030bd2c543847a3c89467f02cb0ed562", "score": "0.6273368", "text": "public void setSalary(int amount)\n\t{\n\t\tsalary = amount;\n\t}", "title": "" }, { "docid": "ee95a846a213f844d1159fce762c3ddb", "score": "0.6270099", "text": "@Override\n\tpublic void setSalary(double rate) {\n\t\tsalary = rate;\n\t}", "title": "" }, { "docid": "752ad53f014e0b1d976149aea15d9e64", "score": "0.6232627", "text": "@PutMapping(\"{id}\")\n\tpublic ResponseEntity<Employee> updateEmployeeById(@PathVariable(\"id\") long id, @RequestBody Employee employee){\n\t\treturn new ResponseEntity<Employee>(employeeService.updateEmployee(employee, id), HttpStatus.OK);\n\t}", "title": "" }, { "docid": "e0cb6a8c60d369ae5495eb69e35bd327", "score": "0.62258893", "text": "@Override\n\tpublic Employee updateEmployee(Employee employee, long id) {\n\t\tEmployee existingEmployee=employeeRepository.findById(id).orElseThrow(\n\t\t\t\t() -> new ResourceNotFoundException(\"Employee\", \"Id\", id));\n\t\t\n\t\texistingEmployee.setFirstName(employee.getFirstName());\n\t\texistingEmployee.setLastName(employee.getLastName());\n\t\texistingEmployee.setEmail(employee.getEmail());\n\t\t//save existing employee to database\n\t\temployeeRepository.save(existingEmployee);\n\t\treturn existingEmployee;\n\t}", "title": "" }, { "docid": "88f99596d10310a638d1dd0aa2c89eab", "score": "0.6225049", "text": "@PutMapping(path = \"/employee/{id}\", headers = \"Accept=application/json, application/xml\")\n @ResponseStatus(HttpStatus.ACCEPTED) // return response status\n public void updateEmployee(@PathVariable(\"id\")Long id, @RequestBody Employee employee){ // path variable & request body\n employeeService.update(id, employee);\n }", "title": "" }, { "docid": "6fe8a82e102ad55229d00d94dad61813", "score": "0.62129843", "text": "private void refreshSalaries(EmpAccounts emp) {\n try {\n ComponentHandler.emptyTable(tableSalaries);\n DefaultTableModel model = (DefaultTableModel) tableSalaries.getModel();\n List<Salary> list = DatabaseQueryExecuter.getSalaries(emp);\n for(int i=0;i<list.size();i++) {\n Salary salary = list.get(i);\n model.addRow(new Object[]{salary.getMonths().getYears().getYearName(), salary.getMonths().getMonthName(), salary.getAmount(), salary.getCasualLeave(), salary.getWarning(), salary.getLate(), salary.getWentEarly(), salary.getOther(), salary.getBonus(), salary.getDeposit(), salary});\n }\n } catch (Exception ex) {\n Logger.getLogger(AppLog.ERROR_LOG).log(Level.SEVERE, null, ex);\n }\n }", "title": "" }, { "docid": "f1686aabe7b94e4979192c9609741d85", "score": "0.6204331", "text": "@Override\n\tpublic boolean updateEmployee(Employee employee) {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "a8cae8aa15fc95a4e914b321dd311da3", "score": "0.6167645", "text": "@Override\r\n\tpublic int updateNewEmployeee(Employees updateAllField)\r\n\t{\n\t\treturn 0;\r\n\t}", "title": "" }, { "docid": "9dc7c6a446b3d43a6ca6342467de7bc6", "score": "0.61660916", "text": "@Test\n public void update_employee_test()\n {\n Employee employee = generate_employee_class();\n //created before update\n employeeDAO.createEmployee(employee);\n\n String updatedName = \"Updated\";\n employee.setFirstname(updatedName);\n\n //updated employee\n employeeDAO.updateEmployeeByID(employee,employee.getId());\n\n //verify\n Employee employeeActual = employeeDAO.findEmployeeByID(employee.getId());\n\n Assert.assertEquals(updatedName,employeeActual.getFirstname());\n }", "title": "" }, { "docid": "02cbd9f735fcc381cc5fd94f001fb1fd", "score": "0.6163503", "text": "public abstract void calculateSalary ();", "title": "" }, { "docid": "95f143509c77b7c9b7c2bc99c3b438d8", "score": "0.6155436", "text": "@Override\n public Employee editEmployee(Employee emp) {\n return employeeRepository.save(emp);\n }", "title": "" }, { "docid": "4d640b2f64a7a82ee5a8c11c62daa284", "score": "0.614995", "text": "Employee(String name, int string, double annualSalary) {\n setAnnualSalary(annualSalary);\n setName(name);\n setPps(string);\n }", "title": "" }, { "docid": "45e2b634a340264e8e265d64433ecf41", "score": "0.61476505", "text": "@Override\r\n\tpublic double calculateSalary() {\n\t\treturn super.getSalary() * 1.2;\r\n\t}", "title": "" }, { "docid": "23dad7096534ce3f764fff143f8ae202", "score": "0.6146278", "text": "public int getEmployeeSalary();", "title": "" }, { "docid": "77a6e627774779e6d0664058e76d7ebe", "score": "0.6136167", "text": "public void editEmployeeSalary(int id, String baseSalary, String bonus, String ctc)\n\t\t\tthrows InvalidInputException, SQLException {\n\t\tif (!checkEmployee(id))\n\t\t\tthrow new InvalidInputException(Constants.ErrorMessages.WRONG_INPUT_ID);\n\t\telse {\n\t\t\temployeeDao.updateEmployeeSalary(id, baseSalary, bonus, ctc);\n\t\t}\n\n\t}", "title": "" }, { "docid": "bcfdd3553858b5be7c72521c8c7cb85f", "score": "0.61247617", "text": "public void salary(int a)\n {\n ece = a + ece;\n }", "title": "" }, { "docid": "e164cf6b9a1f626c29cd4eb7927ebfe5", "score": "0.61210036", "text": "public void annualRaise()\n {\n salary = (salary * 1.06);\n }", "title": "" }, { "docid": "b3e859b9e02a087218f467f2968f2d9a", "score": "0.61190563", "text": "private void actualizarSalario(List<Employees> listaem) {\n\t\tfor (Employees emp : listaem) {\n\t\t\temp.setSalary(emp.getSalary().multiply(new BigDecimal(1.2)));// realizamos\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// la\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// operacion\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// de\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// multiplicar\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// el\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// salario\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// por\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// 1.2\n\t\t}\n\n\t}", "title": "" }, { "docid": "6bfe372e1b5ed6dff82eb2e06536908a", "score": "0.61177355", "text": "public abstract void calculateAnnualSalary();", "title": "" }, { "docid": "2c3d9f93d4b4fce77e823ec27b9b483a", "score": "0.6115124", "text": "public boolean updateDateOfBirth(int employeeId, Date dateOfBirth);", "title": "" }, { "docid": "52d8f6b05a01e4bac0e948d4209fd699", "score": "0.6114375", "text": "protected void beforeUpdateEmployee(\n RetailscmUserContext userContext,\n Employee existed,\n String salaryGradeId,\n String employeeId,\n int employeeVersion,\n String property,\n String newValueExpr,\n String[] tokensExpr)\n throws Exception {}", "title": "" }, { "docid": "1e4f76a85319f2a061d417d7bcca4ef8", "score": "0.6114128", "text": "@Override\n public boolean updateEmployeeDetails(Employee employee) {\n // find the employee, just in case\n Employee e = find(employee.getEmpid());\n\n // check again - just to play it safe\n if (e == null) {\n return false;\n }\n\n // no need to update the primary key - empId\n edit(employee);\n return true;\n }", "title": "" }, { "docid": "449c432736d2e402e3f5681d71e3bab4", "score": "0.60998255", "text": "@PUT\n @Path(\"/{empId}\")\n @Consumes(MediaType.APPLICATION_JSON)\n @Produces({MediaType.APPLICATION_JSON, MediaType.TEXT_XML})\n public Response updateEmployee(@PathParam(\"empId\") int empId, @RequestBody Employee emp) {\n emp.setEmpId(empId);\n emp = service.updateEmployee(emp);\n return Response.status(ACCEPTED).entity(emp).build();\n }", "title": "" }, { "docid": "bd955864614b6ef50c99a6a1c229f055", "score": "0.60944945", "text": "@Override\r\n\tpublic boolean updateEmployee(EmployeeBean bean) {\n\t\treturn dao.updateEmployee(bean);\r\n\t}", "title": "" }, { "docid": "5312463817f7fe3100b4dd483b2fa29c", "score": "0.609114", "text": "@PutMapping(\"/employees/{id}\")\n\t\tpublic void updateUser(@RequestBody Employee u, @PathVariable Long id){\n\t\t\temployeeService.updateEmployee(u, id);\n\t\t}", "title": "" }, { "docid": "e06050633a57acfbf277b3e143adb5c0", "score": "0.6077811", "text": "public void updateEmployee(int id, SessionFactory sessionFactory) {\n Employees employees = new Employees();\n Scanner scanner = new Scanner(System.in);\n System.out.println(\"Enter Employee name\");\n String name = scanner.next();\n employees.setFirstName(name);\n System.out.println(\"Enter Employee last name\");\n String lname = scanner.next();\n employees.setLastName(lname);\n System.out.println(\"Enter Employee email\");\n String email = scanner.next();\n employees.setEmail(email);\n System.out.println(\"Enter Employee address\");\n String address = scanner.next();\n employees.setAddress(address);\n System.out.println(\"Enter Employee comment\");\n String comment = scanner.next();\n employees.setEmployeeComment(comment);\n System.out.println(\"Enter Employee officeId\");\n String officeId = scanner.next();\n employees.setEmployeeComment(officeId);\n Session session = sessionFactory.openSession();\n session.beginTransaction();\n session.update(employees);\n session.getTransaction().commit();\n session.close();\n }", "title": "" }, { "docid": "81fc401f960df133f399f5387f212607", "score": "0.6070534", "text": "public boolean UpdateEmployeeDetails(Employee emp){\n return employeeDao.update(emp);\n }", "title": "" }, { "docid": "c3edc7d47c1dfcc0808a4926b8b77ee6", "score": "0.6065819", "text": "@Override\n\tpublic float calculateSalary() {\n\t\treturn 3000;\n\t}", "title": "" }, { "docid": "5416f1b16d6ee223d62e0556a993dc3f", "score": "0.60390955", "text": "@Override\n\tpublic int update(Employee entity) throws Exception {\n\t\tSession session = HibernateUtil.getSessionFactory().openSession();\n\t\tint result = 0;\n\t\tTransaction transaction = null;\n\t\ttry {\n\t\t\ttransaction = session.beginTransaction();\n\t\t\tsession.update(entity);\n\t\t\ttransaction.commit();\n\t\t\tresult = 1;\n\t\t} catch (HibernateException e) {\n\t\t\ttransaction.rollback();\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tsession.close();\n\t\t}\n\n\t\treturn result;\n\t}", "title": "" }, { "docid": "eca3ffcc96432a8dc7e3ed5085d39cc6", "score": "0.60310334", "text": "@Override\n\tpublic void updateRecord(EmployeeModel employeeModel) {\n\t\tString str = \"Update EmployeeDetails Set firstName=?, lastName=?, Address=?, contactNo = ?,eMail=?,password=? \"+ \"where eId =?\";\n\t\t\n\t\ttry {\n\t\t\tpreparedStatement = connection.prepareStatement(str);\n\t\t\tpreparedStatement.setString(1, employeeModel.getFirstName());\n\t\t\tpreparedStatement.setString(2, employeeModel.getLastName());\n\t\t\tpreparedStatement.setString(3, employeeModel.getAddress());\n\t\t\tpreparedStatement.setString(4, employeeModel.getContactNo());\n\t\t\tpreparedStatement.setString(5, employeeModel.geteMail());\n\t\t\tpreparedStatement.setString(6, employeeModel.getPassword());\n\t\t\tpreparedStatement.setInt(7, employeeModel.geteId());\n\t\t\tint rowUpdated = preparedStatement.executeUpdate();\n\t\t\t//System.out.println(rowUpdated);\n\t\t\tif(rowUpdated>0)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"Record Updated sucessfully\");\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "1d1af127b910eda2ae310122e1021352", "score": "0.6025428", "text": "@Override\n\tpublic void calSalary() {\n\t\tSystem.out.println(\"Manager salary\");\n\t}", "title": "" }, { "docid": "f688322f305cc1e385c0d5a35604af31", "score": "0.601819", "text": "@Override\n\tpublic void addSalary() {\n\t\tsalary+=prize;\n\t\t//return prize;\n\t}", "title": "" }, { "docid": "ab4285d52dab77c3b7e36b063ac87919", "score": "0.6017792", "text": "protected void beforeUpdateEmployeeSalarySheet(\n RetailscmUserContext userContext,\n EmployeeSalarySheet existed,\n String salaryGradeId,\n String employeeSalarySheetId,\n int employeeSalarySheetVersion,\n String property,\n String newValueExpr,\n String[] tokensExpr)\n throws Exception {}", "title": "" }, { "docid": "7b302582c829a31ca8a01fc30cdbcf5e", "score": "0.60085654", "text": "private void updateEmployeeDetails() {\n Employee employeeDetail = new Employee();\n try {\n System.out.println(\"Enter the EmployeeId :\");\n String employeeId = inputReader.next();\n if(employeeService.checkId(employeeId)) {\n employeeDetail.setEmployeeId(employeeId);\n employeeDetail.setPhoneNumber(putMobileNumber());\n System.out.println(\"Enter new First name :\");\n employeeDetail.setFirstName(inputReader.next());\n System.out.println(\"Enter new Last name :\");\n employeeDetail.setLastName(inputReader.next());\n employeeDetail.setEmailId(putMailId()); \n employeeDetail.setStatus(true); \n System.out.println();\n System.out.println(\"The address of the given employee is display\" +\n \" below use the id to change the address\");\n System.out.println();\n System.out.println(\"Address of the employee \");\n //displayAddress(employeeId);\n employeeService.updateDetails(employeeId,employeeDetail);\n\t\tupdateEmployeeAddress(employeeDetail);\n System.out.println(\"Updated Successfully\");\n } else {\n System.out.println(\"The employee Id is not registered \");\n }\n } catch(EmployeeException exception) {\n System.out.println(exception.getMessage());\n }\n }", "title": "" }, { "docid": "29553fd3005f4e93a185fc48bc350737", "score": "0.5998578", "text": "public int calculateSalary(Employee employee) throws Exception {\n TaxCalculator taxCalculator = factory.newTaxCalculator(employee.getType());\n\n // Calculate the tax.\n String tax = taxCalculator.calculateTax(employee).toString();\n\n // Get the base salary for the current employee\n int baseSalary = BaseSalary.getBaseSalary(employee.getType()) ;\n\n // Check if the returned value is equal to zero then the employee type is not found in our system.\n if(baseSalary == 300){\n// throw new Exception(\"Can't calculate the salary for this employee since it's have unknown type!\");\n return baseSalary;\n }\n\n return baseSalary - Integer.parseInt(tax);\n }", "title": "" } ]
96f8ebc0368997060f63f0ebf6e6bf9f
Return x coordinate of the center of the edge
[ { "docid": "8fb1d51f23dd2ff93ac8fe2a01bceedb", "score": "0.76231545", "text": "public int getCenterX(){\n int length = Math.abs(endX - startX);\n\n if(startX < endX)\n return startX + (length/2);\n else\n return startX - (length/2);\n }", "title": "" } ]
[ { "docid": "7de1469cfb564d905e2d51265357001c", "score": "0.7702377", "text": "public float getX()\r\n\t{\r\n\t\treturn center.x;\r\n\t}", "title": "" }, { "docid": "7d9a5dd6e07b2f5f8af5635453543d0e", "score": "0.76813215", "text": "public int getCenterX() {\n\t\treturn (int)(x + width / 2);\n\t}", "title": "" }, { "docid": "7c0aeb1bbf7d38057bd249f54fffdf58", "score": "0.7658771", "text": "public float getCenterX() {\r\n\t\treturn (x + getHalfWidth());\r\n\t}", "title": "" }, { "docid": "43ffb2dd5b795d90381cde594eaab39e", "score": "0.7532471", "text": "public int getXCoordinate() {\n\t\treturn centerX;\n\t}", "title": "" }, { "docid": "1d6b9e3468a2197569e675632e2f7c42", "score": "0.7521949", "text": "public int getX() {\n return (int) this.center.getX();\r\n }", "title": "" }, { "docid": "c8b858a1e283e9041a1d077d1584c7a1", "score": "0.7475158", "text": "public double getXCenter() {\r\n\t\tif (this.size == 1) {\r\n\t\t\tPoint2D.Double point = new Point2D.Double(7, 0);\r\n\t\t\ttransformPoint(point);\r\n\t\t\treturn point.getX();\r\n\t\t} else if (this.size == 2) {\r\n\t\t\tPoint2D.Double point = new Point2D.Double(15, 0);\r\n\t\t\ttransformPoint(point);\r\n\t\t\treturn point.getX();\r\n\t\t} else {\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "6df6b898ca687e906dbf32c93e10e333", "score": "0.746468", "text": "public float getXMidpoint() {\n return getMinX() + (getWidth() / 2f);\n }", "title": "" }, { "docid": "bc8b36edea462afc34d8533b26ffcd75", "score": "0.74189234", "text": "public int getCenterX(){\n\t\t\treturn this.path.getPathPoints().get(this.counter).getRoundAboutCenterX();\n\t\t}", "title": "" }, { "docid": "e676a2dd2d4984820bc193ac3788da7b", "score": "0.73233455", "text": "public int getCentreX(){\n\t\treturn (int) centreX;\n\t}", "title": "" }, { "docid": "fd1a2c2506776b231339f7d5306e6e9e", "score": "0.7291317", "text": "public double getCenterX() {\n return myRectangle.getX() + (myRectangle.getWidth() / 2);\n }", "title": "" }, { "docid": "9e6290bad93f9ec64a62624f337f1a8b", "score": "0.72216064", "text": "public double getXcenter()\n {\n return xCenter;\n }", "title": "" }, { "docid": "f5d68268bda3e53ceddbe27236100cbe", "score": "0.7217485", "text": "public int getXCenter() {\n return xCenter;\n }", "title": "" }, { "docid": "3a23acb74af8f6c14a3b87fb459ab8e5", "score": "0.7181592", "text": "public double centerX()\r\n {\r\n return myX + SIZE/2;\r\n }", "title": "" }, { "docid": "9cedb9a8ff63a3f8b343be8b443fb642", "score": "0.71097004", "text": "public int getCentreX() {\n\t\t\treturn centreX;\n\t\t}", "title": "" }, { "docid": "9cedb9a8ff63a3f8b343be8b443fb642", "score": "0.71097004", "text": "public int getCentreX() {\n\t\t\treturn centreX;\n\t\t}", "title": "" }, { "docid": "8aa2fe4986e0c9860d3ecfd8ec3ab26d", "score": "0.7080966", "text": "public double getCenterX()\n {\n return (double) p2_[X] + (double) (p1_[X] - p0_[X]) / 2.0;\n }", "title": "" }, { "docid": "62595ff7ac47fdbd1f2510a4eca35391", "score": "0.7026277", "text": "public int getCentreX() { return centreX; }", "title": "" }, { "docid": "0aaab977fc0a070c01daf866c9636ae0", "score": "0.69196606", "text": "public float getCenterX() {\n\t\treturn position.x + (sprite.getWidth() / 2);\n\t}", "title": "" }, { "docid": "ff1db0174fb9cfb3d59a421cd585d5c9", "score": "0.68930286", "text": "public double getCenterX() {\r\n return this.centerX;\r\n }", "title": "" }, { "docid": "0de0c4c28f84a45b7298e707a9136976", "score": "0.6880534", "text": "public int getLeft(){\n\t\treturn x-shape[0].length/2;\n\t}", "title": "" }, { "docid": "658d2e6703c5eccc4ad7fe5e142d4105", "score": "0.68658185", "text": "public double xCenter()\r\n {\r\n return calcMoment(\"Mx\") / calcMoment(\"M1\");\r\n }", "title": "" }, { "docid": "9bf47d07ad0390df59e92f6af79a1f1d", "score": "0.685069", "text": "public int getTopLeftRegionX() {\n return (x / 8) - 6;\n }", "title": "" }, { "docid": "7c65f10bd10881f3c23d056644f09f0f", "score": "0.6847155", "text": "public Vec2d center() {\n\t\treturn min().midpoint(max());\n\t}", "title": "" }, { "docid": "4744ed6e5a95c23ffc6024eef67ea9c9", "score": "0.68314314", "text": "public double getExactX() {\r\n\t\treturn xpos * Global.L + radius;\r\n\t}", "title": "" }, { "docid": "a19cb00639f4bb5a7fb6353ee69b672f", "score": "0.68294007", "text": "public float getPosX() {\n float x = position.getX();\n if (this.centered) {\n x -= (1 - this.position.getYLength() / 2);\n }\n return x;\n }", "title": "" }, { "docid": "0436e746529fa16ff76d927c7e152e62", "score": "0.682389", "text": "public int getMin_X() { \n \t int width = this.dim.width;\n \t\treturn -width/2; \n \t}", "title": "" }, { "docid": "8d89781cb6c813655d965ccfaf5ad8a8", "score": "0.67997503", "text": "public float getLeft()\r\n\t{\r\n\t\treturn center.x - radius;\r\n\t}", "title": "" }, { "docid": "a3cafcbef0aa8c4338f95791a66e6ea4", "score": "0.6793254", "text": "public Point getCenterPoint() {\n\t\treturn new Point((int) nodeRectangle.vx, (int) nodeRectangle.vy);\n\t}", "title": "" }, { "docid": "3c096750653c850278e19fae0c6a9ecf", "score": "0.6749665", "text": "private int get_position_x(){\n\t\tint ret = getWidth() - cols*cell_size;\n\t\treturn ret/2;\n\t}", "title": "" }, { "docid": "b129b4b149b78399b3f6d33c1bfc5547", "score": "0.6707291", "text": "public double getMiddleX() {\r\n\t\treturn this.getX()+this.getSize()/2;\r\n\t}", "title": "" }, { "docid": "403f5d5a44ee225d4a41e4f43e61df48", "score": "0.66686887", "text": "public int getCenterX(){ return centerX; }", "title": "" }, { "docid": "a884ff946621b140c5a1422e70350fe9", "score": "0.66563976", "text": "public Point getCenter() {\r\n\t\treturn new Point((this.left + this.right) / 2, (this.top + this.bottom) / 2);\r\n\t}", "title": "" }, { "docid": "b5391ac960a4b5064fa9f1dda576781a", "score": "0.66511685", "text": "public int getXCoord()\r\n\t{\r\n\t\treturn x;\r\n\t}", "title": "" }, { "docid": "5baa2b3f936e642d2221798dfa83bcca", "score": "0.6616682", "text": "public int getMinX()\r\n\t{\r\n\t\treturn Math.min(vertices.get(0).x, vertices.get(2).x);\r\n\t}", "title": "" }, { "docid": "dc93048b62c2e0bc72bf9535d238a325", "score": "0.658754", "text": "public double getXCoordinate(){\r\n\t\t\r\n\t\treturn x;\r\n\t\t\r\n\t}", "title": "" }, { "docid": "e9773a4c41050c54651421e962c48bc5", "score": "0.65805626", "text": "@Override\n\tpublic DoubleProperty centerXProperty() {\n\t\treturn dpx;\n\t}", "title": "" }, { "docid": "5f85cd6d1410f3eb75c338d5c1178da4", "score": "0.6566555", "text": "@Override\n\tpublic int getXcoord() {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "0e2b1032bd4a78b58b503afd257ac02a", "score": "0.6551845", "text": "public int getCentralRegionX() {\n return x / 8;\n }", "title": "" }, { "docid": "e8c994bb52fd82ca7771f99bb6c857b8", "score": "0.655087", "text": "public int getX4(){\n\t\treturn this.getCenterX() + (int) (-majorAxis*Math.cos(theta) + minorAxis*Math.sin(theta));\n\t}", "title": "" }, { "docid": "13f40d00775a72f5be6f74823e08f4d5", "score": "0.6548188", "text": "public int getX1() {\n\t\treturn this.topLeftPoint.x;\n\t}", "title": "" }, { "docid": "73c85fa06abe4e86682c3381ef2a39ab", "score": "0.65371263", "text": "public int getEdgeX(Vertex Vertex)\n {\n double direction = 1.0;\n if (Vertex.xpos < xpos)\n {\n direction = -1.0;\n }\n double x2subx1sqr = Math.pow((Vertex.xpos - xpos), 2);\n double y2suby1sqr = Math.pow((Vertex.ypos - ypos), 2);\n double rsqr = Math.pow(CIRCLEDIAMETER * 1.0 / 2, 2);\n double x = Math.sqrt((x2subx1sqr * rsqr / (x2subx1sqr + y2suby1sqr))) * direction + xpos;\n return (int) Math.round(x);\n }", "title": "" }, { "docid": "67c5453ddceff6c254f432c3a4aecff3", "score": "0.65268636", "text": "public Point getCenter();", "title": "" }, { "docid": "89260fb0271da18896022d4d6994b6ab", "score": "0.65227956", "text": "public Point getCenter()\n {\n return new Point((x1+x2)/2,(y1+y2)/2);\n }", "title": "" }, { "docid": "ac6f54bcea214c65c9e4af12a4549e6e", "score": "0.6521745", "text": "private int getX()\r\n\t{\r\n\t\tif(implicitParameter() != null )\r\n\t\t{\r\n\t\t\tint depth = 0;\r\n\t\t\tif( aDiagram != null )\r\n\t\t\t{\r\n\t\t\t\tdepth = new ControlFlow(aDiagram).getNestingDepth(node());\r\n\t\t\t}\r\n\t\t\treturn ((ImplicitParameterNodeView)implicitParameter().view()).getTopRectangle().getCenter().getX() -\r\n\t\t\t\t\tWIDTH / 2 + depth * WIDTH/2;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "a8f9401758b484169604a438ce6a2a77", "score": "0.6502035", "text": "public int getX() {\n\t\treturn xcoord;\n\t}", "title": "" }, { "docid": "2159f33058fdc75914da2e6393744051", "score": "0.648368", "text": "public double getxLocation()\n\t{\n\t\treturn circle.getX() + diameter/2;\n\t}", "title": "" }, { "docid": "0bbd3667c2d29422ff1e5cda8de41545", "score": "0.6462793", "text": "public Point getCentre(){\n\t\tPoint nouveauCentre = new Point (this.centre.getX(), this.centre.getY());\n\t\treturn nouveauCentre;\n\t}", "title": "" }, { "docid": "5d4a39cde213f92b214887670d352c65", "score": "0.6440966", "text": "public int getStartXCoord() {\r\n\t\treturn this.startXCoord;\r\n\t}", "title": "" }, { "docid": "04886420c9d4da422f89b1823b47de58", "score": "0.6429937", "text": "public int getXCoordinate() {\n return xCoordinate;\n }", "title": "" }, { "docid": "fb06677077e3555cb5928b4ecd1ef041", "score": "0.6426124", "text": "public int getX1(){\n\t\treturn this.getCenterX() + (int) (-majorAxis*Math.cos(theta) - minorAxis*Math.sin(theta));\n\t}", "title": "" }, { "docid": "242536880ae518d50928c53eeed3ce89", "score": "0.6407344", "text": "public FlxPoint getMidpoint()\r\n\t{\r\n\t\treturn getMidpoint(null);\r\n\t}", "title": "" }, { "docid": "f4e9ce2fdf7aa5c4dd7e8a73f0cf22df", "score": "0.64060724", "text": "public double getLeftX() {\n return m_Pad.getRawAxis(1); //Return the left X axis value\n }", "title": "" }, { "docid": "03d9f9ba1d76cfca8de3906e7de119e8", "score": "0.6399704", "text": "public int getAbsoluteX() {\r\n\t\tint x = this.mPosXAbs - (this.getWidth() / 2 * (mOrigin % 3));\r\n\r\n\t\tif(mParent != null) {\r\n\t\t\tx += mParent.getWidth() * this.mXBorder;\r\n\t\t\tx += mParent.getAbsoluteX();\r\n\t\t}\r\n\t\t\r\n\t\treturn x;\r\n\t}", "title": "" }, { "docid": "c9f3b8a5469dcdeffbb8e8ab26140ec6", "score": "0.6398009", "text": "public Point getCenter() {\r\n\t\treturn center;\r\n\t}", "title": "" }, { "docid": "07afc249d34d1486b0c805b04807f919", "score": "0.6389733", "text": "public Point getCenter() {\n\t\treturn new Point(bounds.x + (int) (bounds.width / 2), bounds.y + (int) (bounds.height / 2));\n\t}", "title": "" }, { "docid": "dd0321e7a3b853b81e9644c985836610", "score": "0.63853616", "text": "public double getStartXCoordinate() {\n return this.startLocation.x;\n }", "title": "" }, { "docid": "fd77d2b37771fdabe5641476b1b2921c", "score": "0.63769114", "text": "public int getGradientCenterX() {\n return gradientCenterX;\n }", "title": "" }, { "docid": "7b6704e453b3eea99313d86e97f3bfb5", "score": "0.6371174", "text": "public int getPositionX(){\n \n return circulo.getPositionX();\n \n }", "title": "" }, { "docid": "e667eae64ad6e1d2b4924a89c597a4b8", "score": "0.63701177", "text": "public Coordinate getCenterPoint()\n\t{\n\t\treturn this.centerPoint;\n\t}", "title": "" }, { "docid": "7f38e9250c82150d8a48565ad7512724", "score": "0.63626", "text": "public double getActiveEllipseCenterX() {\n return _activeEllipseModel.getCenterX();\n }", "title": "" }, { "docid": "cde30e1e17492c1e1b9d3166dadd6c17", "score": "0.6359987", "text": "public int getX() {\r\n\t\treturn this.mPosXAbs;\r\n\t}", "title": "" }, { "docid": "9271145208afae63900ca18bd6cc3595", "score": "0.6357111", "text": "public int getXStart() {\n return x_start;\n }", "title": "" }, { "docid": "98d2d79c16c77eef3e31bc153ec7b9fb", "score": "0.63570696", "text": "double getStartX();", "title": "" }, { "docid": "3618e163946012f03d1abece899012a5", "score": "0.63462794", "text": "public Point getMidPoint(){\r\n\t\treturn new Point(x,y);\r\n\t\t}", "title": "" }, { "docid": "7eba202eb1957f1fd4ff32575145258b", "score": "0.6343862", "text": "public Point getCenter() {\n return center.get();\n }", "title": "" }, { "docid": "87a7afa38f2978b3e58f0cfe3c0d5f30", "score": "0.6339556", "text": "public int getDrawXPosition(double x) {\n return (int) (x + getXRadius() - getCentreX());\n }", "title": "" }, { "docid": "8c2b56d32c4878a1977b0cf267a4cd31", "score": "0.63283044", "text": "public float get_x() {\n return rectangle.getX();\n }", "title": "" }, { "docid": "2413f16550b6cdd016d6e5b706495696", "score": "0.63270795", "text": "public double getXPosition(){\n\t\treturn x;\n\t}", "title": "" }, { "docid": "13567ee4e9e9c0be7efbce87bfb32858", "score": "0.63199085", "text": "public int getXCoord() {\n return xcoord;\n }", "title": "" }, { "docid": "341bf5fff8e4590fe68a53693737e0dc", "score": "0.63187975", "text": "public int getXPosition()\n {\n return x;\n }", "title": "" }, { "docid": "a3d305a9a8985b064578edc53a74cd4a", "score": "0.63181496", "text": "int getPixelX();", "title": "" }, { "docid": "7efc219cc4c3cca2e17bcbe533d6122c", "score": "0.6311008", "text": "public int getX() {\n \t\treturn absoluteX;\n \t}", "title": "" }, { "docid": "354194a302fbb076ca7af80369e87865", "score": "0.6310397", "text": "public double getExactX() {\n return xpos;\n }", "title": "" }, { "docid": "a50b5e16807a8d1efa6cc169153d9d85", "score": "0.6309547", "text": "public PointF getCenter() {\n return this.g;\n }", "title": "" }, { "docid": "1fddb83052e47e524ac8cf2c5c5bc854", "score": "0.6300952", "text": "@Override\n public Point centre() {\n return new Point(getMin().x+size().x/2,getMin().y+size().y/2);\n }", "title": "" }, { "docid": "d433e51e856660214d5a54da5a6e5a8a", "score": "0.62799466", "text": "public double getStartX() {\r\n return line.getStartX();\r\n }", "title": "" }, { "docid": "ed0ca650789e8cc0c23ea807be799c26", "score": "0.62794816", "text": "public int getX()\n {\n return XCoord;\n }", "title": "" }, { "docid": "8e9df22cb89f37fe68054c5f26ee8d65", "score": "0.62745076", "text": "public double getX() {\n return axisUnitVector.getX();\n }", "title": "" }, { "docid": "8d2b3a58c0db5361f3076fdf65f1c469", "score": "0.6274499", "text": "private float leftInnerBoundary()\r\n\t{\r\n\t\treturn this.x+(this.width*0.25f);\r\n\t}", "title": "" }, { "docid": "2e31e82f70a8d965631d7432157ad962", "score": "0.62741756", "text": "public int getxCoord() {\n\t\treturn xCoord;\n\t}", "title": "" }, { "docid": "457090a30ca5bf717cd0b312ac56586a", "score": "0.62739384", "text": "public int getStartX(){\n return start.getX();\n }", "title": "" }, { "docid": "d56eb47eb994f36e5b35b68feb7bc1aa", "score": "0.62719095", "text": "@Override\r\n\tpublic int GetPosx() {\n\t\treturn super.getPosx();\r\n\t}", "title": "" }, { "docid": "320bf5e47d1710e7df8d4f4419ef243d", "score": "0.6271733", "text": "public double getX(){\r\n\t\treturn xCoord;\r\n\t}", "title": "" }, { "docid": "b88562d7a7b52e63537143cc5f0feff6", "score": "0.62676233", "text": "public double getLeftX(){\r\n\t\treturn stick.getRawAxis(0);\r\n\t}", "title": "" }, { "docid": "15185ad02b22141cfce03003f86a56e5", "score": "0.6264652", "text": "public SystemPoint getCenter ()\r\n {\r\n return new SystemPoint(x + (width / 2), y + (height / 2));\r\n }", "title": "" }, { "docid": "f60c1a4937302fb06cbfaaecdba7ca0d", "score": "0.6251283", "text": "public int getXCoord(){\r\n \treturn xPos;\r\n }", "title": "" }, { "docid": "babd63b67d259fbfee9c59113cedbcb5", "score": "0.6247349", "text": "public Point2D.Double getCentroid() { return new Point2D.Double(0.,0.); }", "title": "" }, { "docid": "39690598e0c118556df1b9d310d2d886", "score": "0.62428355", "text": "public int getX(){\n\t\treturn this.coordX;\n\t}", "title": "" }, { "docid": "c06b76177dd0ac33dd69f3ea813db841", "score": "0.62373495", "text": "private void center() {\r\n double totalx = 0;\r\n double totaly = 0;\r\n for (int i = 0; i < graph.V(); i++) {\r\n Node v_i = graph.getNode(i);\r\n totalx += v_i.getX();\r\n totaly += v_i.getY();\r\n }\r\n double avgx = totalx / graph.V();\r\n double avgy = totaly / graph.V();\r\n double dx = width / 2 - avgx;\r\n double dy = height / 2 - avgy;\r\n \r\n for (int i = 0; i < graph.V(); i++) {\r\n Node v_i = graph.getNode(i);\r\n v_i.setX((int)(v_i.getX() + dx));\r\n v_i.setY((int)(v_i.getY() + dy));\r\n }\r\n }", "title": "" }, { "docid": "c96f2d2079329d9a5e62a4f7b522d1e2", "score": "0.6231787", "text": "public Point getMidpoint() {\n return new Point(getXMidpoint(), getYMidpoint());\n }", "title": "" }, { "docid": "18867b7611993f2c3f3ba4e88bb32b3d", "score": "0.62306094", "text": "public int getX() {\n\t\treturn g_intPositionX;\n\t}", "title": "" }, { "docid": "b67be8779ce41305b0fe18ec75bbc76f", "score": "0.62275827", "text": "public int getXCoord() {\r\n\t\treturn XCOORD;\r\n\t}", "title": "" }, { "docid": "2dff212be07c6e442911977ce30ec632", "score": "0.62221265", "text": "public int xSpot()\n {\n return Math.round(imgSelf.getX());\n }", "title": "" }, { "docid": "18e229fa1c7f83f10cfad79fec5caadb", "score": "0.6220082", "text": "public int getCoordX() {\n return coordX;\n }", "title": "" }, { "docid": "a87ef0ff7414430725955103b77ab7c3", "score": "0.62193614", "text": "public double getX() {\n return xCoord;\n }", "title": "" }, { "docid": "2b04f2d5ecde16e45fa5caaafb72690a", "score": "0.6201807", "text": "public abstract Integer getXBoundary();", "title": "" }, { "docid": "c7ab04d4974169d13cb2c5e6621a1d12", "score": "0.61997145", "text": "public void setXCoordinate(int value) {\n\t\tcenterX = value;\n\t}", "title": "" }, { "docid": "5eab1b8fd8b3c894fb01fe3a0209b679", "score": "0.6193349", "text": "public double getMidpoint() {\n\t\treturn (getLength() / 2.0) + begin;\n\t}", "title": "" }, { "docid": "68f3574d65b873a9715ef7f925a8dc7d", "score": "0.61852777", "text": "public Point2D.Float center() {\n \treturn p;\n }", "title": "" }, { "docid": "d77f7aece94124d2cbfed1afa3432e85", "score": "0.61790967", "text": "public int getX() {\n\t\treturn xPos;\n\t}", "title": "" } ]
168f4e7f82b2f4c08ede3839af346f23
Created by loicstephan on 2017/10/07.
[ { "docid": "862eede794df8e0df76a63859683dac2", "score": "0.0", "text": "public interface MenuPosition {\n\n int POS_HOME = 0;\n int POS_PROFILE = 1;\n int POS_PROMOTION = 2;\n int POS_ACCOUNT = 3;\n\n int POS_LOGOUT = 5;\n\n int EF_POS_LOGOUT =4;\n}", "title": "" } ]
[ { "docid": "ccbad2fe39581989696edf7ff479266d", "score": "0.6387346", "text": "private static void somrtinhg() {\n\t\t\r\n\t}", "title": "" }, { "docid": "1f6ca7603428a226b143ebf504f69fdb", "score": "0.61003196", "text": "@Override\n protected void initialize() {\n \n }", "title": "" }, { "docid": "c63a11bb1bf0acb98a99c66ee94527a7", "score": "0.585366", "text": "@Override\r\n\tpublic void ispeci() {\n\r\n\t}", "title": "" }, { "docid": "4faa810505ebcb260aff0793654a731e", "score": "0.5793525", "text": "@Override\n\tpublic void refuel() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.57860154", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.57860154", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.57860154", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "646377f9a04958a6eeea1118fddba04e", "score": "0.5718999", "text": "@Override\n\tpublic void refuel() {\n\n\t}", "title": "" }, { "docid": "770d423e40bf5782a700bc181e8b8a1e", "score": "0.5679686", "text": "@Override\n\tvoid init() {\n\t\t\n\t}", "title": "" }, { "docid": "ebfe1bb4dd1c0618c0fad36d9f7674b4", "score": "0.56568986", "text": "@Override\n protected void initialize() {\n\n }", "title": "" }, { "docid": "c04e1693c791e5601b6d72a13641e7b1", "score": "0.5645062", "text": "@Override\n\tpublic void angriff() {\n\n\t}", "title": "" }, { "docid": "28237d6ae20e1aa35aaca12e05c950c9", "score": "0.56436825", "text": "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "title": "" }, { "docid": "b62a7c8e0bb1090171742c543bf4b253", "score": "0.56301254", "text": "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "title": "" }, { "docid": "5f1811a241e41ead4415ec767e77c63d", "score": "0.5615763", "text": "@Override\n\tprotected void init() {\n\n\t}", "title": "" }, { "docid": "06b59299a5db6a0902fdbf88e7826cfa", "score": "0.5601906", "text": "private void naceSer() {\n\n\t}", "title": "" }, { "docid": "7f91c82c66ced12c5b193d3c89d68e4c", "score": "0.5596209", "text": "@Override\n\tprotected void init() {\n\t}", "title": "" }, { "docid": "21593c9c9d9ac1228e5ee377625fa941", "score": "0.55849683", "text": "@Override\n public void wrapup() {\n \n }", "title": "" }, { "docid": "9b8d94120800074e25f9674e2e960bd0", "score": "0.55727774", "text": "@Override\n public void curar() {\n\n }", "title": "" }, { "docid": "fd7df110e087032be8c98522c4493f41", "score": "0.5570689", "text": "@Override\n public void otvori() {\n }", "title": "" }, { "docid": "fd7df110e087032be8c98522c4493f41", "score": "0.5570689", "text": "@Override\n public void otvori() {\n }", "title": "" }, { "docid": "ccde520bca72caa0d77ef1b117291759", "score": "0.55653864", "text": "@Override\r\n\tpublic void osmossis() {\n\r\n\t}", "title": "" }, { "docid": "fede515c585b365b04aace2b909737cf", "score": "0.55435157", "text": "@Override\r\n\tvoid dibujar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "9a26c4906f8195084e9ec158504cab47", "score": "0.5542927", "text": "@Override\n public void init() {\n \n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.5539825", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.5539825", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.5539825", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.5539825", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.5539825", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.5539825", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.5539825", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.5539825", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.5539825", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.5539825", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.5539825", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.5539825", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.5539825", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.5539825", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "94b0ced5bfd6c8796dfd708a164694df", "score": "0.5516609", "text": "@Override\n public void desplazarse() {\n }", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.54865986", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.54865986", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.54865986", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.54865986", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "c0781256114b6e21545493bb75f18b9d", "score": "0.5465991", "text": "@Override\n\tprotected void sanityCheck() {\n\t\t\n\t}", "title": "" }, { "docid": "2ccd2a90144fab8b5fa71c58ca003352", "score": "0.5457426", "text": "@Override\n\tpublic void falar() {\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.54531", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.54531", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.54531", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "f8978d93b84e5118882a4ff5e000e716", "score": "0.5432468", "text": "private void init() {\n\t\t\n\t}", "title": "" }, { "docid": "74a1be816f56189120d6d74f61abd8f9", "score": "0.54118156", "text": "@Override\n\tpublic void apagate() {\n\t\t\n\t}", "title": "" }, { "docid": "27e436f0a0c9200a542c73eabe9c3662", "score": "0.54046476", "text": "private void Met4() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b78de853138b4d1a9183420c6cd735cc", "score": "0.5404606", "text": "@Override\n public void init() {\n\n }", "title": "" }, { "docid": "bdc1683df7d1d6b2d988cd3acab4903e", "score": "0.5403096", "text": "public void mo5201a() {\n }", "title": "" }, { "docid": "8a51433116320d5ea7de338cae668e7e", "score": "0.5402124", "text": "@Override\n\tpublic void competir() {\n\t\t\n\t}", "title": "" }, { "docid": "c54df76b32c9ed90efddc6fd149a38c7", "score": "0.53964806", "text": "@Override\n protected void init() {\n }", "title": "" }, { "docid": "c13e6a1b7c130afa9fb0f34225bea4ef", "score": "0.5395071", "text": "protected void mo1555b() {\n }", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5368912", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5368912", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5368912", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5368912", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5368912", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5368912", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5368912", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5368912", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5368912", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5368912", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.53661144", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.53661144", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "7aa6963c647c1b2028e2058b152485e1", "score": "0.5361796", "text": "@Override\n\tpublic void generate() {\n\t\t\n\t}", "title": "" }, { "docid": "0f6e1929716bfb216fb0d53f4c72c746", "score": "0.53575975", "text": "@Override\n\tpublic void hesapla() {\n\t\t\n\t}", "title": "" }, { "docid": "b8693030a2b5a0ed9423a2578e5d2a26", "score": "0.5348788", "text": "@Override\n\tpublic void toto() {\n\t\t\n\t}", "title": "" }, { "docid": "1b2b14182c814ea12be48fa3ab499e9d", "score": "0.5337378", "text": "@Override\r\n\tprotected void initialize() {\r\n\t}", "title": "" }, { "docid": "16a4669a2213802ac94829fc8d9946ff", "score": "0.53350186", "text": "@Override\n\t\tpublic void init() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "b941b399a338e8c204f1063e54a94824", "score": "0.53322935", "text": "public void mo7103g() {\n }", "title": "" }, { "docid": "4a4d6ca4f76cf550f30a1b3469c5c600", "score": "0.5326582", "text": "@Override\n\tpublic void heilen() {\n\n\t}", "title": "" }, { "docid": "2cf71c7a156da1dfe31295752aef3fb8", "score": "0.53230196", "text": "@Override\n\tpublic void init() {\n\t}", "title": "" }, { "docid": "2cf71c7a156da1dfe31295752aef3fb8", "score": "0.53230196", "text": "@Override\n\tpublic void init() {\n\t}", "title": "" }, { "docid": "2cf71c7a156da1dfe31295752aef3fb8", "score": "0.53230196", "text": "@Override\n\tpublic void init() {\n\t}", "title": "" }, { "docid": "2cf71c7a156da1dfe31295752aef3fb8", "score": "0.53230196", "text": "@Override\n\tpublic void init() {\n\t}", "title": "" }, { "docid": "2cf71c7a156da1dfe31295752aef3fb8", "score": "0.53230196", "text": "@Override\n\tpublic void init() {\n\t}", "title": "" }, { "docid": "2cf71c7a156da1dfe31295752aef3fb8", "score": "0.53230196", "text": "@Override\n\tpublic void init() {\n\t}", "title": "" }, { "docid": "588ab475e29950e8a1944c4a28fe2189", "score": "0.53220797", "text": "public void mo7036d() {\n }", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.5315145", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.5315145", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.5315145", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.5315145", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "892e81ba33fe99f590f49f4fd7ed10a8", "score": "0.53107905", "text": "private void init() {\r\n\t\t\r\n\t}", "title": "" }, { "docid": "8ae46d2c9cffbb6ac7a68b17e137a89a", "score": "0.5300874", "text": "@Override\n public void initialize() {}", "title": "" }, { "docid": "8ae46d2c9cffbb6ac7a68b17e137a89a", "score": "0.5300874", "text": "@Override\n public void initialize() {}", "title": "" }, { "docid": "24ceb1b7890c17791839d3a2649acb8b", "score": "0.52934873", "text": "@Override\n\tprotected void initialize() {\n\t}", "title": "" }, { "docid": "24ceb1b7890c17791839d3a2649acb8b", "score": "0.52934873", "text": "@Override\n\tprotected void initialize() {\n\t}", "title": "" }, { "docid": "598681cc815af7b9f96d5d7ce97e7b20", "score": "0.52805334", "text": "public void mo5669b() {\n }", "title": "" }, { "docid": "be30a755a49491d0c1db538cbb3c601d", "score": "0.52803564", "text": "@Override\r\n\tpublic void init() {\n\t}", "title": "" }, { "docid": "be30a755a49491d0c1db538cbb3c601d", "score": "0.52803564", "text": "@Override\r\n\tpublic void init() {\n\t}", "title": "" }, { "docid": "07a182d421938d59ecf67839293fe316", "score": "0.5279079", "text": "private void preCreate() {\n\t\t\n\t}", "title": "" }, { "docid": "b1e3eb9a5b9dff21ed219e48a8676b34", "score": "0.5275647", "text": "@Override\n public void memoria() {\n \n }", "title": "" }, { "docid": "b1e3eb9a5b9dff21ed219e48a8676b34", "score": "0.5275647", "text": "@Override\n public void memoria() {\n \n }", "title": "" }, { "docid": "6c823d8b0c4f55d3f03359daefc39a00", "score": "0.5275351", "text": "@Override\n\tpublic void lanzar() {\n\n\t}", "title": "" }, { "docid": "cce15f647f795017e06f2ca544477ccd", "score": "0.5273131", "text": "@Override\n\tpublic void chamCong() {\n\n\t}", "title": "" }, { "docid": "bf2576d8787bd62224120609f513e0af", "score": "0.52668965", "text": "@Override\n public int stamp () {\n return 0;\n }", "title": "" }, { "docid": "176e34d0e98f75196c596e32acb014d3", "score": "0.52557564", "text": "protected Indirect() {/* intentionally empty block */}", "title": "" }, { "docid": "e4c84185784038e7052333b80871b265", "score": "0.5253929", "text": "@Override\n public void initialize() {\n \n }", "title": "" } ]
515939cb4d235b34aa5d89b1e31bebc5
Read in the full test block.
[ { "docid": "16854577ae087499fc7876533aaf3a79", "score": "0.7071486", "text": "private static List<String> readTestBlock(BufferedReader reader)\n {\n try\n {\n // Read in the country's name.\n s_country = reader.readLine();\n\n // Read in the number of lines for this test.\n int lineCount = Integer.parseInt(reader.readLine());\n\n // Keep reading until we find a stopping point.\n List<String> block = new ArrayList<>();\n for (int i = 0; i < lineCount; ++i)\n {\n String line = reader.readLine();\n block.add(line);\n }\n return block;\n }\n catch (Exception exception)\n {\n exception.printStackTrace();\n return Collections.emptyList();\n }\n }", "title": "" } ]
[ { "docid": "3febca32867592380e1e43def5b7bf5d", "score": "0.6533963", "text": "@Test\n public void singleByteReadTest() throws IOException {\n singleByteReadInternal(mBlockStream, 0);\n }", "title": "" }, { "docid": "f4a37c05a79c3d6e479da7c6fb8bd18a", "score": "0.6527851", "text": "@Override\n public void testReadHugeChunks() {\n }", "title": "" }, { "docid": "7b3c5da42a5f76bb038410a3c7ca5725", "score": "0.6488153", "text": "@Test\n public void arrayReadTest() throws IOException {\n arrayReadInternal(mBlockStream, 0);\n }", "title": "" }, { "docid": "ee82f430032279c73483a3ef04f74ab5", "score": "0.6473161", "text": "@Test\n public void arrayFullReadTest() throws IOException {\n arrayFullReadInternal(mBlockStream, 0);\n }", "title": "" }, { "docid": "9bdfabf765960d8dd2e0403d073a20dd", "score": "0.6443659", "text": "@Ignore\n\t@Test\n\tpublic void testReadData() {\n\t\tSystem.out.println(\"readData\");\n\t\tEx6_Andras instance = new Ex6_Andras();\n\t\tinstance.displayFullMainFile();\n\t}", "title": "" }, { "docid": "dc3803ade21c7db3903ae137d818cdf7", "score": "0.6442307", "text": "public void testRead() throws Exception {\r\n\t\t// JUnitDoclet begin method read\r\n\t\t// JUnitDoclet end method read\r\n\t}", "title": "" }, { "docid": "9a29f14d8a1b2f088253eb2708f5ff6b", "score": "0.64405406", "text": "private void readBlocks() {\n createFile(\"readblocks.byt\", fillFile4kb());\n\n startTime = System.currentTimeMillis();\n for (int i = 0; i < 262144; i++) {\n readFile(\"readblocks.byt\");\n }\n stopTime = System.currentTimeMillis();\n System.out.println(\"Leitura: \" + secondsElapsedTime(startTime, stopTime) + \" segundos.\");\n }", "title": "" }, { "docid": "b6617d7daa61951c5a78b3dc532f009a", "score": "0.6336884", "text": "public byte[] readBlock();", "title": "" }, { "docid": "99cceeae95e4987d634567c56131f90e", "score": "0.59793377", "text": "private void singleByteReadInternal(UnderStoreBlockInStream inStream, int startIndex)\n throws IOException {\n long remaining = inStream.remaining();\n for (int i = startIndex; i < startIndex + BLOCK_LENGTH; i++) {\n Assert.assertEquals(i, inStream.read());\n remaining--;\n Assert.assertEquals(remaining, inStream.remaining());\n }\n // Block in stream should be complete, and should return -1, not real data.\n Assert.assertEquals(-1, inStream.read());\n Assert.assertEquals(0, inStream.remaining());\n }", "title": "" }, { "docid": "d1c9921d18a14160fb65fdc178a1d816", "score": "0.59650534", "text": "@Test\n\tpublic void testReaded() {\n\t\t\n\t}", "title": "" }, { "docid": "d077b2d608b9275ee4cdd02159950137", "score": "0.594329", "text": "@Test\n public void testGetReader() throws IOException {\n final byte[] buffer = createFormattedBuffer();\n ByteArraySegment segment = new ByteArraySegment(buffer);\n\n for (int offset = 0; offset < buffer.length / 2; offset++) {\n int length = buffer.length - offset * 2;\n byte[] readBuffer = new byte[length];\n try (InputStream stream = segment.getReader(offset, length)) {\n int readBytes = StreamHelpers.readAll(stream, readBuffer, 0, readBuffer.length);\n Assert.assertEquals(\"Unexpected number of bytes read from the InputStream at offset \" + offset, length, readBytes);\n }\n\n for (int i = 0; i < length; i++) {\n Assert.assertEquals(\"Unexpected value at index \" + i + \" after reading from offset \" + offset, segment.get(i + offset), readBuffer[i]);\n }\n }\n }", "title": "" }, { "docid": "9a2a16c0b04d1300ac30d7e4d725af0e", "score": "0.5894404", "text": "public void testRead()\n {\n read( \"READ \" + TestUtils.getDataLabel( PolicyTestData.class, \"POLICIES_TP1\" ), PolicyTestData.POLICIES_TP1 );\n }", "title": "" }, { "docid": "164a2a20f928794be7ea88957099fa88", "score": "0.58846074", "text": "@Test\n public void singleByteReadEOFTest() throws IOException {\n singleByteReadInternal(mEOFBlockStream, (int) BLOCK_LENGTH);\n }", "title": "" }, { "docid": "2a08f152cef5a4a3693a9aa26e50e6cb", "score": "0.58663994", "text": "public void read() {\n\t\t\n\t}", "title": "" }, { "docid": "bf512848fca2f6b80ebe41d58079c8c6", "score": "0.58418256", "text": "@Test //ReadALL\n\tpublic void readAll() {\n\t\t\n\t\t\n\t\n\t}", "title": "" }, { "docid": "732abee5be13108d119e7ba287787fff", "score": "0.58352244", "text": "@Test\n public void arrayFullReadEOFTest() throws IOException {\n arrayFullReadInternal(mEOFBlockStream, (int) BLOCK_LENGTH);\n }", "title": "" }, { "docid": "e447d0b1af279a78ee8933c0632cac6e", "score": "0.5815872", "text": "@Test\n\tpublic void testParseRawSection()\n\t{\n \tParsedSection actualParsedSection = fileParser.parseRawSection(null);\n\t\tassertNull(actualParsedSection);\n\t\t\n\t\t// positive test - parse raw section\n\t\tRawSection testingRawSection = NotekeeperTestingUtils.createRawSection1();\n\t\tactualParsedSection = fileParser.parseRawSection(testingRawSection);\n\t\tNotekeeperTestingUtils.assertEquals(testingRawSection, actualParsedSection.getRawSection());\n\t\tassertEquals(3, actualParsedSection.getHeaders().size());\n\t\tassertEquals(4, actualParsedSection.getBody().size());\n\t}", "title": "" }, { "docid": "2eb1b2d1ce63e72bc177d8602b427282", "score": "0.57993793", "text": "@Test\n\tpublic void readTask() {\n\t\tLOGGER.info(\"Reading tasks...\");\n\t\ttest.log(LogStatus.PASS, \"read task passed\");\n\t\tassertTrue(true);\n\t\t\n\t}", "title": "" }, { "docid": "058f75c07531ed879e29bad7f008140d", "score": "0.57755935", "text": "private void arrayFullReadInternal(UnderStoreBlockInStream inStream, int startIndex)\n throws IOException {\n int size = (int) inStream.remaining();\n byte[] readBytes = new byte[size];\n\n // Fully read the block.\n Assert.assertEquals(size, inStream.read(readBytes));\n Assert.assertEquals(0, inStream.remaining());\n Assert.assertTrue(BufferUtils.equalIncreasingByteArray(startIndex, size, readBytes));\n\n // Next read should return -1, and not real data.\n Assert.assertEquals(-1, inStream.read(readBytes));\n Assert.assertEquals(0, inStream.remaining());\n }", "title": "" }, { "docid": "44a85e0fcb8834b692cfda33597cdd2e", "score": "0.5766413", "text": "@Test\r\n\tpublic void parseTestFile()\r\n\t\t\tthrows UnexpectedInputException, ParseException, NonTransientResourceException, Exception {\n\r\n\t\tODSReader odsReader = new ODSReader();\r\n\t\tfor (int i = 0; i < 12 * 5; i++) {\r\n\t\t\todsReader.read();\r\n\t\t}\r\n\r\n\t}", "title": "" }, { "docid": "63635200ff2ed921ea5d48531c7bcd55", "score": "0.57474893", "text": "@Test\n public void readTxtFileFromRaw() {\n }", "title": "" }, { "docid": "03a0d5df5dccca7716bcffacd20d6c7e", "score": "0.57464755", "text": "private byte[] readBlock (InputStream in) throws IOException {\n int length = in.read();\n byte[] data = new byte[length];\n int index = 0;\n do {\n bytesRead = in.read(data, index, length - index);\n index += bytesRead;\n } while (length - index > 0);\n\n return data; \n }", "title": "" }, { "docid": "b6244345f90dadea0f97b1403f964a7c", "score": "0.5740658", "text": "private void readWriteBlocks() {\n System.out.println(\"Taxa de leitura/gravação de blocos 4k.....................................:\\n\");\n writeBlocks();\n readBlocks();\n System.out.println(\"---------------------------------------------------------------------------\\n\");\n }", "title": "" }, { "docid": "650654f947354c5dcbe8c81ea6974497", "score": "0.5740316", "text": "@Test\n public void testMultipleRead() throws Exception {\n for (int i = 0; i < 100; i++) {\n final String data = getTestString(600, 150);\n try (BufferedWriter w = Files.newBufferedWriter(mTestFile.toPath())) {\n w.write(data);\n }\n String[] lines = data.split(\"\\n\");\n try (KernelCpuProcStringReader.ProcFileIterator iter = mReader.open(true)) {\n for (String line : lines) {\n assertEquals(line, iter.nextLine().toString());\n }\n }\n assertTrue(mTestFile.delete());\n }\n }", "title": "" }, { "docid": "fe2edaef1c288992c8eed2681acae636", "score": "0.57358253", "text": "protected void read() {\n try {\n //System.out.println(\"Starting to read\");\n\n // number of following bytes to read\n byte followingBytes = in.readByte();\n\n //System.out.println(followingBytes);\n byte[] bytesRead = new byte[followingBytes];\n in.read(bytesRead);\n \n myParser.setInput(bytesRead); \n System.out.print(myParser.toString());\n } catch (IOException ex) {\n System.out.println(\"Error reading line\");\n }\n \n \n \n }", "title": "" }, { "docid": "0223c589f91c80857dc2af9683927d35", "score": "0.56750464", "text": "@Test\n public void testLoadRawSectionsFromFile() throws Exception\n {\n Scanner fileScanner = new Scanner(EMPTY_TEST_FILE);\n List<RawSection> actualSections = fileParser.loadRawSectionsFromFile(fileScanner);\n assertEquals(0, actualSections.size());\n\n // positive test - has multiple sections; should get all 3 sections back\n fileScanner = new Scanner(THREE_SECTIONS_TEST_FILE);\n\n actualSections = fileParser.loadRawSectionsFromFile(fileScanner);\n assertEquals(3, actualSections.size());\n assertEquals(0, actualSections.get(0).getStartingLineNumber());\n assertEquals(7, actualSections.get(0).getText().size());\n assertEquals(9, actualSections.get(1).getStartingLineNumber());\n assertEquals(7, actualSections.get(1).getText().size());\n assertEquals(17, actualSections.get(2).getStartingLineNumber());\n assertEquals(11, actualSections.get(2).getText().size());\n\n // negative test - one of the sections have NO headers; expect all sections back\n fileScanner = new Scanner(NEGATIVE_SECTIONS_TEST_FILE);\n\n actualSections = fileParser.loadRawSectionsFromFile(fileScanner);\n assertEquals(3, actualSections.size());\n }", "title": "" }, { "docid": "b68af9c5df56b0b00afda24c8928c65b", "score": "0.5674125", "text": "private void arrayReadInternal(UnderStoreBlockInStream inStream, int startIndex)\n throws IOException {\n long remaining = inStream.remaining();\n int size = (int) BLOCK_LENGTH / 10;\n byte[] readBytes = new byte[size];\n\n // Read first 10 bytes\n Assert.assertEquals(size, inStream.read(readBytes));\n Assert.assertTrue(BufferUtils.equalIncreasingByteArray(startIndex, size, readBytes));\n remaining -= size;\n Assert.assertEquals(remaining, inStream.remaining());\n\n // Read next 10 bytes\n Assert.assertEquals(size, inStream.read(readBytes));\n Assert.assertTrue(BufferUtils.equalIncreasingByteArray(startIndex + size, size, readBytes));\n remaining -= size;\n Assert.assertEquals(remaining, inStream.remaining());\n\n // Read with offset and length\n Assert.assertEquals(1, inStream.read(readBytes, size - 1, 1));\n Assert.assertEquals(startIndex + size * 2, readBytes[size - 1]);\n remaining--;\n Assert.assertEquals(remaining, inStream.remaining());\n }", "title": "" }, { "docid": "1c543a4f7966e5e36fb8e38be514f5f7", "score": "0.56728196", "text": "public BlockData readBlock(org.apache.hadoop.thriftfs.api.RequestContext ctx, Block block, long offset, int length) throws org.apache.hadoop.thriftfs.api.IOException, org.apache.thrift.TException;", "title": "" }, { "docid": "3438e01a150d5a0f83638008123c98d3", "score": "0.5651844", "text": "private AbstractGedLine readFileTestSource() throws IOException {\n return TestResourceReader.readFileTestSource(\n \"\", inputFilename);\n }", "title": "" }, { "docid": "9875b1aaa7eca006acb49128c178f3c2", "score": "0.5636298", "text": "void onRead(FunctionalBlock placement) throws SyntaxError, LogicalError;", "title": "" }, { "docid": "43e95bfbfcd7d730f57a4eaa4a0ec35e", "score": "0.56347513", "text": "public void testIfLastBlockEmpty() throws Exception {\n\t\tBlock<Patient> block = tree.getDiskManager().readBlock(tree.getMetadata().getNumberOfBlocks()-1);\n\t\tAssert.assertTrue(block.getType()!='E');\n\t}", "title": "" }, { "docid": "05a1811dd169b8e6e786d0c77045d37a", "score": "0.5596996", "text": "@Test\n public void testReadBzip2() throws Exception {\n byte[] input = generateInput(5000);\n runReadTest(input, BZIP2);\n }", "title": "" }, { "docid": "a02cdb87f4b0913122c284d832e5e620", "score": "0.559294", "text": "protected abstract void parseOneBlock();", "title": "" }, { "docid": "281dad6a304256021e820b1e70f9eff1", "score": "0.5568508", "text": "@Test\n public void testParseRawSections() throws Exception\n {\n \tList<RawSection> rawSections = fileParser.loadRawSections();\n \tList<ParsedSection> actualParsedSections = fileParser.parseRawSections(rawSections);\n \tassertEquals(6, actualParsedSections.size());\n \t\n \t// positive test - Test with an empty raw section\n \tRawSection emptyRawSection = new RawSection();\n \tList<RawSection> emptyRawSectionList = new ArrayList<RawSection>();\n \temptyRawSectionList.add(emptyRawSection);\n \tactualParsedSections = fileParser.parseRawSections(emptyRawSectionList);\n \tassertEquals(0, actualParsedSections.size());\n \t\n }", "title": "" }, { "docid": "42f362a7a6f908d5ced8dd05c0b7a32e", "score": "0.5561628", "text": "@Test\n public void arrayReadEOFTest() throws IOException {\n arrayReadInternal(mEOFBlockStream, (int) BLOCK_LENGTH);\n }", "title": "" }, { "docid": "c7dbc8b569f44c38127f00a1d4431f99", "score": "0.5549251", "text": "private void checkByteStreamReadWrite() throws Exception {\n String scopeName = \"byte-readwrite-test-scope\";\n String streamName = \"byte-readwrite-test-stream\";\n\n createScopeAndStream(scopeName, streamName);\n @Cleanup\n ByteStreamClientFactory clientFactory = ByteStreamClientFactory.withScope(scopeName, clientConfig);\n @Cleanup\n ByteStreamWriter writer = clientFactory.createByteStreamWriter(streamName);\n byte[] value = new byte[] { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 };\n int headOffset = 0;\n writer.write(value);\n writer.flush();\n @Cleanup\n ByteStreamReader reader = clientFactory.createByteStreamReader(streamName);\n for (int i = 0; i < 10; i++) {\n assertEquals(i, reader.read());\n }\n assertEquals(headOffset, reader.fetchHeadOffset());\n assertEquals(value.length, reader.fetchTailOffset());\n headOffset = 3;\n writer.truncateDataBefore(headOffset);\n writer.write(value);\n writer.flush();\n assertEquals(headOffset, reader.fetchHeadOffset());\n assertEquals(value.length * 2, reader.fetchTailOffset());\n byte[] read = new byte[5];\n assertEquals(5, reader.read(read));\n assertArrayEquals(new byte[] { 0, 1, 2, 3, 4 }, read);\n assertEquals(2, reader.read(read, 2, 2));\n assertArrayEquals(new byte[] { 0, 1, 5, 6, 4 }, read);\n assertEquals(3, reader.read(read, 2, 3));\n assertArrayEquals(new byte[] { 0, 1, 7, 8, 9 }, read);\n assertArrayEquals(new byte[] { 0, 1, 7, 8, 9 }, read);\n\n }", "title": "" }, { "docid": "70348133c2ca7635674cf0359968c5ce", "score": "0.55083495", "text": "protected void readData() {\n\n\t}", "title": "" }, { "docid": "9720fdd3b78dd02a0785a1082eb8006c", "score": "0.54864854", "text": "@Before\n public void before() throws IOException {\n File file = mFolder.newFile(TEST_FILENAME);\n FileOutputStream os = new FileOutputStream(file);\n // Create a file of 2 block sizes.\n os.write(BufferUtils.getIncreasingByteArray((int) FILE_LENGTH));\n os.close();\n mBlockStream =\n new UnderStoreBlockInStream(0, BLOCK_LENGTH, BLOCK_LENGTH, file.getAbsolutePath());\n mEOFBlockStream = new UnderStoreBlockInStream(BLOCK_LENGTH, BLOCK_LENGTH, BLOCK_LENGTH,\n file.getAbsolutePath());\n }", "title": "" }, { "docid": "a5ca6fb6e80cb5503e36a3244c22048f", "score": "0.54829514", "text": "@Test\n public void read4() {\n request = new RequestRead(PAGEID);\n checkValidaLetta();\n }", "title": "" }, { "docid": "aea802bab5b53e5b07e5c78b4195739c", "score": "0.5477703", "text": "public void readTestFile(String testPath) {\n try {\n File f = new File(testPath);\n\t\t\tScanner sc = new Scanner(f);\n\n\t\t\twhile (sc.hasNextInt()) { // while file has more to read\n\t\t\t\ttry {\n\t\t\t\t\tmmu.processEntry(nextEntry(sc));\n\t\t\t\t} catch (EvictException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n }", "title": "" }, { "docid": "2fd4576c04e2fd6620c055106d17e0c5", "score": "0.54359", "text": "@Test\n public void read5() {\n request = new RequestRead(PAGEID_UTF8);\n checkValidaLetta();\n }", "title": "" }, { "docid": "bfbae87f15cda7ee58aff400332da2eb", "score": "0.54334795", "text": "@Test\n public void testReadChunkData() throws Exception {\n byte[] chunkData = \"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\".getBytes();\n this.diskFiles.createFixedLengthFile(this.fileChunksMeta);\n this.diskFiles.saveFileMeta(this.fileChunksMeta);\n this.diskFiles.writeChunkData(this.fileChunksMeta.getFileId(), 1, chunkData);\n byte[] data = this.diskFiles.readChunkData(this.fileChunksMeta.getFileId(), 1);\n\n Assert.assertArrayEquals(data, chunkData);\n }", "title": "" }, { "docid": "206ce853e3f4fef63677a4a92fe7a07c", "score": "0.5428014", "text": "@Test\n\tpublic final void readSubStream() throws EOFException {\n\t\tJvmInputStream in = new JvmInputStream(\n\t\t\tnew byte[]{ 0, 1, 2 },\n\t\t\tnew byte[]{ 3, 4, 5, 6 },\n\t\t\tnew byte[]{ 7, 8, 9, 10, 11 }\n\t\t);\n\t\tin.u1();\n\t\t\n\t\tJvmInputStream subIn = in.readSubStream(9);\n\t\tassertThat( subIn.readBytes(9), is(new byte[]{ 1, 2, 3, 4, 5, 6, 7, 8, 9 }) );\n\t}", "title": "" }, { "docid": "a22aefcba8674c49b362f52d8ec036b2", "score": "0.542687", "text": "private void readSequential() {\n createFile(\"read.byt\", fillFile(byteSize(200000))); //-> Arquivo de 200MB\n\n startTime = System.currentTimeMillis();\n readFile(\"read.byt\");\n stopTime = System.currentTimeMillis();\n System.out.println(\"Leitura: \" + secondsElapsedTime(startTime, stopTime) + \" segundos.\");\n }", "title": "" }, { "docid": "395479a60388add6adbec4f260466e93", "score": "0.54237914", "text": "@Test\r\n\tpublic void testReadFromEmptyFile() {\r\n\t\tMDFile testFile = getTestMDFile();\r\n\t\ttry {\r\n\t\t\ttestFile.seek(0);\r\n\t\t\tByteBuffer bb = ByteBuffer.allocate(100);\r\n\t\t\tint numBytesRead = testFile.read(bb);\r\n\t\t\tAssert.assertEquals(-1, numBytesRead);\r\n\t\t\tAssert.assertEquals(0, bb.position());\r\n\t\t} catch (IOException e) {\r\n\t\t\tcloseMDFile(testFile);\r\n\t\t\tAssert.fail();\r\n\t\t}\r\n\t\tcloseMDFile(testFile);\r\n\t}", "title": "" }, { "docid": "1964b841f372aa427db1da2862eb463a", "score": "0.54208046", "text": "@Test\n public void testReadJustChild() throws Exception {\n compositeReader.read(DataObject41.IID, ctx);\n verify(reader4, times(0))\n .readCurrentAttributes(any(InstanceIdentifier.class), any(Builder.class), any(ReadContext.class));\n verify(reader41).read(DataObject41.IID, ctx);\n }", "title": "" }, { "docid": "b4aab1bd7e6258ada6e47ddaa2165906", "score": "0.5419603", "text": "Ref<? extends Block> nextBlock() throws IOException;", "title": "" }, { "docid": "11d6c4ca8c812f9abcc08b50c6fb8494", "score": "0.5414018", "text": "public void testReadPART10_EVR_LE() throws Exception {\n DataInputStream in = new DataInputStream(\n new BufferedInputStream(new FileInputStream(PART10_EVR_LE)));\n try {\n ds.readFile(in, null, -1);\n } finally {\n try {\n in.close();\n } catch (Exception ignore) {}\n }\n }", "title": "" }, { "docid": "da95e5b1b44c304b97cdc0e1b8cad552", "score": "0.53996354", "text": "private void doRead() throws IOException {\n if (sc.read(bb) == -1) {\n logger.info(\"Input stream closed\");\n closed = true;\n }\n\n updateInterestOps();\n }", "title": "" }, { "docid": "99bb950b1f96e104dbb83ee435462618", "score": "0.5379287", "text": "public void doTest() {\n String s;\n int i;\n for (i = 0; i < 10; i++)\n System.out.println(i);\n while ((s = br.readLine() != null))\n br.ready();\n br.close();\n }", "title": "" }, { "docid": "511830acdb409c803ece4fdbf886ddfa", "score": "0.536677", "text": "@Test\r\n\tpublic void testReadWithNormalSizeBuffer() {\r\n\t\tlong writeValue = 4;\r\n\t\tMDFile testFile = getTestMDFile();\r\n\t\twriteValue(testFile, writeValue);\r\n\t\ttry {\r\n\t\t\ttestFile.seek(0);\r\n\t\t\tByteBuffer bb = ByteBuffer.allocate(Long.BYTES);\r\n\t\t\ttestFile.read(bb);\r\n\t\t\tlong readValue = bb.getLong();\r\n\t\t\tAssert.assertEquals(writeValue, readValue);\r\n\t\t} catch (IOException e) {\r\n\t\t\tcloseMDFile(testFile);\r\n\t\t\tAssert.fail();\r\n\t\t}\r\n\t\tcloseMDFile(testFile);\r\n\t}", "title": "" }, { "docid": "b9db63d5b2108918c128bfdc9365eee3", "score": "0.53649086", "text": "@Test\n public void testRead() {\n Summary expInstance = instance.Read(msg.getHeaderValue(\"X-Read\").length() > 0);\n boolean expResult = expInstance.isRead();\n boolean result = instance.isRead();\n assertEquals(expResult, result);\n }", "title": "" }, { "docid": "4c97db1b90692928c1197aa4bb9c392c", "score": "0.5357563", "text": "@Test\n public void testInitializeStreamWithCustomSize() throws IOException {\n String file = getClass().\n getResource(\"/anomaly/ftv5.2016-03-15.compress9.bigend.empty\").getPath();\n FSDataInputStream stm = getTestStream(file);\n\n NetFlowReader nr = NetFlowReader.prepareReader(stm, 30000);\n assertEquals(nr.getBufferLength(), 30000);\n }", "title": "" }, { "docid": "b4cb9674510e02815e4708f8466e21ba", "score": "0.5355628", "text": "@Test(timeout = 4000)\n public void test116() throws Throwable {\n FileDescriptor fileDescriptor0 = new FileDescriptor();\n MockFileInputStream mockFileInputStream0 = new MockFileInputStream(fileDescriptor0);\n PushbackInputStream pushbackInputStream0 = new PushbackInputStream(mockFileInputStream0);\n JavaCharStream javaCharStream0 = new JavaCharStream(pushbackInputStream0, 0, 0, 0);\n pushbackInputStream0.unread(0);\n javaCharStream0.tokenBegin = 0;\n javaCharStream0.adjustBeginLineColumn(0, 0);\n javaCharStream0.ReInit((InputStream) mockFileInputStream0, (-1333), 1, 0);\n assertEquals(0, javaCharStream0.getBeginLine());\n assertEquals(0, javaCharStream0.getBeginColumn());\n }", "title": "" }, { "docid": "439fd7a24f7772ccc3f1246c990a4c75", "score": "0.5348552", "text": "public void testGet() throws Exception {\n System.out.println(\"get\");\n ByteBuffer buf = ByteBuffer.allocate(10);\n for (int i = 0; i < 10; i++) {\n buf.put((byte) i);\n }\n FSDataInputStream is = TestUtils.getStream(buf);\n ByteArrayStream bs = new ByteArrayStream(is, 0, 10);\n for (int i = 0; i < 10; i++) {\n assertEquals(i, bs.get(i));\n }\n }", "title": "" }, { "docid": "921b7deb905a4bb0657e98900ed10493", "score": "0.53048605", "text": "private void readRelevantLines() {\r\n\t\tbuildInfoString = new StringBuilder();\r\n\t\ttitle = \"\";\r\n\t\tcount = 0;\r\n\t\treadLines();\r\n\t}", "title": "" }, { "docid": "13d03bd2399dda94f8571b56f2b1d7cf", "score": "0.5294749", "text": "public Test4(String[] args){ \n\t\tcurrTest = Integer.parseInt(args[1]); //Capture desired test\n writeBlock = new byte[blockSize]; //initialize writeBlock\n readBlock = new byte[blockSize]; //initialize readBlock\n rando = new Random(); //Create a Random obj\n rando.nextBytes(writeBlock); //Generate random data\n if(args[0].equals(\"enabled\")){\n diskCaching = true;\n enableStat = \"enabled\";\n } \n\t}", "title": "" }, { "docid": "e65b2f215b768a2ee8d5243f43545d43", "score": "0.5294593", "text": "public void testReadEVR_LE() throws Exception {\n DataInputStream in = new DataInputStream(\n new BufferedInputStream(new FileInputStream(EVR_LE)));\n try {\n ds.readFile(in, null, -1);\n } finally {\n try {\n in.close();\n } catch (Exception ignore) {}\n }\n }", "title": "" }, { "docid": "b6a088358108250166bfff4c4fa80e20", "score": "0.52871567", "text": "@Test(timeout = 4000)\n public void test017() throws Throwable {\n FileDescriptor fileDescriptor0 = new FileDescriptor();\n MockFileInputStream mockFileInputStream0 = new MockFileInputStream(fileDescriptor0);\n PushbackInputStream pushbackInputStream0 = new PushbackInputStream(mockFileInputStream0);\n JavaCharStream javaCharStream0 = new JavaCharStream(pushbackInputStream0, 0, 0, 0);\n javaCharStream0.tokenBegin = 0;\n javaCharStream0.adjustBeginLineColumn(0, 0);\n StringReader stringReader0 = new StringReader(\"/0{.j2u$/wx[9[D\");\n javaCharStream0.ReInit((Reader) stringReader0, 0, 89);\n javaCharStream0.ReInit((InputStream) mockFileInputStream0, 4096, 33, 0);\n assertEquals(0, javaCharStream0.getBeginLine());\n assertEquals(0, javaCharStream0.getBeginColumn());\n }", "title": "" }, { "docid": "75662671bfdf8a3cdcd35f7c54bc4f7c", "score": "0.52867854", "text": "void read(OSEvent ev) throws Disk.BadDisk {\n Disk d = disk;\n DiskAddress sa = (DiskAddress)ev.get(\"DiskAddress\");\n MemPage iop = (MemPage)ev.get(\"MemPage\");\n ev.put(\"Disk\", d);\n disk.read(sa, iop, ev);\n Dbg.println(\"bd\", \"BlockDriver.read(block=\"+sa.sector_number()+\",..)\");\n Dbg.printBytes(\"bdB\", iop.get_bytes(), 0, 64);\n }", "title": "" }, { "docid": "5d9c2d20dc0fa41c5333b7edad5ba66e", "score": "0.52842563", "text": "@Test\n public void read2() {\n request = new RequestRead(TITOLO);\n checkValidaLetta();\n }", "title": "" }, { "docid": "06608954a9d46bcc87885f7ccaae0937", "score": "0.5277545", "text": "@Test\n\tpublic void testReadFileSimple() \n\t{\n\t\tassertEquals(13, nodes.size());\n\t}", "title": "" }, { "docid": "997459bd3357948b4ae87a6ea7262deb", "score": "0.5267781", "text": "@Override\n\tpublic void read() {\n\t\t\n\t}", "title": "" }, { "docid": "8baae1cad8bb2f332c70390d6083ddaa", "score": "0.52619314", "text": "@Test\n\tvoid testReadAll() throws Exception {\n\t\tRequestBuilder request = get(URI + \"/read\");\n\t\tResultMatcher confirmStatus = status().isOk();\n//\t\tResultMatcher confirmBody = content().json(artistsJson);.andExpect(confirmBody)\n\t\tmvc.perform(request).andExpect(confirmStatus);\n\t}", "title": "" }, { "docid": "52cf0e51488fe01ffa0cec5560c064f4", "score": "0.5260029", "text": "@Test\n public void testGetSingleValueBlock() throws Exception\n {\n final Block result = intArrayBlockBuilderUnderTest.getSingleValueBlock(0);\n\n // Verify the results\n }", "title": "" }, { "docid": "2acfb3af7388e290a90c7b0b28e9bd4d", "score": "0.5250644", "text": "@Test\n\tpublic void J_testReadAll_Fail()\n\t{\n\t\tfail(\"Not yet implemented\");\n\t}", "title": "" }, { "docid": "b9ca6de368dc2045162f37afaacc3e08", "score": "0.524844", "text": "public static void runTest() throws Exception{\n testRead();\n testWrite();\n }", "title": "" }, { "docid": "13cd0884c33648a15e5362b484335a4a", "score": "0.5246993", "text": "private static float[] readArduinoTests() throws IOException {\n String fileContents = readFile(\"../tests/ardu_last\");\n String[] contentsArray = fileContents.split(\"\\n\");\n float[] results = new float[2];\n results[0] = Float.parseFloat(contentsArray[3]);\n results[1] = Float.parseFloat(contentsArray[4]);\n return results;\n }", "title": "" }, { "docid": "35bfbd1e03d3381782fc230da165bfe8", "score": "0.52433586", "text": "public void ReadList() {\n\n\t\ttry {\n\t\t\tFileReader fr = new FileReader(input);\n\t\t\tBufferedReader br = new BufferedReader(fr);\n\t\t\tScanner sc = new Scanner(br);\n\t\t\twhile (sc.hasNextLine()) {\n\t\t\t\t// default level\n\t\t\t\tSudukuTable newTable = new SudukuTable();\n\t\t\t\tLevel level = Level.Undefined;\n\t\t\t\tString selector = sc.nextLine();\n\t\t\t\t//level enum is reserved for future database use, will not used in stage one\n\t\t\t\t//stage one will pick the right table based on arraylist index (0-5 is easy 6-12 = mid 13-18 = hard)\n\t\t\t\tif (selector.charAt(0) == 'E') {\n\t\t\t\t\tlevel = Level.Easy;\n\t\t\t\t} else if (selector.charAt(0) == 'M') {\n\t\t\t\t\tlevel = Level.Midium;\n\t\t\t\t} else if (selector.charAt(0) == 'H') {\n\t\t\t\t\tlevel = Level.Hard;\n\t\t\t\t}\n\n\t\t\t\t// this for loop is to read each 9 lines from one block\n\t\t\t\tfor (int x = 0; x < 9; x++) {\n\t\t\t\t\tline = sc.nextLine();\n\t\t\t\t\t// this loop aim to find each single space of the total 81 space of one question\n\t\t\t\t\t// block\n\t\t\t\t\tfor (int y = 0; y < 9; y++) {\n\t\t\t\t\t\tint value = Character.getNumericValue(line.charAt(y));\n\t\t\t\t\t\t// System.out.println(value);\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (value == 0) {\n\t\t\t\t\t\t\tnewTable.setNumber(x, y, value, true);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tnewTable.setNumber(x, y, value, false);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tnewTable.setLevel(level);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tquestionarray.add(newTable);\n\t\t\t\t\n\t\t\t}\n\t\t\tfr.close(); br.close();\n\n\t\t\t// test block\n\t\t\t// for (int i =0; i < questionarray.size(); i++) {\n\t\t\t// questionarray.get(i).printmyself();\n\t\t\t// }\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "title": "" }, { "docid": "df90892800d4f31ea2d8f24fcbdce55f", "score": "0.52334815", "text": "private void readObject() {\n /*default - does nothing empty block */\n }", "title": "" }, { "docid": "00fb6b17f5abda450e4a80fee1e93a31", "score": "0.5228338", "text": "@Test(timeout = 4000)\n public void test32() throws Throwable {\n EvoSuiteFile evoSuiteFile0 = new EvoSuiteFile(\"/}?F[B_8NW#.<D_UTE*/G~PCC&_'590S5RWJEEGR-BLG.XML\");\n FileSystemHandling.appendStringToFile(evoSuiteFile0, \"4LFysdN8)gx7\");\n FileUtil fileUtil0 = new FileUtil();\n FileInputStream fileInputStream0 = fileUtil0.fetchBNFile(\"}?f[B_8nW#.<d\", \"uTE*/G~PCC&\", \"'590s5RWjEegr-bLg\");\n assertEquals(12, fileInputStream0.available());\n }", "title": "" }, { "docid": "cfb7c523293fd9f7d8f9cb589faa82b3", "score": "0.5228002", "text": "@Test(timeout = 4000)\n public void test042() throws Throwable {\n FileUtil fileUtil0 = new FileUtil();\n FileInputStream fileInputStream0 = fileUtil0.fetchBNFile(\"\", \">~3]IJ\\\"QvkwMF{|&H;\", \"\");\n assertNull(fileInputStream0);\n }", "title": "" }, { "docid": "6f68fd072162eff2d8b00acd4adf3108", "score": "0.52250063", "text": "public void readAll() {\n\t\t\n\t}", "title": "" }, { "docid": "5d3558bd704eddd816bfa99b04e3314e", "score": "0.5223093", "text": "private void readObject() {/*default - does nothing empty block */}", "title": "" }, { "docid": "5d3558bd704eddd816bfa99b04e3314e", "score": "0.5223093", "text": "private void readObject() {/*default - does nothing empty block */}", "title": "" }, { "docid": "5d3558bd704eddd816bfa99b04e3314e", "score": "0.5223093", "text": "private void readObject() {/*default - does nothing empty block */}", "title": "" }, { "docid": "5d3558bd704eddd816bfa99b04e3314e", "score": "0.5223093", "text": "private void readObject() {/*default - does nothing empty block */}", "title": "" }, { "docid": "5d3558bd704eddd816bfa99b04e3314e", "score": "0.5223093", "text": "private void readObject() {/*default - does nothing empty block */}", "title": "" }, { "docid": "5d3558bd704eddd816bfa99b04e3314e", "score": "0.5223093", "text": "private void readObject() {/*default - does nothing empty block */}", "title": "" }, { "docid": "5d3558bd704eddd816bfa99b04e3314e", "score": "0.5223093", "text": "private void readObject() {/*default - does nothing empty block */}", "title": "" }, { "docid": "5d3558bd704eddd816bfa99b04e3314e", "score": "0.5223093", "text": "private void readObject() {/*default - does nothing empty block */}", "title": "" }, { "docid": "526a4d2948ce99eb20832ebf1f150ebc", "score": "0.5222729", "text": "@Test\n public void testReadingCorruptWithIgnoreCorrupt() throws IOException {\n String file = getClass().getResource(\"/corrupt/ftv5.2016-01-13.compress.9.sample-01\").getPath();\n FSDataInputStream stm = getTestStream(file);\n\n NetFlowReader nr = NetFlowReader.prepareReader(stm, 30000, true);\n assertEquals(nr.isValid(), false);\n }", "title": "" }, { "docid": "62dd3719c3e90029a81179e764a178bc", "score": "0.5221775", "text": "@Test\n public void testReadLineToArray() throws Exception {\n final long[][] data = getTestArray(800, 50);\n try (BufferedWriter w = Files.newBufferedWriter(mTestFile.toPath())) {\n w.write(arrayToString(data));\n }\n long[] actual = new long[50];\n try (KernelCpuProcStringReader.ProcFileIterator iter = mReader.open()) {\n for (long[] expected : data) {\n CharBuffer cb = iter.nextLine();\n String before = cb.toString();\n assertEquals(50, KernelCpuProcStringReader.asLongs(cb, actual));\n assertArrayEquals(expected, actual);\n assertEquals(\"Buffer not reset to the pos before reading\", before, cb.toString());\n }\n }\n }", "title": "" }, { "docid": "293d2c1459487021d82626dff7d5d4d4", "score": "0.52151847", "text": "void testRead() throws Exception;", "title": "" }, { "docid": "a260b35870bfe5a2e256c96e9116fcd2", "score": "0.52150816", "text": "@Test\r\n\tpublic void testReadWithNoSizeBuffer() {\r\n\t\tlong writeValue = 4;\r\n\t\tMDFile testFile = getTestMDFile();\r\n\t\twriteValue(testFile, writeValue);\r\n\t\ttry {\r\n\t\t\tByteBuffer bb = ByteBuffer.allocate(0);\r\n\t\t\tint numBytesRead = testFile.read(bb);\r\n\t\t\tAssert.assertEquals(0, numBytesRead);\r\n\t\t} catch (IOException e) {\r\n\t\t\tcloseMDFile(testFile);\r\n\t\t\tAssert.fail();\r\n\t\t}\r\n\t\tcloseMDFile(testFile);\r\n\t}", "title": "" }, { "docid": "1656ebf814620a58fe394b7c664c7749", "score": "0.52125573", "text": "@Test\n public void read() {\n request = new RequestRead(TITOLO_ERRATO);\n ottenutoNullo();\n }", "title": "" }, { "docid": "95f1e6d0aa8c25ee527b59e0659296fa", "score": "0.5203993", "text": "@Test\n\tpublic void readShouldWaitUntilAFrameIsAvailable() throws Exception {\n\t\twhen(bufferedDetector.getNumberFrames()).thenReturn(0).thenReturn(0).thenReturn(0).thenReturn(1);\n\t\twhen(bufferedDetector.readFrames(anyInt(), anyInt())).thenReturn(ONE_DOUBLE_VALUE);\n\t\twhen(bufferedDetector.getExtraNames()).thenReturn(new String[] { \"First extra name\" });\n\n\t\tList<NXDetectorDataAppender> result = adapter.read(1);\n\t\tassertThat(result.size(), is(equalTo(1)));\n\t}", "title": "" }, { "docid": "622721a0da5361b5ccf7c2f5b46159d3", "score": "0.520226", "text": "private static int[] readRaspberryTests() throws IOException {\n String fileContents = readFile(\"../tests/rasp_last\");\n String[] contentsArray = fileContents.split(\"\\n\");\n int[] results = new int[2];\n results[0] = Integer.parseInt(contentsArray[0]);\n results[1] = Integer.parseInt(contentsArray[1]);\n return results;\n }", "title": "" }, { "docid": "81b8dabdd131ef4fbf003c811d421953", "score": "0.52009726", "text": "@Test\n\tpublic void shouldScanAFewLines() throws Exception {\n\t\tRAF raf = RafFactory.getRaf(\"test-data/SpunkCookedOSSEC-raw-11May09.log\", BreakRule.Rule.SingleLine.name());\n\t\traf.setBreakRule(\"Explicit:_time\");\n\t\tString line = raf.readLine();\n\t\tint count = 0;\n\t\twhile ((line = raf.readLine()) != null && count < 10) {\n\t\t\tSplunkPacket packet = new SplunkPacket(line.getBytes());\n\t\t\tif (packet.raw.length() == 0) continue;\n\t\t\tcount++;\n//\t\t\tSystem.out.println(\"------------------------\\n\" + packet);\n\t\t}\n\t}", "title": "" }, { "docid": "5bedd7f73c3d508a0b7330bb5df89633", "score": "0.51949173", "text": "private void readNextRecord() throws IOException {\n if (source == null) {\n return; // <= no more features to read\n }\n currentRecord = null;\n\n while (true) { // Loop through blocks\n while (!codec.isDone(source)) { // Loop through current block\n final T f;\n try {\n f = codec.decode(source);\n if (f == null) {\n continue; // Skip\n }\n if ((chrAlias != null && !f.getContig().equals(chrAlias)) || f.getStart() > end) {\n if (blockIterator.hasNext()) {\n advanceBlock();\n continue;\n } else {\n return; // Done\n }\n }\n if (f.getEnd() < start) {\n continue; // Skip\n }\n\n currentRecord = f; // Success\n return;\n } catch (TribbleException e) {\n e.setSource(path);\n throw e;\n } catch (NumberFormatException e) {\n final String error = \"Error parsing line: \" + source;\n throw new TribbleException.MalformedFeatureFile(error, path, e);\n }\n }\n if (blockIterator != null && blockIterator.hasNext()) {\n advanceBlock(); // Advance to next block\n } else {\n return; // No blocks left, we're done.\n }\n }\n }", "title": "" }, { "docid": "c69ce1f622023f1843e1ef175903383e", "score": "0.51870936", "text": "@Test\n public void testCompressedReadBzip2() throws Exception {\n byte[] input = generateInput(0);\n runReadTest(input, BZIP2);\n }", "title": "" }, { "docid": "15415940c330dd5e26b3fc0803f7abf6", "score": "0.5177814", "text": "public static void main(String arg[]) throws FileNotFoundException{\n File Read = new File(\"read.in\");\n // use scanner to read file\n Scanner reader = new Scanner(Read);\n // string to the file and find \n \n String reading;\n \n reading = reader.nextLine();\n \n System.out.println(reading);\n // test method\n }", "title": "" }, { "docid": "69aa2cf4968f9327f3b2d613df389796", "score": "0.5177544", "text": "public void readTestTableRecords(TestTable testTable)\n {\n try {\n int iCount = 0;\n testTable.open(); // Open the table\n \n testTable.setKeyArea(DBConstants.MAIN_KEY_AREA);\n iCount = 0;\n testTable.close();\n while (testTable.hasNext())\n {\n testTable.next();\n iCount++;\n }\n // System.out.println(\"Count: \" + iCount);\n } catch (DBException e) {\n }\n }", "title": "" }, { "docid": "90bc7de2fc474247b88145db11c8d683", "score": "0.5174781", "text": "private void readAll() throws IOException {\n/* 144 */ while (!this.closed)\n/* */ {\n/* 146 */ read(1000);\n/* */ }\n/* */ }", "title": "" }, { "docid": "20af0341b49a7d97530fd5a78c1d3304", "score": "0.51713055", "text": "public boolean Read()\r\n { \r\n if (IsDisposed) \r\n {\r\n throw new ObjectDisposedException(\"Baml2006Reader\"); \r\n }\r\n if (IsEof)\r\n {\r\n return false; \r\n }\r\n \r\n while (!_xamlNodesReader.Read()) \r\n {\r\n if (!Process_BamlRecords()) \r\n {\r\n _isEof = true;\r\n return false;\r\n } \r\n\r\n } \r\n \r\n if (_binaryReader.BaseStream.Length == _binaryReader.BaseStream.Position &&\r\n _xamlNodesReader.NodeType != XamlNodeType.EndObject) \r\n {\r\n _isEof = true;\r\n return false;\r\n } \r\n\r\n return true; \r\n }", "title": "" }, { "docid": "7f3de49530467c4d29240b3f396036cc", "score": "0.51708305", "text": "public void testReadLongs() throws Exception\n {\n LargeMessageBufferImpl buffer = createBufferWithLongs(3, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15);\n \n for (int i = 1; i <= 15; i++)\n {\n assertEquals(i, buffer.readLong());\n }\n \n try\n {\n buffer.readByte();\n fail(\"supposed to throw an exception\");\n }\n catch (IndexOutOfBoundsException e)\n {\n }\n }", "title": "" }, { "docid": "6fe38bdffe9a505652227630f17bce5d", "score": "0.51680493", "text": "public void testRawInput() throws IOException {\n if (System.getenv(\"TEST_POWERWORLD\") != null) {\n return;\n }\n \n PowerworldModelFile modelFile = new PowerworldModelFile();\n ElectricPowerModel model = modelFile.readModel(\"test_data\" + File.separatorChar + \"ep\" + File.separatorChar + \"powerworld\" + File.separatorChar + \"B7OPF.RAW\");\n assertEquals(model.getBuses().size(), 7);\n assertEquals(model.getGenerators().size(), 5);\n assertEquals(model.getLoads().size(), 6);\n }", "title": "" }, { "docid": "6fef0c6d6848db50d00fac06a48149e6", "score": "0.51641876", "text": "public abstract void readMoreBody();", "title": "" }, { "docid": "f64c84f4c96acb1ffd30d480c0436a40", "score": "0.5161222", "text": "public static void runReadTest(DataInputStream dis, TestHarness harness) {\n try {\n harness.check(dis.readBoolean(), \"readBoolean() true\");\n harness.check(!dis.readBoolean(), \"readBoolean() false\");\n harness.check(dis.readByte(), 8, \"readByte()\");\n harness.check(dis.readByte(), -122, \"readByte()\");\n harness.check(dis.readChar(), 'a', \"readChar()\");\n harness.check(dis.readChar(), '\\uE2D2', \"readChar()\");\n harness.check(dis.readShort(), 32000, \"readShort()\");\n harness.check(dis.readInt(), 8675309, \"readInt()\");\n harness.check(dis.readLong(), 696969696969L, \"readLong()\");\n harness.check(Float.toString(dis.readFloat()), \"3.1415\", \"readFloat()\");\n harness.check(dis.readDouble(), 999999999.999, \"readDouble\");\n harness.check((String) dis.readUTF(),\n \"Testing code is such a boring activity but it must be done\",\n \"readUTF()\");\n harness.check(dis.readUTF(), \"a-->\\u01FF\\uA000\\u6666\\u0200RRR\",\n \"readUTF()\");\n } catch (IOException e) {\n harness.debug(e);\n harness.check(false, \"Reading DataInputStream\");\n }\n }", "title": "" }, { "docid": "5698946a6059da37f59c044a84300d1a", "score": "0.5158643", "text": "@Test\r\n public final void testLengthOfBlockNonEmpty() {\r\n /*\r\n * Setup\r\n */\r\n Statement sTest = this.createFromFileTest(FILE_NAME_1);\r\n Statement sRef = this.createFromFileRef(FILE_NAME_1);\r\n int lengthRef = sRef.lengthOfBlock();\r\n\r\n /*\r\n * The call\r\n */\r\n int lengthTest = sTest.lengthOfBlock();\r\n\r\n /*\r\n * Evaluation\r\n */\r\n assertEquals(lengthRef, lengthTest);\r\n assertEquals(sRef, sTest);\r\n }", "title": "" } ]
1fea79286eb13a5088d94bbb2413d8fe
Computes the option security price. The future price is computed without convexity adjustment.
[ { "docid": "b8730616f1e00e04aaf0dbcb5152b2a9", "score": "0.67364836", "text": "@Override\n public double price(final InterestRateFutureOptionMarginSecurity security, final BlackSTIRFuturesProviderInterface blackData) {\n ArgumentChecker.notNull(security, \"Option security\");\n ArgumentChecker.notNull(blackData, \"Black data\");\n final double priceFuture = METHOD_FUTURE.price(security.getUnderlyingFuture(), blackData.getMulticurveProvider());\n return priceFromFuturePrice(security, blackData, priceFuture);\n }", "title": "" } ]
[ { "docid": "24eae87c87c6469ce97d02909f5e09e7", "score": "0.64685285", "text": "@Override\n public MulticurveSensitivity priceCurveSensitivity(final InterestRateFutureOptionMarginSecurity security,\n final BlackSTIRFuturesProviderInterface blackData) {\n ArgumentChecker.notNull(security, \"Option security\");\n ArgumentChecker.notNull(blackData, \"Black data\");\n // Forward sweep\n final double priceFuture = METHOD_FUTURE.price(security.getUnderlyingFuture(), blackData.getMulticurveProvider());\n final double rateStrike = 1.0 - security.getStrike();\n final EuropeanVanillaOption option = new EuropeanVanillaOption(rateStrike, security.getExpirationTime(), !security.isCall());\n final double forward = 1 - priceFuture;\n final double delay = security.getUnderlyingFuture().getTradingLastTime() - security.getExpirationTime();\n final double volatility = blackData.getVolatility(security.getExpirationTime(), delay, security.getStrike(), rateStrike);\n final BlackFunctionData dataBlack = new BlackFunctionData(forward, 1.0, volatility);\n final double[] priceAdjoint = BLACK_FUNCTION.getPriceAdjoint(option, dataBlack);\n // Backward sweep\n final double priceBar = 1.0;\n final double forwardBar = priceAdjoint[1] * priceBar;\n final double priceFutureBar = -forwardBar;\n final MulticurveSensitivity priceFutureDerivative = METHOD_FUTURE.priceCurveSensitivity(security.getUnderlyingFuture(),\n blackData.getMulticurveProvider());\n return priceFutureDerivative.multipliedBy(priceFutureBar);\n }", "title": "" }, { "docid": "fe9dc7db85049d07ed271ced3abbe9b8", "score": "0.6386323", "text": "public double priceVega(final InterestRateFutureOptionMarginSecurity security, final BlackSTIRFuturesProviderInterface blackData) {\n // Forward sweep\n final double priceFuture = METHOD_FUTURE.price(security.getUnderlyingFuture(), blackData);\n final double strike = security.getStrike();\n final double rateStrike = 1.0 - strike;\n final EuropeanVanillaOption option = new EuropeanVanillaOption(rateStrike, security.getExpirationTime(), !security.isCall());\n final double forward = 1 - priceFuture;\n final double delay = security.getUnderlyingFuture().getTradingLastTime() - security.getExpirationTime();\n final double volatility = blackData.getVolatility(security.getExpirationTime(), delay, security.getStrike(), rateStrike);\n final BlackFunctionData dataBlack = new BlackFunctionData(forward, 1.0, volatility);\n final double[] priceAdjoint = BLACK_FUNCTION.getPriceAdjoint(option, dataBlack);\n return priceAdjoint[2];\n }", "title": "" }, { "docid": "88933bc106c13b60a3b59f0b9d3b2082", "score": "0.6345682", "text": "double calculatePrice();", "title": "" }, { "docid": "38e6757229f8440bcef50da4215a9833", "score": "0.6322499", "text": "public double underlyingFuturesPrice(final InterestRateFutureOptionMarginSecurity security,\n final BlackSTIRFuturesProviderInterface blackData) {\n return METHOD_FUTURE.price(security.getUnderlyingFuture(), blackData.getMulticurveProvider());\n }", "title": "" }, { "docid": "f8eb3446bbce728a4cd974cb5f586d04", "score": "0.61861736", "text": "public double priceFromFuturePrice(final InterestRateFutureOptionMarginSecurity security,\n final BlackSTIRFuturesProviderInterface blackData,\n final double priceFuture) {\n ArgumentChecker.notNull(security, \"Option security\");\n ArgumentChecker.notNull(blackData, \"Black data\");\n final double rateStrike = 1.0 - security.getStrike();\n final EuropeanVanillaOption option = new EuropeanVanillaOption(rateStrike, security.getExpirationTime(), !security.isCall());\n final double forward = 1 - priceFuture;\n final double delay = security.getUnderlyingFuture().getTradingLastTime() - security.getExpirationTime();\n final double volatility = blackData.getVolatility(security.getExpirationTime(), delay, security.getStrike(), rateStrike); //\n final BlackFunctionData dataBlack = new BlackFunctionData(forward, 1.0, volatility);\n final double priceSecurity = BLACK_FUNCTION.getPriceFunction(option).evaluate(dataBlack);\n return priceSecurity;\n }", "title": "" }, { "docid": "08c687e538455f77f4ce175b6cdd0912", "score": "0.6144979", "text": "public double calculateMarketPrice();", "title": "" }, { "docid": "4069ce87aee5360b8af3a587bb2c1987", "score": "0.61059046", "text": "public double calculatePrice() {\r\n return necklace.calculateChainPrice();\r\n }", "title": "" }, { "docid": "1b8000f91ded41662df0e7aa113d82bd", "score": "0.60081273", "text": "@Override\r\n\tpublic double calcPrice() {\r\n\t\tdouble returnCost = getBasePrice();\r\n\t\tif (getSize() == SIZE.MEDIUM) { returnCost += SIZE_PRICE; }\r\n\t\tif (getSize() == SIZE.LARGE) { returnCost += SIZE_PRICE + 1;}\r\n\t\tif (extraCost) { returnCost += 0.50; }\r\n\t\tif (isExtraSyrup) { returnCost += 0.50;}\r\n\t\treturn returnCost;\r\n\t}", "title": "" }, { "docid": "2e72bb7c70e99ecab1bd392b7b56421e", "score": "0.59658915", "text": "public double price(final FuturesSecurity futures, final BlackBondFuturesProviderInterface multicurve) {\n return futures.accept(FPC, multicurve);\n }", "title": "" }, { "docid": "d98cb7dbf6d7ea46fda2da8dc17f7979", "score": "0.59658474", "text": "@Override\n public Integer getPrice() {\n return getBasicPrice() * calculateCasualDiscount();\n }", "title": "" }, { "docid": "b98f90b4b6eb551208f20f66b8b83665", "score": "0.59624267", "text": "private int calculatePrice() {\n\n int cost = numberOfparantha * basePrice;\n return cost;\n }", "title": "" }, { "docid": "93d93bc65118ade8ec755931e448dde3", "score": "0.5942558", "text": "private void calcTargetSellPrice()\n {\n targetSellPrice = actualPurchasePrice * 2.15;\n }", "title": "" }, { "docid": "4cd2de02ab775ff59a382c6126156896", "score": "0.5874593", "text": "public double computeSalePrice(){\n return super.getRegularPrice() * 0.8;\n }", "title": "" }, { "docid": "1ef7ca3d33383fe46238cabe0595cc3d", "score": "0.581242", "text": "public float price();", "title": "" }, { "docid": "520a7c3ad4fb44b79adec51dd1306690", "score": "0.58049697", "text": "public BigDecimal getCostPrice() {\r\n return costPrice;\r\n }", "title": "" }, { "docid": "b421e3e2937faf92bc1b5507a8240502", "score": "0.57938117", "text": "private double calculatePrice () \n\t\t{\n\t\t\tdouble shippingPrice;\n\t\t\tdouble finalPrice;\n\t\t\tdouble weightMultiplier = 20;\n\t\t\tshippingPrice = weightMultiplier * weight * quantity;\n\t\t\tif(isFragile)\n\t\t\t{\n\t\t\t\tshippingPrice = shippingPrice * premiumMultiplier;\n\t\t\t}\n\t\t\tfinalPrice = price * quantity;\n\t\t\tfinalPrice = finalPrice + shippingPrice;\n\t\t\tfinalPrice = convertToDollars(finalPrice);\n\t\t\treturn finalPrice;\n\t\t}", "title": "" }, { "docid": "34ab2bde6bb9761fe6f28ad867fce690", "score": "0.57440466", "text": "public double computePriceToSell(){\n return this.happiness * this.baseSellingPrice;\n }", "title": "" }, { "docid": "5a8524f3f4442f78acd386ccdc02d6bb", "score": "0.5730388", "text": "@Override\r\n\tpublic double price() {\n\t\treturn coffeepricing.price(this);\r\n\t}", "title": "" }, { "docid": "aba20fb4510459ca19553cf6b620ed58", "score": "0.57278234", "text": "public double getPrice() {\n\treturn (coupon * (1-(1/Math.pow(1+interest, payments)))) + (valueMaturity * (1/Math.pow(1+interest, payments)));\n }", "title": "" }, { "docid": "b9f33e3784356aa6135eddd688004d50", "score": "0.57166773", "text": "BigDecimal getVolatility();", "title": "" }, { "docid": "5b43574aeadeed5a84f955f8e9979e1f", "score": "0.5714184", "text": "double getStandardPriceInUSD();", "title": "" }, { "docid": "8f688a4109c0ad768c5d1d93001ca081", "score": "0.56992453", "text": "public double priceDelta(final InterestRateFutureOptionMarginSecurity security, final BlackSTIRFuturesProviderInterface blackData) {\n ArgumentChecker.notNull(security, \"Option security\");\n ArgumentChecker.notNull(blackData, \"Black data\");\n // Forward sweep\n final double priceFuture = METHOD_FUTURE.price(security.getUnderlyingFuture(), blackData);\n final double rateStrike = 1.0 - security.getStrike();\n final EuropeanVanillaOption option = new EuropeanVanillaOption(rateStrike, security.getExpirationTime(), !security.isCall());\n final double forward = 1 - priceFuture;\n final double delay = security.getUnderlyingFuture().getTradingLastTime() - security.getExpirationTime();\n final double volatility = blackData.getVolatility(security.getExpirationTime(), delay, security.getStrike(), rateStrike);\n final BlackFunctionData dataBlack = new BlackFunctionData(forward, 1.0, volatility);\n final double[] priceAdjoint = BLACK_FUNCTION.getPriceAdjoint(option, dataBlack);\n return -priceAdjoint[1];\n }", "title": "" }, { "docid": "72f38ae76576cd4e8a8cd7ce4e993069", "score": "0.5686482", "text": "public double impliedVolatility(final InterestRateFutureOptionMarginSecurity security,\n final BlackSTIRFuturesProviderInterface blackData) {\n ArgumentChecker.notNull(security, \"Option security\");\n ArgumentChecker.notNull(blackData, \"Black data\");\n final double delay = security.getUnderlyingFuture().getTradingLastTime() - security.getExpirationTime();\n return blackData.getVolatility(security.getExpirationTime(), delay, security.getStrike(), 1.0d - security.getStrike());\n }", "title": "" }, { "docid": "5944214845fad316226a872bc7d9ea0b", "score": "0.56532377", "text": "@Override\n\tpublic double getFinalPrice() {\n\t\treturn getPrice()*1.21;\n\t}", "title": "" }, { "docid": "c953c2fe9282e99e3254eb5cc2093515", "score": "0.5645798", "text": "double getPrice();", "title": "" }, { "docid": "c953c2fe9282e99e3254eb5cc2093515", "score": "0.5645798", "text": "double getPrice();", "title": "" }, { "docid": "c953c2fe9282e99e3254eb5cc2093515", "score": "0.5645798", "text": "double getPrice();", "title": "" }, { "docid": "c953c2fe9282e99e3254eb5cc2093515", "score": "0.5645798", "text": "double getPrice();", "title": "" }, { "docid": "c953c2fe9282e99e3254eb5cc2093515", "score": "0.5645798", "text": "double getPrice();", "title": "" }, { "docid": "ef0f8f48edb5bcfd6ef5013928f9444d", "score": "0.560675", "text": "public Double BuyLogic() {\n\t\tDouble newprice = currentprice * 1.02;\n\t\treturn newprice;\n\t\t//y = mx +b\n\t}", "title": "" }, { "docid": "1aa66e74b480bf3e4f6ea4286ff9820c", "score": "0.56049454", "text": "public BigDecimal getPrice() {\r\n return price;\r\n }", "title": "" }, { "docid": "46a5702978cc8a1df31b00def83e7dcb", "score": "0.5604182", "text": "public double calcProfit();", "title": "" }, { "docid": "fcf882619ffe32441b0c83e858e93df8", "score": "0.5591767", "text": "private int calculatePrice(){\n return quantity*(price+wipped_price+choco_price);\n }", "title": "" }, { "docid": "e193d12814bdfe44a283cf01c8e1edbf", "score": "0.55904573", "text": "@Override\n\tpublic double getFinalPrice(){\n\t\treturn (super.getPrecioBase()+((super.getPrecioBase()+1)*0.3));\n\t}", "title": "" }, { "docid": "2fe85b5343f0c27e3e233cdd5c249d61", "score": "0.5584899", "text": "public BigDecimal getPrice() {\n return price;\n }", "title": "" }, { "docid": "3cc208b2d90146269ebfdf09969df395", "score": "0.5584883", "text": "public double studentPrice(){\n double amountOfTickets = tickets.size();\n double plusone = amountOfTickets % 2;\n amountOfTickets = (amountOfTickets / 2) ;\n int x = (int) amountOfTickets;\n amountOfTickets = x + plusone;\n double price = tickets.get(0).getPrice();\n boolean premium = tickets.get(0).isPremiumTicket();\n if(premium == true){\n price = price + 2.0;\n }\n return amountOfTickets * price;\n }", "title": "" }, { "docid": "f81326cf2c5f425effe95a4b01084e36", "score": "0.55750597", "text": "public double getFinalPrice(){\r\n return finalPrice;\r\n }", "title": "" }, { "docid": "327c3b554ab7a781c1ca83c6747c9274", "score": "0.5572468", "text": "public static ImpliedVolatilitySTIRFutureOptionCalculator getInstance() {\n return INSTANCE;\n }", "title": "" }, { "docid": "e20daf697566657a0c787e94c60dceea", "score": "0.55722016", "text": "public BigDecimal getPriceActual();", "title": "" }, { "docid": "4e56ab891c4dbfc8a6fcff5f0a356c39", "score": "0.5564753", "text": "public double nonStudentPrice(){\n LocalDate date = LocalDate.now();\n double amountOfTickets = tickets.size();\n double price = tickets.get(0).getPrice();\n boolean premium = tickets.get(0).isPremiumTicket();\n if(premium == true){\n price = price + 3.0;\n }\n if(date.getDayOfWeek().getValue() < 5){\n double plusone = amountOfTickets % 2;\n amountOfTickets = (amountOfTickets / 2) ;\n int x = (int) amountOfTickets;\n amountOfTickets = x + plusone;\n }\n else{\n if(tickets.size() >= 6){\n price = price * 0.9;\n }\n else{\n //do nothing\n }\n }\n return price * amountOfTickets; \n }", "title": "" }, { "docid": "5c17030da1597e04031d134d14f5fb16", "score": "0.5564446", "text": "@Override\n\tdouble calculateTicketPrice() {\n\t\tdouble price =0;\n\t\t\n\t\t//Determine if movie time is Day or Evening\n\t\t\t\tif(getTime()< 18)\n\t\t\t\t\tprice+=MORNING_FARE;\n\t\t\t\telse price+=EVENING_FARE;\n\t\t\t\t\n\t\t\t\t//Determine if ticket has IMAX or 3D option and add to the ticket price\n\t\t\t\tif(getOption().equals(Format.IMAX))\n\t\t\t\t\tprice+=IMAX_COST;\n\t\t\t\t\n\t\t\t\tif(getOption().equals(Format.THREE_D))\n\t\t\t\t\tprice+=THREE_D_COST;\n\t\t\t\t\n\t\t\t\tprice+=(price*TAX);\n\t\t\t\t\n\t\t\t\treturn price;\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "d4845262dbd48c66f75d385dc5cc4813", "score": "0.5552081", "text": "public BigDecimal getPrice() {\n return this.price;\n }", "title": "" }, { "docid": "6fd19328f0af55c8f769388bd3c93c2a", "score": "0.55474627", "text": "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tif(e.getSource() == optionValue) {\n\t\t\t// Value was changed, calculate implied volatility\n\t\t\tfinal double payoffUnit\t= Math.exp(-this.riskFreeRate.getDoubleValue()* this.optionMaturity.getDoubleValue());\n\t\t\tfinal double forward\t\t= this.spot.getDoubleValue() / payoffUnit;\n\t\t\tfinal double impliedVolatility = net.finmath.functions.AnalyticFormulas.blackScholesOptionImpliedVolatility(forward, this.optionMaturity.getDoubleValue(), this.optionStrike.getDoubleValue(), payoffUnit, this.optionValue.getDoubleValue());\n\t\t\tthis.volatility.setValue(impliedVolatility);\n\t\t}\n\t\tfinal double value = net.finmath.functions.AnalyticFormulas.blackScholesOptionValue(this.spot.getDoubleValue(), this.riskFreeRate.getDoubleValue(), this.volatility.getDoubleValue(), this.optionMaturity.getDoubleValue(), this.optionStrike.getDoubleValue());\n\t\tthis.optionValue.setValue(value);\n\t}", "title": "" }, { "docid": "dbb03069907dc140c4309606b845a68a", "score": "0.55420566", "text": "public BigDecimal getPrice() {\n return price;\n }", "title": "" }, { "docid": "dbb03069907dc140c4309606b845a68a", "score": "0.55420566", "text": "public BigDecimal getPrice() {\n return price;\n }", "title": "" }, { "docid": "dbb03069907dc140c4309606b845a68a", "score": "0.55420566", "text": "public BigDecimal getPrice() {\n return price;\n }", "title": "" }, { "docid": "dbb03069907dc140c4309606b845a68a", "score": "0.55420566", "text": "public BigDecimal getPrice() {\n return price;\n }", "title": "" }, { "docid": "dbb03069907dc140c4309606b845a68a", "score": "0.55420566", "text": "public BigDecimal getPrice() {\n return price;\n }", "title": "" }, { "docid": "80fdbdf9f25ad0ef9214cf6777eea96a", "score": "0.55366325", "text": "public Double getFinalPrice() {\n\t\tDouble newfinalcost = round(finalcost, 2);\n\t\treturn newfinalcost;\n\t}", "title": "" }, { "docid": "b175ce16d71baa2930f900038a22f50d", "score": "0.5526343", "text": "double getPriceInUSD();", "title": "" }, { "docid": "66189c919c282687538c614a084d3e5f", "score": "0.5518289", "text": "public int WithCoolDown(int[] prices){\n //dp[i] = max(dp[i-1], prices[i] - prices[j] + dp[j-2]), j=[0..i-1]\n\n\n return 0;\n }", "title": "" }, { "docid": "1cbaefea5e9c4fcc55d653e03c6022ac", "score": "0.551319", "text": "public void setEconomicCost(double ec);", "title": "" }, { "docid": "ecb97dda136a2dd8a8551aaf7154c537", "score": "0.5512595", "text": "@Test\n public void presentValueCurveSensitivity() {\n final MultipleCurrencyParameterSensitivity pvpsDepositExact = PSC.calculateSensitivity(COUPON, PROVIDER, PROVIDER.getAllNames());\n final MultipleCurrencyParameterSensitivity pvpsDepositFD = PSC_DSC_FD.calculateSensitivity(COUPON, PROVIDER);\n AssertSensitivityObjects.assertEquals(\"CashDiscountingProviderMethod: presentValueCurveSensitivity \", pvpsDepositExact, pvpsDepositFD,\n TOLERANCE_PV_DELTA);\n }", "title": "" }, { "docid": "88c2fee6e99e74da4832c8443e7b149c", "score": "0.5500928", "text": "public double getPrice() {\r\n\t\tswitch (quality) {\r\n\t\tcase BEST:\r\n\t\t\treturn price + 40;\r\n\t\tcase MODERATE:\r\n\t\t\treturn price + 20;\r\n\t\tcase LOW:\r\n\t\t\treturn price;\r\n\t\tdefault:\r\n\t\t\tSystem.out.println(\"Invalid quality\");\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "a69930ad60024c966fe2e053c054c3ea", "score": "0.54977995", "text": "com.google.ads.googleads.v14.common.Money getPrice();", "title": "" }, { "docid": "58506874eb7e4b9b28fc93f47b75127d", "score": "0.54844046", "text": "private int calculatePrice() {\n if (haswhippedcream == true) {\n return 4 + (numberOfcoffee * 5);\n }\n if (haswhippedchocolate == true) {\n return 4 + (numberOfcoffee * 5);\n }\n if (haswhippedchocolate == true && haswhippedcream == true) {\n return 4 + 4 + (numberOfcoffee * 5);\n } else {\n return numberOfcoffee * 5;\n }\n }", "title": "" }, { "docid": "74d1cb1a5194ad96cfdb6bff2a16fc26", "score": "0.54799706", "text": "void updatePriceExclVat( @Nullable Double price );", "title": "" }, { "docid": "4cef1de05f286316ed744fb83b07dfcd", "score": "0.5472198", "text": "public double getPrice() {\r\n return localPrice;\r\n }", "title": "" }, { "docid": "144c0c69d3c18f2ab253f15b80f037be", "score": "0.54686594", "text": "public double calculatePrice()\r\n {\r\n return bd.calculatePrice(); \r\n }", "title": "" }, { "docid": "a21d68ea4c11ffdd29a3cd17db712e30", "score": "0.5454497", "text": "public abstract double price();", "title": "" }, { "docid": "900dcaacc05d68a408e303b6d43e3ca8", "score": "0.54525924", "text": "public java.math.BigDecimal getPrice() {\r\n return localPrice;\r\n }", "title": "" }, { "docid": "900dcaacc05d68a408e303b6d43e3ca8", "score": "0.54525924", "text": "public java.math.BigDecimal getPrice() {\r\n return localPrice;\r\n }", "title": "" }, { "docid": "7f263a10bf248c8e509cf48c1f0ad317", "score": "0.54506135", "text": "public BigDecimal getPRICE() {\r\n return PRICE;\r\n }", "title": "" }, { "docid": "b3600c276c6a12a6d49d975c0198ee8a", "score": "0.5438857", "text": "protected int getTotalPrice(){\n int totalPrice = 0;\r\n for (int i = 0; i < options.size(); i++) {\r\n totalPrice+=options.get(i).getPrice();\r\n\r\n }\r\n return totalPrice;\r\n }", "title": "" }, { "docid": "304196abcba15269b42e344ed0aed275", "score": "0.5438585", "text": "private double calculateTicketPrice(){\n\t\treturn PriceManager.calculateTicketPrice(this);\n\t}", "title": "" }, { "docid": "ab22d3423ac9a79fb88ba884069ee92a", "score": "0.5428636", "text": "public double getEconomicCost();", "title": "" }, { "docid": "3dd86d86fb55a88f94fb6884b4e7340e", "score": "0.5428265", "text": "public double computePrice(Order o);", "title": "" }, { "docid": "9cf12679883b50e5f8525c1891f5cf27", "score": "0.5426723", "text": "public int priceInCopper(){\n\t\tif(this.currencyWeight == 'c'){\n\t\t\treturn this.price;\n\t\t}else if(this.currencyWeight == 's'){\n\t\t\treturn this.price * 10;\n\t\t}else if(this.currencyWeight == 'g'){\n\t\t\treturn this.price * 100;\n\t\t}else if(this.currencyWeight == 'p'){\n\t\t\treturn this.price * 1000;\n\t\t}else{\n\t\t\t//this condition should not be triggered.\n\t\t\treturn this.price;\n\t\t}\n\t}", "title": "" }, { "docid": "ad9f5027150f6da1ee4f63181789cc31", "score": "0.5424105", "text": "@Override\n\tpublic double getPrice() {\n\t\treturn pancake.getPrice() +2.0d;\n\t}", "title": "" }, { "docid": "74a34d8a9d6c68e89a66c96980fdee1f", "score": "0.5415747", "text": "@Override\n public Integer getPrice() {\n return getBasicPrice() * amount * calculateWholesaleDiscount();\n }", "title": "" }, { "docid": "69522b935c891abb49537d5bd3e00693", "score": "0.54119676", "text": "public double getRoutineServiceCost()\r\n\t{\r\n\t\tdouble serviceCost = 0.0;\r\n\t\t\r\n\t\tif(oil.isSelected())\r\n\t\t\tserviceCost += OIL;\r\n\t\tif(lube.isSelected())\r\n\t\t\tserviceCost += LUBE;\r\n\t\tif(radiator.isSelected())\r\n\t\t\tserviceCost += RADIATOR;\r\n\t\tif(transmission.isSelected())\r\n\t\t\tserviceCost += TRANSMISSION;\r\n\t\tif(inspection.isSelected())\r\n\t\t\tserviceCost += INSPECTION;\r\n\t\tif(muffler.isSelected())\r\n\t\t\tserviceCost += MUFFLER;\r\n\t\tif(tire.isSelected())\r\n\t\t\tserviceCost += TIRE;\r\n\t\t\r\n\t\treturn serviceCost;\r\n\t\t\r\n\t}", "title": "" }, { "docid": "b6072dd124639b06d84f3e93d2591034", "score": "0.5405787", "text": "@Override\r\n\tpublic double getVATPrice() {\n\t\treturn getPrice()*1.2;\r\n\t}", "title": "" }, { "docid": "f21f46914409772b0af649e7dcaad731", "score": "0.5400945", "text": "private double calculateNetPrice() {\n double totalPrice = 0.0;\n for (Flight vlucht : this.flight) {\n totalPrice = totalPrice + vlucht.getPrice();\n }\n double netPr = this.serviceFee - this.promotion + totalPrice;\n return netPr;\n }", "title": "" }, { "docid": "de2ffefa1f2d0eb9969d8ad79ac205eb", "score": "0.53908616", "text": "public double sell(){\r\n if (numberOwned == 0)\r\n return 0;\r\n else {\r\n double entry = getCostBasis();\r\n setCostBasis(getCostBasis()/bondNumber);\r\n setCapitalGains(getCapitalGains() + getCurrentPrice() - (entry - getCostBasis()));\r\n bondNumber = bondNumber - 1;\r\n return currentPrice;\r\n }\r\n }", "title": "" }, { "docid": "c8a89a3989531371cd33f3b41112d511", "score": "0.53792715", "text": "public interface PricingConfigurationParameterCEP extends PricingConfigurationParameterCPS\n{\n\t/**\n\t * Retrieves the pricing details mode used for pricing.\n\t *\n\t * @return the pricing details mode\n\t */\n\tSAPProductConfigPricingDetailsMode getPricingDetailsMode();\n\n\t/**\n\t * Retrieves the subTotal name for the base price.\n\t *\n\t * @return the subTotal name for the base price\n\t */\n\tString getSubTotalForBasePrice();\n\n\t/**\n\t * Retrieves the subTotal name for the option price.\n\t *\n\t * @return the subTotal name for the option price\n\t */\n\tString getSubTotalForSelectedOptions();\n\n\t/**\n\t * Retrieves collection of the condition types relevant for the base price calculation.\n\t *\n\t * @return collectiont of the condition types for the base price\n\t */\n\tCollection<String> getConditionTypesForBasePrice();\n\n\t/**\n\t * Retrieves collection of the condition types relevant for the option price calculation.\n\t *\n\t * @return collection of the condition types for the option price\n\t */\n\tCollection<String> getConditionTypesForSelectedOptions();\n}", "title": "" }, { "docid": "6864af9ffe1805934d03df6378699ecc", "score": "0.5373041", "text": "public void editServicePrice(){\n\t\tList<Service> services = se.getServices(true);\n\t\tboolean isOkay;\n\t\tint choice;\n\t\t\n\t\tSystem.out.println(\"\\nEDIT SERVICE PRICE\");\n\t\t\n\t\tdisplayServices(services);\n\t\t\n\t\tdo {\t\t\t\n\t\t\tisOkay = true;\n\t\t\tSystem.out.print(\"Enter the number of the service to edit the price of: \");\n\t\t\tchoice = in.nextInt();\n\n\t\t\tif (choice < 1 || choice > services.size()) {\n\t\t\t\tisOkay = false;\n\t\t\t\tSystem.out.println(\"The chosen option does not exist. Please try again!\\n\");\n\t\t\t} \n\t\t} while (!isOkay);\n\t\t\n\t\tService service = services.get(choice - 1);\n\t\tservice.setCost(enterPrice());\n\t\t\n\t\tse.editService(service);\n\t\tSystem.out.println(\"The price for service \\\"\" + service.getName() + \"\\\" has been changed.\\n\");\n\t}", "title": "" }, { "docid": "a4c4b2801e4ab8153ecd8adf990b881c", "score": "0.53614146", "text": "PriceValue getPointValue();", "title": "" }, { "docid": "bf6f424c73fb50aaecd8aa0bd23666b9", "score": "0.5355142", "text": "@Override\n public double price(){\n return 1100.00;\n }", "title": "" }, { "docid": "d99670dcd019ef8ba9e502d329e72aee", "score": "0.5345119", "text": "public double getPrice() {\n return price_;\n }", "title": "" }, { "docid": "f267e03f72aedacf7d5e63b8145d4ddc", "score": "0.5343711", "text": "public java.math.BigDecimal getRequestedPrice() {\r\n return localRequestedPrice;\r\n }", "title": "" }, { "docid": "80d8528885baddb51b2dfc175c2d7ff7", "score": "0.53401417", "text": "public double getPrice() {\n return price_;\n }", "title": "" }, { "docid": "70dc37a419a8a16e23810638258e42a1", "score": "0.53364944", "text": "private float calculatePrice(boolean hasExtraCheese, boolean hasChicken) {\n int basePrice = PIZZA_PRICE;\n if (hasExtraCheese) {\n basePrice += EXTRA_CHEESE_PRICE;\n }\n if (hasChicken) {\n basePrice += CHICKEN_PRICE;\n }\n\n return quantity * basePrice;\n }", "title": "" }, { "docid": "23f894cceaf5285b9f76ade59b65c991", "score": "0.5336328", "text": "public double calcSellingPrice()\n {\n // calculate selling price\n double sellingPrice = (weight * convertOuncesToPounds) * costPerPound * markupFactor; \n \n // if weight is 0 return -999, else selling price\n if (Math.abs(weight - 0.0) < weightTolerance)\n {\n return -999;\n } \n else\n {\n return sellingPrice;\n }\n }", "title": "" }, { "docid": "9ad3ce51cb2711f4ce14936dc67ba914", "score": "0.53349525", "text": "private void setApproximatePrices() {\n for (TradeGood good : TradeGood.values()) {\n int appxPrice = good.price();\n\n if (((good == TradeGood.FIREARMS && !planet.getPoliticalSystem().firearmsOK())\n || (good == TradeGood.NARCOTICS && !planet.getPoliticalSystem().drugsOK()\n || planet.getLevel().ordinal() < good.minProduceLevel()))) {\n appxPrice = -1;\n } else {\n appxPrice += good.incPerLevel() * (planet.getLevel().ordinal() - good.minProduceLevel());\n\n //if the good is highly wanted, increase the price\n if (good == planet.getPoliticalSystem().wanted()) {\n appxPrice *= (4.0 / 3);\n }\n\n //high trader activity decreases the price\n appxPrice *= (100 - (2 * planet.getPoliticalSystem().strengthTraders())) / 100.0;\n\n //large systems have high production which decreases prices\n appxPrice *= (100 - planet.getSize()) / 100.0;\n\n //checks the resource of the planet and applies a price accordingly\n if (planet.isVisited()) {\n if ((planet.getResource() == good.highCondition()) && planet.getResource() != Resource.NONE) {\n appxPrice *= (4.0 / 3);\n } else if ((planet.getResource() == good.lowCondition()) && planet.getResource() != Resource.NONE) {\n appxPrice *= (3.0 / 4);\n }\n }\n }\n appxPrices.put(good, appxPrice);\n }\n }", "title": "" }, { "docid": "30b3adb719ea14c4193a344f05f50d4f", "score": "0.53301644", "text": "public double getCurrentPrice() \n\t{\n\t\treturn currentPrice;\n\t}", "title": "" }, { "docid": "7363c22c84a0b6ca73423342174bbd25", "score": "0.5325052", "text": "@Override\n\tpublic double cost(){\n\t\treturn 2.99;\n\t}", "title": "" }, { "docid": "addc54fdff828d9eb7d24252659a1337", "score": "0.532292", "text": "private void setPrice() {\r\n if (this.name.equals( \"CONSULTANCY\" )) {\r\n this.price = 500;\r\n } else this.price = 3000;\r\n }", "title": "" }, { "docid": "7e77dc5a3bbe5575b8789b4f9b2fe278", "score": "0.5319341", "text": "public double getPrice(){\r\n\t\treturn price; \r\n\t}", "title": "" }, { "docid": "32ce1322d8d753a188a798a669abe1ba", "score": "0.5315028", "text": "private BigDecimal getPrice(Document document) {\n String priceString;\n try {\n Element priceValue = (Element) document.getElementById(\"pdp-cur-price\");\n priceString = priceValue.childNode(1).toString();\n return new BigDecimal(priceString);\n } catch (Exception ex) {\n priceString = null;\n }\n return null;\n }", "title": "" }, { "docid": "78a3063579d46b9baf644203a3c12e09", "score": "0.53067434", "text": "public double getPrice(){\n\t\treturn price;\n\t}", "title": "" }, { "docid": "b94989bf270e8e0efdf9d0b106ef5b3c", "score": "0.53047734", "text": "public double getImpliedVolForExercisePrice(final double gK, final double optionPremium, final boolean isPayer) {\n final double kMod = _coupon + gK * _df / _fAnnuity;\n final double norPrice = optionPremium / _fAnnuity;\n final double iv = BlackFormulaRepository.impliedVolatility(norPrice, _daFwdSpread, kMod, _expiry, isPayer);\n return iv;\n }", "title": "" }, { "docid": "d7ed47243b5ede6ca0411fdf3e013314", "score": "0.5303072", "text": "public double getPrice() {\n LocalDate start = datePeriod.getStart();\n LocalDate end = datePeriod.getEnd();\n long daysInBetween = DAYS.between(start, end);\n return 100.0 * daysInBetween;\n }", "title": "" }, { "docid": "c29de6b9edb68d63f7c48a02d0922f17", "score": "0.52952796", "text": "public double getPrice() {\r\n\t\treturn price;\r\n\t}", "title": "" }, { "docid": "c29de6b9edb68d63f7c48a02d0922f17", "score": "0.52952796", "text": "public double getPrice() {\r\n\t\treturn price;\r\n\t}", "title": "" }, { "docid": "f3dcd2598cf8e2ce5d0ad15c55a002f5", "score": "0.5295205", "text": "private double getPriceNow(double price,int stock)\r\n {\r\n \r\n double priceNow = price-getDiscount(stock,price);\r\n return priceNow;\r\n }", "title": "" }, { "docid": "ecd25f6be5b6129af548ea6728a9a9f5", "score": "0.5294138", "text": "@Override\n\tpublic float price() {\n\t\treturn 25.0f;\n\t}", "title": "" }, { "docid": "3bfc755ef59dc34043a7d5dc49c4135c", "score": "0.5290137", "text": "public void setPrice(double param) {\r\n this.localPrice = param;\r\n }", "title": "" }, { "docid": "66d58d9f52d65d6b4cd0ae9b3df69c23", "score": "0.52885705", "text": "double getPackagePrice();", "title": "" }, { "docid": "e36c24e42a13008fbc585422005bd737", "score": "0.5287508", "text": "java.lang.String getGuidePrice();", "title": "" }, { "docid": "a389e3f994d5fd42a5513561823abdd5", "score": "0.5285574", "text": "public double getPrice(){\n\t\treturn price;}", "title": "" } ]
c9bb169bd0d78bda65df39a775caa0aa
DataGet dataget = new DataGet();
[ { "docid": "8932dfca8a3b4b10fe5c26a22c915fbe", "score": "0.0", "text": "public String updateRecord(Contacts sc) {\n sc.setUpdate(true);\r\n dataget.updateSc(sc);\r\n return null;\r\n }", "title": "" } ]
[ { "docid": "2f313f5b6344b701be9f5c2aa66db740", "score": "0.661007", "text": "Data(){\t\n\t}", "title": "" }, { "docid": "26679c31125b793ebfa07776b273d53e", "score": "0.65663373", "text": "public void getData()\n\t{\t\n\t}", "title": "" }, { "docid": "408f692b73c36e1b5d7a8131c88a4f15", "score": "0.6518828", "text": "T getData(){\n\t\treturn data;\n\t}", "title": "" }, { "docid": "62c02ec165b4a2021b528fc4a569343e", "score": "0.63430214", "text": "private void getData(){\n apiDataImp.getApiData(MainActivity.this);\n }", "title": "" }, { "docid": "c18ca0591c12ef922408d51e63205feb", "score": "0.6315853", "text": "DataFactory getDataFactory();", "title": "" }, { "docid": "086382f889342e87928ac32afb964031", "score": "0.6302843", "text": "Data(){ // konstruktor pusty\n\t}", "title": "" }, { "docid": "36246f9649fc53754f8a62133c3d7e07", "score": "0.62977904", "text": "public Data()\n {\n }", "title": "" }, { "docid": "8961e95f392dd0be98e1c77d00d57b15", "score": "0.6264073", "text": "public LehuigoDetailData() {\r\n\r\n\t}", "title": "" }, { "docid": "7406cc3435fcb3ca11a040dda3ab7022", "score": "0.6218502", "text": "public T get(){\r\n return data;\r\n }", "title": "" }, { "docid": "7d23039fbd35aa70eb8aaa0d0d20cd74", "score": "0.6190433", "text": "private T getData() {\n return data;\n }", "title": "" }, { "docid": "007b69daa17f90de67bd513ce2c57303", "score": "0.6190365", "text": "public Data() {\n }", "title": "" }, { "docid": "a42f348019ae44e53ca30408ca7f529f", "score": "0.6173238", "text": "DataManager getDataManager();", "title": "" }, { "docid": "9c2476b181fa2d4e8b1917c4c736bcd3", "score": "0.61646074", "text": "public Data SetDataObject(){\n \treturn new DS_2();\n }", "title": "" }, { "docid": "1133dfba7a852bcdb25c5db2fe972e86", "score": "0.61631346", "text": "Dato(T info) {\r\n \r\n this.info=info;\r\n \r\n }", "title": "" }, { "docid": "7f072b99260f9eeb40cdaaf6bdbabe0f", "score": "0.61614543", "text": "public ReadDataInfo() {\n }", "title": "" }, { "docid": "b17e0247f764f6ec68dea6f09abca475", "score": "0.61544764", "text": "IDataObject createDataObject();", "title": "" }, { "docid": "6c277aa3607b49f0fcb6036ff4536d41", "score": "0.6137568", "text": "public DataServiceImpl() {\r\n }", "title": "" }, { "docid": "7d1bd79444f1b4302650e9e5b63027fb", "score": "0.61374277", "text": "public IData getData() {\n return data;\n }", "title": "" }, { "docid": "65c867486f7fccb6e053bcadc2fb1fbf", "score": "0.6132731", "text": "@Override\n\tpublic void getData() {\n\n\t}", "title": "" }, { "docid": "dfe0f759cb23bd73c4ac49dc9d07e4dd", "score": "0.610886", "text": "@Override\n\tpublic void getDatas() {\n\t\t\n\t}", "title": "" }, { "docid": "ee2320e6201e4743ccda01789dce8bb2", "score": "0.6107344", "text": "public void QueryData() {\n }", "title": "" }, { "docid": "ee2320e6201e4743ccda01789dce8bb2", "score": "0.6107344", "text": "public void QueryData() {\n }", "title": "" }, { "docid": "ece3d578e547e00204f06fc1d52bbfef", "score": "0.6104301", "text": "private void getData() {\n\n ApiService apiService = Api.getRxService();\n ApiManager.post(\"gg\");\n }", "title": "" }, { "docid": "0b1e229f0dbbd8e9daa0a655357ee120", "score": "0.6091949", "text": "@Override\n\tpublic void getData() {\n\t\t\n\t}", "title": "" }, { "docid": "46c79287da98f8bbcc2543d8aece6559", "score": "0.6080309", "text": "public Object getData(){\r\n return null;\r\n }", "title": "" }, { "docid": "9fafc919addb34c764c76671a1a8a998", "score": "0.6055938", "text": "public T getData() {return data;}", "title": "" }, { "docid": "062ed619d022a7e7edd77fbf04691712", "score": "0.6039635", "text": "public RegisterData() {}", "title": "" }, { "docid": "bf52363ffcd741263e7775e00fc211d8", "score": "0.6036787", "text": "public T getData()\r\n {\r\n return data;\r\n }", "title": "" }, { "docid": "b4c928530c30ad76e34c3e2aab4ee29e", "score": "0.60292494", "text": "@Override\n\tpublic void getDatas() {\n\n\t}", "title": "" }, { "docid": "c5358b960f41182f14450ce1db0b1e1f", "score": "0.6025984", "text": "public SercodeData() {\n }", "title": "" }, { "docid": "0691a4effddeb50064e8f9f80c4b6a2f", "score": "0.6019204", "text": "public Object getData ()\r\n {\r\n return data;\r\n }", "title": "" }, { "docid": "f2d4c607bf9f69d470a5f0d28e71b238", "score": "0.6006175", "text": "public DataModel() {\n }", "title": "" }, { "docid": "b720751ae595daf24d24838f04fd44fe", "score": "0.5998088", "text": "DataModel createDataModel();", "title": "" }, { "docid": "150d0818edecd0222d86d0f563d0e800", "score": "0.5990771", "text": "public String getData(){ return data; }", "title": "" }, { "docid": "bfb9e3398aa162c1a641d893c90f1cdc", "score": "0.5986456", "text": "public data_model(){\n }", "title": "" }, { "docid": "43c97f40f04956affaefb6e1cb9b89fc", "score": "0.59845364", "text": "public DataList(){\n this.dataList = new ArrayList<>();\n }", "title": "" }, { "docid": "d2731afd9a64049bf2472faa4a49e752", "score": "0.59794396", "text": "public ExpenseData(){\n\n }", "title": "" }, { "docid": "a1242eecce8023173c8d593f8c8146bf", "score": "0.5911849", "text": "public Object getData();", "title": "" }, { "docid": "a1242eecce8023173c8d593f8c8146bf", "score": "0.5911849", "text": "public Object getData();", "title": "" }, { "docid": "a1242eecce8023173c8d593f8c8146bf", "score": "0.5911849", "text": "public Object getData();", "title": "" }, { "docid": "98b0aa095970927f09548c590e8e0154", "score": "0.5898691", "text": "public PingData() {\r\n\r\n\t}", "title": "" }, { "docid": "c5ac9984b5303e6dd2647983abfb8444", "score": "0.58932036", "text": "public DataStore get_DataStore();", "title": "" }, { "docid": "60169e70e649411a72c3ce961bc00d3d", "score": "0.5890201", "text": "public DBData() {\n this.id = 7;\n }", "title": "" }, { "docid": "4859966cc42912ca4d9daa540913c9d5", "score": "0.5880739", "text": "private DataManager() {\n }", "title": "" }, { "docid": "309665a9c7375ff79ccff09a68d59bf5", "score": "0.5873607", "text": "public DataUser() {\n initComponents();\n konek();\n tampilData();\n \n }", "title": "" }, { "docid": "9e030a481ee09ce1bd167116225fa31d", "score": "0.58546805", "text": "private void initData() {\n}", "title": "" }, { "docid": "cf270db98cf243d53312df6c9ca57d77", "score": "0.58545554", "text": "public T getData()\n\t\t {\n\t\t return data;\n\t\t }", "title": "" }, { "docid": "b9e03e78cfe835cf6e8c42b4d8f56d44", "score": "0.5839053", "text": "public void initData();", "title": "" }, { "docid": "322dcf9f70e2ba2c5a29663af2bf6bbd", "score": "0.5833531", "text": "DataObject getDataObject(String key);", "title": "" }, { "docid": "df90dc2a7d1df25e66b8c4706680f00e", "score": "0.58194554", "text": "public E getData(){\n return data;\n }", "title": "" }, { "docid": "2ef64d8aa495ae8322539696384b6836", "score": "0.5813962", "text": "public PostDataModel() {\n }", "title": "" }, { "docid": "2b67d260305cac029f18b09b4a881102", "score": "0.5807526", "text": "public ResponseData() {\n }", "title": "" }, { "docid": "1a7e2da4e5605f914b2c2b3777716e92", "score": "0.5807122", "text": "public Object getData() { return this.data; }", "title": "" }, { "docid": "3ab451458cba24e4134c585eee3ea8bf", "score": "0.57826006", "text": "public T getData() {\r\n return data;\r\n }", "title": "" }, { "docid": "4767770ef161b5817b23f7676f61ef34", "score": "0.5773256", "text": "DataCollection() {}", "title": "" }, { "docid": "86b9455be5d4f795de05f90433433f82", "score": "0.5770243", "text": "public DataReport() {\n }", "title": "" }, { "docid": "c60adb5762c836eaa76097ca5746a214", "score": "0.57491267", "text": "public MetFacturaServicio (){}", "title": "" }, { "docid": "d6a8768e38611dd14b28c1af9eba8ae5", "score": "0.57118505", "text": "private void getData()\n {\n itemList.loadItemList();\n }", "title": "" }, { "docid": "8b0b21f1370e7dc40954ce77ce44a80c", "score": "0.5702259", "text": "public DataBase(){\r\n\t\tinvoiceTable = new InvoiceTable();\r\n\t\taddressTable = new AddressTable();\r\n\t\tg = new Graph();\r\n\t\tnames = new ArrayList<String>();\r\n\t}", "title": "" }, { "docid": "11d2bab7b27482aa16fff987c3dc7646", "score": "0.56920856", "text": "@Override\n public EOData _getData() {\n\n return super._getData();\n // TO DO\n }", "title": "" }, { "docid": "e86221d09ae71a941966e5f31fba4f96", "score": "0.5686151", "text": "private DataLoader() {\r\n\t}", "title": "" }, { "docid": "3e6c5745024ed2d29cb0cc0194c66b11", "score": "0.5679489", "text": "public SchedulerData(){}", "title": "" }, { "docid": "f582c1c0e000d489f1a9af77a16ec75f", "score": "0.5678697", "text": "public PostData() {}", "title": "" }, { "docid": "6996910ebb3c43bdb7889c3e9cf17339", "score": "0.5667591", "text": "public void retrieveData(RequestData requestData);", "title": "" }, { "docid": "0776abbce748c74492adb1fa2a39106c", "score": "0.5665342", "text": "public EventData() {\n super();\n }", "title": "" }, { "docid": "4cbf8ab72f7ab81cc6d6ec0a23863656", "score": "0.56634104", "text": "public interface DataManager {\n void fetchData(String d);\n}", "title": "" }, { "docid": "c6ca4040165779bf9d25f67891ad9089", "score": "0.56610864", "text": "public T getData() {\n return data;\n }", "title": "" }, { "docid": "c6ca4040165779bf9d25f67891ad9089", "score": "0.56610864", "text": "public T getData() {\n return data;\n }", "title": "" }, { "docid": "39691ec4c4b4ecb6d34a07c8c1d360a8", "score": "0.56608874", "text": "public DataController() {\n data = new ArrayList<>();\n }", "title": "" }, { "docid": "20d72c12676262975968c5d67664da3c", "score": "0.56599975", "text": "public Data getData() {\n return data;\n }", "title": "" }, { "docid": "cb5d5610957f8f55afe757fc59d27474", "score": "0.5656198", "text": "public DataSystemManager() {\n\n }", "title": "" }, { "docid": "72eb8ded5b26a7a225a5ee8c705a309e", "score": "0.5652618", "text": "public HomeViewData() {\n initComponents();\n tableLoad();\n \n }", "title": "" }, { "docid": "31e9e323a9378235348a9cc3059dbdd5", "score": "0.5649824", "text": "public DataAccessObject() {\n dbManager = DatabaseManager.getInstance();\n }", "title": "" }, { "docid": "32775ab8d4f2f5bc5b9a3cb009ad4a29", "score": "0.56449366", "text": "public DiagnosticData() {\n }", "title": "" }, { "docid": "422968b517f846b305e07bf254bc927c", "score": "0.5644089", "text": "T getData();", "title": "" }, { "docid": "422968b517f846b305e07bf254bc927c", "score": "0.5644089", "text": "T getData();", "title": "" }, { "docid": "422968b517f846b305e07bf254bc927c", "score": "0.5644089", "text": "T getData();", "title": "" }, { "docid": "402a289251de43cb5ff9aa9f087edb0c", "score": "0.5642436", "text": "public DataPackage()\n {\n super();\n }", "title": "" }, { "docid": "ddd7499bf6380e22fbd6f62a20eed865", "score": "0.5638552", "text": "public BasicHttpData() {\n\t\tsuper();\n\t}", "title": "" }, { "docid": "4d44d89c2f66bed70fea2b77300b4383", "score": "0.5635534", "text": "private DataReport() {\n\t}", "title": "" }, { "docid": "d835bc5b974bfd0b7e8118c7be2a70d2", "score": "0.56235063", "text": "@Test\n public void testGetData() {\n System.out.println(\"getData\");\n Assunto instance = null;\n String expResult = \"\";\n String result = instance.getData();\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "title": "" }, { "docid": "cb4b6418b4fd484b614a6eff0a8b0f97", "score": "0.56180626", "text": "protected Data getCatalog() {\n return (Data) applicationContext.getBean(\"data\");\n }", "title": "" }, { "docid": "39f356fcc946388713d06d71d58b532e", "score": "0.56097907", "text": "public ComboJsonData() {\n }", "title": "" }, { "docid": "a63d1214fed0e6930702f4892bd2fff0", "score": "0.5596379", "text": "private TestDataImpl() {\r\n\r\n }", "title": "" }, { "docid": "76ee305708dbd29820a6bbf9eab030c0", "score": "0.559617", "text": "public Object getDB();", "title": "" }, { "docid": "a17b16d03e6ef1a4ce8cf07fb91952a6", "score": "0.5590549", "text": "public DummyDataProvider() {\n }", "title": "" }, { "docid": "931a35cb1bf63bb6720621ecb0ec4d32", "score": "0.559012", "text": "public ImuData() {\n }", "title": "" }, { "docid": "b436e10c34a057c30b8cd58a01900b20", "score": "0.5581781", "text": "Object obtenerObject(){\n\t\t\treturn datos; // devuelve el objeto Object en este nodo\n\t\t}", "title": "" }, { "docid": "cf011b13735f0c708ea79228eef11d2c", "score": "0.55815446", "text": "private MarketDataProvider()\n {\n this.marketDataReqMap = new HashMap<Integer, MarketDataKey>();\n }", "title": "" }, { "docid": "97b86f0fa3d878acabd73307e2db07f2", "score": "0.5573239", "text": "public G_DataSetField() {}", "title": "" }, { "docid": "5efc99e8c78d588046fc8365664921df", "score": "0.5572775", "text": "public CentralTransDetDAO () {}", "title": "" }, { "docid": "f60fbe620c1891f5b0058f1605d35ab9", "score": "0.5572256", "text": "public courseData() {\n\t\t\n\t}", "title": "" }, { "docid": "5b5724750e60e4b2d22aa20f802b84bb", "score": "0.5562666", "text": "public DataTransportasi() {\n initComponents();\n semuadata();\n }", "title": "" }, { "docid": "646016b7a68ad1dd11d314379a52acf1", "score": "0.5561758", "text": "public T getData() {\n\t\treturn dataItem;\n\t\t\n\t}", "title": "" }, { "docid": "b40a95ab3b355c70fb6f9517b6221c62", "score": "0.55595785", "text": "public DataStore()\n {\n // TODO nothing\n }", "title": "" }, { "docid": "89b5050d9284a4b1719f5016831ee176", "score": "0.5549763", "text": "@Override\n public Object getDatos() {\n return datos; \n }", "title": "" }, { "docid": "1d6e447a5cb8da661e44778836d778c2", "score": "0.55367345", "text": "public abstract void initData();", "title": "" }, { "docid": "75407b5f76a512540f6d57bd5ec457e6", "score": "0.5531164", "text": "public Duke() {\n dataManager = new DataManager();\n taskList = new TaskList();\n }", "title": "" }, { "docid": "532bcea611786f618b9b20f32083ac90", "score": "0.55288446", "text": "public interface dataGeneral {\n\n public static final int cve_dep = 0;\n public static final String urlService = \"http://testws.sfapuebla.gob.mx/WsDiversos/Service.asmx/\";\n public static final String urlMethod = \"generaReferencia\";\n public static final int unidad_resp = 1;\n public static final int no_servicio = 24;\n public static final int copias = 0;\n public static final int ent_fed = 21;\n public static final int pais = 52;\n public static final int cuentaCruzRoja = 0;\n public static final String ALGORITMO = \"AES/CBC/PKCS5Padding\";\n public static final String CODIFICACION = \"UTF-8\";\n public static final String key = \"UTF-8\";\n\n}", "title": "" }, { "docid": "b0630a81314d9652b311b61e4a1f54f0", "score": "0.552687", "text": "DataObject retrieve(String name);", "title": "" }, { "docid": "ba02dbf32ee9a758e9c8add4eb76836e", "score": "0.5526252", "text": "public com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean getDataBean(javax.servlet.http.HttpServletRequest request) {\n\tLeasePosSchetFaktAccessBean bean = new LeasePosSchetFaktAccessBean();\n\tbean.setInitKey_idPosSchetFakt(getIdPosSchetFakt());\n\treturn bean;\n}", "title": "" } ]
bfab482d4593be6ccb604749bd1def47
handle request form home page
[ { "docid": "a2b9971f32b5f57d5d81d6377c240f18", "score": "0.0", "text": "@RequestMapping(value = \"/movieInfo{movieId}\")\n\tpublic String movieInformation(Model model) {\n\n\t\treturn \"movieInformation\";\n\t}", "title": "" } ]
[ { "docid": "514fc919f6a5c180a0f7ddf432b04909", "score": "0.7356334", "text": "@Override\n protected void handleRequest(HttpServletRequest request, HttpServletResponse response) throws Exception {\n gotoToJSP(\"main/home.jsp\", request, response);\n }", "title": "" }, { "docid": "98b2d1eef9d21b0f207a1e4bad89e3f2", "score": "0.679045", "text": "private void goHomePage(HttpServletRequest request,\n\t\t\tHttpServletResponse response) {\n\t\ttry {\n\t\t\tresponse.sendRedirect(\"index.jsp\");\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "bfeae0b3d3743ddb85bc270edaf7690f", "score": "0.6706814", "text": "private void doHomePage() {\n\t\tHistory.newItem(\"home\");\n\t}", "title": "" }, { "docid": "550e5d922d297c70186c94f25998d219", "score": "0.66341", "text": "public void user() {\r\n\t\t\r\n\t\tif(this.request.getMethod().toUpperCase().equals((\"GET\"))){\r\n\t\t\tthis.displayView();\r\n\t\t}\r\n\r\n\t\ttry {\r\n\t\t\tthis.response.sendError(404, \"Not implemented yet.\");\r\n\t\t} catch (Exception e){\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "b0433effd65b06e73fc4593481525284", "score": "0.6611944", "text": "public void homepage()\n\t{\n\t\t@SuppressWarnings(\"resource\")\n\t\tScanner sc1 = new Scanner(System.in);\n\t\tSystem.out.println(\"Sign in Press ---> 1\");\n\t\tSystem.out.println(\"Sign Up Press ---> 2\");\n\t\tSystem.out.println(\"Account Delete Press ---> 3\");\n\t\tint option = sc1.nextInt();\n\t\t\n\t\tswitch(option)\n\t\t{\n\t\t\tcase 1 : userlogin(); break;\n\t\t\tcase 2 : try \n\t\t\t\t\t{\n\t\t\t\t\t\tsignup();\n\t\t\t\t\t}\n\t\t\t\t\tcatch (SQLException e)\n\t\t\t\t\t{\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\tcase 3 : try \n\t\t\t\t\t{\n\t\t\t\t\t\tdelete_account();\n\t\t\t\t\t} \n\t\t\t\t\tcatch (SQLException e) \n\t\t\t\t\t{\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "ac14ff21ebe3a3ecbb70714fcc48a444", "score": "0.6585418", "text": "@Override\n\t\t\tpublic void onHome(HomeEvent event) {\n\t\t\t\tdoHomePage();\n\t\t\t}", "title": "" }, { "docid": "134919ab4765cc49da19df88cfe75f91", "score": "0.6536816", "text": "@Override\n\t// override method Service request and response\n\tprotected void service(HttpServletRequest req, HttpServletResponse res)\n\tthrows ServletException, IOException {\n\t\treq.getRequestDispatcher(\"/WEB-INF/views/homePage.jsp\").forward(req, res);\t\t\n\t}", "title": "" }, { "docid": "fdc362df6cc44fe5df5e5e43d9c3dc13", "score": "0.6500382", "text": "public void homePage() {\n Router.getInstance().activate(\"HomePage\");\n }", "title": "" }, { "docid": "86d75cac1e88ad7b0f04820d9a7cba6c", "score": "0.64532965", "text": "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n try {\r\n processRequest(request, response);\r\n } catch (ParseException ex) {\r\n Logger.getLogger(Home.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }", "title": "" }, { "docid": "876677c0fa47b6a329895a55e63f192d", "score": "0.64224225", "text": "@RequestMapping({ \"/login\" , \"/request\" , \"/profile\" })\n\t\t\t\tpublic String home(HttpServletRequest request) {\n\t\t\tSystem.out.println(\"------------------------------\" + request.getRequestURI());\n\t\t\t\n\n\t\t\t\treturn \"index.html\";\n\t\t\t}", "title": "" }, { "docid": "e61a52b8d1ce1810188556a3a890d8bd", "score": "0.6418721", "text": "@Override\r\n public Object handle(Request request, Response response) {\r\n final Session httpSession = request.session();\r\n LOG.finer(\"GetHomeRoute is invoked.\");\r\n //\r\n String player = httpSession.attribute(PLAYERSERVICES_KEY);\r\n this.player = playerLobby.getSpecificPlayer(player);\r\n Map<String, Object> vm = new HashMap<>();\r\n vm.put(\"title\", \"Welcome!\");\r\n\r\n if (httpSession.attribute(\"message\") != null) {\r\n vm.put(\"message\", httpSession.attribute(\"message\"));\r\n httpSession.removeAttribute(\"message\");\r\n }\r\n\r\n if (player != null) {\r\n if (!this.player.inGame()) {\r\n if (httpSession.attribute(GetGameRoute.GAMELOBBY) != null) {\r\n httpSession.removeAttribute(GetGameRoute.GAMELOBBY);\r\n }\r\n if (httpSession.attribute(PostResignGame.RESIGNED_PLAYER) != null) {\r\n httpSession.removeAttribute(PostResignGame.RESIGNED_PLAYER);\r\n }\r\n }\r\n }\r\n\r\n if (this.player == null) {\r\n vm.put(SIGNEDIN, false);\r\n vm.put(USERS, playerLobby.getNumberOfPlayers());\r\n return templateEngine.render(new ModelAndView(vm, \"home.ftl\"));\r\n } else if (playerLobby.getNumberOfPlayers() == 1) {\r\n vm.put(SIGNEDIN, true);\r\n vm.put(ONLY_ONE, true);\r\n vm.put(USER, this.player.getName());\r\n return templateEngine.render(new ModelAndView(vm, \"home.ftl\"));\r\n } else if (this.player.inGame()) {\r\n response.redirect(WebServer.GAME_URL);\r\n halt();\r\n return null;\r\n } else {\r\n vm.put(SIGNEDIN, true);\r\n vm.put(ONLY_ONE, false);\r\n vm.put(USER, this.player.getName());\r\n vm.put(USERS, playerLobby.getAllPlayersExceptUser(this.player.getName()));\r\n return templateEngine.render(new ModelAndView(vm, \"home.ftl\"));\r\n }\r\n }", "title": "" }, { "docid": "4e1e0b222dab9a0c1856e3da1f01a51a", "score": "0.6403664", "text": "@RequestMapping(value = { \"/\" }, method = RequestMethod.GET)\n\tpublic String showHomePage(Map<String, Object> model) {\n\t\tLOGGER.debug(\"In the / Request Mapping\");\n\t\treturn \"redirect:/welcome\";\n\t}", "title": "" }, { "docid": "9e993a5632056a093d4fe8974d00e194", "score": "0.6289599", "text": "private void home(ActionEvent e)\n {\n if( uc.authenticate(this.userId + \"\", 1) )\n {\n show( new MainView(\"librarian\"), e );\n }\n else\n {\n show( new MainView(\"user\"), e );\n }\n }", "title": "" }, { "docid": "3c6e8efa2c69a9456766704d593a6818", "score": "0.6258968", "text": "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n try {\r\n processRequest(request, response);\r\n } catch (ParseException ex) {\r\n Logger.getLogger(Home.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }", "title": "" }, { "docid": "8e72e04909e05a588df7409deaff7145", "score": "0.62470996", "text": "private void loadHomePage(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException, ParseException {\n updateCouponsByDate(request, response);\n String category = request.getParameter(\"Category\");\n if (category != null && !category.equals(\"All Coupons\"))\n {\n List<Coupon> listOfCategories = HibernateCouponsDAO.getInstance().getCouponsByCategory(category);\n request.setAttribute(\"ListOfAllCouponsInDB\", listOfCategories );\n }\n else {\n if (!checkIfThereIsCoordinates(request, response))\n {\n List<Coupon> listOfAllCoupons = Model.HibernateCouponsDAO.getInstance().getAllCoupons();\n request.setAttribute(\"ListOfAllCouponsInDB\", listOfAllCoupons);\n }\n\n }\n //For Junit Test Index\n request.setAttribute(\"JunitTestIndexes\",1);\n RequestDispatcher dispatcher = request.getRequestDispatcher(\"/HomePage.jsp\");\n dispatcher.forward(request, response);\n }", "title": "" }, { "docid": "6e4b8d4457d8542a34664d894ac6fec2", "score": "0.62287796", "text": "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n String page = request.getPathInfo();\r\n \r\n if (page == null || page.isEmpty()) {\r\n response.sendRedirect(request.getContextPath() + \"/patient/\");\r\n return;\r\n }\r\n \r\n if (request.getSession().getAttribute(\"user\") == null) {\r\n response.sendRedirect(request.getContextPath());\r\n return;\r\n }\r\n \r\n switch (page) {\r\n case \"/\": \r\n homePage(request, response);\r\n return;\r\n case \"/home\": \r\n homePage(request, response);\r\n return;\r\n case \"/profile\": \r\n profile(request, response);\r\n return;\r\n case \"/updateProfile\":\r\n updateProfile(request, response);\r\n return;\r\n case \"/info\":\r\n info(request, response);\r\n return;\r\n default:\r\n response.sendError(HttpServletResponse.SC_NOT_FOUND);\r\n }\r\n }", "title": "" }, { "docid": "8bda7bba212c566e72471f43b5d664df", "score": "0.62099445", "text": "public void onHomePage() {\n view.backToHomePage();\n }", "title": "" }, { "docid": "fb413f301dc2a20de6412b601c8be854", "score": "0.6172184", "text": "protected void mainpage() {\n\t\ttry {\n\t\t\t// session.logoutUser();\n\t\t\tuser = session.getUserDetails();\n\t\t\taccount_type = user.get(SessionManager.KEY_AccountType);\n\t\t\tLog.d(\"Logintype\", \"type\" + account_type);\n\t\t\tsession.checkLogin();\n\t\t\tfinish();\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\t//e.printStackTrace();\n\t\t} catch (OutOfMemoryError o) {\n\t\t\t//o.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "b635861860c7dc77a3efaf88eb743e15", "score": "0.60966307", "text": "@RequestMapping(value = \"/home\", method = RequestMethod.GET)\n\tpublic String home(HttpServletRequest request, Model model) {\n\t\tHttpSession session = request.getSession();\n\t\tif (session.getAttribute(\"path\") == null)\n\t\t\tsession.setAttribute(\"path\", request.getContextPath());\n\t\treturn \"home\";\n\t}", "title": "" }, { "docid": "414f206c3d0bc6da58b39c75d9336356", "score": "0.6084127", "text": "abstract protected void goHome();", "title": "" }, { "docid": "cbe2d5e915b033916ba49dce1734ac86", "score": "0.6056015", "text": "public void processRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException {\r\n\r\n String fullURL = request.getRequestURI();\r\n // get the screen name\r\n String selectedURL = null;\r\n int lastPathSeparator = fullURL.lastIndexOf(\"/\") + 1;\r\n if (lastPathSeparator != -1) {\r\n selectedURL = fullURL.substring(lastPathSeparator, fullURL.length());\r\n }\r\n URLMapping urlMapping = getURLMapping(selectedURL);\r\n HTMLAction action = getAction(urlMapping);\r\n if (action != null) {\r\n action.setServletContext(request.getSession().getServletContext());\r\n action.doStart(request,response);\r\n action.perform(request,response);\r\n action.doEnd(request,response);\r\n }\r\n }", "title": "" }, { "docid": "47c4eebd23ca7585204f2b9d2370b895", "score": "0.6052504", "text": "public String home() {\n\t\tList<BlogDTO> blogDTOList = blogService.searchAllBlog((HttpServletRequest)request);\n\t\tList<CategoryDTO> categoryDTOList = categoryService.searchAllCategory();\n\t\tfor (CategoryDTO categoryDTO : categoryDTOList) {\n\t\t\tint counts = blogService.searchBlogCountsByCategoryId(categoryDTO.getCategoryId());\n\t\t\tcategoryDTO.setCounts(counts);\n\t\t}\n\t\t// 将categoryDTOList设置到application中\n\t\tapplication.setAttribute(\"categoryDTOList\", categoryDTOList);\n\t\trequest.setAttribute(\"blogDTOList\", blogDTOList);\n\n\t\treturn \"home\";\n\t}", "title": "" }, { "docid": "15b7e6bb7948b024d2038b7ebabf3407", "score": "0.6036705", "text": "@Override\n\tpublic Object get(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows IOException {\n\t\tResourceUtils.classLoaderClass = HomePage.class;\n\t\tresponse.sendRedirect(\"/home\");\n\t\treturn null;\n\t}", "title": "" }, { "docid": "c04b7522d2e0ae14522742c78bca834b", "score": "0.6026213", "text": "void handleRequest();", "title": "" }, { "docid": "c4012734a48cc99c51238485dd1112bc", "score": "0.60081846", "text": "public void homePage(MouseEvent e) throws IOException {\n FXMLLoader loader = new FXMLLoader(getClass().getResource(\"PatientHome.fxml\"));\n Parent homePage = loader.load();\n PatientHomeController patientHomeController = loader.getController();\n patientHomeController.showPatientHomePageContents(payLoad);\n Scene homeScene = new Scene(homePage);\n Stage appStage = (Stage) ((Node) e.getSource()).getScene().getWindow();\n appStage.setScene(homeScene);\n }", "title": "" }, { "docid": "f20b1b7e4d797dcb0eaba237d7b7bc3a", "score": "0.6007265", "text": "@RequestMapping(value = \"/\", method = RequestMethod.GET)\n\tpublic String home(Locale locale, Model model) {\n\t\t\t\n\tSystem.out.println(\"정상 실행됨!!\");\n\treturn \"main\";\n\n\t}", "title": "" }, { "docid": "f87aa1604e4b83743fb8f16c45482cba", "score": "0.5991067", "text": "@Override\n\tpublic void handleRequest() {\n\t}", "title": "" }, { "docid": "dc96ba4d5b8f1258731a4c42d4616b47", "score": "0.5990796", "text": "public void home(ActionEvent event) {\n\n\t\tmyController.setScreen(Main.homePageID);\n\n\t}", "title": "" }, { "docid": "a29152c61c7fe6d54f07151324e3c2d0", "score": "0.5989691", "text": "public void start(){\n welcomePage.process();\n }", "title": "" }, { "docid": "2498a94c3829649da1cc7209ea203c51", "score": "0.5985727", "text": "@RequestMapping(value = \"/about\", method = RequestMethod.GET)\n\tpublic String home(final HttpServletRequest request, final HttpServletResponse response)\n\t{\n\t\treturn \"views/about\";\n\t}", "title": "" }, { "docid": "07e12109dd690f5c27c0e3732e5dadcd", "score": "0.59550565", "text": "@RequestMapping(value = \"/private/homeCasos\", method = RequestMethod.GET)\r\n\tpublic ModelAndView goHomeCasos() {\r\n\t\t\r\n\t\tlogger.info(\"--- Inicio -- listadoCasos ---\");\r\n\t\t\r\n\t\tModelAndView model = new ModelAndView();\r\n\t\tmodel.setViewName(\"private/homeCasosPage\");\r\n\t\r\n\t\tlogger.info(\"--- Fin -- listadoCasos ---\");\r\n\t\t\t\t\r\n\t\treturn model;\r\n\t}", "title": "" }, { "docid": "ee305bd9124029cd5d2073208b893bb6", "score": "0.5951181", "text": "private void afegirSalaAction() throws ServletException, IOException{\n\t\turlExit=\"intranet/fitxa-sala.jsp\";\n\t}", "title": "" }, { "docid": "774fd85e98e13814660f33a49e6c4ecc", "score": "0.5924266", "text": "@RequestMapping(value=\"/admin/home\", method = RequestMethod.GET)\n\tpublic ModelAndView home(){\n\t\tModelAndView modelAndView = new ModelAndView();\n\t\tAuthentication auth = SecurityContextHolder.getContext().getAuthentication();\n\t\tUser user = userService.findUserByEmail(auth.getName());\n\t\tmodelAndView.addObject(\"userName\", \"Welcome \" + user.getName() + \" \" + user.getLastName() + \" (ADMIN) \" + \" (\" + user.getEmail() + \")\");\n\t\tmodelAndView.addObject(\"adminMessage\",\"Admin Users Page\");\n\t\tList<SwapOrig> confirmedSwaps = swapService.returnConfirmedSwaps();\n\t\tmodelAndView.addObject(\"myswaps\", confirmedSwaps);\n\t\tmodelAndView.setViewName(\"admin/home\");\n\t\treturn modelAndView;\n\t}", "title": "" }, { "docid": "594062a6ad655558ede9888450ba176a", "score": "0.58839667", "text": "public String handlerRequest(HttpServletRequest req, HttpServletResponse res) throws Exception {\n\t\t// TODO Auto-generated method stub\r\n\r\n\t\treq.setAttribute(\"jsp\", \"../custom_board/faq_insert.jsp\");\r\n\n\t\treturn \"main/main.jsp\";\r\n\t\t}", "title": "" }, { "docid": "b46064d86f79fc70da133c87e07409df", "score": "0.58772373", "text": "private static void handlePageShowAllUser() {\n\t\t\r\n\t}", "title": "" }, { "docid": "00bd0778f65cdc4e82688dc0f70cae18", "score": "0.5875575", "text": "protected void loadHomePage(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\r\n\t\tSystem.out.println(\"I am inside of loadHomePage Servlet!\");\r\n\t\tHttpSession session = req.getSession();\r\n\t\tPrintWriter write = resp.getWriter();\r\n\r\n\t\tString username = (String) session.getAttribute(\"myUsername\");\r\n\t\tSystem.out.println(username);\r\n\t\tEmployee employee = employeeService.getEmployeeByUsername(username);\r\n\t\tSystem.out.println(employee);\r\n\r\n\t\tObjectMapper objectMapper = new ObjectMapper();\r\n\t\tfinal String JSON = objectMapper.writeValueAsString(employee);\r\n\t\twrite.write(JSON);\r\n\t\tSystem.out.println(JSON);\r\n\r\n\t}", "title": "" }, { "docid": "a7f5d0c0d6e8a1a00e68f7ba4f8b8184", "score": "0.5875455", "text": "private void defaultMethod(HttpServletRequest request, HttpServletResponse response)\n throws IOException, ServletException {\n RequestDispatcher dispatcher = request.getRequestDispatcher(\"index.jsp\");\n dispatcher.forward(request, response);\n }", "title": "" }, { "docid": "1a6ab7d4ac1a89a18cdd766c51304bdd", "score": "0.58692306", "text": "public void handle(HttpExchange httpExch) throws IOException {\n\t\ttry {\n\t\t\tString uri = httpExch.getRequestURI().toString(); // e.g. /sign?name=test.xml\n\n\t\t\tif (uri.startsWith(\"/callback?\")) {\n\t\t\t\thandleCallback(httpExch, uri);\n\t\t\t}\n\t\t\telse if (uri.startsWith(\"/sign?name=\")) {\n\t\t\t\thandleSign(httpExch, uri);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tshowHomePage(httpExch);\n\t\t\t}\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\ttry {\n\t\t\t\tSystem.out.println(\"ERR in Standalone.handle(): \" + e.toString());\n\t\t\t\trespond(httpExch, 500, \"text/plain\", e.toString().getBytes());\n\t\t\t}\n\t\t\tcatch (Exception x) {\n\t\t\t\tx.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "7abc1de38bddb3d346d44a92e06af14d", "score": "0.5864521", "text": "@RequestMapping(value=\"/home\", method = RequestMethod.GET)\n\tpublic ModelAndView homeUser(){\n\t\tModelAndView modelAndView = new ModelAndView();\n\t\t//retrieve user details from Spring Security\n\t\tAuthentication auth = SecurityContextHolder.getContext().getAuthentication();\n\t\tUser user = userService.findUserByEmail(auth.getName());\n\t\tString email = user.getEmail();\n\t\t//update triggers in database so user can't accept own swaps or\n\t\t//confirm swaps which were already confirmed\n\t\tswapService.updateUsersSwapStatus(email);\t\n\t\t\n\t\t//update database trigger fields for swaps which user is not involved in\n\t\tswapService.updateOtherSwapStatus(email);\n\t\t\n\t\t//if user is Admin\n\t\tif(auth.getAuthorities().toString().equals(\"[ADMIN]\")){\n\t\t\tmodelAndView = new ModelAndView(\"redirect:/admin/home\");\n\t\t} else {\n\t\t\tmodelAndView.addObject(\"userName\", \"Welcome \" + user.getName() + \" \" + user.getLastName() + \" (\" + user.getEmail() + \")\");\n\t\t\tmodelAndView.addObject(\"userMessage\",\"Normal Users Page\");\n\t\t\tmodelAndView.setViewName(\"home\");\n\t\t}\n\t\treturn modelAndView;\n\t}", "title": "" }, { "docid": "a20f5802c34997881c15b63f40ab7a5e", "score": "0.58643544", "text": "protected void processRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n doActieEnBepaalView(request,response);\n RequestDispatcher dispatcher = \n request.getRequestDispatcher(JSP_TEMPLATE);\n dispatcher.forward(request,response);\n }", "title": "" }, { "docid": "e7a32821d6209d9166beaefe72e2417d", "score": "0.58560616", "text": "@RequestMapping(value = \"/index\")\n public String loadIndexPage(HttpServletRequest request, Model model) {\n String msg = config_success;\n\n model.addAttribute(\"msg\", msg);\n model.addAttribute(\"data\", \"Nicekkong's World!!\");\n\n //logger.info(\" >>>> Server Env : \" + serverEnv);\n return \"index\";\n }", "title": "" }, { "docid": "e2693d6d90fddb13dc2d7f83b285110a", "score": "0.58460957", "text": "public static void process(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException {\n\t\t\n\t\tEmpController ec = new EmpControllerImpl();\n\t\tDeptController dc = new DeptControllerImpl();\n\t\tFormController fc = new FormControllerImpl();\n\t\tString uri = request.getRequestURI();\n\t\t\n\t\tSystem.out.println(uri);\n\t\t\n\t\tswitch (uri) {\n\t\t\n\t\tcase \"/TRMSProject/getEmployee.do\": {\n\t\t\t//ec.getEmployee(request, response);\n\t\t\tbreak;\n\t\t} case \"/TRMSProject/login.do\": {\n\t\t\tec.login(request, response);\n\t\t\tbreak;\n\t\t} case \"/TRMSProject/loggedInUser.do\": {\n\t\t\tec.loggedInUser(request, response);\n\t\t\tbreak;\n\t\t} case \"/TRMSProject/getSup.do\": {\n\t\t\tec.getEmployeeById(request, response);\n\t\t\tbreak;\n\t\t} case \"/TRMSProject/viewEmployee.do\": {\n\t\t\tec.viewSubordinate(request, response);\n\t\t\tbreak;\n\t\t} case \"/TRMSProject/getDept.do\": {\n\t\t\tdc.getDeptById(request, response);\n\t\t\tbreak;\n\t\t} case \"/TRMSProject/userForm.do\": {\n\t\t\tfc.getUserFormInfo(request, response);\n\t\t\tbreak;\n\t\t} case \"/TRMSProject/submitGrade.do\": {\n\t\t\tfc.submitGrade(request, response);\n\t\t\tbreak;\n\t\t} case \"/TRMSProject/addEvent.do\": {\n\t\t\tfc.addEvent(request, response);\n\t\t\tbreak;\n\t\t} case \"/TRMSProject/addForm.do\": {\n\t\t\tfc.addForm(request, response);\n\t\t\tbreak;\n\t\t} case \"/TRMSProject/deleteForm.do\": {\n\t\t\tfc.deleteForm(request, response);\n\t\t\tbreak;\n\t\t} case \"/TRMSProject/approval.do\": {\n\t\t\tfc.updateApproval(request, response);\n\t\t\tbreak;\n\t\t} case \"/TRMSProject/logout.do\": {\n\t\t\tec.logout(request, response);\n\t\t\tbreak;\n\t\t} default: {\n\t\t\tresponse.sendError(418, \"Default case hit. Cannot brew coffee, am teapot\");\n\t\t\tbreak;\n\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "6ad6128f99a8a1cd7777530bce35f191", "score": "0.5845741", "text": "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n HttpSession session = request.getSession();\n\n String menu = request.getParameter(\"menu-factory\");\n String action = request.getParameter(\"action\");\n\n if (menu == null || menu.isEmpty()) {\n // request.getRequestDispatcher(viewIndex).forward(request, response);\n } else {\n switch (menu) {\n case \"assemble-furniture\": {\n try {\n session.setAttribute(\"msg\", \"\");\n session.setAttribute(\"err\", \"\");\n reloadPieceAdmin(session);\n reloadFurnitureTypeList(session);\n reloadListlistAssemblagePiece(session);\n } catch (CustomException ex) {\n session.setAttribute(\"err\", ex.getMessage());\n }\n }\n request.getRequestDispatcher(assembleFurniture).forward(request, response);\n break;\n\n case \"register-furniture\": {\n try {\n\n session.setAttribute(\"msg\", \"\");\n session.setAttribute(\"err\", \"\");\n\n listAllDataAvailable(session);\n reloadFurnitureTypeList(session);\n reloadUserList(session);\n } catch (CustomException ex) {\n session.setAttribute(\"err\", ex.getMessage());\n }\n }\n\n request.getRequestDispatcher(registerFurniture).forward(request, response);\n break;\n\n case \"info-furniture\": {\n try {\n reloadSortDateAssembleFurnitureList(session);\n } catch (CustomException ex) {\n session.setAttribute(\"err\", ex.getMessage());\n }\n }\n request.getRequestDispatcher(infoFurniture).forward(request, response);\n break;\n\n case \"admin-piece\": {\n try {\n reloadPieceAdmin(session);\n listAllDataAvailable(session);\n\n } catch (CustomException ex) {\n session.setAttribute(\"err\", ex.getMessage());\n }\n }\n\n request.getRequestDispatcher(adminPiece).forward(request, response);\n break;\n\n case \"info-piece\": {\n try {\n reloadSortPieceList(session);\n } catch (CustomException ex) {\n session.setAttribute(\"err\", ex.getMessage());\n }\n }\n request.getRequestDispatcher(infoPiece).forward(request, response);\n break;\n\n case \"home\":\n request.getRequestDispatcher(home).forward(request, response);\n break;\n default:\n\n }\n }\n\n }", "title": "" }, { "docid": "9cc92da9c30e15d8856f0e2f50fbe77a", "score": "0.58285564", "text": "@RequestMapping(value=\"/\")\n\tpublic String showHomePage() {\n\t\t\n\t\tlog.info(\"home.jsp is displayed\");\n\t\treturn \"home\";\n\t}", "title": "" }, { "docid": "2997f4bd2b995c92b6e7b58f644dc334", "score": "0.58220625", "text": "@RequestMapping(value = \"/home\", method = RequestMethod.GET)\n\tpublic String homePage() {\n\t\treturn \"home\";\n\t}", "title": "" }, { "docid": "c93b0c580b1395c72e3ef1da66aa9c2e", "score": "0.5821181", "text": "public void handleGETRequest(HttpExchange exchange) throws IOException {\n renderHTMLPage(exchange, Config.HOME_PAGE);\n String logMessage = exchange.getRequestMethod() + exchange.getRequestURI().toString() + \" \" + exchange.getResponseCode();\n logger.log(Level.INFO, logMessage);\n\n }", "title": "" }, { "docid": "57c49cea127150d723b6083815cf560b", "score": "0.5819519", "text": "public void verifyHomePage()\n\t{\n\t}", "title": "" }, { "docid": "e4809b46dbd2030a9bd3a71131c5be0f", "score": "0.58168465", "text": "@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n request.getRequestDispatcher(\"/WEB-INF/Home/index.jsp\").forward(request, response);\r\n }", "title": "" }, { "docid": "3bdb09d49760e8a49487ae9cf5374af3", "score": "0.58139104", "text": "@RequestMapping(value = {\"/\", \"/home\"}, method = RequestMethod.GET)\n public String showHomePage() {\n return \"home\";\n }", "title": "" }, { "docid": "daf83a8fec58cbf3caff3e1c0cfe5a41", "score": "0.5813492", "text": "@RequestMapping(\"/\")\n\tpublic String showHome(Model model) {\n\t\tSystem.out.println(\"HomeController is running!\");\n\t\tmodel.addAttribute(\"serverTime\", new Date());\n\t\t\n\t\treturn \"home\";\n\t}", "title": "" }, { "docid": "50968e6ee44f75e3a181c1b34a7a4895", "score": "0.58027244", "text": "@RequestMapping(value=\"main\",method = RequestMethod.GET)\n public void goToMain() {\n logger.info(\"go to main page\");\n }", "title": "" }, { "docid": "dbe34bd15a42cedb398d9a88d94f8db0", "score": "0.5799853", "text": "protected void handleRequest(HttpServletRequest request, HttpServletResponse response, HttpSession session) throws ServletException, IOException {\n\t\tConfig.set(request, Config.FMT_LOCALE, session.getAttribute(\"language\"));\n \n StateList stateList = new StateList();\n int id = 1;\n if (request.getParameter(\"country_id\") != null)\n \tid = Integer.valueOf(request.getParameter(\"country_id\"));\n List<State> states = stateList.getResults(1,id);\n \n request.setAttribute(\"states\", states);\n\n RequestDispatcher rd = request.getRequestDispatcher(\"/WEB-INF/include/ShowNameAndStates.jsp\");\n rd.forward(request, response);\n //response.getWriter().println(\"My Name: Tim Johnson\");\n\t}", "title": "" }, { "docid": "73dbb2a9e0a88a5c97749239b845d7ee", "score": "0.5796794", "text": "@Override\n\tpublic void validateHomePage() {\n\n\t}", "title": "" }, { "docid": "07481407945b74b1cafab55a06f389ec", "score": "0.579358", "text": "@Override\r\n\tprotected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tSystem.out.println(\"MainFrontController doGet()\");\r\n\t\tdoProcess(request, response);\r\n\t}", "title": "" }, { "docid": "ab83e5db884dd5c21dd288315780a987", "score": "0.57919323", "text": "@GetMapping({ \"\", \"home\", \"/\" })\n public String mainPage() {\n\treturn \"home\";\n }", "title": "" }, { "docid": "8c9ebe56ae3f379dbb93c6fbffe65242", "score": "0.5788668", "text": "@RequestMapping(value = \"/\", method = RequestMethod.GET)\n\tpublic String home(Model model\n\t , HttpSession session) {\n\t\tlogger.info(\"home\");\n\t\tList<ModelBoard> free = svrboard.getBoardList(null, \"free\", 0, 5);\n\t\tmodel.addAttribute(\"freelist\",free);\n List<ModelBoard> notice = svrboard.getBoardList(null, \"notice\", 0, 5);\n model.addAttribute(\"notilist\",notice);\n List<ModelBoard> subject = svrboard.getBoardList(null, \"subject\", 0, 5);\n model.addAttribute(\"subjectlist\",subject);\n List<ModelBoard> qna = svrboard.getBoardList(null, \"qna\", 0, 5);\n model.addAttribute(\"qnalist\",qna);\n List<ModelBoard> complain = svrboard.getBoardList(null, \"complain\", 0, 5);\n model.addAttribute(\"complainlist\",complain);\n List<ModelBoard> needbook = svrboard.getBoardList(null, \"needbook\", 0, 5);\n model.addAttribute(\"needlist\",needbook);\n\t\tmodel.addAttribute(WebConstants.SESSION_NAME, session.getAttribute(WebConstants.SESSION_NAME));\n\t\treturn \"home\";\n\t}", "title": "" }, { "docid": "0cf0fc9ecf2caed20f8558695bc6dd5b", "score": "0.578806", "text": "@Override\n\tpublic ActionForward execute(ActionMapping mapping, ActionForm form,\n\t\t\tHttpServletRequest request, HttpServletResponse response) throws Exception {\n\t\tString view = request.getParameter(\"view\");\n\t\tif (view == null) {\n\t\t\tview = \"home\";\n\t\t}\n\n\t\t// normally, these would be separate actions to limit the amount\n\t\t// of data returned. I'm cheating...\n\t\tMainForm mainForm = (MainForm) form;\n\t\tmainForm.setParts(partsResource.getParts());\n\t\tmainForm.setClients(clientResource.getClients());\n\n\t\t// Find and forward to the correct view\n\t\treturn mapping.findForward(view);\n\t}", "title": "" }, { "docid": "5b365787401d570cf8bf0081d3d6caf9", "score": "0.57854927", "text": "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n try {\n processRequest(request, response);\n } catch (SQLException ex) {\n Logger.getLogger(dashboard.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "title": "" }, { "docid": "4f3e11987fc171fdcde7d9b9e8159bcf", "score": "0.5778811", "text": "@Override\n public String performGet(HttpServletRequest request) {\n HttpSession session = request.getSession();\n if (session.getAttribute(\"user\") == null) {\n return \"homepage.do\";\n }\n // Otherwise, just display the login page.\n session.setAttribute(\"user\", null);\n return \"login.do\";\n }", "title": "" }, { "docid": "f2dceb01ee24ce526674df0d5f5d09b9", "score": "0.5776022", "text": "@Override\n\tpublic void service(HttpServletRequest request, HttpServletResponse response) throws IOException {\n\t\tresponse.sendRedirect(\"/photo/index.html\");\n\t}", "title": "" }, { "docid": "31625bc42f9e9855f75a46b6e5e4e596", "score": "0.57744753", "text": "protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n\t\t\tthrows ServletException, IOException {\r\n\r\n\t\tString page = request.getParameter(\"page\");\r\n\t\t\r\n\t\tpage = page.toLowerCase();\r\n\r\n\t\tswitch (page) {\r\n\r\n\t\tcase \"listuser\":\r\n\r\n\t\t\tlistUsers(request, response);\r\n\t\t\tbreak;\r\n\t\tcase \"adduser\":\r\n\r\n\t\t\taddUserFormLoader(request, response);\r\n\t\t\tbreak;\r\n\t\t\t\r\n\t\tcase \"updateuser\":\r\n\t\t\r\n\t\t\tupdateUserform(request,response);\r\n\t\t\tbreak;\r\n\t\tcase \"deleteuser\":\r\n\t\t\tdeleteUser(Integer.parseInt(request.getParameter(\"usersId\")));\r\n\t\t\tlistUsers(request, response);\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\terrorPage(request, response);\r\n\t\t\tbreak;\r\n\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "4c72118aaab2f236973fd96948bbd857", "score": "0.57694983", "text": "@RequestMapping(\"/\")\r\n\tpublic String home() {\r\n\t\t// add business logic\r\n\t\t\r\n\t\t// must return the view page name\r\n\t\treturn \"index\";\r\n\t}", "title": "" }, { "docid": "ef99aace2da4688c4c44c7d51d8b062c", "score": "0.5763359", "text": "@RequestMapping(value = \"/homepage\")\n public String homePage() {\n initDictionary.initDefault(dictionary);\n initDictionary.initBoth(dictionary);\n //Suppose the user provided the following customized dictionary.\n addWords.addWords(\"i,like,sam,sung,mobile,icecream,man go,mango\", dictionary);\n return \"homepage\";\n }", "title": "" }, { "docid": "c3ce0fdab19b0a308521007710113264", "score": "0.5751705", "text": "public void handle() {\n context.ready();\n // Dispatch.\n dispatch(context, (RequestFromVertx) context.request());\n }", "title": "" }, { "docid": "cb48f469868568fb8d28e90a1f364681", "score": "0.5748863", "text": "public void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException \n {\n System.out.println(\"inside dopost\");\n String action = request.getParameter(\"action\");\n if(action == null){\n System.out.println(\"there is no action\");\n response.setStatus(HttpServletResponse.SC_NOT_FOUND);\n request.getRequestDispatcher(\"/error.jsp\").forward(request,response);\n return;\n } \n switch(action){\n case \"open\":\n open_Handler(request,response);\n break;\n case \"save\":\n save_Handler(request,response);\n break;\n case \"delete\":\n delete_Handler(request,response);\n break;\n case \"preview\":\n preview_Handler(request,response);\n break;\n case \"list\":\n list_Handler(request,response);\n break;\n default:\n System.out.println(\"Unrecognized action\");\n request.setAttribute(\"errorMessage\",\"Unrecognized action\");\n response.setStatus(HttpServletResponse.SC_NOT_FOUND);\n request.getRequestDispatcher(\"/error.jsp\").forward(request,response); \n return;\n \n }\n }", "title": "" }, { "docid": "da4e40e9e34058bf2452c9d5457fe4fe", "score": "0.5746774", "text": "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n String accion=request.getParameter(\"accion\");\n if(accion.equals(\"Ingresar\")){\n String nombre = request.getParameter(\"txtNombre\");\n String contra = request.getParameter(\"txtContra\");\n u.setNombre(nombre);\n u.setContra(contra);\n r = pdao.validar(u);\n if(r==1){\n request.getRequestDispatcher(\"principal.jsp\").forward(request, response);\n }else{\n request.getRequestDispatcher(\"index,jsp\").forward(request, response);\n }\n }\n }", "title": "" }, { "docid": "d96ac316955698c615323adf56b707bc", "score": "0.5745119", "text": "public Result index() {\n\n String user = session(\"user\");\n if (user == null) {\n return redirect(routes.HomeController.index());\n } else {\n return renderEventList();\n }\n }", "title": "" }, { "docid": "099f0e78b9a7889be1027dffa732d70b", "score": "0.57345515", "text": "@RequestMapping(value=\"/loginHome\" ,method = {RequestMethod.POST, RequestMethod.GET})\n\tpublic String showLoginHome(HttpServletRequest req, Model theModel)\n\t{\n\t\tPassenger passenger=passengerService.get(req.getParameter(\"phoneNo\"));\n\t\t\n\t\ttheModel.addAttribute(\"passenger\",passenger);\n\n\t\treturn \"welcome-user-page\";\t\n\t}", "title": "" }, { "docid": "b8d5427f1878260dec6c0760ef53eaa4", "score": "0.57160974", "text": "@GetMapping(\"/\")\n public String homePage() throws IOException{\n return \"home\";\n }", "title": "" }, { "docid": "91af534006e5079c0f105852ce6a7dd6", "score": "0.57125497", "text": "private String application1(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tRequestDispatcher dispatcher= request.getRequestDispatcher(\"application.jsp\");\n\t\tdispatcher.forward(request, response);\n\t\treturn null;\n\t}", "title": "" }, { "docid": "fb9094a9db5fa21cbb462ae32aea25ff", "score": "0.57107157", "text": "@Override\n\tpublic void handle(Request req, Response resp) {\n\t\t\n\t\tString webpage = req.getAddress().toString();\n\t\twebpage = webpage.substring(1);\n\t\tSystem.out.println(\"webpage>>\"+webpage);\n\t\t\n\t\tArrayList<Publication> pubList = null;\n\t\tPrintStream body = null;\n\t\tSystem.out.println(\"search\" + req.getParameter(\"search\"));\n\t\ttry {\n\t\t\tpubList = search.search(req.getParameter(\"search\"));\n\t\t\tbody = resp.getPrintStream();\n\t\t\tIterator it = pubList.iterator();\n\t\t\t\n\t\t\t/*while(it.hasNext()){\n\t\t\t\tPublication pub = (Publication)it.next();\n\t\t\t\tSystem.out.println(\"\\t title:\"+ pub.getTitle()+ \"\\t id:\"\n\t\t\t\t+pub.getId() + \"\\n\");\n\t\t\t\n\t\t\t}*/\n\t\t\t\n\t\t} catch (IOException e){\n\t\t\t\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tXMLGenerator gen = new XMLGenerator();\n\t\tString xml = gen.generateXml(pubList);\n\t\t//System.out.println(\"xml>>\" + xml);\n\t\tlong time = System.currentTimeMillis();\n\t\t\n\t\tresp.setValue(\"Content-Type\", \"text/xml\");\n\t\tresp.setValue(\"Server\", \"HelloWorld/1.0 (Simple 4.0)\");\n\t\tresp.setDate(\"Date\", time);\n\t\tresp.setDate(\"Last-Modified\", time);\n\t\tbody.println(xml);\n\t\tbody.close();\n\t}", "title": "" }, { "docid": "79f65bbe0c518d23bd2c9f5c326c56e2", "score": "0.5709917", "text": "public void navigateToHomePage() {\n\t\t\n\t}", "title": "" }, { "docid": "6318656799ec5560fcfd80e35165c8ad", "score": "0.57084835", "text": "@Override\n protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\n try {\n ActionFactory actionFactory = (ActionFactory) getServletContext().getAttribute(\"actionFactory\");\n View view = new View(req, resp);\n Action action = actionFactory.getAction(req);\n action.execute(view);\n view.navigate();\n } catch (Exception e) {\n req.getRequestDispatcher(\"/WEB-INF/view/error.jsp?errorMessage=\"+e.getMessage()).forward(req,resp);\n }\n }", "title": "" }, { "docid": "7603e65576583bf63305641d8aef5143", "score": "0.5705846", "text": "@GetMapping(\"/\")\n\tpublic String home() {\n\t\treturn \"forward:/app/index\";\n\t\t\n\t}", "title": "" }, { "docid": "e2249903c71aef30c02c3a826022d99d", "score": "0.5699419", "text": "public String execute(HttpServletRequest request, HttpServletResponse response) {\n /*in the case of a direct appeal to the controller redirects to the login page input*/\n String page = ConfigurationManager.getProperty(\"path.page.login\");\n return page;\n }", "title": "" }, { "docid": "d8f1f8e009d6d5100d8de26da5224c4f", "score": "0.5698486", "text": "protected void doGet(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t\trequest.setAttribute(\"posts\", postBO.getAllPosts(50, 0));\n\t\t\n\t\t// 2. Create dispatcher for forward data for JSP file.\n\t\tRequestDispatcher rd = request.getRequestDispatcher(\"/WEB-INF/pages/homepage.jsp\");\n\t\t\n\t\t// 3. Forward all data to homepage.jsp file for process render view.\n\t\trd.forward(request, response);\n\t}", "title": "" }, { "docid": "01c09fc337f9313a494400574aa9183d", "score": "0.56970805", "text": "@RequestMapping(value = \"/\", method = RequestMethod.GET)\n public String homepage() {\n return \"index.html\";\n }", "title": "" }, { "docid": "c7a63312c58cde44210676e14f7a1aed", "score": "0.56945074", "text": "public void toHome(ActionEvent event) throws IOException {\n\t\tdestination = \"DoctorPortal.fxml\"; \n\t\tFXMLLoader loader = new FXMLLoader(getClass().getResource(destination));\n\t\troot = loader.load();\n\t\tDoctorPortalController dpc = loader.getController();\n\t\tdpc.setUsername(username);\n\t\tstage = (Stage)((Node)event.getSource()).getScene().getWindow(); \n\t\tscene = new Scene(root);\n\t\tstage.setScene(scene);\n\t\tstage.show();\n\t}", "title": "" }, { "docid": "424289244090c1b9bef459fd70da2207", "score": "0.5694018", "text": "public ModelAndView handleRequest(HttpServletRequest request,\n\t\t\tHttpServletResponse response) throws Exception {\n\t\t\n\t\tMap<String, Object> map = new HashMap<String, Object>();\n\t\t\n\t\tString tipe = request.getParameter(\"tipe\");\n\t\tString kata = request.getParameter(\"kata\");\n\t\tString pilter = request.getParameter(\"pilter\");\n\t\t\n\t\tList<Pas> pas = uwManager.selectAllPasList(null, null, tipe, kata, pilter, null, null, \"bp_online\",null,null,null);\n\t\t\n\t\t//map.put(\"listPas\", pas);\n\t\t\n\t\treturn new ModelAndView(\n \"uw/viewer/viewer_bp_online\", \"cmd\", pas);\n\n }", "title": "" }, { "docid": "4b80f988bc5989008e75d0b8355d0a92", "score": "0.56902826", "text": "@RequestMapping(\"/\")\n\tpublic String showPage() {\n\t\treturn \"home-page\";\n\t}", "title": "" }, { "docid": "b4d3a6983564483304d2e189fff1803c", "score": "0.5690227", "text": "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n String action = request.getParameter(\"action\");\n switch (action) {\n case \"acceso\":\n acceso(request, response);\n break;\n case \"registrar\":\n registrate(request, response);\n break;\n case \"logout\":\n salir(request, response);\n break;\n }\n }", "title": "" }, { "docid": "62884dd75bc4f9963af0b89a64171015", "score": "0.5690111", "text": "@RequestMapping(value = \"/welcomemainpage\", method = RequestMethod.GET)\n public String welcome(Model model){\n return \"welcommainpage\";\n }", "title": "" }, { "docid": "ec229739eeefbde43e71e7da72c47a7e", "score": "0.56865746", "text": "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n String url = ERROR;\n try {\n String action = request.getParameter(\"btnAction\");\n if (\"LoginPage\".equals(action)) {\n url = LOGIN_PAGE;\n } else if (\"Login\".equals(action)) {\n url = LOGIN;\n } else if (\"Logout\".equals(action)) {\n url = LOGOUT;\n } else if (\"Search\".equals(action)) {\n url = SEARCH;\n } else if (\"OrderItem\".equals(action)) {\n url = ORDER_ITEM;\n } else if (\"DeleteOrderItem\".equals(action)) {\n url = DELETE_ORDER_ITEM;\n } else if (\"ConfirmOrder\".equals(action)) {\n url = CONFIRM_ORDER;\n } else if (\"UpdateOrder\".equals(action)) {\n url = UPDATE_ORDER;\n } else if (\"CreateItem\".equals(action)) {\n url = CREATE_ITEM;\n } else if (\"CreateItemPage\".equals(action)) {\n url = CREATE_ITEM_PAGE;\n } else if (\"HomePage\".equals(action)) {\n url = HOME;\n } else if (\"ViewOrder\".equals(action)) {\n url = VIEW_CART;\n } else if (\"Detail\".equals(action)) {\n url = ITEM_DETAIL;\n } else if (\"UpdateAdmin\".equals(action)) {\n url = UPDATE_ADMIN;\n } else if (\"DeleteAdmin\".equals(action)) {\n url = DELETE_ADMIN;\n } else if (\"HistoryUpdate\".equals(action)) {\n url = HISTORY_ADMIN;\n } else if (\"ShoppingHistory\".equals(action)) {\n url = HISTORY_USER;\n } else if (\"DetailOrder\".equals(action)) {\n url = DETAIL_ORDER;\n } else if (\"DeleteAdmin2\".equals(action)) {\n url = DELETE_ADMIN2;\n }\n\n } catch (Exception e) {\n log.error(e);\n } finally {\n request.getRequestDispatcher(url).forward(request, response);\n }\n }", "title": "" }, { "docid": "e434833a949006aa52e38d3f4b219651", "score": "0.56829256", "text": "@Override\n public String execute(HttpServletRequest request) {\n return \"/index.jsp\";\n }", "title": "" }, { "docid": "3a590275f8fd4f14103dd0da687a2426", "score": "0.56817067", "text": "@RequestMapping(value = \"/alive\", method = RequestMethod.GET)\n\tpublic Object home() {\n\n\t\treturn \"hello world\";\n\t}", "title": "" }, { "docid": "824776ef394c210251ed1e0b1afb90ee", "score": "0.5678944", "text": "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n try (PrintWriter out = response.getWriter()) {\n String accion = request.getParameter(\"accion\");\n System.out.println(\"prueba\");\n if(accion.equals(\"login\")){\n Login(request, response); \n }if(accion.equals(\"votar\")){\n Votar(request, response); \n }if(accion.equals(\"listar\")){\n Listar(request, response); \n }\n \n }\n }", "title": "" }, { "docid": "d27d950d3c1f7f8e56bcee75c398bfc6", "score": "0.56745833", "text": "@RequestMapping(\"/\")\n\t\tpublic String showHomePage()\n\t\t{\n\t\t\treturn \"main-menu\"; //return view name (JSP file name)\n\t\t}", "title": "" }, { "docid": "cd6bc83ea6d28c63beb7912fb61222b4", "score": "0.56708", "text": "@Override\n\tpublic String requestedProcess(HttpServletRequest request, HttpServletResponse response) throws Throwable {\n\t\t\n\t\treturn \"/subSection/guestBook.jsp\";\n\t}", "title": "" }, { "docid": "c7da40b3d6ab751574973b6233ce5d70", "score": "0.5670278", "text": "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n String jsp = \"\";\n\n if (request.getRequestURI().endsWith(\"/calcula\")) {\n calcula(request);\n jsp = \"/calculadora.jsp\";\n } else if (request.getRequestURI().endsWith(\"/historico\")) {\n historico(request);\n jsp = \"/historico.jsp\";\n } else if (request.getRequestURI().endsWith(\"/limpa\")) {\n limpa(request);\n jsp = \"/historico.jsp\";\n }\n\n request.getRequestDispatcher(jsp).forward(request, response);\n }", "title": "" }, { "docid": "e3d02717039239487173563c5b19716c", "score": "0.5669168", "text": "protected void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {\n\n\t\t\tString keyword = req.getParameter(\"keyword\");\n\t\t\tQuery dao = new Query();\n\t\t\t\n\t\t\t//if the keyword is a ticker or company return a company page\n\t\t\tif(dao.isCompany(keyword)||dao.isTicker(keyword)){\n\t\t\t\tCompany resultCompany = dao.selectCompany(keyword);\n\t\t\t\t\n\t\t\t\tArrayList<Hedgefund> hedgeList = dao.selectCompHedgeList(keyword);\n\t\t\t\t\n\t\t\t\tRequestDispatcher view = req.getRequestDispatcher(SEARCH_COMPANY);\n\t\t\t\treq.setAttribute(\"keyword\", keyword);\n\t\t\t\treq.setAttribute(\"company\", resultCompany);\t\n\t\t\t\treq.setAttribute(\"hedgeList\", hedgeList);\n\t\t\t\tview.forward(req, res);\n\t\t\t}\n\t\t\t//if the keyword is a hedgefund return a hedgefund page\n\t\t\telse if(dao.isHedgefund(keyword)){\n\t\t\t\t\n\t\t\t\tHedgefund resultHedge = dao.selectHedgefund(keyword);\n\t\t\t\t\n\t\t\t\tArrayList<InvestsIn> compList = dao.selectHedgeInvestIn(keyword);\n\n\t\t\t\tRequestDispatcher view = req.getRequestDispatcher(SEARCH_HEDGE);\n\t\t\t\treq.setAttribute(\"keyword\", keyword);\n\t\t\t\treq.setAttribute(\"hedgefund\", resultHedge);\t\n\t\t\t\treq.setAttribute(\"compList\", compList);\n\t\t\t\tview.forward(req, res);\n\t\t\t}\n\t\t\telse{\n\t\t\t\t//if there is no match for keyword user is redirected to no results page\n\t\t\t\treq.setAttribute(\"keyword\", keyword);\n\t\t\t\tRequestDispatcher view = req.getRequestDispatcher(\"/noResults.jsp\");\n\t\t\t\tview.forward(req, res);\n\n\t\t\t}\n\t\t\t\n\t\t\t\n\t}", "title": "" }, { "docid": "0fb90072be2b3f99821768d762dfacdd", "score": "0.56665695", "text": "protected void service(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tString actionType=req.getParameter(\"actionType\");\n\t\tif(actionType.equals(\"zhuanfayie\"))\n\t\t{\n\t\t\tzhuanfayie(req,resp);\n\t\t}\n\t\tif(actionType.equals(\"famianshitongzhi\"))\n\t\t{\n\t\t\tfamianshitongzhi(req,resp);\n\t\t}\n\t\tif(actionType.equals(\"kanmianshitongzhi\"))\n\t\t{\n\t\t\tkanmianshitongzhi(req,resp);\n\t\t}\n\t\tif(actionType.equals(\"del\"))\n\t\t{\n\t\t\tdel(req,resp);\n\t\t}\n\t}", "title": "" }, { "docid": "461052098447f517534db512a935864f", "score": "0.56637305", "text": "@RequestMapping(\"/\")\r\n\tpublic String welcome() {\r\n\r\n\t\t//CompanyService return list of Companies - there is only one\r\n\t\tList<Company> listCompany = companyService.getCompanyList();\r\n\t\t\r\n\t\t//New model object\r\n ModelAndView model = new ModelAndView(\"home\");\r\n \r\n //Model is inserted with the company list\r\n model.addObject(\"companyList\", listCompany);\r\n \r\n assert (model != null);\r\n \r\n //Below code was used to reset all faulty elements after testing\r\n //for(Location location: locationService.getLocations()) {\r\n //\tfor(LocationArea area : location.getHasAreas()) {\r\n //\t\tfor(Element element:area.getHasElements()) {\r\n //\t\t\telementService.resetElementScore(element);\r\n //\t\t}\r\n //\t}\r\n \t\r\n //}\r\n \r\n \r\n \r\n //Returns index which directs the flow to jsp page\r\n return \"index\";\r\n\t\t\r\n\t}", "title": "" }, { "docid": "d138087234265d5b70b84b55a41abda0", "score": "0.5660528", "text": "protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException \n\t{\n\t\tif(request.getParameter(\"action\") != null)\n\t\t{\n\t\t\tif(request.getParameter(\"action\").equals(\"login\"))\n\t\t\t{\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\t//validates admin login\n\t\t\t\t\tvalidateLogin(request, response);\n\t\t\t\t}\n\t\t\t\tcatch(Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(request.getParameter(\"action\").equals(\"logout\"))\n\t\t\t{\n\t\t\t\t//logout admin\n\t\t\t\tHttpSession sess = request.getSession();\n\t\t\t\tsess.setAttribute(\"admin\", null);\n\t\t\t}\n\t\t}\n RequestDispatcher view = request.getRequestDispatcher(\"index.jsp\");\n view.forward(request, response);\n\t}", "title": "" }, { "docid": "bf3e8faf48cb3a62fe4b01df01791432", "score": "0.5653324", "text": "@RequestMapping(value = \"/myhome\", method = RequestMethod.GET)\n\tpublic String showHomePage(\n\t\t\t@ModelAttribute(\"searchform\") SearchForm searchForm, ModelMap map) {\n\t\tmap.addAttribute(\"username\", EncodingUtil.getCurrentUser()\n\t\t\t\t.getUsername());\n\t\treturn \"myhome\";\n\t}", "title": "" }, { "docid": "8b739017ab1aa3dc3681dea2bad29be9", "score": "0.5653134", "text": "@Override\n public void handleRequest(Request request) {\n }", "title": "" }, { "docid": "53a6ca50ce98edd5226eb3d780608222", "score": "0.56514245", "text": "@RequestMapping(value = \"/logoutForm\", params = \"0\", method = RequestMethod.POST)\n\tpublic String HomePage(RedirectAttributes ra) {\n\t\treturn \"redirect:/\";\n\t}", "title": "" }, { "docid": "f394074f4ac702ce2975bb496029b5e8", "score": "0.5646878", "text": "@RequestMapping(value = \"/\", method = RequestMethod.GET)\n\tpublic String home(Locale locale, Model model, SessionStatus status) {\n\t\tlogger.info(\"Welcome home! The client locale is {}.\", locale);\n\t\tstatus.setComplete();\n\t\t\n\t\treturn \"main\";\n\t}", "title": "" }, { "docid": "a911ced533a6b7044dfd78bb61429f80", "score": "0.564674", "text": "@RequestMapping(value = \"/\", method = RequestMethod.GET)\r\n\tpublic String home(Locale locale, Model model) {\r\n\t\tlogger.info(\"Welcome home! The client locale is {}.\", locale);\r\n\r\n\t\tGeneratorCommand generator = new GeneratorCommand();\r\n\t\tint type = 1;\r\n\t\tmodel.addAttribute(\"generator\", generator);\r\n\t\tmodel.addAttribute(\"type\", type);\r\n\t\treturn \"home\";\r\n\t}", "title": "" }, { "docid": "4c0bfcedb5a20bead2e39ff9e9e10d34", "score": "0.56452143", "text": "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException, ClassNotFoundException {\n\n path = getServletContext().getRealPath(\"/WEB-INF/\");\n webDAO = new WebDAO(path);\n\n // Prepare messages.\n messages = new HashMap<>();\n request.setAttribute(\"messages\", messages);\n\n String action = request.getParameter(\"action\");\n\n // Switch block does NOT accept null values.\n if (action == null) {\n action = \"\";\n }\n\n // Decide which method has to be called\n switch (action) {\n case \"list\":\n list(request, response);\n break;\n case \"add_form\":\n showAddForm(request, response);\n break;\n case \"add\":\n add(request, response);\n break;\n case \"modify_form\":\n showModifyForm(request, response);\n break;\n case \"prepare_web_to_modify\":\n prepareWebToModify(request, response);\n break;\n case \"modify\":\n modify(request, response);\n break;\n case \"delete\":\n delete(request, response);\n break;\n default:\n response.sendRedirect(\"index.jsp\");\n }\n\n // Refresh the webs JSP page after any action\n request.getRequestDispatcher(\"webs.jsp\").forward(request, response);\n\n }", "title": "" }, { "docid": "d6603295ea492d2c6fdb93575bfc5a77", "score": "0.5644878", "text": "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n try {\n processRequest(request, response);\n } catch (DocumentException ex) {\n Logger.getLogger(ServletSupprPages.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "title": "" }, { "docid": "dc4eb062ece9386e66333e7c337b7113", "score": "0.5642203", "text": "public void sentoHome () {\n Intent startIntent = new Intent(WorkListActivity.this, MainActivity.class);\n startActivity(startIntent);\n finish();\n }", "title": "" } ]
fb5d9b3448bc036fb510780cf3c2fb9d
Checks if you can create a disaster at a specific spot
[ { "docid": "3d8c6130965c9ecf79f871dd8972b60f", "score": "0.62673575", "text": "public static boolean canCreateDisaster(Disaster disaster, Block block) {\n return getEvent(disaster).canOccur(block);\n }", "title": "" } ]
[ { "docid": "7543cecfedfe2eb29aefd95d52f74a2f", "score": "0.63262814", "text": "public boolean canCreateLand(){\r\n return isCreateLand();\r\n }", "title": "" }, { "docid": "086d1fc349fe39f443f3c89f65faf365", "score": "0.61744946", "text": "public boolean canSpawn(Entity trainer);", "title": "" }, { "docid": "7ef89d2894732862209fc7a9c8ba8e9b", "score": "0.5991669", "text": "public boolean canPlaceOn(Tile tile){\n return true;\n }", "title": "" }, { "docid": "911454f2712096f23a42b66f366fff35", "score": "0.59189284", "text": "public boolean canPlaceBomb();", "title": "" }, { "docid": "0253294391383cc620798f536964acf3", "score": "0.5823449", "text": "boolean hasShotDownAircraft();", "title": "" }, { "docid": "4b8a4f87d35ea90aec2e694d47637513", "score": "0.5817146", "text": "public boolean canSpawn(Entity entity)\n {\n return !spawns.contains(Conversion.getConfigName(entity));\n }", "title": "" }, { "docid": "5675ae19c26d252264c54160aa97f0a8", "score": "0.5792869", "text": "public boolean canCreateAir(){\r\n return isCreateAir();\r\n }", "title": "" }, { "docid": "de11809e0e172a01ea20a96e437e76f0", "score": "0.57060724", "text": "private boolean canMoveto(Point pos) {\n Pair<Point, ScanResultType> candidate = _mower.getMappedScanResult()\n .stream().filter(item -> item.getKey().equals(pos)).findFirst().get();\n\n return candidate.getValue().equals(ScanResultType.GRASS)\n || candidate.getValue().equals(ScanResultType.EMPTY);\n }", "title": "" }, { "docid": "935e05bd818ffa9b421fd71209fe4fe9", "score": "0.56891257", "text": "public boolean canPlaceRobber(HexLocation hexLoc, MapController controller) { \n\t\treturn false;\n\t}", "title": "" }, { "docid": "5b74ab5cf3de0754d5e0af8ee7d30b52", "score": "0.5616723", "text": "boolean hasDoor();", "title": "" }, { "docid": "5b74ab5cf3de0754d5e0af8ee7d30b52", "score": "0.5616723", "text": "boolean hasDoor();", "title": "" }, { "docid": "ef650ac189d8c8fa9673ec74bc3a9cdc", "score": "0.5608233", "text": "public boolean isAtSpawnLocation()\r\n \t{\r\n \t\treturn MathUtil.getDistance(getSpawn().getX(), getSpawn().getY(), getSpawn().getZ(),\r\n \t\t\tgetX(), getY(), getZ()) < 3 ;\r\n \t}", "title": "" }, { "docid": "a39abe84d23f224b087263ff489d98fd", "score": "0.55964607", "text": "boolean hasMonsterSlot();", "title": "" }, { "docid": "2af91c61922fcff263f5db24099a7750", "score": "0.5584053", "text": "public boolean checkmate(){\n\n if(isChecked(x, y)){\n\n\n\n if (!kingCanMove()){\n return !friendlyCanSave();\n }\n }\n\n return false;\n }", "title": "" }, { "docid": "be7c44e7515e2aeec60098e259375bcf", "score": "0.55571115", "text": "private boolean isValidSpot(Position currentPosition) {\n if (!isInBound(currentPosition.getX(), currentPosition.getY())) {\n return false;\n }\n\n if ((currentPosition.getX() == MAP_WIDTH - 2 && currentPosition.getY() == MAP_HEIGHT - 2) ||\n (currentPosition.getX() == MAP_WIDTH - 2 && currentPosition.getY() == 2) ||\n (currentPosition.getX() == 2 && currentPosition.getY() == MAP_HEIGHT - 2) ||\n (currentPosition.getX() == 2 && currentPosition.getY() == 2)) {\n return false;\n }\n\n List<Position> directionList = new ArrayList<>();\n directionList.add(new Position(0,-1));\n directionList.add(new Position(1,0));\n directionList.add(new Position(0,1));\n directionList.add(new Position(-1,0));\n\n int pathCounter = 0;\n\n for(Position direction: directionList) {\n Position newPosition = new Position(currentPosition.getX() + direction.getX(),\n currentPosition.getY() + direction.getY());\n if (isInBound(newPosition.getX(), newPosition.getY()) && isPath(newPosition.getX(), newPosition.getY())){\n pathCounter++;\n }\n }\n\n return pathCounter <= 1;\n }", "title": "" }, { "docid": "867a8be1a1a523631791cd59de0d177b", "score": "0.55276", "text": "private boolean availableMove(int newPosX, int newPosY) {\n\t\tboolean available = true;\n\n\t\tif (myLand.getMap()[newPosX][newPosY] != 0) {\n\t\t\tfor (Pirate p : myLand.getPirates()) {\n\t\t\t\tif (p.getPosX() == newPosX && p.getPosY() == newPosY) {\n\t\t\t\t\tavailable = false;\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tavailable = false;\n\t\t}\n\t\t\n\t\treturn available;\n\t}", "title": "" }, { "docid": "b5022ee14bece7d90ec6b7609e0a5e1a", "score": "0.55201787", "text": "boolean hasCanArcane();", "title": "" }, { "docid": "1dda5d5bb3ca60192994588f19eed895", "score": "0.5517504", "text": "public boolean getCanSpawnHere() {\n/* 31 */ return (this.worldObj.getDifficulty() != EnumDifficulty.PEACEFUL);\n/* */ }", "title": "" }, { "docid": "917d8c2a8f1bbaa56ddf4039df440a89", "score": "0.55092007", "text": "boolean isSetTower(Coord coord);", "title": "" }, { "docid": "1b56d53bf39c014ac4cc514d59563876", "score": "0.5500445", "text": "private boolean isPlaced() {\n \n if (currentShip == 1) {\n if (carrierWasPlaced == false)\n return false;\n \n return true;\n }\n \n else if (currentShip == 2) {\n if (battleshipWasPlaced == false)\n return false;\n \n return true;\n }\n \n else if (currentShip == 3) {\n if (patrolBoatWasPlaced == false)\n return false;\n \n return true;\n }\n \n else if (currentShip == 4) {\n if (submarineWasPlaced == false)\n return false;\n \n return true;\n }\n \n else {\n if (destroyerWasPlaced == false)\n return false;\n \n return true;\n }\n }", "title": "" }, { "docid": "8845fa0bba2db086c69a5a73db956f9e", "score": "0.5488815", "text": "boolean isLegal(Square from, Square to, Square spear) {\r\n return isLegal(Move.mv(from, to, spear));\r\n\r\n }", "title": "" }, { "docid": "13998ba041443a80772fb2698c3c4f0e", "score": "0.5472131", "text": "public boolean getCanSpawnHere()\n {\n Chunk var1 = this.worldObj.getChunkFromBlockCoords(MathHelper.floor_double(this.posX), MathHelper.floor_double(this.posZ));\n\n if (this.worldObj.getWorldInfo().getTerrainType().handleSlimeSpawnReduction(this.rand, this.worldObj))\n {\n return false;\n }\n else\n {\n if (this.getSlimeSize() == 1 || this.worldObj.difficultySetting > 0)\n {\n if (this.worldObj.getBiomeGenForCoords(MathHelper.floor_double(this.posX), MathHelper.floor_double(this.posZ)) == BiomeGenBase.swampland && this.posY > 50.0D && this.posY < 70.0D && this.worldObj.getBlockLightValue(MathHelper.floor_double(this.posX), MathHelper.floor_double(this.posY), MathHelper.floor_double(this.posZ)) <= this.rand.nextInt(8))\n {\n return super.getCanSpawnHere();\n }\n\n if (this.rand.nextInt(10) == 0 && var1.getRandomWithSeed(987234911L).nextInt(10) == 0 && this.posY < 40.0D)\n {\n return super.getCanSpawnHere();\n }\n }\n\n return false;\n }\n }", "title": "" }, { "docid": "8361e4c1e200eb69584ac5bc7a4c763b", "score": "0.54688495", "text": "boolean hasStonePos();", "title": "" }, { "docid": "a531200b33fd0dd039c6ac29e6592f95", "score": "0.5443391", "text": "public boolean creature_was_shot() {\n\t\tif (flealaserCollision() | scorpinlaserCollision() | spiderlaserCollision()) {\n\t\t\treturn true;\n\t\t}\n\t\telse {\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "b9474891fd84eddb4b6181cee0a2eff0", "score": "0.54358554", "text": "public boolean canPutDown(EnumTile tile, int spotX, int spotY)\n\t{\n\t\tif(tile == null)\n\t\t\treturn false;\n\n\t\tfor(Point p : tile.getParts())\n\t\t{\n\t\t\tint checkX = spotX + p.x;\n\t\t\tint checkY = spotY + p.y;\n\n\t\t\tif(checkY < 0 || checkX > 9 || checkY < 0 || checkY > 9 || occupied[checkX][checkY])\n\t\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}", "title": "" }, { "docid": "61ac2124e5d524e19b1ff117304d5a06", "score": "0.54325277", "text": "public boolean getCanSpawnHere()\n {\n return this.worldObj.checkNoEntityCollision(this.boundingBox);\n }", "title": "" }, { "docid": "a8e0342727fa4f06ca8a9e7c6b5d2109", "score": "0.5428781", "text": "private boolean isPosnValid (Posn surroundingPosn){\n int row = surroundingPosn.getRow();\n int col = surroundingPosn.getCol();\n int rowLength = this.surroundings.size();\n int colLength = this.surroundings.get(0).size();\n if ((row < rowLength && row >= 0) && (col < colLength && col >= 0)\n && ruleChecker.isMoveValid(generatePosnRelativeToSurroundings(currentPosition.getRow(), currentPosition.getCol()), surroundingPosn, surroundings)) {\n Tile tile = this.surroundings.get(row).get(col);\n if (tile.getDoor() != null) {\n // you can land on doors, but elsewhere should protect you from leaving\n return true;\n }\n if (tile.getOccupier() != null) {\n return !tile.getOccupier().isPlayer();\n } else {\n return !tile.isWall();\n }\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "ddb4d970fb910316a8e1551c7270196a", "score": "0.54173106", "text": "public boolean canPlaceRoad(EdgeLocation edgeLoc, MapController controller) {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "9ddec51cf4e6c1d82621e5c39efff922", "score": "0.54097563", "text": "boolean canEat(CapableActor capableActor, Location location);", "title": "" }, { "docid": "6cb565c35b8d43b41302e955a4acdcc1", "score": "0.5407829", "text": "private void createNewFood() {\n boolean newFoodCreated = false;\n Random random = new Random();\n while (!newFoodCreated) {\n int newX = random.nextInt(size);\n int newY = random.nextInt(size);\n try {\n Location newLoc = grid.getLoc(newX, newY);\n newLoc.addFood();\n newFoodCreated = true;\n food = newLoc;\n } catch (AlreadyOccupiedException e) {\n newFoodCreated = false;\n } catch (OutOfGridException e) {\n newFoodCreated = false;\n }\n }\n }", "title": "" }, { "docid": "e61aca434b36f4e09bd3ff1f86762997", "score": "0.53775966", "text": "public boolean checkForOccupiedSpots() {\n for (int i = 0; i < MAX_SIZE; i++) {\n for (int j = 0; j < MAX_SIZE; j++) {\n if (personalBattleshipGrid.isOccupied(i, j)) {\n return true;\n }\n }\n } return false;\n }", "title": "" }, { "docid": "4139e11f4f93c8125224be92f2e58a01", "score": "0.5370106", "text": "public void checkFood() {\n if (x[0] == foodX && y[0] == foodY){\n foodEaten++;\n bodyParts++;\n deployFood();\n }\n }", "title": "" }, { "docid": "8f6dff2bbf20d1251533099615d0f292", "score": "0.5367338", "text": "public boolean canPlaceBlockOnSide(World worldIn, BlockPos pos, EnumFacing side) {\n/* 73 */ return false;\n/* */ }", "title": "" }, { "docid": "2f116ba7f7c2b68865d6c9d7360a2a66", "score": "0.53625494", "text": "boolean hasCanMove();", "title": "" }, { "docid": "2f116ba7f7c2b68865d6c9d7360a2a66", "score": "0.53625494", "text": "boolean hasCanMove();", "title": "" }, { "docid": "46c65beb9945c59951885cd904687aa8", "score": "0.5359719", "text": "public boolean isValid(int p) {\n return ((g.getPlanet(p).getOwner() == me) && (availableShips[p] > 0));\n }", "title": "" }, { "docid": "d1a6fbf5d93ecaf84f6dbcb0f7ff0ccc", "score": "0.5352619", "text": "boolean hasHotseat();", "title": "" }, { "docid": "d1a6fbf5d93ecaf84f6dbcb0f7ff0ccc", "score": "0.5352619", "text": "boolean hasHotseat();", "title": "" }, { "docid": "bb027d960eecf6edcb52054d8ab2a705", "score": "0.5351076", "text": "private boolean isValid()\n\t{\n\t\treturn spawnChance > 0;\n\t}", "title": "" }, { "docid": "52f9616dcc25b99b4109f305a6b8f574", "score": "0.53342736", "text": "public void checkPlaceability()\n\t{\n\t\tint placeable = spawnedTiles.length;\n\t\tint nullTiles = 0;\n\n\t\tfor(EnumTile tile : spawnedTiles)\n\t\t{\n\t\t\tif(tile != null)\n\t\t\t{\n\t\t\t\tint possible = 100;\n\n\t\t\t\tfor(int x = 0; x < occupied.length; x++)\n\t\t\t\t{\n\t\t\t\t\tfor(int y = 0; y < occupied[x].length; y++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!canPutDown(tile, x, y))\n\t\t\t\t\t\t\tpossible--;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif(possible == 0)\n\t\t\t\t\tplaceable--;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tplaceable--;\n\t\t\t\tnullTiles++;\n\t\t\t}\n\t\t}\n\n\t\tif(placeable == 0 && nullTiles != 3)\n\t\t\tendGame();\n\t}", "title": "" }, { "docid": "d8ae87fa369a4bbb1d5e70966111d276", "score": "0.53248054", "text": "boolean hasCrevasses();", "title": "" }, { "docid": "4df4a151e616e96b0eeb3ddee1114695", "score": "0.5319205", "text": "boolean hasRegPlace();", "title": "" }, { "docid": "defa3440ff6b8621dc352b45e2d167a4", "score": "0.5317575", "text": "boolean isOccupied(Vector2D position);", "title": "" }, { "docid": "a3983b22cc2bcd91f2fbe2abe6d1bc22", "score": "0.5316517", "text": "public boolean canDock(Dock dock);", "title": "" }, { "docid": "dc589409b9c346c8172cecb3bbfce1b6", "score": "0.5306149", "text": "public boolean canCreateSea(){\r\n return isCreateSea();\r\n }", "title": "" }, { "docid": "5f8c7a5c8c76f3fd60ddfa3e2e571574", "score": "0.53036594", "text": "public boolean canMove(Shade inquirer){\n\t\tif (occupant == null || occupant.getShade() != inquirer) return true;\n\t\telse return false;\n\t}", "title": "" }, { "docid": "ea1c38951f1c74c9e2d901caf23aed39", "score": "0.52974856", "text": "protected boolean canPlaceBlockOn(Block block)\n {\n return block == ModBlocks.darkGrass || block == ModBlocks.darkDirt;\n }", "title": "" }, { "docid": "eb95bf813487bf1b51143a7c920e6688", "score": "0.5289339", "text": "boolean hasAdSpawned();", "title": "" }, { "docid": "1888dbd8b3e29048ca3e0716787094fc", "score": "0.52880806", "text": "boolean isNearby();", "title": "" }, { "docid": "e2a22ebee2cd9170e15a7f518c5721e2", "score": "0.52760315", "text": "public boolean tryAndReserveSeat(int passengerNo)\n {\n return (allocateSeat(\"A\",passengerNo)||allocateSeat(\"W\",passengerNo)||allocateSeat(\"C\",passengerNo));\n }", "title": "" }, { "docid": "56849ba9c975d1b396d708bcbba5d3cf", "score": "0.52740985", "text": "public boolean runsOnTheSpot();", "title": "" }, { "docid": "d608755a883748778209d9caeb69274b", "score": "0.52638894", "text": "private boolean isTaken(Location location)\n\t{\n\t\t//check if the location is taken\n\t\tif (this.board[location.getX()][location.getY()][location.getZ()] == null)\t//the location is not taken\n\t\t{\n\t\t\treturn false;\n\t\t}\t//end if\n\t\t\n\t\treturn true;\n\t}", "title": "" }, { "docid": "30d73b058f94588b9a1202b8e0a2a2e7", "score": "0.5257932", "text": "public boolean isBedSpawn() {\n/* 58 */ return this.isBedSpawn;\n/* */ }", "title": "" }, { "docid": "b59ced20b91b31df6d46badb64ab05dd", "score": "0.5254189", "text": "private boolean createDikeObject(){\n if((int) (Math.random()*500)+1 == 1){\n return true;\n }else{ \n return false;\n }\n }", "title": "" }, { "docid": "734e31fa7e5bc563c5c4e654b90cba9a", "score": "0.5241914", "text": "public boolean isPositionOccupiedByTile(EnumPosition pos);", "title": "" }, { "docid": "3ca7805a946b79df4493aae85b0cb67d", "score": "0.52348244", "text": "public boolean IsValidLocation(Point loc){\n if (loc.x < 1 || loc.x > m_boardSize || loc.y < 1 || loc.y > m_boardSize) {\n return false;\n }\n else {\n return true;\n }\n }", "title": "" }, { "docid": "2a74e7b93fcac772cb783429c4e7f8ba", "score": "0.5229103", "text": "private boolean isAtTarget(){\n if(Math.abs(m_driveTrain.getPosition() - m_distance) < DriveTrainConstants.kSPECIFICITY){\n return true;\n } else return false;\n }", "title": "" }, { "docid": "e6fea822611c7af230502103d05961c5", "score": "0.522243", "text": "private boolean isCan() {\n\t double distance = medianFilter();\n\t if (distance < CAN_EXISTS) {\n\t \ttry {\n\t\t\t\tThread.sleep(2000);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t \t\n\t \t if (distance < CAN_EXISTS){\n\t \t\t return true;\n\t \t }\n\t }\n\t return false;\n\t }", "title": "" }, { "docid": "4e658cefe81dea42e951aa5100d764bd", "score": "0.5216991", "text": "boolean hasLocation();", "title": "" }, { "docid": "4e658cefe81dea42e951aa5100d764bd", "score": "0.5216991", "text": "boolean hasLocation();", "title": "" }, { "docid": "d1b7bb82fdb814bf972d596eb733a3f8", "score": "0.5214642", "text": "public boolean stalemate(){\n if(!isChecked(x, y)){\n if (!kingCanMove()){\n return !friendlyCanMove();\n }\n }\n\n return false;\n }", "title": "" }, { "docid": "98e3ac8363403ee97b9bc2ed4be5d890", "score": "0.5206105", "text": "public boolean checkDraw() {\n Move[] redMoves = checkLegalMoves(RED);\n Move[] blackMoves = checkLegalMoves(BLACK);\n if (blackMoves.length < 0 && redMoves.length < 0) {\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "c4ec42e7dabeaf6371c1c97667c79e42", "score": "0.52040905", "text": "public boolean hitAsteroid()\n {\n Actor asteroid = getOneObjectAtOffset(0, 0, Asteroid.class);\n if(asteroid != null) {\n return true;\n }\n else {\n return false;\n }\n }", "title": "" }, { "docid": "47a6c4ff4b936ad4187e9240dd043c32", "score": "0.519776", "text": "public boolean canMakeMountainMove() {\n return this.numberOfPhasesFOrDay + this.extraPhases.size() >= 1;\n }", "title": "" }, { "docid": "62170d210b076b12916799da363f7009", "score": "0.5196995", "text": "public boolean legalMove(location d) {\n\t\tif (Math.abs((d.x-this.x)*(d.y-this.y))==2)\n\t\t\treturn true;\n\t\treturn false;\n\t}", "title": "" }, { "docid": "7256b9ebf44c7572fcae107d859fa7c9", "score": "0.51964605", "text": "public boolean shouldExecute() {\n if (theCreature.state != 1)\n {\n return false;\n }\n else if (!this.theWorld.canBlockSeeSky(new BlockPos(MathHelper.floor(this.theCreature.posX), \n \t\t(int)this.theCreature.getEntityBoundingBox().minY, MathHelper.floor(this.theCreature.posZ))))\n {\n return false;\n } else {\n Vec3d var1 = this.findPossibleShelter();\n\n if (var1 == null)\n {\n return false;\n }\n else\n {\n this.shelterX = var1.x;\n this.shelterY = var1.y;\n this.shelterZ = var1.z;\n return true;\n }\n }\n }", "title": "" }, { "docid": "8f3b3f9645eed90d7154fc5c0c9ac9a2", "score": "0.5195533", "text": "@Override\n public boolean canMoveTo(int x, int y) {\n if (x >= minX && x <= maxX && y <= maxY && y >= minY) {\n return Math.abs(getPosY() - y) == 1 && Math.abs(getPosX() - x) == 1;\n }\n return false;\n }", "title": "" }, { "docid": "8c978822bc60c7d123910312844bcc36", "score": "0.51928526", "text": "private void checkForWin(){\n\t\tboolean check = true;\n\t\tfor (int i = 0; i<NCARDS; i++){\n\t\t\tif (!deck.isOnAceSpot(deck.getCard(i))){\n\t\t\t\tcheck = false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tgameOn = !check;\n\t}", "title": "" }, { "docid": "03fd2411a6364065fdae44f1516f95a0", "score": "0.51868063", "text": "@Override\n public boolean isValid() {\n\n final int foodCount = Vars.get().get(\"foodCount\");\n final String foodName = Combat.getFoodName();\n\n boolean needBankingForFood = Inventory.isFull() || (foodCount > 0 && Inventory.getCount(foodName) == 0);\n\n return needBankingForFood && Player.getPosition().distanceTo(Positions.POS_BANK_CENTER) < 3;\n }", "title": "" }, { "docid": "12428e31bd069c42d4e32d40de77ec06", "score": "0.518575", "text": "public boolean canAttack(Player player){\n for(Army army:armies){\n if(army.getPlayer() == player){\n if(army.getArmySize()>1){\n return true;\n }\n }\n }\n return false;\n }", "title": "" }, { "docid": "b4c566ba1ba14c1a432dd1bb48c1f67e", "score": "0.51838857", "text": "public boolean isRestaurant(){\n\t\tif(this.getCurrentUser() instanceof Restaurant){\n\t\t\treturn true;\n\t\t}\n\t\tSystem.out.println(\"Permission denied, only Restaurants can do this action\");\n\t\treturn false;\n\t}", "title": "" }, { "docid": "79a2b4c664d7045e7ff0e4a9e4f54d16", "score": "0.5181041", "text": "public boolean takeAseat(byte seat_id, String playerID) {\n\t\tif (!isSeatOccupied(seat_id)) {\n\t\t\tif (!isSeated(playerID)) {\n\t\t\t\tgetClient(seat_id).setID(playerID);\n\t\t\t\tSystem.out.println(\"Player id \"+ playerID + \" took seat in \" + seat_id);\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "d0c838054697b6850c101505870ab4e7", "score": "0.51798755", "text": "boolean canFlyCharter();", "title": "" }, { "docid": "9e7d74b0ed61df865bc4cdc11663624c", "score": "0.5179252", "text": "private boolean teamCanSpawn(TeamComponent teamC) {\n\t\tif (teamC.livesLeft < 0) {\n\t\t\treturn true;\n\t\t}\n\t\treturn (teamC.livesLeft > 0);\n\t}", "title": "" }, { "docid": "57bae92929bced152a5ab3d353e5b6b7", "score": "0.5175343", "text": "public abstract boolean isLegalMove(int destX, int destY);", "title": "" }, { "docid": "e02ad51643330ca6725c5291abbf4bd2", "score": "0.5175092", "text": "boolean hasDinosaur();", "title": "" }, { "docid": "e859c006a56d68859f2ca9296019cb22", "score": "0.51734054", "text": "private boolean isValidLocation(Tile target) {\t\t\n\t\tif (target.getWalkable() == true && target.getActor() == null) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "8a2fbc15d66d0594a14ca199d4b4cd24", "score": "0.51731306", "text": "public boolean canPace() {\n/* 187 */ return false;\n/* */ }", "title": "" }, { "docid": "cd1336c2ebde75a6d967a83950faf492", "score": "0.51715213", "text": "@Override\n public boolean shouldGenerateObject(final Dungeon maze, final int row,\n final int col, final int floor, final int level, final int layer) {\n final RandomRange reject = new RandomRange(1, 100);\n return reject.generate() < 30;\n }", "title": "" }, { "docid": "47b8c37ebdd9276a3df2e1887ec65939", "score": "0.5171312", "text": "public static boolean isDonut() { return check(4); }", "title": "" }, { "docid": "856d4c120155e074540667ecd55db492", "score": "0.516844", "text": "public boolean canHaveTurret()\n {\n int\t\tmType = movementForType(type);\n \n if (mType == HOVER || mType == TRACKED || mType == WHEELED || mType == NAVAL_SURFACE)\n return true;\n else\n return false;\n }", "title": "" }, { "docid": "e2817fcf7b7badc47e4caeaf1180619c", "score": "0.51659507", "text": "boolean hasAircraft2();", "title": "" }, { "docid": "e2817fcf7b7badc47e4caeaf1180619c", "score": "0.51659507", "text": "boolean hasAircraft2();", "title": "" }, { "docid": "96ed47bbbeeb66c88293cf77235606b3", "score": "0.5163248", "text": "public boolean tryToCreatePortal(World world, int x, int y, int z)\n\t{\n\t\tboolean hasMiddleBeam = world.getBlockId(x, y - 1, z) == ForbiddenBlocks.ParadoxBlock.blockID && world.getBlockId(x, y + 3, z) == ForbiddenBlocks.ParadoxBlock.blockID;\n\t\tboolean hasTopRightBeam = world.getBlockId(x + 1, y + 2, z) == ForbiddenBlocks.ParadoxBlock.blockID && world.getBlockId(x + 2, y + 2, z) == ForbiddenBlocks.ParadoxBlock.blockID && world.getBlockId(x + 2, y + 1, z) == ForbiddenBlocks.ParadoxBlock.blockID && world.getBlockId(x + 2, y, z) == ForbiddenBlocks.ParadoxBlock.blockID;\n\t\tboolean haBottomRightBeam = world.getBlockId(x - 1, y + 2, z) == ForbiddenBlocks.ParadoxBlock.blockID && world.getBlockId(x - 2, y + 2, z) == ForbiddenBlocks.ParadoxBlock.blockID && world.getBlockId(x - 2, y + 1, z) == ForbiddenBlocks.ParadoxBlock.blockID && world.getBlockId(x - 2, y, z) == ForbiddenBlocks.ParadoxBlock.blockID;\n\t\tboolean hasTopLeftBeam = world.getBlockId(x, y + 2, z + 1) == ForbiddenBlocks.ParadoxBlock.blockID && world.getBlockId(x, y + 2, z + 2) == ForbiddenBlocks.ParadoxBlock.blockID && world.getBlockId(x, y + 1, z + 2) == ForbiddenBlocks.ParadoxBlock.blockID && world.getBlockId(x, y, z + 2) == ForbiddenBlocks.ParadoxBlock.blockID;\n\t\tboolean hasBottomLeftBeam = world.getBlockId(x, y + 2, z - 1) == ForbiddenBlocks.ParadoxBlock.blockID && world.getBlockId(x, y + 2, z - 2) == ForbiddenBlocks.ParadoxBlock.blockID && world.getBlockId(x, y + 1, z - 2) == ForbiddenBlocks.ParadoxBlock.blockID && world.getBlockId(x, y, z - 2) == ForbiddenBlocks.ParadoxBlock.blockID;\n\t\tboolean hasPortalFrame = hasMiddleBeam && hasTopRightBeam && haBottomRightBeam && hasTopLeftBeam && hasBottomLeftBeam;\n\n\n\t\tif(hasPortalFrame)\n\t\t{\n\t\t\tworld.setBlockToAir(x, y, z);\n\t\t\tworld.addWeatherEffect(new EntityLightningBolt(world, x, y, z));\n\t\t\tworld.setBlock(x, y, z, ForbiddenBlocks.FBPortal.blockID,0,2);\n\t\t\tworld.setBlock(x, y + 1, z, ForbiddenBlocks.FBPortal.blockID,0,2); \n\t\t\treturn true;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "8c856cdddfdff905ba538d6caa25605b", "score": "0.51594687", "text": "private boolean hitWall() {\n\t\tint row = snakeCoordinates[0].getRow();\n\t\tint col = snakeCoordinates[0].getCol();\n\t\treturn row < 0 || row >= rows || col < 0 || col >= cols;\n\t}", "title": "" }, { "docid": "56b845a28a7616976aca2ef1972ae014", "score": "0.515528", "text": "@Override\r\n\tpublic boolean canPlaceBlockAt(World worldIn, BlockPos pos) {\n\t\tif(worldIn.getBlockState(pos.down()).getBlock() == Blocks.NETHERRACK || worldIn.getBlockState(pos.down()).getBlock() == Blocks.SOUL_SAND) return super.canPlaceBlockAt(worldIn, pos);\r\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "c969e23cd3d57ad03fc4e89607847d66", "score": "0.5155066", "text": "protected void placementIsValid() throws HantoException\n\t{\t\t\n\t\t// Limit piece placement to defined numbers \n\t\tint piecesLeft = currentPlayerState.piecesOfTypeLeftInStockPile(typeOfPieceMoving);\n\t\tif (piecesLeft == 0) {\n\t\t\tthrow new HantoException(currentPlayerColor.toString() + \" has run out of \" \n\t\t\t\t\t+ typeOfPieceMoving.toString() + \" to place\");\n\t\t}\n\t\t// Make sure first move is on origin\n\t\tif (board.getBoardSize() == 0) {\n\t\t\tif (moveTo.equals(new HantoCoordinateImpl(0,0))) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tthrow new HantoException(currentPlayerColor.toString() + \"'s first move must be on origin!\");\n\t\t\t}\n\t\t}\n\t\t// Make sure second move is next to first move\n\t\tif (board.getBoardSize() == 1) {\n\t\t\tif (board.getAdjacentCoords(moveTo).contains(new HantoCoordinateImpl(0,0))) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tthrow new HantoException(\"Invalid move, second move must be adjacent to first move!\");\n\t\t\t}\t\t\n\t\t}\n\t\t// Make sure destination is unoccupied\n\t\tif (board.getPieceAt(moveTo) != null) {\n\t\t\tthrow new HantoException(\"Invalid move, destination of piece must be unoccupied\");\n\t\t}\n\t\t// Make sure piece is not placed without touching existing contiguous formation\n\t\tif (board.getAdjacentPieces(moveTo).size() < 1) {\n\t\t\tthrow new HantoException(\"Invalid move, cannot place a piece by itself\");\n\t\t}\n\t\t// Make sure piece placement is adjacent to at least one friendly piece, and not adjacent to any enemy piece\n\t\tif (hasAdjacentOpponent(moveTo, currentPlayerColor)) {\n\t\t\tthrow new HantoException(\"Cannot place piece next to enemy piece!\");\n\t\t}\n\t}", "title": "" }, { "docid": "da786d247f983b93529ab2a52b4f4704", "score": "0.51533943", "text": "protected boolean canPlaceBlockOn(Block block)\n {\n return block == Blocks.lava;\n }", "title": "" }, { "docid": "6371a8c8a8915c567c6e76a7baa1660a", "score": "0.5147092", "text": "private void checkDoor(float x, float y) {\n\t\tCell cell = collisionLayer.getCell((int) x, (int) y);\n\t\tif(cell != null && cell.getTile().getProperties().containsKey(\"door\")){\n\t\t\tSystem.out.println(\"found door\");\n\t\t\t//set doorCell to cell and doorFound true\n\t\t\tdoorCell = cell;\n\t\t\tdoorFound = true;\n\t\t}\n\t\telse if(cell != null && cell.getTile().getProperties().containsKey(\"finaldoor\")){\n\t\t\tSystem.out.println(\"found final door\");\n\t\t\t//set doorCell to cell and doorFound true\n\t\t\tdoorCell = cell;\n\t\t\tfinalDoorFound = true;\n\t\t}\n\t}", "title": "" }, { "docid": "0997f7fac3d51fb5a39071046d48ec37", "score": "0.51426363", "text": "boolean canMove();", "title": "" }, { "docid": "b0ed48d5d594e1a4368b9ac825c1ede6", "score": "0.51401716", "text": "@Override\n\tprotected final boolean checkLost() {\n\t\t// confirma se posi�oes adjacentes verticais e horizontais as passadas por\n\t\t// argumento (heroi) sao as do guarda\n\t\treturn Utilities.checkAdjacentCollision(hero.getPosition(), guard.getPosition());\n\t}", "title": "" }, { "docid": "6784fe574386014fbbe4def06eac189f", "score": "0.5138439", "text": "public void checkCollisionStation(){\n for (int i = 0; i < game.compartment.length; i++) {\n if (getBounds().intersects(game.compartment[i].getBounds())){\n game.compartment[i].health -= 20*size;\n takeDamage(15);\n }\n }\n }", "title": "" }, { "docid": "8c2ccf536bdef43b94a1e15b85954533", "score": "0.513542", "text": "private static boolean canBuild(Player player, int x, int z) {\n int spawnSize = Bukkit.getServer().getSpawnRadius();\n World world = player.getWorld();\n\n if (!world.equals(Bukkit.getWorlds().get(0))) return true;\n if (spawnSize <= 0) return true;\n if (player.isOp()) return true;\n\n Chunk chunkcoordinates = player.getLocation().getChunk();\n\n int distanceFromSpawn = (int) Math.max(Math.abs(x - chunkcoordinates.getX()),\n Math.abs(z - chunkcoordinates.getZ()));\n return distanceFromSpawn > spawnSize;\n }", "title": "" }, { "docid": "bb06970eb5e79e427ab3e751c45540cf", "score": "0.5135217", "text": "public void checkPlace(String place) throws SQLException, IOException {\n Place p = getPlaceByName(place);\r\n //Este String vacío servira para luego mostrar al usuario las rutas disponibles\r\n String youCanGo = \"\";\r\n //Conjuto de if's que concatenan las opciones de movimiento\r\n if (p.getNorth() != null) {\r\n youCanGo = youCanGo + \" N,\";\r\n }\r\n if (p.getSouth() != null) {\r\n youCanGo = youCanGo + \" S,\";\r\n }\r\n if (p.getWest() != null) {\r\n youCanGo = youCanGo + \" W,\";\r\n }\r\n if (p.getEast() != null) {\r\n youCanGo = youCanGo + \" E,\";\r\n }\r\n\r\n System.out.println(youCanGo);\r\n //Se vuelve a ejecutar la función que nos permite entrada por teclado, para ir a otro lugar\r\n Marvel.loginMenu();\r\n\r\n }", "title": "" }, { "docid": "d72ace1539fc1d8c93433dbec5e39ccd", "score": "0.5133576", "text": "public final boolean canKickBall() {\n if (!player.inRectangle(Settings.FIELD)) {\n return false;\n }\n FieldObject ball = this.getOrCreate(Ball.ID);\n if (ball.curInfo.time != time) {\n return false;\n }\n return ball.curInfo.distance < Futil.kickable_radius();\n }", "title": "" }, { "docid": "cc97adfc7854978c4cf439c9bc76bd14", "score": "0.51330495", "text": "boolean canTreatDisease();", "title": "" }, { "docid": "4b10ab715edb6f71e57dcd330de47650", "score": "0.5131763", "text": "public boolean hasTroop();", "title": "" }, { "docid": "de6b118a2b1c3bd35226b380b6df970b", "score": "0.51317376", "text": "private boolean canPlaceShip(int y, int x) {\n return (board[y][x + 1].getCellState() == CellState.Empty &&\n board[y][x - 1].getCellState() == CellState.Empty &&\n board[y + 1][x].getCellState() == CellState.Empty &&\n board[y - 1][x].getCellState() == CellState.Empty) &&\n board[y][x].getCellState() == CellState.Empty;\n }", "title": "" }, { "docid": "deb6000f3e5bb59f03308325daaf0d76", "score": "0.5131218", "text": "@Override\r\n public boolean canMoveTo(int currentX,int currentY,int destX,int destY){\r\n //System.out.println(\"Inside pawn\");\r\n boolean forward;\r\n boolean backward;\r\n boolean horizontal;\r\n boolean diagonal;\r\n\r\n if(this.getColor() == 1 ){\r\n // System.out.println(\"Green Star\");\r\n //Move 1 tile forward\r\n forward = ((currentX == destX) && (currentY - 1 == destY)); \r\n //Move 1 tile backward\r\n backward= ((currentX == destX) && (currentY + 1 == destY));\r\n //Move 1 tile horizontally\r\n horizontal= ((currentY == destY) && (currentX + 1 == destX || currentX - 1 == destX ));\r\n //Move 1 tile diagonally\r\n diagonal = (currentX - 1 == destX && currentY - 1 == destY) || (currentX + 1 == destX && currentY - 1 == destY || \r\n currentX - 1 == destX && currentY + 1 == destY) || (currentX + 1 == destX && currentY + 1 == destY);\r\n }else{\r\n // System.out.println(\"Red Star\");\r\n //Move 1 tile forward\r\n forward = ((currentX == destX) && (currentY + 1 == destY)); \r\n //Move 1 tile backward\r\n backward = ((currentX == destX) && (currentY - 1 == destY));\r\n //Move 1 tile horizontally\r\n horizontal = ((currentY == destY) && (currentX + 1 == destX || currentX - 1 == destX ));\r\n //Move 1 tile diagonally\r\n diagonal = (currentX - 1 == destX && currentY - 1 == destY) || (currentX + 1 == destX && currentY - 1 == destY || \r\n currentX - 1 == destX && currentY + 1 == destY) || (currentX + 1 == destX && currentY + 1 == destY);\r\n }\r\n //Check if it's the same position\r\n boolean notSamePosition = !((currentX==destX) && (currentY==destY));\r\n \r\n return notSamePosition && (forward || backward || diagonal || horizontal);\r\n}", "title": "" }, { "docid": "ab8140c5caec8889820bff5729076725", "score": "0.5129288", "text": "public boolean canPlaceRobber(int playerId, HexLocation loc) {\n try {\n return map.canPlayRobber(loc);\n } catch (BoardException e) {\n e.printStackTrace();\n }\n\t\treturn false;\n\t}", "title": "" } ]
09ba07710c368ab589836464b76e1c5a
set ith bit in given no.
[ { "docid": "9e031b6088a35e13b3afbd37af80e257", "score": "0.76412946", "text": "public static int setBit(int n, int i) {\r\n\r\n\t\tint j = 1 << (i - 1);\r\n\r\n\t\tn = n | j;\r\n\r\n\t\treturn n;\r\n\r\n\t}", "title": "" } ]
[ { "docid": "97bcef959fe9133ebe36dd7485307ba0", "score": "0.76782537", "text": "public static int setNthBit(int number, int bit)\r\n {\r\n return (number | 1<<bit);\r\n }", "title": "" }, { "docid": "552819e375b4904a45c8164a35d1e172", "score": "0.7159859", "text": "public void setBit(int whichBit)\n {\n b |= (byte) (1 << (whichBit % 8));\n }", "title": "" }, { "docid": "dbe74194d7601497e9778ac689e6be97", "score": "0.6987108", "text": "void setNum (int num)\n\t\t{\n\t\t\tint intIndex = num / 32;\n\t\t\tint offset = num % 32;\n\t\t\tbitNum[intIndex] |= (1 << offset);\n\t\t}", "title": "" }, { "docid": "ec4df3be7048183a11d044919cc5462b", "score": "0.6975979", "text": "public static int toggleNthBit(int x, int bit)\r\n {\r\n return (x^(1<<bit));\r\n }", "title": "" }, { "docid": "2af68d2a8c4df91669811862eef72bb9", "score": "0.6800626", "text": "@Override\n public void set(int index) {\n values[valueIndex(index)] |= (1 << index);\n }", "title": "" }, { "docid": "b4799a74a2c5f6ac920f522553f9a782", "score": "0.67366785", "text": "public static int setBit(int pos, int value, int bit) {\n int flag = 1 << (31 - pos); // little Endian\n return bit == 1 ? (value | flag) : (value & (~flag));\n }", "title": "" }, { "docid": "54b64b7ed3a699f611257b4a9692e549", "score": "0.6660197", "text": "public void setBit(int bitPos){\n\t\tbitmap.set(bitPos);\n\t}", "title": "" }, { "docid": "e1157b876c49ed29d16dc2adfe234553", "score": "0.661998", "text": "public static int setBitValue(int number, int nBit, int bitValue) {\r\n\t\tif(!checkBitNumber(nBit) || !checkBitValue(bitValue))\r\n\t\t\treturn number;\r\n\t\tlong mask = 1L << nBit;\r\n\t\tif(getBitValue(number, nBit) == bitValue)\r\n\t\t\treturn number;\r\n\t\treturn (int)(number ^ mask);\t\t\r\n\t}", "title": "" }, { "docid": "faaa7f80c8c9787fd990d3f7dd594256", "score": "0.66136515", "text": "static void update(int idx, int val)\n\t{\n\t while ( idx < maxn )\n\t {\n\t bit[idx] += val;\n\t idx += idx & -idx;\n\t }\n\t}", "title": "" }, { "docid": "bb21b0bf70b7f06f8a027217b9430db7", "score": "0.6538395", "text": "public void setBit(int whichBit, boolean value)\n {\n if(value)\n {\n setBit(whichBit);\n }\n else\n {\n resetBit(whichBit);\n }\n }", "title": "" }, { "docid": "f8ff54a5572ee1e4aec08a67afbf5557", "score": "0.6538393", "text": "int turnOn(int bitMask, int index){\n bitMask = bitMask|(1 << index);\r\n return bitMask;\r\n }", "title": "" }, { "docid": "8ec870f05c36a217d09f6ad453babb1f", "score": "0.6495431", "text": "public static int setBit(final int val, final int position) {\n return val | (0x01 << position);\n }", "title": "" }, { "docid": "5ca9b3aff57ea60a27cb2f94d6b002b1", "score": "0.6400409", "text": "public static int countSetBits(int n){\r\n int count = 0;\r\n while(n != 0){\r\n count += n & 1;\r\n n = n & n - 1;\r\n }\r\n return n;\r\n }", "title": "" }, { "docid": "aca5c38148d9da351e299beea7190604", "score": "0.6365315", "text": "public Z setBit(final int bitNumber) {\n return Logical.setBit(this, bitNumber);\n }", "title": "" }, { "docid": "0274d8c349a9b74b48ce67c2b13727ee", "score": "0.6354882", "text": "public static int unsetNthBit(int number, int bit)\r\n {\r\n return number & ~(1<<bit);\r\n }", "title": "" }, { "docid": "2ad3bc8414ad160b4217d7b8c85921b8", "score": "0.63321555", "text": "public static long setBit(final long val, final int position) {\n return val | (((long) 0x01) << position);\n }", "title": "" }, { "docid": "2a35f7725ef1fcf873bc1069e5c79e45", "score": "0.63144183", "text": "static int set(int mask, int i, boolean v) {\n return v ? set(mask, i) : unset(mask, i);\n }", "title": "" }, { "docid": "8e31355f3ba57f3690f39f635006edb7", "score": "0.6292301", "text": "public void setSizeInBits(final int bits);", "title": "" }, { "docid": "05edc7c86f84a4b2e7616d8e05c3658c", "score": "0.6255203", "text": "public static int resetBit(int n, int i) {\r\n\r\n\t\tint j = 1 << (i - 1);\r\n\r\n\t\tj = ~j;\r\n\r\n\t\treturn n & j;\r\n\r\n\t}", "title": "" }, { "docid": "1c87560012bd8de65c7c38068c272571", "score": "0.6228857", "text": "public void set(int index, int val);", "title": "" }, { "docid": "616dbdb343b86de77b418fb329def54a", "score": "0.62229246", "text": "public boolean set(long bitIndex) {\n if (get(bitIndex)) {\n return false;\n }\n\n int longIndex = (int) (bitIndex >>> LONG_ADDRESSABLE_BITS);\n long mask = 1L << bitIndex; // only cares about low 6 bits of bitIndex\n\n long oldValue;\n long newValue;\n do {\n oldValue = data.get(longIndex);\n newValue = oldValue | mask;\n if (oldValue == newValue) {\n return false;\n }\n } while (!data.compareAndSet(longIndex, oldValue, newValue));\n\n // We turned the bit on, so increment bitCount.\n bitCount.getAndIncrement();\n return true;\n }", "title": "" }, { "docid": "59640ba77ec3bda2a96d037af33c40db", "score": "0.6174696", "text": "public void set(int i, int element)\n {\n base[i >> log_blksize][i % (1 << log_blksize)] = element;\n }", "title": "" }, { "docid": "707c82fe7811fe463e1e23bf2cac38b3", "score": "0.6135053", "text": "public void testBitsStoredInInt()\r\n {\r\n // Try 0\r\n int bits = 0;\r\n for (int i=0;i<32;i++)\r\n {\r\n assertFalse(ClassUtils.getBitFromInt(bits, i));\r\n }\r\n\r\n // Set bit 5\r\n bits = ClassUtils.setBitInInt(bits, 5, true);\r\n for (int i=0;i<5;i++)\r\n {\r\n assertFalse(ClassUtils.getBitFromInt(bits, i));\r\n }\r\n assertTrue(ClassUtils.getBitFromInt(bits, 5));\r\n for (int i=6;i<32;i++)\r\n {\r\n assertFalse(ClassUtils.getBitFromInt(bits, i));\r\n }\r\n\r\n // Set bits 6-8\r\n bits = ClassUtils.setBitInInt(bits, 6, true);\r\n bits = ClassUtils.setBitInInt(bits, 7, true);\r\n bits = ClassUtils.setBitInInt(bits, 8, true);\r\n for (int i=0;i<5;i++)\r\n {\r\n assertFalse(ClassUtils.getBitFromInt(bits, i));\r\n }\r\n for (int i=5;i<9;i++)\r\n {\r\n assertTrue(ClassUtils.getBitFromInt(bits, i));\r\n }\r\n for (int i=9;i<32;i++)\r\n {\r\n assertFalse(ClassUtils.getBitFromInt(bits, i));\r\n }\r\n\r\n // Unset bit 7\r\n bits = ClassUtils.setBitInInt(bits, 7, false);\r\n for (int i=0;i<5;i++)\r\n {\r\n assertFalse(ClassUtils.getBitFromInt(bits, i));\r\n }\r\n for (int i=5;i<7;i++)\r\n {\r\n assertTrue(ClassUtils.getBitFromInt(bits, i));\r\n }\r\n assertFalse(ClassUtils.getBitFromInt(bits, 7));\r\n assertTrue(ClassUtils.getBitFromInt(bits, 8));\r\n for (int i=9;i<32;i++)\r\n {\r\n assertFalse(ClassUtils.getBitFromInt(bits, i));\r\n }\r\n\r\n }", "title": "" }, { "docid": "b1cfb66d463b340e8fc853d9b0143fa5", "score": "0.61325294", "text": "public int flipBit(int x) {\n \n }", "title": "" }, { "docid": "b24f4ebceaa6587eb370e0d3008c1b8a", "score": "0.60962296", "text": "public void\n set_bit(String bit, boolean value)\n {\n int bit_num = Integer.parseInt(bit);\n bits[bit_num] = value;\n// byte tmp = 0b0000_0000;\n\n switch(bit_num){\n case 7:\n if (bits[0]){\n dbyte = (byte)(dbyte & 0b1000_0000);\n }\n break;\n case 6:\n if (bits[1]){\n dbyte = (byte)(dbyte & 0b0100_0000);\n }\n break;\n case 5:\n if (bits[2]){\n dbyte = (byte)(dbyte & 0b0010_0000);\n }\n break;\n case 4:\n if (bits[3]){\n dbyte = (byte)(dbyte & 0b0001_0000);\n }\n break;\n case 3:\n if (bits[4]){\n dbyte = (byte)(dbyte & 0b0000_1000);\n }\n break;\n case 2:\n if (bits[5]){\n dbyte = (byte)(dbyte & 0b0000_0100);\n }\n break;\n case 1:\n if (bits[6]){\n dbyte = (byte)(dbyte & 0b0000_0010);\n }\n break;\n case 0:\n if (bits[7]){\n dbyte = (byte)(dbyte & 0b0000_0001);\n }\n break;\n }\n }", "title": "" }, { "docid": "1d785bb2b71b210962c9b86afe9a920e", "score": "0.60932267", "text": "void set(int n);", "title": "" }, { "docid": "478a1fdf8ef6473ebcc4c3e552d1a857", "score": "0.6045644", "text": "private void clearBit(final int index) {\n if (index % 2 == 0) {\n System.out.println(\"You are setting even bits, which is sub-optimal\");\n }\n this.bitArray.set(index / 2, false);\n }", "title": "" }, { "docid": "32a3589a461a3e2e624ff3cc81a3c078", "score": "0.6019003", "text": "public void setInt(int i, int p)\r\n/* 88: */ {\r\n/* 89:83 */ this.pixels[i] = (boolean) (p != -2147483648 ? 1 : false);\r\n/* 90: */ }", "title": "" }, { "docid": "45ba50d86b3d32c06ef0d01a8ebbb50b", "score": "0.6012334", "text": "@Override\r\n\tpublic void setAt(int base, int off, short n) {\n\r\n\t}", "title": "" }, { "docid": "d3c6fdffeffd90ecd15f42063756c833", "score": "0.5982399", "text": "public void test_setIZ() {\n eightbs.set(5, false);\n assertFalse(\"Should have set bit 5 to true\", eightbs.get(5));\n\n eightbs.set(5, true);\n assertTrue(\"Should have set bit 5 to false\", eightbs.get(5));\n\n try {\n eightbs.set(-5, false);\n fail();\n } catch (IndexOutOfBoundsException expected) {\n }\n }", "title": "" }, { "docid": "e79254c83b05d3869f7464aac9dcea24", "score": "0.59821475", "text": "public final synchronized void mo31264a(int i) {\n C3137gf.C3139a aVar = this.f13956b;\n if (aVar != null && this.f13957c < i) {\n int i2 = i | this.f13957c;\n this.f13957c = i2;\n aVar.mo18524a(\"state\", (Object) Integer.valueOf(i2)).mo18526b().mo18529c();\n }\n }", "title": "" }, { "docid": "60b5837b54e27a641332534075eb3aea", "score": "0.5961507", "text": "static long updateBits(long n, long m, int i, int j) {\n\t\tlong mShifted = i > 0 ? (m & ((1L << j - i) - 1)) << i : (m & ((1L << j - i) - 1)) >>> -i;\n\t\treturn ((n & ((j > 63 ? 0 : (~0L << j)) | (i < 0 ? 0 : ((1L << i) - 1L)))) | mShifted);\n\t}", "title": "" }, { "docid": "cdcaa8a171ea788e65ea12839b8fe0ae", "score": "0.5933471", "text": "private void setBit(Node node) {\r\n if (node.getLeftChild() != null) {\r\n node.getLeftChild().setBit(0);\r\n setBit(node.getLeftChild());\r\n }\r\n\r\n if (node.getRightChild() != null) {\r\n node.getRightChild().setBit(1);\r\n setBit(node.getRightChild());\r\n }\r\n }", "title": "" }, { "docid": "5eff6983c397a67b5413873907261f43", "score": "0.5929215", "text": "public void registerBit(int sid, int tid, List<Integer> sequencesSize) {\r\n\t\t// calculate the position of the bit that we need to set to 1\r\n\t\tint pos = sequencesSize.get(sid) + tid;\r\n\t\t// set the bit to 1\r\n\t\tbitmap.set(pos, true);\r\n\t\t\r\n\t\t// Update the count of bit set to 1\r\n\t\tif(sid != lastSID){\r\n\t\t\tsupport++;\r\n\t\t}\r\n\t\t// remember the last SID with a bit set to 1\r\n\t\tlastSID = sid;\r\n\t}", "title": "" }, { "docid": "6a2186c0a25628e56a825e6d1403bed4", "score": "0.58908206", "text": "public void setValue( int num )\n {\n \n }", "title": "" }, { "docid": "d8b0f77861cdca4cffcc584a888933e5", "score": "0.5842599", "text": "public void set(int x, int y, boolean value) {\n Validate.validIndex(bits, x, \"Invalid array index (X): %d\", x);\n Validate.validIndex(bits, y, \"Invalid array index (Y): %d\", y);\n bits[x][y] = value;\n }", "title": "" }, { "docid": "e22c306a17b9be7651265022f296b480", "score": "0.58149546", "text": "void setDataBits(DataBits dataBits);", "title": "" }, { "docid": "55f9c2fc9e5d08b473aaf1654f89ad12", "score": "0.58058923", "text": "protected abstract This value(int bits);", "title": "" }, { "docid": "6cfececd5cf675ca5feebc398f2b6b0a", "score": "0.5788942", "text": "protected final synchronized void setFlag(int flag, boolean sts) {\n\t\tboolean state = (m_flags & flag) != 0 ? true : false;\n\t\tif ( state && sts == false)\n\t\t\tm_flags -= flag;\n\t\telse if ( state == false && sts == true)\n\t\t\tm_flags += flag;\n\t}", "title": "" }, { "docid": "e9862c1b849c03c92f66c6adc6e6403f", "score": "0.578163", "text": "private static int toggle(int bitVector, int index) {\n if (index < 0) return bitVector;\n\n int mask = 1 << index;\n if ((bitVector & mask) == 0) {\n bitVector |= mask;\n } else {\n bitVector &= ~mask;\n }\n return bitVector;\n }", "title": "" }, { "docid": "90296aaed2086d63fc3b157f36e5436a", "score": "0.5780392", "text": "public void setByte(int i, int p)\r\n/* 98: */ {\r\n/* 99:91 */ this.pixels[i] = (boolean) (p > 0 ? 1 : false);\r\n/* :0: */ }", "title": "" }, { "docid": "f3788805d5703c1c0a9df2e8ce0586bc", "score": "0.5774933", "text": "public void setInt(int index, int value) throws IOException;", "title": "" }, { "docid": "e76b6746c11a9ab508dba350cafc47ac", "score": "0.57731146", "text": "@Test\n\tpublic void testSet() {\n\t\tIBitVector bv = new BitVector();\n\t\t\n\t\tbv.set(-1); // if set number < 0, get method will still return false\n\t\tassertEquals(\"set test1 fail\", bv.get(-1), false); \n\t\t\n\t\tbv.set(11); // set number in range [0, maxNum), get method will return true \n\t\tassertEquals(\"set test2 fail\", bv.get(11), true); \n\t\t\n\t\tbv.set(35); // set number exceeds max range, will expand array first\n\t\tassertEquals(\"set test3 fail\", bv.get(35), true); \n\t}", "title": "" }, { "docid": "9346ed4e6b175b8f5eba62df02e39654", "score": "0.5767886", "text": "long set(int index, long value);", "title": "" }, { "docid": "beef3e1572182d49945f7ba84468706c", "score": "0.57595503", "text": "private static void writeBit(boolean bit)\n\t{\n\t\tbuffer <<= 1;\n\n\t\tif(bit)\n\t\t{\n\t\t\tbuffer |= 1;\n\t\t}\n\n\t\tN++;\n\t\tSystem.out.println(N);\n\t\tif (N == 8)\n\t\t\tclearBuffer();\n\n\t}", "title": "" }, { "docid": "d66043555f0f122016e93ba6fe0228a5", "score": "0.5741365", "text": "public void test_setIIZ() {\n eightbs.set(3, 6, false);\n assertTrue(\"Should have set bits 3, 4, and 5 to false\", !eightbs.get(3)\n && !eightbs.get(4) && !eightbs.get(5));\n\n eightbs.set(3, 6, true);\n assertTrue(\"Should have set bits 3, 4, and 5 to true\", eightbs.get(3)\n && eightbs.get(4) && eightbs.get(5));\n\n try {\n eightbs.set(-3, 6, false);\n fail();\n } catch (IndexOutOfBoundsException expected) {\n }\n\n try {\n eightbs.set(3, -6, false);\n fail();\n } catch (IndexOutOfBoundsException expected) {\n }\n\n try {\n eightbs.set(6, 3, false);\n fail();\n } catch (IndexOutOfBoundsException expected) {\n }\n }", "title": "" }, { "docid": "98cc4ad32045046125e7c2800781ab0f", "score": "0.5707408", "text": "void setValue(int num);", "title": "" }, { "docid": "d1723c26893a4dec14908b59523ed51b", "score": "0.5705014", "text": "public VectorBit buildVectorBit (int val);", "title": "" }, { "docid": "ff8bc5c4f221a8b3466710e8be705f80", "score": "0.57027364", "text": "public void resetBit(int whichBit)\n {\n b &= ~ (byte) (1 << (whichBit % 8));\n }", "title": "" }, { "docid": "79a62c5bd42dbcf55358055cd7a929f4", "score": "0.5702169", "text": "public abstract int bits();", "title": "" }, { "docid": "79bd23f980084cf3618299a3434c29d1", "score": "0.56737894", "text": "public static void set(int byte_){\n INSTANCE.setByte(byte_);\n }", "title": "" }, { "docid": "6d34e015f2fd8934b94a055a33f57b8f", "score": "0.5666435", "text": "int turnOff(int bitMask, int index){\n bitMask = bitMask^((1 << index));\r\n return bitMask;\r\n }", "title": "" }, { "docid": "d6c29f8d3b3425e7ec281aa6e94a597e", "score": "0.56634986", "text": "private int createMask(int n) {\n int output = 0;\n for (int i = 0; i < n; i++) {\n output <<= 1;\n output |= 1;\n }\n\n return output;\n }", "title": "" }, { "docid": "a1029bb024f313284a8716e4a7b6b50a", "score": "0.5661969", "text": "public static void main(String[] args) {\n\t\tSystem.out.println(countsetbit(887967874));\n\t\tSystem.out.println(count_fast_setbit(84));\n\t}", "title": "" }, { "docid": "eb896f9999007dbc11b7d69479eff647", "score": "0.5642235", "text": "public void setValueUnsafe(int index, int value);", "title": "" }, { "docid": "cc6acb896c78678ba89cd614a615a549", "score": "0.56390107", "text": "@Override\r\n\t\tpublic boolean set(int index, int n)\r\n\t\t{\r\n\t\t\treturn this[index] != null && set(this[index], n);\r\n\t\t}", "title": "" }, { "docid": "a0f1edc1214e5eb05f5bb655553cde2f", "score": "0.5628391", "text": "void setValue( int value );", "title": "" }, { "docid": "755775e682ab7701162460c3e7f5a18a", "score": "0.5621883", "text": "public void setState(Integer value) {\n set(16, value);\n }", "title": "" }, { "docid": "02cbcfbef6c44065e8010d41cdd95126", "score": "0.56169444", "text": "@Override\r\n\tpublic Boolean setBit(String key, long offset, boolean value) {\n\t\treturn valueOperationRedis.setBit(key, offset, value);\r\n\t}", "title": "" }, { "docid": "9279538939725dd61fe0455a98dac5f4", "score": "0.5608549", "text": "static int onBits(int n) {\n int res = 0;\n \n while (n > 0) {\n res += n % 2;\n n /= 2;\n }\n \n return res; \n }", "title": "" }, { "docid": "a44b560d07b91a1e6fd9e31c9c714509", "score": "0.5607908", "text": "public int modifyBit(int x, int position, int state) {\n\t\tint mask = 1 << position;\n\t\treturn (x & ~mask) | (-state & mask);\n\t}", "title": "" }, { "docid": "773ef9d126669724c5c2d1a09b4b1db7", "score": "0.5585267", "text": "public void set(final long index, final boolean value) {\n if(value) {\n getBitSet(index).set(getPos(index), value);\n }\n else { // if value shall be cleared, check first if given partition\n // exists\n final BitSet bitSet = m_sets.get(getSetIndex(index));\n if(bitSet != null)\n bitSet.clear(getPos(index));\n }\n }", "title": "" }, { "docid": "27610ac94c57fffdaff5668e9fcc4515", "score": "0.55741286", "text": "public void set_param_six(int value) {\n setUIntBEElement(offsetBits_param_six(), 16, value);\n }", "title": "" }, { "docid": "1c24f92a7d779f24e60461b4d7ece2cf", "score": "0.55619466", "text": "public static int bits(int no) {\n\t\tint counter = 1;\n\t\twhile(no > 0) {\n\t\t\tcounter = counter * 10;\t\t\t\t\t\t\t\n\t\t\tno = no / 10;\n\t\t}\n\t\treturn counter;\n\t}", "title": "" }, { "docid": "f7eafd82d205565380e7e61634bde2c3", "score": "0.55446863", "text": "public void set(int val) throws InterruptedException;", "title": "" }, { "docid": "c97d2d2efe4752a2e3efe31b65928aff", "score": "0.5541045", "text": "public void setValue(int value);", "title": "" }, { "docid": "d3189de80e1beca3e604dc5dcbc928b2", "score": "0.55398756", "text": "private void setFlags(int value) {\n \n flags_ = value;\n }", "title": "" }, { "docid": "d3189de80e1beca3e604dc5dcbc928b2", "score": "0.55398756", "text": "private void setFlags(int value) {\n \n flags_ = value;\n }", "title": "" }, { "docid": "d3189de80e1beca3e604dc5dcbc928b2", "score": "0.55398756", "text": "private void setFlags(int value) {\n \n flags_ = value;\n }", "title": "" }, { "docid": "d3189de80e1beca3e604dc5dcbc928b2", "score": "0.55398756", "text": "private void setFlags(int value) {\n \n flags_ = value;\n }", "title": "" }, { "docid": "d8fb541aa4cd9cdfb16862f25983c36f", "score": "0.5523038", "text": "public void setIntValue(int index, int value);", "title": "" }, { "docid": "84a2d3df58e3195a59d56d8f94696544", "score": "0.5519209", "text": "void set (int i, T arg);", "title": "" }, { "docid": "e098d34568e95a79aaee46244fb919a7", "score": "0.55124056", "text": "public void set_param_seven(int value) {\n setUIntBEElement(offsetBits_param_seven(), 16, value);\n }", "title": "" }, { "docid": "c34fe488f4072abe2351afa4e896d8c9", "score": "0.55059797", "text": "@Override\r\n\t\tpublic boolean set(Card c, int n)\r\n\t\t{\r\n\t\t\treturn includes(c) & Deck.this.set(c, n);\r\n\t\t}", "title": "" }, { "docid": "e5bb2c11965c0291aff70dcea0fec05a", "score": "0.5497002", "text": "@Override\n public void setTo( final int _value ) {\n processIntegerSet( _value, 32, 32 - Integer.numberOfLeadingZeros( _value ) );\n }", "title": "" }, { "docid": "908812d9d0f82a021c7451c0bf256de5", "score": "0.5479221", "text": "@Test\n public void test3() {\n\n BitSet bitSet2 = new BitSet(125);\n System.out.println(bitSet2.size());\n System.out.println(bitSet2.length());\n\n bitSet2.set(121);\n System.out.println(bitSet2.get(121));\n System.out.println(bitSet2.size());\n System.out.println(bitSet2.length());\n\n System.out.println(\"-------------------\");\n bitSet2.set(321);\n System.out.println(bitSet2.get(321));\n System.out.println(bitSet2.get(322));\n bitSet2.set(3);\n System.out.println(bitSet2.size());\n System.out.println(bitSet2.length());\n\n System.out.println(bitSet2.cardinality());\n// System.out.println(wordIndex(0));\n }", "title": "" }, { "docid": "027080340cd7c97735eb9c4d15e09524", "score": "0.54781944", "text": "public void setDataAt(int location, int data, int numBits) {\n\n\n }", "title": "" }, { "docid": "93155c4868216a67a744fe83ad9effad", "score": "0.54775393", "text": "public static void main(String[] args) {\n\t\tSystem.out.println(numSetBits(13));\n\t}", "title": "" }, { "docid": "2750c5a58fc2b2e97bd6a6920685486c", "score": "0.54756415", "text": "public int bitWrite(int b, int p, boolean v) {\n int r = 0;\n if(v == true) {\n r = (1 << p) | b;\n }\n if(v == false) {\n r = (~(1 << p)) & b;\n }\n return r;\n}", "title": "" }, { "docid": "a3c9d56d328d00151640ff6a1b289d13", "score": "0.5465435", "text": "int flipBits(int a, int b);", "title": "" }, { "docid": "718a06c5e453752ab4c18da97dfd0675", "score": "0.54643035", "text": "public static final int flag(int bits) {\n if (bits >= 0 && bits < Integer.SIZE) {\n return 1 << bits;\n }\n return 0;\n }", "title": "" }, { "docid": "7afba56c0ab9011a628b796fd3ba4c29", "score": "0.5461245", "text": "private void m34964a(long j) {\n this.f29336c |= 1;\n this.f29337d = j;\n }", "title": "" }, { "docid": "b3abbc93ba65d80c07518c410b679c55", "score": "0.5455343", "text": "public static byte set(byte b, int pos) {\n byte mask = 1;\n b |= mask << pos;\n return b;\n }", "title": "" }, { "docid": "7488dac032d7f94eea4a9d520659745f", "score": "0.5454771", "text": "public void set_param_five(int value) {\n setUIntBEElement(offsetBits_param_five(), 16, value);\n }", "title": "" }, { "docid": "fcb13845456ac6ec9c69ecb8cdd4675b", "score": "0.54534", "text": "void setIncrement( int increment );", "title": "" }, { "docid": "a428b8302fc61455d91df200456d0000", "score": "0.5446776", "text": "public int step() {\n /*Note that the indexing of registers in LFSR is the opposite of indexing of arrays in Java. Therefore the new bit is inserted at position 10,\n by xoring bits at index 0 and length-1-t*/\n int new_bit = registers[0] ^ registers[seed_length-1-tap];\n for(int i = 0; i < seed_length-1; i++)\n {\n registers[i] = registers[i+1];\n }\n registers[seed_length-1] = new_bit;\n return new_bit;\n }", "title": "" }, { "docid": "3b9dfe1c77f878fbcda350ff06bc6bde", "score": "0.5445492", "text": "public static int getNumberByFlippingBits(int n) {\n return n ^ 0xffffffff; // equivalent to 11....1 (32 times) in binary\n }", "title": "" }, { "docid": "e76ac37331704f70b21db98d2a216290", "score": "0.5441581", "text": "public void set_param_one(int value) {\n setUIntBEElement(offsetBits_param_one(), 16, value);\n }", "title": "" }, { "docid": "1f2801698d35246e4ace7e91b60dbfb6", "score": "0.54309255", "text": "public Z flipBit(final int n) {\n return Logical.flipBit(this, n);\n }", "title": "" }, { "docid": "48bd34cca416b648b66068138a151fd2", "score": "0.54288286", "text": "public abstract void setIndex(int paramInt);", "title": "" }, { "docid": "8cf9f33df7c1bd9f44d3ff48c1a63eb0", "score": "0.54254645", "text": "int nextBit() {\n\t\tbyte b = inputArray[currIndex()];\n\t\tint shift = currShiftAmount();\n\t\tpos++;\n\t\treturn (b & 1 << shift) >> shift;\n\t}", "title": "" }, { "docid": "a93b7c5bab34fde3f4e50160619906b2", "score": "0.5411196", "text": "static int query(int idx)\n\t{\n\t int res = 0;\n\t while ( idx > 0 )\n\t {\n\t res += bit[idx];\n\t idx -= idx & -idx;\n\t }\n\t return res;\n\t}", "title": "" }, { "docid": "b7617935e2b8876870881a14af27d59d", "score": "0.54096544", "text": "private void m34967b(long j) {\n this.f29336c |= 2;\n this.f29338e = j;\n }", "title": "" }, { "docid": "5186fe35107a5315ce87e1ca4ca13c56", "score": "0.5403077", "text": "public void setFlags(int initial, int result, boolean size, int flagbit) {\n\n if ((flagbit & ZERO) > 0) {\n this.setZero(result == 0);\n }\n\n // See if the most significant bit is set to find sign\n if ((flagbit & SIGN) > 0) {\n if (size) {\n this.setSign((result & 0x8000) > 0);\n } else {\n this.setSign((result & 0x80) > 0);\n }\n }\n\n // More testing needed on testing half-carry\n if ((flagbit & HALFC) > 0) {\n this.setHalfCarry((((initial & 0xF) + (result & 0xF)) & 0x10) > 0);\n }\n\n if ((flagbit & SUBTRACT) > 0) {\n this.setSubtract(true);\n } else {\n this.setSubtract(false);\n }\n\n if ((flagbit & CARRY) > 0) {\n if (size) {\n this.setCarry(result > 32767 || result < -32768);\n } else {\n this.setCarry(result > 127 || result < -128);\n }\n }\n }", "title": "" }, { "docid": "b97973cde701232907128c67d37907da", "score": "0.5401372", "text": "static long swap(long n, int i, int j){\n if ( ( n & (1 << i ) ) != ( n & (1 << j ) ) ){\n\n long bitMask = (1L << i) | (1L << j); // basically we need a long with ith and jth bits set\n\n n = n^bitMask; //XORING with 1 reverses the bit, logically performing swaping\n\n }\n\n return n;\n }", "title": "" }, { "docid": "14d84497fd58fe9878305b71cd53c2b9", "score": "0.5397881", "text": "public static void set(int what) {\n }", "title": "" }, { "docid": "527e093b92f4a76f8ac15f24df1cb572", "score": "0.5397227", "text": "public void setFlag(int flag) throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\t__io__block.writeInt(__io__address + 236, flag);\n\t\t} else {\n\t\t\t__io__block.writeInt(__io__address + 224, flag);\n\t\t}\n\t}", "title": "" }, { "docid": "527e093b92f4a76f8ac15f24df1cb572", "score": "0.5397227", "text": "public void setFlag(int flag) throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\t__io__block.writeInt(__io__address + 236, flag);\n\t\t} else {\n\t\t\t__io__block.writeInt(__io__address + 224, flag);\n\t\t}\n\t}", "title": "" }, { "docid": "7ccc5a3a0ad05b9633e462350dd97e83", "score": "0.53967255", "text": "public void setFlag(int flag) throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\t__io__block.writeInt(__io__address + 84, flag);\n\t\t} else {\n\t\t\t__io__block.writeInt(__io__address + 84, flag);\n\t\t}\n\t}", "title": "" }, { "docid": "f17f2dfc23157d82636d7c69d62f888f", "score": "0.5396118", "text": "public void set(int i, int x) {\n\t\tarr[i] = x;\n\t}", "title": "" } ]
6bd2b510958d756f3b73eb6906f62150
Splits the population to perform tournaments in parallel.
[ { "docid": "bfd9f54139d9775c76719559cbc998b5", "score": "0.52533156", "text": "public void split(int cores) {\n\t\tint counter = 0;\n\t\tthis.container = new AI[cores][POPULATION_SIZE / cores];\n\t\tfor (AI ai : this.individuals) {\n\t\t\tai.fitness = 0;\n\t\t}\n\t\tfor (int x = 0; x < cores; x++) {\n\t\t\tfor (int y = 0; y < POPULATION_SIZE / cores; y++) {\n\t\t\t\tthis.container[x][y] = this.individuals[counter];\n\t\t\t\tcounter++;\n\t\t\t}\n\t\t}\n\t}", "title": "" } ]
[ { "docid": "7abd06bbb3177b1609f93b56d7c0cfde", "score": "0.59466666", "text": "public void runTournament() {\n\t\t//ArrayList<Gene> tournament = new ArrayList<Gene>();\n\t\tPriorityQueue<Gene> tournament = new PriorityQueue<Gene>(Collections.reverseOrder());\n\t\tint numContenders = (int)(FRAC_IN_TOURNAMENT * geneNumber);\n\t\tSet<Integer> chosenOnes = new HashSet<Integer>();\n\t\t\n\t\twhile(chosenOnes.size() < numContenders) {\n\t\t\tint randIndex = (int) (Math.random() * geneNumber);\n\t\t\tchosenOnes.add(randIndex);\n\t\t}\n\t\tfor(int i : chosenOnes){\n\t\t\ttournament.add(genepool.get(i));\n\t\t}\n\t\t//int firstIndex = getMax(tournament, -1);\n\t\t//int secondIndex = getMax(tournament, firstIndex);\n\t\t//Gene parent1 = tournament.get(firstIndex);\n\t\t//Gene parent2 = tournament.get(secondIndex);\n\t\tGene parent1 = tournament.poll();\n\t\tGene parent2 = tournament.poll();\n\t\t// Create a new gene from the 2 fittest genes\n\t\tGene newGene = parent1.waCrossover(parent2);\n\t\t\n\t\t// Calculate fitness for the new gene\n\t\tPlayerSkeleton.runGames(numGames, newGene);\n\t\toffspringPool.add(newGene);\n\t}", "title": "" }, { "docid": "70b9adbf7e2df716eea44079690d9c7c", "score": "0.59140044", "text": "public void runGeneticAlgo() {\n\t\tint offspringLimit = (int)(OFFSPRING_POOL_LIMIT * geneNumber);\n\t\tint factor = (int) Math.pow(10, String.valueOf(offspringLimit).length() - 1);\n\t\twhile(offspringPool.size() < offspringLimit) {\n\t\t\trunTournament();\n\t\t\tif(offspringPool.size() % factor == 0) {\n\t\t\t\tSystem.out.println(\"Finished \" + offspringPool.size() + \" tournaments\");\n\t\t\t}\n\t\t}\n\t\tsortPool();\n\t\tArrayList<Gene> newGenepool = new ArrayList<Gene>(genepool.subList(0, geneNumber - offspringLimit));\n\t\tnewGenepool.addAll(offspringPool);\n\t\tgenepool = newGenepool;\n\t\toffspringPool = new ArrayList<Gene>();\n\t}", "title": "" }, { "docid": "ac92e64ce13ac1a830ee1d17787dbea2", "score": "0.57112324", "text": "public void tournamentWithElitism(){\n\t\tEvolvable spring[] = new Evolvable[populationSize];\n\t\t\n\t\t//elite individuals go directly to new population\n\t\tfor (int i = 0; i < SNSLearningAgent.elitism; i++){\n\t\t\tspring[i] = population[i];\t\n\t\t}\n\t\t\n\t\t//other individuals are selected via tournament\n\t\tfor (int i = SNSLearningAgent.elitism; i < populationSize; i+=2) {\n\t\t\t//parents selected via tournament\n\t\t\tint p1 = tournament(SNSLearningAgent.tournamentSize);\t\n\t\t\tint p2 = tournament(SNSLearningAgent.tournamentSize);\n\t\t\twhile(p1 == p2)\tp2 = tournament(SNSLearningAgent.tournamentSize);\n\t\t\t\n\t\t\t//performs crossover if probability is matched\n\t\t\tif(R.nextFloat() < SNSLearningAgent.crossoverProb){\n\t\t\t\tif (crossBehavior.equals(\"freeSplitCross\")){\n\t\t\t\t\tint point = R.nextInt(SNSAgent.DNA_LENGTH);\n\t\t\t\t\t\n\t\t\t\t\tspring[i] = cross(population[p1], population[p2], point);\n\t\t\t\t\tif (i+1 < populationSize) spring[i+1] = cross(population[p2], population[p1], point);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tspring[i] = cross(population[p1], population[p2]);\n\t\t\t\t\tif (i+1 < populationSize) spring[i+1] = cross(population[p2], population[p1]);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\telse{\n\t\t\t\tspring[i] = population[p1];\n\t\t\t\tif (i+1 < populationSize) spring[i+1] = population[p2];\n\t\t\t}\n\t\t\t\n\t\t\t//performs mutation if probability is reached\n\t\t\tif(R.nextFloat() < SNSLearningAgent.mutationProb){\n\t\t\t\tspring[i].mutate();\n\t\t\t}\n\t\t\tif(i+1 < populationSize && R.nextFloat() < SNSLearningAgent.mutationProb){\n\t\t\t\tspring[i+1].mutate();\n\t\t\t}\n\t }\n\t\t\n\t\t//replaces old population with the new one\n\t\tfor(int i = 1; i < populationSize; i++) {\n\t\t\tpopulation[i] = spring[i];\n\t\t}\n\t}", "title": "" }, { "docid": "973d4012c6e4c3858a38d2cc9db33e11", "score": "0.55646116", "text": "private void tournament_selection() {\r\n\r\n individual[] temp_pop = new individual[this.pop_size];\r\n\r\n for (int i = 0; i < this.pop_size; i++) {\r\n\r\n // pick 2 random ints to for indices of parents\r\n int parent1 = new Random().nextInt(this.pop_size);\r\n int parent2 = new Random().nextInt(this.pop_size);\r\n\r\n individual p1 = new individual(main_population.getPopulation()[parent1].getGenes(), solutions, output);\r\n individual p2 = new individual(main_population.getPopulation()[parent2].getGenes(), solutions, output);\r\n\r\n if (p1.getFitness() >= p2.getFitness()) {\r\n temp_pop[i] = p1;\r\n } else {\r\n temp_pop[i] = p2;\r\n }\r\n }\r\n this.main_population.setPopulation(temp_pop);\r\n this.main_population.update_population();\r\n }", "title": "" }, { "docid": "c69574fa94f52f35aea90482dc24c798", "score": "0.5556625", "text": "@Override\r\n\tpublic List<GridTask<LinPackResult>> split() {\r\n\t\tList<GridTask<LinPackResult>> list = new ArrayList<GridTask<LinPackResult>>();\r\n\t\tfor (int i=0; i < tasks; i++) {\r\n\t\t\tlist.add(new LinPackTask(cycles));\r\n\t\t}\r\n\t\t\r\n\t\tsw = new StopWatch();\r\n\t\t\r\n\t\tsw.start();\r\n\t\t\r\n\t\treturn list;\r\n\t}", "title": "" }, { "docid": "8d7bdf8e01d2bc8b9ec962dfe966e300", "score": "0.5417826", "text": "private void crossover() {\r\n\r\n individual[] temp_pop = new individual[this.pop_size];\r\n\r\n for (int i = 0; i < pop_size; i++) { // go through population\r\n\r\n int a = new Random().nextInt(this.pop_size);\r\n int b = new Random().nextInt(this.pop_size);\r\n\r\n int split_point = new Random().nextInt(this.gene_size);\r\n\r\n float[] p1_genes = this.parent_population.getPopulation()[a].getGenes();\r\n float[] p2_genes = this.parent_population.getPopulation()[b].getGenes();\r\n\r\n float[] c1_genes = new float[gene_size];\r\n float[] c2_genes = new float[gene_size];\r\n\r\n for (int j = 0; j < gene_size; j++) {\r\n\r\n if (j < split_point) {\r\n c1_genes[j] = p1_genes[j];\r\n c2_genes[j] = p2_genes[j];\r\n } else {\r\n c2_genes[j] = p1_genes[j];\r\n c1_genes[j] = p2_genes[j];\r\n }\r\n }\r\n individual child1 = new individual(c1_genes, solutions, output);\r\n individual child2 = new individual(c2_genes, solutions, output);\r\n\r\n if (child1.getFitness() > child2.getFitness()) {\r\n temp_pop[i] = child1;\r\n } else {\r\n temp_pop[i] = child2;\r\n }\r\n }\r\n this.offspring_population.setPopulation(temp_pop);\r\n this.offspring_population.update_population();\r\n }", "title": "" }, { "docid": "ad0ac4d945e997d36f9aeecf26630a22", "score": "0.5340843", "text": "public void generatePopulation() {\n\t\t\n\t\tif (SCType.getScLayers() <= 2)\n\t\t\tLogger.logError(\"To few supply chain layers, minimum of 3 required:\" + SCType.getScLayers());\n\t\t\n\t\tArrayList<CountryAgent> countryAgents = SU.getObjectsAll(CountryAgent.class);\t\t\n\t\tfor (CountryAgent country : countryAgents) {\n\t\t\t\n\t\t\tif (country.containsSCType(SCType.PRODUCER)) {\n\t\t\t\tfor (int i = 0; i < Constants.N_PRODUCERS; i++) {\n\t\t\t\t\tcountry.spawnAgent(SCType.PRODUCER);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif (country.containsSCType(SCType.INTERNATIONAL)) {\n\t\t\t\tfor (int i = 0; i < Constants.N_INTERNATIONALS; i++) {\n\t\t\t\t\tcountry.spawnAgent(SCType.INTERNATIONAL);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif (country.containsSCType(SCType.WHOLESALER)) {\n\t\t\t\tfor (int i = 0; i < Constants.N_WHOLESALERS; i++) {\n\t\t\t\t\tcountry.spawnAgent(SCType.WHOLESALER);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif (country.containsSCType(SCType.RETAIL)) {\n\t\t\t\tfor (int i = 0; i < Constants.N_RETAILERS; i++) {\n\t\t\t\t\tcountry.spawnAgent(SCType.RETAIL);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif (country.containsSCType(SCType.CONSUMER)) {\n\t\t\t\tfor (int i = 0; i < Constants.N_CONSUMERS; i++) {\n\t\t\t\t\tcountry.spawnAgent(SCType.CONSUMER);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Set possible new suppliers and clients\n\t\tfor (BaseAgent agent : SU.getObjectsAll(BaseAgent.class)) {\n\t\t\tagent.setPossibleNewSuppliersAndClients();\n\t\t}\n\t\t\n\t\tSU.getDataCollector().addAllCurrentStock();\n\t}", "title": "" }, { "docid": "0ad537c8e2afed5204c5d937972042a6", "score": "0.53397864", "text": "public void iterate()\n\t{\n\t\tfor (int p = 0; p < parasites.length; p++)\n\t\t\tpFitnesses[p][1] = 0;\n\t\t\n\t\ttry\n\t\t{\t// calculate fitnesses against other population\n\t\t\texecutor.invokeAll(tasks);\n\t\t\t// calculate fitness against hall of fame individuals\n\t\t\texecutor.invokeAll(hofTasks);\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\tSystem.out.println(\"Something bad happened...\");\n\t\t\tSystem.exit(-1);\n\t\t}\n\t\n\t\tArrays.sort(hFitnesses,new ArrayComparator(1,false));\n\t\tArrays.sort(pFitnesses,new ArrayComparator(1,false));\n\t\t\n\t\tint bestIndex = (int)pFitnesses[0][0];\n\t\tint size = parHOF.length;\n\t\t\n\t\tparHOF[generations%size]=new NeuralPlayer(-1,\"HOF P\",(BasicNetwork)parasites[(int)bestIndex].net.clone());\n\t\tbestIndex = (int)hFitnesses[0][0];\n\t\thostHOF[generations%size]=new NeuralPlayer(1,\"HOF H\",(BasicNetwork)hosts[(int)bestIndex].net.clone());\n\t\t\n\t\tint matePopIndex = (int)(matingPer*popSize)+1;\n\t\tRandom indexG = new Random();\n\t\t// allow top percentage to breed and replace bottom 2*percentage\n\t\t// leave everyone else alone\n\t\tfor (int i = 0; i < popSize*2*matingPer; i++)\n\t\t{\n\t\t\tint pInd1 = indexG.nextInt(matePopIndex);\n\t\t\tint pInd2 = indexG.nextInt(matePopIndex);\n\t\t\tNeuralPlayer p1 = hosts[(int)hFitnesses[pInd1][0]];\n\t\t\tNeuralPlayer p2 = hosts[(int)hFitnesses[pInd2][0]];\n\t\t\tNeuralPlayer child = hosts[(int)hFitnesses[popSize - 1 - i][0]];\n\t\t\tmate(p1, p2,child);\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < popSize*2*matingPer; i++)\n\t\t{\n\t\t\tint pInd1 = indexG.nextInt(matePopIndex);\n\t\t\tint pInd2 = indexG.nextInt(matePopIndex);\n\t\t\tNeuralPlayer p1 = parasites[(int)pFitnesses[pInd1][0]];\n\t\t\tNeuralPlayer p2 = parasites[(int)pFitnesses[pInd2][0]];\n\t\t\tNeuralPlayer child = parasites[(int)pFitnesses[popSize - 1 - i][0]];\n\t\t\tmate(p1, p2,child);\n\t\t}\n\t\t// mutate everyone except top percentage (matingPer)\n\t\tfor (int i = 0; i < popSize*3*matingPer; i++)\n\t\t{\n\t\t\tmutate(parasites[(int)pFitnesses[popSize - 1 - i][0]]);\n\t\t\tmutate(hosts[(int)hFitnesses[popSize - 1 - i][0]]);\n\t\t}\n\t\t\n\t\tgenerations+=1;\n\t\t// every now and then reseed the population with a good individual\n\t\tif (generations%50 == 0)\n\t\t{\n\t\t\thosts[indexG.nextInt(hosts.length)].net = (BasicNetwork)allTimeBestHost.net.clone();\n\t\t\tparasites[indexG.nextInt(parasites.length)].net = (BasicNetwork)allTimeBestPara.net.clone();\n\t\t}\n\t\t\t\n\t}", "title": "" }, { "docid": "ee58447cf9cb6a93fcdd879a334c5330", "score": "0.53011924", "text": "@Override\n @Transactional\n public int joinFinishedMiBranches(int bulkSize) {\n PageRequest pageRequest = PageRequest.of(0, bulkSize);\n List<SuspendedExecution> suspendedExecutions = suspendedExecutionsRepository.findUnmergedSuspendedExecutions(of(MULTI_INSTANCE, PARALLEL_LOOP), pageRequest);\n\n return joinMiBranchesAndSendToQueue(suspendedExecutions);\n }", "title": "" }, { "docid": "152748c7661b5681eb980c980fb16466", "score": "0.52485156", "text": "@Split\n public List<InputMapper> split(@PartitionSize final long bundles) {\n\t\tfinal List<InputMapper> partitions = new ArrayList<>();\n\t final Collection<Member> members = new ArrayList<>();\n\t long current = 0;\n\t for (final Map.Entry<Member, Future<Long>> entries : getSizeByMembers().entrySet()) {\n\t final long memberSize = getFutureValue(entries.getValue());\n\t if (members.isEmpty()) {\n\t members.add(entries.getKey());\n\t current += memberSize;\n\t } else if (current + memberSize > bundles) {\n\t partitions.add(\n\t new InputMapper(configuration, jsonFactory, jsonb, service, toIdentifiers(members)));\n\t // reset current iteration\n\t members.clear();\n\t current = 0;\n\t }\n\t }\n\t if (!members.isEmpty()) {\n\t partitions.add(new InputMapper(configuration, jsonFactory, jsonb, service, toIdentifiers(members)));\n\t }\n\n\t if (partitions.isEmpty()) { // just execute this if no plan (= no distribution)\n\t partitions.add(this);\n\t }\n\t return partitions;\n }", "title": "" }, { "docid": "467c98e027fc878d9b4f029172f303b1", "score": "0.5227569", "text": "private Vector step(){\n// System.out.println();\n// System.out.println(generationCount);\n// System.out.println(\"The Population is:\");\n// System.out.println(population);\n \n //DETERMINE WHO SURVIVES INTO NEXT GENERATION\n Vector nextGeneration = surviveType.run(population, fitnessArray);\n\n //DO THE CROSSOVER PROCESS\n //WHILE THE NEXT GENERATION ISN'T FULL\n while (nextGeneration.size() < (populationSize - randGenes)){\n //FIND PARENTS\n Gene parentOne, parentTwo;\n do {\n Gene[] parents = selectType.run(population, fitnessArray);\n parentOne = parents[0];\n parentTwo = parents[1];\n } while (selectPairs && (! closeEnough(parentOne, parentTwo)));\n //ADD CHILDREN\n Gene[] kids = crossType.children(parentOne, parentTwo);\n\n nextGeneration.add(kids[0]);\n if (nextGeneration.size() < (populationSize - randGenes)){\n nextGeneration.add(kids[1]);\n }\n }\n //ADD RANDOM GENES TO THE POPULATION\n while (nextGeneration.size() < populationSize){\n nextGeneration.add(initializer.createRandomGene(fitnessFunction, minRadius, maxRadius));\n }\n //MUTATE THE NEXT GENERATION\n for (int j = 0; j < populationSize; j++){\n if (Math.random() < mutationProb){\n nextGeneration.set(j, mutationType.run((Gene) nextGeneration.get(j)));\n }\n }\n\n //COMPUTE FITNESSES AND RELOCATE IF NECESSARY\n Gene bestGene = (Gene) nextGeneration.get(0);\n int bestX = 0;\n for (int x = 0; x < populationSize; x++){\n Gene next = (Gene) nextGeneration.get(x);\n while (relocationType.move(bannedList, next)){\n Gene newGene = initializer.createRandomGene(fitnessFunction, minRadius, maxRadius);\n next = newGene;\n nextGeneration.set(x, next);\n }\n fitnessArray[x] = next.getFitness();\n\n //FOR THE PURPOSES OF UPDATING THE BANNED LIST\n if (next.getFitness() > bestGene.getFitness()){\n bestGene = next;\n bestX = x;\n }\n } //End for (int x = 0;...\n\n Arrays.sort(fitnessArray);\n\n //UPDATE THE BANNED LIST BY ADDING THE BEST GENE IN THE NEXT GENERATION IF IT'S ABOVE minAccepted AND CONTAINS MORE THAN minPoints POINTS\n if (useList){\n if ((generationCount >= firstAdd) &&\n (solutionCounter >= countNum) &&\n (bestGene.getFitness() >= minAccepted) &&\n (bestGene.getCount() >= minPoints)){\n solutionCounter = 0;\n// System.out.println(bestGene);\n Gene bestClone = new Gene (bestGene.getMajorAxisRadius(), //THIS KLUDGE IS DONE B/C .clone() IS\n bestGene.getMinorAxisRadius(), //PROTECTED, AND I CAN'T UNPROTECT IT.\n bestGene.getX(), //I USE A CLONED GENE TO PREVENT A MUTATION\n bestGene.getY(), //IN THE NEXT GENERATION FROM ALTERING bannedList\n bestGene.getOrientation(),\n bestGene.getFunction());\n bannedList = relocationType.updateBannedList(bannedList, bestClone);\n\n\n //IF NECESSARY, UPDATE THE SOLUTION LIST BY ADDING ALL CLUSTERS WITH MORE THAN minPoints POINTS AND A FITNESS OF AT LEAST minAccepted\n if (returnAllSolutions){\n for (int i = 0; i < populationSize; i++){\n Gene next = (Gene) nextGeneration.get(i);\n if ((next.getFitness() >= minAccepted) && (next.getCount() >= minPoints)){\n solutionList.add(next);\n }\n }//End for (int i = 0...\n } else {\n solutionList = bannedList;\n } //End if (returnAllSolutions){...}else{\n } //End if (generationCount > 4...\n } //End if (useList){\n\n generationCount = generationCount + 1;\n solutionCounter = solutionCounter + 1;\n\n //IF AVOIDING CONVERGENCE, AND IT HAS CONVERGED, START OVER WITH RANDOM GENES\n\n double bestFitness = bestGene.getFitness();\n double medianFitness = roundToHundredths((double) fitnessArray[(int) Math.floor(populationSize / 2)]);\n\n// System.out.println(bestFitness);\n// System.out.println(medianFitness);\n\n if ((antiConvergence) &&\n ((bestFitness - medianFitness) < (0.01 * bestFitness)) &&\n (generationCount > firstAdd)){\n nextGeneration = initializer.getGenes(populationSize, fitnessFunction, minRadius, maxRadius);\n// System.out.println(\"EXPLODED CONVERGENCE!\");\n for (int x = 0; x < populationSize; x++){\n Gene next = (Gene) nextGeneration.get(x);\n fitnessArray[x] = next.getFitness();\n }\n Arrays.sort(fitnessArray);\n }\n\n return nextGeneration;\n }", "title": "" }, { "docid": "90c676d654f7fde2505c757c7f68b80a", "score": "0.5216509", "text": "private void run() {\n //Create the store object\n Store store = new Store();\n\n //Populate the array of people\n for (int i = 0; i < 20; i++) {\n people.add(new Viewer(store));\n if (i < 6) { //Add buyers\n people.add(new Buyer(store));\n }\n }\n\n //Make a thread pool according to the size of people\n this.threadPoolExecutor =\n (ThreadPoolExecutor) Executors.newFixedThreadPool(people.size());\n\n //Start the life of every person\n for (Person person : this.people) {\n threadPoolExecutor.execute(person);\n }\n }", "title": "" }, { "docid": "a1f7580245c4c064f30911b573c682bd", "score": "0.51801413", "text": "@Override\n @Transactional\n public int joinFinishedSplits(int bulkSize) {\n PageRequest pageRequest = PageRequest.of(0, bulkSize);\n List<SuspendedExecution> suspendedExecutions = suspendedExecutionsRepository.findFinishedSuspendedExecutions(of(PARALLEL, NON_BLOCKING), pageRequest);\n\n return joinAndSendToQueue(suspendedExecutions);\n }", "title": "" }, { "docid": "a167efe7250704742c94bc5d87ded801", "score": "0.5095126", "text": "public void startParallelBombing() {\n\t\tint x = _count;\n\t\t_active = true;\n\t\twhile (_active && x-- > 0) {\n\t\t\tparallelBomb(_count - x);\n\t\t}\n\t\t_active = false;\n\t}", "title": "" }, { "docid": "e1a4e2807cddc220b976b1336a7f1269", "score": "0.5085087", "text": "protected void SelectTournament() {\n\t // Torneo.length -> tournament size\n\t // if (tournament size == 2) then BinaryTournament\n this.setRanking();\n\t \n\t for (int i=0; i<this.PopLength; i++) {\n\t Torneo[0] = Randint(0,this.PopLength-1);\n\t int mejor_torneo=Torneo[0];\n\t \n\t for (int j=1; j<Torneo.length; j++) {\n\t boolean repetido= false;\n\t do {\n\t Torneo[j] = Randint(0,this.PopLength-1);\n\t repetido=false;\n\t int k=0;\n\t while ((k<j) && (!repetido))\n\t if (Torneo[j]==Torneo[k])\n\t repetido=true;\n\t else\n\t k++;\n\t } while (repetido);\n\t \n\t if (OLDevaluation[Torneo[j]] < OLDevaluation[mejor_torneo])\n\t mejor_torneo=Torneo[j];\n\t }\n\t sample[i] = mejor_torneo;\n\t }\n\t // Se crea la nueva poblacion\n\t for (int n=0; n<this.PopLength; n++) {\n\t int kk=sample[n];\n\t for (int m=0; m<this.NbGenes; m++) {\n\t NEWpopulation[n][m]= OLDpopulation[kk][m];\n\t }\n\t NEWevaluation[n]= OLDevaluation[kk];\n\t NEWevalIndex[n]= OLDevalIndex[kk];\n\t }\n }", "title": "" }, { "docid": "17baab0972cd806c60ae6c7a607c74ef", "score": "0.5062935", "text": "public void genPopulation(int howMany)\r\n/* 30: */ {\r\n/* 31:54 */ this.pop.removeAllElements();\r\n/* 32:55 */ for (int i = 0; i < howMany; i++)\r\n/* 33: */ {\r\n/* 34:61 */ int[] clusterV = g.genRandomClusterSize();\r\n/* 35:62 */ Cluster c = new Cluster(g, clusterV);\r\n/* 36:63 */ this.pop.addElement(c);\r\n/* 37: */ }\r\n/* 38: */ }", "title": "" }, { "docid": "4d5ea5aee1a35a3943d4e246ec12ca9e", "score": "0.50570434", "text": "@Override\n\tpublic Object[] splitTasks() {\n\t\tif (tasks == null) {\n\t\t\tSystem.out.println(\"There are \"+taskNum +\" tasks, and handled by \"+clientsNum+\" clients\");\n\t\t}\t\t\n\t\ttasks = new SimpleTask[clientsNum];\n\t\ttq = taskNum / clientsNum;\n//\t\tbatchSize = tq;\n\t\tint left = taskNum - tq * clientsNum;\n\t\t\n\t\tfor (int i = 0; i < tasks.length; i++) {\n\t\t\tint l = 0;\n\t\t\tif (left >= i+1) {\n\t\t\t\tl = 1;\n\t\t\t}\n\t\t\tif (i == 0) {\n\t\t\t\ttasks[i] = new SimpleTask(1, tq + l, batchSize);\n\t\t\t} else {\n\t\t\t\ttasks[i] = new SimpleTask(\n\t\t\t\t\t\ttasks[i - 1].getEnd()+ 1, tasks[i - 1].getEnd() + tq + l, batchSize);\n\t\t\t}\t\t\t\n\t\t}\n//\t\tSystem.out.println(\"done .\"+clientsNum);\n\t\tthis.srvQ2QLSTM.getCfg().getQlSTMConfigurator().setMBSize(batchSize);\n\t\tthis.srvQ2QLSTM.getCfg().getAlSTMConfigurator().setMBSize(batchSize);\t\t\n\t\treturn tasks;\n\t}", "title": "" }, { "docid": "6a5ea903831ef0567465a401ba9550d3", "score": "0.50481296", "text": "public void splitTeams()\r\n\t{\r\n\t\tfor (Mitarbeiter m : mitarbeiter.values())\r\n\t\t{\r\n\t\t\tint test = m.getAzvMonat().firstEntry().getValue().getITeam();\r\n\t\t\t\r\n\t\t\tswitch (test)\r\n\t\t\t{\r\n\t\t\tcase 1:\r\n\t\t\tteam1.put(m.getPersonalNR(), m);\t\r\n\t\t\tbreak;\r\n\r\n\t\t\tcase 2:\r\n\t\t\tteam2.put(m.getPersonalNR(), m);\t\r\n\t\t\tbreak;\r\n\t\t\t\r\n\t\t\tcase 3:\r\n\t\t\tteam3.put(m.getPersonalNR(), m);\t\r\n\t\t\tbreak;\r\n\t\t\t\r\n\t\t\tdefault:\r\n\t\t\tteam4.put(m.getPersonalNR(), m);\r\n\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t// Für den einfacheren späteren Zugriff werden die Teams in eine seperate Liste gepackt:\t\r\n\tteams.put(1, team1);\r\n\tteams.put(2, team2);\r\n\tteams.put(3, team3);\r\n\tteams.put(4, team4);\r\n\t\r\n\tsetGesamtsummeProzentanteile();\t\r\n\t}", "title": "" }, { "docid": "108cdd77e1e526962ce02f56a9b220b0", "score": "0.5041226", "text": "public void reproduce(){\n\t\t// sort the population from strongest to weakest\n\t\tCollections.sort(population);\n\t\tCollections.reverse(population);\n\t\t\n\t\tfor(int i = 0; i < (int)(POPULATION_SIZE*POPULATION_ACTION_PERCENT); i+=2){\n\t\t\t\n\t\t\t// get two random indexes for reproduction based on the exponential function\n\t\t\t// (1/1000) * (randInt)^2 = index\n\t\t\t// this function favors sequences with higher fitness scores\n\t\t\tint randIndex1 = randomGenerator.nextInt((int)Math.sqrt(1000*POPULATION_SIZE*(1-POPULATION_ACTION_PERCENT)));\n\t\t\tint randIndex2 = randomGenerator.nextInt((int)Math.sqrt(1000*POPULATION_SIZE*(1-POPULATION_ACTION_PERCENT)));\n\t\t\t\n\t\t\trandIndex1 = (int) (Math.pow(randIndex1, 2) / 1000);\n\t\t\trandIndex2 = (int) (Math.pow(randIndex2, 2) / 1000);\n\t\t\t\n\t\t\t// get two pieces\n\t\t\tBuildingPiece[] array1 = population.get(randIndex1).getList();\n\t\t\tBuildingPiece[] array2 = population.get(randIndex2).getList();\n\t\t\t\n\t\t\t// find a splicing point\n\t\t\tint splicePoint = findSplicingPoint(array1, array2);\n\t\t\t\n\t\t\t// generate two new arrays based on the splicing point\n\t\t\tBuildingPiece[] newArray1 = generateNewArray(array1, array2, splicePoint);\n\t\t\tBuildingPiece[] newArray2 = generateNewArray(array2, array1, splicePoint);\n\t\t\t\n\t\t\t// make new buildings with the new arrays\n\t\t\tBuilding bp1 = new Building(newArray1, generation, possiblePieces);\n\t\t\tBuilding bp2 = new Building(newArray2, generation, possiblePieces);\n\t\t\t\n\t\t\t// mutate the new building sequences\n\t\t\tmutateArray(bp1);\n\t\t\tmutateArray(bp2);\n\t\t\t\n\t\t\t// add them into the population\n\t\t\tpopulation.add(randIndex1, bp1);\n\t\t\tpopulation.add(randIndex2, bp2);\n\t\t}\n\t}", "title": "" }, { "docid": "3c19fa5132b1a16d44a676c39c5b646c", "score": "0.5028944", "text": "public void startPopulateWorkers(){\r\n\t\tArrayList<Thread> threads = new ArrayList<Thread>();\r\n\t\t\r\n\t\t//Create threads\r\n\t\tfor(int i = 0; i < pts.length; i++){\r\n\t\t\tthreads.add(new Thread(pts[i]));\r\n\t\t\tthreads.get(i).start();\r\n\t\t}\r\n\t\t\r\n\t\t//Wait for threads to finish\r\n\t\tfor(int i = 0; i < pts.length; i++){\r\n\t\t\ttry {\r\n\t\t\t\tthreads.get(i).join();\r\n\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\tthrow new RuntimeException(e.getMessage());\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "9510822282740fae68f5d68c32fd261f", "score": "0.50118387", "text": "@Override\r\n protected void compute() {\r\n //if count != 0 || splitA.length == 1 then go, else for loop to make splitA.length subtasks to run splitArrayB and then they all call mergeAB\r\n if(global_count == 0){\r\n splitArrayB();\r\n }\r\n if(global_count != 0 || splitA.length == 1){\r\n mergeAB();\r\n }\r\n else{\r\n List<ConcurrentMerge> subtasks = new ArrayList<>();\r\n ConcurrentMerge temp;\r\n for(int i = 0; i < splitA.length; i++){\r\n global_count++;\r\n temp = new ConcurrentMerge(A, B, splitA, splitB, C, global_count);\r\n subtasks.add(temp);\r\n }\r\n invokeAll(subtasks);\r\n }\r\n }", "title": "" }, { "docid": "dd2f66fb488396921d08fbd80dec6894", "score": "0.5011095", "text": "private void runExperiments()\n {\n for (int i = 0; i < count; i++)\n {\n Percolation experiment = new Percolation(size);\n int openCount = 0;\n StdRandom.setSeed(System.currentTimeMillis());\n while (!experiment.percolates())\n {\n int x = StdRandom.uniform(1, size+1);\n int y = StdRandom.uniform(1, size+1);\n if (!experiment.isOpen(x, y))\n {\n experiment.open(x, y);\n openCount++;\n }\n } \n open[i] = (double) openCount / (size * size);\n }\n }", "title": "" }, { "docid": "908c09dd57d2748a9cf6805856b69c57", "score": "0.49709433", "text": "@ForgeSubscribe\n public void performChunkSpawning(PopulateChunkEvent.Populate event) {\n if (event.type == PopulateChunkEvent.Populate.EventType.ICE\n && event.world.getGameRules().getGameRuleBooleanValue(\"doCustomMobSpawning\")) {\n int k = event.chunkX * 16;\n int l = event.chunkZ * 16;\n Iterator<CreatureType> iterator = JustAnotherSpawner.worldSettings().creatureTypeRegistry()\n .getCreatureTypes();\n BiomeGenBase spawnBiome = event.world.getBiomeGenForCoords(k + 16, l + 16);\n \n if (spawnBiome == null || blacklist.isBlacklisted(spawnBiome)) {\n return;\n }\n \n while (iterator.hasNext()) {\n CreatureType creatureType = iterator.next();\n if (creatureType.chunkSpawning) {\n CustomSpawner.performWorldGenSpawning(event.world, creatureType, spawnBiome, k + 8, l + 8, 16, 16,\n event.world.rand);\n }\n }\n }\n }", "title": "" }, { "docid": "0c293084fb90ff40761907f199a4003c", "score": "0.49603328", "text": "public void campaign() {\r\n for (int i = 0; i < this.parties.length; i++) {\r\n while (this.parties[i].makeAction(this.constituencies, this.acts)) {}\r\n }\r\n }", "title": "" }, { "docid": "97a97149e890323d4cf9676b55db7188", "score": "0.495253", "text": "public static void main(String[] args) {\n City city = new City(60, 200);\n\n City city2 = new City(180, 200);\n\n City city3 = new City(80, 180);\n City city4 = new City(140, 180);\n\n City city5 = new City(20, 160);\n\n City city6 = new City(100, 160);\n\n City city7 = new City(200, 160);\n\n City city8 = new City(140, 140);\n\n City city9 = new City(40, 120);\n\n City city10 = new City(100, 120);\n\n City city11 = new City(180, 100);\n\n City city12 = new City(60, 80);\n\n City city13 = new City(120, 80);\n City city14 = new City(180, 60);\n City city15 = new City(20, 40);\n\n City city16 = new City(100, 40);\n\n City city17 = new City(200, 40);\n City city18 = new City(20, 20);\n\n City city19 = new City(60, 20);\n City city20 = new City(160, 20);\n List<City> list=new ArrayList<City>();\n list.add(city);list.add(city2);\n list.add(city3);\n list.add(city4);\n list.add(city5);\n list.add(city6);\n list.add(city7);\n list.add(city8);\n list.add(city9);\n list.add(city10);\n list.add(city11);\n list.add(city12);\n list.add(city13);\n list.add(city14);\n list.add(city15);\n list.add(city16);\n list.add(city17);\n list.add(city18);\n list.add(city19);\n list.add(city20);\n\n // Initialize population\n Population pop = new Population(100, true,list);\n System.out.println(\"Initial distance: \" + pop.getBestTour().getDistance());\n\n // Evolve population for 100 generations\n pop = Ga.evolvePopulation(pop);\n for (int i = 0; i < 500; i++) {\n pop = Ga.evolvePopulation(pop);\n System.out.println(\"第\"+i+\"代\"+pop.getBestTour().getDistance());\n }\n\n // Print final results\n System.out.println(\"Finished\");\n System.out.println(\"Final distance: \" + pop.getBestTour().getDistance());\n System.out.println(\"Solution:\");\n System.out.println(pop.getBestTour());\n }", "title": "" }, { "docid": "ca55e414a4fb7cbf956084fad3fadf6a", "score": "0.49421144", "text": "protected abstract void splitBAMs();", "title": "" }, { "docid": "25a205e6eecf031a293255c4dfbe0345", "score": "0.49334002", "text": "public void generateOffspringPopulation() throws JMException{\n\n offspringPopulation_ = new SolutionSet[problemSet_.size()];\n\n for (int task = 0; task < problemSet_.size(); task++){\n offspringPopulation_[task] = new SolutionSet(populationSize_);\n if (crossover_.getClass() == SBXCrossover.class){\n Solution[] parents = new Solution[2];\n for (int i = 0; i < (populationSize_); i++) {\n // obtain parents\n parents = (Solution[]) selection_.execute(population_[task]);\n\n Solution[] offSpring = (Solution[]) crossover_\n .execute(parents);\n mutation_.execute(offSpring[0]);\n problemSet_.get(task).evaluate(offSpring[0]);\n problemSet_.get(task).evaluateConstraints(offSpring[0]);\n offspringPopulation_[task].add(offSpring[0]);\n } // for\n }\n else if (crossover_.getClass() == EGG.class){\n\n int[] permutation = new int[populationSize_];\n Utils.randomPermutation(permutation, populationSize_);\n etmo.util.Ranking ranking = new etmo.util.Ranking(population_[task]);\n SolutionSet front = ranking.getSubfront(0);\n\n front.Suppress();\n SolutionSet KP = null;\n if(front.size()> problemSet_.get(task).getNumberOfObjectives())\n KP = findingKneePoint(front, task);\n if(KP == null){\n KP = population_[task];\n }\n\n for (int i = 0; i < (populationSize_); i++) {\n // obtain parents\n int n = permutation[i];\n // STEP 2.1. Mating selection\n int r1,r2;\n r1 = PseudoRandom.randInt(0, KP.size() - 1);\n do {\n r2 = PseudoRandom.randInt(0, KP.size() - 1);\n } while (r2==r1);\n // STEP 2.2. Reproduction\n Solution child;\n Solution[] parents = new Solution[3];\n\n// 加入迁移:\n double tranRand = PseudoRandom.randDouble();\n if (tranRand <= 0.1){\n parents[1] = population_[PseudoRandom.randInt(0, problemSet_.size() - 1)].get(PseudoRandom.randInt(0, populationSize_ - 1));\n parents[2] = population_[PseudoRandom.randInt(0, problemSet_.size() - 1)].get(PseudoRandom.randInt(0, populationSize_ - 1));\n parents[0] = population_[task].get(n);\n child = (Solution) crossover_.execute(parents);\n\n mutation_.execute(child);\n\n problemSet_.get(task).evaluate(child);\n problemSet_.get(task).evaluateConstraints(child);\n offspringPopulation_[task].add(child);\n }\n\n\n\n else {\n parents[1] = KP.get(r1);\n parents[2] = KP.get(r2);\n parents[0] = population_[task].get(n);\n child = (Solution) crossover_.execute(parents);\n\n mutation_.execute(child);\n\n problemSet_.get(task).evaluate(child);\n problemSet_.get(task).evaluateConstraints(child);\n offspringPopulation_[task].add(child);\n }\n\n\n } // for\n }\n\n }\n\n\n\n\n }", "title": "" }, { "docid": "961dff6f5f08c940d65661db6a712e04", "score": "0.4890762", "text": "public MyPacMan optimise(List<double[]> dimensionList){\n for(int i = 0; i < POPULATION_SIZE; i++){\r\n MyPacMan individual = new MyPacMan(dimensionList);\r\n population.add(individual);\r\n \r\n } \r\n \r\n // try more than one iteration \r\n for(int iterationCount = 0; iterationCount < ITERATION_NO; iterationCount++){\r\n \r\n System.out.println(\"Iterazione n°: \" + Integer.toString(iterationCount));\r\n \r\n if(iterationCount%10 == 0 || iterationCount == ITERATION_NO-1){\r\n try {\r\n pw = new PrintWriter(new File(\"data/popoluation_\" + Integer.toString(iterationCount) +\".csv\"));\r\n } catch (FileNotFoundException ex) {\r\n \r\n } \r\n \r\n \r\n for(int n = 0; n < dimensionList.size(); n++){ \r\n pw.write(\"v\" + Integer.toString(n));\r\n pw.write(\",\");\r\n }\r\n \r\n pw.write(\"fValue\");\r\n\r\n pw.write(\"\\n\");\r\n \r\n for (MyPacMan individual : population) {\r\n pw.write(individual.toString());\r\n pw.write(\",\");\r\n pw.write(Double.toString(fitFunction(individual)));\r\n pw.write(\"\\n\");\r\n }\r\n \r\n pw.flush();\r\n }\r\n \r\n int loop = 0;\r\n \r\n // main loop for evolution\r\n while(loop < population.size()){ \r\n\r\n MyPacMan original = null;\r\n MyPacMan candidate = null;\r\n boolean boundsHappy;\r\n\r\n do{\r\n boundsHappy = true;\r\n // pick an agent from the the population\r\n int x = loop;\r\n int a,b,c = -1;\r\n\r\n // pick three random agents from the population\r\n // make sure that they are not identical to selected agent from\r\n // the population \r\n\r\n do{\r\n a = random.nextInt(population.size());\r\n }while(x == a);\r\n do{\r\n b = random.nextInt(population.size());\r\n }while(b==x || b==a);\r\n do{\r\n c = random.nextInt(population.size());\r\n }while(c == x || c == a || c == b);\r\n\r\n // create three agent individuals\r\n MyPacMan individual1 = population.get(a);\r\n MyPacMan individual2 = population.get(b);\r\n MyPacMan individual3 = population.get(c);\r\n\r\n // create a noisy random candidate\r\n MyPacMan noisyRandomCandicate = new MyPacMan(dimensionList);\r\n\r\n // mutation process\r\n // if an element of the trial parameter vector is\r\n // found to violate the bounds after mutation and crossover, it is reset in such a way that the bounds\r\n // are respected (with the specific protocol depending on the implementation)\r\n for(int n = 0; n < dimensionList.size(); n++){ \r\n noisyRandomCandicate.dataValue[n] = (individual1.dataValue[n] + DIFFERENTIAL_WEIGHT * (individual2.dataValue[n] - individual3.dataValue[n])); \r\n } \r\n\r\n // Create a trial candicate \r\n original = population.get(x);\r\n candidate = new MyPacMan(dimensionList);\r\n\r\n // copy values from original agent to the candidate agent\r\n for(int n = 0; n < dimensionList.size(); n++){ \r\n candidate.dataValue[n] = original.dataValue[n];\r\n } \r\n\r\n // crossver process with the selected individual\r\n // pick a random dimension, which defintely takes the value from the noisy random candidate\r\n int R = random.nextInt(dimensionList.size());\r\n\r\n for(int n = 0; n < dimensionList.size(); n++){\r\n\r\n double crossoverProbability = random.nextDouble();\r\n\r\n if(crossoverProbability < CROSSOVER_PROBABILITY || n == R){\r\n candidate.dataValue[n] = noisyRandomCandicate.dataValue[n];\r\n }\r\n\r\n }\r\n\r\n // check here if the trial candiate satisfies bounds for each value\r\n for(int n = 0; n < dimensionList.size(); n++){ \r\n if(candidate.dataValue[n] < dimensionList.get(n)[0] || candidate.dataValue[n] > dimensionList.get(n)[1]){\r\n boundsHappy = false;\r\n }\r\n }\r\n\r\n }while(boundsHappy == false);\r\n\r\n //see if the candidate is better than original, if so replace it\r\n if(fitFunction(original) < fitFunction(candidate)){\r\n population.remove(original);\r\n population.add(candidate); \r\n }\r\n loop++;\r\n } \r\n }\r\n \r\n MyPacMan bestFitness = new MyPacMan(dimensionList);\r\n \r\n // selecting the final best agent from the the population\r\n for(int i = 0; i < population.size(); i++){\r\n MyPacMan individual = population.get(i);\r\n \r\n if(fitFunction(bestFitness) < fitFunction(individual)){\r\n \r\n try {\r\n bestFitness = (MyPacMan) individual.clone();\r\n } catch (CloneNotSupportedException ex) {\r\n \r\n }\r\n }\r\n }\r\n \r\n System.out.println(\"Fitness migliore: \" + fitFunction(bestFitness));\r\n return bestFitness;\r\n }", "title": "" }, { "docid": "df8b89889b7a871e088ad71cd113a56f", "score": "0.4881655", "text": "private void createInitialPopulation() throws InterruptedException, TimeoutException {\n\n\t\tProteinDatabase ident = new ProteinDatabase();\n\t\tident.parseInput(\"proteins.fasta\");\n\t\tList<Protein> database = ident.getDatabase();\n\n\t\tfor (Protein data : database) {\n\t\t\tdata.setExperimental(es);\n\t\t}\n\n\t\tList<Protein> candidates = new ArrayList<Protein>();\n\t\tfor (Protein p : database)\n\t\t{\n\t\t\tTheoreticalSpectrum theoreticalSpectrum = new TheoreticalSpectrum(p.getAminoAcidsequence());\n\t\t\tif (Math.abs(parentMass - theoreticalSpectrum.getParentMass()) <= parentMassThreshold) {\n\t\t\t\tcandidates.add(p);\n\t\t\t}\n\t\t}\n\n\t\trunInitialFitnessCalculations(candidates);\n\n\t\tCollections.sort(candidates, new ProteinFitnessComparator());\n\t\tdebug(candidates, 0);\n\n\n\t\tpopulation = new ArrayList<Protein>(populationSize);\n\n\t\tpopulationActualSize = 0;\n\t\tfor (Protein p : candidates)\n\t\t{\n\t\t\tpopulation.add(p);\n\t\t\tpopulationActualSize++;\n\t\t\tif (populationActualSize == populationSize)\n\t\t\t{\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "cc56b9081d2c1bad2ffe0ee3ae9fd301", "score": "0.48706636", "text": "public void saveAll(Population p) {\r\n\t\tfor(int index=0;index<p.populationSize();index++) {\r\n\t\t\t tours[index]=p.getTour(index);\r\n\t\t}\r\n\t\t\r\n\t }", "title": "" }, { "docid": "39ac84b5dade735f767f723d8c515021", "score": "0.48409554", "text": "protected void divideWorkersBySkill() {\n ResourcePool myResourcePool;\n\n for (Person person : this.getPersons()) {\n myResourcePool = this.getResourcePools().get(person.getSkill());\n\n // Create the pool if no other workers have yet been discovered with this skill\n if (myResourcePool == null) {\n myResourcePool = new ResourcePool(new ArrayList<>(), person.getSkill(),\n this.getName());\n this.getResourcePools().put(person.getSkill(), myResourcePool);\n }\n\n myResourcePool.addPerson(person);\n }\n }", "title": "" }, { "docid": "e0ca85627e068be533a5415937298d07", "score": "0.48388702", "text": "private static void mating() {\n\t\tint getRand = 0;\n\t\tint parentA = 0;\n\t\tint parentB = 0;\n\t\tint newIndex1 = 0;\n\t\tint newIndex2 = 0;\n\t\tChromosome newChromo1 = null;\n\t\tChromosome newChromo2 = null;\n\n\t\tfor (int i = 0; i < OFFSPRING_PER_GENERATION; i++) {\n\t\t\tparentA = chooseParent();\n\t\t\t// Test probability of mating.\n\t\t\tgetRand = getRandomNumber(0, 100);\n\t\t\tif (getRand <= MATING_PROBABILITY * 100) {\n\t\t\t\tparentB = chooseParent(parentA);\n\t\t\t\tnewChromo1 = new Chromosome();\n\t\t\t\tnewChromo2 = new Chromosome();\n\t\t\t\tpopulation.add(newChromo1);\n\t\t\t\tnewIndex1 = population.indexOf(newChromo1);\n\t\t\t\tpopulation.add(newChromo2);\n\t\t\t\tnewIndex2 = population.indexOf(newChromo2);\n\n\t\t\t\t// Choose either, or both of these:\n\t\t\t\tpartiallyMappedCrossover(parentA, parentB, newIndex1, newIndex2);\n\t\t\t\t// positionBasedCrossover(parentA, parentB, newIndex1, newIndex2);\n\n\t\t\t\tif (childCount - 1 == nextMutation) {\n\t\t\t\t\texchangeMutation(newIndex1, 1);\n\t\t\t\t} else if (childCount == nextMutation) {\n\t\t\t\t\texchangeMutation(newIndex2, 1);\n\t\t\t\t}\n\n\t\t\t\tpopulation.get(newIndex1).computeConflicts();\n\t\t\t\tpopulation.get(newIndex2).computeConflicts();\n\n\t\t\t\tchildCount += 2;\n\n\t\t\t\t// Schedule next mutation.\n\t\t\t\tif (childCount % (int) Math.round(1.0 / MUTATION_RATE) == 0) {\n\t\t\t\t\tnextMutation = childCount + getRandomNumber(0, (int) Math.round(1.0 / MUTATION_RATE));\n\t\t\t\t}\n\t\t\t}\n\t\t} // i\n\t\treturn;\n\t}", "title": "" }, { "docid": "89509bde99ed99ae0d6ca69566da3719", "score": "0.48366776", "text": "public void run() {\n String[] instruments = getInstrumentIds();\n String[] parties = getPartyIds();\n String[] venues = getVenueIds();\n //TradeMapStore tms = new TradeMapStore();\n\n\n while(true) {\n Trade trade = new Trade();\n trade.setTradeId(UUID.randomUUID().toString());\n logger.info(\"Generating Trade with Id \"+trade.getTradeId());\n trade.setAltTradeIds(new HashMap<String, String>());\n trade.setExecutionVenueDimId(getVenue(venues));\n trade.setTradeTransactionType(TradeTransactionTypeEnum.NEW);\n trade.setSecondaryTradeTypeEnum(TradeTypeEnum.WAP_TRADE);\n trade.setCurrencyPair(CurrencyPairEnum.EURUSD);\n trade.setInstrumentDimId(getInstrument(instruments));\n trade.setCounterPartyDimId(getCounterParty(parties));\n trade.setMarketId(getVenue(venues));\n trade.setOriginalTradeDate(new DateTime(new Date()));\n trade.setPrice(getPrice());\n trade.setQuantity(getSize());\n HashMap<String, Party> partyHashMap = new HashMap<String, Party>();\n trade.setParties(partyHashMap);\n trade.setTradeType(TradeTypeEnum.REGULAR_TRADE);\n logger.info(\"Inserting Trade: \"+trade.toJSON());\n trades.put(trade.getTradeId(),trade);\n\n logger.info(\"TradeLoader Having a snooze\");\n try {\n Thread.sleep(current().nextInt(10, 100));\n }\n catch(InterruptedException e){\n logger.error(\"Error while sleeping\");\n }\n }\n\n }", "title": "" }, { "docid": "9f03633cdaae2d87bac92fc9e0108389", "score": "0.48358417", "text": "public static void generatePopulation() {\n population = setupArray(POP_SIZE, NUM_RULES, GENE_SIZE, COND_LEN);\n\n for (Individual individual : population) {\n for (int i = 0; i < individual.getGene().length; i++) {\n individual.gene[i] = bits.get(new Random().nextInt(2));\n }\n individual.generateRulebase();\n }\n }", "title": "" }, { "docid": "1c9ac2f390cdb471c74489c4da547e97", "score": "0.48239115", "text": "public void reproduce(int generation, IPopulation pop, List<ISpecies> sorted_species) {\n\t\tfor(ISpecies specie : sorted_species){\r\n\r\n\t\t\tList<IOrganism> organisms = specie.getOrganisms();\r\n\r\n\t\t\t// outside the species\r\n\t\t\tint orgnum = 0;\r\n\r\n\t\t\tIOrganism mom = null;\r\n\t\t\tIOrganism baby = null;\r\n\t\t\tIGenome new_genome = null;\r\n\t\t\tIOrganism _organism = null;\r\n\t\t\tIOrganism _dad = null;\r\n\r\n\t\t\tif (specie.getExpectedOffspring() > 0 && organisms.size() == 0)\r\n\t\t\t\treturn;\r\n\r\n\t\t\t// elements for this species\r\n\t\t\tint poolsize = organisms.size() - 1;\r\n\r\n\t\t\t// the champion of the 'this' species is the first element of the species;\r\n\t\t\tIOrganism thechamp = organisms.get(0);\r\n\t\t\tboolean champ_done = false; // Flag the preservation of the champion\r\n\r\n\t\t\t// Create the designated number of offspring for the Species one at a time.\r\n\t\t\tfor (int count = 0; count < specie.getExpectedOffspring(); count++) {\r\n\r\n\t\t\t\t// If we have a super_champ (Population champion), finish off some special clones.\r\n\t\t\t\tif (thechamp.getSuperChampOffspring() > 0) {\r\n\r\n\t\t\t\t\t// save in mom current champ;\r\n\t\t\t\t\tmom = thechamp;\r\n\t\t\t\t\t// create a new genome from this copy\r\n\t\t\t\t\tnew_genome = mom.getGenome().duplicate(count);\r\n\t\t\t\t\tif ((thechamp.getSuperChampOffspring()) > 1) {\r\n\t\t\t\t\t\tif (RandomUtils.randomDouble() < .8 || evolutionParameters.getDoubleParameter(MUTATE_ADD_LINK_PROB) == 0.0)\r\n\t\t\t\t\t\t\tevolutionStrategy.getMutationStrategy().mutateLinkWeight(new_genome, evolutionParameters.getDoubleParameter(WEIGHT_MUT_POWER), 1.0, MutationType.GAUSSIAN);\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t// Sometimes we add a link to a superchamp\r\n\t\t\t\t\t\t\tnew_genome.generatePhenotype(generation);\r\n\t\t\t\t\t\t\tevolutionStrategy.getMutationStrategy().mutateAddLink(new_genome,pop);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbaby = FeatFactory.newOrganism(0.0, new_genome, generation);\r\n\t\t\t\t\tthechamp.incrementSuperChampOffspring();\r\n\t\t\t\t} // end population champ\r\n\r\n\t\t\t\t// If we have a Species champion, just clone it\r\n\t\t\t\telse if ((!champ_done) && (specie.getExpectedOffspring() > 5)) {\r\n\t\t\t\t\tmom = thechamp; // Mom is the champ\r\n\t\t\t\t\tnew_genome = mom.getGenome().duplicate(count);\r\n\t\t\t\t\tbaby = FeatFactory.newOrganism(0.0, new_genome, generation); // Baby is\r\n\t\t\t\t\t// just like mommy\r\n\t\t\t\t\tchamp_done = true;\r\n\r\n\t\t\t\t} else if (RandomUtils.randomDouble() < evolutionParameters.getDoubleParameter(MUTATE_ONLY_PROB) || poolsize == 1) {\r\n\r\n\t\t\t\t\t// Choose the random parent\r\n\t\t\t\t\torgnum = RandomUtils.randomInt(0, poolsize);\r\n\t\t\t\t\t_organism = organisms.get(orgnum);\r\n\t\t\t\t\tmom = _organism;\r\n\t\t\t\t\tnew_genome = mom.getGenome().duplicate(count);\r\n\r\n\t\t\t\t\t// Do the mutation depending on probabilities of various mutations\r\n\t\t\t\t\tevolutionStrategy.getMutationStrategy().mutate(new_genome,pop,generation);\r\n\r\n\t\t\t\t\tbaby = FeatFactory.newOrganism(0.0, new_genome, generation);\r\n\t\t\t\t}\r\n\t\t\t\t// Otherwise we should mate\r\n\t\t\t\telse {\r\n\t\t\t\t\t// Choose the random mom\r\n\t\t\t\t\torgnum = RandomUtils.randomInt(0, poolsize);\r\n\t\t\t\t\t_organism = organisms.get(orgnum);\r\n\r\n\t\t\t\t\t// save in mom\r\n\t\t\t\t\tmom = _organism;\r\n\t\t\t\t\t// Choose random dad...\r\n\t\t\t\t\t// Mate within Species\r\n\t\t\t\t\tif (RandomUtils.randomDouble() > evolutionParameters.getDoubleParameter(INTERSPECIES_MATE_RATE)) {\r\n\t\t\t\t\t\torgnum = RandomUtils.randomInt(0, poolsize);\r\n\t\t\t\t\t\t_organism = organisms.get(orgnum);\r\n\t\t\t\t\t\t_dad = _organism;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// Mate outside Species\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\t// save current species\r\n\t\t\t\t\t\tISpecies randspecies = specie;\r\n\t\t\t\t\t\t// Select a random species\r\n\t\t\t\t\t\tint giveup = 0;\r\n\t\t\t\t\t\t// Give up if you can't find a different Species\r\n\t\t\t\t\t\twhile ((randspecies == specie) && (giveup < 5)) {\r\n\r\n\t\t\t\t\t\t\t// Choose a random species tending towards better species\r\n\t\t\t\t\t\t\tdouble randmult = Math.min(1.0, RandomUtils.randomGaussian() / 4);\r\n\r\n\t\t\t\t\t\t\t// This tends to select better species\r\n\t\t\t\t\t\t\tint sp_ext = Math.max(0, (int) Math.floor((randmult * (sorted_species.size() - 1.0)) + 0.5));\r\n\t\t\t\t\t\t\trandspecies = sorted_species.get(sp_ext);\r\n\t\t\t\t\t\t\t++giveup;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t_dad = randspecies.getOrganisms().get(0);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tnew_genome = evolutionStrategy.getCrossoverStrategy().performCrossover(mom,_dad,count);\r\n\r\n\t\t\t\t\t// Determine whether to mutate the baby's Genome\r\n\t\t\t\t\t// This is done randomly or if the mom and dad are the same organism\r\n\t\t\t\t\tif (RandomUtils.randomDouble() > evolutionParameters.getDoubleParameter(MATE_ONLY_PROB) || \r\n\t\t\t\t\t\t\t_dad.getGenome().getId() == mom.getGenome().getId() || \r\n\t\t\t\t\t\t\t_dad.getGenome().compatibility(mom.getGenome()) == 0.0) {\r\n\r\n\t\t\t\t\t\tevolutionStrategy.getMutationStrategy().mutate(new_genome,pop,generation);\r\n\t\t\t\t\t\tbaby = FeatFactory.newOrganism(0.0, new_genome, generation);\r\n\t\t\t\t\t} \r\n\t\t\t\t\t// end block of prob\r\n\t\t\t\t\t// Determine whether to mutate the baby's Genome\r\n\t\t\t\t\t// This is done randomly or if the mom and dad are the same organism\r\n\r\n\t\t\t\t\t// Create the baby without mutating first\r\n\t\t\t\t\telse \r\n\t\t\t\t\t\tbaby = FeatFactory.newOrganism(0.0, new_genome, generation);\r\n\t\t\t\t}\r\n\t\t\t\tevolutionStrategy.getSpeciationStrategy().addOrganismToSpecies(pop, baby);\r\n\t\t\t} // end offspring cycle\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "dbab13bfb4485ecd6576aca9989f3a78", "score": "0.4813121", "text": "public static Population evolvePopulation(Population pop) {\n Population newPopulation = new Population(pop.populationSize(), false);\n\n // Keep our best individual if elitism is enabled\n int elitismOffset = 0;\n if (elitism) {\n newPopulation.saveTour(0, pop.getFittest());\n elitismOffset = 1;\n }\n\n // Crossover population\n // Loop over the new population's size and create individuals from\n // Current population\n for (int i = elitismOffset; i < newPopulation.populationSize(); i++) {\n // Select parents\n // Tour parent1 = tournamentSelection(pop);\n //Tour parent2 = tournamentSelection(pop);\n\n\n\n\n Tour[] temp_a = roullet( newPopulation);\n if( temp_a == null )\n {\n System.out.println(\"no a\");\n //r//eturn temp;\n }\n // Tour parent1 = tournamentSelection(pop);\n //Tour parent2 = tournamentSelection(pop);\n Tour parent1 = temp_a[0];\n Tour parent2 = temp_a[1];\n\n\n\n\n\n\n\n\n // Crossover parents\n Tour child = crossover(parent1, parent2);\n // Add child to new population\n newPopulation.saveTour(i, child);\n }\n\n // Mutate the new population a bit to add some new genetic material\n for (int i = elitismOffset; i < newPopulation.populationSize(); i++) {\n mutate(newPopulation.getTour(i));\n }\n\n return newPopulation;\n }", "title": "" }, { "docid": "4841ec18fb2e6700fe6396d0083f0bc2", "score": "0.48110944", "text": "public static void runGeneration(){\r\n adjust = generationSize*generation;\r\n //Send out the ants to their start points\r\n for (int i = generationSize -1; i>0; i--) {\r\n colony.get(i + adjust).startPositions(sets);\r\n }\r\n //initialises the latch with a counter for each ant in a generation\r\n latch = new CountDownLatch(generationSize);\r\n //move the ants out until they have found a valid solution or seen all nodes\r\n //create a new thread for each ant in the generation\r\n for (int i = 0; i<generationSize;i++) {\r\n Generation temp = new Generation(i);\r\n //starts the new thread\r\n temp.start();\r\n }\r\n try {\r\n //wait until all the ants in a generation have completed their paths\r\n latch.await();\r\n }\r\n catch(Exception e)\r\n {\r\n System.out.println(\"error in latch.await\");\r\n }\r\n\r\n //Create the pheremone trail\r\n for (int i = 0; i<generationSize;i++) {\r\n Ant a = colony.get(i + adjust);\r\n for (Integer k: a.Path) {\r\n pheremones.set(k, pheremones.get(k) + 1);\r\n visited.set(k, visited.get(k) + 1);\r\n }\r\n }\r\n\r\n generation++;\r\n //degrade the pheremone trail\r\n if(generation > 1){\r\n for (int i = 0; i < pheremones.size(); i++){\r\n pheremones.set(i, pheremones.get(i) - degrade);\r\n if (pheremones.get(i) < 0) pheremones.set(i, 0);\r\n }\r\n }\r\n\r\n }", "title": "" }, { "docid": "b5cda21e2b2bf25ac3207b019ab087d2", "score": "0.4802163", "text": "@GetMapping(\"/splitBatchJob\")\n public String splitBatchJob() {\n try {\n JobParameters parameters = new JobParametersBuilder()\n .addString(\"JobId\", \"1\") //mengirim parameter ke job\n .toJobParameters();\n jobLauncher.run(splitImportDataPesertaFromCsv, parameters);\n\n } catch (Exception ex) {\n logger.error(\"ERROR LAUNCH importDataPesertaFromCsvJob : \", ex.getMessage(), ex);\n return \"ERROR LAUNCH importDataPesertaFromCsvJob : \" + ex.getMessage();\n }\n return \"JOB DONE !!\";\n }", "title": "" }, { "docid": "825a0201b21220d0a960fa18f8b56eaa", "score": "0.47952566", "text": "@Override\n\tpublic void execute()\n\t{\n\t\tSortedSet<String> active_agent_ids = sim.getactiveParticipantIdSet(\"group\");\n\t\tIterator<String> iter = active_agent_ids.iterator();\n\t\tString name;\n\t\tupdateLoanPlayers(active_agent_ids, iter);\n\n\t\tif (en.getRoundsPassed() == rounds)\n\t\t{\n\t\t\tdata.add(\n\t\t\t\t\t\t\t\" ==== Cycle \" + sim.getTime() + \" Begins (\" + en.getRoundsPassed() + ':' + en.getCurrentTurnType() + \") ==== \");\n\t\t\tdata.add(\n\t\t\t\t\t\t\t\"************************************************************************************************************ \");\n\t\t\tfor (Map.Entry<String, PoliticalGroup> entry : p_players.entrySet())\n\t\t\t{\n\t\t\t\twhile (iter.hasNext())\n\t\t\t\t{\n\t\t\t\t\tString id = iter.next();\n\t\t\t\t\tif (p_players.get(id) != null)\n\t\t\t\t\t{\n\t\t\t\t\t\tname = p_players.get(id).getDataModel().getName();\n\t\t\t\t\t\tdata.add(\n\t\t\t\t\t\t\t\t\t\t\"===============================\" + name + \"===============================\");\n\t\t\t\t\t\tdata.add(\n\t\t\t\t\t\t\t\t\t\t\"Group population: \" + p_players.get(id).getDataModel().getMemberList().size());\n\t\t\t\t\t\tdata.add(\n\t\t\t\t\t\t\t\t\t\t\"Current reserve: \" + p_players.get(id).getDataModel().getCurrentReservedFood());\n\t\t\t\t\t\tdata.add(\"Greediness: \" + PoliticalGroup.getGreediness(p_players.get(\n\t\t\t\t\t\t\t\t\t\tid).getDataModel()));\n\t\t\t\t\t\tdata.add(\"++++++LOAN HISTORY OF THIS GROUP++++++\");\n\n\t\t\t\t\t\t//Display debtors / loans given\n\t\t\t\t\t\tdata.add(\"Debtors History-------------------------------\");\n\t\t\t\t\t\tMap<String, List<Tuple<Double, Double>>> loansGiven = PoliticalGroup.getLoansGiven(p_players.get(\n\t\t\t\t\t\t\t\t\t\tid).getDataModel());\n\t\t\t\t\t\tif (loansGiven != null)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tSet<String> debtors = loansGiven.keySet();\n\t\t\t\t\t\t\tfor (String deb : debtors)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tString gname;\n\t\t\t\t\t\t\t\tif (PublicEnvironmentConnection.getInstance().getGroupById(deb) == null)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tgname = \"A DEAD GROUP\";\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tgname = PublicEnvironmentConnection.getInstance().getGroupById(\n\t\t\t\t\t\t\t\t\t\t\t\t\tdeb).getName();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tdata.add(\"---->Debtor: \" + gname + \" has been given: \" + loansGiven.get(\n\t\t\t\t\t\t\t\t\t\t\t\tdeb).size() + \" loans from this group!\");\n\t\t\t\t\t\t\t\tdouble amountBorrowed = 0;\n\t\t\t\t\t\t\t\tfor (Tuple<Double, Double> t : loansGiven.get(deb))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tamountBorrowed += t.getKey() * (1 + t.getValue());\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tdata.add(\n\t\t\t\t\t\t\t\t\t\t\t\t\" This debtor has borrowed \" + amountBorrowed + \" units of food\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tdata.add(\"No loans given at the moment!\");\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tdata.add(\"Creditors History-------------------------------\");\n\t\t\t\t\t\t//Display debtors / loans given\n\t\t\t\t\t\tMap<String, List<Tuple<Double, Double>>> loansTaken = PoliticalGroup.getLoansTaken(p_players.get(\n\t\t\t\t\t\t\t\t\t\tid).getDataModel());\n\t\t\t\t\t\tif (loansTaken != null)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tSet<String> creditors = loansTaken.keySet();\n\t\t\t\t\t\t\tfor (String cred : creditors)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tString gname;\n\t\t\t\t\t\t\t\tif (PublicEnvironmentConnection.getInstance().getGroupById(cred) == null)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tgname = \"A DEAD GROUP\";\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tgname = PublicEnvironmentConnection.getInstance().getGroupById(\n\t\t\t\t\t\t\t\t\t\t\t\t\tcred).getName();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tdata.add(\"---->Creditor: \" + gname + \" has given this group: \" + loansTaken.get(\n\t\t\t\t\t\t\t\t\t\t\t\tcred).size() + \" loans!\");\n\t\t\t\t\t\t\t\tdouble amountBorrowed = 0;\n\t\t\t\t\t\t\t\tfor (Tuple<Double, Double> t : loansTaken.get(cred))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tamountBorrowed += t.getKey() * (1 + t.getValue());\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tdata.add(\n\t\t\t\t\t\t\t\t\t\t\t\t\" This group has been given \" + amountBorrowed + \" units of food from this creditor\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tdata.add(\"No loans taken at the moment!\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tdata.add(\" \");\n\t\t\t\titer = active_agent_ids.iterator();\n\t\t\t}\n\t\t\trounds++;\n\t\t}\n\t}", "title": "" }, { "docid": "0013720d18b12f4e01aacb62d7b95a87", "score": "0.47952193", "text": "@Override\r\n public void generateTasks() {\r\n int tasks = Integer.parseInt(this.getProperty(\"numTask\", \"1000\"));\r\n setNumOfTasks(tasks);\r\n //TODO:fixed port here !!!! need to change!!!\r\n serverPort = Integer.parseInt(this.getProperty(\"reqServerPort\", \"5560\")); \r\n PROC_MAX = Integer.parseInt(this.getProperty(\"reqServerMaxConcurrentClients\",\"10\"));\r\n location = this.getProperty(\"location\", \"rutgers\");\r\n energyplusPropertyFile = this.getProperty(\"energyplusTemplate\", \"energyplus.property\");\r\n \r\n winnerTakeAll = Boolean.parseBoolean(this.getProperty(\"winnerTakeAll\",\"true\"));\r\n jobDistributionMap = new HashMap<Integer,Integer>();\r\n copyJobDistributionMap = new HashMap<Integer,Integer>();\r\n //System.out.println(\"energyplusPropertyFile:\"+energyplusPropertyFile);\r\n \r\n initInfoSystem();\r\n initDistributionSystem();\r\n startFedServer();\r\n }", "title": "" }, { "docid": "dfcbd7a73a5c3479d9ada0f93a91f43c", "score": "0.4789489", "text": "private void PrepareAll(TweetPreprocessor tweetPreprocessor, String Datasetpath) throws IOException\n\t{\n\t\tCSVParser parser = new CSVParser(new FileReader(Datasetpath),CSVFormat.EXCEL.withFirstRecordAsHeader());\n\n\t\tExecutorService threadpool = Executors.newFixedThreadPool(Runtime.getRuntime().availableProcessors());\n\t\tfinal ConcurrentHashMap<String, String> txtHashMap = new ConcurrentHashMap<>();\n\t\tfinal ConcurrentHashMap<String, String> featHashMap = new ConcurrentHashMap<>();\n\t\tfinal ConcurrentHashMap<String, String> compHashMap = new ConcurrentHashMap<>();\n\t\tfinal ConcurrentHashMap<String, String> lexHashMap = new ConcurrentHashMap<>();\n\n\t\tint count = 0;\n\t\tfor (CSVRecord record : parser.getRecords())\n\t\t{\n\t\t\tSystem.out.println(\"Adding Task = \" + count);\n\t\t\tint finalCount = count;\n\n\t\t\tif (count == 17000)\n\t\t\t\tbreak;\n\t\t\tthreadpool.execute(() ->\n\t\t\t{\n\t\t\t\tSystem.out.println(\"Current Executing task : \" + finalCount);\n\t\t\t\tInstance tweet = new Instance(record.get(\"event\"),record.get(\"target\"),null,null);\n\t\t\t\tInstance[] preparedinstances = tweetPreprocessor.startProc(tweet);\n\n\t\t\t\ttxtHashMap.put(preparedinstances[0].getData().toString(), record.get(\"target\"));\n\t\t\t\tfeatHashMap.put(preparedinstances[1].getData().toString(), record.get(\"target\"));\n\t\t\t\tcompHashMap.put(preparedinstances[2].getData().toString(), record.get(\"target\"));\n\t\t\t\tlexHashMap.put(preparedinstances[3].getData().toString(), record.get(\"target\"));\n\t\t\t});\n\t\t\tcount++;\n\t\t}\n\t\t//Initiates an orderly shutdown in which previously submitted tasks are executed,\n //but no new tasks will be accepted\n\t\tthreadpool.shutdown();\n\n\t\twhile (!threadpool.isTerminated());\n\t\tSystem.out.println(\"ThreadPool is shutdown ..\");\n\n\t\ttry (BufferedWriter writer1 = new BufferedWriter(new FileWriter(Dataset + \"data_text.csv\"));\n\t\t\t BufferedWriter writer2 = new BufferedWriter(new FileWriter(Dataset + \"data_feature.csv\"));\n\t\t\t BufferedWriter writer3 = new BufferedWriter(new FileWriter(Dataset + \"data_complex.csv\"));\n\t\t\t BufferedWriter writer4 = new BufferedWriter(new FileWriter(Dataset + \"data_lexicon.csv\")))\n\t\t{\n\t\t\tfor (String tweet : txtHashMap.keySet())\n\t\t\t\twriter1.write(txtHashMap.get(tweet) + \",\" + tweet + \"\\n\");\n\t\t\tfor (String tweet : compHashMap.keySet())\n\t\t\t\twriter3.write(compHashMap.get(tweet) + \",\" + tweet + \"\\n\");\n\t\t\tfor (String tweet : lexHashMap.keySet())\n\t\t\t\twriter4.write(lexHashMap.get(tweet) + \",\" + tweet + \"\\n\");\n\t\t\tfor (String tweet : featHashMap.keySet())\n\t\t\t\twriter2.write(featHashMap.get(tweet) + \",\" + tweet + \"\\n\");\n\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "b4efc6d55838b69b86b435a73bfa238c", "score": "0.47817236", "text": "public static void tournamentSelect(Individual[] individulas) {\n int length = individulas.length;\n int p1, p2;\n Individual[] array = setupArray(length, NUM_RULES, GENE_SIZE, COND_LEN);\n for (int i = 0; i < individulas.length; i++) {\n p1 = new Random().nextInt(length);\n p2 = new Random().nextInt(length);\n\n if (individulas[p1].getFitness() >= individulas[p2].getFitness()) {\n array[i] = new Individual(individulas[p1]);\n } else {\n array[i] = new Individual(individulas[p2]);\n }\n }\n\n matingPool = Arrays.copyOf(array, length);\n }", "title": "" }, { "docid": "7a7cce5cac10e2f636c29fb8e8bdc231", "score": "0.47681826", "text": "public population(int size, boolean initial) {\n tours = new tour[size];\n for (int i = 0; i < tours.length; i++) {\n\t tour newTour = new tour();\n newTour.path();\n savetour(i, newTour);\n }\n }", "title": "" }, { "docid": "872e1631019ca2adad0b5339509f6cc0", "score": "0.476534", "text": "public static void main(String[] args) {\n Trip diving = new Trip(\"ScubaDiving\", new Money(2000.00, Currency.GBP),\n new HashSet<Gear>(Arrays.asList(Gear.BCD, Gear.DIVING_SUITS)),\n LocalDate.of(2021, 5, 3),\n new HashSet<Qualification>(Arrays.asList(Qualification.PADI_ADVANCED_OPEN_WATER)));\n\n // trip 2 - freediving trip\n // price per person\n Trip freeDiving = new Trip(\"FreeDiving\",\n new Money(500.00, Currency.GBP),\n new HashSet<Gear>(Arrays.asList(Gear.FREEDIVING_FINS, Gear.FREEDIVING_WET_SUITS, Gear.FREEDIVING_MASK)),\n LocalDate.of(2021, 8, 18),\n new HashSet<Qualification>(Arrays.asList(Qualification.AIDA_2)));\n\n // Lynn person detail\n Person lynn = new Person(\"Lynn\",\n new HashSet<Gear>(Arrays.asList(Gear.BCD, Gear.DIVING_SUITS)),\n new Money(2000.00, Currency.GBP),\n new HashSet<LocalDate>(Arrays.asList(LocalDate.of(2021, 5, 1), LocalDate.of(2021, 5, 2),\n LocalDate.of(2021, 5, 3))),\n new HashSet<Qualification>(Arrays.asList(Qualification.PADI_ADVANCED_OPEN_WATER, Qualification.PADI_OPEN_WATER)));\n\n // Tao person detail\n Person tao = new Person(\"TAO\",\n new HashSet<Gear>(Arrays.asList(Gear.BCD, Gear.DIVING_SUITS, Gear.FREEDIVING_MASK, Gear.FREEDIVING_WET_SUITS, Gear.FREEDIVING_FINS)),\n new Money(10000.00, Currency.GBP),\n new HashSet<LocalDate>(Arrays.asList(LocalDate.of(2021, 8, 18), LocalDate.of(2021, 5, 2),\n LocalDate.of(2021, 5, 3))),\n new HashSet<Qualification>(Arrays.asList(Qualification.PADI_ADVANCED_OPEN_WATER, Qualification.PADI_OPEN_WATER, Qualification.AIDA_2, Qualification.AIDA_3)));\n\n HashSet<Person> persons = new HashSet<>();\n HashSet<Trip> trips = new HashSet<>();\n\n persons.add(lynn);\n persons.add(tao);\n trips.add(diving);\n trips.add(freeDiving);\n\n// findTrip(persons, trips);\n\n Trip tripToGo = tripWithMaxPersons(persons, trips);\n\n System.out.println(\"Trip to go: \" + tripToGo.getName());\n System.out.println(\"=================================\");\n\n\n HashMap<Trip, HashSet<Person>> tripsAndPersons = findWhoReady(persons, trips);\n for(Trip trip: tripsAndPersons.keySet()){\n System.out.println(\"Trip \" + trip.getName() + \" ready: \" );\n HashSet<Person> personPerTrip = tripsAndPersons.get(trip);\n for(Person person: personPerTrip) {\n System.out.println(person.getName());\n }\n System.out.println(\"-------------------------------\");\n\n }\n\n\n // currency EURO\n // exchange rate?\n\n\n\n }", "title": "" }, { "docid": "9b9ffc59a1b6f2f06c4ef056a1c3d324", "score": "0.47634497", "text": "@Override\n protected void compute() {\n\n if(this.workLoad > 16){\n System.out.println(\"Splitting Workload :: \"+this.workLoad);\n List<MyRecursiveAction> subTasks = new ArrayList<>();\n subTasks.addAll(createSubTasks());\n\n subTasks.forEach(tasks -> {\n tasks.fork();\n });\n }else{\n System.out.println(\"Doing Workload myself :: \"+this.workLoad);\n }\n }", "title": "" }, { "docid": "362ad8dc9c685792d8f0440a74f9eca9", "score": "0.47523278", "text": "public static void mutation(Individual[] individuals) {\n for (int i = 0; i < POP_SIZE; i++) {\n for (int j = 0; j < GENE_SIZE; j++) {\n double randomNum = Math.random();\n if (randomNum < MUTATION_RATE) {\n randomNum = Math.random();\n ArrayList<String> bitsList = (ArrayList<String>) bits.clone();\n for (int g = 0; g < bitsList.size(); g++) {\n if (individuals[i].gene[j].equals(bitsList.get(g))) {\n String bit = bitsList.get(g);\n bitsList.remove(g);\n int index;\n if (randomNum < 0.5) {\n index = 0;\n } else {\n index = 1;\n }\n individuals[i].gene[j] = bitsList.get(new Random().nextInt(2));\n bitsList.add(bit);\n }\n }\n }\n }\n individuals[i].generateRulebase();\n }\n matingPool = Arrays.copyOf(individuals, individuals.length);\n }", "title": "" }, { "docid": "447eb8cd6e4e08e9fd98ccafedbeb961", "score": "0.47478208", "text": "public void generateIndividual() {\n // Loop through all our destination cities and add them to our tour\n for (int cityIndex = 0; cityIndex < TourManager.numberOfCities(); cityIndex++) {\n setCity(cityIndex, TourManager.getCity(cityIndex));\n }\n // Randomly reorder the tour\n Collections.shuffle(tour);\n }", "title": "" }, { "docid": "003591e5da249144876931a69c862e9a", "score": "0.47438106", "text": "public void run() {\r\n for(int i = group; i < 64; i += 4) {\r\n if(!m_teams[i].isOut()) {\r\n setSurvivingTeam(m_teams[i]);\r\n return;\r\n }\r\n }\r\n\r\n m_botAction.sendArenaMessage(\"No one won for Base \" + (group + 1));\r\n }", "title": "" }, { "docid": "7991bf7d8f4ef5e1289acbeba7a06296", "score": "0.4735647", "text": "private void creationLooper(String meal_id, String[] r_ids) throws InterruptedException {\n int count = 1;\n for(String recipe : r_ids) {\n Thread.sleep(500);\n createMeal(meal_id,recipe,count);\n count++;\n }\n }", "title": "" }, { "docid": "6d3b2a1a39cd8be9b2e3200e61a8ef18", "score": "0.47194213", "text": "public static Map<Id,List<Tuple<Id,AgentId2PlannedDepartureTimeMapData>>> getAgentId2PlannedPTDepartureTimeMap(Population pop, Set<Id<Person>> agentIds){\n\n//\t\tAgentId2PlannedDepartureTimeMap.log.setLevel(AgentId2PlannedDepartureTimeMap.logLevel);\n\t\tMap<Id, List<Tuple<Id, AgentId2PlannedDepartureTimeMapData>>> agentId2PlannedDepartureMap = new TreeMap<Id, List<Tuple<Id, AgentId2PlannedDepartureTimeMapData>>>();\n\n\t\tfor (Person person : pop.getPersons().values()) {\n\t\t\tif(agentIds.contains(person.getId())){\n\n\t\t\t\t// person in set, so do something\n\n\t\t\t\tList<Tuple<Id, AgentId2PlannedDepartureTimeMapData>> plannedDepartureList = new ArrayList<Tuple<Id, AgentId2PlannedDepartureTimeMapData>>();\n\t\t\t\tagentId2PlannedDepartureMap.put(person.getId(), plannedDepartureList);\n\n\t\t\t\tPlan plan = person.getSelectedPlan();\n\t\t\t\tdouble runningTime = 0.0;\n\t\t\t\tboolean firstActDone = false;\n\t\t\t\tfor (PlanElement pE : plan.getPlanElements()) {\n\n\t\t\t\t\tif(pE instanceof Activity){\n\t\t\t\t\t\tActivity act = (Activity) pE;\n\n\t\t\t\t\t\tif(!firstActDone){\n\t\t\t\t\t\t\trunningTime = act.getEndTime().seconds();\n\t\t\t\t\t\t\tfirstActDone = true;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif(act.getMaximumDuration().isUndefined()){\n\t\t\t\t\t\t\t\trunningTime += act.getMaximumDuration().seconds();\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\trunningTime = act.getEndTime().seconds();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tif(pE instanceof Leg){\n\n\t\t\t\t\t\tLeg leg = (Leg) pE;\n\n\t\t\t\t\t\tif(leg.getMode() == TransportMode.pt){\n\t\t\t\t\t\t\t// it's the start of a new pt leg, report it\n\t\t\t\t\t\t\tif (leg.getRoute() instanceof TransitPassengerRoute){\n\t\t\t\t\t\t\t\tTransitPassengerRoute route = (TransitPassengerRoute) leg.getRoute();\n\t\t\t\t\t\t\t\tplannedDepartureList.add(new Tuple<Id, AgentId2PlannedDepartureTimeMapData>(route.getAccessStopId(), new AgentId2PlannedDepartureTimeMapData(route.getAccessStopId(), runningTime, route.getLineId(), route.getRouteId())));\n\t\t\t\t\t\t\t} else if (leg.getRoute() != null) {\n\t\t\t\t\t\t\t\tlog.warn(\"unknown route description found - only know to handle ExperimentalTransitRoute, got \" + leg.getRoute().getClass().getCanonicalName());\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// add the legs travel time\n\t\t\t\t\t\tif(leg.getTravelTime().isUndefined()){\n\t\t\t\t\t\t\tlog.debug(\"Undefined travel time found\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\trunningTime += leg.getTravelTime().seconds();\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn agentId2PlannedDepartureMap;\n\t}", "title": "" }, { "docid": "2b42d2f40e5803d9374fb73010c8ad93", "score": "0.4719259", "text": "public Population InitSinglePopulation\n (int PopulationID, int NumberOfAgents, double MixedStrategy){\n \n MultiPopulation TempPopulation = new MultiPopulation();\n\n TempPopulation.setPopulationID(PopulationID);\n TempPopulation.setInitMixedStrategy(MixedStrategy);\n\n for(int j = 0; j < NumberOfAgents; j++){\n\n double TempDraw = rand.nextDouble();\n boolean TempAction = (TempDraw < MixedStrategy) ? true : false;\n MultiPopulationAgent TempAgentM = \n new MultiPopulationAgent(j,PopulationID,TempAction);\n \n TempPopulation.AgentList.add(TempAgentM);\n \n }\n \n TempPopulation.setActionList();\n return TempPopulation;\n }", "title": "" }, { "docid": "48362593f506921efb8a068b587cd66e", "score": "0.4716711", "text": "private void processData()\n\t{\n\t\tfor(String people :guestList)\n\t\t{\n\t\t\t\n\t\t\tString[] guestInfo = people.split(\",\");\n\t\t\tif(guestInfo[inviterIndex].equals(\"Adam\"))\n\t\t\t{\n\t\t\t\t//Adam invited friends list\n\t\t\t\tGuest guest = new Guest(guestInfo[guestIndex],Integer.valueOf(guestInfo[candyBroughtIndex]),Integer.valueOf(guestInfo[candyConsumedIndex]));\n\t\t\t\tint result =Integer.valueOf(guestInfo[candyBroughtIndex]) - Integer.valueOf(guestInfo[candyConsumedIndex]);\n\t\t\t\tguest.setInviter(\"Adam\");\n\t\t\t\tguest.setLeftOver(result);\n\t\t\t\tboolean isInvited = (result >= 0)? true : false;\n\t\t\t\tguest.setInvited(isInvited);\n\t\t\t\tguestMapList.put(guestInfo[guestIndex], guest);\n\t\t\t}else if(!guestMapList.isEmpty())\n\t\t\t{\n\t\t\t\tif(guestMapList.containsKey(guestInfo[inviterIndex]))\n\t\t\t\t{\n\t\t\t\t\tGuest inviter = guestMapList.get(guestInfo[inviterIndex]);\n\t\t\t\t\tif(Integer.valueOf(guestInfo[candyBroughtIndex])+inviter.getLeftOver()>0)\n\t\t\t\t\t{\n\t\t\t\t\t\tGuest guest = new Guest(guestInfo[guestIndex],Integer.valueOf(guestInfo[candyBroughtIndex]),Integer.valueOf(guestInfo[candyConsumedIndex]));\n\t\t\t\t\t\tint result =inviter.getLeftOver() + Integer.valueOf(guestInfo[candyBroughtIndex]) - Integer.valueOf(guestInfo[candyConsumedIndex]);\n\t\t\t\t\t\tguest.setLeftOver(result);\n\t\t\t\t\t\tguest.setInviter(inviter.getName());\n\t\t\t\t\t\t\n\t\t\t\t\t\tboolean isInvited = (result >= 0)? true : false;\n\t\t\t\t\t\tguest.setInvited(isInvited);\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(inviter.getInviter().equals(\"Adam\")){\n\t\t\t\t\t\t//update inviter information\n\t\t\t\t\t\t\tinviter.setLeftOver(result);\n\t\t\t\t\t\t\tinviter.setInvited(isInvited);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tinviter.setNextGuest(guest);\n\t\t\t\t\t\tguestMapList.put(inviter.getName(), inviter);\n\t\t\t\t\t\t\n\t\t\t\t\t\t//add new guest to hashmap\n\t\t\t\t\t\tguestMapList.put(guestInfo[guestIndex], guest);\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}\n\t}", "title": "" }, { "docid": "62cb02e2e2e15957e69210366ed69eea", "score": "0.47097996", "text": "private void divideTo3(Habitat habitat, Pool pool) {\n\t\tboolean found=false;\r\n\t\t\r\n\t\t// from two pools of size 4 construct 3 pools with 3,3 and 2 users\r\n\t\t\r\n\t\t//pool2.addUser(pool.getListOfUsers().get(0));\r\n\t\t//pool.removeUser(pool.getListOfUsers().get(0));\r\n\t\tPoolUtilities.setPool(pool);\r\n\t\tCollections.sort(habitat.getSivs(), PoolUtilities.ComparatorGC);\r\n\t\tfor(int i=0;i<habitat.getSivs().size() && !found ;i++)\r\n\t\t{\r\n\t\t\tif((habitat.getSivs().get(i).getListOfUsers().size()>3) && habitat.getSivs().get(i) != pool)\r\n\t\t\t{\r\n\t\t\t\tfor(int j=0;j<habitat.getSivs().get(i).getListOfUsers().size() && !found;j++)\r\n\t\t\t\t{\r\n\t\t\t\t\t//int randomNum = rand.nextInt(habitat.getSivs().get(i).getListOfUsers().size());\r\n\t\t\t\t\tfor(int k=0;k<pool.getListOfUsers().size() && !found;k++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tint numU1,numU2;\r\n\t\t\t\t\t\tnumU1 = habitat.getSivs().get(i).getListOfUsers().get(j).getNumUser();\r\n\t\t\t\t\t\tnumU2 = pool.getListOfUsers().get(k).getNumUser();\r\n\t\t\t\t\t\tif(Utilisateurs.getAuthorizedUsers()[numU1][numU2]==1)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tPool pool2 = new Pool();\r\n\t\t\t\t\t\t\tpool2.addUser(habitat.getSivs().get(i).getListOfUsers().get(j));\r\n\t\t\t\t\t\t\tpool2.addUser(pool.getListOfUsers().get(k));\r\n\t\t\t\t\t\t\tif(pool2.buildRoutes())\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tpool.removeUser(pool.getListOfUsers().get(k));\r\n\t\t\t\t\t\t\t\thabitat.getSivs().get(i).removeUser(habitat.getSivs().get(i).getListOfUsers().get(j));\r\n\t\t\t\t\t\t\t\thabitat.getSivs().get(i).buildRoutes();\r\n\t\t\t\t\t\t\t\tpool.buildRoutes();\r\n\t\t\t\t\t\t\t\thabitat.addPool(pool2);\r\n\t\t\t\t\t\t\t\tfound=true;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//pool2.addUser(user);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t}", "title": "" }, { "docid": "a5336f6c5e1a372746072295d81276f9", "score": "0.47056344", "text": "private IndividualGroupList adaptativeSplitIntoGroups(List<Individual> individuals) \n {\n int individualCount = individuals.size();\n\n IndividualGroupList groups = new IndividualGroupList();\n IndividualGroup group = new IndividualGroup();\n int currentGroupSize = 8;\n \n for (int i = 0; i < individualCount; i++)\n {\n Individual individual = individuals.get(i);\n\n int individualGroupSize = getGroupSize(individual.getPositiveProbability());\n\n if (individualGroupSize != currentGroupSize || group.countIndividuals() == currentGroupSize)\n {\n groups.add(group);\n group = new IndividualGroup();\n currentGroupSize = individualGroupSize;\n }\n\n group.add(individual);\n }\n\n if (group.countIndividuals() > 0)\n groups.add(group);\n \n return groups;\n }", "title": "" }, { "docid": "050d7fa200db1162039d2ab8386b5b12", "score": "0.4704213", "text": "public void startSimulation(){\n Enumeration enumAgents = agents.elements();\n\n while (enumAgents.hasMoreElements()) {\n ProcessData data = (ProcessData) enumAgents.nextElement();\n createThreadFor(data.agent).start();\n }\n }", "title": "" }, { "docid": "e9fa4c44ebdd2f6e7420c143788c3229", "score": "0.46990827", "text": "private void createCommunalPlaces(int populationSize) {\n int nHospitals = populationSize / PopulationParameters.get().buildingDistribution.populationToHospitalsRatio;\n int nSchools = populationSize / PopulationParameters.get().buildingDistribution.populationToSchoolsRatio;\n int nShops = populationSize / PopulationParameters.get().buildingDistribution.populationToShopsRatio;\n int nOffices = populationSize / PopulationParameters.get().buildingDistribution.populationToOfficesRatio;\n int nConstructionSites = populationSize / PopulationParameters.get().buildingDistribution.populationToConstructionSitesRatio;\n int nNurseries = populationSize / PopulationParameters.get().buildingDistribution.populationToNurseriesRatio;\n int nRestaurants = populationSize / PopulationParameters.get().buildingDistribution.populationToRestaurantsRatio;\n int nCareHomes = populationSize / PopulationParameters.get().buildingDistribution.populationToCareHomesRatio;\n\n createNHospitals(nHospitals);\n createNSchools(nSchools);\n createNShops(nShops);\n createNOffices(nOffices);\n createNConstructionSites(nConstructionSites);\n createNNurseries(nNurseries);\n createNRestaurants(nRestaurants);\n createNCareHomes(nCareHomes);\n\n LOGGER.info(\"Total number of communal places = {}\", getCommunalPlaces().size());\n }", "title": "" }, { "docid": "7804b7763a945dbbcb60832bff309113", "score": "0.46960774", "text": "@Given(\"^I have multiple trips in Journeys$\")\n public void iHaveMultipleTripsInJourneys() throws Throwable {\n throw new PendingException();\n }", "title": "" }, { "docid": "a5ebf7740cea17fdbca2715266b393cc", "score": "0.46915066", "text": "private ArrayList<Chromosome> selectParentsTournament() {\n ArrayList<Chromosome> parents = new ArrayList<Chromosome>(Defines.crossoverParentCt);\n ArrayList<Chromosome> matingPool = new ArrayList<Chromosome>(Defines.crossoverParentCt);\n\n // Run tournaments to select parents - for each parent\n for (int parentIdx = 0; parentIdx < Defines.crossoverParentCt; parentIdx++) {\n\n // Run tournaments - get random contestants (run.getPaTournamentSize())\n for (int tournIdx = 0; tournIdx < Defines.tournamentSize; tournIdx++) {\n int contestantID = Defines.randNum(0, this.chromosomes.size() - 1);\n matingPool.add(this.chromosomes.get(contestantID));\n }\n Collections.sort(matingPool);\n parents.add(matingPool.get(0));\n }\n\n return parents;\n }", "title": "" }, { "docid": "f9f229d095e2667453e3580032b85ef2", "score": "0.46882436", "text": "@Override\n public void runSimulation() throws Exception {\n // Call a method that initializes the barrier\n // synchronizers and assigns them to the Beings.\n // TODO -- you fill in here.\n \n\n // Call a method that uses the common fork-join pool to run a\n // pool of threads that represent the Beings in this\n // simulation.\n // TODO -- you fill in here.\n \n }", "title": "" }, { "docid": "adc449e005aa31c0904d28f71b63b729", "score": "0.468711", "text": "@Override\n public void run() {\n if (nearMe.size() < HelperConstants.MAX_BYZANTINE_USERS + 1) {\n // If there are less nearby neighbors than required, there is no need to ask for proofs\n return;\n }\n\n for (GridUser gridUser: nearMe) {\n int targetPort = Utils.getListenerServicePortFromId(gridUser.getId());\n\n Thread t = new Thread(() -> sendRecordAndReceive(myRequest, gridUser, targetPort));\n t.start();\n ongoingProofRequests.add(t);\n }\n\n try {\n for (Thread t: ongoingProofRequests) {\n t.join();\n }\n } catch (InterruptedException e) {\n e.printStackTrace();\n for (Thread t: ongoingProofRequests) t.interrupt();\n }\n }", "title": "" }, { "docid": "dfe786d2d148c8e061b2343292c546f0", "score": "0.46811503", "text": "private void createAllGames() {\n\t\t// Create a melee game for each melee arena\n\t\tmeleeArenaManager.loadArenas();\n\t\tmeleeArenaManager.getArenas().forEach(meleeArena -> {\n\t\t\tMeleeGame game = new MeleeGame(meleeArena);\n\t\t\tmeleeGameManager.addGame(meleeArena.getName(), game, new PerMapLegacyLobby(game, PlayerProfile::restore, Melee.MELEE_CHAT_PREFIX));\n\t\t});\n\t\t\n\t\t// Create a rabbit game for each rabbit arena\n\t\trabbitArenaManager.loadArenas();\n\t\trabbitArenaManager.getArenas().forEach(rabbitArena -> {\n\t\t\tRabbitGame game = new RabbitGame(rabbitArena);\n\t\t\trabbitGameManager.addGame(rabbitArena.getName(), game, new PerMapLegacyLobby(game, PlayerProfile::restore, Melee.RABBIT_CHAT_PREFIX));\n\t\t});\n\t\t\n\t\t// Log out what games were created\n\t\tString meleeGamesList = meleeGameManager.getGamesList().stream()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t .map(game -> game.getArena().getName())\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t .collect(Collectors.joining(\", \"));\n\t\tgetLogger().info(\"Created Melee Games for arenas : \" + meleeGamesList);\n\n\t\tString rabbitGamesList = rabbitGameManager.getGamesList().stream()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t .map(game -> game.getArena().getName())\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t .collect(Collectors.joining(\", \"));\n\t\tgetLogger().info(\"Created Rabbit Games for arenas : \" + rabbitGamesList);\n\t}", "title": "" }, { "docid": "5593cb30247a6b2546ce344de69dc0e5", "score": "0.46800172", "text": "public ArrayList<Population> InitializePopulations (int NumberOfPopulations, int NumberOfAgents){\n \n ArrayList<Population> PopulationsList = new ArrayList();\n \n if(NumberOfPopulations == 1){\n \n PopulationsList.add(InitSinglePopulation(NumberOfAgents));\n \n }else{\n \n for(int i = 0; i < NumberOfPopulations; i++){ \n double temp = rand.nextDouble();\n PopulationsList.add(InitSinglePopulation(i, NumberOfAgents, temp));\n }\n \n }\n \n \n return PopulationsList;\n }", "title": "" }, { "docid": "737da8af634a8bb6b1d4b0004fbda757", "score": "0.46790436", "text": "public static void main(String[] args) {\n\t\tForkJoinPool core = ForkJoinPool.commonPool() ;\n\t\tSystem.out.println(core.getParallelism());\n\t\t\n\t\t// Paralle() on a stream\n\t\tStream stream =Stream.of(\"Shobhit\",\"Mahesh\",\"Suresh\",\"Anand\",\"Andrew\");\n\t\tStream.of(\"Shobhit\",\"Mahesh\",\"Suresh\",\"Anand\",\"Andrew\").forEach(System.out::println);\n\t\tSystem.out.println(\"------\");\n\t\tStream.of(\"Shobhit\",\"Mahesh\",\"Suresh\",\"Anand\",\"Andrew\").parallel().forEach(System.out::println);\n\t\tSystem.out.println(\"------\");\n\t\t//2 .Use ParallelStream method at a collector \n\t\tArrays.asList(\"Shobhit\",\"Mahesh\",\"Suresh\",\"Anand\",\"Andrew\").parallelStream().forEach(System.out::println);\n\t\tSystem.out.println(\"------\");\n\t\t//3.Range method\n\t\tIntStream.rangeClosed(0, 10).forEach(System.out::println);\n\t\tSystem.out.println(\"------\");\n\t\tIntStream.rangeClosed(0, 10).parallel().forEach(System.out::println);\n\t\t//Print in Alaphabetical order\n\t\t//System.out.println(getArrayList());\n\t\tgetArrayList().stream().forEach(System.out::println);\n\t\tgetArrayList().parallelStream().forEach(System.out::println);\n\t\t//Check stream is running in Parallel Mode :-isParallel() Method is there\n\t\tIntStream s1=IntStream.rangeClosed(1,10);\n\t\tSystem.out.println(s1.isParallel()); // to check whether stream is running paralllel or not\n\t\tIntStream s2=IntStream.rangeClosed(1,10);s2.parallel();\n\t\tSystem.out.println(s2.isParallel());\n\t}", "title": "" }, { "docid": "36aefc8ddda359b50550a00e8c108801", "score": "0.46706992", "text": "private static void generateWorld(){\n for(int i = 0; i < SIZE*SIZE; i++){\n new Chunk();\n }\n }", "title": "" }, { "docid": "78228b8c4aa9cbba445dd2ebeca07ded", "score": "0.46699637", "text": "public static void main(String[] args) {\n String fileName = \"data1.txt\";\n \n \n //Load the data from the dataset file\n dataSet = getDataSet(fileName);\n \n //Setting up the output file\n String outputFileName = \"\";\n if (fileName.indexOf(\".\") > 0) {\n outputFileName = fileName.substring(0, fileName.lastIndexOf(\".\"));\n }\n \n createFile(outputFileName+\".csv\");\n \n //log the time the algorithm started\n long startTime = System.currentTimeMillis();\n \n //Placeholder of the fittest individual\n fittestIndividual = new Individual(GENE_SIZE, NUM_RULES, COND_LEN);\n fittestIndividual.generateRulebase(); \n \n //Setup the mating pool\n matingPool = setupArray(POP_SIZE, NUM_RULES, GENE_SIZE, COND_LEN);\n \n //used to run the GA multiple times without doing it manually\n //set to 1 because we want to run the GA once\n for (int a = 0; a < 1; a++) {\n currentBest = new Individual(GENE_SIZE, NUM_RULES, COND_LEN);\n currentBest.generateRulebase();\n\n //Generate a population\n generatePopulation();\n\n //Initial calculation of the fitness\n calculateFitness(population);\n\n for (int i = 0; i < GENERATION; i++) {\n average = 0; //reset the average\n currentBestArray[i] = currentBest.getFitness();\n \n tournamentSelect(population);\n\n //Calculate the fitness of the mating pool\n calculateFitness(matingPool);\n\n //Perfrom crossover on the mating pool\n crossover(matingPool);\n\n //Mutation\n mutation(matingPool);\n\n //Calculate the fitness of the mating pool\n calculateFitness(matingPool);\n\n //Evaluate the current population\n for (Individual individual : matingPool) {\n if (individual.getFitness() > currentBest.getFitness()) {\n currentBest = new Individual(individual);\n }\n average = average + individual.getFitness();\n }\n \n\n //Replace the population with the new generation\n for (int j = 0; j < POP_SIZE; j++) {\n population[j] = new Individual(matingPool[j]);\n }\n \n averageArray[i] = average / POP_SIZE;\n }\n \n //Check whether the current best is fitter than the global fittest individual\n if (currentBest.fitness > fittestIndividual.fitness) {\n fittestIndividual = new Individual(currentBest);\n //copy the fittest individuals performance\n fittestArray = Arrays.copyOf(currentBestArray, currentBestArray.length);\n }\n }\n\n System.out.println(\"Best fitness generated for the dataset: \" + fittestIndividual.fitness);\n \n //output the rules\n printRules(fittestIndividual.getRulebase());\n \n //Save the performance data into the output file\n for (int i = 0; i < fittestArray.length; i++) {\n addToFile(i, fittestArray[i], averageArray[i]);\n }\n \n //close the file\n close();\n \n //Evaluate the fitness agaisnt the dataset\n calculateFitness(fittestIndividual);\n double accuracyPercentage = ((double) 100 / dataSet.size()) * fittestIndividual.fitness;\n System.out.format(\"%.2f%% accuracy on the datase set.\\n\", accuracyPercentage);\n \n //Log the duration it took\n long duration = System.currentTimeMillis() - startTime;\n System.out.println(\"Completed in \" + String.format(\"%02d min, %02d.%02d sec\",\n TimeUnit.MILLISECONDS.toMinutes(duration),\n TimeUnit.MILLISECONDS.toSeconds(duration)\n - TimeUnit.MINUTES.toSeconds(TimeUnit.MILLISECONDS.toMinutes(duration)),\n TimeUnit.MILLISECONDS.toMillis(duration) - TimeUnit.SECONDS.toMillis(TimeUnit.MILLISECONDS.toSeconds(duration))\n ));\n }", "title": "" }, { "docid": "5558e05e3bb139ae4754533f2a055e3a", "score": "0.46600273", "text": "public static List<Future<Result>> createEnergyJobs(List<List<Rotamer>> rotamerSpace, Peptide startingPeptide, Set<RotamerPair> incompatiblePairs,\n ConcurrentHashMap<Rotamer,Double> tempMap1, ConcurrentHashMap<RotamerPair,Double> tempMap2,\n AtomicDouble backboneEnergy)\n {\n //System.out.println(new Date());\n //System.out.print(\"Preparing to create energy jobs...\");\n\n // create all glycine peptide\n Peptide templatePeptide = startingPeptide;\n ProtoAminoAcid glycine = ProtoAminoAcidDatabase.getTemplate(\"standard_glycine\");\n for (Residue residue : templatePeptide.sequence)\n {\n if ( residue.isHairpin )\n continue;\n templatePeptide = SidechainMutator.mutateSidechain(templatePeptide, residue, glycine);\n }\n\n // create jobs\n //System.out.print(\"single rotamer jobs...\");\n List<Future<Result>> futures = new ArrayList<>(); \n \n // create rotamer jobs\n // we minimize the amount of work by going across each row of rotamers\n // that is, we take the first rotamer at each position and make a peptide\n // then we go down the list, skipping positions where there aren't enough rotamers\n // incompatibles should not be an issue because those interactions will be ignored\n int maxIndex = 0;\n for (List<Rotamer> list : rotamerSpace)\n {\n if ( list.size() - 1 > maxIndex )\n maxIndex = list.size() -1;\n }\n\n for (int i=0; i <= maxIndex; i++)\n {\n List<Rotamer> theseRotamers = new LinkedList<>();\n for (List<Rotamer> list : rotamerSpace) \n {\n if ( i < list.size() )\n theseRotamers.add( list.get(i) );\n }\n ImmutableList<Rotamer> theseRotamers2 = ImmutableList.copyOf(theseRotamers);\n RotamerEnergyJob job = new RotamerEnergyJob(templatePeptide, theseRotamers2, theseRotamers2, tempMap1, backboneEnergy);\n Future<Result> f = GeneralThreadService.submit(job);\n futures.add(f);\n }\n\n // create rotamer pair jobs\n // we save time by just computing the interactions between the rotamers without the backbone present\n //System.out.println(new Date());\n //System.out.println(\"rotamer pair jobs...\");\n AStarEnergyCalculator.PairIterator iterator = new AStarEnergyCalculator.PairIterator(rotamerSpace, 1000);\n int count = 0;\n while (iterator.hasNext())\n {\n count++;\n LinkedListMultimap<Rotamer,Rotamer> thisBatch = iterator.next();\n RotamerPairEnergyJob job = new RotamerPairEnergyJob(templatePeptide, incompatiblePairs, thisBatch, tempMap2);\n Future<Result> f = GeneralThreadService.submit(job);\n futures.add(f);\n //System.out.printf(\"%d jobs created \\r\", count);\n }\n //System.out.println(\"\\nAll jobs created.\");\n return futures;\n }", "title": "" }, { "docid": "1b1bad6a3eaf65b11d90f2c805a3d932", "score": "0.46593642", "text": "static void test1() {\n\n System.out.println( \"Begin test1. ===============================\\n\" );\n\n Thread init = Thread.currentThread(); // init spawns the Mogwais\n\n // Create a GremlinsBridge of capacity 3.\n GremlinsBridge gBridge = new GremlinsBridge( 3 );\n\n int delay = 1000;\n\n // Create the Mogwais and store them in an array.\n Thread peds[] = {\n new Mogwai( \"Al\", 3, SIDE_ONE, gBridge ),\n new Mogwai( \"Bob\", 2, SIDE_ONE, gBridge ),\n new Mogwai( \"Cathy\", 2, SIDE_TWO, gBridge ),\n new Mogwai( \"Doris\", 3, SIDE_TWO, gBridge ),\n new Mogwai( \"Edith\", 3, SIDE_ONE, gBridge ),\n new Mogwai( \"Fred\", 2, SIDE_TWO, gBridge ),\n };\n\n for ( int j = 0; j < peds.length; ++j ) {\n // Run them by calling their start() method.\n try {\n peds[j].start();\n init.sleep( delay ); // delay start of next mogwai\n }\n catch ( InterruptedException e ) {\n System.err.println( \"Abort. Unexpected thread interruption.\" );\n }\n }\n // Now, the test must give the mogwai time to finish their crossings.\n for ( int j = 0; j < peds.length; ++j ) {\n try {\n peds[j].join(); // wait for next mogwai to finish\n }\n catch ( InterruptedException e ) {\n System.err.println( \"Abort. Unexpected thread interruption.\" );\n }\n }\n\n System.out.println( \"\\n=============================== End test1.\" );\n }", "title": "" }, { "docid": "80a2e4aaf9f48582873f15cccbba8b91", "score": "0.4653938", "text": "public int produce(int min, int max, int start, int subpopulation, Individual[] inds, ec.EvolutionState state, int thread)\n/* */ {\n/* 27 */ int n = this.sources[0].produce(min, max, start, subpopulation, inds, state, thread);\n/* */ \n/* */ \n/* */ \n/* 31 */ if (!state.random[thread].nextBoolean(this.likelihood)) {\n/* 32 */ return reproduce(n, start, subpopulation, inds, state, thread, false);\n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* 38 */ if (!(this.sources[0] instanceof ec.BreedingPipeline)) {\n/* 39 */ for (int q = start; q < n + start; q++) {\n/* 40 */ inds[q] = ((Individual)inds[q].clone());\n/* */ }\n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 48 */ if (!(inds[start] instanceof TestCaseCandidate))\n/* 49 */ state.output.fatal(\"OurMutatorPipeline didn't get an Chromosome.The offending individual is in subpopulation \" + \n/* 50 */ subpopulation + \" and it's:\" + inds[start]);\n/* 51 */ ChromosomeSpecies species = (ChromosomeSpecies)inds[start].species;\n/* */ \n/* */ \n/* */ \n/* 55 */ for (int q = start; q < n + start; q++)\n/* */ {\n/* 57 */ TestCaseCandidate i = (TestCaseCandidate)inds[q];\n/* 58 */ double mutp = 1.0D / i.getGenes().size();\n/* */ \n/* 60 */ double[] propa = new double[i.getGenes().size()];\n/* 61 */ for (int x = 0; x < i.getGenes().size(); x++)\n/* 62 */ propa[x] = mutp;\n/* 63 */ for (int x = 0; x < i.getGenes().size(); x++) {\n/* 64 */ if (state.random[thread].nextBoolean(propa[x]))\n/* */ {\n/* */ \n/* 67 */ ((csbst.generators.AbsractGenerator)i.getGenes().get(x)).mutate();\n/* */ }\n/* */ }\n/* */ \n/* 71 */ i.evaluated = false;\n/* */ }\n/* */ \n/* 74 */ return n;\n/* */ }", "title": "" }, { "docid": "f6fd039a299832bdb7ec8bc705e42ade", "score": "0.4632601", "text": "public static void main (String[] args){\n Fork[] fork = new Fork[5];\n Philosopher[] philosophers = new Philosopher[5];\n State state = new State();\n\n //CREATING FORKS FOR EVERY PHILOSOPHER\n for (int i = 0; i < 5; i++){\n fork[i] = new Fork();\n }\n\n //CREATING A PHILOSOPHER AS WELL AS THEIR THREAD AND PRINT THAT THEY START OUT BY THINKING\n for ( int i = 0; i < 5; i++){\n philosophers[i] = new Philosopher(i, fork[i], fork[(i+4) % 5], state);\n Thread philnum = new Thread(philosophers[i]);\n //int phil = i + 1;\n System.out.println(\"Philosopher \" + (i+1) + \" is thinking\");\n philnum.start();\n }\n\n }", "title": "" }, { "docid": "f2bac1bba3085d38a83daf4e835804fe", "score": "0.46325824", "text": "private void modifyIndividuals(){\n for(AbstractBehaviour behaviour: entityBehaviours){\n JSONObject jsonPop = null;\n GeneticInterface gi = interfaceMap.get(behaviour);\n try {\n jsonPop = gi.receiveNewPopulation();\n } catch (IOException e) {\n e.printStackTrace();\n }\n for(String key: jsonPop.keySet()){\n JSONArray funArray = jsonPop.getJSONObject(key).getJSONArray(\"functions\");\n List<Function> functions = new LinkedList<>();\n for(int a = 0; a <funArray.length(); a++){\n String tree = funArray.getString(a);\n Function functionTree = Node.treeFromString(tree, behaviour.getNumberOfInputs());\n functions.add(functionTree);\n }\n behaviour.setEntityByName(key, functions);\n }\n behaviour.resetEntities();\n }\n }", "title": "" }, { "docid": "ea900df73b78ba2ef11112ce2660f42a", "score": "0.46307865", "text": "public static void fullSimulation(Plant[] array, Herbivore[] herbArray, Carnivore[] carnArray, int runTime){\r\n // if we want to generate new organisms during the simulation, we'll need to \r\n // keep track of the array number tally. to do this we'll introduce \r\n // new variables to keep a running tally\r\n int runningTally = startingPlants;\r\n int herbTally = startingHerbivores;\r\n int carnTally = startingCarnivores;\r\n // we'll need to keep track of how many organisms are added on a given \r\n // day, but in order to prevent unjustified exponential growth, this \r\n // variable needs to reset to 0 at the beginning of a day\r\n int dailyAddition = 0;\r\n int dailyHerbivores = 0;\r\n int dailyCarnivores = 0;\r\n // now we'll actually run our simulation for the full length of its\r\n // run time, only retrieving organism data after the simulation is complete\r\n for(int simRun = 0; simRun < runTime; simRun++){\r\n // if we add the runningTally inside the day event for loop, we'll get an error \r\n // thrown every time, so we'll add to the tally outside of the for loop\r\n runningTally = runningTally + dailyAddition;\r\n herbTally = herbTally + dailyHerbivores;\r\n carnTally = carnTally + dailyCarnivores;\r\n // reseting daily addition so we aren't repeatedly adding the same plants\r\n // over and over again\r\n dailyAddition = 0;\r\n dailyHerbivores = 0;\r\n dailyCarnivores = 0;\r\n // this for loop represents a single day's events\r\n // going with total organism count let's all organisms run through their day, even\r\n // if there are different numbers of plants, herbivores, and carnivores\r\n for (int dp = 0; dp < totalCreatures; dp++){\r\n // we repeat the for loop so we can include a break statement such that\r\n // if the for loop iteration cap exceeds the plant total, which it\r\n // almost surely will, we can break out of the loop without breaking \r\n // out of the daily loop, letting the day complete for all organisms\r\n for(int vp = 1; vp == 1; vp++){\r\n if(dp >= runningTally){\r\n break;\r\n } else {\r\n array[dp].dayPass();\r\n boolean makeMore = array[dp].reproduce(reproductionEnergy);\r\n if(makeMore){\r\n array[(runningTally + dailyAddition)] = new Plant();\r\n totalPlants += 1;\r\n totalCreatures += 1;\r\n array[(runningTally + dailyAddition)].getLocation();\r\n array[(runningTally + dailyAddition)].shaded();\r\n if(array[(runningTally + dailyAddition)].inShade()){\r\n shadedPlant += 1;\r\n } // close makeMore loop\r\n dailyAddition += 1;\r\n }\r\n }\r\n }\r\n for(int hp = 1; hp == 1; hp++){\r\n if(dp >= herbTally){\r\n break;\r\n } else {\r\n totalPlantsEaten = totalPlantsEaten + herbArray[dp].dayWalk(herbivoreSpeed, array, runningTally);\r\n boolean makeMoreHerbs = herbArray[dp].reproduce();\r\n if(makeMoreHerbs){\r\n herbArray[(herbTally + dailyHerbivores)] = new Herbivore();\r\n totalHerbivores += 1;\r\n totalCreatures += 1;\r\n herbArray[(herbTally + dailyHerbivores)].getX();\r\n herbArray[(herbTally + dailyHerbivores)].getY();\r\n dailyHerbivores += 1;\r\n } // close makeMoreHerbs loop\r\n boolean starved = herbArray[dp].starvation();\r\n if(starved){\r\n totalHerbivoreStarved += 1;\r\n }\r\n }\r\n }\r\n for(int cp = 1; cp == 1; cp++){\r\n if(dp >= carnTally){\r\n break;\r\n } else {\r\n totalHerbivoreEaten = totalHerbivoreEaten + carnArray[dp].dayHunt(carnivoreSpeed, herbArray, herbTally);\r\n boolean makeMoreCarns = carnArray[dp].reproduce();\r\n if(makeMoreCarns){\r\n carnArray[(carnTally + dailyCarnivores)] = new Carnivore();\r\n totalCarnivores += 1;\r\n totalCreatures += 1;\r\n carnArray[(carnTally + dailyCarnivores)].getX();\r\n carnArray[(carnTally + dailyCarnivores)].getY();\r\n dailyCarnivores += 1;\r\n } // close makeMoreHerbs loop\r\n boolean starved = carnArray[dp].starvation();\r\n if(starved){\r\n totalCarnivoreStarved += 1;\r\n }\r\n }\r\n }\r\n } // closes single day loop\r\n System.out.println(\" \");\r\n System.out.println(\"Day \" + (simRun + 1) + \" ended.\");\r\n System.out.println(\"Total Plants: \" + totalPlants);\r\n System.out.println(\"Total Herbivores: \" + totalHerbivores);\r\n System.out.println(\"Total Carnivores: \" + totalCarnivores);\r\n System.out.println(\"Total Organisms: \" + totalCreatures);\r\n } // closes full sim run loop\r\n // now that the simulation is complete, we get the data on each of \r\n // our plants\r\n output();\r\n // and the stats for our herbivores\r\n \r\n }", "title": "" }, { "docid": "ed79672caf9f3578ce7e60572e330fcf", "score": "0.46301246", "text": "public ArrayList<Tour> doSelection(Population population) {\n double totalFitness = 0;\n for(Tour tour : population.getTourList()){\n totalFitness = totalFitness + tour.getFitness();\n }\n\n //sort tours by relative fitness\n SortedMap<Double, Tour> totalFitnessRelativity = new TreeMap<>();\n for(Tour tour: population.getTourList()){\n double key = tour.getFitness()/totalFitness;\n totalFitnessRelativity.put(key, tour);\n }\n\n //put tours on a number bar\n SortedMap<Double, Tour> numberBar = new TreeMap<>();\n double previousProbability = 0;\n for(Map.Entry<Double, Tour> entry : totalFitnessRelativity.entrySet()){\n double currentProbability = previousProbability + entry.getKey();\n numberBar.put(currentProbability, entry.getValue());\n previousProbability = currentProbability;\n }\n\n //choose a tour randomly according to how near it is to\n ArrayList<Tour> rouletteWheelOrder = new ArrayList<>();\n do{\n double randomNumber = new random.MersenneTwisterFast().nextDouble(0, numberBar.lastKey());\n for(Map.Entry<Double, Tour> numberBarSection : numberBar.entrySet()){\n if(randomNumber <= numberBarSection.getKey() && !rouletteWheelOrder.contains(numberBarSection.getValue())){\n rouletteWheelOrder.add(numberBarSection.getValue());\n break;\n }\n }\n } while(rouletteWheelOrder.size() != population.getTourList().size());\n return rouletteWheelOrder;\n }", "title": "" }, { "docid": "748c5f3ede9414d1f99272567a2d9c94", "score": "0.46293932", "text": "public static void main(String[] args) {\n\t\tfinal int COUNT =5;\n\t\tForkBuffer forkBuffer = new ForkBuffer(COUNT);\n\t\tPhilosopher philospher[]=new Philosopher[COUNT];\n\t\t\n\t\tfor(int i =0; i < COUNT; ++i){\n\t\t\tphilospher[i]= new Philosopher(i, forkBuffer, COUNT);\n\t\t\tphilospher[i].start();\n\t\t}\n\t}", "title": "" }, { "docid": "86bcb31cf6d18ccbeb76f127415b245c", "score": "0.46245962", "text": "private static void farmMachines()\n {\n List<Automat> johnDeere = new ArrayList<Automat>();\n johnDeere.add(new SaeMaschine());\n johnDeere.add(new GiessMaschine());\n johnDeere.add(new ErnteMaschine());\n\n // Jemand muss nun endlich arbeiten\n System.out.println(\"Ja, jetzt wird wieder in die Hände gespuckt\\n\" +\n \"Wir steigern das Bruttosozialprodukt\\n\" +\n \"Ja, ja, ja, jetzt wird wieder in die Hände gespuckt\\n\");\n\n new Thread(() -> {\n for( Automat automat : johnDeere )\n {\n automat.arbeiten(maisFeld);\n if( automat instanceof SaeMaschine )\n {\n new SaeMaschine().arbeiten(maisFeld, \"Mais\");\n System.out.println(\"Maiskölbchen nach Arbeit: \" + maisFeld.size());\n }\n }\n }).start();\n\n new Thread(() -> {\n for( Automat automat : johnDeere )\n {\n automat.arbeiten(weizenFeld);\n if( automat instanceof SaeMaschine )\n {\n new SaeMaschine().arbeiten(weizenFeld, \"Weizen\");\n System.out.println(\"Weizenhalme nach Arbeit: \" + weizenFeld.size());\n }\n }\n }).start();\n }", "title": "" }, { "docid": "3a10dad284dafdb6ea48b3881de00014", "score": "0.46152776", "text": "public void split(){\n\t\tamountOfShares = amountOfShares*2;\n\t}", "title": "" }, { "docid": "2b77ba6edbfa413f343322b80e697f14", "score": "0.4613398", "text": "public static void evaluateGroupedProblemForm( EvolutionState state, boolean returnIndividuals,\n DataInputStream dataIn, DataOutputStream dataOut )\n {\n int numInds = -1;\n boolean countVictoriesOnly = false;\n Subpopulation[] subPop = null;\n \n try\n {\n numInds = dataIn.readInt();\n subPop = new Subpopulation[numInds];\n for(int x=0;x<numInds;x++)\n {\n int subPopNum = dataIn.readInt();\n // Here we need to know the subpopulation number so as to create the\n // correct type of subpopulation in order to create the correct type\n // of individual.\n if( state.population == null )\n state.population = new Population();\n if( state.population.subpops == null )\n state.population.subpops = new Subpopulation[subPopNum+1];\n if( state.population.subpops.length <= subPopNum )\n {\n Subpopulation[] temp = state.population.subpops;\n state.population.subpops = new Subpopulation[subPopNum+1];\n System.arraycopy( temp, 0, state.population.subpops, 0, temp.length );\n }\n if( state.population.subpops[subPopNum] == null )\n {\n Parameter param = new Parameter(P_SUBPOP).push(\"\" + subPopNum);\n subPop[x] = \n (Subpopulation)(state.parameters.getInstanceForParameterEq(\n param,null,\n Subpopulation.class));\n // Setup the subpopulation so that it is in a valid state.\n subPop[x].setup(state, param);\n state.population.subpops[subPopNum] = subPop[x];\n }\n else\n subPop[x] = state.population.subpops[subPopNum];\n }\n countVictoriesOnly = dataIn.readBoolean();\n }\n catch (IOException e)\n {\n state.output.fatal(\"Unable to read the subpopulation number from the master:\\n\"+e);\n }\n \n // Read the individuals from the stream\n Individual inds[] = new Individual[numInds];\n boolean updateFitness[] = new boolean[numInds];\n try\n {\n for(int i=0;i<inds.length;++i)\n {\n inds[i] = subPop[i].species.newIndividual( state, dataIn );\n updateFitness[i] = dataIn.readBoolean();\n }\n }\n catch (IOException e)\n {\n state.output.fatal(\"Unable to read individual from master.\");\n }\n \n // Evaluate the individual\n // TODO Check to make sure the real problem is an instance of GroupedProblemForm\n ((GroupedProblemForm)(state.evaluator.p_problem)).evaluate( state, inds, updateFitness, countVictoriesOnly, 0 );\n \n try\n {\n // Return the evaluated individual to the master\n // just write evaluated and fitness\n for(int i=0;i<inds.length;i++)\n {\n dataOut.writeByte(returnIndividuals ? V_INDIVIDUAL : (updateFitness[i] ? V_FITNESS : V_NOTHING));\n if (returnIndividuals)\n {\n inds[i].writeIndividual(state, dataOut);\n }\n else if (updateFitness[i])\n {\n dataOut.writeBoolean(inds[i].evaluated);\n inds[i].fitness.writeFitness(state,dataOut);\n }\n }\n dataOut.flush();\n }\n catch( IOException e ) { state.output.fatal(\"Caught fatal IOException\\n\"+e ); }\n }", "title": "" }, { "docid": "2496fcb6fcfa6ac50fc6b2283c5d2ece", "score": "0.46072802", "text": "private List<BulkLoadElementTO> populateBulkLoadElementTO( int numElements ) {\n List<BulkLoadElementTO> lTOList = new ArrayList<BulkLoadElementTO>();\n\n for ( int i = 0; i < numElements; i++ ) {\n lTOList.add( new BulkLoadElementTO( i, WAREHOUSE_STOCK_LEVEL, QUEUED, \"\", C0, C1, C2 ) );\n }\n\n return lTOList;\n\n }", "title": "" }, { "docid": "4ad44b4f5d7279b891d986285942ad7c", "score": "0.4590149", "text": "static void test0() {\n\n System.out.println( \"Begin test0. ===============================\\n\" );\n\n Thread init = Thread.currentThread(); // init spawns the Mogwais\n\n // Create a GremlinsBridge of capacity 3.\n GremlinsBridge gremlinBridge = new GremlinsBridge( 3 );\n\n // Set an optional, test delay to stagger the start of each mogwai.\n int delay = 4000;\n\n // Create the Mogwais and store them in an array.\n Thread peds[] = {\n new Mogwai( \"Al\", 3, SIDE_ONE, gremlinBridge ),\n new Mogwai( \"Bob\", 4, SIDE_TWO, gremlinBridge ),\n };\n\n for ( int j = 0; j < peds.length; ++j ) {\n // Run them by calling their start() method.\n try {\n peds[j].start();\n init.sleep( delay );\n }\n catch ( InterruptedException e ) {\n System.err.println( \"Abort. Unexpected thread interruption.\" );\n break;\n }\n }\n // Now, the test must give the mogwai time to finish their crossings.\n for ( int j = 0; j < peds.length; ++j ) {\n try {\n peds[j].join();\n }\n catch ( InterruptedException e ) {\n System.err.println( \"Abort. Unexpected thread interruption.\" );\n break;\n }\n }\n System.out.println( \"\\n=============================== End test0.\" );\n return;\n }", "title": "" }, { "docid": "b126b5ac8a05bf5b1b21437124c16af3", "score": "0.45872608", "text": "public void runExploration() {\n List<Queue<String>> smallSkierQueues = partitionQueue(skierQueue);\n List<Queue<String>> smallLiftQueues = partitionQueue(liftQueue);\n List<Queue<String>> smallhourQueues = partitionQueue(hourQueue);\n\n // run threads here\n long startTime = System.nanoTime();\n for(int i = 0; i < 8; i++) {\n SmallSkierThread runSmallSkier = new SmallSkierThread(smallSkierQueues.get(i));\n SmallLiftThread runSmallLift = new SmallLiftThread(smallLiftQueues.get(i));\n SmallHourThread runSmallHour = new SmallHourThread(smallhourQueues.get(i));\n runSmallSkier.start();\n runSmallHour.start();\n runSmallLift.start();\n }\n // -> Aggregate results here\n // ...\n // ...\n // ...\n // <- End aggregation\n long endTime = System.nanoTime();\n long duration = endTime - startTime;\n System.out.println(\"Concurrent Solution Runtime: \" + duration/1000f + \" microseconds\");\n }", "title": "" }, { "docid": "5271f6ce3bbfc08f71de6dca89b83027", "score": "0.45811936", "text": "public static void main(String[] args) {\n ExecutorService executorService = Executors.newFixedThreadPool(50);\n for (int i = 0; i < 50; i++) {\n executorService.execute(() -> {\n//\t\t writeAttributesByType(\"D:\\\\myDailyDemo\\\\test_spring_hibernate\\\\src\\\\main\\\\resources\\\\yml\\\\test.yml\",\"PEOPLE\",map.clone());\n LinkedHashMap<String, Object> china = loadData(\"china\", \"C:\\\\myDailyDemo\\\\test_spring_hibernate\\\\src\\\\main\\\\resources\\\\yml\\\\test.yml\");\n System.out.println(china );\n });\n executorService.execute(() -> {\n LinkedHashMap<String, Object> people = loadData(\"people\", \"C:\\\\myDailyDemo\\\\test_spring_hibernate\\\\src\\\\main\\\\resources\\\\yml\\\\test.yml\");\n System.out.println(people );\n });\n }\n// ScheduledExecutorService scheduledExecutorService = Executors.newScheduledThreadPool(1);\n }", "title": "" }, { "docid": "a01ddb50d3ee11ddbcd53aea2cc5b45a", "score": "0.4579442", "text": "public void initializePopulation(){\n\t\t// create the population\n\t\tfor(int i = 0; i < POPULATION_SIZE; i++){\n\t\t\t// get a random length for the building sequence\n\t\t\tint randArraySize = randomGenerator.nextInt(possiblePieces.length-1)+1;\n\t\t\t\n\t\t\tBuildingPiece[] pieceSequence = new BuildingPiece[randArraySize];\n\t\t\tfor(int j = 0; j < randArraySize; j++){\n\t\t\t\t// get a random possible piece and insert it into the sequence\n\t\t\t\tint randIndex = randomGenerator.nextInt(possiblePieces.length);\n\t\t\t\tpieceSequence[j] = possiblePieces[randIndex];\n\t\t\t}\n\t\t\t\n\t\t\t/* add a new number sequence with the newly created \n\t\t\t * sequence from the input */\n\t\t\tpopulation.add(new Building(pieceSequence, generation, possiblePieces));\n\t\t}\n\t}", "title": "" }, { "docid": "8a0ce8fac368df378a9737b88cfcbc6b", "score": "0.4577688", "text": "public Vector run(){\n generationCount = 0;\n solutionList = new Vector();\n bannedList = new Vector();\n solutionCounter = 0;\n whenToHalt.init();\n //INITIALIZE THE POPULATION\n\n population = initializer.getGenes(populationSize, fitnessFunction, minRadius, maxRadius);\n fitnessArray = new double[populationSize];\n //COMPUTE FITNESSES\n for (int x = 0; x < populationSize; x++){\n Gene next = (Gene) population.get(x);\n fitnessArray[x] = next.getFitness();\n }\n\n Arrays.sort(fitnessArray);\n\n while (! stop()){\n //RUN THROUGH THE GENERATIONS\n population = step();\n }\n\n if (useList){\n return solutionList;\n } else {\n return population;\n }\n }", "title": "" }, { "docid": "ae096564b353194ebce54ca58b604933", "score": "0.4572966", "text": "public static void worldTimeStep() {\n\t\t//System.out.println(\"Time Step: \" + count);\n\t\tcount = count + 1;\n\t for (Critter A : Critter.population){\n\t if(A.energy<=0){\n\t\t\t\tA.isAlive = false;\n }\n else if(A.energy>0){\n\t A.isAlive=true;\n A.doTimeStep();\n if(A.energy<0){\n\t\t\t\t\tA.isAlive = false;\n\t\t\t\t}\n }\n\n }\n\t\tfor (Iterator<Critter> iterator = Critter.population.iterator(); iterator.hasNext();){\n\t\t\tCritter tmp = iterator.next();\n\t\t\tif (tmp.isAlive == false){\n\t\t\t\titerator.remove();\n\t\t\t}\n\t\t}\n\n encounters2();\n\n\t\tfor (Iterator<Critter> iterator = Critter.population.iterator(); iterator.hasNext();){\n\t\t\tCritter tmp = iterator.next();\n\t\t\tif (tmp.isAlive == false){\n\t\t\t\titerator.remove();\n\t\t\t}\n\t\t}\n\n\t\tmapCheck();\n\t\t// we have add reproduction\n\n\t\t// we have to add algae\n\t\tfor (int i = 0; i < Params.refresh_algae_count; i = i + 1){\n\t\t\t//Algae child = new Algae();\n\t\t\t//child.setEnergy(Params.start_energy);\n\t\t\t//makecritter takes care of anything\n\t\t\ttry{\n\t\t\t\tmakeCritter(\"Algae\");\n\t\t\t}\n\t\t\tcatch(InvalidCritterException e){\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\n\t\t//deduct rest energy\n\t\tfor (Critter A : Critter.population){\n\t\t\tA.energy = A.getEnergy() - Params.rest_energy_cost;\n\t\t\tif(A.getEnergy()<=0){\n\t\t\t\tA.isAlive=false;\n\t\t\t}\n\t\t}\n\t\tfor (Iterator<Critter> iterator = Critter.population.iterator(); iterator.hasNext();){\n\t\t\tCritter tmp = iterator.next();\n\t\t\tif (tmp.isAlive == false){\n\t\t\t\titerator.remove();\n\t\t\t}\n\t\t}\n\t\t//babies add\n\t\tfor(Critter b: babies){\n\t\t\tb.isAlive=true;\n\t\t\tpopulation.add(b);\n\t\t}\n\t\t//not sure if this removes everything\n\t\tbabies.clear();\n\t}", "title": "" }, { "docid": "4bd875acded2ea467c6819960b4cb3b8", "score": "0.45728934", "text": "@Override\r\n public void run() {\r\n while(true){\r\n // para cada peça necessária para um agente montar um produto faça\r\n for(Peca peca: pecasNecessarias){\r\n System.out.println(\"\\nRetirar Peça: \"+peca.getNome());\r\n // retira peça do estoque\r\n int pecasEmEstoque = estoque.retirarPecas(peca, peca.getQuantidadeEmEstoque());\r\n // se não há peças em estoque atraza a produção e ela para\r\n if(pecasEmEstoque <= 0) {\r\n System.exit(0);\r\n }\r\n if(ConfigAgents.TEMPO_MONGAGEM > 0) { // desativa simulação se valor 0 ou negativo\r\n try {\r\n // simulação do agente montando o produto com a peça\r\n sleep(ConfigAgents.TEMPO_MONGAGEM);\r\n } catch (InterruptedException ex) {\r\n Logger.getLogger(AgenteLinhaDeProducao.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n }\r\n }\r\n }", "title": "" }, { "docid": "6980129dd16dbae5f1c2fdbad35b2891", "score": "0.45649585", "text": "private void addCopiesToPool(Establishment[] establishments, int numPlayers){\n for(Establishment c : establishments){\n c.setNumCopies(numPlayers);\n }\n }", "title": "" }, { "docid": "8d53040a17c2f3a8d0e8f207152ea272", "score": "0.45515543", "text": "@Override\n public IndividualGroupList splitIndividualsIntoGroups(List<Individual> individuals) \n {\n sortByPositiveProbability(individuals);\n return adaptativeSplitIntoGroups(individuals);\n }", "title": "" }, { "docid": "43a4fd63d2cf7a66c744ed1115c408e9", "score": "0.45483482", "text": "private void startUpPhase()\n\t{\n\t\tmap.distributeCountries(); /* Randomly split the countries between the players */\n\t\tArrayList<Player> remainingPlayers = new ArrayList<Player>(map.players);\n\t\t\n\t\tdo \n\t\t{\n\t\t\tIterator<Player> i = remainingPlayers.iterator();\n\t\t\t\n\t\t\twhile (i.hasNext()) \n\t\t\t{\n\t\t\t\tPlayer p = i.next();\n\t\t\t\tif(p.getArmies() == 0) \n\t\t\t\t{\n\t\t\t\t\ti.remove();\n\t\t\t\t} \n\t\t\t\telse \n\t\t\t\t{\n\t\t\t\t\tp.placeOneArmy();\n\t\t\t\t}\n\t\t\t}\n\t\t}while(remainingPlayers.size() != 0);\n\t}", "title": "" }, { "docid": "4f81d41f8b04a7f03e6e6ec94b0ef890", "score": "0.45462355", "text": "public void setUp() throws Exception {\n\n processDefinition = new ProcessDefinition();\n\n processDefinition.setProcessVariables(new ProcessVariable[]{\n ProcessVariable.forName(\"var1\"),\n ProcessVariable.forName(\"var2\")\n });\n\n Activity theLastJoinActivity = null;\n\n\n for(int i=1; i<20; i++) {\n Activity a1 = new DefaultActivity();\n\n // a1.setQueuingEnabled(true);\n\n if(i == 7 || i==1){\n a1 = new GatewayActivity();\n }\n\n a1.setTracingTag(\"a\" + i);\n processDefinition.addChildActivity(a1);\n\n if(i==7){\n theLastJoinActivity = a1;\n }\n }\n\n {\n Transition t1 = new Transition();\n t1.setSource(\"a9\");\n t1.setTarget(\"a1\");\n\n processDefinition.addTransition(t1);\n }\n {\n Transition t1 = new Transition();\n t1.setSource(\"a10\");\n t1.setTarget(\"a9\");\n\n processDefinition.addTransition(t1);\n }\n\n {\n Transition t1 = new Transition();\n t1.setSource(\"a1\");\n t1.setTarget(\"a2\");\n t1.setCondition(new Evaluate(\"var1\", \"==\", \"true\"));\n\n processDefinition.addTransition(t1);\n }\n {\n Transition t1 = new Transition();\n t1.setSource(\"a1\");\n t1.setTarget(\"a5\");\n t1.setCondition(new Evaluate(\"var2\", \"==\", \"true\"));\n\n processDefinition.addTransition(t1);\n }\n {\n Transition t1 = new Transition();\n t1.setSource(\"a2\");\n t1.setTarget(\"a3\");\n\n processDefinition.addTransition(t1);\n }\n {\n Transition t1 = new Transition();\n t1.setSource(\"a2\");\n t1.setTarget(\"a4\");\n\n processDefinition.addTransition(t1);\n }\n {\n Transition t1 = new Transition();\n t1.setSource(\"a5\");\n t1.setTarget(\"a6\");\n\n processDefinition.addTransition(t1);\n }\n {\n Transition t1 = new Transition();\n t1.setSource(\"a6\");\n t1.setTarget(\"a4\");\n\n processDefinition.addTransition(t1);\n }\n {\n Transition t1 = new Transition();\n t1.setSource(\"a3\");\n t1.setTarget(\"a7\");\n\n processDefinition.addTransition(t1);\n }\n {\n Transition t1 = new Transition();\n t1.setSource(\"a4\");\n t1.setTarget(\"a7\");\n\n processDefinition.addTransition(t1);\n }\n {\n Transition t1 = new Transition();\n t1.setSource(\"a7\");\n t1.setTarget(\"a11\");\n\n processDefinition.addTransition(t1);\n }\n {\n Transition t1 = new Transition();\n t1.setSource(\"a11\");\n t1.setTarget(\"a12\");\n\n processDefinition.addTransition(t1);\n }\n\n processDefinition.afterDeserialization();\n\n ProcessInstance.USE_CLASS = DefaultProcessInstance.class;\n\n\n }", "title": "" }, { "docid": "36afcf7afc8c81e4dfa0e8a46ea9f690", "score": "0.45451298", "text": "protected static void creatingSimulationStats(int situation) {\n // Clearing previous simulation results.\n TrainStation.clearSimulationTrainQueues();\n\n // Getting the Waiting Room from the DataBase.\n Passenger[][] waitingRoomDB = Methods.readingDB();\n\n // Declaring a waiting Room to run the simulation on.\n Passenger[][] waitingRoom = new Passenger[2][42];\n\n // Running the simulation twice.\n for (int simulation = 1; simulation < 3; simulation++) {\n\n // Declaring and initializing a SimulationPassengerQueue[] to store simulation results.\n SimulationPassengerQueue[] trainQueues = new SimulationPassengerQueue[simulation];\n for (int i = 0; i < simulation; i++) {\n trainQueues[i] = new SimulationPassengerQueue();\n }\n\n // Initializing Waiting room for the simulation.\n for(int train = 0; train < waitingRoom.length; train++) {\n System.arraycopy(waitingRoomDB[train], 0, waitingRoom[train], 0, waitingRoomDB[train].length);\n }\n\n // Getting the Waiting room trainQueue.\n PassengerQueue trainQueue = TrainStation.getTrainQueue();\n\n for (int train = 0; train < 2; train++) {\n // Making the waiting room equal to the TrainStation.waitingRoom if its selected.\n if (situation == 0) {\n for (int passenger = 0; passenger < trainQueue.getQueueLength(train); passenger++) {\n String seatNumberTQ = trainQueue.getQueueArray(train)[passenger].getSeatNumber();\n if (waitingRoom[train][seatNumberConverter(seatNumberTQ)] != null) {\n if (waitingRoom[train][seatNumberConverter(seatNumberTQ)].getSeatNumber().equalsIgnoreCase(seatNumberTQ)) {\n waitingRoom[train][seatNumberConverter(seatNumberTQ)] = null;\n }\n }\n }\n }\n\n // Initializing the group number.\n int groupNumber = 0;\n // Running the simulation till the waiting room finishes.\n while (Methods.waitingRoomSize(train, waitingRoom) > 0) {\n // Increasing the group number.\n groupNumber++;\n\n // Declaring random.\n Random random = new Random();\n\n // Getting number rof passengers for the current group.\n int maxSelect = Methods.creatingMaxWQSelect(train, waitingRoom);\n\n // Creating a array for the Group and Populating it.\n SimulationPassenger[] passengersGroup = new SimulationPassenger[maxSelect];\n for (int select = 0; select < maxSelect; select++) {\n // Getting the current Waiting room without any null elements.\n Passenger[] sortedWaitingRoom = Methods.sortingWaitingRoom(train, waitingRoom);\n\n // Selecting a Passenger Randomly to the Group.\n int selection;\n do {\n selection = random.nextInt(sortedWaitingRoom.length);\n } while (sortedWaitingRoom[selection] == null);\n\n // Adding the selected passenger to the group.\n passengersGroup[select] = new SimulationPassenger(sortedWaitingRoom[selection], maxSelect, groupNumber);\n // Deleteing the added passenger from the waiting room.\n waitingRoom[train][Methods.seatNumberConverter(passengersGroup[select].getSeatNumber())] = null;\n }\n\n // Sorting the Group to according to the seat number (because passengers board according to the seat number).\n SimulationPassenger temp;\n for (int i = 0; i < passengersGroup.length; i++) {\n for (int j = i + 1; j < passengersGroup.length; j++) {\n if (passengersGroup[j].getSeatNumber().compareTo(passengersGroup[i].getSeatNumber()) < 0) {\n temp = passengersGroup[i];\n passengersGroup[i] = passengersGroup[j];\n passengersGroup[j] = temp;\n }\n }\n }\n\n // Selecting the Queue 2 if the Queue 1 is longer than Queue 2\n boolean isTQ2Selected = false;\n if (simulation == 2) {\n isTQ2Selected = trainQueues[0].getQueueLength(train) > trainQueues[1].getQueueLength(train);\n }\n\n // Initializing waiting time for a group.\n int secondsWaited = 0;\n // Adding every passenger in group to trainQueue.\n for (int passenger = 0; passenger < maxSelect; passenger++) {\n // Adding each passengers waiting time to the Queue waiting time.\n secondsWaited += passengersGroup[passenger].getSecondsInQueue();\n // Setting the waiting time in queue to each passenger.\n passengersGroup[passenger].setWaitingTime(secondsWaited);\n\n // Adding passengers to the Queue.\n if (isTQ2Selected) {\n trainQueues[1].add(passengersGroup[passenger], train);\n } else {\n trainQueues[0].add(passengersGroup[passenger], train);\n }\n\n }\n }\n }\n // Storing the simulation report.\n TrainStation.addToSimulationTrainQueues(trainQueues);\n }\n }", "title": "" }, { "docid": "0dd6f97630084677f4318dd4acc1567d", "score": "0.454191", "text": "private static void runCalculations()\n {\n // TODO Create two different empty concurrent histograms\n\n // Create a sleep time simulator, it will sleep for 10 milliseconds in each call\n BaseSyncOpSimulator syncOpSimulator = new SyncOpSimulSleep(10);\n\n // List of threads\n List<Runner> runners = new LinkedList<>();\n\n // Create the threads and start them\n for (int i = 0; i < NUM_THREADS; i ++)\n {\n // TODO Pass the proper histograms\n final Runner runner = new Runner(syncOpSimulator, null, null);\n runners.add(runner);\n new Thread(runner).start();\n }\n\n // Wait for runners to finish\n runners.forEach(Runner::waitToFinish);\n\n // TODO Show the percentile distribution of the latency calculation of each executeOp call for all threads\n }", "title": "" }, { "docid": "ffe7955af8543f979b87b3f8534d2448", "score": "0.4534116", "text": "public void stepPopulation(int day){\r\n\t\tthis.resetComps();\r\n\t\tthis.resetPool();\r\n\t\tfor(int i = 0; i < this.getnVillages(); i++){\r\n\t\t\tVillage curr = this.vVillages[i];\r\n\t\t\tcurr.stepVillage(day);\r\n\t\t\tthis.incrementComps(curr.getComps());\r\n\t\t\tthis.updatePool(curr.getMarketPool());\r\n\t\t}\t\t\r\n\t}", "title": "" }, { "docid": "ffd33d6bfae9863886090adf44c37b9f", "score": "0.45271483", "text": "public void step(SimState simState) {\n if (state.agents.length > 0 && state.agents[0] instanceof EquitableAgent) {\n boolean shouldGenTasks = true;\n for(int i = 0; i < state.numAgents; i++) {\n EquitableAgent a = (EquitableAgent)state.agents[i];\n if (!EquitablePartitions.nearlyEqual(a.getRateInMyPolygon(), 1.0 / state.numAgents, .05)) {\n shouldGenTasks = false;\n }\n }\n if(shouldGenTasks) {\n generateTasks();\n }else if (state.schedule.getSteps() == 30000) {\n EquitableAgent a = (EquitableAgent)state.agents[0];\n a.setEp(null);\n }\n }else {\n generateTasks();\n }\n }", "title": "" }, { "docid": "77111a03c4f66d6b419c35a174f6c608", "score": "0.45259237", "text": "private void mutate() {\n\t\tfor (int i = 0; i < population; ++i) {\n\t\t\tpopulationArray.set(i, populationArray.get(i).generateNeighbor());\n\t\t}\n\t}", "title": "" }, { "docid": "b3bbd625afe2044c0e40920085b12ba3", "score": "0.45234954", "text": "private void distribute() {\n\t\t\tfor (Entry<String, List<String>> r : groups.entrySet()) {\n\t\t\t\tRandom random = new Random();\n\t\t\t\tint randomIndex = random.nextInt(r.getValue().size());\n\t\t\t\tdistribution.put(r.getKey(), r.getValue().get(randomIndex));\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "7e06894dbb0a3241a25d1b5ca27bbb47", "score": "0.45205197", "text": "private static ArrayList<Integer> runSingleThread(Integer from, Integer to, PrimeStrategyEnum primeStrategyEnum) throws InterruptedException {\n PrimeStrategyThread primeStrategyThread = primeStrategiesThreadSwitch(primeStrategyEnum+\" single thread\", from, to, primeStrategyEnum);\n primeStrategyThread.start();\n primeStrategyThread.join();\n return primeStrategyThread.getPrimes();\n }", "title": "" }, { "docid": "50638a9c2afc94f732378cb204190427", "score": "0.45189345", "text": "@Override\n\tpublic void run() {\n\t\tMPMergeSortTest.MPParallelRandomGen(start, end, r, data);\n\n\t}", "title": "" }, { "docid": "b93987e20797499d2aa11489cc755dae", "score": "0.45111004", "text": "private void initialisePools() {\r\n Integer[] bigPoolInts = {25, 50, 75, 100};\r\n Integer[] smallPoolInts = {1,2,3,4,5,6,7,8,9,10,1,2,3,4,5,6,7,8,9,10};\r\n bigPool = new ArrayList<Integer>( Arrays.asList(bigPoolInts) );\r\n smallPool = new ArrayList<Integer>(Arrays.asList(smallPoolInts));\r\n //mix them up\r\n Collections.shuffle( bigPool );\r\n Collections.shuffle( smallPool );\r\n }", "title": "" }, { "docid": "75834df1bce2b80f59fdcd10d3b6af48", "score": "0.45091727", "text": "public static void makeGrid (Species map[][], int numSheepStart, int numWolfStart, int numPlantStart, int sheepHealth, int plantHealth, int wolfHealth, int plantSpawnRate) {\n \n // Declare coordinates to randomly spawn species\n int y = 0;\n int x = 0;\n \n // Initialise plants\n Plant plant;\n \n // Spawn plants\n for (int i = 0; i < numPlantStart; i++) {\n \n // Choose random coordinates to spawn\n y = (int)(Math.random() * map[0].length); \n x = (int)(Math.random() * map.length);\n \n // Checks for an empty space\n if (map[y][x] == null) { \n \n // Choose a random plant (50% chance healthy, 25% poisonous or energizing)\n int plantChoice = (int) Math.ceil(Math.random() * 100);\n \n // Create the new plants\n if ((plantChoice <= 100) && (plantChoice >= 50)) {\n plant = new HealthyPlant(plantHealth, x, y, plantSpawnRate);\n } else if ((plantChoice < 50) && (plantChoice >= 25)) {\n plant = new EnergizingPlant(plantHealth, x, y, plantSpawnRate);\n } else {\n plant = new PoisonousPlant(plantHealth, x, y, plantSpawnRate);\n }\n \n // Set plant coordinates\n plant.setX(x);\n plant.setY(y);\n map[y][x] = plant;\n \n // No space\n } else { \n i -= 1;\n }\n \n }\n \n // Spawn sheep\n for (int i = 0; i < numSheepStart; i++) { \n \n // Choose random coordinates to spawn\n y = (int)(Math.random() * map[0].length); \n x = (int)(Math.random() * map.length);\n \n // Checks for an empty space\n if (map[y][x] == null) {\n \n // Create new sheep\n Sheep sheep = new Sheep(sheepHealth, x, y, 5); \n \n // Set sheep coordinates\n sheep.setX(x);\n sheep.setY(y);\n map[y][x] = sheep;\n \n // No space\n } else { \n i -= 1; \n }\n \n }\n \n // Spawn wolves\n for (int i = 0; i < numWolfStart; i++) { \n \n // Choose random coordinates to spawn\n y = (int)(Math.random() * map[0].length); \n x = (int)(Math.random() * map.length);\n \n // Checks for an empty space\n if (map[y][x] == null) { \n \n // Create new wolf\n Wolf wolf = new Wolf(wolfHealth, x, y, 5); \n \n // Set wolf coordinates\n wolf.setX(x);\n wolf.setY(y);\n map[y][x] = wolf; \n \n // No space\n } else { \n i -= 1; \n }\n }\n \n }", "title": "" }, { "docid": "1626247124fffbef642fd80970b20875", "score": "0.45081478", "text": "public static void runAGeneration() {\n //Breeds Population until max population size for genetic drift\n breedAll();\n\n //Genocides Population by fitness\n genocide();\n\n System.out.println(\"\\nPopulation: \");\n\n //prints population\n printPopulation();\n }", "title": "" }, { "docid": "8462adf76df09447fdc6e3245aa50cc5", "score": "0.45078725", "text": "private void sendToNodes(Sm.RetrieveChunkResponse chunkResponse, ArrayList<Sm.StorageNode> toSend) {\n\n System.out.println(\"Nodes to send to: \" + toSend);\n\n if (toSend.size() != 0) {\n EventLoopGroup workerGroup = new NioEventLoopGroup();\n PatrolMessagePipeline pipeline = new PatrolMessagePipeline();\n Bootstrap bootstrap = new Bootstrap()\n .group(workerGroup)\n .channel(NioSocketChannel.class)\n .option(ChannelOption.SO_KEEPALIVE, true)\n .handler(pipeline);\n\n// for (Sm.StorageNode node: toSend) {\n\n //create StoreChunkRequest\n Sm.StoreChunk chunk = Sm.StoreChunk.newBuilder()\n .setFileName(chunkResponse.getFilename())\n .setChunkId(chunkResponse.getChunkId())\n .setChunkSize(chunkResponse.getChunkSize())\n .setData(chunkResponse.getData())\n .setChunkName(chunkResponse.getChunkName())\n .build();\n\n Sm.StorageNodes nodes = Sm.StorageNodes.newBuilder()\n .addAllNodeList(toSend)\n .build();\n\n Sm.StorageNode primary = toSend.get(0);\n System.out.println(\"Primary: \" + primary.getIp());\n System.out.println(\"Primary: \" + primary.getPort());\n\n //Connect to the first replica\n ChannelFuture cf = bootstrap.connect(primary.getIp(), primary.getPort());\n cf.syncUninterruptibly();\n\n //Prepare Request & Wrap\n Sm.StoreChunkRequest request = Sm.StoreChunkRequest.newBuilder()\n .setChunk(chunk)\n .setNodes(nodes)\n .build();\n\n Sm.StorageMessageWrapper msgWrapper = Sm.StorageMessageWrapper.newBuilder()\n .setScRequest(request)\n .build();\n\n //Send\n Channel chan = cf.channel();\n PatrolInboundHandler handler = chan.pipeline().get(PatrolInboundHandler.class);\n Sm.StorageMessageWrapper response = handler.request(msgWrapper);\n\n if (response.getScResponse().getSuccess()) {\n System.out.println(\"StoreChunk successful?: \" + response.getScResponse().getSuccess());\n Controller.getInstance().updateReplicasAndChunkNames(toSend, chunk.getChunkName());\n }\n\n workerGroup.shutdownGracefully();\n }\n }", "title": "" } ]
efaabf6d34148b39b9ca743b90281d79
The optional 'regExpsToMatch' tag is an ordered list of Regular Expressions used to match against the Stream Data. If not set then the regExpReturned is used to match.
[ { "docid": "0d9b0c4fcaf09ebe527495f09a2d80ea", "score": "0.48094314", "text": "public boolean isMatch(final String regExp) {\n\t\tif (defn.regExpsToMatch == null)\n\t\t\treturn regExp.equals(defn.regExpReturned);\n\n\t\tfor (final String re : defn.regExpsToMatch) {\n\t\t\tif (regExp.equals(re))\n\t\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}", "title": "" } ]
[ { "docid": "196e67dc01d08f3f5dba6faa9c29b871", "score": "0.61048627", "text": "String getRegex();", "title": "" }, { "docid": "f8c88acdf82c4e9268bebdc4c5e3a017", "score": "0.60053045", "text": "public abstract Pattern getMatchPattern();", "title": "" }, { "docid": "1927974e5a86d9ecac3aaad2df23e5d1", "score": "0.599867", "text": "public String regex() {\n return regex;\n }", "title": "" }, { "docid": "bd0714a5dd0075bcef5273d3db70956e", "score": "0.5927502", "text": "abstract public String getMatchExpression();", "title": "" }, { "docid": "2601a8bc4b5b73cacfcbb39da00decfc", "score": "0.5905606", "text": "public Pattern pattern() {\n if (pattern == null) {\n pattern = Pattern.compile( regex );\n }\n return pattern;\n }", "title": "" }, { "docid": "c52cdff4a273443e0c21f92f7aac1ea4", "score": "0.58271146", "text": "public String getRegex()\n {\n return regex;\n }", "title": "" }, { "docid": "c17af713187f02488c53badef15ebb61", "score": "0.57975703", "text": "public String getRegularExpression(){\n return lexema.getSet().getRegularExpression();\n }", "title": "" }, { "docid": "a94d84b8bae871159643b458d7c33318", "score": "0.553235", "text": "public String getRegex() {\n return getPropertyAsString(REGEX);\n }", "title": "" }, { "docid": "78aa91e98f9dc9b75ca480124fa5488f", "score": "0.5524207", "text": "public Pattern getPattern() {\n if (fPattern == null) fPattern = Pattern.compile(fRegex);\n return fPattern;\n }", "title": "" }, { "docid": "ff7c653d09971713cb7c496f922d3966", "score": "0.5504506", "text": "public Integer getRegexMatchLimit() {\n return regexMatchLimit;\n }", "title": "" }, { "docid": "d4f7b4db46dbe0ab1b51b2e69e9165e4", "score": "0.5489445", "text": "public java.lang.String getRegexp() {\n\t\t return regexp;\n\t }", "title": "" }, { "docid": "4e0089ca546e6b59dd09652ebedff3f6", "score": "0.5478949", "text": "@Test\n public final void testGetRegexp() {\n final Regexp result = match.getRegexp();\n assertEquals(regexpReal, result);\n }", "title": "" }, { "docid": "ff5541dacbe8b65173f2f6daad225376", "score": "0.5471287", "text": "public PatternMatcher() {\n\t\tsetupRegexes();\n\t}", "title": "" }, { "docid": "005319d66ae9c2922094ea510ee984e1", "score": "0.5435812", "text": "public boolean isRegularExpression() {\n\t\treturn regex;\n\t}", "title": "" }, { "docid": "6f102314663f636c89067821cc6e5742", "score": "0.54356796", "text": "@JsonProperty(\"regex\")\r\n @JacksonXmlProperty(localName = \"regex\")\r\n public String getRegex() {\r\n return regex;\r\n }", "title": "" }, { "docid": "1aa6418986a2a70306bc82d524749dc8", "score": "0.54218334", "text": "public Parser<String> match(final String regex) {\n\t\tfinal Acceptor<String> acceptor = cachedToken(regex);\n\n\t\treturn new Parser<String>() {\n\t\t\t@Override\n\t\t\tpublic String parse(Buffer buf) {\n\t\t\t\tBuffer.Token tok = buf.tok(Lexer.this);\n\t\t\t\tif(tok.acceptor == acceptor) {\n\t\t\t\t\tString ret = tok.seq().toString();\n\t\t\t\t\t// we found something\n\t\t\t\t\tbuf.advanceToNextToken();\n\t\t\t\t\treturn ret;\n\t\t\t\t} else {\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic String toString() {\n\t\t\t\treturn regex;\n\t\t\t}\n\t\t};\n\t}", "title": "" }, { "docid": "c5033476411f3851a179ef0c892ef686", "score": "0.5346921", "text": "public static String getURLRegex() { return url_regex; }", "title": "" }, { "docid": "dce30588013a9e273db37393ca42b129", "score": "0.53018427", "text": "public Map<Pattern, Class> getRegExes() {\n\t\treturn regExes;\n\t}", "title": "" }, { "docid": "71c782551d3d3435fee23d92d1174188", "score": "0.5282609", "text": "public static String getUserAgentRegex() { return useragent_regex; }", "title": "" }, { "docid": "4985c5e1dd2438c3fa8507ecb37c2903", "score": "0.5278325", "text": "private static Pattern getGroupRe()\n\t\t{\n\t\t\tif (_groupRe == null)\n\t\t\t\t_groupRe = Pattern.compile(GROUP_APP_RE);\n\t\t\treturn _groupRe;\n\t\t}", "title": "" }, { "docid": "3e65dbc4b01d7de307e4a4efbb8244cf", "score": "0.5268992", "text": "@ApiModelProperty(value = \"Regular expression used to validate inputs.\")\n @JsonProperty(\"regEx\")\n public String getRegEx() {\n return regEx;\n }", "title": "" }, { "docid": "ba89b3257a7bba73678dbe5c7fa8928b", "score": "0.52641153", "text": "public PatternFinder getMatch() {\n return match;\n }", "title": "" }, { "docid": "4f9b9b13b2fc48e030710935b79b636b", "score": "0.5261153", "text": "public Matcher createRegExp() throws InvalidExpressionException {\n Matcher result = Pattern.compile(expandRegExp()).matcher(\"\");\n return result;\n }", "title": "" }, { "docid": "cbdcbc5c1f143c02f653e6254f61ae6a", "score": "0.52527195", "text": "MatchPattern2(String pat, XPath exp, ElemTemplate template, int posInStylesheet,\n String targetString, Stylesheet stylesheet)\n {\n m_pattern = pat;\n m_template = template;\n m_posInStylesheet = posInStylesheet;\n m_targetString = targetString;\n m_stylesheet = stylesheet;\n m_expression = exp;\n }", "title": "" }, { "docid": "f03f45ebcfcd6177eeef8192cddd6182", "score": "0.5190394", "text": "private static Pattern getPattern(Properties props) {\n\n\t\tif (props.containsKey(TOKEN_REGEX)) {\n\t\t\ttry {\n\t\t\t\tString regex = props.getProperty(TOKEN_REGEX);\n\n\t\t\t\t// Remove regex from properties to prevent it from being processed further\n\t\t\t\tprops.remove(TOKEN_REGEX);\n\n\t\t\t\treturn Pattern.compile(regex);\n\n\t\t\t} catch (Exception e) {\n\t\t\t\tlogger.warning(messages.getString(\"InvalidRegex\") + \" \" + TOKEN_REGEX_DEFAULT);\n\t\t\t}\n\t\t}\n\n\t\treturn Pattern.compile(TOKEN_REGEX_DEFAULT);\n\t}", "title": "" }, { "docid": "2a16f7d6fc721015b8c0da8f22e059f2", "score": "0.5181668", "text": "public String getMatches()\n {\n return matches;\n }", "title": "" }, { "docid": "9b19a949c34158a58deaa10d7550a490", "score": "0.5171606", "text": "@java.lang.Override\n public com.google.privacy.dlp.v2.CustomInfoType.Regex getRegex() {\n if (regexBuilder_ == null) {\n if (typeCase_ == 3) {\n return (com.google.privacy.dlp.v2.CustomInfoType.Regex) type_;\n }\n return com.google.privacy.dlp.v2.CustomInfoType.Regex.getDefaultInstance();\n } else {\n if (typeCase_ == 3) {\n return regexBuilder_.getMessage();\n }\n return com.google.privacy.dlp.v2.CustomInfoType.Regex.getDefaultInstance();\n }\n }", "title": "" }, { "docid": "b0d1ad1a9716f762bb2e4c14dc118c42", "score": "0.51707065", "text": "private static String getRegExpResult (String regexp, String input){\n \t\tMatcher matcher;\n \t\tmatcher = Pattern.compile( regexp ).matcher(input);\n \t\tmatcher.find();\n \t\treturn matcher.group(1);\n \t}", "title": "" }, { "docid": "0901d2c392ee5fb5cf6c11b390a59f96", "score": "0.5168765", "text": "public List<ObservablePatternMatch> getMatches() {\r\n \t\treturn matches;\r\n \t}", "title": "" }, { "docid": "b3fa6188ae73a290d108c7f3d1a4a94d", "score": "0.5155219", "text": "public DefRegex() {this(\".*\");}", "title": "" }, { "docid": "98cf74e1aa372eabab75ccf43126e4df", "score": "0.51474595", "text": "public String getMatches() {\n\t\treturn matches;\n\t}", "title": "" }, { "docid": "42d8dc2e657c112b9e80ce3cce49d269", "score": "0.5130189", "text": "private Matcher getMatchResult(final String data) {\n\t\treturn _value.matcher(data);\n\t}", "title": "" }, { "docid": "015604b83863069a352f52884971b615", "score": "0.5124913", "text": "public List<Pattern> getRegexps() {\n return regexpList.stream().map(Regexp::getPattern)\n .collect(Collectors.toList());\n }", "title": "" }, { "docid": "bf5ea866f1421d7096c0854047a5f7f3", "score": "0.5091836", "text": "@java.lang.Deprecated\n public java.util.List<io.kubernetes.client.openapi.models.V1NodeSelectorRequirement> getMatchExpressions() {\n return matchExpressions != null ? build(matchExpressions) : null;\n }", "title": "" }, { "docid": "edf1c26a618c8951781da0b2f6165a1d", "score": "0.5091332", "text": "MatchType getMatchType() {\n return searchPattern.getMatchType();\n }", "title": "" }, { "docid": "fe05e8d0cdeec3305d0349c442759988", "score": "0.5090227", "text": "@java.lang.Deprecated\n public java.util.List<io.kubernetes.client.openapi.models.V1NodeSelectorRequirement>\n getMatchExpressions() {\n return matchExpressions != null ? build(matchExpressions) : null;\n }", "title": "" }, { "docid": "0be93fcd9870d4d97c6f2a33709f3fae", "score": "0.5056062", "text": "public StringDescription findMatch(StringDescription regularExpression, int group)\n throws Exception\n {\n String varName = getNextVariableName();\n emitLine(varName + \" = \"+windowVar+\".find_match(\"+regularExpression.getVarName()+\",group=\"+group+\")\");\n return new StringDescription(varName);\n }", "title": "" }, { "docid": "299e73697b7b27ff781c1ff0728d1bd1", "score": "0.50180763", "text": "public IElementType captureRegex() {\n popState();\n yybegin(AFTER_VALUE);\n CharSequence buffer = getBuffer();\n int currentOffset = getTokenStart();\n int bufferEnd = getBufferEnd();\n\n char firstBlockOpeningQuote = buffer.charAt(currentOffset);\n boolean isInterpolationAllowedInMatch = firstBlockOpeningQuote != '\\'';\n pushPreparsedToken(currentOffset++, currentOffset, REGEX_QUOTE_OPEN);\n\n // find block 1\n int firstBlockEndOffset = getRegexBlockEndOffset(currentOffset, firstBlockOpeningQuote);\n CustomToken firstBlockToken = null;\n if (firstBlockEndOffset > currentOffset) {\n firstBlockToken = new CustomToken(currentOffset, firstBlockEndOffset, isInterpolationAllowedInMatch ? LP_REGEX : LP_REGEX_SQ);\n pushPreparsedToken(firstBlockToken);\n }\n\n currentOffset = firstBlockEndOffset;\n\n // find block 2\n CustomToken secondBlockOpeningToken = null;\n CustomToken secondBlockToken = null;\n\n if (currentOffset < bufferEnd) {\n if (sectionsNumber == 1) {\n pushPreparsedToken(currentOffset++, currentOffset, REGEX_QUOTE_CLOSE);\n }\n else // should have second part\n {\n char secondBlockOpeningQuote = firstBlockOpeningQuote;\n if (firstBlockOpeningQuote == PerlString.getQuoteCloseChar(firstBlockOpeningQuote)) {\n secondBlockOpeningToken = new CustomToken(currentOffset++, currentOffset, REGEX_QUOTE);\n pushPreparsedToken(secondBlockOpeningToken);\n }\n else {\n pushPreparsedToken(currentOffset++, currentOffset, REGEX_QUOTE_CLOSE);\n currentOffset = lexWhiteSpacesAndComments(currentOffset);\n\n if (currentOffset < bufferEnd) {\n secondBlockOpeningQuote = buffer.charAt(currentOffset);\n secondBlockOpeningToken = new CustomToken(currentOffset++, currentOffset, REGEX_QUOTE_OPEN);\n pushPreparsedToken(secondBlockOpeningToken);\n }\n }\n\n if (currentOffset < bufferEnd) {\n int secondBlockEndOffset = getRegexBlockEndOffset(currentOffset, secondBlockOpeningQuote);\n\n if (secondBlockEndOffset > currentOffset) {\n secondBlockToken = new CustomToken(\n currentOffset, secondBlockEndOffset, secondBlockOpeningQuote == '\\'' ? LP_STRING_QQ_RESTRICTED : LP_STRING_RE);\n pushPreparsedToken(secondBlockToken);\n currentOffset = secondBlockEndOffset;\n }\n }\n\n if (currentOffset < bufferEnd) {\n pushPreparsedToken(currentOffset++, currentOffset, REGEX_QUOTE_CLOSE);\n }\n }\n }\n\n // check modifiers for x\n assert regexCommand != null;\n String allowedModifiers = ALLOWED_REGEXP_MODIFIERS.get(regexCommand);\n\n while (currentOffset < bufferEnd) {\n char currentChar = buffer.charAt(currentOffset);\n int modifierEndOffset = currentOffset + 1;\n if (!StringUtil.containsChar(allowedModifiers, currentChar)) // unknown modifier\n {\n break;\n }\n else if (currentChar == 'a' && modifierEndOffset < bufferEnd && buffer.charAt(modifierEndOffset) == 'a') {\n modifierEndOffset++;\n }\n else if (currentChar == 'x') // mark as extended\n {\n if (firstBlockToken != null) {\n if (modifierEndOffset < bufferEnd && buffer.charAt(modifierEndOffset) == 'x') {\n firstBlockToken.setTokenType(isInterpolationAllowedInMatch ? LP_REGEX_XX : LP_REGEX_XX_SQ);\n modifierEndOffset++;\n }\n else {\n firstBlockToken.setTokenType(isInterpolationAllowedInMatch ? LP_REGEX_X : LP_REGEX_X_SQ);\n }\n }\n }\n else if (currentChar == 'e') // mark as evaluated\n {\n if (modifierEndOffset < bufferEnd && buffer.charAt(modifierEndOffset) == 'e') {\n modifierEndOffset++;\n }\n if (secondBlockOpeningToken != null) {\n IElementType secondBlockOpeningTokenType = secondBlockOpeningToken.getTokenType();\n if (secondBlockOpeningTokenType == REGEX_QUOTE_OPEN || secondBlockOpeningTokenType == REGEX_QUOTE_OPEN_E) {\n secondBlockOpeningToken.setTokenType(REGEX_QUOTE_OPEN_E);\n }\n else if (secondBlockOpeningTokenType == REGEX_QUOTE || secondBlockOpeningTokenType == REGEX_QUOTE_E) {\n secondBlockOpeningToken.setTokenType(REGEX_QUOTE_E);\n }\n else {\n throw new RuntimeException(\"Bug, got: \" + secondBlockOpeningTokenType);\n }\n }\n if (secondBlockToken != null) {\n secondBlockToken.setTokenType(getLPCodeBlockElementType());\n }\n }\n\n pushPreparsedToken(currentOffset, modifierEndOffset, REGEX_MODIFIER);\n currentOffset = modifierEndOffset;\n }\n\n return getPreParsedToken();\n }", "title": "" }, { "docid": "8816f074dcffc57f58c325ca4a633b2c", "score": "0.5009988", "text": "public ParsableRegExp(String RegExp)\n\t{\n\t\tp=Pattern.compile(RegExp);\n\t\tdata=new ArrayList<String>();\n\t}", "title": "" }, { "docid": "a710ae98dea2611cda0ab1000ad06ea8", "score": "0.50034887", "text": "@java.lang.Override\n public com.google.privacy.dlp.v2.CustomInfoType.RegexOrBuilder getRegexOrBuilder() {\n if ((typeCase_ == 3) && (regexBuilder_ != null)) {\n return regexBuilder_.getMessageOrBuilder();\n } else {\n if (typeCase_ == 3) {\n return (com.google.privacy.dlp.v2.CustomInfoType.Regex) type_;\n }\n return com.google.privacy.dlp.v2.CustomInfoType.Regex.getDefaultInstance();\n }\n }", "title": "" }, { "docid": "ab6e9e9ec40adff12bb1b9bcdefbf25a", "score": "0.4997079", "text": "@Named(\"regex\")\n\tSyntaxSymbol regex(@Assisted(\"name\") String name, @Assisted(\"regex\") String regex);", "title": "" }, { "docid": "b4bd0ec76908c3156848f37bc2cc1563", "score": "0.4991936", "text": "final protected byte[] getMatch() {\n return matcher.getMatch();\n }", "title": "" }, { "docid": "5653eea20b1a2114ea6cd8aad5fede65", "score": "0.49855974", "text": "private MyStringBuilder2[] regMatchFromNode(CNode startNode, MyStringBuilder2[] result, String[] pats) {\r\n\t\tif (startNode == null) {\r\n\t\t\treturn null;\r\n\t\t} else if (matchPatternRec(startNode, result, pats, 0)) { // if the match succeed here\r\n\t\t\treturn result;\r\n\t\t} else {\r\n\t\t\treturn regMatchFromNode(startNode.next, result, pats);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "6b0b85f18af57365fe327938b918c024", "score": "0.49792215", "text": "public MyStringBuilder2 [] regMatch(String [] pats)\r\n\t{\r\n\t\tMyStringBuilder2[] result = new MyStringBuilder2[pats.length]; // result array of MyStringBuilder2 for further use\r\n\t\tinitStringBuilderArrayRec(0, result); // create the array for the result, every builder will be empty at first\r\n\t\treturn regMatchFromNode(firstC, result, pats); // try from the first node\r\n\t}", "title": "" }, { "docid": "c7e2518f90cb9459499a28b6ba43747f", "score": "0.49791718", "text": "public PatternMatcher createMatcher();", "title": "" }, { "docid": "5c422ee7dff9dac4bcd4e87422fd8c62", "score": "0.49712265", "text": "public void setRegexMatchLimit(Integer regexMatchLimit) {\n this.regexMatchLimit = regexMatchLimit;\n }", "title": "" }, { "docid": "bb9f0cf690c67f32b14471cbb1026e9b", "score": "0.49564213", "text": "public Re(){\n \n \n //Class\n matching.add(new Re((Pattern.compile(\"class\")),\"class\") );\n \n matching.add(new Re((Pattern.compile(\"main\")),\"main\") );\n \n // Data Types\n matching.add(new Re((Pattern.compile(\"norm|deci|alpha|word|bool\")),\"DataType\") ); \n matching.add(new Re((Pattern.compile(\"void\")),\"void\") ); \n \n //Relation operator\n matching.add(new Re((Pattern.compile(\"<=|>=|==|<|>|!=\")),\"Rell-Operator\") );\n \n //Airthmetic operator\n matching.add(new Re((Pattern.compile(\"\\\\+|\\\\-\")),\"Add-Sub\") );\n matching.add(new Re((Pattern.compile(\"/\")),\"Divide\") );\n matching.add(new Re((Pattern.compile(\"\\\\*\")),\"Multiply\") );\n \n //Assignment Operator \n matching.add(new Re((Pattern.compile(\"=\")),\"Assign\") );\n matching.add(new Re((Pattern.compile(\"=|\\\\+=|\\\\-=\")),\"Assignment-Operator\") );\n \n matching.add(new Re((Pattern.compile(\"array\")),\"DataStructure\") ); \n \n //Increament/Decreament\n matching.add(new Re((Pattern.compile(\"\\\\+\\\\+|\\\\-\\\\-\")),\"Inc-Dec\") );\n \n //Condition\n matching.add(new Re((Pattern.compile(\"check\")),\"if\") );\n matching.add(new Re((Pattern.compile(\"else\")),\"else\") );\n // matching.add(new Re((Pattern.compile(\"check-else\")),\"if-else\") );\n matching.add(new Re((Pattern.compile(\"catch\")),\"switch\") );\n matching.add(new Re((Pattern.compile(\"that\")),\"that\") );\n matching.add(new Re((Pattern.compile(\"func\")),\"function\") );\n matching.add(new Re((Pattern.compile(\"Do\")),\"Do\") );\n matching.add(new Re((Pattern.compile(\"feloop\")),\"feloop\") );\n matching.add(new Re((Pattern.compile(\"in\")),\"in\") );\n matching.add(new Re((Pattern.compile(\"obj\")),\"obj\") );\n\n\n \n //loop\n matching.add(new Re((Pattern.compile(\"floop\")),\"for\") );\n matching.add(new Re((Pattern.compile(\"wloop\")),\"while\") );\n //matching.add(new Re((Pattern.compile(\"wloop\")),\"wloop\") );\n matching.add(new Re((Pattern.compile(\"feloop\")),\"for-in\") );\n \n matching.add(new Re((Pattern.compile(\"break\")),\"break\") );\n \n //constant \n matching.add(new Re((Pattern.compile(\"[0-9]+\")),\"IntegerConstant\") );\n matching.add(new Re((Pattern.compile(\"'[a-z]*'\")),\"String-Constant\") );\n matching.add(new Re((Pattern.compile(\"\\\"[a-z]\\\"\")),\"CharConstant\") ); \n \n //Id\n matching.add(new Re((Pattern.compile(\"[a-z]+[[a-z]*[0-9]*]*\")),\"id\") );\n \n \n matching.add(new Re((Pattern.compile(\"[0-9]*[.][0-9]*\")),\"FloatConstant\") );\n matching.add(new Re((Pattern.compile(\"[0-9]*[.][0-9]+\")),\"FloatConstant\") );\n \n\n \n //Error\n // matching.add(new Re((Pattern.compile(\"''[a-z]*\\\\n\")),\"Char-Constant-Error\") );\n matching.add(new Re((Pattern.compile(\"!|@|#|\\\\$|\\\\^|\\\\&|\\\\?|_\")),\"Symbol-error\") );\n matching.add(new Re((Pattern.compile(\"'[a-z]*\")),\"String-Constant-Error\") );\n matching.add(new Re((Pattern.compile(\"\\\"[a-z]\")),\"Char-Constant-Error\") ); \n // matching.add(new Re((Pattern.compile(\"[a-z]+.[0-9]*\")),\"FloatConstant\") );\n //constant\n\n //coment \n// matching.add(new Re((Pattern.compile(\"_!\")),\"MulComent\") );\n// matching.add(new Re((Pattern.compile(\"_![.+|\\\\n]*\")),\"MulComent\") );\n// matching.add(new Re((Pattern.compile(\"_![.+|\\\\n]*!\")),\"mulComent\") );\n// matching.add(new Re((Pattern.compile(\"_![.+|\\\\n]*!_\")),\"mulComent\") );\n \n // puncuator\n matching.add(new Re((Pattern.compile(\"\\\\:\")),\":\") );\n matching.add(new Re((Pattern.compile(\"\\\\{\")),\"{\") );\n matching.add(new Re((Pattern.compile(\"\\\\}\")),\"}\") );\n matching.add(new Re((Pattern.compile(\"\\\\;\")),\";\") );\n matching.add(new Re((Pattern.compile(\"\\\\,\")),\",\") );\n matching.add(new Re((Pattern.compile(\"\\\\(\")),\"(\") );\n matching.add(new Re((Pattern.compile(\"\\\\)\")),\")\") );\n matching.add(new Re((Pattern.compile(\"\\\\[\")),\"[\") );\n matching.add(new Re((Pattern.compile(\"\\\\]\")),\"]\") );\n matching.add(new Re((Pattern.compile(\" \")),\"space\") );\n matching.add(new Re((Pattern.compile(\".\")),\".\") );\n matching.add(new Re((Pattern.compile(\"\\\\n\")),\"\\n\") );\n }", "title": "" }, { "docid": "033f6ebb18fcb3fb66686445cf43bda6", "score": "0.4953176", "text": "String find(String regex) throws LogException;", "title": "" }, { "docid": "38251295ca933213a4637a52ffc8ff39", "score": "0.49412516", "text": "public static String getDomainRegex() { return domain_regex; }", "title": "" }, { "docid": "1de90e7df7b79caad1730abb32db98e1", "score": "0.49257398", "text": "@Override\n\tpublic String getAttackRegex() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "ced92e7d3a40ec6bf4d6896fb10ab0b4", "score": "0.49237138", "text": "@SuppressWarnings(\"rawtypes\")\n protected abstract boolean matches(Object data, Map regex) throws Exception;", "title": "" }, { "docid": "991bacfccb10b6768f57f0104ddf2dad", "score": "0.4922163", "text": "@JsonProperty(\"regex\")\r\n @JacksonXmlProperty(localName = \"regex\")\r\n public void setRegex(String regex) {\r\n this.regex = regex;\r\n }", "title": "" }, { "docid": "34b24b61b41d3c78fe4709d09e3fca96", "score": "0.49195278", "text": "private Matcher getMatcher(String value) {\n if (matcher == null) {\n matcher = pattern.matcher(value);\n } else {\n matcher.reset(value);\n }\n return matcher;\n }", "title": "" }, { "docid": "4810b1351bc1ead7d99eabb669df2f12", "score": "0.49016416", "text": "public Regexp newRegexp() throws RuntimeException\n {\n String systemDefault = System.getProperty(\"izpack.regexp.regexpimpl\");\n if (systemDefault != null)\n {\n return createRegexpInstance(systemDefault);\n // XXX should we silently catch possible exceptions and try to\n // load a different implementation?\n }\n\n try\n {\n testAvailability(\"java.util.regex.Matcher\");\n return createRegexpInstance(\"com.izforge.izpack.util.regex.JavaRegexp\");\n }\n catch (Exception be)\n {\n // ignore\n }\n\n /*\n try {\n testAvailability(\"org.apache.oro.text.regex.Pattern\");\n return createRegexpInstance(\"com.izforge.izpack.util.regex.JakartaOroRegexp\");\n } catch (Exception be) {\n // ignore\n }\n */\n\n /*\n try {\n testAvailability(\"org.apache.regexp.RE\");\n return createRegexpInstance(\"com.izforge.izpack.util.regex.JakartaRegexpRegexp\");\n } catch (Exception be) {\n // ignore\n }\n */\n\n throw new RuntimeException(\"No supported regular expression matcher found\");\n }", "title": "" }, { "docid": "2cdee02a590183386d3cd28ee2c9c7db", "score": "0.4891564", "text": "public RegexView getRegexView() {\n\t\treturn regexView;\n\t}", "title": "" }, { "docid": "43cb055dd4b7af9172e1f5df63ef2941", "score": "0.4887899", "text": "@Override\n protected Pattern getPattern() {\n return THE_PATTERN;\n }", "title": "" }, { "docid": "5da70594e12bd10bdb3516760bbf4380", "score": "0.4869306", "text": "public static String getEmailRegex() { return email_regex; }", "title": "" }, { "docid": "ec937daa4572dbe6a2f544e57e08ae85", "score": "0.48633423", "text": "public String matches(final String regex) {\n return EasyMock.matches(regex);\n }", "title": "" }, { "docid": "8e385f70d01d38994587c0e9d71cb67c", "score": "0.4857551", "text": "@Test\n\tpublic void testSimpleTestRegex() throws IOException {\n\t\tString[] args = {\n\t\t\t\t// add context for 25 chars preceding and 40 post\n\t\t\t\t\"--context\", \"25\", \"40\",\n\t\t\t\t\"--r.regex\", \n\t\t\t \t\"regex/simpletest.xml\",\n\t\t};\n\t\tRegexPlugin regexPlugin = new RegexPlugin(args);\n\t}", "title": "" }, { "docid": "69c633eb09780527845b5f8d1990162b", "score": "0.48513207", "text": "interface StreamMatcher {\n /**\n * Controlla se, a partire dal carattere puntato, esiste una sottostringa che matcha con l'espressione regolare\n * @return <tt>true</tt> se e solo se esiste una stringa che matcha\n * @throws IOException\n * se si verifica un errore di I/O\n */\n\tboolean nextMatches() throws IOException;\n\n\t/**\n\t * Controlla se c'è ancora qualcosa da leggere nell'input\n\t * @return <tt>true</tt> se e solo se c'è qualcosa da leggere\n\t */\n\n\tboolean hasNext();\n\n\t/**\n\t * Restituisce la sottostringa che non matcha con l'espressione regolare\n\t * @return la sottostringa che non matcha\n\t */\n\tString getSkipped();\n\n\t/**\n\t * Restituisce l'ultima sottostringa che ha matchato con l'espressione regolare\n\t * @return l'ultima sottostringa che ha matchato\n\t */\n\tString group();\n\n\t/**\n\t * Restituisce l'ultima sottostringa che ha matchato, appartenente al gruppo di cattura\n\t * @param group\n * gruppo di cattura\n\t * @return l'ultima sottostringa che ha matchato\n\t */\n\tString group(int group);\n}", "title": "" }, { "docid": "375cc65337ed86c6ffc1f8f779bdb73a", "score": "0.48507687", "text": "public RegExManifestScanner( final String aRegEx )\n {\n this.pattern = Pattern.compile( aRegEx );\n }", "title": "" }, { "docid": "41153b5e1ec9e8d10ebd543461cfd9b2", "score": "0.48444575", "text": "static Vector<String> RegularExpression(String log){\n\n String IP_re = \"((?:[01]?\\\\d\\\\d?|2[0-4]\\\\d|25[0-5])\\\\.\" +\n \"(?:[01]?\\\\d\\\\d?|2[0-4]\\\\d|25[0-5])\\\\.\" +\n \"(?:[01]?\\\\d\\\\d?|2[0-4]\\\\d|25[0-5])\\\\.\" +\n \"(?:[01]?\\\\d\\\\d?|2[0-4]\\\\d|25[0-5]))\";\n String Date_re = \"(?:\\\\d{2}\\\\/(?:Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\\\\/\\\\d{4})\";\n String Time_re = \"(?:[0-5][0-9]:[0-5][0-9]:[0-5][0-9])\";\n String GMT_re = \"(?:\\\\+(?:0[0-9]|1[0-2])00)\";\n String HTTP_Method_re = \"(HEAD|GET|POST|PUT|PATCH|DELETE)\";\n String FullTime_re = \"\\\\[(\" + Date_re + \":\" + Time_re + \" \" + GMT_re + \")\\\\]\";\n String URL_re = \"([-a-zA-Z0-9+&@#/%?=~_|!:,.;<>[\\\\u4e00-\\\\u9fa5]]+)\";\n String HTTP_Version_re = \"(HTTP\\\\/(?:0.9|1.0|1.1|2))\";\n String Status_re = \"([1-5]\\\\d{2})\";\n String Packet_Size_re = \"((?:[0-9]+)|(?:\\\\-))\";\n\n String RE = \"^\" + IP_re\n + \" - - \" + FullTime_re\n + \" \\\"\" + HTTP_Method_re\n + \" \" + URL_re + \" \"\n + HTTP_Version_re + \"\\\" \"\n + Status_re //combine whole regular expression\n + \" \" + Packet_Size_re + \"$\"; //所有RE整合\n\n if (!log.matches(RE)) //若沒有match成功,則回傳null\n return null;\n\n Vector<String> Log = new Vector(); //一筆資料做切割後所得到的欄位\n Pattern r = Pattern.compile(RE);\n Matcher m = r.matcher(log);\n if(m.find()){\n for(int i = 0; i <= m.groupCount(); i++){\n Log.add(m.group(i));\n }\n }\n else\n System.out.println(\"NO MATCH\");/**/\n\n return Log;\n }", "title": "" }, { "docid": "f11974363242eeb2f1629202135d0c74", "score": "0.479746", "text": "public static StringBuffer getInfo(StringBuffer textToSearch, String regExp){\n\t\ttry{\n\t\t\tStringBuffer sIsolated = new StringBuffer(\"\");\n\t\t\tint iLIsolatorIndex = 0;\n\t\t\tString sLeft = new String(regExp);\n\t\t\tRE leftCntxt = new RE(sLeft);\n\t\t\tRE regLIsolator = new RE(leftCntxt);\n\t\t\tREMatchEnumeration ctxtLMatch = regLIsolator.getMatchEnumeration(textToSearch);\n\t\t\twhile (ctxtLMatch.hasMoreMatches()){\n\t\t\t\tsIsolated.append(ctxtLMatch.nextMatch().toString());\n\t\t\t\tsIsolated.append(\"\\n\");\n\t\t\t}\n\t\t\treturn(sIsolated);\n\t\t}\n\t\tcatch(REException e){\n\t\t\tSystem.out.println(\"RE Exception\");\n\t\t\treturn(null);\n\t\t}\n\t}", "title": "" }, { "docid": "bada8572e696db1b0ffd93b594eddcc4", "score": "0.47957194", "text": "public interface RegexpTarget {\n /** Gets called when a pattern in a RegexpPool matches.\n * This method is called by RegexpPool.match() who passes the return\n * value from found() back to its caller.\n * @param remainder the string that matched the * in the pattern.\n */\n Object found(String remainder);\n}", "title": "" }, { "docid": "c28e473531380856d5e027d9489a211a", "score": "0.47953776", "text": "public MyStringBuilder2[] regMatchAdvanced(String[] pats) {\r\n\t\tExpression[] expressions = Expression.getExpressions(pats);\r\n\t\tMyStringBuilder2[] result = new MyStringBuilder2[expressions.length];\r\n\t\tinitStringBuilderArrayRec(0, result);\r\n\t\tresult = loopNode(firstC, expressions, result);\r\n\t\treturn result;\r\n\t}", "title": "" }, { "docid": "8b4e88ee15d25f38e3b3da624301dc99", "score": "0.47931397", "text": "@Override\r\n\tpublic List<? extends MatchResult> getMatch(String[] refStrings) {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "033c01526648db9b35b39b9bd695fac5", "score": "0.47915897", "text": "@java.lang.Override\n public com.google.privacy.dlp.v2.CustomInfoType.RegexOrBuilder getRegexOrBuilder() {\n if (typeCase_ == 3) {\n return (com.google.privacy.dlp.v2.CustomInfoType.Regex) type_;\n }\n return com.google.privacy.dlp.v2.CustomInfoType.Regex.getDefaultInstance();\n }", "title": "" }, { "docid": "b9ee2f22010fdefa819ac0e0b14816c8", "score": "0.4784372", "text": "java.lang.String getPattern();", "title": "" }, { "docid": "8bc156384c10088572ad29a524729636", "score": "0.4783159", "text": "public static String getFloatRegex() { return float_regex; }", "title": "" }, { "docid": "13323bb3488a3d350012e3a4ba021604", "score": "0.4772959", "text": "public String match() {\n check();\n return context.getMatch();\n }", "title": "" }, { "docid": "de5776bd7fbce410113965dd3c22d8ec", "score": "0.4772145", "text": "@java.lang.Override\n public com.google.privacy.dlp.v2.CustomInfoType.Regex getRegex() {\n if (typeCase_ == 3) {\n return (com.google.privacy.dlp.v2.CustomInfoType.Regex) type_;\n }\n return com.google.privacy.dlp.v2.CustomInfoType.Regex.getDefaultInstance();\n }", "title": "" }, { "docid": "4350f9f29e74f33c9aa46734083e3510", "score": "0.47647756", "text": "private boolean searchPatternInContent(DownloaderResult result, String regex, State newState)\n {\n String content = result.getContent();\n if (content != null && content.length() > 0 && regex != null && regex.length() > 0)\n {\n Pattern p = Pattern.compile(regex);\n Matcher m = p.matcher(content);\n if (m.find())\n {\n result.setState(newState);\n return true;\n }\n }\n return false;\n }", "title": "" }, { "docid": "939529b20aa656eb276dab37034c9888", "score": "0.47647724", "text": "@Override\n\t\tpublic void matchFound(PatternMatchEvent event) {\n\t\t\ttry {\n\t\t\t\tSystem.out.println(\"Matched with the Regex at \"+System.currentTimeMillis());\n\t\t\t\tint offset = event.getOffset();\n\t\t\t\tint length = event.getLength();\n\t\t\t\tString content = this.console.getDocument().get(\n\t\t\t\t\t\toffset, length);\n\t\t\t\tSystem.out.println(content);\n\n\t\t\t\t//making a pro active call\n\t\t\t\tlong started=System.currentTimeMillis();\n\t\t\t\tSearchEventManager manager = new SearchEventManager(content);\n\t\t\t\tmanager.fire_search_operation2();\n\t\t\t\tlong ended=System.currentTimeMillis();\n\t\t\t\tSystem.out.println(\"Time elapsed:\"+(ended-started)/1000);\n\t\t\t\t\n\t\t\t} catch (Exception exc) {\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "a55212b603a941d393c826b5f1b85760", "score": "0.47581354", "text": "public void checkMatch(StringDescription regularExpression)\n throws Exception\n {\n emitLine(windowVar+\".find_match(\"+regularExpression.getVarName()+\")\");\n }", "title": "" }, { "docid": "3a7c95c67e3063083e43ea3a658008e9", "score": "0.47391573", "text": "public static String regexGetMatch(String text, String regex, boolean matchCase) {\n return regexGetMatchGroup(text, regex, 0, matchCase);\n }", "title": "" }, { "docid": "9f78e952f594c52a67eb7efee8c38c11", "score": "0.47312275", "text": "public void addRegexp(int prefixLength, \n String regexp,\n String flags,\n E value,\n boolean isShort, \n boolean isIgnore,\n boolean ifAbsent)\n throws PatternSyntaxException\n {\n RegexpEntry<E> entry\n = new RegexpEntry<E>(prefixLength, regexp, flags, value);\n \n for (int i = 0; i < _regexps.size(); i++) {\n RegexpEntry<E> re = _regexps.get(i);\n \n /*\n if (re.equals(entry)) {\n _regexps.remove(i);\n break;\n }\n */\n if (re.equals(entry)) {\n if (ifAbsent) {\n // server/1p1b - registration does not overwrite\n return;\n }\n else {\n _regexps.remove(i);\n break;\n }\n }\n }\n \n if (isShort)\n entry.setShortMatch();\n \n _regexps.add(entry);\n }", "title": "" }, { "docid": "0056fdd1ee9cdfa822ca24caf02f7c7d", "score": "0.4723927", "text": "public void addRegexp(int prefixLength, String pattern,\n String regexp, String flags,\n E value, boolean isShort,\n boolean isIgnore,\n boolean ifAbsent,\n boolean isSimple)\n throws PatternSyntaxException\n {\n RegexpEntry<E> entry\n = new RegexpEntry<E>(prefixLength, pattern, regexp, flags, value,\n isIgnore, isSimple);\n \n for (int i = _regexps.size() - 1; i >= 0; i--) {\n RegexpEntry<E> re = _regexps.get(i);\n \n if (re.equals(entry)) {\n if (ifAbsent) {\n return;\n }\n else {\n _regexps.remove(i);\n }\n }\n }\n \n if (isShort)\n entry.setShortMatch();\n \n _regexps.add(entry);\n }", "title": "" }, { "docid": "eb5bcb50d99ba165b0673003f351ecdb", "score": "0.4702245", "text": "public StringDescription findMatchNoNewlines(StringDescription regularExpression, int group)\n throws Exception\n {\n String varName = getNextVariableName();\n emitLine(varName + \" = \"+windowVar+\".find_match_no_newlines(\"+regularExpression.getVarName()+\",group=\"+group+\")\");\n return new StringDescription(varName);\n }", "title": "" }, { "docid": "c825e38a71c04f9f032b781b73ca0c86", "score": "0.46858552", "text": "public int setPattern(String regex)\n\t{\n\t\tpattern = Pattern.compile(regex);\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "1644505381c0ea0c22bd916eaeb1b8f0", "score": "0.46800008", "text": "public static String getIPv4Regex() { return ipv4_regex; }", "title": "" }, { "docid": "d06268089201a781024fec3422656246", "score": "0.46690026", "text": "@Override\n public String getPattern() {\n return super.getPattern();\n }", "title": "" }, { "docid": "9594ad6f89bcc3b8e8f8de26c90af019", "score": "0.46558455", "text": "REMatch(int f_subs, int f_index) {\n start = new int[f_subs+1];\n end = new int[f_subs+1];\n count = new int[f_subs+1];\n anchor = f_index;\n clear(f_index);\n }", "title": "" }, { "docid": "0aee0cce33386f5f8522946057b76a06", "score": "0.46543315", "text": "public CharSequence getPattern() {\r\n return _pattern;\r\n }", "title": "" }, { "docid": "d7719b4aa6c01f4e7642d0957afe7804", "score": "0.4649961", "text": "void readRegExp(final int startToken) throws IOException\n\t{\n\t\tstringBufferTop = 0;\n\t\tif (startToken == Token1.ASSIGN_DIV)\n\t\t{\n\t\t\t// Miss-scanned /=\n\t\t\taddToString('=');\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif (startToken != Token1.DIV)\n\t\t\t\tKit.codeBug();\n\t\t}\n\n\t\tint c;\n\t\tboolean inClass = false;\n\t\twhile ((c = getChar()) != '/' || inClass)\n\t\t{\n\t\t\tif (c == '\\n' || c == EOF_CHAR)\n\t\t\t{\n\t\t\t\tungetChar(c);\n\t\t\t\tthrow parser.reportError(\"msg.unterminated.re.lit\");\n\t\t\t}\n\t\t\tif (c == '\\\\')\n\t\t\t{\n\t\t\t\taddToString(c);\n\t\t\t\tc = getChar();\n\t\t\t}\n\t\t\telse if (c == '[')\n\t\t\t{\n\t\t\t\tinClass = true;\n\t\t\t}\n\t\t\telse if (c == ']')\n\t\t\t{\n\t\t\t\tinClass = false;\n\t\t\t}\n\n\t\t\taddToString(c);\n\t\t}\n\t\tfinal int reEnd = stringBufferTop;\n\n\t\twhile (true)\n\t\t{\n\t\t\tif (matchChar('g'))\n\t\t\t\taddToString('g');\n\t\t\telse if (matchChar('i'))\n\t\t\t\taddToString('i');\n\t\t\telse if (matchChar('m'))\n\t\t\t\taddToString('m');\n\t\t\telse\n\t\t\t\tbreak;\n\t\t}\n\n\t\tif (isAlpha(peekChar()))\n\t\t{\n\t\t\tthrow parser.reportError(\"msg.invalid.re.flag\");\n\t\t}\n\n\t\tthis.string = new String(stringBuffer, 0, reEnd);\n\t\tthis.regExpFlags = new String(stringBuffer, reEnd, stringBufferTop - reEnd);\n\t}", "title": "" }, { "docid": "2cda7837db23ca484a97b057ae82063e", "score": "0.4634079", "text": "public final SubLRegexPattern toRegexPattern() { // SubLHashtableIterator\n Errors.error(this + \" is not of type: REGEX-PATTERN.\");\n return null;\n }", "title": "" }, { "docid": "1fe402c4a8a73582e3142937713d3e5f", "score": "0.46314037", "text": "@Override\n protected Pattern getPattern() {\n return null;\n }", "title": "" }, { "docid": "0d78ef5267946192092e52cb7604be6c", "score": "0.46286747", "text": "public <A> Parser<A> match(final String regex, @NotNull final Acceptor<A> fn) {\n\n\t\tadd(regex, fn);\n\n\t\treturn new Parser<A>() {\n\t\t\t@Override\n\t\t\tpublic A parse(Buffer buf) {\n\t\t\t\tBuffer.Token tok = buf.tok(Lexer.this);\n\t\t\t\tif(tok.acceptor == fn) {\n\t\t\t\t\tA a = fn.apply(tok);\n\t\t\t\t\tif(a != null) {\n\t\t\t\t\t\tbuf.advanceToNextToken();\n\t\t\t\t\t\treturn a;\n\t\t\t\t\t} else {\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic String toString() {\n\t\t\t\treturn regex;\n\t\t\t}\n\t\t};\n\t}", "title": "" }, { "docid": "33619c42fdff24c70d3963e0d23b2073", "score": "0.4628056", "text": "public void setRegexp(java.lang.String regexp) {\n\t\t this.regexp = regexp;\n\t }", "title": "" }, { "docid": "a7b37407c296b62359336ae6c3104d02", "score": "0.46276948", "text": "public static void main( String args[] ){\n String line = \"JAMon Label=com.intuit.ctodev.fdp.exp.api.ITestResource.getReq, Units=ms.\";\n String pattern = \"JAMon Label=(.*), Units=.*\";\n\n // Create a Pattern object\n Pattern r = Pattern.compile(pattern);\n\n // Now create matcher object.\n Matcher m = r.matcher(line);\n if (m.find( )) {\n System.out.println(\"Found value: \" + m.group(1) );\n\n } else {\n System.out.println(\"NO MATCH\");\n }\n\n\n\n\n\n\n\n line = \"sourceData/thumbnail\";\n String line2 = \"/thumbnail\";\n\n pattern = \"sourceData|^$/thumbnail\";\n\n r = Pattern.compile(pattern);\n\n // Now create matcher object.\n m = r.matcher(line);\n\n\n\n\n line = \"\";\n\n pattern = \"^$\";\n\n r = Pattern.compile(pattern);\n\n // Now create matcher object.\n m = r.matcher(line);\n\n if (m.find( )) {\n System.out.println(\"Found value empty line: \" + m.group(0) );\n\n } else {\n System.out.println(\"Found value empty line: NO MATCH\");\n }\n\n\n\n\n if (m.find( )) {\n System.out.println(\"Found value line 1: \" + m.group(0) );\n\n } else {\n System.out.println(\"NO MATCH\");\n }\n\n m = r.matcher(line2);\n if (m.find( )) {\n System.out.println(\"Found value line 2: \" + m.group(0) );\n\n } else {\n System.out.println(\"NO MATCH\");\n }\n\n\n\n\n }", "title": "" }, { "docid": "1843070735c93eb9272d6d9032439725", "score": "0.4622681", "text": "public CharsRegion evaluateRegexp(ScannerRange range) {\n IMarkScanner mark = range;\n final int currOffset = mark.getMark();\n Regex useRegexp = this.regexp;\n if (this.containsSlashG) {\n // \\G - means that we should match only if at the end of a previous match\n // so, let's see if this is the case.\n int lastRegexpMatchOffset = range.getLastRegexpMatchOffset();\n if (currOffset != lastRegexpMatchOffset) {\n useRegexp = regexpWithoutSlashG;\n }\n }\n\n Tuple<Utf8WithCharLen, Integer> lineFromOffsetAsBytes = range.getLineFromOffsetAsBytes(currOffset);\n\n if (lineFromOffsetAsBytes == null) {\n return null;\n }\n Utf8WithCharLen bytes = lineFromOffsetAsBytes.o1;\n int columnInBytes = lineFromOffsetAsBytes.o2;\n\n byte[] b = bytes.getBytes();\n Matcher matcher = useRegexp.matcher(b);\n int i = matcher.match(columnInBytes, b.length, Option.CAPTURE_GROUP);\n int newOffset;\n boolean found = i >= 0;\n if (found) {\n int matchEnd = matcher.getEnd();\n int end = bytes.getCharPosFromBytesPos(matchEnd);\n\n if (matchEnd == b.length - 1 && bytes.getLastCharEquals2LenLineDelimiter()) {\n //Workaround for \\r\\n match.\n end += 1;\n }\n\n int length = end;\n newOffset = currOffset - bytes.getCharPosFromBytesPos(columnInBytes) + length;\n if (newOffset >= currOffset) {\n mark.setMark(newOffset);\n range.setLastRegexpMatchOffset(newOffset);\n CharsRegion ret = new CharsRegion(matcher, bytes, length, columnInBytes);\n // System.out.println(\"Matched: \" + this.regexpStr + \" at: \" + currOffset + \" with scope: \"\n // + this.getSuccessToken() + \"\\n\");\n return ret;\n }\n }\n newOffset = currOffset;\n mark.setMark(newOffset);\n return null;\n }", "title": "" }, { "docid": "bab63440f8f1fca24fb4632c14d76a94", "score": "0.4620059", "text": "private static String getRegExp(String wildcardExp) {\n StringBuilder sb = new StringBuilder();\n sb.append(\"\\\\Q\");\n for (int i = 0; i < wildcardExp.length(); i++) {\n char c = wildcardExp.charAt(i);\n switch (c) {\n case '?':\n sb.append(\"\\\\E.\\\\Q\");\n break;\n case '*':\n sb.append(\"\\\\E.*\\\\Q\");\n break;\n default:\n sb.append(c);\n break;\n }\n }\n sb.append(\"\\\\E\");\n return sb.toString();\n }", "title": "" }, { "docid": "274591f46e51026b610c8fe288387f97", "score": "0.4619761", "text": "public static String getTimeStampRegex() { return timestamp_regex; }", "title": "" }, { "docid": "fdcb05d6a5e28f608ce110fb8289132d", "score": "0.46174353", "text": "public String[] findPatterns()\n/* */ {\n/* 305 */ return this.patterns;\n/* */ }", "title": "" }, { "docid": "2549170ae2f52c518803b65a48df7b3d", "score": "0.46126756", "text": "public Boolean getWildcardMatch() {\n return wildcardMatch;\n }", "title": "" }, { "docid": "640b896a0a527280c85184e5d5256837", "score": "0.46029443", "text": "@Value.Default\n public default Set<RegexpFlag> getFlags() {\n return ImmutableSet.of();\n }", "title": "" }, { "docid": "3f255a4f207ebd8ddbbe03b3f44c37b6", "score": "0.45976174", "text": "public DefRegex(final String source) {\n\t\t_source = source;\n\t\ttry {\n\t\t\t_value = Pattern.compile(DefRegexTranslator.translate(source));\n\t\t} catch (Exception ex) {\n\t\t\tString s = ex.getMessage();\n\t\t\tif (s == null) {\n\t\t\t\ts = \"\" + ex;\n\t\t\t}\n\t\t\t//Incorrect regular expression: &{0}\n\t\t\tthrow new SRuntimeException(XDEF.XDEF650, source + \"; (\"+s+\")\");\n\t\t}\n\t}", "title": "" }, { "docid": "4b3913daebfac2c064077ba001a3e569", "score": "0.45958784", "text": "public void setRegex(String regex) {\n setProperty(REGEX, regex);\n }", "title": "" }, { "docid": "617e8db84ca2b5f9575b26931384fa7a", "score": "0.4588829", "text": "public java.lang.String getMatchInfo() {\n return matchInfo;\n }", "title": "" }, { "docid": "549ad1378cf93c66db20065b1575d5f8", "score": "0.4581855", "text": "public void testParse() throws Exception {\n System.out.println(\"parse\");\n\n // Parse a simple multi-gram\n RegExParser mgramParser1 = new RegExParser(\"abcd\");\n RegEx mgramRegEx1 = mgramParser1.parse();\n assertEquals(mgramRegEx1.getRegExType(), RegExType.Primitive);\n assertEquals(((RegExPrimitive) mgramRegEx1).getPrimitiveStr(), \"abcd\");\n\n // Parse multi-grams with escape characters\n RegExParser mgramParser2 = new RegExParser(\"\\\\|a\\\\(b\\\\)c\\\\*d\\\\+\\\\{\\\\}\");\n RegEx mgramRegEx2 = mgramParser2.parse();\n assertEquals(mgramRegEx2.getRegExType(), RegExType.Primitive);\n assertEquals(((RegExPrimitive) mgramRegEx2).getPrimitiveStr(), \"|a(b)c*d+{}\");\n\n // Parse union\n RegExParser unionParser = new RegExParser(\"a|b\");\n RegEx unionRegEx = unionParser.parse();\n assertEquals(unionRegEx.getRegExType(), RegExType.Union);\n RegExUnion uRE = (RegExUnion) unionRegEx;\n assertEquals(uRE.getFirst().getRegExType(), RegExType.Primitive);\n assertEquals(((RegExPrimitive) uRE.getFirst()).getPrimitiveStr(), \"a\");\n assertEquals(uRE.getSecond().getRegExType(), RegExType.Primitive);\n assertEquals(((RegExPrimitive) uRE.getSecond()).getPrimitiveStr(), \"b\");\n\n // Parse concat\n RegExParser concatParser1 = new RegExParser(\"a(b|c)\");\n RegEx concatRegEx1 = concatParser1.parse();\n assertEquals(concatRegEx1.getRegExType(), RegExType.Concat);\n RegExConcat cRE1 = (RegExConcat) concatRegEx1;\n assertEquals(cRE1.getLeft().getRegExType(), RegExType.Primitive);\n assertEquals(((RegExPrimitive) cRE1.getLeft()).getPrimitiveStr(), \"a\");\n assertEquals(cRE1.getRight().getRegExType(), RegExType.Union);\n\n // Parse concat with optimization\n RegExParser concatParser2 = new RegExParser(\"a(b)\");\n RegEx concatRegEx2 = concatParser2.parse();\n assertEquals(concatRegEx2.getRegExType(), RegExType.Primitive);\n assertEquals(((RegExPrimitive) concatRegEx2).getPrimitiveStr(), \"ab\");\n\n // Parse repeat: zero or more\n RegExParser repeatParser1 = new RegExParser(\"a*\");\n RegEx repeatRegEx1 = repeatParser1.parse();\n assertEquals(repeatRegEx1.getRegExType(), RegExType.Repeat);\n RegExRepeat rRE1 = (RegExRepeat) repeatRegEx1;\n assertEquals(rRE1.getRegExRepeatType(), RegExRepeatType.ZeroOrMore);\n assertEquals(rRE1.getInternal().getRegExType(), RegExType.Primitive);\n assertEquals(((RegExPrimitive) rRE1.getInternal()).getPrimitiveStr(), \"a\");\n\n // Parse repeat: one or more\n RegExParser repeatParser2 = new RegExParser(\"a+\");\n RegEx repeatRegEx2 = repeatParser2.parse();\n assertEquals(repeatRegEx2.getRegExType(), RegExType.Repeat);\n RegExRepeat rRE2 = (RegExRepeat) repeatRegEx2;\n assertEquals(rRE2.getRegExRepeatType(), RegExRepeatType.OneOrMore);\n assertEquals(rRE2.getInternal().getRegExType(), RegExType.Primitive);\n assertEquals(((RegExPrimitive) rRE2.getInternal()).getPrimitiveStr(), \"a\");\n\n // Parse repeat: min to max\n RegExParser repeatParser3 = new RegExParser(\"a{1,2}\");\n RegEx repeatRegEx3 = repeatParser3.parse();\n assertEquals(repeatRegEx3.getRegExType(), RegExType.Repeat);\n RegExRepeat rRE3 = (RegExRepeat) repeatRegEx3;\n assertEquals(rRE3.getRegExRepeatType(), RegExRepeatType.MinToMax);\n assertEquals(rRE3.getInternal().getRegExType(), RegExType.Primitive);\n assertEquals(((RegExPrimitive) rRE3.getInternal()).getPrimitiveStr(), \"a\");\n assertEquals(rRE3.getMin(), 1);\n assertEquals(rRE3.getMax(), 2);\n }", "title": "" }, { "docid": "7a9da3ead0bcf729b8be950a7a017c5b", "score": "0.457125", "text": "public void setRegex(String regex)\n {\n if(regex != null)\n this.regex = new String(regex);\n }", "title": "" } ]
2ed88f598921e8f54b2003131704ce89
accessor for list of myEvents
[ { "docid": "79591d2bcfa79e045d3ddab0c31f6b50", "score": "0.77184796", "text": "public ArrayList<Event> getMyEventData() {\n return this.myEvents;\n }", "title": "" } ]
[ { "docid": "8c2dbb4bc8b4eec02d43cbf4a1ff69f6", "score": "0.79385805", "text": "public abstract EventList getEvents();", "title": "" }, { "docid": "11bf02f822e6b7d78e6975a4e081e99c", "score": "0.78195316", "text": "public List getEvents() {\n return events;\n }", "title": "" }, { "docid": "84b362e80a8d3363273aee7ce85f3906", "score": "0.7720368", "text": "public ArrayList getEventList(){\n return eventList;\n }", "title": "" }, { "docid": "c83c73edb0d102867d7320f707570aa9", "score": "0.76170915", "text": "public Collection<Event> getEvents() {\n return this.myEvents;\n }", "title": "" }, { "docid": "f284529c2220ed8cd7fa7a3eccfb36b6", "score": "0.76051915", "text": "@java.lang.Override\n public java.util.List<kitty_protos.Adventure.AdventureEvent> getEventsList() {\n return java.util.Collections.unmodifiableList(\n instance.getEventsList());\n }", "title": "" }, { "docid": "b34abd841fb72aecfb60b5efc329d0ab", "score": "0.74843836", "text": "public String[] getEventList() {\n return this.eventList;\n }", "title": "" }, { "docid": "888b52582b0f483773bcacad4149c0b7", "score": "0.7436311", "text": "public List<Event> getEvents() {\n return events;\n }", "title": "" }, { "docid": "888b52582b0f483773bcacad4149c0b7", "score": "0.7436311", "text": "public List<Event> getEvents() {\n return events;\n }", "title": "" }, { "docid": "79962bd4124d9db5c39d9596f4bd74fc", "score": "0.73705167", "text": "@java.lang.Override\n public java.util.List<kitty_protos.Adventure.AdventureEvent> getEventsList() {\n return events_;\n }", "title": "" }, { "docid": "5cd741e0b42c9eb4061a4263b27c02ac", "score": "0.7348278", "text": "public ArrayList<String> getEvents() {\n //\n return eventsList;\n }", "title": "" }, { "docid": "fac2557f418bc13c23822305221cb990", "score": "0.73113704", "text": "java.util.List<io.yuri.yuriserver.packet.Protos.Update.Event> \n getEventsList();", "title": "" }, { "docid": "386e27ac4702f61fe25e5b9cd2d04726", "score": "0.7296033", "text": "public List<Event> getEvents() {\n return null;\r\n }", "title": "" }, { "docid": "ef7509ecf5c77a95f884dd5e8173161d", "score": "0.7288779", "text": "public ArrayList<socialengine.events.Event> getEvents() { return events; }", "title": "" }, { "docid": "a53ecf422aaa3c6d32158a66d245b83b", "score": "0.7242064", "text": "public java.util.List<io.yuri.yuriserver.packet.Protos.Update.Event> getEventsList() {\n if (eventsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(events_);\n } else {\n return eventsBuilder_.getMessageList();\n }\n }", "title": "" }, { "docid": "34974deaebc9dbc3074c8edcc2942934", "score": "0.71617115", "text": "public java.util.List<io.yuri.yuriserver.packet.Protos.Update.Event> getEventsList() {\n return events_;\n }", "title": "" }, { "docid": "02a944716224cc67908681ac42f10ca1", "score": "0.710202", "text": "public String[] getEvents(){return this.m_events.toArray(new String[0]);}", "title": "" }, { "docid": "b67f002d48cbb60e7da5b91d41a90a4f", "score": "0.7043758", "text": "public ArrayList<JsonEvent> getEvents() {\n\t\t// Checking that the events are ready to be read\n\t\tif (mLocation == null)\n\t\t\treturn new ArrayList<>();\n\t\t// Returning the events\n\t\treturn mEvents;\n\t}", "title": "" }, { "docid": "17c5e6c31519cacf7a7f284d289d414b", "score": "0.6998811", "text": "private Vector getReceivedEventsList()\n {\n return receivedEventList;\n }", "title": "" }, { "docid": "d3d0d0158005e61701bcda26d2d51913", "score": "0.6981665", "text": "public Object[] getEventsArray() {\n\t\treturn this.lsEvents.toArray();\n\t}", "title": "" }, { "docid": "a81efdf1f0a18529cb46849dc6e4196d", "score": "0.6971566", "text": "java.util.List<com.estafette.ci.manifest.v1.EstafetteEvent> \n getEventsList();", "title": "" }, { "docid": "9cfb03109ef79081b0e9fede0a9a1269", "score": "0.69612074", "text": "java.util.List<kitty_protos.Adventure.AdventureEvent> \n getEventsList();", "title": "" }, { "docid": "5d356e995260481a7255f78dee52fcbe", "score": "0.69356936", "text": "public java.util.List<? extends io.yuri.yuriserver.packet.Protos.Update.EventOrBuilder> \n getEventsOrBuilderList() {\n if (eventsBuilder_ != null) {\n return eventsBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(events_);\n }\n }", "title": "" }, { "docid": "2b51bda53626995568d4e7766b123b26", "score": "0.6927534", "text": "public ArrayList<Event> getEvents() {\n\t\treturn events.getEventsToEdit();\n\t}", "title": "" }, { "docid": "090be947f863af1b1a693963a364cebb", "score": "0.6923452", "text": "java.util.List<? extends io.yuri.yuriserver.packet.Protos.Update.EventOrBuilder> \n getEventsOrBuilderList();", "title": "" }, { "docid": "3d1b1ce061b8efdc9153465688c8d28f", "score": "0.6899611", "text": "public EventList() {\r\n\t\tlist = new ArrayList<Event>();\r\n\t}", "title": "" }, { "docid": "41cdbde24a872f16bc5427d3c7520a86", "score": "0.6887637", "text": "public java.util.List<? extends kitty_protos.Adventure.AdventureEventOrBuilder> \n getEventsOrBuilderList() {\n return events_;\n }", "title": "" }, { "docid": "0f867aa1d53f9deb37238da1c8015d4b", "score": "0.6885537", "text": "ObservableList<Event> getFullListEvents();", "title": "" }, { "docid": "2aa419f849ed592c51a25117e4557c06", "score": "0.68762547", "text": "public java.util.List<? extends io.yuri.yuriserver.packet.Protos.Update.EventOrBuilder> \n getEventsOrBuilderList() {\n return events_;\n }", "title": "" }, { "docid": "f70db73fb4612fdfbc507d51f9b63d5a", "score": "0.6869295", "text": "public Collection<Event> getEvents() {\n return values();\n }", "title": "" }, { "docid": "ffdc572146f10c4bb0361610b85c29c8", "score": "0.68571377", "text": "public java.util.List<io.envoyproxy.envoy.data.tap.v3.SocketEvent> getEventsList() {\n if (eventsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(events_);\n } else {\n return eventsBuilder_.getMessageList();\n }\n }", "title": "" }, { "docid": "7011f2cf508b0bfcb637e82b4f84a976", "score": "0.6854791", "text": "private void populateEventsList()\n {\n myEvents.add((new Events(\"Bungee Jump\")));\n myEvents.add((new Events(\"Skiing\")));\n myEvents.add((new Events(\"Biking\")));\n myEvents.add((new Events(\"Eating\")));\n myEvents.add((new Events(\"Adventuring\")));\n }", "title": "" }, { "docid": "f046249cc196e0d269a0e17072202ec9", "score": "0.6839594", "text": "@java.lang.Override\n public java.util.List<io.envoyproxy.envoy.data.tap.v3.SocketEvent> getEventsList() {\n return events_;\n }", "title": "" }, { "docid": "b3bfb1e52d340ccd60630153c5879b83", "score": "0.6792631", "text": "public List<EventArchive> getEvent(){\n\t\treturn events;\n\t}", "title": "" }, { "docid": "c9242378f1670e0c110814fab4e34ed3", "score": "0.6771133", "text": "@Override\r\n\tpublic List<Event> getListEvent() {\n\t\tSession session=sessionFactory.getCurrentSession();\r\n\t\tList<Event> listEvent=session.createQuery(\"from Event\").list();\r\n\t\treturn listEvent;\r\n\t}", "title": "" }, { "docid": "3aafe3bec9d5c08206189ec662c6dae1", "score": "0.6759931", "text": "public void addEvent(Event e) {myEvents.add(e);}", "title": "" }, { "docid": "452ddc4beab65eb6e0bd94798e4c9f5d", "score": "0.6724125", "text": "private List<PyObject> getEvents() {\n Python py = Python.getInstance();\n PyObject eventGetter = py.getModule(StringConstants.SCRIPT_NAME);\n PyObject a2fEvents = eventGetter.callAttr(StringConstants.MAIN_FUNCTION, StringConstants.A2F_WEBSITE);\n PyObject gracepointEvents = eventGetter.callAttr(StringConstants.MAIN_FUNCTION, StringConstants.GRACEPOINT_WEBSITE);\n\n return mergeLists(a2fEvents.asList(), gracepointEvents.asList());\n }", "title": "" }, { "docid": "534459c3fb153c58734628751fe4378a", "score": "0.67065096", "text": "public void setMyEvents(@NonNull ArrayList<Event> my_events) {\n myEvents = my_events;\n }", "title": "" }, { "docid": "fe341e967ab6fd90de666c77529e30e7", "score": "0.67031276", "text": "@Override\n\tpublic List<Events> getAllEvents() {\n\t\treturn ud.getAllEvents();\n\t}", "title": "" }, { "docid": "1a9caae287a700fe62cfcad77901cdfb", "score": "0.6656772", "text": "@GET\n\t@SuppressWarnings(\"unchecked\")\n\tpublic List<Event> list() {\n\t\t\n\t\tlog.info(\"Recuperation des events\");\n\t\t\n\t\tEntityManager em = Tools.getEntityManager();\n\t\tList<Event> listEvents = em.createQuery(\"SELECT e FROM Event e\").getResultList();\n\t\t\n\t\treturn listEvents;\n\t}", "title": "" }, { "docid": "e63cb66bb7cb535c13212a5d044df9fa", "score": "0.6648686", "text": "@java.lang.Override\n public kitty_protos.Adventure.AdventureEvent getEvents(int index) {\n return events_.get(index);\n }", "title": "" }, { "docid": "62fe98cc3ba50ff7266921ea903ca5c1", "score": "0.6646247", "text": "public List<EventBean> liveEventsList(){\r\n\t\t\tList<EventBean> leb21 = new ArrayList<>();//return value\r\n\t\t\tEventDao ed1 = new EventDao();\r\n\t\t\tList<Event> le1 = ed1.getLiveEvents();\r\n\t\t\t\r\n\t\t\tfor(int i = 0; i < le1.size(); i++) {\r\n\t\t\t\tEventBean c = new EventBean();\r\n\t\t\t\tEvent event = le1.get(i);\r\n\t\t\t\tc.setArtist(event.getArtist());\r\n\t\t\t\tc.setDescription(event.getDescription());\r\n\t\t\t\tc.setName(event.getName());\r\n\t\t\t\tc.setPlace(event.getPlace());\r\n\t\t\t\tleb21.add(c);//building eventBean list\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\treturn leb21;\r\n\t\t}", "title": "" }, { "docid": "3c3dcf9e98aa4ca533c8641d4b785583", "score": "0.660261", "text": "public String events() {\n return events;\n }", "title": "" }, { "docid": "c6dc50d56f61758bfbebc188a6152f0a", "score": "0.6586394", "text": "public HabitEventList getHabit_event_list() {\n return this.habit_event_list;\n }", "title": "" }, { "docid": "8018ee0fae95cd29f9b77ab26a85b7d8", "score": "0.65704304", "text": "java.util.List<? extends com.estafette.ci.manifest.v1.EstafetteEventOrBuilder> \n getEventsOrBuilderList();", "title": "" }, { "docid": "ebfb0e0096a21f86e15e9881f64d3122", "score": "0.6559768", "text": "public List<EventI> getCore();", "title": "" }, { "docid": "b9161ac4750e2419cfb340223e320536", "score": "0.6559127", "text": "@java.lang.Override\n public kitty_protos.Adventure.AdventureEvent getEvents(int index) {\n return instance.getEvents(index);\n }", "title": "" }, { "docid": "5d90ea7d9a6bcd95b2ef8b4f555adc52", "score": "0.65471345", "text": "public io.yuri.yuriserver.packet.Protos.Update.Event getEvents(int index) {\n return events_.get(index);\n }", "title": "" }, { "docid": "70f755130dab995c705475771f5914f3", "score": "0.65398026", "text": "public List<EventEntry> getDatedEvents() { return this.datedEvents; }", "title": "" }, { "docid": "6675e0e31feb1dd6ee3f6bbb5f7e7e21", "score": "0.65393853", "text": "public ArrayList<Event> getPotentialEventData() {\n return this.potentialEvents; }", "title": "" }, { "docid": "75650f4e41cc8fea088518097db578b7", "score": "0.6535509", "text": "java.util.List<edu.umich.imlc.mydesk.app.wesketch.WeSketchProtocolBufferOLD.WeSketchEvent_PB> \n getEventList();", "title": "" }, { "docid": "dd0b5cb1ecf3542679be62bd3f97efce", "score": "0.6498079", "text": "public List<Event> getProcessedEvent()\r\n\t{\r\n\t\treturn eventList;\r\n\t}", "title": "" }, { "docid": "287646e71b9b4d2729980799a65d31cb", "score": "0.64799863", "text": "public java.util.Map<String, ComponentEvent> getEvents() {\n return events;\n }", "title": "" }, { "docid": "84a1da29e0dc54b1caf5e8891156f904", "score": "0.64762884", "text": "io.yuri.yuriserver.packet.Protos.Update.Event getEvents(int index);", "title": "" }, { "docid": "ed3d4d2685a2d50d7d3b586439efc938", "score": "0.6469353", "text": "@java.lang.Override\n public java.util.List<? extends io.envoyproxy.envoy.data.tap.v3.SocketEventOrBuilder> \n getEventsOrBuilderList() {\n return events_;\n }", "title": "" }, { "docid": "dfb7f0e668b72740e0be0c72bf300350", "score": "0.64452004", "text": "public Iterator getEventIterator() {\n\t\treturn this.lsEvents.iterator();\n\t}", "title": "" }, { "docid": "6a272b3f73df7db7dac140d929feb637", "score": "0.64364254", "text": "public interface EventType {\n\n int getId();\n\n String getName();\n\n List<String> getFieldNames();\n\n}", "title": "" }, { "docid": "0bef80f2e8b0d378a4cf2cb8c3817e2e", "score": "0.6425188", "text": "public Event getEvent();", "title": "" }, { "docid": "fd0b9e38083e8833d737f7f1793a9706", "score": "0.6418864", "text": "public java.util.List<? extends io.envoyproxy.envoy.data.tap.v3.SocketEventOrBuilder> \n getEventsOrBuilderList() {\n if (eventsBuilder_ != null) {\n return eventsBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(events_);\n }\n }", "title": "" }, { "docid": "f01a034a1e7c97772356dfa01d9eb5a8", "score": "0.6413236", "text": "List<ReadOnlyTask> getEventList();", "title": "" }, { "docid": "6cb52e3f624e25bf79ab280d69f218de", "score": "0.64096147", "text": "public ArrayList<Event> getAllEvents()\n {\n EventNode<AnyType> tmp = head;\n ArrayList<Event> allEvents = new ArrayList<Event>();\n while(tmp != null)\n {\n allEvents.add(tmp.event);\n tmp = tmp.NextEvent;\n }\n return allEvents;\n }", "title": "" }, { "docid": "63fc0a8050f313e05c15af484fe6cd15", "score": "0.63914084", "text": "kitty_protos.Adventure.AdventureEvent getEvents(int index);", "title": "" }, { "docid": "921b620934eb87987de4c7450da908c2", "score": "0.63811606", "text": "public List<EventEntry> getExpiredEvents() { return expiredEvents; }", "title": "" }, { "docid": "9f71d9760e1b2402825d42ee2563bf59", "score": "0.63522357", "text": "public void setEvents(List<Event> events) {\n this.events = events;\n }", "title": "" }, { "docid": "9f71d9760e1b2402825d42ee2563bf59", "score": "0.63522357", "text": "public void setEvents(List<Event> events) {\n this.events = events;\n }", "title": "" }, { "docid": "6fc32409af0728641ef19a8b510a8e34", "score": "0.63443", "text": "public List<EventType> getEventList() {\n\t\tList<String> sActionList = this\n\t\t\t\t.getValueListByName(GUITARConstants.EVENT_TAG_NAME);\n\n\t\tList<EventType> eventList = null;\n\n\t\tif (sActionList != null)\n\t\t\teventList = new ArrayList<EventType>();\n\t\tfor (String action : sActionList) {\n\t\t\tEventType event = new EventType();\n\n\t\t\tString wigetID = getFirstValueByName(GUITARConstants.ID_TAG_NAME);\n\t\t\tString eventID = wigetID.replace(\n\t\t\t\t\tGUITARConstants.COMPONENT_ID_PREFIX,\n\t\t\t\t\tGUITARConstants.EVENT_ID_PREFIX);\n\t\t\tString type = getFirstValueByName(GUITARConstants.TYPE_TAG_NAME);\n\n\t\t\tString posFix = (sActionList.size() <= 1) ? \"\" : EVENT_ID_SPLITTER\n\t\t\t\t\t+ Integer.toString(sActionList.indexOf(action));\n\t\t\teventID = eventID + posFix;\n\t\t\tevent.setEventId(eventID);\n\t\t\tevent.setWidgetId(wigetID);\n\t\t\tevent.setAction(action);\n\t\t\tevent.setType(type);\n\t\t\teventList.add(event);\n\t\t}\n\n\t\treturn eventList;\n\t}", "title": "" }, { "docid": "af398f64a11ac2ef8057b5c796a927e1", "score": "0.6340491", "text": "com.estafette.ci.manifest.v1.EstafetteEvent getEvents(int index);", "title": "" }, { "docid": "2943a1c1555a416dcf6735fedec0e9ff", "score": "0.63079387", "text": "@Override\n\tpublic String toString() {\n\t\treturn Arrays.toString(events.toArray());\n\t}", "title": "" }, { "docid": "f0f05ba2deefa707c026d9361896ab79", "score": "0.6302638", "text": "public interface IEvent {\n\n Event getEvent(String id);\n\n ArrayList<Event> getEventList();\n\n ArrayList<Event> getEventListTagFilter(ArrayList<String> tags);\n\n void registUser(Event event, int i);\n\n void clearEvents();\n\n void setEvents(Event event, int i);\n\n void addEvent(String nameEvent, String dateEvent, String timeEvent, String placeEvent, String localEvent, String durationEvent, double priceEvent, String descEvent, int capEvent, String userId, double latitude, double longitude, String imgURL, ArrayList<String> tags);\n}", "title": "" }, { "docid": "29a7ab76dd21142dc7e28cc9ad197e55", "score": "0.62984014", "text": "private static ArrayOfEvento eventos() {\n mx.itson.myevents.servicios.HomeService service = new mx.itson.myevents.servicios.HomeService();\n mx.itson.myevents.servicios.HomeServiceSoap port = service.getHomeServiceSoap();\n return port.eventos();\n }", "title": "" }, { "docid": "883718be98eff42499d57abcbf2d3a6e", "score": "0.62932163", "text": "@NonNull\n List<StoredDomainEvent> events();", "title": "" }, { "docid": "a3cc5f409881360c4537a95fa85f39a6", "score": "0.6285798", "text": "@SuppressWarnings(\"unchecked\")\n\tpublic HashMap<GregorianCalendar, ArrayList<Event>> getEvents()\n\t{\n\t\treturn (HashMap<GregorianCalendar, ArrayList<Event>>) events.clone();\n\t}", "title": "" }, { "docid": "d51ec654b18e9f50940672ab2a373456", "score": "0.6276513", "text": "public LiveData<List<Event>> getEvents() {\n return eventDao.getAllEvents();\n }", "title": "" }, { "docid": "2b1c13f8122d29aa2edec8ea3889008c", "score": "0.6240412", "text": "public java.lang.Object getEvent()\n {\n return this._event;\n }", "title": "" }, { "docid": "c8b95b925ed65c590d89e54fb24437e5", "score": "0.6208981", "text": "@Override\n public Set<EventType<T>> getEventTypes() {\n return eventTypes;\n }", "title": "" }, { "docid": "c30b83d2ec80633008de8e6318cd0921", "score": "0.6205299", "text": "public List<String> getSpeakingEvents() {\n return this.speakingEvents;\n }", "title": "" }, { "docid": "321b15f5ae90ec768667274da7804ceb", "score": "0.6201498", "text": "public io.yuri.yuriserver.packet.Protos.Update.Event getEvents(int index) {\n if (eventsBuilder_ == null) {\n return events_.get(index);\n } else {\n return eventsBuilder_.getMessage(index);\n }\n }", "title": "" }, { "docid": "10b664c18793d1d321f9578101a8bbe1", "score": "0.6199563", "text": "public synchronized List<AppEvent> getEventsToPersist() {\n List list;\n list = this.accumulatedEvents;\n this.accumulatedEvents = new ArrayList();\n return list;\n }", "title": "" }, { "docid": "304aecb0a1731558896b73d569e46301", "score": "0.619064", "text": "List<ActionListener> getEventListenerList() {\r\n if (eventListenerList == null) {\r\n eventListenerList = new ArrayList<ActionListener>();\r\n }\r\n return eventListenerList;\r\n }", "title": "" }, { "docid": "4a58baf133886aed9c80d43f52e7721c", "score": "0.6186248", "text": "public List<EventType> eventTypes() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "eb1248e4aae9f235d76a5e951da6fbd5", "score": "0.61841637", "text": "public static ArrayList<SuKien> getEvent() {\n\t\treturn ShowQuanLySuKienDAO.getEvent();\n\t}", "title": "" }, { "docid": "28b0b465c0a6c934a03f474fc5bd55b4", "score": "0.6180574", "text": "@Override public List<Event> get()\n {\n EntityManager entityManager = entityManagerFactory.createEntityManager();\n\n try {\n return entityManager.createNamedQuery(\"Event.findAll\", Event.class).getResultList();\n } finally {\n entityManager.close();\n }\n }", "title": "" }, { "docid": "fda91a8b925640bd8ef2cb9c2b04d16c", "score": "0.61292607", "text": "public static void testEventStuff() {\n\t\tEventList events = new EventList();\n\t\t\n\t\tEvent a = new Event();\n\t\ta.setTitle(\"This is a title\");\n\t\tEvent b = new Event();\n\t\tEvent c = new Event();\n\t\tEvent d = new Event();\n\t\tEvent e = new Event();\n\t\tEvent f = new Event();\n\t\t\n\t\tint aKey = events.addEvent(a);\n\t\tevents.addEvent(b);\n\t\tevents.addEvent(c);\n\t\tevents.addEvent(d);\n\t\tevents.addEvent(e);\n\t\tevents.addEvent(f);\n\t\t\n\t\tSystem.out.println(events.getEvent(aKey).title);\n\t\t\n\t\tevents.deleteEvent(aKey);\n\t\t\n\t\tEvent z = new Event();\n\t\t\n\t\tevents.addEvent(z);\n\t\t\n\t\tevents.checkEvents();\n\t}", "title": "" }, { "docid": "433e825a0086961f9e3978bc69ec67aa", "score": "0.61194545", "text": "@Override\n\tpublic Iterable<Event> findAllEvent() {\n\t\treturn eventRepository.findAll();\n\t}", "title": "" }, { "docid": "28a3f038c60c32c447cf35976b02a8ea", "score": "0.6118877", "text": "public List<Event> allEvents(){\n\t\treturn eventRepo.findAll();\n\t}", "title": "" }, { "docid": "0542d0e705e474678f7a13c42992efa6", "score": "0.6107597", "text": "private void addEvents() {\n\r\n\t}", "title": "" }, { "docid": "b1a57512e2cedc7ed56e274bdfe9f4c5", "score": "0.6104553", "text": "@JSProperty(\"events\")\n @Nullable\n ChartEventsOptions getEvents();", "title": "" }, { "docid": "3384ca9f7c81f9958f087d9b2c454a2e", "score": "0.60886157", "text": "@Override\n public LinkedList<GameEvent> getEventQueue() {\n return (LinkedList) gameEventQueue;\n }", "title": "" }, { "docid": "dc76719709b12d9f3b021ac475eab0db", "score": "0.60753316", "text": "public List<? extends EventMessage<?>> failedEvents() {\n return failedEvents;\n }", "title": "" }, { "docid": "aafb1cc7eeee1ebee25b9f06bccf2f7b", "score": "0.60662407", "text": "@java.lang.Override\n public io.envoyproxy.envoy.data.tap.v3.SocketEvent getEvents(int index) {\n return events_.get(index);\n }", "title": "" }, { "docid": "f78ee189f40b56f9aaeba1a8c7a0d8c7", "score": "0.6065647", "text": "public java.util.List<io.yuri.yuriserver.packet.Protos.Update.Event.Builder> \n getEventsBuilderList() {\n return getEventsFieldBuilder().getBuilderList();\n }", "title": "" }, { "docid": "e047da88839d5d99aa1a584ee81c170f", "score": "0.60578835", "text": "public List<CodeDefinition> getEventCodes()\n {\n return eventCodes;\n }", "title": "" }, { "docid": "8ef5634064b3bfc561d1df0ea444e35a", "score": "0.60534495", "text": "@java.lang.Override\n public int getEventsCount() {\n return events_.size();\n }", "title": "" }, { "docid": "0714607ed2bfd594c7cee005e54e25f9", "score": "0.6043846", "text": "public ArrayList<Event> getEventsOfToday()\n\t{\n\t\tif (findEvent() == true)\n\t\t\treturn currentDayEvents;\n\t\treturn currentDayEvents;\n\t}", "title": "" }, { "docid": "9dea9b26c868136a7448622d1d043205", "score": "0.6040168", "text": "public List<IEventListener> getListeners() {\n \treturn _listeners;\n }", "title": "" }, { "docid": "cd81a8ecc2fed4eac79b1785d9f91abd", "score": "0.6033877", "text": "public @Nullable\n\tCollection<Event> getByName(@Nonnull String name);", "title": "" }, { "docid": "59ced398912e5b2c6dc884d134f3bda5", "score": "0.6029761", "text": "@java.lang.Override\n public int getEventsCount() {\n return events_.size();\n }", "title": "" }, { "docid": "933449647ce4d2d60a1d0d3c1cdc96d0", "score": "0.6025478", "text": "Event(String event){\n events = event;\n }", "title": "" }, { "docid": "a93f08372507035f4c1ddd2eb2c6cafd", "score": "0.6020324", "text": "static public Event getEvent() {\r\n\t\treturn event;\r\n\t}", "title": "" }, { "docid": "cfc60009eaadce219fb91c10de45a11e", "score": "0.60143656", "text": "public Event getEvent() {\n return this.event;\n }", "title": "" }, { "docid": "8cd1da9a99ebd11b44797d7cecf11f69", "score": "0.60131735", "text": "List<Control> getEventSourceList() {\r\n if (eventSourceList == null) {\r\n eventSourceList = new ArrayList<Control>();\r\n }\r\n return eventSourceList;\r\n }", "title": "" } ]
f491895899835d996d2aa0d11bf104e7
Takes the values in the dropdown menus and creates a starts a new memory game with them.
[ { "docid": "91a1455b72baf12698f31492d7446762", "score": "0.0", "text": "@Override\n public void actionPerformed(ActionEvent ae) {\n String widthStr = (String) widthBox.getSelectedItem();\n int width = Integer.parseInt(widthStr);\n String heightStr = (String) heightBox.getSelectedItem();\n int height = Integer.parseInt(heightStr);\n\n frame.getContentPane().removeAll();\n \n for (ActionListener al : gameTimer.getActionListeners()) {\n gameTimer.removeActionListener(al);\n }\n //Removes timer listener, so the one of correct size can\n //be added in the newGame method\n \n newGame(height, width);\n optionsFrame.dispose();\n }", "title": "" } ]
[ { "docid": "6a637c8d25a1de21d23d86afe81cd22b", "score": "0.6751224", "text": "private void startNewGame() {\n GameControl.createNewGame(CuriousWorkmanship.getPlayer());\n System.out.println(\"*** startNewGame function called ***\");\n \n // display a game menu\n GameMenuView gameMenu = new GameMenuView();\n gameMenu.dispay();\n }", "title": "" }, { "docid": "a431063dd1c4b4e59147c89e58b44818", "score": "0.6721335", "text": "public MemoryGame() {\n frame = new JFrame(\"Memory\");\n\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n frame.setSize(600, 600);\n frame.setResizable(false);\n\n cardback = new ImageIcon(\"images/cardback0.jpg\");\n backgroundColor = Color.BLACK;\n ImageIcon bg = new ImageIcon(\"images/background.jpg\");\n JLabel bgLabel = new JLabel(bg);\n\n JPanel settingsPanel = new JPanel();\n\n JLabel widthLabel = new JLabel(\"Width: \");\n String[] str = {\"2\", \"3\", \"4\", \"5\", \"6\"};\n JComboBox widthBox = new JComboBox(str);\n widthBox.setSelectedItem(\"4\");\n JLabel heightLabel = new JLabel(\"Height: \");\n String[] str2 = {\"2\", \"4\", \"6\"};\n JComboBox heightBox = new JComboBox(str2);\n heightBox.setSelectedItem(\"4\");\n\n JButton startButton = new JButton(\"Start Game\");\n startButton.addActionListener(new ActionListener() {\n\n /**\n * Takes the values in the dropdown menus and creates a starts a new\n * memory game with them.\n */\n @Override\n public void actionPerformed(ActionEvent ae) {\n String widthStr = (String) widthBox.getSelectedItem();\n int width = Integer.parseInt(widthStr);\n String heightStr = (String) heightBox.getSelectedItem();\n int height = Integer.parseInt(heightStr);\n\n frame.remove(settingsPanel);\n frame.remove(bgLabel);\n newGame(height, width);\n }\n\n });\n\n settingsPanel.add(widthLabel);\n settingsPanel.add(widthBox);\n settingsPanel.add(heightLabel);\n settingsPanel.add(heightBox);\n settingsPanel.add(startButton);\n\n frame.add(bgLabel, \"Center\");\n frame.add(settingsPanel, \"South\");\n frame.setVisible(true);\n\n gameTimer = new Timer(500, null);\n //changeSong(1);\n }", "title": "" }, { "docid": "4b9e85529d205aacf3a1ace89d65b920", "score": "0.66058344", "text": "private void startNewGame() {\n GameControl.createNewGame(GrandQuest.getPlayer()); \r\n \r\n // display the game menu\r\n NewGameView newGame = new NewGameView(); \r\n newGame.displayIntro();\r\n }", "title": "" }, { "docid": "30a0a87172011c81831cbb3e980f66c5", "score": "0.6481455", "text": "private void newGame() {\n prnt(\"Choose mode game\");\n prnt(\"1 - easy game\");\n prnt(\"2 - normal game\");\n prnt(\"3 - hard game\");\n int hard = in.nextInt();\n if (hard < 1 || hard > 3) {\n hard = 1;\n }\n\n\n prnt(\"Enter count of rooms\");\n prnt(\"min: 10, max: 100):\");\n int countRooms = in.nextInt();\n if (countRooms < 10 || countRooms > 100) {\n countRooms = 10;\n }\n\n this.action = ActionController.getInstance(hard, countRooms);\n play();\n }", "title": "" }, { "docid": "e3ff6d30f8f1d0f998be40bf499926ee", "score": "0.647583", "text": "private void startGame()\r\n\t{\r\n\t\tLevelLoader levels = new LevelLoader();\r\n\t\tlevel = levels.getLevel(\"Level1.json\");\r\n\t\t@SuppressWarnings(\"unused\")\r\n\t\tView levelGui = new View(level);\r\n\t\tJOptionPane.showMessageDialog(null,\r\n\t\t\t\t\"To place a plant: click the tile you wish to play on, then the type of plant\\n. Undo/Redo/Save/Load can be found in the menu\",\r\n\t\t\t\t\"Instructions\", JOptionPane.PLAIN_MESSAGE);\r\n\t\tmm.frame.dispose();\r\n\t}", "title": "" }, { "docid": "e3d652fe171a231dc717aa4c015d524d", "score": "0.6438581", "text": "public static void startNewGame() {\n\t\thamstercount = 0;\n\t\thamsterinflationCounter = 0;\n\n\t\tresetGame(); // Empty the grid\n\n\t\tsetLevelProperties();\n\n\t\tnew Grid();\n\t\tspawn(); // Generate new chars\n\n\t\tif (isWalls() == true) {\n\t\t\tnew Wall_Creation(); // Generate Walls\n\t\t}\n\t\tif (isSpecialTiles() == true) {\n\t\t\tnew SpecialTile_Creation(); // Generate Special Tiles\n\t\t}\n\n\t\tnew GameTimer(); // Zeitleiste\n\n\t\tGamestate.state = Gamestate_e.ingame; // actually start the game (draw ingame elements)\n\t}", "title": "" }, { "docid": "cab5ace4da62bee5d06cf2a3c3803794", "score": "0.62517893", "text": "public void newGame()\n\t{\n\t\tctrl.makeOptionsMenuWindow();\n\t\tthis.setVisible(false);\n\t\tthis.dispose();\n\t}", "title": "" }, { "docid": "f4c7ec9bc0f0bc060ff5bb41480bbafa", "score": "0.62457365", "text": "public void newGame() {\n GameManager.getInstance().randomAssignTerritoryToPlayer();\n initArmies();\n playerIterator = players.values().iterator();\n for (Player p : players.values()) {\n p.setLive(true);\n p.updatePrecentageOfMap();\n }\n gameOver = false;\n start();\n }", "title": "" }, { "docid": "2ccb95adc5e0a0bd5457b486772c1d22", "score": "0.6240956", "text": "public static void newGame()\n\t{\n\t\tEngine.cls();\n\t\tprint(\"Enter your name: \");\n\t\tSystem.out.print(\">> \");\n\t\tname = Engine.input.nextLine();\n\t\tEngine.cls();\n\t\tprint(\"Welcome, \" + name + \". Please choose a class. 1 for Light Mage, 2 for Dark Mage, 3 for Swordsman, 4 for Knight.\");\n\t\tString classn = Engine.getInput(\"1\", \"2\", \"3\", \"4\");\n\t\tClass c = (classn.equals(\"1\") ? Instances.lightMage : classn.equals(\"2\") ? Instances.darkMage : classn.equals(\"3\") ? Instances.swordsman : Instances.knight);\n\t\tEngine.cls();\n\t\tprint(\"Rolling stats...\");\n\t\tint[] s = Player.rollStats(c);\n\t\tplayer = new Player(name, c, s);\n\t\tplayer.printArmory();\n\t\tsaveFile();\n\t}", "title": "" }, { "docid": "0a60852aec3b746fb31687089b39db13", "score": "0.62279916", "text": "public void newGame()\n\t{\n\t\tfor (int i = 0; i < 4; i++){\n\t\t\tfor (int j = 0; j < 4; j++){\n\t\t\t\tvalues[i][j] = (int) (Math.random() * 16);\n\t\t\t}\n\t\t}\n\t\tstatus = \"New game started\";\n\t\tupdateListeners();\n\t}", "title": "" }, { "docid": "fc0ca21011131a6fbdc44f7b8adda8a7", "score": "0.6214546", "text": "private void createRooms()\n {\n Room entrada, salaDeClases, baño , vestuario, salaDeMaquinas ;\n\n // create the rooms\n entrada = new Room(\"gym\");\n salaDeClases= new Room(\"sala de clases\");\n baño = new Room(\"en el baño\");\n vestuario = new Room(\"en el vestuario\");\n salaDeMaquinas = new Room(\"en la sala de maquinas\");\n\n //objetos de las salas \n vestuario.addItem(\"calzones\",2,false);\n salaDeClases.addItem(\"proteinas\",6,true);\n // initialise room exits(arriba,derecha,abajo,izquierda)\n\n entrada.setExit(\"east\" , salaDeClases);\n entrada.setExit(\"south\" , vestuario);\n entrada.setExit(\"southEast\" , salaDeClases);\n\n salaDeClases.setExit(\"north\" , baño);\n salaDeClases.setExit(\"south\" , salaDeMaquinas);\n salaDeClases.setExit(\"west\" , entrada);\n\n baño.setExit(\"south\" , salaDeClases);\n vestuario.setExit(\"north\" , entrada);\n vestuario.setExit(\"east\" , salaDeMaquinas);\n\n salaDeMaquinas.setExit(\"north\" , salaDeClases);\n salaDeMaquinas.setExit(\"west\" , vestuario);\n salaDeMaquinas.setExit(\"northWest\", entrada);\n\n currentRoom = entrada; // start game outside\n\n //para crear el objeto en cualquier habitacion que sea ramdom\n SalasobjetoRamdom.add(salaDeClases);\n SalasobjetoRamdom.add(baño);\n SalasobjetoRamdom.add(vestuario);\n SalasobjetoRamdom.add(salaDeMaquinas);\n Random aleatorio = new Random();\n habitacionClave = SalasobjetoRamdom.get(aleatorio.nextInt(SalasobjetoRamdom.size()-1));\n habitacionClave.addItem(\"mando\",2,true);\n }", "title": "" }, { "docid": "f3d7ba9e5a0836c2aeed4d81e302066d", "score": "0.6178924", "text": "private void newGame() {\n controller = Controller.instance();\n controller.setFullscreenActivity(this);\n guessedCorrectly = new boolean[7];\n switch (selectedLanguage.getText().toString()) {\n case \"Telugu\":\n try {\n language = new Telugu();\n } catch (Exception e) {\n e.printStackTrace();\n }\n break;\n default:\n try {\n language = new English();\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n }\n controller.setLanguage(language);\n controller.start();\n font = language.getFont();\n wordsAndClues = controller.getWordsAndClues();\n tiles = controller.getTiles();\n for (int i = 0; i < tileButtons.size(); i++) {\n tileButtons.get(i).setText(tiles.get(i));\n }\n loadClues();\n reloadTiles(true);\n }", "title": "" }, { "docid": "b99cbee3ba8f22897a8ad3eb6c55ff2c", "score": "0.6154588", "text": "public void newGame() {\n game.newGame();\n historyPanel.newGame();\n boardView.newGame();\n game.setP2(new Player(\"PLAYER 2\", 1));\n playerInfoPanel.setPlayerName(1, game.getP1().getName());\n playerInfoPanel.setPlayerName(2, game.getP2().getName());\n }", "title": "" }, { "docid": "c3ad5d890ba270f0272d88707c61863f", "score": "0.6140687", "text": "public void newGame() {\n this.initializeRods();\n this.initializeDiscsGame();\n\n }", "title": "" }, { "docid": "7d1c8d3bf17fee470d860f53376bcecb", "score": "0.6126858", "text": "public void start() {\n instance = null;\n prnt(\"Choose action:\");\n prnt(\"1 - new game\");\n prnt(\"2 - load game\");\n switch (in.nextInt()) {\n case 1:\n newGame();\n break;\n case 2:\n try {\n load();\n play();\n } catch (ClassNotFoundException e) {\n prnt(\"Can't find load game, sorry.\");\n start();\n } catch (IOException e) {\n prnt(\"Can't load game, sorry\");\n start();\n }\n break;\n default:\n break;\n }\n }", "title": "" }, { "docid": "587201a9046c49017dec1d3d3afb6f6b", "score": "0.6085796", "text": "private void startNewGame() {\n game = new Game(mapWidth, mapHeight, arrows);\n updateMinimap(game.getPerceptions());\n \n // Update everything\n updateArrowsLeft();\n updateTotalMovements();\n updateNeededMovements();\n }", "title": "" }, { "docid": "1be7298845c7e1100afe37533aa3ed96", "score": "0.6072444", "text": "public void startNewGame() {\n\t\tscreen.clear();\n\t\tscreen.addPanel(new GamePanel(this, playerNames));\n\t\tscreen.setCurrentPanel(0);\n\t}", "title": "" }, { "docid": "d7406350521a656a0ee6506bb032cf2d", "score": "0.6058815", "text": "private void createMenu() {\n\n // menus\n JMenu menuGame = new JMenu(\"Game\");\n menuGame.setName(\"MenuGame\");\n\n // game menu items\n JMenuItem menuHumanHuman = new JMenuItem(\"Human vs Human\");\n menuHumanHuman.setName(\"MenuHumanHuman\");\n JMenuItem menuHumanRobot = new JMenuItem(\"Human vs CPU\");\n menuHumanRobot.setName(\"MenuHumanRobot\");\n JMenuItem menuRobotHuman = new JMenuItem(\"CPU vs Human\");\n menuRobotHuman.setName(\"MenuRobotHuman\");\n JMenuItem menuRobotRobot = new JMenuItem(\"CPU vs CPU\");\n menuRobotRobot.setName(\"MenuRobotRobot\");\n JMenuItem menuExit = new JMenuItem(\"Exit\");\n menuExit.setName(\"MenuExit\");\n\n // assembly\n JMenuBar menuBar = new JMenuBar();\n setJMenuBar(menuBar);\n menuBar.add(menuGame);\n menuGame.add(menuHumanHuman);\n menuGame.add(menuHumanRobot);\n menuGame.add(menuRobotHuman);\n menuGame.add(menuRobotRobot);\n menuGame.addSeparator();\n menuGame.add(menuExit);\n\n // listeners\n gameMenuListener(menuHumanHuman);\n gameMenuListener(menuHumanRobot);\n gameMenuListener(menuRobotHuman);\n gameMenuListener(menuRobotRobot);\n menuExit.addActionListener(event -> System.exit(0));\n }", "title": "" }, { "docid": "49b16cb566a62c8aee11258639dcd978", "score": "0.603199", "text": "private void createMenu() {\r\n\t\tString pageName = \"Blacksmith_Trainer\";\r\n\t\tString anvilPageName = \"Blacksmith_Anvil\";\r\n \tmenu = ChestMenuManager.buildMenuPage(null, pageName);\r\n \tanvilMenu = ChestMenuManager.buildMenuPage(null, anvilPageName);\r\n\t}", "title": "" }, { "docid": "74fe280bc6e078a00820a6e3e59d69f4", "score": "0.6015049", "text": "void newGame(int rows, int cols, int mines);", "title": "" }, { "docid": "4faa561d51049afe93f2a68c3af7c5ad", "score": "0.6010919", "text": "public static void gameMenu() {\n\t\tSystem.out.println(\"please select what you whated\");\n\t\tSystem.out.println(\"game1:1\");\n\t\tSystem.out.println(\"game new character:2\");\n\t\tint input = read.nextInt();\n\t\twhile (!(input == 1 || input == 2 || input == 3)) {\n\t\t\tSystem.out.println(\"please input 1 or 2:\");\n\t\t\tinput = read.nextInt();\n\t\t}\n\t\tif (input == 1) {\n\t\t\tgameLevel1(15);\n\t\t}\n\t\tif (input == 2) {\n\t\t\tgameNewCharacter(10);\n\t\t}\n\t}", "title": "" }, { "docid": "6e5f034f7d13799a0f387abe16f10f5a", "score": "0.60055083", "text": "private static void setUpGame()\n {\n frame = new JFrame();\n String initMessage = \"Hello, please enter a start state.\";\n init = getStateFromUserInput(initMessage);\n String goalMessage = \"Now, enter a final state.\";\n goal = getStateFromUserInput(goalMessage);\n\n // define dimension based on size\n dimension = (int) Math.sqrt(size+1);\n }", "title": "" }, { "docid": "d5cb22e5415f2397919e1a9e5f96be78", "score": "0.6001373", "text": "public void newGame() {\n this.setSmile(\"default\");\n this.board.newGame();\n }", "title": "" }, { "docid": "a312adb562ddd6fb3318445cb4d6c7ca", "score": "0.5994992", "text": "public void newGame()\r\n\t{\r\n\t\treset();\r\n\t}", "title": "" }, { "docid": "5204569254d378ebeb01f4578e0b0d48", "score": "0.59842646", "text": "public void startGame()\n\t\t{\n\t\t\t//adding all values of ranks and suit to an array.\n\t\t\tRank [] ranks = Rank.values();\n\t\t\tSuit [] suits = Suit.values();\n\t\t\n\t\t\t\n\t\t\t//using a for loop to add the cards to the deck.\n\t\t\tint counter = 0;\n\t\t\tfor(int j = 0; j < suits.length; j++)\n\t\t\t{\n\t\t\t\tfor(int i = 0; i < ranks.length; i++ )\n\t\t\t\t{\n\t\t\t\t\tCard cards = new Card(ranks[i], suits[j]);\n\t\t\t\t\tdeck[counter] = cards ;\n\t\t\t\t\tcounter++;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "2fa13ab4e020db58e337264e46d39462", "score": "0.5949235", "text": "@Override\n\tpublic void create() {\n\t\tSystem.out.println(\"进入蓝牙对战切换模式\");\n\t bfg=new blueFirstGame(this);\n\t \n\t bf=new bluefail(this);\n\t \n\t \t setScreen(bfg);\n\t \n\t\t\n\t}", "title": "" }, { "docid": "7a801f8e070fb752e4f28a1d34c0dc82", "score": "0.592399", "text": "public void newGame() {\n\t\tstartTime = System.nanoTime();\n\t\t//Wall walls = new Wall();\n\n\t\tGameInfo.projectiles.clear();\n\t\tGameInfo.players.clear();\n\t\tGameInfo.enemies.clear();\n\t\tGameInfo.spawns.clear();\n\t\tGameInfo.geoms.clear();\n\t\tGameInfo.effects.clear();\n\t\t//GameInfo.objects.add(walls);\n\t\tGameInfo.playerScore = 0;\n\t\tGameInfo.playerMultiplier = 1;\n\t\tGameInfo.difficulty = 1;\n\n\t\tGameInfo.spawns.add(new SpawnPoint(30, 30));\n\t\tGameInfo.spawns.add(new SpawnPoint(1100, 30));\n\t\tGameInfo.spawns.add(new SpawnPoint(1100, 700));\n\t\tGameInfo.spawns.add(new SpawnPoint(30, 700));\n\t\tlastSpawn = 0;\n\t\tspawnInterval = 4;\n\t\t\n\t\tfor(int x = GameInfo.xBegin+100; x<GameInfo.xEnd; x+=100){\n\t\t\tGameInfo.effects.add(new Line(true, x, 15));\t\n\t\t}\n\t\tfor(int y = GameInfo.yBegin+100; y<GameInfo.yEnd; y+=100){\n\t\t\tGameInfo.effects.add(new Line(false, y, 15));\t\n\t\t}\n\t\t\n\t\tPlayer ryan = new Player();\n\t\tryan.setYLoc(300);\n\t\tryan.setXLoc(500);\n\t\tGameInfo.players.add(ryan);\n\t}", "title": "" }, { "docid": "44beb3729456cce649768e5319e54c8a", "score": "0.59193575", "text": "public void newGame()\r\n\t{\r\n\t\t// Let the dog(black) piece always start first\r\n\t\tcurrentPlayer = DOG;\r\n\t\tclearBoard();\r\n\t\tgameOver = false;\r\n\t\tcurrentColumn = NO_OF_COLUMNS / 2 + 1;\r\n\t\t// Set pieces on the middle of the board to start a new game\r\n\t\tboard[4][4] = CAT;\r\n\t\tboard[4][5] = DOG;\r\n\t\tboard[5][5] = CAT;\r\n\t\tboard[5][4] = DOG;\r\n\t\trepaint();\r\n\t\tnoOfMove = 4;\r\n\t\tnoOfDog = 2;\r\n\t\tnoOfCat = 2;\r\n\t\tstartingPage = true;\r\n\t\thumanVsHuman = false;\r\n\t\thumanVsCom = false;\r\n\t\thints();\r\n\t}", "title": "" }, { "docid": "b7fdf25fc888fd826334a90e4a911683", "score": "0.5917064", "text": "public void input(){\n if(Gdx.input.isKeyJustPressed(Input.Keys.Q)){\n switch(selected){\n case 0:\n itemBox4 = new Sprite(SelectedBox);\n itemBox2 = new Sprite(ItemBox);\n itemBox3 = new Sprite(ItemBox);\n itemBox1 = new Sprite(ItemBox);\n selected = 3;\n Equipped = item4;\n break;\n case 1:\n itemBox1 = new Sprite(SelectedBox);\n itemBox2 = new Sprite(ItemBox);\n itemBox3 = new Sprite(ItemBox);\n itemBox4 = new Sprite(ItemBox);\n selected = 0;\n Equipped = item1;\n break;\n case 2:\n itemBox2 = new Sprite(SelectedBox);\n itemBox1 = new Sprite(ItemBox);\n itemBox3 = new Sprite(ItemBox);\n itemBox4 = new Sprite(ItemBox);\n selected = 1;\n Equipped = item2;\n break;\n case 3:\n itemBox3 = new Sprite(SelectedBox);\n itemBox2 = new Sprite(ItemBox);\n itemBox1 = new Sprite(ItemBox);\n itemBox4 = new Sprite(ItemBox);\n selected = 2;\n Equipped = item3;\n break;\n }\n Play.getPlayer().setDmg(Equipped.getDmg());\n }\n if(Gdx.input.isKeyJustPressed(Input.Keys.E)){\n switch(selected){\n case 0:\n itemBox2 = new Sprite(SelectedBox);\n itemBox1 = new Sprite(ItemBox);\n itemBox3 = new Sprite(ItemBox);\n itemBox4 = new Sprite(ItemBox);\n selected = 1;\n Equipped = item2;\n break;\n case 1:\n itemBox3 = new Sprite(SelectedBox);\n itemBox2 = new Sprite(ItemBox);\n itemBox1 = new Sprite(ItemBox);\n itemBox4 = new Sprite(ItemBox);\n selected = 2;\n Equipped = item3;\n break;\n case 2:\n itemBox4 = new Sprite(SelectedBox);\n itemBox2 = new Sprite(ItemBox);\n itemBox3 = new Sprite(ItemBox);\n itemBox1 = new Sprite(ItemBox);\n selected = 3;\n Equipped = item4;\n break;\n case 3:\n itemBox1 = new Sprite(SelectedBox);\n itemBox2 = new Sprite(ItemBox);\n itemBox3 = new Sprite(ItemBox);\n itemBox4 = new Sprite(ItemBox);\n selected = 0;\n Equipped = item1;\n break;\n }\n Play.getPlayer().setDmg(Equipped.getDmg());\n }\n if(Gdx.input.isKeyJustPressed(Input.Keys.NUM_1)){\n itemBox1 = new Sprite(SelectedBox);\n itemBox2 = new Sprite(ItemBox);\n itemBox3 = new Sprite(ItemBox);\n itemBox4 = new Sprite(ItemBox);\n selected = 0;\n Equipped = item1;\n Play.getPlayer().setDmg(Equipped.getDmg());\n }\n if(Gdx.input.isKeyJustPressed(Input.Keys.NUM_2)){\n itemBox2 = new Sprite(SelectedBox);\n itemBox1 = new Sprite(ItemBox);\n itemBox3 = new Sprite(ItemBox);\n itemBox4 = new Sprite(ItemBox);\n selected = 1;\n Equipped = item2;\n Play.getPlayer().setDmg(Equipped.getDmg());\n }\n if(Gdx.input.isKeyJustPressed(Input.Keys.NUM_3)){\n itemBox3 = new Sprite(SelectedBox);\n itemBox2 = new Sprite(ItemBox);\n itemBox1 = new Sprite(ItemBox);\n itemBox4 = new Sprite(ItemBox);\n selected = 2;\n Equipped = item3;\n Play.getPlayer().setDmg(Equipped.getDmg());\n }\n if(Gdx.input.isKeyJustPressed(Input.Keys.NUM_4)){\n itemBox4 = new Sprite(SelectedBox);\n itemBox2 = new Sprite(ItemBox);\n itemBox3 = new Sprite(ItemBox);\n itemBox1 = new Sprite(ItemBox);\n selected = 3;\n Equipped = item4;\n Play.getPlayer().setDmg(Equipped.getDmg());\n }\n\n /** Backpack open / close */\n if(Gdx.input.isKeyJustPressed(Input.Keys.TAB)){\n if(isBackpackOpen) {\n isBackpackOpen = false;\n }\n else {\n isBackpackOpen = true;\n }\n }\n\n\n /** Refer here to know how to remove health from player properly */\n //if(Gdx.input.isKeyPressed(Input.Keys.N)){\n // Play.getPlayer().setHealth(Play.getPlayer().getHealth() - 10f);\n // healthBarX += ((10f / Play.getPlayer().getFullHealth()) * playerHealthBar.getWidth()) / 2;\n // playerHealthBar.setScale(playerHealthBar.getScaleX() - 10f / Play.getPlayer().getFullHealth(), playerHealthBar.getScaleY());\n // }\n }", "title": "" }, { "docid": "684b2d30ef5458a2c03f3361fccb67ea", "score": "0.59144264", "text": "private void newGame ()\r\n {\r\n\tclearBoard (board);\r\n\tsetPieces (board); \r\n\t// Sets the selected row, column and piece to NONE, so a new game starts without a selected piece\r\n\tselectedRow = NONE;\r\n\tselectedColumn = NONE;\r\n\tselectedPiece = NONE;\r\n\tdrawingArea.setCursor (Cursor.getDefaultCursor ()); \r\n\trepaint (); // paint the drawing panel when restarting a new game \r\n }", "title": "" }, { "docid": "dc304c48a5d8e487b8bf28f7e014cb17", "score": "0.5913557", "text": "private void newGame(String player1FieldContent, String player2FieldContent, String player3FieldContent, String player4FieldContent) throws IOException{\n players = new Player[numberOfPlayers];\n activePlayer = 0;\n\n //Takes player names from the corrisponding text fields\n String player1Name = player1FieldContent;\n String player2Name = player2FieldContent;\n String player3Name = player3FieldContent;\n String player4Name = player4FieldContent;\n\n if(isSinglePlayer){\n //sets the default names for AI players\n player2Name = \"Wallace\";\n player3Name = \"Bruce\";\n player4Name = \"Connor\"; \n }\n\n loadingWarning.setText(\"\"); //resets the loading text\n\n //places the appropriate number of gems in the market\n if(numberOfPlayers == 4){\n marketDiamond = 7;\n marketSapphire = 7;\n marketEmerald = 7;\n marketRuby = 7;\n marketOnyx = 7;\n }\n else if(numberOfPlayers == 3){\n marketDiamond = 5;\n marketSapphire = 5;\n marketEmerald = 5;\n marketRuby = 5;\n marketOnyx = 5;\n }\n else {\n marketDiamond = 4;\n marketSapphire = 4;\n marketEmerald = 4;\n marketRuby = 4;\n marketOnyx = 4;\n }\n\n //creates the players\n players[0] = new Player(0, player1Name, false);\n players[0].setActivePlayer();\n players[1] = new Player(1, player2Name, isSinglePlayer); // will be AI if in single player\n if(numberOfPlayers >= 3){\n players[2] = new Player(2, player3Name, isSinglePlayer); // will be AI if in single player\n }\n if (numberOfPlayers == 4){\n players[3] = new Player(3, player4Name, isSinglePlayer); // will be AI if in single player \n }\n\n //removes any existing player visuals from the scene\n if(root.getChildren().contains(player1Group))\n root.getChildren().remove(player1Group);\n if(root.getChildren().contains(player2Group))\n root.getChildren().remove(player3Group);\n if(root.getChildren().contains(player3Group))\n root.getChildren().remove(player3Group);\n if(root.getChildren().contains(player4Group))\n root.getChildren().remove(player4Group);\n\n //adds player visuals to the scene\n player1Group = players[0].getVisuals();\n player1Group.setTranslateY(550);\n root.getChildren().add(player1Group);\n\n player2Group = players[1].getVisuals();\n root.getChildren().add(player2Group);\n\n if (numberOfPlayers > 2){\n player3Group = players[2].getVisuals();\n root.getChildren().add(player3Group);\n }\n if (numberOfPlayers > 3){\n player4Group = players[3].getVisuals();\n player4Group.setTranslateX(1084);\n root.getChildren().add(player4Group);\n } \n\n //enables the cheat\n for(Player player : players){\n if(player.getName().equals(\"Hodgson\"))\n player.enableCheat();\n }\n\n //clears the decks\n if(!level1Deck.isEmpty())\n level1Deck.clear();\n if(!level2Deck.isEmpty())\n level2Deck.clear();\n if(!level3Deck.isEmpty())\n level3Deck.clear();\n System.gc();\n\n //regenerates the decks\n level1Deck = deckGenerator.generateLevel1Deck();\n level2Deck = deckGenerator.generateLevel2Deck();\n level3Deck = deckGenerator.generateLevel3Deck();\n nobleDeck = deckGenerator.generateNoblesDeck();\n\n //clears the market displays\n level1Available.getChildren().clear();\n level2Available.getChildren().clear();\n level3Available.getChildren().clear();\n\n //repopulates the market displays\n for(int i = 0; i < level1Market.length; i++){\n Card card = level1Deck.pop();\n Group cardVisuals = card.getVisuals();\n addMarketCardFunction(level1Available, i, card, cardVisuals, level1Deck, level1Market);\n level1Market[i] = card;\n level1Available.getChildren().add(cardVisuals);\n }\n\n for(int i = 0; i < level2Market.length; i++){\n Card card = level2Deck.pop();\n Group cardVisuals = card.getVisuals();\n addMarketCardFunction(level2Available, i, card, cardVisuals, level2Deck, level2Market);\n level2Market[i] = card;\n level2Available.getChildren().add(cardVisuals);\n }\n\n for(int i = 0; i < level3Market.length; i++){\n final int index = i;\n Card card = level3Deck.pop();\n Group cardVisuals = card.getVisuals();\n addMarketCardFunction(level3Available, i, card, cardVisuals, level3Deck, level3Market);\n level3Market[i] = card;\n level3Available.getChildren().add(cardVisuals);\n }\n\n //sets the correct number of noble spaces in the market\n noblesMarket = new Noble[numberOfPlayers];\n\n availableNobles = new VBox();\n availableNobles.setTranslateX(820);\n availableNobles.setTranslateY(110);\n availableNobles.setSpacing(2);\n\n //populates the noble market and adds functinoality to the noble tiles\n for(int i = 0; i < noblesMarket.length; i++){\n final int index = i;\n final Noble noble = nobleDeck.pop();\n Group nobleVisuals = noble.getVisuals();\n nobleVisuals.setOnMousePressed( new EventHandler<MouseEvent>() {\n public void handle(MouseEvent event){\n if(gem1Type == null){ //ensures play has not started selecting gems\n int success = purchaseNoble(noble);\n if (success == 1){//if the noble can be purchased\n availableNobles.getChildren().get(index).setVisible(false); //set the noble to be invisible\n players[activePlayer].addNoble(noble); //add the noble to the player\n\n //plays the appropriate sound effect\n if(soundEffectsAllowed){\n try{\n audio.playEffect(cardDraw);\n }\n catch(Exception e){\n e.printStackTrace();\n }\n }\n\n nextTurn();\n }\n else {\n if(players[activePlayer].getHasNoble())\n instructions.setText(\"\\n\\n Already have a \\n noble\");\n else\n instructions.setText(\"\\n\\n Not enough bonuses\");\n optionText.setText(\"\");\n }\n }\n }\n });\n noblesMarket[i] = noble;\n availableNobles.getChildren().add(nobleVisuals);\n }\n\n turnMarker.setText(players[activePlayer].getName() + \"'s\");\n\n //creates the Help and Exit buttons\n\n Button help = new Button(\"HELP\");\n help.setTextAlignment(TextAlignment.CENTER);\n help.setFocusTraversable(false);\n help.setScaleX(2.5);\n help.setScaleY(1.75);\n help.setTranslateX(25);\n help.setOnMouseClicked( new EventHandler<MouseEvent>() {\n public void handle(MouseEvent event) {\n //plays the appropriate sound effect\n if(soundEffectsAllowed){\n try{\n audio.playEffect(buttonClick);\n }\n catch(Exception e){\n e.printStackTrace();\n }\n }\n\n //Opens the instruction manual pdf through your Desktop's\n //default program for opening a pdf\n if (Desktop.isDesktopSupported()) {\n try {\n Desktop.getDesktop().open(new File(\"./Resources/Instructions.pdf\"));\n } catch (Exception e) {\n e.printStackTrace();\n }\n } \n\n }\n }); \n\n Button exit = new Button(\"EXIT\");\n exit.setTextAlignment(TextAlignment.CENTER);\n exit.setFocusTraversable(false);\n exit.setScaleX(2.75);\n exit.setScaleY(1.75);\n exit.setTranslateX(27);\n exit.setOnMouseClicked( new EventHandler<MouseEvent>() {\n public void handle(MouseEvent event){\n //plays the appropriate sound effect\n if(soundEffectsAllowed){\n try{\n audio.playEffect(buttonClick);\n }\n catch(Exception e){\n e.printStackTrace();\n }\n }\n\n mainStage.setScene(mainMenu);\n }\n }); \n\n Button inGameSoundMenu = new Button(\"SOUND\");\n inGameSoundMenu.setTextAlignment(TextAlignment.CENTER);\n inGameSoundMenu.setFocusTraversable(false);\n inGameSoundMenu.setScaleX(1.75);\n inGameSoundMenu.setScaleY(1.75);\n inGameSoundMenu.setTranslateX(1113);\n inGameSoundMenu.setTranslateY(595);\n inGameSoundMenu.setOnMouseClicked( new EventHandler<MouseEvent>() {\n public void handle(MouseEvent event){\n //plays the appropriate sound effect\n if(soundEffectsAllowed){\n try{\n audio.playEffect(buttonClick);\n }\n catch(Exception e){\n e.printStackTrace();\n }\n }\n\n openSoundControls();\n }\n });\n\n VBox macroButtons = new VBox(help, exit);\n macroButtons.setSpacing(22);\n macroButtons.setTranslateX(13);\n macroButtons.setTranslateY(565);\n root.getChildren().addAll(macroButtons, availableNobles, inGameSoundMenu);\n\n resetInstructions();\n\n //sets the scene\n mainStage.setScene(mainScene);\n }", "title": "" }, { "docid": "da85a36334c0c01a144ab4c380db041e", "score": "0.5905418", "text": "public void gameScreen(){\n\t\tScreenType = isGame;\n\t\tfor(int i = 0; i < creep.length; i++){\n\t\t\tfor(int j = 0; j < creep[i].bombs.length; j++){\n\t\t\t\tcreep[i].bombs[j] = new Bomb();\n\t\t\t}\n\t\t}\n\t\tcreep[0].spawn();\n\t}", "title": "" }, { "docid": "c2b890ffb27b010cefc30087ea9f97ca", "score": "0.58967394", "text": "private void startNewGame() {\n\t\tinitTilePositions(new TilePosition(1, new Rect(0, 32, 31, 63)), new TilePosition(2,\n\t\t\t\tnew Rect(32, 32, 63, 63)), new TilePosition(3, new Rect(64, 32, 95, 63)), new TilePosition(4, new Rect(96, 32, 127, 63)),\t\t\t\t\n\t\t\t\t\t\tnew TilePosition(5, new Rect(0, 64, 31, 95)), new TilePosition(6,\n\t\t\t\tnew Rect(32, 64, 63, 95)), new TilePosition(7, new Rect(64, 64, 95, 95)), new TilePosition(8, new Rect(96, 64, 127, 95)),\n\t\t\t\t\t\tnew TilePosition(9, new Rect(0, 96, 31, 127)), new TilePosition(10,\n\t\t\t\tnew Rect(32, 96, 63, 127)), new TilePosition(11, new Rect(64, 96, 95, 127)), new TilePosition(12, new Rect(96, 96, 127, 127)),\n\t\t\t\t\t\tnew TilePosition(13, new Rect(96, 0, 127, 31)));\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tmCurrentImage = getNumberImage();\n\n\n\t\t// Create game tiles\n\t\tinitTiles();\n\n\n\n\t\t// Draw initial game Bitmap\n\t\tgetCurrentImage(true);\n\n\t\t// Init game state\n\t\t// mNumberOfMoves = 0;\n\t\t// mGameState = GameState.PLAYING;\n\t\t// Dbg.d(\"game started with empty tile index \" + mEmptyTileIndex);\n\t}", "title": "" }, { "docid": "3808002f0d71cde55cec6c398434b995", "score": "0.58919185", "text": "public static Game createDemoGame() {\n\t\tMapSnippet[] arr = new MapSnippet[4];\n\n\t\tMapSnippet s1 = new MapSnippet(\"s1\", \"s1\");\n\t\tMapSnippet s2 = new MapSnippet(\"s2\", \"s1\");\n\t\tMapSnippet s3 = new MapSnippet(\"s3\", \"s1\");\n\t\tMapSnippet s4 = new MapSnippet(\"s4\", \"s1\");\n\t\t\n\t\tarr[0] = s1;\n\t\tarr[1] = s2;\n\t\tarr[2] = s3;\n\t\tarr[3] = s4;\n\t\t\n\t\t\n\t\t//Ab hier Map item init\n\t\tMapItem mi1 = new MapItem(\"map_item1\", \"map_item\", new PointF(800, 100), new Description(\"\", \"\")) {\n\t\t\tpublic void unlockMapSnippets() {\n\t\t\t\ts1.setVisible(true);\n\t\t\t}\n\t\t};\n\t\tMapItem mi2 = new MapItem(\"map_item2\", \"map_item\", new PointF(600, 500), new Description(\"\", \"\")) {\n\t\t\tpublic void unlockMapSnippets() {\n\t\t\t\ts2.setVisible(true);\n\t\t\t}\n\t\t};\n\t\tMapItem mi3 = new MapItem(\"map_item3\", \"map_item\", new PointF(300, 600), new Description(\"\", \"\")) {\n\t\t\tpublic void unlockMapSnippets() {\n\t\t\t\ts3.setVisible(true);\n\t\t\t}\n\t\t};\n\t\tMapItem mi4 = new MapItem(\"map_item4\", \"map_item\", new PointF(90, 180), new Description(\"\", \"\")) {\n\t\t\tpublic void unlockMapSnippets() {\n\t\t\t\ts4.setVisible(true);\n\t\t\t}\n\t\t};\n\t\t\n\t\ts1.addItem(mi1);\n\t\ts2.addItem(mi2);\n\t\ts3.addItem(mi3);\n\t\ts4.addItem(mi4);\n\t\t\n\t\t//Ab hier Artifact init\n\t\tArtifact a1 = new Artifact(\"a1\", \"artifact\", new PointF(420, 630), new Description(\"2005, August\", \"Das ist ein Stein!\"));\n\t\tArtifact a2 = new Artifact(\"a2\", \"artifact\", new PointF(800, 530), new Description(\"1900\", \"Porzelanente?\"));\n\t\tArtifact a3 = new Artifact(\"a3\", \"artifact\", new PointF(155, 455), new Description(\"100 v.Chr\", \"Das ist eine alte Vase\"));\n\t\tArtifact a4 = new Artifact(\"a4\", \"artifact\", new PointF(180, 640), new Description(\"1500-1700\", \"Ein altes Amulett.\"));\n\t\tArtifact a5 = new Artifact(\"a5\", \"artifact\", new PointF(835, 635), new Description(\"420\", \"Antike schmuckschatulle.\"));\n\t\tArtifact a6 = new Artifact(\"a6\", \"artifact\", new PointF(50, 50), new Description(\"1954\", \"Ene schwarz Kugel.\"));\n\t\t\t\t\n\t\ts2.addItem(a1);\n\t\ts2.addItem(a2);\n\t\ts2.addItem(a5);;\n\t\t\n\t\ts3.addItem(a3);\n\t\ts3.addItem(a4);\n\n\t\ts4.addItem(a6);\n\t\t\n\t\ta1.setRequiredArtifacts(a2);\n\t\ta5.setRequiredArtifacts(a2);\n\t\t\n\t\ta4.setRequiredArtifacts(a6);\n\t\t\n\t\ta6.addItemCollectionListener(new ItemCollectionListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void itemCollected(Item source) {\n\t\t\t\tDialogWindow d = new DialogWindow();\n\t\t\t\td.setDialogue(dialogue);\n\t\t\t\td.setVisible(true);\n\t\t\t}\n\t\t});\n\t\t\n\t\t//Ab hier player init\n\t\tPlayer p = new Player(20);\n\t\tp.setLocation(new PointF(450, 640));\n\t\t\n\t\t//Ab hier Map init\n\t\tMap map = new Map(arr, new PointF(size.x, size.y));\n\t\tGame game = new Game(map, p);\n\t\t\n\t\t//Return\n\t\treturn game;\n\t}", "title": "" }, { "docid": "ac40a7b09192620c266909abd4e5246a", "score": "0.58894295", "text": "private void assignDecks() {\n switch (this.AIDeckCombo.getSelectedIndex()) {\n case 0: //base\n AIDeck = this.getBaseDeck();\n enemyHeroPortrait = SpriteHandler.knightHero;\n break;\n case 1: //fish\n AIDeck = this.getFishDeck();\n enemyHeroPortrait = SpriteHandler.alligatorHero;\n break;\n case 2: //deep sea\n AIDeck = this.getDeepSeaDeck();\n enemyHeroPortrait = SpriteHandler.fishManHero;\n break;\n case 3: //undead\n AIDeck = this.getUndeadDeck();\n enemyHeroPortrait = SpriteHandler.undeadHero;\n break;\n case 4: //dragon\n AIDeck = this.getDragonDeck();\n enemyHeroPortrait = SpriteHandler.dragonHero;\n break;\n case 5: //empire\n AIDeck = this.getEmpireDeck();\n enemyHeroPortrait = SpriteHandler.empireHero;\n break;\n }\n if(yourDeckCombo.getSelectedItem().equals(useCustomText)){\n if(loadedCustomDeckPlayer==null){\n return;\n }\n PlayerDeck = loadedCustomDeckPlayer.deck;\n return;\n }\n switch (this.yourDeckCombo.getSelectedIndex()) {\n case 0: //base\n PlayerDeck = this.getBaseDeck();\n break;\n case 1: //fish\n PlayerDeck = this.getFishDeck();\n break;\n case 2: //deep sea\n PlayerDeck = this.getDeepSeaDeck();\n break;\n case 3: //undead\n PlayerDeck = this.getUndeadDeck();\n break;\n case 4://dragon\n PlayerDeck = this.getDragonDeck();\n break;\n case 5: //empire\n PlayerDeck = this.getEmpireDeck();\n break;\n \n }\n }", "title": "" }, { "docid": "4f392f23c247e4b14019e8b05c964397", "score": "0.58838683", "text": "private void setBoard(){\n\t\tTOTAL_GOLD = goldGenerator();\n\t\tgoldItem = new Gold[TOTAL_GOLD];\n\t\tpitItem = new Pit[TOTAL_PIT];\n\t\twumpItem=new Wumpus[TOTAL_WUMPUS];\n\t\tTOTAL_CG=cgGenerator(); //what is the use of this variable\n\t\tcgItem=new ClearGround[TOTAL_CG];\n\t\tfor(int i=0;i<TOTAL_GOLD;i++)\n\t\t{\n\t\t\tgoldItem[i] = new Gold(GOLD_CHARACTER);\n\t\t\tsetPosition(goldItem[i]);\n\t\t\t//goldItem[i].display(); /* to sets the individual Gold item position in Board\n\t\t\t//System.out.println(\"Printing done\");\n\t\t\t\n\t\t}\n\t\t\n\t\t//System.out.println(\"Entered Gold\");\n\t\t\n\t\t/**\n\t\t * we can create objects for clear Ground at last after setting the player\n\t\t */\n\t\t\n\t\t\n\t\t\n\t\t\n\t\tfor(int i=0;i<TOTAL_PIT;i++)\n\t\t{\n\t\t\tpitItem[i] = new Pit(PIT_CHARACTER);\n\t\t\tsetPosition(pitItem[i]);\n\t\t\t//pitItem[i].display(); /* to sets the individual Gold item position in Board\n\t\t\t//System.out.println(\"Printing done\");\n\t\t\t\n\t\t}\n\t\t\n\t\t//System.out.println(\"Entered PIT\");\n\t\tfor(int i=0;i<TOTAL_WUMPUS;i++){\n\t\t\twumpItem[i]=new Wumpus(WUMPUS_CHARACTER);\n\t\t\tsetPosition(wumpItem[i]);\n\t\t}\n\t\t//System.out.println(\"Entered Wumpus\");\n\t\t\n\t\tsetPosition(); //Sets the Player\n\t/*\tSystem.out.println(\"Entered Player\");\n\t\t\n\t\tSystem.out.println(\"Going to Enter the Clear ground\"); \n\t\t*/\n\t\tfor(int i=0;i<TOTAL_CG;i++){\n\t\t\tcgItem[i]=new ClearGround(CLEAR_GROUND_CHARACTER);\n\t\t\t\n\t\t} \n\t\tsetPosition(cgItem);\n\t\t//System.out.println(\"Entered Clear ground\"); \n\t\n}", "title": "" }, { "docid": "d6dbb00f70744124a3c9b02088b61c6c", "score": "0.58829534", "text": "public static void main(String[] args)\n {\n\n //For starting new game:\n\n ArrayList<Player> hRoster = null;\n ArrayList<Player> aRoster= null;\n Team homeTeam = null;\n Team awayTeam = null;\n Pitch pitch = new Pitch();\n Game game;\n GUI gui;\n ActionSelector a = new ActionSelector();\n PlayerSelector p = new PlayerSelector();\n TeamSelector t = new TeamSelector();\n\n //getting the players team selections\n\n Object team_1 = t.getTeam(\"home\", \"irrelevant\");\n Object team_2 = t.getTeam(\"away\", team_1);\n\n Object home_formation;\n Object away_formation;\n\n\n\n try\n {\n homeTeam = new Team(team_1.toString(),true);\n hRoster = homeTeam.getRoster();\n awayTeam = new Team(team_2.toString(), false);\n aRoster = awayTeam.getRoster();\n\n }\n catch(FileNotFoundException e)\n {\n System.out.println(\"File not found\");\n }\n\n gui = new GUI(hRoster, aRoster, homeTeam, awayTeam);\n\n //setting the players selected team formations\n\n Object[] formation_options = { \"1-4-4-2\", \"1-4-3-3\", \"1-5-4-1\" };\n home_formation = a.getChoice(\"Formation Menu\",\n \"Select a Home Team formation:\",\n formation_options);\n\n\n away_formation = a.getChoice(\"Formation Menu\",\n \"Select a Home Team formation:\",\n formation_options);\n\n\n try\n {\n\n if(home_formation.equals(\"1-4-4-2\"))\n {\n pitch.setFormation(1,4,4,2,'h','s',hRoster);\n\n }\n if(home_formation.equals(\"1-4-3-3\"))\n {\n pitch.setFormation(1,4,3,3,'h','s',hRoster);\n }\n if(home_formation.equals(\"1-5-4-1\"))\n {\n pitch.setFormation(1,5,4,1,'h','s',hRoster);\n }\n if(away_formation.equals(\"1-4-4-2\"))\n {\n pitch.setFormation(1,4,4,2,'a','s',aRoster);\n }\n if(away_formation.equals(\"1-4-3-3\"))\n {\n pitch.setFormation(1,4,3,3,'a','s',aRoster);\n }\n if(away_formation.equals(\"1-5-4-1\"))\n {\n pitch.setFormation(1,5,4,1,'a','s',aRoster);\n }\n\n }\n catch(TooManyPlayersException e)\n {\n System.out.println(\"There's too many players on the pitch!\");\n }\n\n //create the game instance with the players in their formations\n\n game = new Game(homeTeam, awayTeam);\n gui.addTime(game);\n gui.displayGUI(\"Formations Set!\");\n\n //for game operations and making plays\n\n while(game.getTime()<=45)\n {\n //select an action to perform:\n\n Object[] actions = { \"MOVE\", \"PASS\", \"SHOOT\", \"DRIBBLE\" };\n Object action = a.getChoice(\"Action Menu\",\n \"Select an action:\",\n actions);\n\n\n if(action.equals(\"SHOOT\"))\n {\n try\n {\n boolean shot = game.shoot();\n\n if(shot == true)\n {\n\n //resetting the formations after a goal\n\n try{\n if(away_formation.equals(\"1-4-4-2\"))\n {\n pitch.setFormation(1,4,4,2,'a','s',aRoster);\n }\n if(away_formation.equals(\"1-4-3-3\"))\n {\n pitch.setFormation(1,4,3,3,'a','s',aRoster);\n }\n if(away_formation.equals(\"1-5-4-1\"))\n {\n pitch.setFormation(1,5,4,1,'a','s',aRoster);\n }\n if(home_formation.equals(\"1-4-4-2\"))\n {\n pitch.setFormation(1,4,4,2,'h','s',hRoster);\n\n }\n if(home_formation.equals(\"1-4-3-3\"))\n {\n pitch.setFormation(1,4,3,3,'h','s',hRoster);\n }\n if(home_formation.equals(\"1-5-4-1\"))\n {\n pitch.setFormation(1,5,4,1,'h','s',hRoster);\n }\n }\n catch(TooManyPlayersException e)\n {\n System.out.println(\"There's too many players on the pitch!\");\n }\n\n gui.displayGUI(\"GOOAALLLL!\");\n }\n else if(shot == false) {\n gui.displayGUI(\"NO GOAL!\");\n }\n\n }\n catch(BadBallPosession e)\n {\n System.out.println(\"Both teams have the ball or nobody has the ball...\");\n }\n }\n\n\n\n if(action.equals(\"PASS\"))\n {\n\n //determine the teamate to pass to\n\n try\n {\n Object teammate;\n\n if(awayTeam.hasBall() == true) {\n\n teammate = p.getPlayer(\"Player Menu\",\n \"Select a player:\",\n aRoster);\n boolean pTrue = game.passTo(teammate.toString());\n System.out.println(teammate);\n\n if (pTrue == true) {\n gui.displayGUI(\"Nice Pass!\");\n }\n else if(pTrue == false) {\n gui.displayGUI(\"Pass stolen!\");\n }\n }\n\n else{\n\n teammate = p.getPlayer(\"Player Menu\",\n \"Select a player:\",\n hRoster);\n\n boolean pTrue = game.passTo(teammate.toString());\n System.out.println(teammate);\n\n if (pTrue == true) {\n gui.displayGUI(\"Nice Pass!\");\n }\n else if(pTrue == false) {\n gui.displayGUI(\"Pass stolen!\");\n }\n }\n\n }\n catch(BadPlayerPassException e)\n {\n System.out.println(\"The player entered isn't on the attacking team!\");\n }\n catch(BadBallPosession e)\n {\n System.out.println(\"That player/team doesn't have the ball\");\n }\n }\n\n\n\n if(action.equals(\"MOVE\"))\n {\n\n try\n {\n\n Object moving_player;\n\n if(awayTeam.hasBall() == true) {\n\n moving_player = p.getPlayer(\"Player Menu\",\n \"Select a player:\",\n aRoster);\n }\n else{\n\n moving_player = p.getPlayer(\"Player Menu\",\n \"Select a player:\",\n hRoster);\n }\n\n //pull coordinates to move the player to\n\n String xd = JOptionPane.showInputDialog(\"Enter the x-coordinate to move \" +moving_player +\" to: \");\n String yd = JOptionPane.showInputDialog(\"Enter the y-coordinate to move \" +moving_player +\" to: \");\n int x = Integer.parseInt(xd);\n int y = Integer.parseInt(yd);\n game.move(moving_player.toString(),x,y);\n gui.displayGUI(\"Nice Move!\");\n }\n catch(MaxDistanceExceeded e)\n {\n System.out.println(\"That's not a valid distance\");\n }\n catch(BadBallPosession e)\n {\n System.out.println(\"That player/team doesn't have the ball\");\n }\n }\n\n\n\n if(action.equals(\"DRIBBLE\")) {\n\n //determin the coordinates to dribble to\n\n String xd = JOptionPane.showInputDialog(\"Enter the x-coordinate to dribble to: \");\n String yd = JOptionPane.showInputDialog(\"Enter the y-coordinate to dribble to: \");\n int x = Integer.parseInt(xd);\n int y = Integer.parseInt(yd);\n\n\n try {\n boolean shot = game.dribble(x, y);\n\n if(shot == true)\n { gui.displayGUI(\"Nice dribble!\");\n }\n else\n {\n gui.displayGUI(\"The ball was stolen!\");\n }\n }\n catch(MaxDistanceExceeded e)\n {\n System.out.println(\"That's not a valid distance\");\n gui.displayGUI(\"Too risky of a move!\");\n\n }\n catch(BadBallPosession e)\n {\n System.out.println(\"That player/team doesn't have the ball\");\n }\n\n }\n }\n }", "title": "" }, { "docid": "90653b3be07da61b55ce05d607b2b7de", "score": "0.58809584", "text": "public static void main(String[] args) {\n initGameData();\r\n //Pick a name\r\n System.out.print(\"Enter Character Name: \");\r\n String name = userInput.nextLine();\r\n //Pick how many rooms they wish to play\r\n System.out.print(\"Enter number of levels: \");\r\n //Hope you use a number or it'll blow up...\r\n int maxRooms = Integer.parseInt(userInput.nextLine());\r\n //Instantiate the commandprocessor to check validity of commands the user inputs\r\n CommandProcessor commandProcessor=new CommandProcessor();\r\n //New thing I added to display commands at beginning of the game because I know text based games that tell you nothing about how to start really suck\r\n String response=\"\\nCommands:\\n\";\r\n ArrayList<String> commands=commandProcessor.getCommands();\r\n\t\tfor(String c:commands){\r\n\t\t\tresponse=response+c+\"\\n\";\r\n\t\t}\r\n\t\tSystem.out.println(response);\r\n\t\t//Create new player with the inputted name, 100hp, and a bag with a crowbar\r\n\t\tBag playerBag=new Bag();\r\n\t\tWeapon crowbar=new Weapon(\"Standard Crowbar\", \"\", 5, -30);\r\n\t\tplayerBag.addItem(crowbar);\r\n currentPlayer = new Human(name,100, playerBag);\r\n int roomsBeat = 0;//The one variable to rule them all...or dictate when the game is over.\r\n \r\n while (roomsBeat < maxRooms) {\r\n /*\r\n * Create room bad guys and items\r\n */\r\n System.out.println(\"Entering Room \" + (roomsBeat + 1));\r\n System.out.println(\" \");\r\n initCurrentRoomBeasts();//Calls method to create a new array list filled with a new set of gamebeasts so each \"room\" has it's own chunk of memory\r\n int creaturesDestroyed = 0;//The 2nd variable to rule most of the others...or dictate when a room is over.\r\n int runCounter=0;\r\n /*Checks to see if player is alive and said player hasn't \"cleared\" the room\r\n * Picks a random number from 0-100 to simulate probability\r\n * Declares and item and beast to null\r\n * checks the encounterProb against preset probability chances to other find an item or find a beast\r\n * If the item choice gets picked it will grab a random item from the gameItems, tell the player what they found, and then run noBattle\r\n * \t\tnoBattle will take in a command, check to make sure it's valid (return a response if invalid), then run that command based off another method.\r\n * If the encounterProb rolls high enough, a beast is found. A beast is chosen from the currentRoomBeasts (NOT GAMEBEASTS), tell the player they encountered a thing, then do battle.\r\n * \t\tbattle will prompt user to pick a weapon from their bag, if they pick something they dont own it will tell them, if the weapon is valid, the beast will get hit and it's health updated based on the value of the weapon\r\n * \t\tonce beasty is dead, the creaturesDestroyed variable will increment by 1.\r\n * Once the while loop completes (by killing 2 beasts), roomsBeat will increment by 1.\r\n * Once the outter while completes by roomsBeat being greater than or equal to the user input number of rooms, the game will end.\r\n \t*/\r\n while (currentPlayer.isLiving() && creaturesDestroyed < 2) {\r\n int encounterProb = random.nextInt(100);\r\n Item foundItem = null;\r\n Beast foundEnemy = null;\r\n /*\r\n * 60 percent chance of being a Beast.\r\n */\r\n if (encounterProb <= 40) {\r\n foundItem = findItem();\r\n System.out.println(\"You have discovered the item \"+foundItem.getName());\r\n while (noBattle(foundItem)); \r\n \r\n }\r\n else {\r\n foundEnemy = findEnemy();\r\n System.out.println(\"You have encountered a(n) \" + foundEnemy.getName());\r\n if (battle (foundEnemy)) {\r\n creaturesDestroyed++;\r\n }\r\n else{\r\n \tSystem.out.println(\"You ran away!\");\r\n \trunCounter++;\r\n }\r\n if(!currentPlayer.isLiving() || runCounter>=5){\r\n System.out.println(\"You are dead!\");\r\n return;\r\n }\r\n }\r\n }\r\n roomsBeat++;\r\n }\r\n System.out.println(\"You have beat RoomEscape!\");\r\n\t}", "title": "" }, { "docid": "8dad6a53e257d065a985478a914ff810", "score": "0.5879896", "text": "public void makePreset(int numLives, int spaceshipSpeed, int alienSpeed, int levelName) {\n this.levelName = levelName;\n this.numLives = numLives;\n this.spaceshipSpeed = -spaceshipSpeed;\n this.alienSpeed = alienSpeed;\n canvas.removeAll();\n\n GraphicsText text = new GraphicsText(\"Are you ready????\");\n text.setFont(BIG_FONT);\n text.setFillColor(Color.YELLOW);\n text.setCenter(CANVAS_WIDTH/2,520);\n canvas.add(text);\n\n List<GraphicsText> instruction = new ArrayList<>() {{\n add(new GraphicsText(\"HOW TO PLAY:\"));\n add(new GraphicsText(\"\"));\n add(new GraphicsText(\"Move the spaceship by moving your cursors.\"));\n add(new GraphicsText(\"Click to shoot the Alien.\"));\n add(new GraphicsText(\"Bullets will kill the aliens upon contact.\"));\n add(new GraphicsText(\"You only have 5 bullets at a time.\"));\n add(new GraphicsText(\"Bullets will recharge when it kills Aliens or get out of bounds.\"));\n add(new GraphicsText(\"You win if all aliens are destroyed.\"));\n add(new GraphicsText(\"\"));\n add(new GraphicsText(\"Beware aliens will also shoot you.\"));\n add(new GraphicsText(\"You will lose a life if Aliens' bullets touch you.\"));\n add(new GraphicsText(\"You will COMPLETELY lose the battle if you ran out of lives.\"));\n add(new GraphicsText(\"The hearts on the top right corner --\"));\n add(new GraphicsText(\"-- indicates how many lives you have.\"));\n add(new GraphicsText(\"\"));\n add(new GraphicsText(\"Aliens will also be ascending down.\"));\n add(new GraphicsText(\"You will also COMPLETELY lose the battle --\"));\n add(new GraphicsText(\"-- if ANY of those Aliens come above you on the y-axis.\"));\n add(new GraphicsText(\"(They don't have even to touch you for you to lose.)\"));\n }};\n\n for (int i = 0; i <= instruction.size() -1; i ++) {\n instruction.get(i).setFont(SMALL_FONT);\n instruction.get(i).setFillColor(Color.YELLOW);\n instruction.get(i).setCenter(CANVAS_WIDTH/2,60 + 23*i);\n canvas.add(instruction.get(i));\n }\n\n addButton(button.get(4),CANVAS_WIDTH/2,\"Play\");\n }", "title": "" }, { "docid": "e65f2f4d02a655db9300ade039a397b9", "score": "0.58658946", "text": "public static void optionsMenue(){\r\n\t\tint shapeChosen = getShapeNumFromList(\"\\nChoose an option from below: (pick a number) \\n 1. Change Border Character \\n 2. Clear Screen \\n 3. Abandon Screen and Create New One \\n 4. Create a Shape \\n 5. Print Screen \\n 6. Quit Program\");\r\n\t\tif (shapeChosen == 1){\r\n\t\t\tchooseBorderChar(\"Please Select a border character\");\r\n\t\t\tboard.draw();\r\n\t\t\toptionsMenue();}\r\n\t\tif (shapeChosen == 2){\r\n\t\t\tboard.clearScreen(board);\r\n\t\t\tboard.draw();\r\n\t\t\toptionsMenue();}\r\n\t\tif (shapeChosen == 3){\r\n\t\t\tmakeBoard();\r\n//\t\t\toptionsMenue();\r\n\t\t\tboard.draw();\r\n\t\t\tthingsToDo();}\r\n\t\tif (shapeChosen == 4)\r\n\t\t\tthingsToDo();\r\n\t\tif (shapeChosen == 5){\r\n\t\t\tboard.draw();\r\n\t\t\toptionsMenue();}\r\n\t\tif (shapeChosen == 6)\r\n\t\t\tSystem.out.println(\"GoodBye!\");\r\n\t\tSystem.exit(0);\r\n\t}", "title": "" }, { "docid": "29bdd54d7cc6399b339d67dc0b91b922", "score": "0.5859872", "text": "private void gameInit() {\n\t\tswitch (type) {\n\t\tcase \"GOFISH\":\n\t\t\tthis.deckMin = 2;\n\t\t\tthis.deckMax = 14;\n\t\t\tbreak;\n\t\tcase \"MEMORY\":\n\t\t\tthis.deckMin = 7;\n\t\t\tthis.deckMax = 14;\n\t\t\tbreak;\n\t\tcase \"WAR\":\n\t\t\tthis.deckMin = 2;\n\t\t\tthis.deckMax = 14;\n\t\t\tbreak;\n\t\tdefault:\n\t\t\t//meh\n\t\t}\n\t}", "title": "" }, { "docid": "e0b91732d0805f8f25eeec02aff755a1", "score": "0.5855528", "text": "private void createSystem( int which ) {\r\n if ( clearFirst.getValue() ) {\r\n \tsystem.clear();\r\n } \r\n system.name = tests[which];\r\n \r\n system.useg.setValue(true); // wanted for most of these examples\r\n system.robustCCD.restitutionValue.setValue(0);\r\n system.robustCCD.repulsion.setValue(true);\r\n\r\n if (which == 0 ) {\r\n \tcreateBulletAndLayers();\r\n } else if ( which == 1 ) {\r\n \tcreateSimple();\r\n \t} else if ( which == 2) { \r\n createChains();\r\n } else if ( which == 3) {\r\n createPendulumPair();\r\n } else if ( which == 4 ) { \r\n \tcreateZigZag(); \r\n } else if ( which == 5 ) {\r\n \tcreateHairsHard(); \r\n } else if ( which == 6 ) {\r\n \tcreateHairsEasy();\r\n } else if ( which == 7 ) {\r\n \tcreateTriangleTruss();\r\n } else if ( which == 8 ) {\r\n createChain( 320, 100, 10, 200 );\r\n } else if ( which == 9 ) { \r\n \tcreateJacobiTest();\r\n } else if ( which == 10 ){\r\n \tcreateElasticRodCollision();\r\n } else if ( which == 11 ) {\r\n \tcreateSimpleBendTest(); \r\n } else if ( which == 12 ) { \r\n \tcreateCircles();\r\n } else if ( which == 13 ) {\r\n \tcreateBentHairs();\r\n } else if ( which == 14 ) {\r\n \t// TODO: create your own test systems here!\r\n \t// set the names for the interface buttons in the String array \"tests\" above\r\n } else if ( which == 15 ) {\r\n\r\n } else if ( which == 16 ) {\r\n\r\n } else if ( which == 17 ) {\r\n\r\n } else if ( which == 100 ) { \r\n \tcreateSandwich();\r\n } \r\n }", "title": "" }, { "docid": "01063bf8a97b8c9a2e0b5aa52e6161ea", "score": "0.5842801", "text": "private void newGame() {\n/* controllerList.remove(1);\n controllerList.remove(2);\n controllerList.add(new GameController(gameModel));\n controllerList.add(new PauseController(gameModel));*/\n GameModel.getCar().sound.stopSound();\n GameModel.checkpointPassed = false;\n GameModel.initializeCar();\n GameModel.initializeObstacles();\n GameModel.resetTime();\n GameModel.getCar().damage = false;\n gameView.setupGameWindow();\n setupInteraction();\n }", "title": "" }, { "docid": "0631f4b01b1585394cfbb194fbae7428", "score": "0.5831336", "text": "public void startGame(){\n\t\tmainWindow = new Window();\n\t\tJPanel blankPanel = new JPanel();\n\t\tblankPanel.setBackground(GamePanel.BACKGROUND_COLOR);\n\t\tmainWindow.setResultPanel(blankPanel);\n\t\tselectPlayers();\n\t}", "title": "" }, { "docid": "ddef4507f95114a195b7c6e623ade716", "score": "0.58249366", "text": "public static void main(String[] args) {\r\n Scanner input = new Scanner(System.in);\r\n System.out.println(\"what is the filename of the dungeon you want to play? or what is the save you want to load?\");\r\n GameState state= GameState.Instance();\r\n String fileName= input.nextLine();\r\n if(fileName.endsWith(\".sav\")){\r\n state.restore(fileName);\r\n }else if(fileName.endsWith(\".zork\")){\r\n Dungeon thisDungeon = new Dungeon(fileName,true);\r\n state.initialize(thisDungeon);\r\n }\r\n \r\n\r\n\r\n\r\n System.out.println(\"Welcome to \" + state.getDungeon().getName());\r\n System.out.println(state.getAdvenurersCurrentRoom().describe());\r\n while (state.running) {\r\n String whatTheyGave = promptUser(input);\r\n if (whatTheyGave.equalsIgnoreCase(\"quit\")) {\r\n state.running=false;\r\n }else{\r\n CommandFactory in = CommandFactory.getInstance();\r\n Command toGo=in.parse(whatTheyGave);\r\n System.out.println(toGo.execute());\r\n }\r\n }\r\n System.out.println(\"Thanks for Playing!\");\r\n \r\n }", "title": "" }, { "docid": "1a3e4494be737be7fdf7526da51a6ce0", "score": "0.58237684", "text": "public void prepGame() throws IOException, InstantiationException, IllegalAccessException {\n FXMLLoader loaderFM = new FXMLLoader(UIController.class.getResource(\"/FirstMenu.fxml\"));\n this.rootMenu = loaderFM.load();\n this.fmController = loaderFM.getController();\n FXMLLoader loaderSS =\n new FXMLLoader(SettingsController.class.getResource(\"/GameSettingMenu.fxml\"));\n this.rootNewGame = loaderSS.load();\n this.settingsController = loaderSS.getController();\n\n FXMLLoader loaderGS = new FXMLLoader(GameController.class.getResource(\"/GameState.fxml\"));\n this.root2 = loaderGS.load();\n this.gameController = loaderGS.getController();\n\n this.bestScene = new Scene(rootMenu);\n\n gameController.setChangeScene(this);\n settingsController.setChangeScene(this);\n fmController.setChangeScene(this);\n\n }", "title": "" }, { "docid": "fe9c4f825bbd32b31097e949d0a12d68", "score": "0.5821909", "text": "public void createMenu() {\n\n\t\tJMenu menu;\n\t\t// JMenu submenu;\n\t\tJMenuItem menuItem;\n\t\tJRadioButtonMenuItem radioButtonMenuItem;\n\t\t// JCheckBoxMenuItem cbMenuItem;\n\n\t\t// Create the menu bar.\n\t\tmenuBar = new JMenuBar();\n\n\t\t// Build the first menu.\n\t\tmenu = new JMenu(\"Game\");\n\t\tmenu.setMnemonic(KeyEvent.VK_G);\n\t\tmenu.getAccessibleContext().setAccessibleDescription(\"The only menu in this program that has menu items\");\n\t\tmenuBar.add(menu);\n\t\tmenu.addActionListener(this);\n\n\t\tmenuItem = new JMenuItem(\"New Game\", KeyEvent.VK_N);\n\t\tmenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_F2, 0));\n\t\tmenuItem.getAccessibleContext().setAccessibleDescription(\"This doesn't really do anything\");\n\t\tmenuItem.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tnew NewGameWhileGameIsInProgressPopup(parent_main_view).display_option_pane();\n\t\t\t\t/*\n\t\t\t\t * if (GameManager.hasGameInProgress()) { Object[] options = { \"Yes\", \"No\" };\n\t\t\t\t * \n\t\t\t\t * int n = JOptionPane.showOptionDialog(parent_main_view, \"Abort current game?\",\n\t\t\t\t * \"Game in progress!\", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE,\n\t\t\t\t * null, options, options[0]); LOGGER.info(\"Abort current game popup answer: \" +\n\t\t\t\t * n); if (n == JOptionPane.YES_OPTION) { LOGGER.info(\"Abo.rt current game\");\n\t\t\t\t * GameManager.getInstance().abort_current_game(); } else if (n ==\n\t\t\t\t * JOptionPane.NO_OPTION) { LOGGER.info(\"Do not abort current game. Resume\");\n\t\t\t\t * return; } else { LOGGER.info(\"Default answer (popup closed?)\"); return; } }\n\t\t\t\t * GameManager.getInstance().new_game();\n\t\t\t\t */\n\t\t\t}\n\t\t});\n\t\tmenu.add(menuItem);\n\n\t\t// a group of radio button menu items\n\t\tmenu.addSeparator();\n\n\t\tButtonGroup group = new ButtonGroup();\n\n\t\tUserChoicesManager user_choice_manager = UserChoicesManager.getInstance();\n\t\tfor (GameDifficultyDataModel gameDifficultyDataModel : user_choice_manager.getGame_difficulty_data_models()) {\n\n\t\t\tradioButtonMenuItem = new JRadioButtonMenuItem(gameDifficultyDataModel.getName());\n\t\t\tradioButtonMenuItem.setSelected(user_choice_manager.getGameDifficultyChosen() == gameDifficultyDataModel);\n\t\t\t// rbMenuItem.setMnemonic(KeyEvent.VK_R);\n\t\t\tradioButtonMenuItem.addActionListener(new ActionListener() {\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\tuser_choice_manager.selectGameDifficulty(gameDifficultyDataModel);\n\t\t\t\t\tLOGGER.info(\"rbMenuItem.addActionListener\");\n\t\t\t\t}\n\t\t\t});\n\n\t\t\tgroup.add(radioButtonMenuItem);\n\t\t\tmenu.add(radioButtonMenuItem);\n\t\t}\n\n\t\tradioButtonMenuItem = new JRadioButtonMenuItem(\"Custom..\");\n\t\tradioButtonMenuItem.setSelected(\n\t\t\t\tuser_choice_manager.getGameDifficultyChosen() == user_choice_manager.getCustom_game_difficulty());\n\t\t// rbMenuItem.setMnemonic(KeyEvent.VK_R);\n\t\tradioButtonMenuItem.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tLOGGER.info(\"rbMenuItem.addActionListener\");\n\t\t\t}\n\t\t});\n\n\t\tgroup.add(radioButtonMenuItem);\n\t\tmenu.add(radioButtonMenuItem);\n\n\t\t// a group of check box menu items\n\t\tmenu.addSeparator();\n\n\t\tmenuItem = new JMenuItem(\"Exit\", KeyEvent.VK_P);\n\t\tmenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_X, InputEvent.ALT_DOWN_MASK));\n\t\t// menuItem.getAccessibleContext().setAccessibleDescription(\"This doesn't really\n\t\t// do anything\");\n\t\tmenuItem.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tLOGGER.info(\"Kill application\");\n\t\t\t\tparent_main_view.dispose();\n\t\t\t}\n\t\t});\n\t\tmenu.add(menuItem);\n\n\t\t// Build second menu in the menu bar.\n\t\tmenu = new JMenu(\"Cheats\");\n\t\tmenu.setMnemonic(KeyEvent.VK_C);\n\t\tmenu.getAccessibleContext().setAccessibleDescription(\"This menu does nothing\");\n\t\tgetMenuBar().add(menu);\n\n\t\tmenuItem = new JMenuItem(\"Cheat code\", KeyEvent.VK_C);\n\t\tmenuItem.setAccelerator(\n\t\t\t\tKeyStroke.getKeyStroke(KeyEvent.VK_C, InputEvent.SHIFT_DOWN_MASK | InputEvent.CTRL_DOWN_MASK));\n\t\tmenuItem.getAccessibleContext().setAccessibleDescription(\"This doesn't really do anything\");\n\t\tmenuItem.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tCheatCodeDialog cheatCodeDialog = new CheatCodeDialog(parent_main_view);\n\t\t\t\tcheatCodeDialog.pack();\n\t\t\t\tcheatCodeDialog.setLocationRelativeTo(parent_main_view);\n\t\t\t\tcheatCodeDialog.setVisible(true);\n\t\t\t\tLOGGER.info(\"actionPerformed\" + e);\n\t\t\t}\n\t\t});\n\t\tmenu.add(menuItem);\n\n\t\tparent_main_view.setJMenuBar(menuBar);\n\t}", "title": "" }, { "docid": "e5f7c933997461621d40a3d2766b180a", "score": "0.58114463", "text": "private void getNewSize() {\n JFrame optionsFrame = new JFrame(\"New Board\");\n JPanel optionsPanel = new JPanel();\n\n JLabel widthLabel = new JLabel(\"Width: \");\n String[] str = {\"2\", \"3\", \"4\", \"5\", \"6\"};\n JComboBox widthBox = new JComboBox(str);\n widthBox.setSelectedItem(\"4\");\n JLabel heightLabel = new JLabel(\"Height: \");\n String[] str2 = {\"2\", \"4\", \"6\"};\n JComboBox heightBox = new JComboBox(str2);\n heightBox.setSelectedItem(\"4\");\n\n JButton startButton = new JButton(\"Start New Game\");\n startButton.addActionListener(new ActionListener() {\n\n /**\n * Takes the values in the dropdown menus and creates a starts a new\n * memory game with them.\n */\n @Override\n public void actionPerformed(ActionEvent ae) {\n String widthStr = (String) widthBox.getSelectedItem();\n int width = Integer.parseInt(widthStr);\n String heightStr = (String) heightBox.getSelectedItem();\n int height = Integer.parseInt(heightStr);\n\n frame.getContentPane().removeAll();\n \n for (ActionListener al : gameTimer.getActionListeners()) {\n gameTimer.removeActionListener(al);\n }\n //Removes timer listener, so the one of correct size can\n //be added in the newGame method\n \n newGame(height, width);\n optionsFrame.dispose();\n }\n\n });\n\n optionsPanel.add(widthLabel);\n optionsPanel.add(widthBox);\n optionsPanel.add(heightLabel);\n optionsPanel.add(heightBox);\n optionsPanel.add(startButton);\n\n optionsFrame.add(optionsPanel);\n optionsFrame.setSize(200, 100);\n Point center = new Point(frame.getX() + 200, frame.getY() + 250);\n optionsFrame.setLocation(center);\n optionsFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n optionsFrame.setVisible(true);\n optionsFrame.setAlwaysOnTop(true);\n }", "title": "" }, { "docid": "7a4f439cffcd97fbd4a943a222e32f1d", "score": "0.58111334", "text": "public void createItem() {\r\n\t\tTextWindow tw = new TextWindow(true,\" \",(int)x,(int)y,20,3,state);\r\n\t\taddMenuItem(tw);\r\n\t\tTextLabel mapLabel = new TextLabel(gs.getNintenName(),(int)x + 512,(int)y+24,state);\r\n\t\tTextLabel nintenNameLabel = new TextLabel(\"Level \" + gs.getNintenLevel(),(int)x+512,(int)y+88,state);\r\n\t\tTextLabel nintenLevelLabel = new TextLabel(MapNames.getName(gs.getMapName()),(int)x+512,(int)y+88+64,state);\r\n\t\tTextLabel timePlayedLabel = new TextLabel(gs.getFormattedTimePlayed(),(int)x+512,(int)y+88+128,state);\r\n\t\taddMenuItem(mapLabel);\r\n\t\taddMenuItem(nintenNameLabel);\r\n\t\taddMenuItem(nintenLevelLabel);\r\n\t\taddMenuItem(timePlayedLabel);\r\n\t\t\r\n\t\tfor (int i = 0; i < 9; i++) {\r\n\t\t\tif (gs.getFlag(\"melody\" + (i+1))) {\r\n\t\t\t\t//add a menu item for the melody\r\n//\t\t\t\tint dx = 0;\r\n//\t\t\t\tint dy = 0;\r\n\t\t\t\tint wid = 12;\r\n\t\t\t\tint hgt = 18;\r\n\t\t\t\tTexturedMenuItem tmi = new TexturedMenuItem(\"\",(int) x + 768 + ((wid+4)*4*i) + 64, (int) y + 88, wid * 4, hgt * 4, state, \"melodies.png\",i*wid,0,wid,hgt);\r\n\t\t\t\taddMenuItem(tmi);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "555be57d00d67a2361140298dd0a2dac", "score": "0.5798291", "text": "private void handleMapSelect(Object source) {\n JButton checker = this.screen.getButtons().getCheckerMapButton();\n JButton open = this.screen.getButtons().getOpenMapButton();\n JButton lines = this.screen.getButtons().getLinesMapButton();\n\n if (source == checker || source == open || source == lines) {\n if (source == checker) {\n this.game = new BomberManGame(\"checker\", this.difficulty, this);\n } else if (source == open) {\n this.game = new BomberManGame(\"open\", this.difficulty, this);\n } else {\n this.game = new BomberManGame(\"lines\", this.difficulty, this);\n }\n\n this.currentScreen = \"gameScreen\";\n this.inGame = true;\n this.win = false;\n this.inMenu = false;\n this.gameRenderer = new GameRenderer(this.game);\n\n this.add(this.gameRenderer);\n this.cards.add(this.gameRenderer, \"gameScreen\");\n this.timer.start();\n }\n }", "title": "" }, { "docid": "3fa7965ea2d73643542db718a4115fb6", "score": "0.5784524", "text": "public void start() {\n Boolean gameStarted = true;\n Player player = new Player(getPlayerName(), 15, \"punch\", 2, 3);\n\n while (gameStarted) {\n\n ui.clear();\n Menu mainMenu = new Menu();\n mainMenu.Add(\"Show maps\", () -> mapLoader.showMaps(player));\n mainMenu.Add(\"Show high scores (highest score)\", highScoreHandler::getAllHighScoresByScore);\n mainMenu.Add(\"Show high scores (most kills)\", highScoreHandler::getAllHighScoresByKills);\n mainMenu.Add(\"Export high scores from DB to XML\", highScoreHandler::exportDBToXML);\n mainMenu.Add(\"Show High Scores From XML\", highScoreHandler::getHighScoresFromXML);\n mainMenu.Add(\"Quit\", () -> System.exit(0));\n\n mainMenu.Show();\n\n }\n }", "title": "" }, { "docid": "ae924601a420046d2d567d4c0b259722", "score": "0.57789874", "text": "private void init() {\n Scanner sc = new Scanner(System.in);\n\n // поле\n System.out.println(\"input pole size\");\n int POLE_SIZE = sc.nextInt();\n\n // линия для победы\n System.out.println(\"input line size\");\n int lineSize = sc.nextInt();\n\n // вариант игры\n System.out.println(\"select game: 1 - human vs human, \" +\n \"2 - human vs computer, \" +\n \"3 - computer vs computer\");\n int select = sc.nextInt();\n\n sc.nextLine();\n\n switch (select) {\n case 1:// human vs human\n System.out.println(\"input name one\");\n String humanName1 = sc.nextLine();\n p1 = new HumanPlayer(humanName1);\n p1.setChar('X');\n System.out.println(\"input name two\");\n String humanName2 = sc.nextLine();\n p2 = new HumanPlayer(humanName2);\n p2.setChar('O');\n break;\n case 2:// human vs computer\n System.out.println(\"input name\");\n String humanName = sc.nextLine();\n p1 = new HumanPlayer(humanName);\n p2 = new DumpAiPlayer(POLE_SIZE);\n break;\n case 3:// computer vs computer\n p1 = new DumpAiPlayer(POLE_SIZE);\n p2 = new DumpAiPlayer(POLE_SIZE);\n p1.setChar('X');\n p2.setChar('O');\n break;\n }\n\n gameArrayCharPole = new ArrayCharPole(POLE_SIZE, lineSize);\n }", "title": "" }, { "docid": "1dcbe8727aba25eab696d8c1d18dffc2", "score": "0.577811", "text": "private void createRooms()\n {\n Room cave_start, cave1, cave2, cave3, cave4, cave5, cave6, cave7, cave8, cave9, cave10, bossBattle,\n treasureRoom, armoury, deadEnd1, deadEnd2, deadEnd3, chestRoom1;\n\n // create the rooms\n cave_start = new Room(\"in a dark and damp smelling room, peering into the darkness \\ndoes not bring anything into focus\");\n cave1 = new Room(\"in a room which seems to resemble the last, a musty smell fills your nostrils.\");\n cave2 = new Room(\"in a room similar to the ones previously, you cannot see much and the smell remains \\npungent as ever\");\n cave3 = new Room(\"overwhelmed by how musty the room is. You notice a small hole in the corner of the room\");\n cave4 = new Room(\"starting to get a feel for the darkness and the layout of the cave\");\n cave5 = new Room(\"growing acustomed to the smell and dim light\");\n cave6 = new Room(\"starting to wonder how you got here in the first place. You see a ladder\");\n cave7 = new Room(\"suprised as the smell worsens but the lighting improves\");\n cave8 = new Room(\"in a dome shaped room, noticibly larger than the ones previously\");\n cave9 = new Room(\"in what appears to be a dining room, you notice an ornate table in the centre\");\n cave10 = new Room(\"terrified by loud grunts and the sound of cracking bones. Are you sure you want to continue?\");\n bossBattle = new Room(\"BOSS BATTLE\");\n treasureRoom = new Room(\"in a dimply lit room, a glint catches your eye\"); \n armoury = new Room(\"startled as you notice a man in full plate armour. 'You're alive?!' he booms \\n 'You looked pretty beat up when the ogre dragged you in here'. \\n I'm a merchant, I sell swords for killing beasts. \\n They're good but they dont come cheap. 100 gold pieces please.\" );\n deadEnd1 = new Room(\"in a room that appears to be a dead end\");\n deadEnd2 = new Room(\"in a tiny room, you notice a key lying on the floor\");\n deadEnd3 = new Room(\"in a room that seems to lead nowhere\");\n // initialise room exits\n cave_start.setExit(\"north\", cave1);\n\n cave1.setExit(\"north\", cave2);\n cave1.setExit(\"south\", cave_start);\n\n cave2.setExit(\"north\", cave3);\n cave2.setExit(\"south\", cave1);\n\n cave3.setExit(\"down\", deadEnd1);\n cave3.setExit(\"west\", cave4);\n cave3.setExit(\"south\", cave2);\n\n deadEnd1.setExit(\"up\", cave3);\n\n cave4.setExit(\"east\", cave3);\n cave4.setExit(\"south\", cave5);\n cave4.setExit(\"west\", deadEnd2); \n\n deadEnd2.setExit(\"east\", cave4);\n deadEnd2.setKey(true);\n\n cave5.setExit(\"north\", cave4);\n cave5.setExit(\"west\", cave6);\n\n cave6.setExit(\"east\", cave5);\n cave6.setExit(\"up\", cave7);\n cave6.setExit(\"west\", deadEnd3);\n\n deadEnd3.setExit(\"east\", cave6);\n\n cave7.setExit(\"down\", cave6);\n cave7.setExit(\"up\", cave8);\n cave7.setExit(\"east\", armoury);\n\n armoury.setExit(\"west\", cave7);\n armoury.setShop(true);\n\n cave8.setExit(\"down\", cave7);\n cave8.setExit(\"west\", cave9);\n\n cave9.setExit(\"east\", cave8);\n cave9.setExit(\"south\", treasureRoom);\n cave9.setExit(\"north\", cave10);\n\n treasureRoom.setExit(\"north\", cave9);\n treasureRoom.setChest(chest);\n\n cave10.setExit(\"south\", cave9);\n cave10.setExit(\"up\", bossBattle);\n\n bossBattle.setMonster(ogre);\n\n currentRoom = cave_start; // start game at the starting cave section\n }", "title": "" }, { "docid": "eeabfbd6c39dea6de14eaff3fc3eb880", "score": "0.57658327", "text": "public void newGame() {\n gridWorld.generateWorld(TilePattern.RANDOM_SPARSE);\n gridWorld.agents.clear();\n gridWorld.addAgent(new DoveAgent(gridWorld.getWalkableTile(), \"Adam\"));\n gridWorld.addAgent(new HawkAgent(gridWorld.getWalkableTile(), \"Eve\"));\n\n // Generate food on E(x) = 5% of walkable tiles\n for (Tile[] y_tile : gridWorld.tiles)\n for (Tile x_tile : y_tile)\n if (x_tile.walkable() && r.nextDouble() > 0.95)\n x_tile.growFood();\n\n view.drawWorldTiles(gridWorld.tiles, gridWorld.TILE_SIZE, gridWorld.OFFSET);\n view.drawFood(gridWorld.tiles, gridWorld.TILE_SIZE, gridWorld.OFFSET);\n view.highlightGoalFood(gridWorld.agents, gridWorld.TILE_SIZE, gridWorld.OFFSET);\n view.drawAgents(gridWorld.agents, gridWorld.TILE_SIZE, gridWorld.OFFSET);\n }", "title": "" }, { "docid": "bb2d0efe941a08b0c4c6d2831e62e4d3", "score": "0.5756481", "text": "public static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in); \r\n\t\ttestgame2.SetEnvironment(100, 100);\r\n\t\t//testgame2.AddPlayer();\r\n\t\ttestgame2.AddPlayer();\r\n\t\ttestgame2.Start();\r\n\t\t/*Game testgame = new Game();\r\n\t\ttestgame.SetEnvironment(new Date(0,0,0,0,1), new Date(0,0,0,0,1));\r\n\t\ttestgame.AddPlayer();\r\n\t\ttestgame.AddPlayer();\r\n\t\ttestgame.Start(); */\r\n\t\t/*while(true)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Java_OOP csapat Robot Game test\\n\");\r\n\t\t\tSystem.out.println(\"Válassza ki a futtatandó tesztet:\\n\\n\");\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"[1] Inicializálás\\n\");\r\n\t\t\tSystem.out.println(\"[2] Akadály elhelyezése és ugrás\\n\");\r\n\t\t\tSystem.out.println(\"[3] Egy robot lelép a pályáról\\n\");\r\n\t\t\tSystem.out.println(\"[4] Akadályra lépés és új akadály elhelyezése\\n\");\r\n\t\t\tSystem.out.println(\"[5] Játék vége, mert nincs több robot a pályán\\n\");\r\n\t\t\tSystem.out.println(\"[6] Játék vége, mert lejárt az idõ\\n\");\r\n\t\t\t\r\n\t\t\tselector = in.nextInt();\r\n\t\t\tswitch(selector)\r\n\t\t\t{\r\n\t\t\tcase 1:\r\n\t\t\t\tGame testGame = new Game();\r\n\t\t\t\ttestGame.AddPlayer();\r\n\t\t\t\ttestGame.AddPlayer();\r\n\t\t\t\ttestGame.SetEnvironment(new Date(0,0,0,0,2,0), new Date(0,0,0,0,0,10));\r\n\t\t\t\t\r\n\t\t\t\tAfterTest();\r\n\t\t\t\tbreak;\r\n\t\t\tcase 2:\r\n\t\t\t\tMute();\r\n\t\t\t\tPlayer testPlayer = new Player();\r\n\t\t\t\tUnmute();\r\n\t\t\t\ttestPlayer.Turn();\r\n\t\t\t\r\n\t\t\t\tAfterTest();\r\n\t\t\t\tbreak;\r\n\t\t\tcase 3:\r\n\t\t\t\tMute();\r\n\t\t\t\tPlayer testPlayer2 = new Player();\r\n\t\t\t\tGameObjectContainer.AddObstacle(new Putty());\r\n\t\t\t\tUnmute();\r\n\t\t\t\tGame testGame3 = new Game();\r\n\t\t\t\ttestGame3.Start();\r\n\t\t\t\t//testPlayer2.Turn();\r\n\t\t\t\t\r\n\t\t\t\tAfterTest();\r\n\t\t\t\tbreak;\r\n\t\t\tcase 4:\r\n\t\t\t\tMute();\r\n\t\t\t\tPlayer testPlayer3 = new Player();\r\n\t\t\t\tGameObjectContainer.AddObstacle(new Putty());\r\n\t\t\t\tUnmute();\r\n\t\t\t\ttestPlayer3.Turn();\r\n\t\t\t\t\r\n\t\t\t\tAfterTest();\r\n\t\t\t\tbreak;\r\n\t\t\tcase 5:\r\n\t\t\t\tMute();\r\n\t\t\t\tGame testGame2 = new Game();\r\n\t\t\t\ttestGame2.AddPlayer();\r\n\t\t\t\ttestGame2.AddPlayer();\r\n\t\t\t\ttestGame2.SetEnvironment(new Date(0,0,0,0,0,0), new Date(0,0,0,0,0,10));\r\n\t\t\t\tGameObjectContainer.AddObstacle(new Oil());\r\n\t\t\t\tUnmute();\r\n\t\t\t\ttestGame2.Start();\r\n\t\t\t\t\r\n\t\t\t\tAfterTest();\r\n\t\t\tcase 6:\r\n\t\t\t\tMute();\r\n\t\t\t\tGame testGame4 = new Game();\r\n\t\t\t\ttestGame4.AddPlayer();\r\n\t\t\t\ttestGame4.SetEnvironment(new Date(0,0,0,0,0,0), new Date(0,0,0,0,0,10));\r\n\t\t\t\tUnmute();\r\n\t\t\t\ttestGame4.Start();\r\n\t\t\t\t\r\n\t\t\t\tAfterTest();\r\n\t\t\tdefault :\r\n\t\t\t\tSystem.out.println(\"Véletlenül rossz számot ütöttél be. Kérlek olvasd el újra a \"\r\n\t\t\t\t\t\t+ \"lehetõségeket és próbálkozz újra!\");\r\n\t\t\t\ttry {\r\n\t\t\t\t\tSystem.in.read();\r\n\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}*/\r\n\t}", "title": "" }, { "docid": "628107cb9f7fdf1b692d2af12445a685", "score": "0.57505417", "text": "public void startGame(int index, boolean generateMap, boolean readParametersFromSliders) {\n if (selectedLevelIndex < 0 || selectedLevelIndex > INDEX_OF_LAST_LEVEL) return;\n gameController.prepareForNewGame(index, generateMap, readParametersFromSliders);\n gameView.beginSpawnProcess();\n menuControllerYio.createGameOverlay();\n// menuControllerLighty.scrollerYio.factorModel.setValues(0, 0);\n setGamePaused(false);\n letsIgnoreNextTimeCorrection();\n }", "title": "" }, { "docid": "eac31a2ffde8ae788c4ef72a87c73c4f", "score": "0.5747132", "text": "public void newGame() {\n deck.shuffle();\n dealMyCards();\n initDealer();\n }", "title": "" }, { "docid": "5a9b84996877bf3fd4d1b23b7b938d3b", "score": "0.5745433", "text": "public void creator() {\r\n\t\tJOptionPane.showMessageDialog(cardPanel, \"For troop selection, use the right menu to select a troop to add. It will show up on the left side, under the highlighted troop.\");\r\n\t\tJOptionPane.showMessageDialog(cardPanel, \"Use the up and down arrows to change the highlighted troop. The number next to each troop shows how many of them will be spawned.\");\r\n\t\tJOptionPane.showMessageDialog(cardPanel, \"There will be approximately 160 milliseconds between each troop sent.\");\r\n\t\tJOptionPane.showMessageDialog(cardPanel, \"For the map creation, select the tile you would like to place from the right menu, then click where you want to place it.\");\r\n\t\tJOptionPane.showMessageDialog(cardPanel, \"Alternatively, you can click and drag to place that tile everywhere you pass over.\");\r\n\t\tJOptionPane.showMessageDialog(cardPanel, \"You can also change the dimensions of the map, or the number of grid spots there are, and the background image.\");\r\n\t\tJOptionPane.showMessageDialog(cardPanel, \"Once you are done, you can save it as a map file to be loaded from the menu.\");\r\n\t\tcreator.loop();\r\n\t\t((CardLayout) cardPanel.getLayout()).show(cardPanel, \"creator\");\r\n\t}", "title": "" }, { "docid": "3df49b99e0fdbe60503392f5c84cdd65", "score": "0.57428354", "text": "private void makeGame() {\n\t\tGame game = new Game(getPlayer(Color.YELLOW), getPlayer(Color.RED));\n\t\tgame.play();\n\t}", "title": "" }, { "docid": "c2c5e9108c8fc9576c819774746a9df3", "score": "0.57408625", "text": "private void startGame() {\n setVisible(false);\n dispose();\n\n try {\n View.create(1500, 800, net, net.playerId(), net.numPlayers());\n } catch (SlickException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "75d5d3f100ebe5a770e85a24ab3463b0", "score": "0.5739285", "text": "@Override\r\n\tpublic void create() {\r\n\t\tAssets.load();\r\n\t\tthis.game = new PlantesFerry(this.context);\r\n\t\tthis.menuScreen = new MenuScreen(this, this.game);\r\n\t\tthis.gameScreen = new GameScreen(this, this.game);\r\n\t\tsetScreen(this.menuScreen);\r\n\t}", "title": "" }, { "docid": "3fd0e7fb2434cd35eb161fc923b43f79", "score": "0.5737678", "text": "private void createGameMenu()\n\t{\n\t\tMenuBar menuBar = new MenuBar();\n\t\tMenu menuFile = new Menu(\"File\");\n\t\tMenu menuHelp = new Menu(\"Help\");\n\n\t\tMenuItem createGame = new MenuItem((\"Create the game\"));\n\t\tcreateGame.setOnAction(event ->\n\t\t{\n\t\t\tstartGameButton.setDisable(false);\n\t\t\tendRoundButton.setDisable(false);\n\t\t\tplayerNameText.setText(\"\");\n\n\t\t\tJoinGameMessage newJoinMessage = new JoinGameMessage(0, true);\n\t\t\ttry {\n\t\t\t\tmyClient.sendMessage(newJoinMessage);\n\t\t\t} catch (IOException e) {\n\t\t\t\terrorDialog(\"no send message!\");\n\t\t\t}\n\t\t});\n\n\t\tMenuItem joinGame = new MenuItem((\"Join the game\"));\n\t\tjoinGame.setOnAction(event ->\n\t\t{\n\t\t\tstartGameButton.setDisable(false);\n\t\t\tendRoundButton.setDisable(false);\n\t\t\tplayerNameText.setText(\"\");\n\t\t\tgameIdDialog();\n\t\t});\n\n\t\tMenuItem botAdd = new MenuItem(\"Bot add\");\n\t\tbotAdd.setOnAction(event ->\n\t\t{\n\t\t\tSuccessMessage newMessage = new SuccessMessage(33333, \"add bot\");\n\t\t\ttry {\n\t\t\t\tmyClient.sendMessage(newMessage);\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.out.println(\"Removing game failure..\");\n\t\t\t}\n\t\t});\n\n\t\tMenuItem removeGame = new MenuItem((\"Remove game\"));\n\t\tremoveGame.setOnAction(event ->\n\t\t{\n\t\t\tSuccessMessage newMessage = new SuccessMessage(22222, \"remove game\");\n\t\t\ttry {\n\t\t\t\tmyClient.sendMessage(newMessage);\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.out.println(\"Removing game failure..\");\n\t\t\t}\n\t\t});\n\n\t\tMenuItem setName = new MenuItem((\"Set name\"));\n\t\tsetName.setOnAction(event ->\n\t\t{\n\t\t\tTextInputDialog dialog = new TextInputDialog(\"\");\n\t\t\tdialog.setTitle(\"Set your name!\");\n\t\t\tdialog.setHeaderText(\"\");\n\t\t\tdialog.setContentText(\"New name:\");\n\n\t\t\tOptional<String> result = dialog.showAndWait();\n\n\t\t\tresult.ifPresent(name ->\n\t\t\t{\n\t\t\t\tString lineName = result.get();\n\n\t\t\t\tif (lineName.matches(\"[\\\\w]+\"))\n\t\t\t\t{\n\t\t\t\t\tNewNameMessage newMessage = new NewNameMessage(lineName);\n\t\t\t\t\ttry {\n\t\t\t\t\t\tmyClient.sendMessage(newMessage);\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\terrorDialog(\"no send message!\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tString errorLine = \"Your name is invalid. Use only alphanumeric characters\";\n\t\t\t\t\terrorDialog(errorLine);\n\t\t\t\t}\n\n\t\t\t});\n\t\t});\n\n\t\tMenuItem changeServer = new MenuItem((\"Change Server\"));\n\t\tchangeServer.setOnAction(t -> changeServer());\n\n\t\tMenuItem exit = new MenuItem(\"Exit\");\n\t\texit.setOnAction(t ->\n\t\t{\n\t\t\tPlatform.exit();\n\t\t\tSystem.exit(0);\n\t\t});\n\n\t\tmenuFile.getItems().addAll(joinGame, createGame, changeServer, setName, botAdd, new SeparatorMenuItem(),removeGame, exit);\n\t\tmenuBar.getMenus().addAll(menuFile, menuHelp);\n\n\t\tMenuItem authorsInfo = new MenuItem(\"About..\");\n\t\tauthorsInfo.setOnAction(t ->\n\t\t{\n\t\t\tString context = \"Created by:\\nKonrad Czart & Kacper Zielinski\\nConnection: \"\n\t\t\t\t\t+ myClient.getLocalhost() + \":\" + myClient.getPort();\n\t\t\tinfoDialog(\"About\", \"Chinese Checkers Game\", context);\n\t\t});\n\t\tmenuHelp.getItems().addAll(authorsInfo);\n\n\t\ttopHBox.getChildren().add(menuBar);\n\t}", "title": "" }, { "docid": "e32b65b88615ebb04f563d919f206067", "score": "0.5715577", "text": "private static void gameStart() {\n\t\t//remove our splash screen\n\t\tframe.getContentPane().removeAll();\n\n\t\t//add game board\n gameBoard = new Board();\n frame.add(gameBoard);\n \n //repaint our frame\n frame.revalidate();\n frame.repaint();\n \n //gameBoard needs focus so that KeyAdapter works.\n gameBoard.requestFocusInWindow();\n \n //Start game\n difficulty = 1; //1 - 12\n gameBoard.spawnRandomPiece();\n\t\ttimerDelay = 750; //Starting delay at difficulty 1\n\t\t\n startTimer(timerDelay);\n \n\t}", "title": "" }, { "docid": "7ac0e018fa9e1e0d20011578a6eb95ec", "score": "0.57121843", "text": "void start(){\n MenuItem.Command command = ui.mainMenu();\n\n // We could use switch here, but this is actually cleaner so yeah\n if(command == MenuItem.Command.COMMAND_EXIT) exit();\n if(command == MenuItem.Command.COMMAND_ENTER_NEW) enterNewMovie();\n if(command == MenuItem.Command.COMMAND_SHOW_ACTOR) showActor();\n if(command == MenuItem.Command.COMMAND_DUMMY_DATA) populateWithDummyData();\n if(command == MenuItem.Command.COMMAND_SHOW_ALL) showAll();\n }", "title": "" }, { "docid": "50b2b24dc51e42b11950416be8285ae7", "score": "0.57064456", "text": "public void StartGame()\n\t{\n\t\tSpinner cboLevel = (Spinner)findViewById(R.id.cboSelectLevel);\n\t\tint level = cboLevel.getSelectedItemPosition() + 1;\n\t\t\n\t\t// Get the number of problems\n\t\tSpinner cboProblems = (Spinner)findViewById(R.id.cboNumProblems);\n\t\tint numproblems = Integer.parseInt(cboProblems.getSelectedItem().toString());\n\t\t\n\t\t// Create a new GameData\n\t\tGameData gdata = new GameData(numproblems, level);\n\t\t\n\t\t// Start the main game activity\n\t\tIntent intent = new Intent();\n\t\tintent.setClass(this, MainGame.class);\n\t\tintent.putExtra(\"GameData\", gdata);\n\t\tstartActivity(intent);\n\t}", "title": "" }, { "docid": "e47fe8dbd7eb72a1e5a66daec21f447c", "score": "0.5698456", "text": "private void startProcedure(){\n this.woordLabel.setFont(new Font(25));\n this.BoggleArray = new BoggleButton[boardSize][boardSize];\n this.characters = new char[boardSize * boardSize];\n this.generateCharacters();\n this.boggleButtons = this.makeBoggleScherm();\n Pane boggleScherm = new Pane(boggleButtons, lineGroup);\n this.gameBox = new VBox(this.timerBox, this.woordLabel, boggleScherm);\n this.window = new HBox(gameBox, new VBox(geradenWoordenPane, this.totalScore, this.speler));\n this.alignBoxes();\n this.geradenWoordenPane.setMinWidth(this.geradenWoordenWidth);\n this.geradenWoordenPane.setMinHeight(this.height - 50);\n this.scene = new Scene(UtilLib.getCentered(window), this.width, this.height);\n }", "title": "" }, { "docid": "afa1bb98fe0ef262695c1838b374cabe", "score": "0.5686027", "text": "private void createRooms()\n {\n Room outside, theater, pub, lab, office;\n \n // create the rooms\n outside = new Room(\"outside the main entrance of the university\");\n theater = new Room(\"in a lecture theater\");\n pub = new Room(\"in the campus pub\");\n lab = new Room(\"in a computing lab\");\n office = new Room(\"in the computing admin office\");\n \n // initialise room exits\n outside.setExit(\"east\", theater);\n outside.setExit(\"south\", lab);\n outside.setExit(\"west\", pub);\n\n theater.setExit(\"west\", outside);\n\n pub.setExit(\"east\", outside);\n\n lab.setExit(\"north\", outside);\n lab.setExit(\"east\", office);\n\n office.setExit(\"west\", lab);\n \n spawnArea = outside; // start game outside\n\n }", "title": "" }, { "docid": "12748929d8acb650e8e95398c954881d", "score": "0.568523", "text": "public void setPlayers(String menuName)\r\n {\r\n \tif(menuName.equals(\"Player vs. Player\"))\r\n \t{\r\n \t\t//clears board and clears grid on gui\r\n \t\tclear();\r\n \t\t\r\n \t\t//sets player1 and player2\r\n \t\tplayer1 = new Human(frame);\r\n \t\tplayer2 = new Human(frame);\r\n \t\t\r\n \t\t//clears moveHistory\r\n \t\tmoveHistory.clear();\r\n \t\tlist1.clear();\r\n \tlist2.clear();\r\n \t\r\n \t//puts keys and values in moveHistory\r\n \t\tmoveHistory.put(player1, list1);\r\n \tmoveHistory.put(player2, list2);\r\n \t}\r\n \telse if(menuName.equals(\"Player vs. Computer\"))\r\n \t{\r\n \t\t//clears board and clears grid on gui\r\n \t\tclear();\r\n \t\t\r\n \t\t//sets player1 and player2\r\n \t\tplayer1 = new Human(frame);\r\n \t\tplayer2 = new Computer(frame, board);\r\n \t\t\r\n \t\t//clears moveHistory\r\n \t\tmoveHistory.clear();\r\n \t\tlist1.clear();\r\n \tlist2.clear();\r\n \t\r\n \t//puts keys and values in moveHistory\r\n \t\tmoveHistory.put(player1, list1);\r\n \tmoveHistory.put(player2, list2);\r\n \t}\r\n \telse if(menuName.equals(\"Computer vs. Player\"))\r\n \t{\r\n \t\t//clears board and clears grid on gui\r\n \t\tclear();\r\n \t\t\r\n \t\t//sets player1 and player2\r\n \t\tplayer1 = new Computer(frame, board);\r\n \t\tplayer2 = new Human(frame);\r\n \t\t\r\n \t\t//clears moveHistory\r\n \t\tmoveHistory.clear();\r\n \t\tlist1.clear();\r\n \tlist2.clear();\r\n \t\r\n \t//puts keys and values in moveHistory\r\n \t\tmoveHistory.put(player1, list1);\r\n \tmoveHistory.put(player2, list2);\r\n \t}\r\n \telse if(menuName.equals(\"Computer vs. Computer\"))\r\n \t{\r\n \t\t//clears board and clears grid on gui\r\n \t\tclear();\r\n \t\t\r\n \t\t//sets player1 and player2\r\n \t\tplayer1 = new Computer(frame, board);\r\n \t\tplayer2 = new Computer(frame, board);\r\n \t\t\r\n \t\t//clears moveHistory\r\n \t\tmoveHistory.clear();\r\n \t\tlist1.clear();\r\n \tlist2.clear();\r\n \t\r\n \t//puts keys and values in moveHistory\r\n \t\tmoveHistory.put(player1, list1);\r\n \tmoveHistory.put(player2, list2);\r\n \t}\r\n }", "title": "" }, { "docid": "3d9741cd62ee11789c0b4ce5dd50c715", "score": "0.5684207", "text": "public gameManager(cardObject[] tempDeck, boolean theFirstPaintValue, int gameSelect)\n\t{\n\t\t//set gameSelectValue\n\t\tgameSelectValue= gameSelect;\n\t\tMain.currentGameMode= gameSelectValue;\n\t\t//generate new cardDeck\n\t\tcurrentCardDeck= Main.copyCardDeckArray(tempDeck);\n\t\t//make new guiInterface\n\t\tcurrentGuiInterface= new guiInterface(currentCardDeck, theFirstPaintValue);\n\t\t//make new guiInterface2\n\t\tcurrentGuiInterface2= new guiInterface(currentCardDeck, theFirstPaintValue);\n\t\t//make new JFrame\n\t\tcurrentJFrame= new JFrame();\n\t\t//make new JPanel\n\t\tcurrentJPanel= new JPanel();\n\t\t//make new statusbar\n\t\tstatusBarPanel= new JPanel();\n\t\tstatusBarPanel.setBorder(new BevelBorder(BevelBorder.LOWERED));\n\t\tstatusBarPanel.setMinimumSize(new Dimension(currentJFrame.getWidth(), 16));\n\t\tstatusBarPanel.setLayout(new BoxLayout(statusBarPanel, BoxLayout.X_AXIS));\n\t\tstatusBarLabel.setHorizontalAlignment(SwingConstants.LEFT);\n\t\t//if in carpet Solitaire mode\n\t\tif(gameSelectValue==0)//if carpet solitaire\n\t\t{\n\t\t\tstatusBarPanel.add(statusBarLabel);\n\t\t\tstatusBarPanel.add(statusBarLabel2);\n\t\t\tstatusBarPanel.add(statusBarLabel3);\n\t\t\tstatusBarLabel3.setText(\" Game Mode: Carpet Solitaire\");\n\t\t}\n\t\telse if(gameSelectValue==1)\n\t\t{\n\t\t\tstatusBarPanel.add(statusBarLabel3);\n\t\t\tstatusBarLabel3.setText(\" Game Mode: Clock Solitaire\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tstatusBarPanel.add(statusBarLabel3);\n\t\t}\n\t\t//make new JMenuBar\n\t\tcurrentJMenuBar= new JMenuBar();\n\t\t//make new MainMenuBar\n\t\tcurrentMainMenuBar= new MainMenuBar(currentJMenuBar);\n\t\t//set JMenuBar\n\t\tcurrentJFrame.setJMenuBar(currentJMenuBar);\n\t\t//set MainMenuBar\n\t\tcurrentJFrame.setContentPane(currentMainMenuBar);\n\t\t/*//check to see if it is the first launch\n\t\tif(gameSelectValue== -1)//if first launch\n\t\t{\n\t\t\tJOptionPane.showMessageDialog(currentJFrame,\"Please select a Game Mode \\n\" + \" from the MenuBar Above\");\n\t\t} */\n\t\t//add JPanel to JFrame---------\n\t\tif(gameSelectValue==0)//carpet solitaire\n\t\t{\n\t\t\tcurrentJFrame.add(currentJPanel);\n\t\t}\n\t\telse if(gameSelectValue==1)//clock solitaire\n\t\t{\n\t\t\t//insert clock solitaire JFrame adding JPanel here\n\t\t\tcurrentJFrame.add(currentJPanel);\n\t\t\tMain.numberClockGamesPlayed++;\n\t\t}\n\t\telse if(gameSelectValue==-1)//if first launch\n\t\t{\n\t\t\tSystem.out.println(\"First time gameManager launch value used\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"ERROR: invalid gameSelectValue!\");\n\t\t}\n\t\tcurrentJFrame.add(statusBarPanel, BorderLayout.SOUTH);\n\t\t//add guiInterface to JFrame---------------\n\t\tif(gameSelectValue==0)//carpet solitaire\n\t\t{\n\t\t\tcurrentJFrame.add(currentGuiInterface);\n\t\t}\n\t\telse if(gameSelectValue==1)//clock solitaire\n\t\t{\n\t\t\t//insert clock solitaire piece here\n\t\t\tcurrentJFrame.add(currentGuiInterface2);\n\t\t}\n\t\telse if(gameSelectValue==-1)\n\t\t{\n\t\t\tSystem.out.println(\"First time gameManager launch value used\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"ERROR: invalid gameSelectValue !!!!\");\n\t\t}\n\t\twasCheatingEnabled= false;\n\t\t//set background color for guiInterface\n\t\tcurrentGuiInterface.setBackground(new Color(0x64, 0xc8, 0x66)); \n\t\tcurrentGuiInterface2.setBackground(new Color(0x64, 0xc8, 0x66)); \n\t\t//set default resolution for JFrame\n\t\tif(gameSelectValue==0)//carpet solitaire\n\t\t{\n\t\t\tcurrentJFrame.setMinimumSize(new Dimension(1150, 500));\n\t\t}\n\t\telse if(gameSelectValue==1)//clock solitaire\n\t\t{\n\t\t\tcurrentJFrame.setMinimumSize(new Dimension(1150, 820));\n\t\t}\n\t\telse\n\t\t{\n\t\t\tcurrentJFrame.setMinimumSize(new Dimension(1150, 500));\n\t\t}\n\t\tcurrentJFrame.pack();\n\t\tcurrentJFrame.setVisible(true);\n\t\tcurrentJFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); // sets the x\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// button to\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// application\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// when\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// pressed\n\t}", "title": "" }, { "docid": "833a857d13eef2a984874d847d3ca134", "score": "0.5671412", "text": "static void startMenuDialog() {\n\n\t\tString startOrResume = Hangman.gameSession != null ? \"to start a new game/to resume the current game/\"\n\t\t\t\t: \"to start a new game/\";\n\t\tString actionsStr = startOrResume + \"to show the scoreboard/\";\n\t\tactionsStr += \"to show the introduction/\";\n\t\tactionsStr += \"to quit\";\n\n\t\tString[] actions = actionsStr.split(\"/\");\n\n\t\tint choice = actionsOnInput(actions);\n\t\tif (actions.length == 5) {\n\t\t\tchoice -= 1;\n\t\t}\n\n\t\tswitch (choice) {\n\t\tcase 0:\n\t\t\tGame.resetGame();\n\t\t\t// continue to case 1\n\t\tcase 1:\n\t\t\tclearConsole();\n\t\t\tGame.startGame();\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\tclearConsole();\n\t\t\tscoreTable();\n\t\t\tbreak;\n\t\tcase 3:\n\t\t\tclearConsole();\n\t\t\tintroduction();\n\t\t\tbreak;\n\t\tcase 4:\n\t\t\tsc.close();\n\t\t\tSystem.out.println(\"\\nThanks for playing!\");\n\t\t\tSystem.exit(0);\n\t\t}\n\t}", "title": "" }, { "docid": "93fb388c60ed972fcbba86900681f5a4", "score": "0.5662081", "text": "private void maintenanceMenu() {\n Menu maintMenu = new Menu(\"Maintenance Menu\", new String[] {\"1. Create new staff\",\"2. Edit room details\",\"3. Back\"});\n int opt = maintMenu.choose();\n switch (opt) {\n case 1:\n createStaff();\n break;\n case 2:\n editRoom();\n break;\n case 3:\n mainMenu();\n break;\n default:\n System.out.println(\"Shouldn't be possible to see this\");\n break;\n }\n }", "title": "" }, { "docid": "263fa017a8d18bd667838487706128f2", "score": "0.56610435", "text": "public void createUnits(int wrrs, int mags, int achrs, int total)//takes the number of warrios, mages, and archers the player wants add creates and adds\n {\n Unit[] units = new Unit[total];\n Scanner in = new Scanner(System.in);\n for (int w = 0; w < wrrs; w++)\n {\n System.out.print(\"Warrior(\" + (w+1) + \") name?\");\n String name = in.next();\n playersUnits.add(new Warrior(name, this));\n }\n for (int m = 0; m < mags; m++)\n {\n System.out.print(\"Mage(\" + (m+1) + \") name?\");\n String name = in.next();\n playersUnits.add(new Mage(name, this));\n }\n for (int a = 0; a < achrs; a++)\n {\n System.out.print(\"Archer(\" + (a+1) + \") name?\");\n String name = in.next();\n playersUnits.add(new Archer(name, this));\n }\n }", "title": "" }, { "docid": "4c5e83947c53ea9bc58cfe1fa8598fe1", "score": "0.5660071", "text": "private void newGame() {\n\t\t// If there is a current game in progress, or if a game just finished, reset the scores\n\t\tif (game.getStatus().equals(Status.GAME_IN_PROGRESS) || game.getStatus().equals(Status.INITIALIZED))\n\t\t\tgame.resetScores();\n\t\t\n\t\t// Set the status to game in progress\n\t\tgame.setStatus(Status.GAME_IN_PROGRESS);\n\t\t\n\t\t// Reset the dice\n\t\tdice.reset();\n\t\t\n\t\t// Initialize the Game object\n\t\t// (this is necessary for the various computer Strategies)\n\t\tgame.nextTurn();\n\t}", "title": "" }, { "docid": "8f6432e2a6b8769ffcc9226308b86159", "score": "0.56567585", "text": "public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n System.out.println(\"-- Programmed by Christopher Banas --\");\n System.out.println(\"------- BASKETBALL SIMULATOR --------\");\n System.out.println(\" \");\n System.out.println(\"League restrictions as of version 1.0:\");\n System.out.println(\"- 4 team league\");\n System.out.println(\"- 9 players per team\");\n System.out.println(\" \");\n System.out.println(\"-------------------------------------\");\n System.out.println(\" \");\n System.out.println(\"Play options: \");\n System.out.println(\" \");\n System.out.println(\"1) Load league from text file\");\n System.out.println(\"2) Auto generate league\");\n String input = \"\";\n Set<String> validInputSet = new HashSet<>(Arrays.asList(\"1\", \"2\")); //set in case more modes are added\n while(!validInputSet.contains(input)){\n System.out.print(\"> \");\n input = scanner.nextLine();\n if(!validInputSet.contains(input)){\n System.out.println(\"Error: Enter displayed number as input\");\n System.out.println(\"\");\n }\n }\n new BasketballSimulator(input); //pass operation to Controller\n }", "title": "" }, { "docid": "a1b66f1d8646a42f376c88d9a240cded", "score": "0.5655114", "text": "private void newGame() {\n engine = new DiceGameEngine();\n textBox.setText(\"\");\n showStatus(\"The Dice Game version \" + VERSION);\n dice1.setIcon(engine.getDiceImage(1));\n dice2.setIcon(engine.getDiceImage(2));\n playerStakeLabel.setText(\"Tokens: \" + engine.getPlayerStake());\n rollButton.setEnabled(true);\n betSpinner.setEnabled(true);\n betSpinner.setModel(new SpinnerNumberModel(10, 0, engine.getPlayerStake(), 1));\n display(\"Welcome to the Dice Game!\");\n display(engine.promptRound());\n }", "title": "" }, { "docid": "7071e5312deb6be4e7377336485d20e7", "score": "0.565495", "text": "private void setUpGame() {\n Room entrance, pub, office, club;\n Character johan, nedo;\n Beamer beamer;\n Animal seal;\n WorldMap map;\n Key officeKey;\n HashSet<String> nedoWords, johanWords;\n\n // Create items\n officeKey = new Key(\"OfficeKey\");\n beamer = new Beamer(\"Beamer\");\n seal = new Animal(\"Seal\");\n map = new WorldMap(\"Map\");\n\n // Create rooms\n entrance = new Room(\"Entrance\");\n pub = new Room(\"Pub\");\n club = new Room(\"Club\");\n office = new Room(\"Office\", officeKey);\n\n // Create characters\n nedo = new Character(\"Nedo\");\n johan = new Character(\"Johan\");\n nedoWords = new HashSet<String>();\n johanWords = new HashSet<String>();\n\n // Sets exits for the rooms\n entrance.setExit(\"west\", pub);\n entrance.setExit(\"south\", office);\n entrance.setExit(\"north\", club);\n pub.setExit(\"east\", entrance);\n office.setExit(\"north\", entrance);\n club.setExit(\"south\", entrance);\n\n // Configure characters and other items\n nedoWords.add(\"help\");\n nedoWords.add(\"win\");\n nedoWords.add(\"code\");\n nedoWords.add(\"word\");\n nedoWords.add(\"what\");\n nedoWords.add(\"johan\");\n johanWords.add(\"code\");\n johanWords.add(\"word\");\n johanWords.add(\"nedo\");\n johanWords.add(\"help\");\n johan.setReply(johanWords, \"I know the code Nedo wants, but I want a seal to tell it.\");\n johan.ifGivenSay(seal, \"Thanks!\\n If you tell Nedo the code word: 'LILB', you will win the game.\\n You will be amazed.\");\n nedo.setReply(nedoWords, \"If you tell me the correct code word you will win. \\n I think Johan knows the code.\");\n nedo.setWinningWord(\"LILB\");\n\n pub.addItem(johan);\n pub.addItem(nedo);\n pub.addItem(beamer);\n pub.addItem(officeKey);\n entrance.addItem(map);\n office.addItem(seal);\n\n // Set up\n currentRoom = entrance; // Start game in entrance \n Room.calculateRoomCoordinates(currentRoom);\n canvas.drawRoom(currentRoom, true);\n }", "title": "" }, { "docid": "49d5d155df1b54bdbc42678d6198a48d", "score": "0.56542826", "text": "@Override\n\tpublic void create() {\n\t\tmodelBuider = new ModelBuilder();\n\t\tassetManager = new AssetManager();\n\t\tGdx.input.setInputProcessor(this);\n\n\t\tassetManager.load(\"cenario/banco.g3db\", Model.class);\n\t\tassetManager.load(\"cenario/lixo.g3db\", Model.class);\n\t\tassetManager.load(\"cenario/lixeira.g3db\", Model.class);\n\t\tassetManager.load(\"cenario/cenario.g3db\", Model.class);\n\t\tassetManager.load(\"cenario/poste.g3db\", Model.class);\n\t\tassetManager.load(\"ryu/ryu_idle.g3db\", Model.class);\n\t\tassetManager.load(\"ryu/ryu_punch.g3db\", Model.class);\n\t\tassetManager.load(\"ryu/ryu_die.g3db\", Model.class);\n\t\tcurrentScreen = new StartScreen(\"START\");\n\t\tsetScreen(currentScreen);\n\n\t}", "title": "" }, { "docid": "f3b4173c23dc3bb763220fd3cd7174a1", "score": "0.5648201", "text": "public void showMenu() {\n System.out.println(\"*******************************\");\n System.out.println(\" GAME LASER BEAM GLB\");\n System.out.println(\"*******************************\");\n System.out.println(\"1).Play \\n\" +\n \"2).See Score\\n\" +\n \"3).Exit game\\n\"\n );\n option = Integer.parseInt(scan.nextLine());\n if (option < 4) {\n switch (option) {\n case 1:\n new StartGame();\n break;\n case 2:\n System.out.println(points.toString());\n showMenu();\n break;\n case 3:\n scan.close();\n break;\n }\n } else {\n System.out.println(\" Option incorrect\");\n showMenu();\n }\n }", "title": "" }, { "docid": "3dff2cdf3bdc7e8be2ec8eef4e3063cb", "score": "0.5642795", "text": "public synchronized void createNewGame(){\n // Update board state.\n for (int i = 0; i < balls.length; i++){\n balls[i] = true;\n }\n // Report update to all clients.\n for (int i = 0; i < balls.length; i++){\n player2.ballVisible(i,true);\n player1.ballVisible(i,true);\n }\n // Update board state.\n for (int i = 0; i < sticks.length; i++){\n sticks[i] = true;\n }\n // Report update to all clients.\n for (int i = 0; i < sticks.length; i++){\n player2.stickVisible(i,true);\n player1.stickVisible(i,true);\n }\n p1Turn = true;\n p2Turn = false;\n // Reset back to the first players turn\n player2.changeMessage(p2Turn,p1Name);\n player1.changeMessage(p1Turn,p2Name);\n\n }", "title": "" }, { "docid": "9fdc13cb5f06b9b27bf18dd6e9e75ec2", "score": "0.5633582", "text": "public static void createWorld(){\n Location bedroom = new Location(\"Bedroom\", \"Sleep to increase your mana.\");\r\n Location hallway = new Location(\"Hallway\", \"Lead to other rooms.\");\r\n Location kitchen = new Location(\"Kitchen\", \"A place to cook.\");\r\n Location livingRoom = new Location(\"Living room\", \"A cozy place to sit down.\");\r\n \r\n //Connect rooms to each other\r\n hallway.connect(\"south\", bedroom);\r\n bedroom.connect(\"north\", hallway);\r\n hallway.connect(\"north\", kitchen);\r\n kitchen.connect(\"south\", hallway);\r\n hallway.connect(\"west\", livingRoom);\r\n livingRoom.connect(\"east\", hallway);\r\n\r\n //Create items in kitchen\r\n Item knife = new Item(\"Knife\", \"Tool\", \"Use this to cut meats.\");\r\n Item chicken = new Item(\"Chicken\", \"Food\", \"Eat this to prevent starving.\");\r\n Item plate = new Item(\"Plate\", \"Tool\", \"Put your meal on this to eat.\");\r\n Item tissue = new Item(\"Tissue\", \"Tool\", \"Clean your hand after eating.\");\r\n kitchen.addItem(knife);\r\n kitchen.addItem(chicken);\r\n kitchen.addItem(plate);\r\n kitchen.addItem(tissue);\r\n\r\n //Create items in hallway\r\n Item vase = new Item(\"Vase\", \"Furniture\", \"This has some weird patterns on it.\");\r\n Item picture = new Item(\"Picture\", \"Furniture\", \"Is that the picture that has been missing for years?\");\r\n Item phone = new Item(\"Phone\", \"Tool\", \"Make a phone call.\");\r\n Item flashlight = new Item(\"Flashlight\", \"Tool\", \"Use this to find the way.\");\r\n hallway.addItem(vase);\r\n hallway.addItem(picture);\r\n hallway.addItem(phone);\r\n hallway.addItem(flashlight);\r\n\r\n //Create items in living room\r\n Item remote = new Item(\"Remote\", \"Tool\", \"Use this to turn the TV on/off.\");\r\n Item sword = new Item(\"Sword\", \"Tool\", \"An ancient sword, it must be more than 500 years old.\");\r\n Item wineBottle = new Item(\"WineBottle\", \"Furniture\", \"Is it still drinkable?\");\r\n Item thermometer = new Item(\"Thermometer\", \"Tool\", \"Use this to see if the room's temperature is abnormal.\");\r\n livingRoom.addItem(remote);\r\n livingRoom.addItem(sword);\r\n livingRoom.addItem(wineBottle);\r\n livingRoom.addItem(thermometer); \r\n \r\n //Create a chest in the living room\r\n ContainerItem chest = new ContainerItem(\"Chest\", \"Container\", \"Use this to store your private stuffs.\");\r\n livingRoom.addItem(chest);\r\n\r\n //Add items to the chest\r\n Item diamond = new Item(\"Diamond\", \"Jewelery\", \"It shines, that's all.\");\r\n Item gun = new Item(\"Gun\", \"Weapon\", \"A shortgun. You wouldn't want to pull the trigger.\");\r\n chest.addItem(diamond);\r\n chest.addItem(gun);\r\n\r\n //Create items in bedroom\r\n Item glasses = new Item(\"Glasses\", \"Tool\", \"Wear this for better visibility.\");\r\n Item cup = new Item(\"Cup\", \"Tool\", \"Use this to get water.\");\r\n Item towel = new Item(\"Towel\", \"Tool\", \"Use this to dry yourself if you get wet.\");\r\n Item teddyBear = new Item(\"TeddyBear\", \"Tool\", \"A good companion with hidden function.\");\r\n bedroom.addItem(glasses);\r\n bedroom.addItem(towel);\r\n bedroom.addItem(cup);\r\n bedroom.addItem(teddyBear);\r\n\r\n //Create a wardrobe in the bedroom\r\n ContainerItem wardrobe = new ContainerItem(\"Wardrobe\", \"Cointainer\", \"Use this to store your clothes\");\r\n bedroom.addItem(wardrobe);\r\n\r\n //Add items to the wardrobe\r\n Item vest = new Item(\"Vest\", \"Clothes\", \"Wear this for parties.\");\r\n Item pyjama = new Item(\"Pyjama\", \"Clothes\", \"Wear this before going to sleep\");\r\n wardrobe.addItem(vest);\r\n wardrobe.addItem(pyjama);\r\n\r\n //Set current location\r\n currLocation = hallway;\r\n }", "title": "" }, { "docid": "c489557f60c1a42145af4c128c6d6674", "score": "0.56307894", "text": "public static void main(String[] args) {\r\n\t\t\r\n\t\t//Create Scanner Objects.\r\n\t\tScanner kb=new Scanner(System.in);\r\n\t\tScanner st=new Scanner(System.in);\r\n\t\tScanner bl=new Scanner(System.in);\r\n\t\t//Welcome message\r\n\t\tSystem.out.println(\"\\t Welcome to my Testing Driver for the two monsters eating process!\\t\");\r\n\t\tSystem.out.println(\"\\t *****************************************************************\\t\");\r\n\t\t//Create the two monsters\r\n\t\tHealthyMonster BAR=new HealthyMonster(\"BAR\");\r\n\t\tJunkMonster FOO=new JunkMonster(\"FOO\");\r\n\t\t\r\n\t\tSystem.out.println(\"First Let me introduce you to our two monsters:\");\r\n\t\tSystem.out.println(\"Our Healthy Monster is called:\"+BAR.toString());\r\n\t\tSystem.out.println(\"Our Junk Monster is called:\"+FOO.toString());\r\n\t\tSystem.out.println(\"As a Second Step we will need to create a Barrel of alimentary items(or not)\\n\" +\r\n\t\t\t\t\"that will be sent in the monsters cave.\");\r\n\t\t\r\n\t\t//Creating the barrel\r\n\t\tBarrel barrel = null;\r\n\t\t//Prompting the User\r\n\t\t\r\n\t\tSystem.out.println(\"Please clearly choose one of the following options:\\n\" +\r\n\t\t\t\t\"1. FILL BARREL AUTOMATICALLY WITH 10 RANDOM ITEMS.\\n\" +\r\n\t\t\t\t\"2. FILL BARREL AUTOMATICALLY WITH A USER-DEFINED Nr. OF ITEMS.\\n\" +\r\n\t\t\t\t\"3. FILL BARREL MANUALLY WITH A USER-DEFINED Nr.OF ITEMS.\");\r\n//\t\tCreate an Integer that indicates user's choice.\r\n\t\tint choice;\r\n\t\tchoice=kb.nextInt();\r\n\t\t//A while loop to make sure the user enters a correct integer.\r\n\t\twhile(choice<=0||choice>=4){\r\n\t\t\tSystem.out.print(\"Please enter a valid input _\");\r\n\t\t\tchoice=kb.nextInt();\r\n\t\t}//end of while\r\n\t\t\r\n\t//Now we evaluate the user's first choice\r\n\t\t/**If user enters 1 the Barrel is initialized randomly*/\r\n\t\tif(choice==1){\r\n\t\t\t barrel=new Barrel();\r\n\t\t\r\n\t\t}//end of if 1\r\n\t\t/**if user enters 2 the barrel is initialized to a specific nr. of elements*/\r\n\t\telse if(choice==2){\r\n\t\t\tSystem.out.println(\"Please indicate how many random items you want in the barrel: \");\r\n\t\t\tint items;\r\n\t\t\titems=kb.nextInt();\r\n\t\t\twhile(items<=0||items>=30){\r\n\t\t\t\t\r\n\t\t\t\tSystem.out.println(\"Please provide a correct value, between 1 and 29! _\");\r\n\t\t\t\titems=kb.nextInt();\r\n\t\t\t}//end of while\r\n\t\t\t barrel=new Barrel(items);\r\n\t\t}//end of if 2\r\n\t\t/**In case the users enters 3, we go to a sub program that prompts the user to create step-by step an array of \r\n\t\t * BarrelItems to fill the Barrel\r\n\t\t * nad then inputm that array as an argument when we create our barrel.*/\r\n\t\telse if(choice==3){\r\n\t\t\tSystem.out.println(\"Please indicate how many items you want in the barrel: \");\r\n\t\t\tint nrOfitems;\r\n\t\t\tnrOfitems=kb.nextInt();\r\n\t\t\twhile(nrOfitems<=0||nrOfitems>=15){\r\n\t\t\t\t\r\n\t\t\t\tSystem.out.println(\"Please provide a correct value, between 1 and 15! _\");\r\n\t\t\t\tnrOfitems=kb.nextInt();\r\n\t\t\t}//end of while\r\n\t\t\t//Creating an user defined size array of barrel Items.\r\n\t\t\t\r\n\t\t\tBarrelItem[] barritem=new BarrelItem[nrOfitems];\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"Now Please Specify your items one-by-one: _\");\r\n\t\t\tint i;\r\n\t\t\t/**This Loop will throw several prompts and will ask the user to define \r\n\t\t\t * the class and the arguments of each barrelItem\r\n\t\t\t * basically it will explicitly invoke class specified Constructors \r\n\t\t\t * to create user defined objects.*/\r\n\t\t\t\r\n\t\t\tfor(i=0;i<=barritem.length-1;i++){\r\n\t\t\t\tSystem.out.println(\"What Type is Item Nr.\"+(i+1)+\" ? _\\n\" +\r\n\t\t\t\t\t\t\"1. NonFood\\n\" +\r\n\t\t\t\t\t\t\"2. Fruit\\n\" +\r\n\t\t\t\t\t\t\"3. Treat\\n\" +\r\n\t\t\t\t\t\t\"4. Pizza\\n\");\r\n\t\t\t\tint wtype;\r\n\t\t\t\twtype=kb.nextInt();\r\n\t\t\t\t\r\n\t\t\t\t//now we evaluate the options\r\n\t\t\t\twhile (wtype>=5||wtype<=0){\r\n\t\t\t\t\tSystem.out.println(\"Please enter a correct choice: \");\r\n\t\t\t\t\twtype=kb.nextInt();\r\n\t\t\t\t}//end of while\r\n\t\t\t\t\r\n\t\t\t\tif(wtype==1){\r\n\t\t\t\t\t//name defined\r\n\t\t\t\t\tSystem.out.println(\"You've chosen a NonFood Item. Please Provide a name for it _\");\r\n\t\t\t\t\tString name ;\r\n\t\t\t\t\tname=st.next();\r\n\t\t\t\t\tbarritem[i]=new NonFood(name);\r\n\t\t\t\t\t}//end of first if\r\n\t\t\t\telse if(wtype==2){\r\n\t\t\t\t\tSystem.out.println(\"You've chosen a Fruit. Please Provide a name for it _\");\r\n\t\t\t\t\tString name ;\r\n\t\t\t\t\tname=st.next();\r\n\t\t\t\t\t//this determines if it is peeled or not.\r\n\t\t\t\t\tboolean b;\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\tSystem.out.println(\"Is it Peeled? Please clearly write: true or false\");\r\n\t\t\t\t\tb=bl.nextBoolean();\r\n\t\t\t\t\t\r\n//\t\t\t\t\tcreate the fruit\r\n\t\t\t\t\tbarritem[i]=new Fruit(name,b);\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t}//end of if 2\r\n\t\t\t\t\r\n\t\t\t\tif(wtype==3){\r\n\t\t\t\t\tSystem.out.println(\"You've chosen a Treat. Please Provide a name for it _\");\r\n\t\t\t\t\tString name ;\r\n\t\t\t\t\tname=st.next();\r\n\t\t\t\t\t//this determines if it is wrapped or not.\r\n\t\t\t\t\tboolean b;\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\tSystem.out.println(\"Is it Wrapped? Please clearly write: true or false\");\r\n\t\t\t\t\tb=bl.nextBoolean();\r\n\t\t\t\t\t\r\n//\t\t\t\t\tcreate the Treat\r\n\t\t\t\t\tbarritem[i]=new Treat(name,b);\r\n\t\t\t\t\t\r\n\t\t\t\t}//end of if 3\r\n\t\t\t\t\r\n\t\t\t\telse if(wtype==4){\r\n\t\t\t\t\tSystem.out.println(\"You've chosen to create Pizza. Please Provide a name for it _\");\r\n\t\t\t\t\tString name ;\r\n\t\t\t\t\tname=st.next();\r\n\t\t\t\t\t//this determines if it is Boxed or not.\r\n\t\t\t\t\tboolean b;\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\tSystem.out.println(\"Is it in a Box? Please clearly write: true or false\");\r\n\t\t\t\t\tb=bl.nextBoolean();\r\n\t\t\t\t\t\r\n//\t\t\t\t\tcreate the PIZZA\r\n\t\t\t\t\tbarritem[i]=new Pizza(name,b);\r\n\t\t\t\t\t\r\n\t\t\t\t}//end of pizza choice\r\n\t\t\t\t\r\n\t\t\t}//end of for loop\r\n\t\t\t\r\n\t\t\tbarrel=new Barrel(barritem);\r\n\t\t\t\r\n\t\t}//end of third choice\r\n\t\t\r\n\t\t\r\n\t\r\n\t\tSystem.out.println(\"\\t*************************\\t\");\r\n\t\t//Showing the number of items and the content of the created barrel.\r\n\t\tSystem.out.println(\"Congratulations on creating your barrel with \"+barrel.getItemCount()+\" items\");\r\n\t\tbarrel.showContents();\r\n\t\tSystem.out.println(\"\\t*************************\\t\");\r\n\t\t\r\n\t\tSystem.out.println(\"\\nNow the Barrel is being shipped to the two monsters...\\n\");\r\n\t\tSystem.out.println(\"As soon as they saw the barrel, our two monsters opened it and began to draw items out from it.\");\r\n\t\tSystem.out.println(FOO.toString()+\" and \"+BAR.toString()+ \": Hey A barrel of Food! Let's check it out! \");\r\n\t\tSystem.out.println(\"___________________________________________________________________________\");\r\n\t\t/**Now we call the static method that will Take as an argument the user created barrel \r\n\t\t * and the two monsters and show step by step how the Monsters eat the food(or react to it)*/\r\n\t\tMonster.drawAndEatItem(barrel, BAR, FOO);\r\n\t\t//Closing message\r\n\t\tSystem.out.println(\"\\t \\t\");\r\n\t\tSystem.out.println(BAR.toString()+\" and \"+FOO.toString()+\":THANK YOU FOR FEEDING TWO MONSTERS LIKE US!\");\r\n\t\tSystem.out.println(\"\\t**********************************************************************\\t\");\r\n\t\tSystem.out.println(\"Thank You for Testing my Program!\");\r\n\t\t\r\n\r\n\t}", "title": "" }, { "docid": "210c05853eb39e9c7bece4dcba696266", "score": "0.5624261", "text": "public void startGame() {\n ArrayList<String> playerNames = new ArrayList<>();\n\n if (!textPlayer1.getText().trim().isEmpty())\n playerNames.add(textPlayer1.getText().trim());\n else\n return;\n\n if (pane2.isVisible() && !textPlayer2.getText().trim().isEmpty())\n playerNames.add(textPlayer2.getText().trim());\n else if (pane2.isVisible())\n return;\n\n // reset welcome window\n btnPlayerSelect.setText(menuDefault.getText());\n pane1.setVisible(false);\n pane2.setVisible(false);\n btnStart.setDisable(true);\n\n this.helper.initializePlayers(playerNames);\n this.helper.startGame();\n\n }", "title": "" }, { "docid": "453dee6fb57c11755009c47be898a99c", "score": "0.5620212", "text": "public static void main(String[] args) {\n Scanner scn = new Scanner(System.in);\n System.out.println(\"Do you want to play with computer or human?\\n1) Computer\\n2) Human\");\n int gameMode = scn.nextInt();\n while (gameMode<1 || gameMode>2) {\n System.out.println(\"Please enter a number between 1 and 2.\");\n gameMode = scn.nextInt();\n }\n\n // Ask about the number of players\n System.out.println(\"PLease enter the number of players.\" + ((gameMode==1)? \"(3-5)\" : \"\"));\n int numberOfPlayers = scn.nextInt();\n while ((gameMode==1 && (numberOfPlayers<3 || numberOfPlayers>5)) || (gameMode==2 && numberOfPlayers<1)) {\n System.out.println(\"Please enter a valid number.\");\n numberOfPlayers = scn.nextInt();\n }\n\n // Run a new game\n GameManager gm = new GameManager(numberOfPlayers, (gameMode==1)? \"SP\" : \"MP\");\n gm.runGame();\n\n }", "title": "" }, { "docid": "a54ea70f926b08dd029e05a8f433be54", "score": "0.5619856", "text": "public void generateLevel() {\n this.level = new Level();\n monsters = new ArrayList<>();\n loot = new ArrayList<>();\n \n movePlayerToRandomRoom();\n \n for (int x = 0; x < stage; x++) {\n spawnMonsterInRandomRoom();\n spawnMonsterInRandomRoom();\n }\n \n int items = rng.nextInt(5);\n for (int x = 0; x < items; x++) {\n spawnItemInRandomRoom(randomItem());\n }\n \n if (stage >= 10) {\n spawnItemInRandomRoom(new Treasure(player, 0, 0));\n }\n }", "title": "" }, { "docid": "dd0efe0806184bbd559e980a01daf077", "score": "0.5612354", "text": "private void newGameActionPerformed(java.awt.event.ActionEvent evt) { \n // remove current board on the layout panel and add a new checker game\n columnPanel.remove(checkerPanel);\n newBoard();\n \n // get who is going first from combo box\n String fm = (String) firstMoveSelector.getSelectedItem();\n \n // moveset of the player going first is calculated\n if (fm.equals(\"A.I.\")) {\n whoseTurn = \"red\";\n activeMoves = AIMoves(mainBoard);\n }\n else {\n AIThinking = false;\n AIMoveDone = true;\n whoseTurn = \"black\";\n activeMoves = playerMoves(mainBoard);\n }\n winner = null;\n turnCounter = 1;\n outputArea.setText(\"\");\n robo = new AIPlayer();\n }", "title": "" }, { "docid": "5046c11099c8e825bdeebeac6ab61633", "score": "0.5611449", "text": "public static void main (String[] args) {\n MemoryCardGameController controller = new MemoryCardGameController();\n controller.loadGame();\n \n\n }", "title": "" }, { "docid": "8917f926badf7c209a7f0cda9e08d433", "score": "0.55940884", "text": "public static void main(String[] args) {\n StartLabel label = new StartLabel();\n label.CreateLabel();\n System.out.println(\"\\u001b[33m\");\n Scanner scanner = new Scanner(System.in);\n\n //System.out.println(\"Choose mode: \");\n\n System.out.println(\"First player nickname:\");\n while (!scanner.hasNextLine()) {\n scanner.next();\n }\n Player player1 = new Player(scanner.nextLine());\n\n System.out.println(\"Second player nickname:\");\n while (!scanner.hasNextLine()) {\n scanner.next();\n }\n Player player2 = new Player(scanner.nextLine());\n\n Board board = new Board(5, 5, player1, player2);\n Menu menu = new Menu(board, player1, player2);\n Battle battle = new Battle(player1, player2);\n Shop shop = new Shop();\n \n while (board.isEconomyState()) {\n menu.displayStats();\n board.drawBoard();\n int menudis;\n System.out.println(\"==\".repeat(20));\n System.out.println(\"Press 0 - to skip turn | Press 1 - to open the shop\");\n System.out.println(\"==\".repeat(20));\n while (!scanner.hasNextLine()) {\n scanner.next();\n }\n menudis = parseInt(scanner.nextLine());\n if (menudis == 1){\n\n shop.displayShopMenu();\n BuildingType order = shop.readShop(board.getCurrentPlayer());\n if (order != null) {\n board.addBuilding(order, board.getCurrentPlayer());\n } else{\n System.out.println(\"Nothing bought...\");\n }\n }\n else {\n\n\n }\n\n\n board.togglePlayer();\n }\n\n battle.displayStats();\n board.drawBoard();\n Player winner = battle.fight();\n System.out.println(winner.getName() + \" won the game!\");\n }", "title": "" }, { "docid": "d03e24ce4aa70d418be82f7cea03b3a1", "score": "0.55929923", "text": "public void startGame() {\r\n\t\tremoveAll();\r\n\t\tbomb = new Bomb(menu.getModuleCount(), menu.getTimerSeconds());\r\n\t\tingame = true;\r\n\t\taddHitboxes();\r\n\t\tBomb.getTimer().start();\r\n\t}", "title": "" }, { "docid": "5794ac5bfdab277d86f052a79bc1491d", "score": "0.559068", "text": "public void newGame() {\n\t\ttarget = new TeleportingBrick(TARGET_HP);\n\t\tmeteor.reset();\n\t\tplayer.reset();\n\t\tsuper.newGame();\n\t}", "title": "" }, { "docid": "30c7486471599132b3872a6ac80879e0", "score": "0.5580101", "text": "private void buildGui() {\n nifty = screen.getNifty();\n nifty.setIgnoreKeyboardEvents(true);\n nifty.loadStyleFile(\"nifty-default-styles.xml\");\n nifty.loadControlFile(\"nifty-default-controls.xml\");\n nifty.addScreen(\"Option_Screen\", new ScreenBuilder(\"Options_Screen\") {\n {\n controller((ScreenController) app);\n layer(new LayerBuilder(\"background\") {\n {\n childLayoutCenter();;\n font(\"Interface/Fonts/zombie.fnt\");\n backgroundImage(\"Backgrounds/ZOMBIE1.jpg\");\n visibleToMouse(true);\n }\n });\n layer(new LayerBuilder(\"foreground\") {\n {\n childLayoutOverlay();\n font(\"Interface/Fonts/zombie.fnt\");\n\n panel(new PanelBuilder(\"Switch_Options\") {\n {\n childLayoutVertical(); \n control(new ButtonBuilder(\"\", \"Sound Settings\") {\n {\n marginTop(\"30%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });\n control(new ButtonBuilder(\"\", \"Leaderboard\") {\n {\n marginTop(\"5%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(Leader_Board)\");\n }\n });\n control(new ButtonBuilder(\"\", \"Logout\") {\n {\n controller((ScreenController) app);\n marginTop(\"5%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(#Login_Screen)\");\n }\n });\n control(new ButtonBuilder(\"\", \"Return to game\") {\n {\n marginTop(\"5%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"returnGame()\");\n }\n });\n control(new ButtonBuilder(\"\", \"Quit Game\") {\n {\n marginTop(\"5%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"quitGame()\");\n }\n });\n }\n });\n }\n });\n }\n }.build(nifty));\n }", "title": "" }, { "docid": "da704d9d1a4bdf243b8ae827cc19507c", "score": "0.5579744", "text": "private static void runMenu() {\n\t\tboolean goAgain = true;\n\t\tSystem.out.println(\"~~~~~~ Minitures Paint Collection ~~~~~~\");\n\t\twhile (goAgain) {\n\t\t\tSystem.out.println(\"~ Select an item:\");\n\t\t\tSystem.out.println(\"~ 1 ~~ Add a paint to your collection\");\n\t\t\tSystem.out.println(\"~ 2 ~~ Edit paints in your collection\");\n\t\t\tSystem.out.println(\"~ 3 ~~ Delete paints from your collection\");\n\t\t\tSystem.out.println(\"~ 4 ~~ View your collection of paints\");\n\t\t\tSystem.out.println(\"~ 5 ~~ Exit the program and start PAINTING!!\");\n\t\t\tSystem.out.print(\"* Your selection: \");\n\t\t\tint selection = in.nextInt();\n\t\t\tin.nextLine();\n\n\t\t\t// selection based off of users input\n\t\t\tif (selection == 1) {\n\t\t\t\taddAPaint();\n\t\t\t} else if (selection == 2) {\n\t\t\t\teditAPaint();\n\t\t\t} else if (selection == 3) {\n\t\t\t\tdeleteAPaint();\n\t\t\t} else if (selection == 4) {\n\t\t\t\tviewAllPaints();\n\t\t\t} else {\n\t\t\t\tph.cleanUp();\n\t\t\t\tSystem.out.println(\" Goodbye! \");\n\t\t\t\tgoAgain = false;\n\t\t\t}\n\n\t\t}\n\n\t}", "title": "" }, { "docid": "419bf644810ec968e427c2dbbc506052", "score": "0.55748785", "text": "private void startGame(MapTypes mapType, MapSizeTypes mapSize, int aITeams, int playerTeams){\n\t\tthis.createMap(mapType, mapSize);\n\t\tthis.view = new HUDView(GameManager.get().getStage(), \n\t\t\t\tGameManager.get().getSkin(), GameManager.get());\n\t\tthis.camera = GameManager.get().getCamera();\n\t\tthis.timeManager.setGameStartTime();\n\t\tthis.timeManager.unPause();\n\t\tthis.addAIEntities(aITeams, playerTeams);\n\t\tsetCameraInitialPosition();\n\t\tthis.setThread();\n\t\tthis.fogOfWar();\n\t\t// Please don't delete\n\t\t//this.weatherManager.setWeatherEvent();\n\t\tGameBlackBoard black = (GameBlackBoard) GameManager.get().getManager(GameBlackBoard.class);\n\t\tblack.set();\n\t\tGameManager.get().getManager(WinManager.class);\n\t}", "title": "" }, { "docid": "1eea6dea38fd44e969f6d381a5dc692f", "score": "0.55698216", "text": "private void createPlayerSelectDropDowns(){\n\t\tplayerToPlayerSellerDropDown = new SelectBox<String>(game.skin);\n\t\tplayerToPlayerBuyerDropDown = new SelectBox<String>(game.skin);\n\t\tmarketPlayerDropDown = new SelectBox<String>(game.skin);\n\t\tgamblingPlayerDropDown = new SelectBox<String>(game.skin);\n\t\tString[] players = new String[game.playerList.size()];\n\t\tfor(int player=0;player<game.playerList.size();player++){\n\t\t\tplayers[player] = \"Player \"+Integer.toString(player+1);\n\t\t}\n\t\tplayerToPlayerSellerDropDown.setItems(players);\n\t\tplayerToPlayerBuyerDropDown.setItems(players);\n\t\tmarketPlayerDropDown.setItems(players);\n\t\tgamblingPlayerDropDown.setItems(players);\n\t}", "title": "" }, { "docid": "efb35832dce0c9ad0e913321f0f1c71b", "score": "0.5558327", "text": "public void newGame() {\n game = new TicTacToeEngine(gameSize);\n setGameLocked(false);\n drawGameBoard();\n lblStatus.setText(\"\");\n imageCurrent.setImageResource(R.drawable.player1);\n }", "title": "" }, { "docid": "65828338bd78788752e70e3983014899", "score": "0.55555683", "text": "public void onNewGamePress() {\n\t\ttry {\n\t\t\tList<PlayerInfoHolder> pInfoList = createPlayerInfo();\n\t\t\tif (pInfoList.size() < 2) {\n\t\t\t\tthrow new MenuException(\"Too few players\");\n\t\t\t}\n\t\t\tupdateGameSettings();\n\n\t\t\t// Clears previous error messages\n\t\t\tshowErrorText(\"\");\n\n\t\t\tthis.pcs.firePropertyChange(\"startPressed\", null, pInfoList);\n\t\t} catch (MenuException e) {\n\t\t\tshowErrorText(e.getMessage());\n\t\t}\n\t}", "title": "" }, { "docid": "c0aa329bf9e57d1aa0dd2c64f9f3d00f", "score": "0.5552672", "text": "protected abstract Game make(ArrayList<Level> levels);", "title": "" }, { "docid": "79a5aefda2943e442021cdf2ac1ec75d", "score": "0.55492175", "text": "public static void main(String[] args) {\n Scanner scnr = new Scanner(System.in);\r\n\r\n //Establish Class Objects for the New Game\r\n Pokedex thisPokedex = new Pokedex(150);\r\n PartyPokemon party = new PartyPokemon(6);\r\n PokeCenter pokeCenter = new PokeCenter();\r\n PC pc = new PC(250);\r\n Bag bag = new Bag(150);\r\n\r\n ////////////////////////JFRAMES TEST////////////////////////\r\n /*\r\n JFrame mainFrame = new JFrame(\"Pokemon Carnelian\");\r\n mainFrame.setLayout(null);\r\n\r\n JPanel panel1 = new JPanel();\r\n panel1.setLayout(null);\r\n\r\n JLabel label1 = new JLabel(\"Main Menu\");\r\n\r\n JButton button1 = new JButton();\r\n button1.setText(\"Choose Bulbasaur\");\r\n button1.setLayout(null);\r\n button1.setBounds(400, 100, 100, 60);\r\n\r\n JButton button2 = new JButton();\r\n button2.setText(\"Choose Charmander\");\r\n\r\n\r\n JButton button3 = new JButton();\r\n button3.setText(\"Choose Squirtle\");\r\n\r\n panel1.add(label1);\r\n panel1.add(button1);\r\n panel1.add(button2);\r\n panel1.add(button3);\r\n\r\n mainFrame.add(panel1);\r\n mainFrame.setSize(1200,800);\r\n mainFrame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);\r\n mainFrame.setVisible(true);\r\n ////////////////////////JFRAMES TEST////////////////////////\r\n */\r\n\r\n System.out.println(\"Welcome to the world of Pokemon!\");\r\n System.out.println(\"\");\r\n\r\n System.out.println(\"Please choose your starter Pokemon:\");\r\n System.out.println(\"Press 1 to choose Bulbasaur\");\r\n System.out.println(\"Press 2 to choose Charmander\");\r\n System.out.println(\"Press 3 to choose Squirtle\");\r\n\r\n //Declare starter, default Pokemon is a Bulbasaur until changed\r\n Pokemon starter = new Pokemon(1, 5);\r\n\r\n //Starter can be (1) Bulbasaur (2) Charmander or (3) Squirtle\r\n int chosenStarter = scnr.nextInt();\r\n\r\n if (chosenStarter == 1){\r\n starter = new Pokemon(1,5);\r\n }\r\n else if (chosenStarter == 2){\r\n starter = new Pokemon(4,5);\r\n }\r\n else if (chosenStarter == 3){\r\n starter = new Pokemon(7,5);\r\n }\r\n\r\n //Party Size will be used to determine if a new Pokemon is\r\n //added to the Party or sent to the PC\r\n int partySize = party.partyPokemon.size();\r\n\r\n //Add Starter to Party (party should always be empty until starter is added)\r\n if (partySize < 6){\r\n party.partyPokemon.add(starter);\r\n }\r\n else {\r\n pc.PC.add(starter);\r\n return;\r\n }\r\n\r\n //Starts the Main Menyu for the game\r\n menu(thisPokedex, party, bag, pokeCenter, pc);\r\n }", "title": "" }, { "docid": "d4070f751b58727c3ed3f0953e485f7d", "score": "0.55385923", "text": "public void newGamePressed(){\n\t\tgetStatus().setThemedIcon(gameSettings.getTheme());\n\t\tsetColorTheme(gameSettings.getTheme());\n\t\tgameStatus.revealStatus();\n\t\tnextPlayer(1);\n\t\ttry {\n\t\t\tguiBoard.clearBoard();\n\t\t} catch (IOException e1) {\n\n\t\t}\n\t\tguiBoard.setBoardSettings(gameSettings.getOpponent(), gameSettings.getTheme());\n\t}", "title": "" }, { "docid": "aec8163ef674d1fe68b97518c806ec57", "score": "0.553859", "text": "public Menu() {\r\n\t\t\t\r\n\t\t\tsquashCourt = new Court();\r\n\t\t\tkboard = new Scanner(System.in);\r\n\t\t\tchooseMenu();\r\n\t\t}", "title": "" }, { "docid": "81fbef8d313c0bbadefb465acf9092fd", "score": "0.55376786", "text": "public void setupMenus() {\n\t\tMenu menu0 = new Menu(\"MainMenu\");\n\t\tmenus.add(menu0);\n\t\tint height = 30;\n\t\t// menu0.addButton(\"exitgame\", \"Exit\", \"Exit this session of the game.\",\n\t\t// main.width - 100, 0, 100, height).lock = true;\n\t\tmenu0.addButton(guiDefaultTexture, \"close\", \"Close All\", \"Close all open menus.\", main.WIDTH - 100, 70, 100,\n\t\t\t\theight).lock = true;\n\t\tmenu0.addButton(guiDefaultTexture, \"minimap\", \"Minimap\", \"Open the minimap of the world.\", main.WIDTH - 100,\n\t\t\t\t100, 100, height).lock = true;\n\t\tmenu0.addButton(guiDefaultTexture, \"info\", \"Information\", \"\", main.WIDTH - 100, 130, 100, height).lock = true;\n\t\t// menu0.buttons.add(new Button(\"loadout\", \"Loadout\", \"Change loadouts of\n\t\t// certain units.\", main.width - 100, 160, 100, height, 3, 4));\n\t\tmenu0.addButton(guiDefaultTexture, \"loadout\", \"Loadout\", \"Change loadouts of certain units.\", main.WIDTH - 100,\n\t\t\t\t160, 100, height).lock = true;\n\t\tmenu0.addButton(guiDefaultTexture, \"stats\", \"Statistics\", \"Compare stats of different civilizations.\",\n\t\t\t\tmain.WIDTH - 100, 190, 100, height).lock = true;\n\t\t// menu0.addButton(\"techs\", \"Techs\", \"Choose technologies to research.\",\n\t\t// main.width - 100, 220, 100, height).lock = true;\n\t\tmenu0.addButton(guiDefaultTexture, \"techsweb\", \"Techs\", \"Choose technologies to research.\", main.WIDTH - 100,\n\t\t\t\t220, 100, height).lock = true;\n\t\tmenu0.addButton(guiDefaultTexture, \"encyclopedia\", \"Reference\", \"A encyclopedia-like list of articles.\",\n\t\t\t\tmain.WIDTH - 100, 250, 100, height).lock = true;\n\t\tmenu0.addButton(guiDefaultTexture, \"relations\", \"Relations\", \"The wars and alliances of this world.\",\n\t\t\t\tmain.WIDTH - 100, 280, 100, height).lock = true;\n\t\tmenu0.addButton(guiDefaultTexture, \"civic\", \"Civics\", \"Change the ideals of your government.\", main.WIDTH - 100,\n\t\t\t\t310, 100, height).lock = true;\n\t\tmenu0.addButton(guiDefaultTexture, \"log\", \"Messages\", \"\", main.WIDTH * 3 / 4, 0, main.WIDTH * 1 / 4,\n\t\t\t\theight).lock = true;\n\t\t// menu0.addButton(\"log\", \"Messages\", \"View your messages.\", main.width*3/4, 0,\n\t\t// main.width*1/4, height).lock = true;\n\n\t\tint pivot = menu0.buttons.size() * height;\n\t\tfor (int i = 0; i < menu0.buttons.size() - 1; i++) {\n\t\t\tTextBox b = menu0.buttons.get(i);\n\t\t\tb.move(0, 70 + (i) * height);\n\t\t}\n\n\t\tTextBox b = menu0.addButton(guiDefaultTexture, \"markTile\", \"MarkTile\", \"Mark this tile\", main.WIDTH - 100, 70,\n\t\t\t\t100, height);\n\t\tb.lock = true;\n\t\tb.activate(false);\n\t\tb.autoClear = false;\n\n\t\tMenu menu1 = new Menu(\"UnitMenu\");\n\t\tmenus.add(menu1);\n\n\t\tMenu menu2 = new Menu(\"CityMenu\");\n\t\tmenus.add(menu2);\n\n\t\tMenu menu3 = new Menu(\"LoadoutMenu\");\n\t\tmenus.add(menu3);\n\t\tString[] names = EntityData.allUnitNames();\n\t\tfor (int i = 0; i < names.length; i++) {\n\t\t\tmenu3.addButton(guiDefaultTexture, \"loadoutDisplay\" + names[i], names[i], \"\", 100, 160 + 30 * i, 200, 30);\n\t\t}\n\n\t\tMenu menu4 = new Menu(\"LoadoutDisplay\");\n\t\tmenus.add(menu4);\n\n\t\tMenu menu5 = new Menu(\"TechMenu\");\n\t\tmenus.add(menu5);\n\n\t\tMenu menu6 = new Menu(\"ContinueMenu\"); // Menu when player loses the game\n\t\tmenu6.addButton(guiDefaultTexture, \"continue\", \"You have lost the game. Continue?\", \"\", main.WIDTH * 2 / 6, 100,\n\t\t\t\tmain.WIDTH * 2 / 6, 200);\n\t\tmenus.add(menu6);\n\n\t\tMenu menu7 = new Menu(\"EncyclopediaMenu\");\n\t\tTextBox temp = new TextBox(guiDefaultTexture, \"\", \"\", 100, 190, 700, 500); // \"EncyclopediaText\",\n\t\t// System.out.println(\"Found \" + menu7.findButtonByCommand(\"EncyclopediaText\"));\n\t\ttemp.name = \"EncyclopediaText\";\n\t\tmenu7.buttons.add(temp);\n\t\tmenus.add(menu7);\n\n\t\tMenu menu8 = new Menu(\"DiplomacyMenu\");\n\t\tmenus.add(menu8);\n\n\t\tMenu menu9 = new Menu(\"TalkToCivMenu\"); // For lack of a better name...\n\t\tmenus.add(menu9);\n\n\t\tMenu menu10 = new Menu(\"Logs\"); // For lack of a better name...\n\t\tmenus.add(menu10);\n\n\t\tMenu menu11 = new Menu(\"RelationsMenu\");\n\t\tmenus.add(menu11);\n\n\t\tMenu menu12 = new Menu(\"CivicMenu\");\n\t\tmenus.add(menu12);\n\n\t\tMenu menu13 = new KeyMenu(main.inputSystem, \"KeyMenu\");\n\t\tmenus.add(menu13);\n\n\t\tMenu menu14 = new Menu(\"TacticalMenu\"); // rendered and added to in NewMenuSystem\n\t\tmenu14.noShortcuts = true;\n\t\tmenus.add(menu14);\n\n\t\tMenu menu15 = new Menu(\"FieldMenu\"); // for displaying fields\n\t\tmenu15.noShortcuts = true;\n\t\tmenus.add(menu15);\n\n\t\tMenu menu16 = new Menu(\"CreateFieldMenu\");\n\t\tmenus.add(menu16);\n\n\t\tmenu0.activate(true);\n\n\t\tTextBox text0 = new TextBox(guiDefaultTexture, \"\", \"\", main.WIDTH - 200, main.HEIGHT - 250, 200, 100); // \"HintText\"\n\t\ttext0.color.w = 0;\n\t\ttextboxes.add(text0);\n\n\t\tTextBox text1 = new TextBox(guiDefaultTexture, \"\", main.WIDTH - 400, main.HEIGHT - 150, 200, 150); // \"SelectedText\"\n\t\ttextboxes.add(text1);\n\n\t\tTextBox text2 = new TextBox(guiDefaultTexture, \"\", main.WIDTH * 3 / 4, 30, main.WIDTH / 4, 100); // \"Messages\"\n\t\ttextboxes.add(text2);\n\n\t\tTextBox text3 = new TextBox(guiDefaultTexture, \"\", main.WIDTH / 6, 0, 300, 50); // \"PlayerStatus\"\n\t\ttextboxes.add(text3);\n\n\t\tTextBox text4 = new TextBox(guiDefaultTexture, \"\", 100, 190, 500, 250); // \"LedgerText\"\n\t\ttextboxes.add(text4);\n\n\t\tTextBox text5 = new TextBox(guiDefaultTexture, \"...\", main.WIDTH - 400, main.HEIGHT - 200 + 15, 200, 35); // \"ConditionText\"\n\t\t// ArrayList<String> stringy = new ArrayList<String>(); stringy.add(\"...\");\n\t\t// text5.display = stringy;\n\t\ttext5.autoClear = false;\n\t\ttextboxes.add(text5);\n\n\t\tTextBox text6 = new TextBox(guiDefaultTexture, \"\", main.WIDTH - 200, main.HEIGHT - 150, 100, 150); // \"Detail1Text\"\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// (goes\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// with\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// HintText)\n\t\ttextboxes.add(text6);\n\n\t\tTextBox text7 = new TextBox(guiDefaultTexture, \"\", main.WIDTH - 100, main.HEIGHT - 150, 100, 150); // \"Detail2Text\"\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// (goes\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// with\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// HintText)\n\t\ttext7.monospace = true;\n\t\ttextboxes.add(text7);\n\n\t\tTextBox text8 = new TextBox(guiDefaultTexture, \"\", main.WIDTH / 6, 50, 300, 30);\n\t\ttextboxes.add(text8);\n\n\t\ttext4.activate(false);\n\n\t\t/*\n\t\t * for (int i = 3; i <= 8; i++) { textboxes.get(i).activate(false); }\n\t\t */\n\n\t\tupdateEncyclopedia();\n\n\t\tfor (int i = 0; i < textboxes.size(); i++) {\n\t\t\tTextBox t = textboxes.get(i);\n\t\t\tt.color.w = 100;\n\t\t\tt.noOverlap = true;\n\t\t}\n\t\tfor (int i = 0; i < menus.size(); i++) {\n\t\t\tfor (int j = 0; j < menus.get(i).buttons.size(); j++) {\n\t\t\t\tTextBox t = menus.get(i).buttons.get(j);\n\t\t\t\tif (i != 0)\n\t\t\t\t\tt.color.w = 100;\n\t\t\t\tt.noOverlap = true;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "1e66e2ada9c63f7eba87ec8e8b520952", "score": "0.5533375", "text": "private void createMenuChildScene()\n\t{\n\t menuChildScene = new MenuScene(camera);\n\t menuChildScene.setPosition(0, 0);\n\t \n\t //Creamos y anyadimos la opcion \"jugar\"\n\t final IMenuItem playMenuItem = new ScaleMenuItemDecorator(new SpriteMenuItem(MENU_PLAY, resourcesManager.play_region, vbom), 1.2f, 1);\n\t menuChildScene.addMenuItem(playMenuItem);\n\t \n\t //Anyadimos una animacion de \"escala\" al menu\n\t menuChildScene.buildAnimations();\n\t menuChildScene.setBackgroundEnabled(false);\n\t \n\t playMenuItem.setPosition(playMenuItem.getX(), 400.f);\n\t \n\t //Setteamos como listener a la propia clase\n\t menuChildScene.setOnMenuItemClickListener(this);\n\t \n\t setChildScene(menuChildScene);\n\t}", "title": "" } ]
1c82a988f20b5909e9f39c5323dbf5aa
/ / / / / / / / /
[ { "docid": "f19add5a71700a7430d0bf5bcdea0fd3", "score": "0.0", "text": "public PDSeedValueCertificate getSeedValueCertificate() {\n/* 502 */ COSBase base = this.dictionary.getDictionaryObject(COSName.CERT);\n/* 503 */ PDSeedValueCertificate certificate = null;\n/* 504 */ if (base instanceof COSDictionary) {\n/* */ \n/* 506 */ COSDictionary dict = (COSDictionary)base;\n/* 507 */ certificate = new PDSeedValueCertificate(dict);\n/* */ } \n/* 509 */ return certificate;\n/* */ }", "title": "" } ]
[ { "docid": "f4bfb491658d23d04e324332ecb7e7a4", "score": "0.5454369", "text": "public abstract int slash();", "title": "" }, { "docid": "0a0082d3dcf27cffffdf481aa595adec", "score": "0.51573575", "text": "public void shiftplane(int xdir,int ydir){\n\n }", "title": "" }, { "docid": "9cbd68e444456243ecfc9be82f14281f", "score": "0.5104962", "text": "public double getWidth(){\r\n return localWidth;\r\n }", "title": "" }, { "docid": "c68f1f5dcea76b039bbb82c88762c5e6", "score": "0.5100919", "text": "private int parent(int pos) \n { \n return pos / 2; \n }", "title": "" }, { "docid": "835a3677095e4c9f21649ab17f1ba40b", "score": "0.5071976", "text": "private static void diwalioffer() {\n\t\t\r\n\t}", "title": "" }, { "docid": "82723eca209ee7ba33f769f9998acbc9", "score": "0.5030685", "text": "void crossbreed() {\r\n \t\r\n }", "title": "" }, { "docid": "d1632760ef9a60d86cac2f7f66b0d697", "score": "0.50088936", "text": "public int w()\r\n/* 189: */ {\r\n/* 190:219 */ return 160;\r\n/* 191: */ }", "title": "" }, { "docid": "ae8e806dbd82070be4fb53e047857f0c", "score": "0.49989253", "text": "private void traceback() {\n\t String x = \" \" + this.x;\n\t String y = \" \" + this.y;\n\t alignedX = \"\";\n\t alignedY = \"\";\n\t int i = n;\n\t int j = m;\n\t while(cache[i][j].getParent() != Direction.NONE) {\n\t\t if(cache[i][j].getParent() == Direction.DIAGONAL) {\n\t\t\t cache[i][j].markPath();\n\t\t\t alignedX = x.charAt(i) + alignedX;\n\t\t\t alignedY = y.charAt(j) + alignedY;\n\t\t\t i--;\n\t\t\t j--;\n\t\t }\n\t\t else if(cache[i][j].getParent() == Direction.LEFT) {\n\t\t\t cache[i][j].markPath();\n\t\t\t alignedX = Constants.GAP_CHAR + alignedX;\n\t\t\t alignedY = y.charAt(j) + alignedY;\n\t\t\t j--;\n\t\t }\n\t\t else {\n\t\t\t cache[i][j].markPath();\n\t\t\t alignedX = x.charAt(i) + alignedX;\n\t\t\t alignedY = Constants.GAP_CHAR + alignedY;\n\t\t\t i--;\n\t\t }\n\t }\n\t cache[0][0].markPath();\n\t \n }", "title": "" }, { "docid": "0defa4aacda623e161c2277189ce8a35", "score": "0.49761924", "text": "double calculate(){\n return length * breadth ;\n }", "title": "" }, { "docid": "54c764657723f81db3a316130843065f", "score": "0.4953464", "text": "float aoTriTap( isofunction f, PVector ro, PVector nrm, float eps, float toff, float ff) {\r\n\t PVector tg = new PVector();\r\n\t PVector bi=new PVector();\r\n\t if ( abs(nrm.y)<0.99f)\r\n\t {\r\n\t // cross \r\n\t bi.x=nrm.z;\r\n\t bi.z=-nrm.x;\r\n\t bi.y=0.;\r\n\t float bimag=1./sqrt(bi.x*bi.x+bi.z*bi.z);\r\n\t bi.x*=bimag;\r\n\t bi.z*=bimag;\r\n\t \r\n\t tg.x=nrm.y*bi.z;\r\n\t tg.y=nrm.z*bi.x-nrm.x*bi.z;\r\n\t tg.z=-nrm.y*bi.x;\r\n\t }\r\n\t else\r\n\t {\r\n\t tg = new PVector(1.f,0.f,0.f);\r\n\t bi = tg.cross(nrm);\r\n\t bi.normalize(); \r\n\t \r\n\t tg = nrm.cross(bi);\r\n\t }\r\n\t int numsteps=3;\r\n\t PVector rdir0=new PVector(); \r\n\t PVector rdir1=new PVector(); \r\n\t PVector rdir2=new PVector();\r\n\t float dx,dy,dz;\r\n\t //http://www.valvesoftware.com/publications/2007/SIGGRAPH2007_EfficientSelfShadowedRadiosityNormalMapping.pdf\r\n\t dx=ttDx;\r\n\t dy=ttDy;\r\n\t dz=ttDz;\r\n\t rdir0.x = tg.x*dx + nrm.x*dz + bi.x*dy;\r\n\t rdir0.y = tg.y*dx + nrm.y*dz + bi.y*dy;\r\n\t rdir0.z = tg.z*dx + nrm.z*dz + bi.z*dy; \r\n\t \r\n\t dy=-dy;\r\n\t rdir1.x = tg.x*dx + nrm.x*dz + bi.x*dy;\r\n\t rdir1.y = tg.y*dx + nrm.y*dz + bi.y*dy;\r\n\t rdir1.z = tg.z*dx + nrm.z*dz + bi.z*dy; \r\n\t dx=ttDx2;\r\n\t rdir2.x = tg.x*dx + nrm.x*dz;\r\n\t rdir2.y = tg.y*dx + nrm.y*dz;\r\n\t rdir2.z = tg.z*dx + nrm.z*dz; \r\n\t float dst=150.f;\r\n\t return aoCone(f,ro,rdir0,coneAngle,eps*dst,0.75f*.5,numsteps)*.33+\r\n\t aoCone(f,ro,rdir1,coneAngle,eps*dst,0.5f*.5,numsteps)*.33+\r\n\t aoCone(f,ro,rdir2,coneAngle,eps*dst,0.25f*.5,numsteps)*.33;\r\n\t}", "title": "" }, { "docid": "41d305187b8428fbf1e89ed5e4e1902d", "score": "0.49442357", "text": "private int rightChild(int pos) \n { \n return (2 * pos) + 1; \n }", "title": "" }, { "docid": "665e9eb68869e91ca82a83127c6f9166", "score": "0.49326143", "text": "public int getSideLength(){ return sideLength; }", "title": "" }, { "docid": "ecc767596c795ab5762a9f381fa7a19f", "score": "0.49284318", "text": "int width();", "title": "" }, { "docid": "7f3480aa2ca6a3e068720ade564d70f5", "score": "0.49262276", "text": "private int getParent(int index){return index/2;}", "title": "" }, { "docid": "a029b6fbf1105c898a596a531a76d945", "score": "0.49185306", "text": "public static void main(String[] args) {\nDominosString ds = new DominosString();\r\n//System.out.println(ds.pushDominoes(\".L.R...LR..L..\"));\r\n\r\nSystem.out.println(ds.uniquePaths(7, 3));\r\n\t}", "title": "" }, { "docid": "c63b9cd6a6d4fe3db5bd67eb3ea56666", "score": "0.491784", "text": "double getWidth (){\n return width;\n }", "title": "" }, { "docid": "7549321302f42690b78a56067e62b04e", "score": "0.49124393", "text": "Rectangle()\n\n {\n\n length=9;\n\n breadth=9;\n\n }", "title": "" }, { "docid": "064cc36821673b19a06c5420f66db79b", "score": "0.49101567", "text": "private static void xyLyThongKe() {\n\t\t\n\t}", "title": "" }, { "docid": "d445a7d1d519980de0acae96ce627ae2", "score": "0.4907198", "text": "Divide createDivide();", "title": "" }, { "docid": "1114b2da3c09a4dafa3d946060614994", "score": "0.49020904", "text": "double calculate()\n{\n return length*breadth*height; \n}", "title": "" }, { "docid": "b09023388e165bec79f0769d2908f059", "score": "0.48970574", "text": "public void rootHolderInConsol() {\r\n\t\tfor(int i=0;i<pixel.length;i++) {\r\n\t\t\tif(i>0 && i%image.getWidth()==0) \r\n\t\t\t\tSystem.out.println();\r\n\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "b419495770bf21b1efe2bb00e113d537", "score": "0.48945543", "text": "protected int realWidth() {\n return 3 * size - 2;\n }", "title": "" }, { "docid": "074ba248746e162579fe94cf5c07ee21", "score": "0.48917988", "text": "public int getSqueueObject(ImageProcessor ip, Point centerP){\n int wile = -1;\r\n //left X\r\n int x1 = centerP.x;\r\n int x2 = centerP.x - 1;\r\n int dx = ip.getPixel(x1, centerP.y) - ip.getPixel(x2, centerP.y); //x1 - x2;\r\n while((dx >= wile)/*|(x2<0)*/){ \r\n x1 = x2;\r\n x2 = x2 - 1;\r\n dx = ip.getPixel(x1, centerP.y) - ip.getPixel(x2, centerP.y);\r\n }\r\n IJ.log(\"End left X = \"+String.valueOf(x2)+\" dx = \"+String.valueOf(dx));\r\n int _x = x2;\r\n \r\n //right X\r\n x1 = centerP.x;\r\n x2 = centerP.x + 1;\r\n dx = ip.getPixel(x1, centerP.y) - ip.getPixel(x2, centerP.y);\r\n while((dx >= wile)/*|(x2>=ip.getWidth())*/){ \r\n x1 = x2;\r\n x2 = x2 + 1;\r\n dx = ip.getPixel(x1, centerP.y) - ip.getPixel(x2, centerP.y);\r\n }\r\n IJ.log(\"End right X = \"+String.valueOf(x2)+\" dx = \"+String.valueOf(dx));\r\n int _w = x2 - _x;\r\n \r\n //top y\r\n int y1 = centerP.y;\r\n int y2 = centerP.y - 1;\r\n int dy = ip.getPixel(centerP.x,y1 ) - ip.getPixel(centerP.x, y2);\r\n while((dy >= wile)/*|(y2<0)*/){ \r\n y1 = y2;\r\n y2 = y2 - 1;\r\n dy = ip.getPixel(centerP.x,y1 ) - ip.getPixel(centerP.x, y2);\r\n }\r\n IJ.log(\"End top Y = \"+String.valueOf(y2)+\" dy = \"+String.valueOf(dy));\r\n int _y = y2;\r\n \r\n //foot y\r\n y1 = centerP.y;\r\n y2 = centerP.y + 1;\r\n dy = ip.getPixel(centerP.x,y1 ) - ip.getPixel(centerP.x, y2);\r\n while((dy >= wile)/*|(y2<=ip.getHeight())*/){ \r\n y1 = y2;\r\n y2 = y2 + 1;\r\n dy = ip.getPixel(centerP.x,y1 ) - ip.getPixel(centerP.x, y2);\r\n }\r\n IJ.log(\"End foot Y = \"+String.valueOf(y2)+\" dy = \"+String.valueOf(dy));\r\n int _h = y2 - _y;\r\n \r\n //ip.drawOval(_x, _y, _w, _h);\r\n \r\n return _w*_h;\r\n }", "title": "" }, { "docid": "e0eed1b95e4d4e24eec4e6d43d79a380", "score": "0.48891464", "text": "public static void Base() {\r\n\t\tSystem.out.println(\" ____|_||________\");\r\n\t\tSystem.out.println(\" / /\\\\ \\\\ \\\\\");\r\n\t\tSystem.out.println(\" # /__\\\\ # #\");\r\n\t\tSystem.out.println(\" / /\\\\ /\\\\ \\\\ \\\\\");\r\n\t\tSystem.out.println(\" # /__\\\\/__\\\\ # #\");\r\n\t\tSystem.out.println(\" /____________________\\\\___\\\\\");\r\n\t}", "title": "" }, { "docid": "2fab3f9364c51adaea0728ece5be7b15", "score": "0.48869225", "text": "private int parent (int i){\r\n return i/2;\r\n }", "title": "" }, { "docid": "9d8d428fbdc9353613831833838f0a0d", "score": "0.48859012", "text": "private int location_left_child(int index){\n return 2 * index;\n }", "title": "" }, { "docid": "720a79d7084b0111dd03f869be5bf0a5", "score": "0.4884772", "text": "double volume() {\nreturn width * height * depth;\n}", "title": "" }, { "docid": "6996ef69a97c0c022b19531c66057e66", "score": "0.48690918", "text": "String getRing();", "title": "" }, { "docid": "18c59761bf3737ad7178277fe259b678", "score": "0.48649997", "text": "private int getParent(int c) {\n return (c - 1)/3;\n}", "title": "" }, { "docid": "b48730249280b0d20adeec6c32521203", "score": "0.4855483", "text": "public int getWidth() {\n/* 43 */ return this.width;\n/* */ }", "title": "" }, { "docid": "4e4b06d415f6660ab5771d5bcbe26328", "score": "0.48470935", "text": "private void bm25() {\n \t\t\n \t}", "title": "" }, { "docid": "a701cded1a870bc62fe7a168a87ada2b", "score": "0.48270792", "text": "public int width(){return values.width_;}", "title": "" }, { "docid": "b370cf7b8dab4b500733d84d6b9676af", "score": "0.4822148", "text": "@Override\n public double perimeter() {\n // TODO Auto-generated method stub\n return 0;\n }", "title": "" }, { "docid": "f91a2a29a3c1fbcd9f4fa035343fc918", "score": "0.48166496", "text": "public int getWidth() {\r\n\treturn width;\r\n}", "title": "" }, { "docid": "f9c1862cc79ad6f687fda76b52b2301a", "score": "0.4815213", "text": "int area()\n\n {\n\n int rectArea=length*breadth;\n\n return rectArea;\n\n }", "title": "" }, { "docid": "ffb1ce4f225de020945e0916e83a39da", "score": "0.48148838", "text": "public void reverseDirection() {\r\n\tsuper.reverseDirection();\r\n\tint index = volIndexNeighbor1;\r\n\tvolIndexNeighbor1 = volIndexNeighbor2;\r\n\tvolIndexNeighbor2 = index;\r\n}", "title": "" }, { "docid": "ca3d7a2b446533e8773c34b9f164cd04", "score": "0.4813727", "text": "@Override\r\n public int Keliling() {\r\n return (4*(p+l+t));\r\n }", "title": "" }, { "docid": "0f3e301446ed33bbd5b8f9a737adc0d3", "score": "0.4809755", "text": "private void Linearize(Node root) {\n\r\n\t}", "title": "" }, { "docid": "1334e727e250ea142f306b353a4594a4", "score": "0.48000276", "text": "String getDiagnosen();", "title": "" }, { "docid": "ab96ba104c1a575dc60be1b807571915", "score": "0.47986916", "text": "public static void findAntagonists(){\n\n\t}", "title": "" }, { "docid": "a294f0a5ae8331d8d0cd2e9af41ea818", "score": "0.47877946", "text": "private int leftChild(int pos) \n { \n return (2 * pos); \n }", "title": "" }, { "docid": "fbe7e71e90859705d1357ca55234c8fc", "score": "0.47868213", "text": "void update(int edgeWidth);", "title": "" }, { "docid": "a1becc5550c1588bbf54b6f7cb26fe16", "score": "0.47723296", "text": "@Override\n public void Draw()\n {\n\n\n }", "title": "" }, { "docid": "8dbc4ecc9572c88d8e34be55cf00f3eb", "score": "0.47716415", "text": "String swim();", "title": "" }, { "docid": "2726fa4e3f2d8e4e9f6793ee992529dc", "score": "0.4769435", "text": "public void rigth(){\n ArrayList<Image> sprite = super.getSprite();\n int num=0;\n super.setY(this.startPoint[0]*this.size);\n \n while(this.sharedBuffer.move(1, this.matrix, this.startPoint)){\n super.setImage(sprite.get(num));\n this.startPoint[1]++;\n super.setX(this.startPoint[1] * this.size);\n try {\n Thread.sleep(200);\n } catch (InterruptedException ex) {\n Logger.getLogger(FastCharacter.class.getName()).log(Level.SEVERE, null, ex);\n }\n if(num==1){\n num=0;\n }else{\n num=1;\n }\n }\n this.left();\n }", "title": "" }, { "docid": "add1db5a88b1d6cbf72a340fe7a74cd3", "score": "0.4767945", "text": "public List<Tuple<Integer,Integer>> findShortestPath()\n\t \n\t {\n\t\t Tuple<Integer,Integer> currentPosition = findStartPosition(); \n\t\t if(visitedPaths ==null)\n\t\t {\n\t\t\t visitedPaths = new ArrayList<>();\n\t\t }\n\t\t//visitedPaths.add(currentPosition);\n\t\t Tuple<Integer,Integer> endPostion = findEndPosition(mapTable);\n\t\t \n\t\t MyEnum.Direction direction = MyEnum.Direction.right; \n\t\t //check what is in front of us and around us\n\t\t\n\t\twhile(currentPosition != endPostion )\n\t\t{\n\t\tInteger col =currentPosition.x;\n\t\tInteger row = currentPosition.y;\n\t\tif(col < maxColumn - 1 && (mapTable[row ][col + 1 ].equals(\".\") || mapTable[row ][col + 1 ].equals(\"E\")))\n\t\t {\n\t\t\t if(mapTable[row ][col + 1 ].equals(\"E\"))\n\t\t\t {\n\t\t\t \tcurrentPosition = endPostion;\n\t\t\t }\n\t\t\t else {\n\t\t\t \tdirection =MyEnum.Direction.right;\n\t\t\t\tcurrentPosition = nextPosition(currentPosition, direction);\n\t\t\t addToTravelledPath(currentPosition);\n\t\t\t\tmapTable[currentPosition.y][currentPosition.x]=\"\\\"\";\n\t\t\t\taddToVisitedPath(currentPosition);\n\t\t\t }\n\t\t\t\n\t\t }\n\t\t\n\t\t else if(row < maxRow -1 && (mapTable[row + 1][col].equals(\".\") || mapTable[row + 1][col].equals(\"E\")))\n\t\t {\n\t\t\t if(mapTable[row + 1][col].equals(\"E\"))\n\t\t\t {\n\t\t\t \tcurrentPosition = endPostion;\n\t\t\t }\n\t\t\t else {\n\t\t\t\tdirection =MyEnum.Direction.down;\n\t\t\t\tcurrentPosition = nextPosition(currentPosition, direction);\n\t\t\t addToTravelledPath(currentPosition);\n\t\t\t\tmapTable[currentPosition.y][currentPosition.x]=\"\\\"\";\n\t\t\t\taddToVisitedPath(currentPosition);\n\t\t\t }\n\t\t }\n\t\t else if(row > 0 && (mapTable[row -1][col].equals(\".\") || mapTable[row -1][col].equals(\"E\")))\n\t\t {\n\t\t\t if(mapTable[row -1][col].equals(\"E\"))\n\t\t\t {\n\t\t\t \tcurrentPosition = endPostion;\n\t\t\t }\n\t\t\t else {\n\t\t\t direction =MyEnum.Direction.up;\n\t\t\t currentPosition = nextPosition(currentPosition, direction);\n\t\t\t addToTravelledPath(currentPosition);\n\t\t\t\tmapTable[currentPosition.y][currentPosition.x]=\"\\\"\";\n\t\t\t\taddToVisitedPath(currentPosition);\n\t\t\t }\n\t\t }\n\t\t else if(col >0 && mapTable[row][col- 1 ].equals(\".\"))\n\t\t {\n\t\t\t if(mapTable[row ][col - 1 ].equals(\"E\"))\n\t\t\t {\n\t\t\t \tcurrentPosition = endPostion;\n\t\t\t }\n\t\t\t else {\n\t\t\t \tdirection =MyEnum.Direction.left;\n\t\t\t\tcurrentPosition = nextPosition(currentPosition, direction);\n\t\t\t addToTravelledPath(currentPosition);\n\t\t\t\tmapTable[currentPosition.y][currentPosition.x]=\"\\\"\";\n\t\t\t\taddToVisitedPath(currentPosition);\n\t\t\t }\n\t\t\t \n \t\t\t\t\n\t\t }\n\t\t \n\t\t \n\t\t else\n\t\t {\n\t\t\t noEnd =true;\n\t\t }\n\t\t\t\n\t\t\tif(noEnd)\n\t\t\t{\n\t\t\t\t\n\t\t\t\t//find the last visited node and check that does not have wall and start from there\n\t\t\t\tfor (Integer i = visitedPaths.size()-1; i >= 0 ; i--)\n\t\t\t\t{\n\t\t\t\t Tuple<Integer,Integer> temp\t=visitedPaths.get(i);\n\t\t\t\t if(temp.x < maxColumn -1 && mapTable[temp.y][temp.x + 1].equals(\".\"))\n\t\t\t\t {\n\t\t\t\t\t currentPosition = temp;\n\t\t\t\t\t //notvisitedPaths.add(temp);\n\t\t\t\t\t break;\n\t\t\t\t }\n\t\t\t\t \n\t\t\t\t else if(temp.y < maxRow - 1 && mapTable[temp.y + 1][temp.x ].equals(\".\"))\n\t\t\t\t {\n\t\t\t\t\t currentPosition =temp;// new Tuple<Integer,Integer>(temp.x, temp.y + 1);\n\t\t\t\t\t //notvisitedPaths.add(temp);\n\t\t\t\t\t break;\n\t\t\t\t }\n\t\t\t\t else if(temp.y > 0 && mapTable[temp.y - 1][temp.x].equals(\".\"))\n\t\t\t\t {\n\t\t\t\t\t currentPosition = temp;new Tuple<Integer,Integer>(temp.x , temp.y-1);\n\t\t\t\t\t //notvisitedPaths.add(temp);\n\t\t\t\t\t break;\n\t\t\t\t }\n\n\t\t\t\t travelPath.remove(temp);\n\t\t\t\t \n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tnoEnd = false;\n\t\t\t}\n\t\t\t displayTableMap(mapTable);\n\t\t}\n\t\tfor(Tuple<Integer,Integer> item: travelPath)\n\t {\n\t\t\tmapTable[item.y][item.x]=\"*\";\n\t }\n\t\tdisplayTableMap(mapTable);\n\n\t\treturn travelPath;\n\t\t \n\t }", "title": "" }, { "docid": "c2a08ce499e3d2af59e70f41d1ec71cd", "score": "0.47674575", "text": "public double getWidth() {\r\n\treturn width;\r\n}", "title": "" }, { "docid": "05da22e3d7d44854b6c31874905ea8b4", "score": "0.4767415", "text": "@Override\r\n\tvoid around() {\n\t\tSystem.out.println(\"사각형 둘레: \" + 2*(side + height));\r\n\t}", "title": "" }, { "docid": "a322fe243685f8675cda94c6b8a0e991", "score": "0.4763356", "text": "public void longer(){\n //this.rectr.get(1).first = orixr+itemwr+itemwr;\n //this.rectr.get(2).first = orixr+itemwr+itemwr;\n this.itemwr += this.itemwr;\n updatePoints();\n return;\n }", "title": "" }, { "docid": "3b02482f46ed0a028290d29aca2fc58f", "score": "0.47588226", "text": "String PARENT_GRADIENT_IE9();", "title": "" }, { "docid": "e438c8e9bd333e4ea3ca831f26ab4928", "score": "0.47568494", "text": "@Override\n public double getWidth() {\n return 0.5;\n }", "title": "" }, { "docid": "ce2a4cd764625f1890deebfb3d32770a", "score": "0.47518432", "text": "public static void slashFigure(int dimension)\n {\n\n for (int rows = 1; rows <= dimension; rows++)\n {\n for (int i = 1; i < rows; i++)\n {\n System.out.print(\"\\\\\\\\\");\n }\n for (int j = 1; j <= dimension - rows; j++)\n {\n System.out.print(\"!!\");\n }\n System.out.print(\"!!\");\n for (int j = 1; j <= dimension - rows; j++)\n {\n System.out.print(\"!!\");\n }\n\n for (int i = 1; i < rows; i++)\n {\n System.out.print(\"//\");\n }\n System.out.println();\n }\n\n }", "title": "" }, { "docid": "9222ced0084ee0ce97facd4908c87b78", "score": "0.47481588", "text": "public int getDepth(){\r\n return localDepth;\r\n }", "title": "" }, { "docid": "f69f52de42c92a8f0d800951723cad8b", "score": "0.47354314", "text": "public void Move ()\n {\n nCycleSlot++;\n if ((nCycleSlot >= phPath.Length ()) || (nCycleSlot <= 0)) {\n nCycleSlot = 0;\n }\n\n nX = phPath.LookupX(nCycleSlot, bLeft);\n nY = phPath.LookupY(nCycleSlot);\n }", "title": "" }, { "docid": "4a9558a50ce3fb6bfdfc57ad6806c44e", "score": "0.47301567", "text": "@Test(timeout=100)\n\t\tpublic void testcornerprefix2(){\n\t\t\tLinkedBinaryTree<String> a=Assignment.prefix2tree(\"* * * 0 a 2 + 1 - 8 * 2 6\");\n\t\t\tassertEquals(\"* * * 0 a 2 + 1 - 8 * 2 6\",Assignment.tree2prefix(a));\n\t\t}", "title": "" }, { "docid": "cafe0743e92b146b83c54a51863a9721", "score": "0.4729194", "text": "public int getWidth(){\n return width;\n }", "title": "" }, { "docid": "1995eddb1e9bf0ebd8e7cfd7e31b6046", "score": "0.47282195", "text": "public int getBlockLength()\r\n/* 26: */ {\r\n/* 27: 88 */ return 128;\r\n/* 28: */ }", "title": "" }, { "docid": "a72a4a3e6ab24123f6c955861ac73e6f", "score": "0.4726896", "text": "void drawTree() {\n\t\tdouble initAngL = 36 * Math.PI / 180;\n\t\tdouble initAngR = 24 * Math.PI / 180;\n\t\tdouble initLen = -100;\n\t\tint maxBranchDepth = 6;\n\t\tdrawBranch(ORIGIN, 0, initAngL, initAngR, initLen, maxBranchDepth);\n\t}", "title": "" }, { "docid": "235e93513171b3855e448f7bbcbe2a09", "score": "0.47262418", "text": "private int location_right_child(int index){\n return (2 * index) + 1;\n }", "title": "" }, { "docid": "80d10ea62cee927f9ad0a7965909eaba", "score": "0.4726126", "text": "@Override\n\tprotected void remplit() {\n\t\t\n\t}", "title": "" }, { "docid": "e90837e049daeb83d0f2e6cbeb3d1181", "score": "0.47240427", "text": "@Override\r\n\tdouble getPathfinderOutputMultiplier() {\n\t\treturn 0.5;\r\n\t}", "title": "" }, { "docid": "eb8ebc6574cc6ef13bd11f9e83ff05aa", "score": "0.4723919", "text": "public int getW()\r\n/* 44: */ {\r\n/* 45: 45 */ return 18;\r\n/* 46: */ }", "title": "" }, { "docid": "b9907d41eaf6d5a1aab31647ef32dedc", "score": "0.47184393", "text": "public void b()\r\n/* 46: */ {\r\n/* 47: 67 */ super.b();\r\n/* 48: 68 */ this.j.h.bi = this.h;\r\n/* 49: */ \r\n/* 50: 70 */ this.i = ((this.l - this.f) / 2);\r\n/* 51: 71 */ this.r = ((this.m - this.g) / 2);\r\n/* 52: */ }", "title": "" }, { "docid": "0b4810ce64d2f01011bb9acfd2b82080", "score": "0.4714508", "text": "protected int getPathSize() {\n\treturn pathSize;\n }", "title": "" }, { "docid": "479340d7603590876396cc58262a3776", "score": "0.47101367", "text": "@Override\r\n\tpublic int attaquer() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\treturn 0;\r\n\t}", "title": "" }, { "docid": "5b523cbf379f5d9b51bb219e04ffe65e", "score": "0.47092354", "text": "int parent(int i) {\n\treturn (i-1)/2;\n }", "title": "" }, { "docid": "5f40763809ee01c0dec9f49194c5f47f", "score": "0.47065347", "text": "private int rchild(int index) {\n // TODO - complete this\n return index*2+1;\n }", "title": "" }, { "docid": "7d8ba9e819f9fd6fd3b7e309dabc72a4", "score": "0.4705555", "text": "int getWidth() { return width; }", "title": "" }, { "docid": "4502d05dca2b036b99421d0be54b548f", "score": "0.47054076", "text": "@Override\r\n\tpublic void draw () {\n\t\t\r\n\t}", "title": "" }, { "docid": "03d7171196199db238d56b8aeab47987", "score": "0.47047126", "text": "private void welcom() {\n\n\t}", "title": "" }, { "docid": "9b0e170ab3837385f15c703e0faf855a", "score": "0.47046393", "text": "@Override\n\tpublic float getWidth() {\n\t\treturn 32;\n\t}", "title": "" }, { "docid": "249acd9d90b9c8b57ba7db91ca177806", "score": "0.4696448", "text": "@Override\r\n\tpublic int area() {\n\t\treturn len * width;\r\n\t\t\r\n\t}", "title": "" }, { "docid": "98dfb8565fa6e068503342ba605f6f2a", "score": "0.46957988", "text": "int ring_size(ring_buffer_t ring);", "title": "" }, { "docid": "612149183c107ef903e62c74d2dc4ac0", "score": "0.4694118", "text": "int getPathLength();", "title": "" }, { "docid": "b0b4aa0f1baeaacfab40e95c737bb14c", "score": "0.4688624", "text": "@Override\n\tpublic void draw() {\n\t\t\n\t}", "title": "" }, { "docid": "b0b4aa0f1baeaacfab40e95c737bb14c", "score": "0.4688624", "text": "@Override\n\tpublic void draw() {\n\t\t\n\t}", "title": "" }, { "docid": "b0b4aa0f1baeaacfab40e95c737bb14c", "score": "0.4688624", "text": "@Override\n\tpublic void draw() {\n\t\t\n\t}", "title": "" }, { "docid": "b0b4aa0f1baeaacfab40e95c737bb14c", "score": "0.4688624", "text": "@Override\n\tpublic void draw() {\n\t\t\n\t}", "title": "" }, { "docid": "266699deacf2368bc5d50f199b0cb538", "score": "0.46869904", "text": "SV() {\n\t\t\n\t}", "title": "" }, { "docid": "58ddc84bae948c33064aedc5b1b64ba7", "score": "0.46835372", "text": "public static void printFigure() {\n\t\tfor(int lineNumber = 0; lineNumber < SIZE; lineNumber++) {\n\t\t\tprintChar(SIZE*2-2*lineNumber, '\\\\'); \t\n\t\t\tprintChar(2*lineNumber, '<');\n\t\t\tprintChar(2*lineNumber, '\\\\');\n\t\t\tprintChar(SIZE*2-2*lineNumber, '<'); \t\n\t\t\tSystem.out.println();\n\t\t}\n\t\tfor(int lineNumber = SIZE-1; lineNumber >= 0; lineNumber--) {\n\t\t\tprintChar(SIZE*2-2*lineNumber, '>'); \t\n\t\t\tprintChar(2*lineNumber, '\\\\');\n\t\t\tprintChar(2*lineNumber, '>');\n\t\t\tprintChar(SIZE*2-2*lineNumber, '\\\\'); \t\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "title": "" }, { "docid": "f617cc1eb53b29bf6802c3a597a9a8ac", "score": "0.468276", "text": "private int[] createTreeByUnionFind( ) {\n\t\tlong ti = System.currentTimeMillis();\n\t\tint parent[] = new int[imgR.length];\n\t\tint zPar[] = new int[imgR.length];\n\t\t\n\t\tfor (int p = 0; p < imgR.length; p++) {\n\t\t\tzPar[p] = NIL;\n\t\t}\n\t\t\n\t\tfor(int i=imgR.length-1; i >= 0; i--){\n\t\t\tint p = imgR[i];\n\t\t\tparent[p] = p;\n\t\t\tzPar[p] = p;\n\t\t\tfor (Integer n : getAdjPixels(p, zPar)) {\n\t\t\t\tint r = findRoot(zPar, n);\n\t\t\t\tif(p != r){\n\t\t\t\t\tparent[r] = p;\n\t\t\t\t\tzPar[r] = p;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\t// canonizacao da arvore\n\t\tfor (int i = 0; i < imgR.length; i++) {\n\t\t\tint p = imgR[i];\n\t\t\tint q = parent[p];\n\t\t\tif(imgU[parent[q]] == imgU[q]){\n\t\t\t\tparent[p] = parent[q];\n\t\t\t}\n\t\t}\n\t\tzPar = null;\n\t\t\n\t\tlong tf = System.currentTimeMillis();\n if(isLog)\n \tSystem.out.println(\"Tempo de execucao [union-find] \"+ ((tf - ti) /1000.0) + \"s\");\n\t\t\n return parent;\n\t}", "title": "" }, { "docid": "cf5e070ea3c82afcf11c603373d4f74d", "score": "0.4676722", "text": "public void drawSectors() {\n drawLeftUp(getDistanceStrength(checkNearestPoint(leftUp)));\n drawLeftDown(getDistanceStrength(checkNearestPoint(leftDown)));\n drawCenterUp(getDistanceStrength(checkNearestPoint(centerUp)));\n drawCenterDown(getDistanceStrength(checkNearestPoint(centerDown)));\n drawRightUp(getDistanceStrength(checkNearestPoint(rightUp)));\n drawRightDown(getDistanceStrength(checkNearestPoint(rightDown)));\n \n}", "title": "" }, { "docid": "de1ade0d9df85b84a3d42baddecd5ed8", "score": "0.46755943", "text": "long controlPlaneCount();", "title": "" }, { "docid": "d4989512577392ce906d3647eaaf28ac", "score": "0.46731505", "text": "public abstract void mo64080b();", "title": "" }, { "docid": "f41216b29093e9c4f48989e7c030677a", "score": "0.46720633", "text": "String getRoot();", "title": "" }, { "docid": "fd58e55aaa32b98ce869a8cdf606ab45", "score": "0.4668705", "text": "private static void getPath() {\n\t\n }", "title": "" }, { "docid": "ab92fd509dcf9edd6498a0302e1555e9", "score": "0.46592796", "text": "@Override\n\tpublic void withdrawl() {\n\t\t\n\t}", "title": "" }, { "docid": "f51668c84dcb4c2b279286d705453951", "score": "0.46523076", "text": "public String toString()\r\n {\r\n return width + \"x\" + length;\r\n }", "title": "" }, { "docid": "18f6976e89087bdf183ef7d1f83cc44b", "score": "0.46478233", "text": "public static int size_parent() {\n return (16 / 8);\n }", "title": "" }, { "docid": "1b3f0040d7db988100539b102b1aac01", "score": "0.46475863", "text": "public int reSizing(Point point) {//resizing, get the mouse location and see, it the user is on top of the nodes\n Point n = new Point ((int)((p.x-centre().x)*Math.cos(angle) - (p.y-centre().y)*Math.sin(angle)+ centre().x),\n (int)((p.x-centre().x)*Math.sin(angle) + (p.y-centre().y)*Math.cos(angle)+ centre().y));\n Point n1 = new Point ((int)((p1.x-centre().x)*Math.cos(angle) - (p1.y-centre().y)*Math.sin(angle)+ centre().x),\n (int)((p1.x-centre().x)*Math.sin(angle) + (p1.y-centre().y)*Math.cos(angle)+ centre().y));\n Point n2 = new Point ((int)((p2.x-centre().x)*Math.cos(angle) - (p2.y-centre().y)*Math.sin(angle)+ centre().x),\n (int)((p2.x-centre().x)*Math.sin(angle) + (p2.y-centre().y)*Math.cos(angle)+ centre().y));\n Point n3 = new Point ((int)((p3.x-centre().x)*Math.cos(angle) - (p3.y-centre().y)*Math.sin(angle)+ centre().x),\n (int)((p3.x-centre().x)*Math.sin(angle) + (p3.y-centre().y)*Math.cos(angle)+ centre().y));\n //first, translate the 4 nodes according to the rotaion,\n if (n.distance(point)<=16) return 1;//check if the translated 1st node is where the user is cleckking if it is return 1\n if (n1.distance(point)<=16) return 2;\n if (n2.distance(point)<=16) return 3;\n if (n3.distance(point)<=16) return 4;//same for others\n return 0;//if not return 0\n }", "title": "" }, { "docid": "702617f5786a3c2eab6ca172ddbedee8", "score": "0.46475315", "text": "protected void calculateRelativeCoordinates()\n{\n \n int top_lowest=9999999;\n int left_lowest=9999999;\n for(int i=0;i<pixels.size();i++)\n {\n pixel thisOne=pixels.get(i);\n if(thisOne.y<left_lowest)\n left_lowest=thisOne.y;\n if(thisOne.x<top_lowest)\n top_lowest=thisOne.x;\n \n \n }\n \n //This is the point that the relative coordinates are based on, store its real location within the image so the blob can be\n //redrawn later using the blob data.\n this.x=top_lowest;\n this.y=left_lowest;\n for(int i=0;i<pixels.size();i++)\n {\n pixel tmp=pixels.get(i);\n tmp.x=(short) (tmp.x - this.x);\n tmp.y=(short) (tmp.y - this.y);\n }\n sort();\n}", "title": "" }, { "docid": "0855573f14efac8e0db075cdb099fbc1", "score": "0.4647073", "text": "@Override\r\n\tpublic int getWidth() {\n\t\treturn 0;\r\n\t}", "title": "" }, { "docid": "17af4e25753c6c26919ca7d04326096b", "score": "0.4643852", "text": "@Override\n\tpublic int caminhar() {\n\t\treturn 3;\n\t}", "title": "" }, { "docid": "3b9519beeaff97235ab821484e3603eb", "score": "0.4642131", "text": "public int evlfcn(){\n \tint numberOfBlackPieces =0;\n \tint numberOfWhitePieces =0;\n \tint kingPositionToNearestCorner=0;\n \t\n \t\n \treturn numberOfWhitePieces - numberOfBlackPieces + kingPositionToNearestCorner;\n \t\n \t\n }", "title": "" }, { "docid": "942ac19eb8e6fa6482aa15ca8cadb491", "score": "0.46403456", "text": "void left();", "title": "" }, { "docid": "942ac19eb8e6fa6482aa15ca8cadb491", "score": "0.46403456", "text": "void left();", "title": "" }, { "docid": "9bd8a9bd34c7052f1cade50e51992d0c", "score": "0.46398857", "text": "double getWidth();", "title": "" }, { "docid": "9bd8a9bd34c7052f1cade50e51992d0c", "score": "0.46398857", "text": "double getWidth();", "title": "" }, { "docid": "9bd8a9bd34c7052f1cade50e51992d0c", "score": "0.46398857", "text": "double getWidth();", "title": "" }, { "docid": "ccdc35223ad849d6d97c86d00070f143", "score": "0.4639095", "text": "@Override\r\n public int operar() {\n return 0;\r\n }", "title": "" }, { "docid": "cbc91c60187ddf885282e971d5ca7ff0", "score": "0.4638667", "text": "public int getSpace();", "title": "" } ]
396b5bdd6e85adb1e59a51431b5018bd
Outputs the supplied List of ImageOverlays to the Printer provided by the state.
[ { "docid": "783adcde5d267bee19ddd743eab80b49", "score": "0.59297615", "text": "protected void writeOverlays(List<ImageOverlay> overlayList,\r\n\t\t\tint startIndent, Illustratable subject) {\r\n\t\t\r\n\t\tImageOverlayWriter overlayWriter = new ImageOverlayWriter(_deltaWriter);\r\n\t\toverlayWriter.writeOverlays(overlayList, startIndent, subject);\r\n\t}", "title": "" } ]
[ { "docid": "f5e0e5815c5aa15915b4374b34e42c2d", "score": "0.54506606", "text": "public void displayImageToConsole();", "title": "" }, { "docid": "49223536beeaadde4eb5c24bc6fb7f68", "score": "0.5404378", "text": "public void printImageMap(){\n for(int counter = savedMap.length-1 ; counter != -1;counter--)\n System.out.println(Arrays.toString(savedMap[counter]));\n }", "title": "" }, { "docid": "df72021ef21fbd534be64808f123bc25", "score": "0.5285344", "text": "public void displayAll()\r\n {\r\n clearPinboard();\r\n for(String filename : pictures)\r\n {\r\n pinboardObject.pinPicture(filename);\r\n pause(1000);\r\n }\r\n }", "title": "" }, { "docid": "2b0362d0c0a75581b0286def15292f10", "score": "0.5223448", "text": "static void printShapes(List<Shape> array, String label) {\n\n System.out.println(label + \"\\n\");\n // Iterate array of polygons using a foreach loop\n for (Shape shape : array) {\n // Use getClass to print the class of the Object and then print the Object (calls the toString)\n System.out.printf(\"%s: %s\\n\", shape.getClass(), shape);\n }\n System.out.println();\n }", "title": "" }, { "docid": "6bc93e619fd212e37461a08998cb5d7e", "score": "0.5123887", "text": "@Override\n public void convert(final List<OutputPayload> outputPayloadList) throws Exception {\n\n for (final OutputPayload payload : outputPayloadList) {\n System.out.println(strings.getString(\"status_exporting_file\", payload.getTargetFile()));\n\n final String svgPath = payload.getSvgPath();\n final String svgURI = new File(svgPath).toURL().toString();\n final TranscoderInput input = new TranscoderInput(svgURI);\n\n // Create a JPEG transcoder\n final PNGTranscoder t = new PNGTranscoder();\n\n final float floatWidth = Float.valueOf(payload.getWidth());\n final float floatHeight = Float.valueOf(payload.getHeight());\n\n t.addTranscodingHint(PNGTranscoder.KEY_WIDTH, floatWidth);\n t.addTranscodingHint(PNGTranscoder.KEY_HEIGHT, floatHeight);\n\n // Create the transcoder output.\n final OutputStream ostream = new FileOutputStream(payload.getTargetFile());\n final TranscoderOutput output = new TranscoderOutput(ostream);\n // Save the image.\n t.transcode(input, output);\n\n // Flush and close the stream.\n ostream.flush();\n ostream.close();\n }\n }", "title": "" }, { "docid": "1631ccb12369bcf835224346188d5c72", "score": "0.5047719", "text": "public static void saveOutput(String filename, DSALinkedList list)\n {\n try\n {\n PrintWriter out = new PrintWriter(filename);\n //out.println(input);\n\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n PrintStream ps = new PrintStream(baos);\n PrintStream old = System.out;\n System.setOut(ps);\n //stuff goes here\n\n if(!list.isEmpty())\n {\n System.out.println(\"# All routes Traversed:\");\n Iterator<DSAQueue> itr = list.iterator();\n int counter = 0;\n while(itr.hasNext())\n {\n counter ++;\n System.out.println(\"\\n# Route number: [\" + counter + \"]\");\n itr.next().show();\n }\n }\n else\n {\n System.out.println(\"# Route list is empty. Add some more!\");\n }\n System.out.flush();\n System.setOut(old);\n out.println(baos.toString());\n\n out.close();\n }\n catch (Exception e)\n { //should do more here might not be needed\n throw new IllegalArgumentException(\"Unable to print object to file: \" + e);\n }\n\n }", "title": "" }, { "docid": "eaf186a1cba2157d15b1e3231941e367", "score": "0.503335", "text": "public void printObjectList(){\n\t\tfor (int i = 0; i < gameObjectsList.size(); i++){\n\t\t\tSystem.out.println(i + \", \" + gameObjectsList.get(i).getCategory() + \" : Type:\" + gameObjectsList.get(i).getObjecttype() + \" X:\" + gameObjectsList.get(i).getX() + \" Y:\" + gameObjectsList.get(i).getY());\n\t\t}\n\t}", "title": "" }, { "docid": "cbb8a5ea3fd7625acfd23e7675a678d1", "score": "0.50276643", "text": "private void printOut(String[] printerMakerResult)\n {\n //shows user the printerMaker result\n\n for(int i=0;i<printerMakerResult.length;i++)\n {\n outVideo.println(printerMakerResult[i]);\n outVideo.flush();\n }\n }", "title": "" }, { "docid": "dd383dcf5d45c456a78befac34ecd2e7", "score": "0.49712527", "text": "public String printImage() {\n StringBuilder builder = new StringBuilder();\n builder.append(\"ID:\" + this.id + \"; Data:\\n\");\n\n for (int i = 1; i <= this.data.length; i++) {\n T t = data[i - 1];\n builder.append(t.toString() + \" \");\n if (i % 28 == 0) {\n builder.append(\"\\n\");\n }\n }\n return builder.toString().replace('0', ' ');\n }", "title": "" }, { "docid": "003aa49bc2ebb9ecc28b47d7ea0c9dd9", "score": "0.49701402", "text": "private static void outputneighborhoodsignal(double[][] tallyoverlaplabel, double[] tallylabel, double[] dsumoverlaplabel, double dsumlabel, String szoutfile,\n\t\t\t\t\t\t int nspacing, int numright, int numleft, Color theColor, String szstateorder,String sztitle,String szmarknames,\n\t\t\t\t\t\t String szlabelmapping, char chorder, boolean bprintimage) throws IOException\n {\n NumberFormat nf5 = NumberFormat.getInstance();\n nf5.setMaximumFractionDigits(5);\n\tnf5.setGroupingUsed(false);\n\tnf5.setMinimumFractionDigits(5);\n \t \n\tHashMap hmlabelExtend = makeLabelMapping(szlabelmapping);\n\n\tString[] collabels = new String[tallyoverlaplabel.length];\n\tSystem.out.println(\"Writing to file \"+szoutfile+\".txt\");\n\tPrintWriter pw = new PrintWriter(new FileWriter(szoutfile+\".txt\"));\n\n\t//prints out the column labels\n\t//and stores them in collabels for the heatmap\n\tint ninterval = 0;\n\tpw.print(\"State (\"+szstateorder+\" order)\");\n\tfor(int npos = -nspacing*numleft; npos <= nspacing*numright; npos+=nspacing)\n {\n\t pw.print(\"\\t\"+npos);\n\t collabels[ninterval] = \"\"+npos;\n\t ninterval++;\n\t}\n\tpw.println();\n\n\t//each row in the heatmap corresponds to a state and each column a position in tallyoverlaplabel\n\tdouble[][] heatmapfold = new double[tallyoverlaplabel[0].length][tallyoverlaplabel.length];\n\tint numelim = 0;\n\n\t//computes the fold enrichment for each non-empty state and outputs\n\t//the fold enrichment\n\tfor (int nstate = 0; nstate < tallyoverlaplabel[0].length; nstate++)\n\t{\n\t if (tallylabel[nstate] > 0)\n\t {\n\t\t//state actually occurs\n\t\tpw.print((nstate+1));\n\t\tString szsuffix;\n\t\tif ((szsuffix = (String) hmlabelExtend.get(\"\"+chorder+(nstate+1)))!=null)\n\t\t{\n\t\t pw.print(\"_\"+szsuffix);\n\t\t}\n\n\t\tfor (int nfile = 0; nfile < tallyoverlaplabel.length; nfile++)\n\t {\n\t\t //the numerator is the fraction of the signal at this relative anchor assigned to this state\n\t\t //the denominator is the fraction of the genome assigned to this state\n\t double dfold = (tallyoverlaplabel[nfile][nstate]/dsumoverlaplabel[nfile])/\n\t (tallylabel[nstate]/dsumlabel);\n\t\t heatmapfold[nstate][nfile] = dfold;\n\t\t pw.print(\"\\t\"+nf5.format(dfold));\n\t\t}\n\t\tpw.println();\n\t }\n\t else\n\t {\n\t\t//we are elminating this state when generating the heatmap since it was not found\n\t\tnumelim++;\n\t }\n\t}\n\tpw.close();\n\n\tStringTokenizer stheader = new StringTokenizer(szmarknames,\"\\t\");\n\tString[] rowlabels;// = new String[tallyoverlaplabel[0].length];\n\tif (numelim > 0)\n\t{\n\t //we need to collapse the heatmap\n\t double[][] heatmapreduce = new double[heatmapfold.length-numelim][heatmapfold[0].length];\n\t rowlabels = new String[heatmapreduce.length];\n\t int nkeepindex = 0;\n\t for (int nstate = 0; nstate < tallyoverlaplabel[0].length; nstate++)\n\t {\n if (tallylabel[nstate] > 0)\n\t {\n\t\t //keeping this index\n\t\t for (int ncol = 0; ncol < heatmapfold[nstate].length; ncol++)\n\t\t {\n\t\t //copying over the contents\n\t\t heatmapreduce[nkeepindex][ncol] = heatmapfold[nstate][ncol];\n\t\t }\n\t\t rowlabels[nkeepindex] = stheader.nextToken().trim();//\"\"+(nstate+1);\n\t\t nkeepindex++;\n\t }\n\t else //added in 1.23\n\t {\n\t stheader.nextToken();\n\t }\n\t }\n\t heatmapfold = heatmapreduce;\n\t}\n\telse\n\t{\n\t rowlabels = new String[tallyoverlaplabel[0].length];\n\t for (int ni = 0; ni < rowlabels.length; ni++)\n\t {\n\t\trowlabels[ni] = \"\"+stheader.nextToken().trim();\n\t }\n\t}\n\n\n for (int ni = 0; ni < rowlabels.length; ni++)\n\t{\n\t String szsuffix;\n\t if ((szsuffix = (String) hmlabelExtend.get(\"\"+chorder+rowlabels[ni]))!=null)\n {\n\t rowlabels[ni] = rowlabels[ni]+\"_\"+szsuffix;\n }\n }\n\n\tif (bprintimage)\n\t{\n\t makeEnrichmentHeatMap(heatmapfold, collabels, rowlabels,szoutfile,theColor,sztitle,\"Position\",\"State (\"+szstateorder+\" order)\");\n\t}\n }", "title": "" }, { "docid": "3092e5a13adb2adab9b4d03873114513", "score": "0.4961209", "text": "public void renderImage()\n {\n for (int i = 0; i < _imageWriter.getNx(); i++)\n {\n for (int j = 0; j < _imageWriter.getNy(); j++)\n {\n Ray ray;\n ray = new Ray(_scene.getCamera().constructRayThroughPixel(_imageWriter.getNx(), _imageWriter.getNy(),j,i,\n _scene.getScreenDistance(), _imageWriter.getWidth(),_imageWriter.getHeight()));\n\n if(i==255 && j==255)\n System.out.print(\"111\");\n Map<Geometry, List<Point3D>> intersectionPoints = new HashMap<>(getSceneRayIntersections(ray));\n\n if(intersectionPoints.isEmpty())\n _imageWriter.writePixel(j, i, _scene.getBackground());\n else\n {\n Map<Geometry, Point3D> closestPoint = getClosestPoint(intersectionPoints);\n Map.Entry<Geometry,Point3D> entry;\n Iterator<Entry<Geometry, Point3D>> it = closestPoint.entrySet().iterator();\n entry = it.next();\n _imageWriter.writePixel(j, i, calcColor(entry.getKey(), entry.getValue(), ray));\n }\n\n }\n }\n //printGrid(1);\n\n }", "title": "" }, { "docid": "169f8c35d8ff250202f8a84a8b70242b", "score": "0.49345955", "text": "public void printImage() {\n\t System.out.print(\"\\n\");\n for (int i=0; i<width*height; i++) {\n if (i % width==0) System.out.print(\"\\n\");\n System.out.print(image[i]+ \" \");\n }\n System.out.print(\"\\n\\n\");\n }", "title": "" }, { "docid": "108f62659d7ae04be8af6118d8b20047", "score": "0.4896184", "text": "public void writeToImage() {\r\n\t\t_imageWriter.writeToImage();\r\n\t}", "title": "" }, { "docid": "6389675efb2d00cce087ce6a64000d30", "score": "0.48715487", "text": "public void writeToImage() {\n imageWriter.writeToImage();\n }", "title": "" }, { "docid": "430b1ee60d3b1a747b1014f7a03b36ce", "score": "0.4866646", "text": "private static void outputneighborhood(double[][] tallyoverlaplabel, double[] tallylabel, double[] dsumoverlaplabel, String szoutfile,\n\t\t\t\t\t int nspacing, int numright, int numleft, Color theColor, String szstateorder,String sztitle,\n int noffset, String szlabelmapping, char chorder, boolean bprintimage, \n boolean bstringlabels, HashMap hmIndexToLabel) throws IOException\n {\n NumberFormat nf5 = NumberFormat.getInstance();\n nf5.setMaximumFractionDigits(5);\n\tnf5.setGroupingUsed(false);\n\tnf5.setMinimumFractionDigits(5);\n \t \n\tHashMap hmlabelExtend = makeLabelMapping(szlabelmapping);\n\n\t//computes the total sum of signal each position, but summing over the \n\t//signal at each state at that position\n for (int npos = 0; npos < tallyoverlaplabel.length; npos++)\n {\n for (int nindex = 0; nindex < tallyoverlaplabel[npos].length; nindex++)\n {\n dsumoverlaplabel[npos] += tallyoverlaplabel[npos][nindex];\n }\n } \n\n\tdouble dsumlabel = 0;\n\tfor (int ni = 0; ni < tallylabel.length; ni++)\n {\n\t dsumlabel += tallylabel[ni];\n\t}\n\n\tString[] collabels = new String[tallyoverlaplabel.length];\n\tSystem.out.println(\"Writing to file \"+szoutfile+\".txt\");\n\tPrintWriter pw = new PrintWriter(new FileWriter(szoutfile+\".txt\"));\n\n\t//prints out the column labels\n\t//and stores them in collabels for the heatmap\n\tint ninterval = 0;\n\tpw.print(\"State (\"+szstateorder+\" order)\");\n\tfor(int npos = -nspacing*numleft; npos <= nspacing*numright; npos+=nspacing)\n {\n\t pw.print(\"\\t\"+npos);\n\t collabels[ninterval] = \"\"+npos;\n\t ninterval++;\n\t}\n\tpw.println();\n\n\t//each row in the heatmap corresponds to a state and each column a position in tallyoverlaplabel\n\tdouble[][] heatmapfold = new double[tallyoverlaplabel[0].length][tallyoverlaplabel.length];\n\tint numelim = 0;\n\n\t//computes the fold enrichment for each non-empty state and outputs\n\t//the fold enrichment\n\tfor (int nstate = 0; nstate < tallyoverlaplabel[0].length; nstate++)\n\t{\n\t if (tallylabel[nstate] > 0)\n\t {\n\t\tif (bstringlabels)\n\t\t{\n\t pw.print(hmIndexToLabel.get(\"\"+nstate));\n\t\t}\n\t\telse\n\t\t{\n\t\t //state actually occurs\n\t\t pw.print((nstate+noffset));\n String szsuffix;\n if ((szsuffix = (String) hmlabelExtend.get(\"\"+chorder+(nstate+noffset)))!=null)\n\t\t {\n\t \t pw.print(\"_\"+szsuffix);\n\t }\n\t\t}\n\n\t\tfor (int nfile = 0; nfile < tallyoverlaplabel.length; nfile++)\n\t {\n\t\t //the numerator is the fraction of the signal at this relative anchor assigned to this state\n\t\t //the denominator is the fraction of the genome assigned to this state\n\t double dfold = (tallyoverlaplabel[nfile][nstate]/dsumoverlaplabel[nfile])/\n\t (tallylabel[nstate]/dsumlabel);\n\t\t heatmapfold[nstate][nfile] = dfold;\n\t\t pw.print(\"\\t\"+nf5.format(dfold));\n\t\t}\n\t\tpw.println();\n\t }\n\t else\n\t {\n\t\t//we are elminating this state when generating the heatmap since it was not found\n\t\tnumelim++;\n\t }\n\t}\n\tpw.close();\n\n\n\tString[] rowlabels;// = new String[tallyoverlaplabel[0].length];\n\tif (numelim > 0)\n\t{\n\t //we need to collapse the heatmap\n\t double[][] heatmapreduce = new double[heatmapfold.length-numelim][heatmapfold[0].length];\n\t rowlabels = new String[heatmapreduce.length];\n\t int nkeepindex = 0;\n\t for (int nstate = 0; nstate < tallyoverlaplabel[0].length; nstate++)\n\t {\n if (tallylabel[nstate] > 0)\n\t {\n\t\t //keeping this index\n\t\t for (int ncol = 0; ncol < heatmapfold[nstate].length; ncol++)\n\t\t {\n\t\t //copying over the contents\n\t\t heatmapreduce[nkeepindex][ncol] = heatmapfold[nstate][ncol];\n\t\t }\n\n if (bstringlabels)\n\t\t {\n\t\t rowlabels[nkeepindex] = (String) hmIndexToLabel.get(\"\"+nstate);\n\t\t }\n\t\t else\n\t\t {\n\t\t rowlabels[nkeepindex] = \"\"+(nstate+noffset);\n\t\t }\n\t\t nkeepindex++;\n\t }\n\t }\n\t heatmapfold = heatmapreduce;\n\t}\n\telse\n\t{\n\t rowlabels = new String[tallyoverlaplabel[0].length];\n\t if (bstringlabels)\n\t {\n\t for (int ni = 0; ni < rowlabels.length; ni++)\n\t {\n\t rowlabels[ni] = (String) hmIndexToLabel.get(\"\"+ni);\n\t }\n\t }\n\t else\n\t {\n\t for (int ni = 0; ni < rowlabels.length; ni++)\n\t {\n\t rowlabels[ni] = \"\"+(ni+noffset);\n\t }\n\t }\n\t}\n\n\tif (!bstringlabels)\n\t{\n for (int ni = 0; ni < rowlabels.length; ni++)\n\t {\n \t String szsuffix;\n\t if ((szsuffix = (String) hmlabelExtend.get(chorder+rowlabels[ni]))!=null)\n\t {\n\t rowlabels[ni] = rowlabels[ni]+\"_\"+szsuffix;\n\t }\n\t }\n }\n\n\tif (bprintimage)\n\t{\n\t makeEnrichmentHeatMap(heatmapfold, collabels, rowlabels,szoutfile,theColor,sztitle,\"Position\",\"State (\"+szstateorder+\" order)\");\n\t}\n }", "title": "" }, { "docid": "ced0830c69898c3da9c63d4473d30ead", "score": "0.48405927", "text": "private void printAvailableShips(ArrayList<Ship> availableShips) {\n\t\tint index = 1;\n\t\tfor (Ship ship: availableShips) {\n\t\t\tSystem.out.println(\"(\" + index + \")\" + ship);\n\t\t\tindex++;\n\t\t}\n\t}", "title": "" }, { "docid": "139c4cc6b6e1678366f4e1beb258e71d", "score": "0.474317", "text": "public void dumpBag() {\n while (tileBag.size() > 0) {\n System.out.print(tileBag.remove(0) + \" - \");\n }\n }", "title": "" }, { "docid": "1868a9dbe5acccd4dc1f7542a1693712", "score": "0.47415474", "text": "public void saveComputerShipsMap(PrintWriter out) {\r\n\t\tfor (Map.Entry<String, ArrayList<String>> entry : Computer.shipsMap.entrySet()) {\r\n\t\t\tout.print(entry.getKey());\r\n\t\t\tfor(String it : entry.getValue()) {\r\n\t\t\t\tout.print(\" \"+it);\r\n\t\t\t}\r\n\t\t\tout.println(\"\");\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "3b83520972e2edfec3c9324f581cefd2", "score": "0.4734196", "text": "private static void print(int[][] image) {\n for(int i = 0; i < image.length; i++) {\n for(int j = 0; j < image[0].length; j++) {\n System.out.print(image[i][j] + \" \");\n }\n System.out.println(\"\\n\");\n }\n }", "title": "" }, { "docid": "e8de4e69ac8b07c8242684c346375697", "score": "0.4733315", "text": "public void dumpProcessors(PrintWriter output, int pad, String title) {\n UtteranceProcessor[] processors;\n if (utteranceProcessors == null) {\n return;\n }\n\n processors = new UtteranceProcessor[utteranceProcessors.size()];\n processors = (UtteranceProcessor[])\n utteranceProcessors.toArray(processors);\n \n\tUtilities.dump(output, pad, title);\n for (int i = 0; i < processors.length; i++) {\n\t Utilities.dump(output, pad + 4, processors[i].toString());\n }\n }", "title": "" }, { "docid": "9b6c784ace2e3d3931c5858affa7689a", "score": "0.4732336", "text": "private void displayEntity(ArrayList<Entity> entities){\n for(Entity entity : entities)\n entity.printImage();\n }", "title": "" }, { "docid": "1fad8df42b71cb65947698e5ecd2d123", "score": "0.471835", "text": "public void renderOutputImageManager()\n {\n if(input != null)\n {\n if(toRerender)\n {\n background(background);\n mosaic.newCanvas();\n mosaic.setPreviewCanvas();\n mosaic.drawImage();\n renderPreview();\n renderHover();\n image(infoGraphics,10,270);\n toRerender = false;\n }\n }\n else\n {\n background(background);\n image(infoGraphics,40,270);\n }\n }", "title": "" }, { "docid": "bfa1017ad4a520160e8ebdfdac21d66a", "score": "0.4705389", "text": "private static void outputenrichment(String szoutfile,String[] files,double[][] tallyoverlaplabel, \n double[] tallylabel, double[] dsumoverlaplabel,Color theColor,\n boolean bcolscaleheat,String szstateorder,String sztitle, int noffset,\n String szlabelmapping,char chorder, boolean bprintimage,\n boolean bstringlabels, HashMap hmIndexToLabel) throws IOException\n {\n\n\tHashMap hmlabelExtend = makeLabelMapping(szlabelmapping);\n\n\tdouble dsumlabel = 0;\n\tfor (int ni = 0; ni < tallylabel.length; ni++)\n {\n\t dsumlabel += tallylabel[ni];\n\t}\n\n NumberFormat nf5 = NumberFormat.getInstance();\n nf5.setMaximumFractionDigits(5);\n\tnf5.setGroupingUsed(false);\n\tnf5.setMinimumFractionDigits(5);\n\n NumberFormat nf10 = NumberFormat.getInstance();\n nf10.setMaximumFractionDigits(10);\n\tnf10.setGroupingUsed(false);\n\tnf10.setMinimumFractionDigits(10);\n\n\tSystem.out.println(\"Writing to file \"+szoutfile+\".txt\");\n\tPrintWriter pw = new PrintWriter(new FileWriter(szoutfile+\".txt\"));\n\n\tpw.print(\"State (\"+szstateorder+\" order)\\tGenome %\");\n\tfor (int nfile = 0; nfile < files.length; nfile++)\n\t{\n\t pw.print(\"\\t\"+files[nfile]);\n\t}\n\tpw.println();\n\n\n\tdouble[][] heatmapfold;\n\n\n\tif (bcolscaleheat)\n\t{\n\t heatmapfold = new double[tallyoverlaplabel[0].length][tallyoverlaplabel.length+1];\n\t}\n\telse\n\t{\n\t heatmapfold = new double[tallyoverlaplabel[0].length][tallyoverlaplabel.length];\n\t}\n\n\tint numelim = 0;\n\n\tfor (int nstate = 0; nstate < tallyoverlaplabel[0].length; nstate++)\n\t{\n\t if (tallylabel[nstate] > 0)\n\t {\n\t\tif (bstringlabels)\n\t\t{\n\t\t pw.print(hmIndexToLabel.get(\"\"+nstate));\n\t\t}\n\t\telse\n\t\t{\n\t\t pw.print(nstate+noffset);\n String szsuffix;\n\n if ((szsuffix = (String) hmlabelExtend.get(\"\"+chorder+(nstate+noffset)))!=null)\n\t\t {\n\t \t pw.print(\"_\"+szsuffix);\n\t }\n\t\t}\n\n\t\tif (bcolscaleheat)\n\t\t{\n\t\t //only include genome % if scaling by column\n\t\t heatmapfold[nstate][0] =100*(tallylabel[nstate]/dsumlabel); //first column is heatmap\n\t\t pw.print(\"\\t\"+nf5.format(heatmapfold[nstate][0]));\n\t\t}\n\t\tfor (int nfile = 0; nfile < tallyoverlaplabel.length; nfile++)\n\t {\n\t\t //numerator is fraction of total of category in state while denominator is total fraction state is\n\t double dfold = (tallyoverlaplabel[nfile][nstate]/dsumoverlaplabel[nfile])/\n\t (tallylabel[nstate]/dsumlabel);\n\t\t if (bcolscaleheat)\n\t\t {\n\t\t heatmapfold[nstate][nfile+1] = dfold;\n\t\t }\n\t\t else\n\t\t {\n\t\t heatmapfold[nstate][nfile] = dfold;\n\t\t }\n\t\t pw.print(\"\\t\"+nf5.format(dfold));\n\t\t}\n\t\tpw.println();\n\t }\n\t else\n\t {\n\t\tnumelim++;\n\t }\n\t}\n\tpw.print(\"Base\\t100\");\n for (int nfile = 0; nfile < tallyoverlaplabel.length; nfile++)\n\t{\n\t pw.print(\"\\t\"+nf10.format(100*(dsumoverlaplabel[nfile]/dsumlabel)));\n\t}\n\tpw.println();\n\tpw.close();\n\n\tString[] rowlabels;// = new String[tallyoverlaplabel[0].length];\n\tif (numelim > 0)\n\t{\n\t double[][] heatmapreduce = new double[heatmapfold.length-numelim][heatmapfold[0].length];\n\t rowlabels = new String[heatmapreduce.length];\n\t int nkeepindex = 0;\n\t for (int nstate = 0; nstate < tallyoverlaplabel[0].length; nstate++)\n\t {\n if (tallylabel[nstate] > 0)\n\t {\n\t\t for (int ncol = 0; ncol < heatmapfold[nstate].length; ncol++)\n\t\t {\n\t\t heatmapreduce[nkeepindex][ncol] = heatmapfold[nstate][ncol];\n\t\t }\n\n\t\t if (bstringlabels)\n\t\t {\n\t\t rowlabels[nkeepindex] = (String) hmIndexToLabel.get(\"\"+nstate);\n\t\t }\n\t\t else\n\t\t {\n\t\t rowlabels[nkeepindex] = \"\"+(nstate+noffset);\n\t\t }\n\t\t nkeepindex++;\n\t }\n\t }\n\t heatmapfold = heatmapreduce;\n\t}\n\telse\n\t{\n\t rowlabels = new String[tallyoverlaplabel[0].length];\n\t if (bstringlabels)\n\t {\n\t for (int ni = 0; ni < rowlabels.length; ni++)\n\t {\n\t rowlabels[ni] = (String) hmIndexToLabel.get(\"\"+ni);\n\t }\n\t }\n\t else\n\t {\n\t for (int ni = 0; ni < rowlabels.length; ni++)\n\t {\n\t\t rowlabels[ni] = \"\"+(ni+noffset);\n\t }\n\t }\n\t}\n\n\n\tif (!bstringlabels)\n\t{\n\t for (int ni = 0; ni < rowlabels.length; ni++)\n\t {\n\t String szsuffix;\n\t if ((szsuffix = (String) hmlabelExtend.get(\"\"+chorder+rowlabels[ni]))!=null)\n {\n \t rowlabels[ni] = rowlabels[ni]+\"_\"+szsuffix;\n\t }\n\t }\n\t}\n\n\tif (bcolscaleheat)\n\t{\n\t for (int nfile = 0; nfile < heatmapfold[0].length; nfile++)\n\t {\t \n\t double dmaxval = Double.NEGATIVE_INFINITY;\n\t double dminval = Double.POSITIVE_INFINITY;\n\n\t for (int nstate = 0; nstate < heatmapfold.length; nstate++)\n\t {\n\t if (heatmapfold[nstate][nfile] > dmaxval)\n\t\t {\n\t\t dmaxval = heatmapfold[nstate][nfile];\n\t\t }\n\n\t if (heatmapfold[nstate][nfile] < dminval)\n\t\t {\n\t\t dminval = heatmapfold[nstate][nfile];\n\t\t }\n\t }\n\t\n\t for (int nstate = 0; nstate < heatmapfold.length; nstate++)\n\t {\n\t\t heatmapfold[nstate][nfile] =(heatmapfold[nstate][nfile]-dminval)/dmaxval;\n\t }\n\t }\n\t}\n\n\tString[] collabels = new String[heatmapfold[0].length];\n\tif (bcolscaleheat)\n\t{\n\t collabels[0] = \"Genome %\";\n\t}\n\n\tfor (int ni = 0; ni < files.length; ni++)\n\t{\n\t int nfirstindex = files[ni].indexOf('.');\n\t if (nfirstindex == -1)\n\t {\n\t if (bcolscaleheat)\n\t {\n\t collabels[ni+1] = files[ni];\n\t }\n\t else\n\t {\n\t collabels[ni] = files[ni];\n\t }\n\t }\n\t else\n\t {\n\t String szsub = files[ni].substring(0,nfirstindex);\n\n\t if (bcolscaleheat)\n\t {\n\t collabels[ni+1] = szsub;\n\t }\n\t else\n\t {\n\t collabels[ni] = szsub;\n\t }\n\t }\n\t}\n\n\n\tif (bprintimage)\n\t{\n\t makeEnrichmentHeatMap(heatmapfold, collabels, rowlabels,szoutfile,theColor,sztitle,\n\t\t\t\t \"Category\",\"State (\"+szstateorder+\" order)\");\n\t}\n }", "title": "" }, { "docid": "c7ea5df7e83d3c8d2a8205fda2053d39", "score": "0.4678501", "text": "public void printMap(){\n\n for (Tile [] tile_row : this.layout)\n {\n for (Tile tile : tile_row)\n {\n if (tile.isShelf()){\n System.out.print(\" R \");\n }\n else if (tile.isDP()){\n System.out.print(\" D \");\n }\n\n else {\n System.out.print(\" * \");\n }\n\n }\n System.out.println();\n }\n\n }", "title": "" }, { "docid": "e1f5fc9296a5c848b12f848329e10adf", "score": "0.46762696", "text": "private void printMatch(){\n nameHomelbl.setText(match.getHomeTeam().getName());\n cittaHomelbl.setText(match.getHomeTeam().getCity());\n nameGuestlbl.setText(match.getGuestTeam().getName());\n cittaGuestlbl.setText(match.getGuestTeam().getCity());\n if(match.getPlayed()) {\n pointsHometxt.setText(String.valueOf(match.getPointsHome()));\n pointsGuesttxt.setText(String.valueOf(match.getPointsGuest()));\n } else {\n pointsHometxt.setText(\"-\");\n pointsGuesttxt.setText(\"-\");\n }\n \n try{\n logoGuestlbl.setIcon(new ImageIcon(ImageIO.read(new File(match.getGuestTeam().getLogo())).getScaledInstance(200, 200, Image.SCALE_SMOOTH)));\n logoHomelbl.setIcon(new ImageIcon(ImageIO.read(new File(match.getHomeTeam().getLogo())).getScaledInstance(200, 200, Image.SCALE_SMOOTH)));\n \n } catch (IOException ex){\n System.out.println(\"immagine non esistente\");\n JOptionPane.showMessageDialog(null, \"immagine non esistente\");\n }\n }", "title": "" }, { "docid": "3c6114e5a8020eb2ef2028c642040404", "score": "0.46711206", "text": "public void saveComputerSunkenShips(PrintWriter out) {\r\n\t\tfor(int i = 0; i < Computer.sunkenShips.size(); i++) {\r\n\t\t\tout.print(\" \"+Computer.sunkenShips.get(i));\r\n\t\t}\r\n\t\t\r\n\t\tout.println(\"\");\r\n\t}", "title": "" }, { "docid": "e403bf379ed2b111cb7f58d6a1cce99e", "score": "0.46693555", "text": "public void write(List<List<String>> imageLinesList) throws IOException {\n\t\ttry (var doc = new Document(new PdfDocument(new PdfWriter(RESULT_PDF_NAME)))) {\n\t\t\tdoc.setMargins(MARGIN, MARGIN, MARGIN, MARGIN);\n\t\t\tdoc.setFont(PdfFontFactory.createFont(FONT_TYPE));\n\t\t\tdoc.setFontSize(FONT_SIZE);\n\t\t\tfor (var imageTextList : imageLinesList) {\n\t\t\t\tfor (var text : imageTextList) {\n\t\t\t\t\tdoc.add(new Paragraph(text));\n\t\t\t\t}\n\t\t\t\tif (imageLinesList.indexOf(imageTextList) < imageLinesList.size() - 1) {\n\t\t\t\t\tdoc.add(new AreaBreak());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "270a040ea1668911c86461d57e00fe9c", "score": "0.46580425", "text": "public void debugPrint() {\n System.out.println(\"### Image Handler ###\");\n System.out.println(\"Handling: \" + images.size());\n }", "title": "" }, { "docid": "bef037e4f897958de7b63af62c7af9de", "score": "0.46451104", "text": "private void drawImages() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b04b9e7caf95d19a71feb83864fe65c5", "score": "0.464072", "text": "public void printMap(Map<String, Integer> printMap, String[] outputLabels, int printNum){\n\t\tIterator mapIterator = printMap.entrySet().iterator();\n\t\tint j = 1;\n\t\tList<String> keys = new ArrayList<String>();\n\t\tList<Integer> values = new ArrayList<Integer>();\n\t\tString[] chartLabels = this.getChartLabels(outputLabels);\n\t\twhile(mapIterator.hasNext()){\n Map.Entry pair = (Map.Entry)mapIterator.next();\n if (j > printMap.size() - printNum){\n \tSystem.out.println(pair.getKey() + \": \" + (int)pair.getValue() + \" routes\");\n \tkeys.add((String) pair.getKey());\n \tvalues.add((Integer) pair.getValue());\n }\n if (!mapIterator.hasNext()){\n \tString message = outputLabels[0] + \": \" + (int)pair.getValue() + \"\\n\"\n \t\t\t+ outputLabels[1] + \": \" + pair.getKey();\n \tJOptionPane.showMessageDialog(null, message);\n \tSystem.out.println(outputLabels[0] + \": \" + (int)pair.getValue());\n System.out.println(outputLabels[1] + \": \" + pair.getKey());\n }\n j++;\n }\n\t\tSystem.out.println();\n\t\tfinal ChartUtils demo = new ChartUtils(\"Bar Chart\", keys, values, chartLabels);\n demo.pack();\n RefineryUtilities.centerFrameOnScreen(demo);\n demo.setVisible(true);\n\t}", "title": "" }, { "docid": "2f3aa5fba6cff55f4d4e1f967b2c24a4", "score": "0.46303186", "text": "public void showAllLandmarks(){\n ((Pane) mapImage.getParent()).getChildren().removeIf(x->x instanceof Circle || x instanceof Text || x instanceof Line);\n for(int i = 0; i<landmarkList.size(); i++){\n if(landmarkList.get(i).data.type == \"Landmark\")\n drawLandmarks(landmarkList.get(i));\n }\n }", "title": "" }, { "docid": "ca86e6d502640324c6365efa80dfebd8", "score": "0.46301728", "text": "Image[][] getImagesToDisplayInCells(boolean showBarriers);", "title": "" }, { "docid": "83500c07030d5dbf7874a8d90d4839ca", "score": "0.46281868", "text": "public void printPhotos() {\n\t\t//System.out.println(\"Loading photos: \" + AccessibleUsersList.masterUserList.userLoggedIn.selectedAlbum.getAlbum());\n\t\t\n\t\tif(AccessibleUsersList.masterUserList.getUsers() != null) {\n\t\t\t//System.out.println(listOfPhotos);\n\t\t\tlistOfPhotos.clear();\n\t\t\tlistOfPhotos = FXCollections.observableArrayList();\n\t\t\tPhotoListDisplay.setItems(listOfPhotos);\n\t\t\t\n\t\t\tfor(Photo phot: AccessibleUsersList.masterUserList.userLoggedIn.selectedAlbum.getAlbum()) {\n\t\t\t\t//System.out.println(\"displaying photo\");\n\t\t\t\tString path = phot.getPathToPhoto(); \n\t\t\t\t//Pass to FileInputStream \n\t\t\t\tFileInputStream inputstream = null;\n\t\t\t\ttry {\n\t\t\t\t\tinputstream = new FileInputStream(path);\n\t\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} \n\t\t\t\t//Instantiate an Image object \n\t\t\t\tImage image1 = new Image(inputstream);\n\t\t\t\t\n\t\t\t\t//Image image1 = photo.photo;\n\t\t\t\tImageView pic = new ImageView();\n\t\t\t\tpic.setFitWidth(340);\n\t\t\t\tpic.setFitHeight(180);\n\t\t\t\tpic.setImage(image1);\n\t\t\t\tlistOfPhotos.add(pic);\n\t\t\t\tphot.setImage(pic);\n\t\t\t\t//System.out.println(\"after adding: \" + listOfPhotos);\n\t\t\t}\n\t\t\t\n\t\t\t//System.out.println(\"after if stmt: \" + listOfPhotos);\n\t\t\tPhotoListDisplay.setItems(listOfPhotos);\n\t\t\t\n\t\t\t//System.out.println(\"after setitems: \" + listOfPhotos);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tserializeUsers(AccessibleUsersList.masterUserList);\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//System.out.println(listOfPhotos);\n\t}", "title": "" }, { "docid": "b7c7c9b25c918b2bc88cdeb2e76ef20d", "score": "0.4602657", "text": "private void drawArray(ArrayList<NormalFishCollect> images, GraphicsContext gc) {\n\t\tgc.save();\n\t\tfor (int i = 0; i < images.size(); i++) {\n\t\t\tgc.drawImage(images.get(i).img, images.get(i).x, images.get(i).y);\n\n\t\t}\n\t\tgc.restore();\n\n\t}", "title": "" }, { "docid": "b37d68f563a6d2867be18794d5a0dba4", "score": "0.4600684", "text": "public void dump(PrintWriter output, int pad, String title) {\n\tUtilities.dump(output, pad, title);\n\tfeatures.dump(output, pad + 4, title + \" Features\");\n\tdumpProcessors(output, pad + 4, title + \" Processors\");\n }", "title": "" }, { "docid": "21910278467226f9633449091988d3c6", "score": "0.45867825", "text": "public void updatePrintFigures() {\n\n\t}", "title": "" }, { "docid": "e6dfc7a79100e7b1e86103b16e1241b4", "score": "0.4573082", "text": "public static void listImageIOServices() {\n\t\tIIORegistry registry = IIORegistry.getDefaultInstance();\n\t\tlogger.info(\"ImageIO services:\");\n\t\tIterator<Class<?>> cats = registry.getCategories();\n\t\twhile (cats.hasNext()) {\n\t\t\tClass<?> cat = cats.next();\n\t\t\tlogger.info(\"ImageIO category = \" + cat);\n\n\t\t\tIterator<?> providers = registry.getServiceProviders(cat, true);\n\t\t\twhile (providers.hasNext()) {\n\t\t\t\tObject o = providers.next();\n\t\t\t\tlogger.debug(\"ImageIO provider of type \" + o.getClass().getCanonicalName() + \" in \"\n\t\t\t\t\t\t+ o.getClass().getClassLoader());\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "790edaec74ee6c94caa9b1662ef7de06", "score": "0.45679086", "text": "private void export() {\n print(\"Outputting Instructions to file ... \");\n\n // Generate instructions right now\n List<Instruction> instructions = new ArrayList<Instruction>();\n convertToInstructions(instructions, shape);\n\n // Verify Instructions\n if (instructions == null || instructions.size() == 0) {\n println(\"failed\\nNo instructions!\");\n return;\n }\n\n // Prepare the output file\n output = createWriter(\"output/instructions.txt\");\n \n // TODO: Write configuration information to the file\n \n\n // Write all the Instructions to the file\n for (int i = 0; i < instructions.size(); i++) {\n Instruction instruction = instructions.get(i);\n output.println(instruction.toString());\n }\n\n // Finish the file\n output.flush();\n output.close();\n\n println(\"done\");\n }", "title": "" }, { "docid": "2c3805c48b2a64d5b4eff42d5e2537d5", "score": "0.4553136", "text": "BufferedImage outputImage();", "title": "" }, { "docid": "df45bd04db5b969ed34a440803210be1", "score": "0.4550986", "text": "public void WritePredictionImages() {\r\n\r\n\t\tString str = new String();\r\n\r\n\t\tModelSimpleImage img = new ModelSimpleImage();\r\n\t\tCDVector texture = new CDVector();\r\n\t\tint n = m_pModel.Rc().NRows();\r\n\t\tfor (int i = 0; i < n; i++) {\r\n\r\n\t\t\tm_pModel.Rc().Row(n - i - 1, texture); // take largest first\r\n\t\t\timg = m_pModel.ShapeFreeImage(texture, img);\r\n\t\t\t// str.format(\"Rc_image%02i.bmp\", i );\r\n\t\t\tstr = \"Rc_image\" + i + \".xml\";\r\n\t\t\tModelImage image = new ModelImage(img, str);\r\n\t\t\timage.saveImage(\"\", str, FileUtility.XML, false);\r\n\t\t}\r\n\t\tn = m_pModel.Rt().NRows();\r\n\t\tfor (int i = 0; i < n; i++) {\r\n\r\n\t\t\tm_pModel.Rt().Row(i, texture);\r\n\t\t\timg = m_pModel.ShapeFreeImage(texture, img);\r\n\t\t\t// str.format(\"Rt_image%02i.bmp\", i );\r\n\t\t\tstr = \"Rt_image\" + i + \".xml\";\r\n\t\t\tModelImage image = new ModelImage(img, str);\r\n\t\t\timage.saveImage(\"\", str, FileUtility.XML, false);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "40c73f004f751dd3b8096e871e6002a1", "score": "0.45509323", "text": "public static void codeAllImages(Args args) throws FileNotFoundException, IOException{\n BufferedImage tempI=null, tempP=null;\n BufferedImage[] codeOut = null;\n FileOutputStream fos = new FileOutputStream(args.output);\n ZipOutputStream zipOS = new ZipOutputStream(fos);\n int j = 0;\n //Iterate through all the images dividing them into frameP or frameI\n for(int i= 0; i < imageNames.size(); i++){ \n //j is a counter of the gop\n if(j >= (args.gop)){\n j=0;\n }\n if(j==0){\n // Frame I\n tempI = imageDict.get(imageNames.get(i));\n imgToZip(tempI, i, zipOS, \"image_coded_\");\n }else{\n //Frame P\n codeOut = createCodedImg(tempI, imageDict.get(imageNames.get(i)), args.thresh, args.tileSize, args.seekRange, args.comparator);\n imgToZip(codeOut[0], i, zipOS, \"image_coded_\");\n tempI = codeOut[1];\n //showImage(tempP);\n }\n j++;\n }\n //Get the gop, its always the first position of the coded data\n dataList.get(0).gop = args.gop;\n //Store into a .gz file all the info of every tile of every image, info that is stored into our dataList\n try {\n FileOutputStream out = new FileOutputStream(\"codedData.gz\");\n GZIPOutputStream gos = new GZIPOutputStream(out);\n ObjectOutputStream oos = new ObjectOutputStream(gos);\n oos.writeObject(dataList);\n oos.flush();\n gos.flush();\n out.flush();\n \n oos.close();\n gos.close();\n out.close();\n } catch (Exception e) {\n System.out.println(\"Problem serializing: \" + e);\n }\n \n FileInputStream fis = new FileInputStream(\"codedData.gz\");\n ZipEntry e = new ZipEntry(\"codedData.gz\");\n zipOS.putNextEntry(e);\n\n byte[] bytes = new byte[1024];\n int length;\n while ((length = fis.read(bytes)) >= 0) {\n zipOS.write(bytes, 0, length);\n }\n zipOS.closeEntry();\n fis.close();\n zipOS.finish(); //Good practice!\n zipOS.close();\n }", "title": "" }, { "docid": "6c5ceb4b5384f1411105a1cc38959c88", "score": "0.45504132", "text": "public void saveComputerCoordinatesHit(PrintWriter out){\r\n\t\t\r\n\t\tfor (int i = 0; i < Computer.coordinatesHit.size(); i++) {\r\n\t\t\tout.print(\" \"+Computer.coordinatesHit.get(i));\r\n\t\t}\r\n\t\tout.println(\"\");\t\t\r\n\t}", "title": "" }, { "docid": "8f66cf2b0b753597c4ce5ca48d11cf76", "score": "0.4546785", "text": "public void displayStacks(ArrayList<ArrayList<PositionInBoard>> listOfStacks){\n\n for(int i = 0; i< listOfStacks.size(); i++){\n stackPanels[i].removeAll();\n ArrayList<PositionInBoard> aStack = listOfStacks.get(i);\n\n for (PositionInBoard position : aStack){\n stackPanels[i].add(new JLabel(\"\" + position));\n }\n }\n }", "title": "" }, { "docid": "213139c4b8b604330f21d76700bda90f", "score": "0.45253235", "text": "public void print ()\n\t{\n\t\tSystem.out.println(\"Polyhedron File Name: \" + FileName);\n\t\tSystem.out.println(\"Object active: \" + Boolean.toString(isActive()));\n\t\tprintCoordinates();\n\t}", "title": "" }, { "docid": "2a8bf9fd71e4358295cb19907606745a", "score": "0.45197618", "text": "public void printMap()\n {\n this.mapFrame.paint();\n this.miniMapFrame.paint();\n }", "title": "" }, { "docid": "0a4dd28f6e5fa5c0719a279d2d66ffe9", "score": "0.45180938", "text": "public void PrinterStatus(){\n PrintService[] services = PrintServiceLookup.lookupPrintServices(null, null);\n System.out.println(\"Printer Services found:\");\n printService(services);\n\n // Look up the default print service\n PrintService service = PrintServiceLookup.lookupDefaultPrintService();\n if (service!=null) {\n System.out.println(\"Default Printer Service found:\");\n System.out.println(\"t\" + service);\n }\n\n\t\n // find printer service by name\n AttributeSet aset_name = new HashAttributeSet();\n aset_name.add(new PrinterName(\"Microsoft XPS Document Writer\", null));\n services = PrintServiceLookup.lookupPrintServices(null, aset_name);\n\n System.out.println(\"Printer Service Microsoft XPS Document Writer:\");\n printService(services);\n \n // find printer service by ip\n PrintServiceAttributeSet aset_URI = new HashPrintServiceAttributeSet();\n try {\n aset_URI.add(new PrinterURI(new URI(\"this ipp is wrong --ipp://hostName/printerName\")));\n } catch (URISyntaxException e) {\n System.out.println(\"URI exception caught: \"+e);\n }\n services = PrintServiceLookup.lookupPrintServices(null,aset_URI); \n // null could be replaced by DocFlavor.INPUT_STREAM.POSTSCRIPT, etc...\n System.out.println(\"Printer specific URI :\");\n printService(services);\n \n /*\n //another way to print to a specific uri\n URI printerURI = null;\n try {\n printerURI = new URI(\"ipp://SERVER:631/printers/PRINTER_NAME\");\n } catch (URISyntaxException ex) {\n Logger.getLogger(PrinterStatus.class.getName()).log(Level.SEVERE, null, ex);\n }\n IppPrintService svc = new IppPrintService(printerURI);\n services = PrintServiceLookup.lookupPrintServices(null,aset_URI); \n // null could be replaced by DocFlavor.INPUT_STREAM.POSTSCRIPT, etc...\n System.out.println(\"Printer specific URI :\");\n printService(services);\n // following is the way to print sth in a format of flavor\n InputStream stream = new BufferedInputStream(new FileInputStream(\"image.epl\"));\n DocFlavor flavor = DocFlavor.INPUT_STREAM.AUTOSENSE;\n Doc myDoc = new SimpleDoc(stream, flavor, null);\n DocPrintJob job = svc.createPrintJob();\n job.print(myDoc, null);\n */\n \n /*\n // find services that support a particular input format (e.g. JPEG)\n services = PrintServiceLookup.lookupPrintServices(DocFlavor.INPUT_STREAM.JPEG, null);\n System.out.println(\"Printer Services with JPEG support:\");\n printService(services);\n\n //find services that support a set of print job capabilities (e.g. color)\n aset = new HashAttributeSet();\n aset.add(ColorSupported.SUPPORTED);\n services = PrintServiceLookup.lookupPrintServices(null, aset);\n\n System.out.println(\"Printer Services with color support:\");\n printService(services);\n */ \n }", "title": "" }, { "docid": "95d5f1717bb534aa8d0f13932cd41c0c", "score": "0.45173243", "text": "public void processAll() throws IOException {\n\t\tfor (Iterator i = imageList.iterator(); i.hasNext();) {\n\t\t\tEntry entry = (Entry) i.next();\n\n\t\t\tif (!entry.written) {\n\t\t\t\tentry.written = true;\n\n\t\t\t\tString[] encode;\n\t\t\t\tif (entry.writeAs.equals(ImageConstants.ZLIB)\n\t\t\t\t\t\t|| (entry.maskName != null)) {\n\t\t\t\t\tencode = new String[] { \"Flate\", \"ASCII85\" };\n\t\t\t\t} else if (entry.writeAs.equals(ImageConstants.JPG)) {\n\t\t\t\t\tencode = new String[] { \"DCT\", \"ASCII85\" };\n\t\t\t\t} else {\n\t\t\t\t\tencode = new String[] { null, \"ASCII85\" };\n\t\t\t\t}\n\n\t\t\t\tPDFStream img = pdf.openStream(entry.name);\n\t\t\t\timg.entry(\"Subtype\", pdf.name(\"Image\"));\n\t\t\t\tif (entry.maskName != null) {\n\t\t\t\t\timg.entry(\"SMask\", pdf.ref(entry.maskName));\n\t\t\t\t}\n\t\t\t\timg.image(entry.image, entry.bkg, encode);\n\t\t\t\tpdf.close(img);\n\n\t\t\t\tif (entry.maskName != null) {\n\t\t\t\t\tPDFStream mask = pdf.openStream(entry.maskName);\n\t\t\t\t\tmask.entry(\"Subtype\", pdf.name(\"Image\"));\n\t\t\t\t\tmask.imageMask(entry.image, encode);\n\t\t\t\t\tpdf.close(mask);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "fc1463edad50f92a62dc9dbad0b6232e", "score": "0.45131856", "text": "public void printBoard() {\n printStream.println(\n \" \" + positions.get(0) + \"| \" + positions.get(1) + \" |\" + positions.get(2) + \"\\n\" +\n \"---------\\n\" +\n \" \" + positions.get(3) + \"| \" + positions.get(4) + \" |\" + positions.get(5) + \"\\n\" +\n \"---------\\n\" +\n \" \" + positions.get(6) + \"| \" + positions.get(7) + \" |\" + positions.get(8) + \"\\n\");\n }", "title": "" }, { "docid": "03eb78d07d8e39ee129ef7d62e6512ab", "score": "0.45102945", "text": "@Override\n\tpublic String toString() {\n\t\tString tagString = \"\";\n\t\tfor (String tag : tagToImg.keySet())\n\t\t\ttagString += tag + \"\\n\";\n\n\t\treturn tagString;\n\t}", "title": "" }, { "docid": "5dc74484e6231598108c1b3713d66149", "score": "0.45006758", "text": "public void print(){\n for (int i=0; i<11; i++){\n for (int j=0; j<11; j++){\n //print 0-9s on the horizontal and vertical axis\n if (i == 0 & j==0) System.out.print(\" \");\n else if (i==0) System.out.print(\" \"+(j-1)+\" \");\n else if (j==0) System.out.print(\" \"+(i-1)+\" \");\n else{\n //print out ships and status\n Ship ship = ships[i-1][j-1];\n if(ship.isSunk()) System.out.print(\" x \");\n else if(ship.getShipType().equals(\"empty\") && ship.hit[1]) System.out.print(\" - \");\n else if(ship.getShipType().equals(\"empty\") && !ship.hit[1]) System.out.print(\" . \");\n else if(ship.isHorizontal() && ship.hit[j-1-ship.getBowColumn()]) System.out.print(\" S \");\n else if(ship.isHorizontal() && !ship.hit[j-1-ship.getBowColumn()]) System.out.print(\" . \");\n else if(!ship.isHorizontal() && ship.hit[i-1-ship.getBowRow()]) System.out.print(\" S \");\n else if(!ship.isHorizontal() && !ship.hit[i-1-ship.getBowRow()]) System.out.print(\" . \");\n }\n }\n System.out.print(\"\\n\");\n }\n }", "title": "" }, { "docid": "d22354e6ff8799054afc7e1bec4459b1", "score": "0.44852388", "text": "@Override\n\tpublic TypeName[] getOutputs()\n\t{\n\t\tthis.defaultOutputNames = new TypeName[1];\n\t\tthis.defaultOutputNames[0] = new TypeName(IMAGE, \"Adjusted Image\");\n\t\t\n\t\tif(this.outputNames == null)\n\t\t{\n\t\t\treturn this.defaultOutputNames;\n\t\t}\n\t\treturn this.outputNames;\n\t}", "title": "" }, { "docid": "60a1bd9308634f53efcb2c71bedf3329", "score": "0.44760478", "text": "public void output(List list, Writer out)\r\n throws IOException {\r\n printContentRange(list, 0, list.size(), out,\r\n 0, createNamespaceStack());\r\n out.flush();\r\n }", "title": "" }, { "docid": "111a343e703d6bcd588ec554202453af", "score": "0.4469928", "text": "@Override\n public String exportImage() throws IllegalArgumentException {\n BufferedImage img = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB);\n for (int x = 0; x < this.width; x++) {\n for (int y = 0; y < this.height; y++) {\n int r = this.pixels[x][y][0];\n int g = this.pixels[x][y][1];\n int b = this.pixels[x][y][2];\n int color = (r << 16) | (g << 8) | b;\n img.setRGB(x, y, color);\n }\n }\n return exportHelp(img);\n }", "title": "" }, { "docid": "50b98bc8f4063420f7faee77ed8436c1", "score": "0.4464282", "text": "public void saveUserShipsMap(PrintWriter out) {\r\n\t\tSystem.out.println(\"PLayer ships map \"+Player.shipsMap);\r\n\t\tfor (Map.Entry<String, ArrayList<String>> entry : Player.shipsMap.entrySet()) {\r\n\t\t\tout.print(entry.getKey());\r\n\t\t\tfor(String it : entry.getValue()) {\r\n\t\t\t\tout.print(\" \"+it);\r\n\t\t\t}\r\n\t\t\tout.println(\"\");\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "ec1cff11951768ae1709463c6af1a85f", "score": "0.44606128", "text": "public OutputImageManager(PImage img, Tile[] tiles, int tileSize, int pdfScale, float evenRowShift, float oddRowShift, int background)\n {\n this.mosaic = null;\n this.background = background;\n this.tiles = tiles;\n this.evenRowShift = evenRowShift;\n this.oddRowShift = oddRowShift;\n this.tileSize = tileSize;\n this.pdfScale = pdfScale;\n this.infoGraphics = loadImage(\"keys.png\");\n toRerender = true;\n }", "title": "" }, { "docid": "f29bbe50bae02a779070c312cd53648e", "score": "0.44563842", "text": "public void writePath(Map<Integer, Integer[]> pairs) {\n \t\tif(pairs.size() > 1) {\n \t\tGraphics gr = image.getGraphics();\n \t\tgr.setColor(Color.RED);\n \t\t\n \t\t//for(int p=locList.getFirst().hashCode()+1; p<locList.getLast().hashCode()-1; p++) {\n \t\t//\tif(pairs.containsKey(p) && pairs.containsKey(p+1)) {\n \t\t\t//Integer[] a = pairs.get(p);\n \t\t\t//Integer[] b = pairs.get(p+1);\n \t\t\ttry {\n \t\t\t//int x1 = a[0];\n \t\t\t//int y1 = a[1];\n \t\t\t//int x2 = b[0];\n \t\t\t//int y2 = b[1];\n \t\t\t\n \t\t\t//gr.drawLine(x1, y1, x2, y2);\n \t\t\t} catch (Exception e) {\n \t\t\t\te.printStackTrace();\n \t\t\t}\n \t\t//}\n \t\t\n \t\t//}\n \t\t//pairs.clear();\n \t\t//gr.dispose();\n \t\t}\n \t}", "title": "" }, { "docid": "32d8dc72fd9d4eccf098e482b481581b", "score": "0.44517422", "text": "private void updateInfoBarOnClick() {\n\t\tif (!selectedList.isEmpty()) {\n\t\t\tStringBuilder label = new StringBuilder(\"Se selecciono: \");\n\t\t\tfor (Render<? extends MovableDrawing> selectedDrawing : selectedList) {\n\t\t\t\tlabel.append(selectedDrawing.getFigure().toString()).append(\", \");\n\t\t\t}\n\t\t\tlabel.setLength(label.length() - 2);\n\t\t\tstatusPane.updateStatus(label.toString());\n\t\t} else {\n\t\t\tstatusPane.updateStatus(\"Ninguna figura encontrada\");\n\t\t}\n\t}", "title": "" }, { "docid": "abb5e60f90b992fd250fff0a01f96245", "score": "0.4447485", "text": "public static void PrintAllProperties(String output_filename, ArrayList<Apartment> apartments, ArrayList<House> houses, ArrayList<Villa> villas) {\n String output_information = \"\";\n\n String apartment_title = (\"********************************************************Apartment Information********************************************************\");\n System.out.println(apartment_title);\n for (Apartment a : apartments) {\n String apartments_information = (\"Register Number:\" + a.getRegister_number() + \" PropertyId:\"+ a.getPropertyID() +\" Owner name:\" + a.getOwner_name() + \" Address: \" + a.getPostal_address() + \" Cost/day(€):\"\n + a.getRental_cost_per_day() + \" Number of Storey:\" + a.getStorey_number() + \" Number of Beds:\"\n + a.getNumber_of_beds());\n System.out.println(apartments_information);\n output_information += apartment_title+ \"\\n\" + apartments_information + \"\\n\";\n }\n System.out.println();\n\n String house_title = (\"********************************************************House Information********************************************************\");\n System.out.println(house_title);\n for (House h : houses) {\n String houses_information = (\"Register Number:\" + h.getRegister_number() + \" PropertyId:\"+ h.getPropertyID() + \" Owner name:\" + h.getOwner_name() + \" Address: \" + h.getPostal_address() + \" Cost/day(€):\"\n + h.getRental_cost_per_day() + \" Number of Storey:\" + h.getNumber_of_storeys() + \" Clearing Fees(€):\"\n + h.getClearing_fees());\n System.out.println(houses_information);\n output_information += house_title + \"\\n\"+ houses_information + \"\\n\";\n }\n System.out.println();\n\n String villas_title = (\"***********************************************************Villa Information***********************************************************\");\n System.out.println(villas_title);\n for (Villa v : villas) {\n String villas_information = (\"Register Number:\" + v.getRegister_number() + \" PropertyId:\"+ v.getPropertyID() + \" Owner name:\" + v.getOwner_name() + \" Address: \" + v.getPostal_address() + \" Cost/day(€):\"\n + v.getRental_cost_per_day() + \" Luxury Tax/day(€):\" + v.getLuxury_tax_per_day() + \" Room Service/day(€):\"\n + v.getRoom_service_cost_per_day());\n System.out.println(villas_information);\n output_information += villas_title + \"\\n\" + villas_information + \"\\n\";\n }\n System.out.println();\n\n try{\n PrintWriter myOutFile = new PrintWriter(output_filename);\n myOutFile.write(output_information);\n myOutFile.close();\n }\n catch(Exception ex){\n System.out.println(\"exception\" +ex.getMessage()+\"caught\");\n }\n }", "title": "" }, { "docid": "08a0b92c14c789011c277052e9b6a021", "score": "0.44466197", "text": "public void print() {\r\n for (final Map.Entry<State, StatePolicyProperties> mapping : mStateMap.entrySet()) {\r\n final StatePolicyProperties properties = mapping.getValue();\r\n\r\n // Print the state\r\n mapping.getKey().print();\r\n System.out.println(\" State value = \" + properties.getValue());\r\n\r\n // Print the actions with their probability\r\n for (Map.Entry<Action, Double> actionProbability : properties.getActionProbabilities().entrySet()) {\r\n System.out.println(\" Action probability \" + actionProbability.getKey() + \" = \"\r\n + actionProbability.getValue());\r\n }\r\n // Print the actions with their value\r\n for (Map.Entry<Action, Double> actionValue : properties.getActionValues().entrySet()) {\r\n System.out.println(\" Action value \" + actionValue.getKey() + \" = \" + actionValue.getValue());\r\n }\r\n }\r\n System.out.println();\r\n }", "title": "" }, { "docid": "f3675a347d34173d38274dd2eeb26888", "score": "0.4445864", "text": "public String toString() {\n String res = \"\";\n \n for ( int[] row : img ) {\n for ( int x : row )\n res += x + \" \";\n res += \"\\n\";\n }\n return res;\n }", "title": "" }, { "docid": "33bddf423161b2d1220053bb0ba71d21", "score": "0.44439182", "text": "public void printTiles() {\n for (int i = 0; i < tiles.length; i++) {\n for (int k = 0; k < tiles[0].length; k++) {\n System.out.println(\"//\");\n System.out.println(\"ROW: \" + tiles[i][k].getRow());\n System.out.println(\"COL: \" + tiles[i][k].getColumn());\n System.out.println(\"TER: \" + tiles[i][k].getTerrain().getName());\n }\n }\n }", "title": "" }, { "docid": "1b70a8ed220bfdb2b42ddfa1cd396033", "score": "0.4439206", "text": "public void printBoard(Tile[][] gameState) {\n\t\tint boardSize = gameState.length;\n\t\tSystem.out.println(printBoardLine());\n\t\tfor (int i = 0; i < boardSize; i++) {\n\t\t\tfor (int j = 0; j < boardSize; j++) {\n\t\t\t\tSystem.out.print(\"|\");\n\t\t\t\tif (gameState[i][j].getColorValue().equals(black)) {\n\t\t\t\t\tSystem.out.print(\" b \");\n\t\t\t\t} else if (gameState[i][j].getColorValue().equals(white)) {\n\t\t\t\t\tSystem.out.print(\" w \");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"|\");\n\t\t\tSystem.out.println(printBoardLine());\n\t\t}\n\t}", "title": "" }, { "docid": "1668de95192133d53267391f5cfc848a", "score": "0.44379285", "text": "private static void printInterfaces(ClassContainer tempClass, ArrayList<String> whitelist, PrintWriter printFile) {\n\t\tfor (ArrowStorage interf : tempClass.getInterfaces()) {\n\t\t\tif (whitelist.contains(interf.getTargetType()) && interf.getTargetType().contains(\"_\")\n\t\t\t\t\t&& !interf.getTargetType().equals(tempClass.getClassName())) {\n\t\t\t\tprintFile.println(tempClass.getClassName() + \" -> \"\n\t\t\t\t\t\t+ interf.getTargetType() + \" [ \" + interf.getColor()\n\t\t\t\t\t\t+ \" \" + interf.getLabel()\n\t\t\t\t\t\t+ \"arrowhead=\\\"onormal\\\", style=\\\"dashed\\\"];\");\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "7cfc7970c0031ac1c3a0848b02a29981", "score": "0.4435823", "text": "public void printCoordinates ()\n\t{\n\t\tfor (int a = 0; a < object.size(); a++)\n\t\t{\n\t\t\tSystem.out.println(\"Polygon \" + (a+1) + \":\");\n\t\t\tobject.get(a).detailedPrint();\n\t\t\tSystem.out.println(\"**********\");\n\t\t}\n\t}", "title": "" }, { "docid": "c4d719f4a06fe23ac878ea4effe24502", "score": "0.44316983", "text": "static void showOverlay() {\n\t\ti1.setOverlay(OL);\n\t}", "title": "" }, { "docid": "2ed50e213173567554da7781d3ab38ea", "score": "0.44290924", "text": "private void extractCards() {\n String fileSeparator = System.getProperty(\"file.separator\");\n String path = System.getProperty(\"user.dir\");\n path = path + fileSeparator + \"Client\" + fileSeparator + \"src\" + fileSeparator + \"Images\" + fileSeparator;\n System.out.println(path);\n\n for (Picture p : cardlist) {\n BufferedImage image = null;\n try {\n image = javax.imageio.ImageIO.read(new ByteArrayInputStream(p.getStream()));\n File outputfile = new File(path + p.getName());\n ImageIO.write(image, \"png\", outputfile);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }", "title": "" }, { "docid": "81f25c29ae0a8a9c5cafd992c99a4398", "score": "0.44266024", "text": "public void printOut(PrintOutType type) {\n\n\t\tboolean output = false;\n\t\tString fileToPrint = \"\";\n\n\t\tswitch (type) {\n\t\tcase OVERVIEW:\n\t\t\toutput = SaveToFile.printOut(new ArrayList<ItemBox>(items), type, false);\n\t\t\tfileToPrint = \"Overview.txt\";\n\t\t\tbreak;\n\t\tcase SHOPPING:\n\t\t\tArrayList<ItemBox> temp = new ArrayList<>();\n\n\t\t\t// adds every Item which has an amount of 0 to the shopping list\n\t\t\tfor (ItemBox item : items) {\n\t\t\t\tif (item.getAmount() == 0) {\n\t\t\t\t\ttemp.add(item);\n\t\t\t\t}\n\t\t\t}\n\t\t\toutput = SaveToFile.printOut(temp, type, false);\n\t\t\tfileToPrint = \"Shopping.txt\";\n\t\t\tbreak;\n\t\t}\n\n\t\tif (output) {\n\t\t\tlog.debug(type.name() + \" Successfully Saved PrintFile\");\n\t\t\tFile file = new File(System.getProperty(\"user.home\") + \"/Desktop/\" + fileToPrint);\n\n\t\t\tif (file != null) {\n\t\t\t\tboolean printOut = Printing.printFile(file);\n\n\t\t\t\tif (printOut) {\n\t\t\t\t\tlog.debug(\"Successfully printed File\");\n\t\t\t\t\tAlert alert = Alerter.getAlert(AlertType.INFORMATION, \"Print\", null, \"Successfully printed.\");\n\t\t\t\t\talert.showAndWait();\n\t\t\t\t} else {\n\t\t\t\t\tlog.debug(\"File was saved but could not be printed\");\n\t\t\t\t\tAlert alert = Alerter.getAlert(AlertType.INFORMATION, \"Print Failed\", null,\n\t\t\t\t\t\t\t\"File saved but could not be printed.\");\n\t\t\t\t\talert.showAndWait();\n\t\t\t\t}\n\t\t\t}\n\n\t\t} else {\n\t\t\tAlert alert = Alerter.getAlert(AlertType.INFORMATION, \"Error\", null,\n\t\t\t\t\t\"File could not be saved and printed.\");\n\t\t\talert.showAndWait();\n\t\t\tlog.debug(type.name() + \"PrintFile could NOT be saved and printed\");\n\t\t}\n\t}", "title": "" }, { "docid": "3a2f9c5483c84c8faad1fbf717a55927", "score": "0.44203344", "text": "public void printRing(PrintStream outs)\n {\n Map<Range, List<EndPoint>> rangeMap = getRangeToEndpointMap();\n \n // Print range-to-endpoint mapping\n int counter = 0;\n for (Range range : rangeMap.keySet()) {\n List<EndPoint> endpoints = rangeMap.get(range);\n \n outs.print(String.format(\"%-46s \", range.left()));\n outs.print(String.format(\"%2d \", endpoints.size()));\n outs.print(String.format(\"%-15s\", endpoints.get(0).getHost()));\n \n String asciiRingArt;\n if (counter == 0)\n {\n asciiRingArt = \"|<--|\";\n }\n else if (counter == (rangeMap.size() - 1))\n {\n asciiRingArt = \"|-->|\";\n }\n else\n {\n if ((rangeMap.size() > 4) && ((counter % 2) == 0))\n {\n asciiRingArt = \"v |\";\n }\n else if ((rangeMap.size() > 4) && ((counter % 2) != 0))\n {\n asciiRingArt = \"| ^\";\n }\n else\n {\n asciiRingArt = \"| |\";\n }\n }\n outs.println(asciiRingArt);\n \n counter++;\n }\n }", "title": "" }, { "docid": "3d09bf46432d570748c3791f296b99a9", "score": "0.44168204", "text": "public static void generateImagesForStrcuture(PrintWriter printWriter, List<StructureDetailsTabDTO> structureDetailsTabDTOList) throws MolFormatException, IOException {\n\n\n for (StructureDetailsTabDTO structureTabDataReturn : structureDetailsTabDTOList) {\n\n /* if (!structureTabDataReturn.getSubSmiles.isEmpty() ){*/\n chemaxon.util.MolHandler mh1 = new chemaxon.util.MolHandler(structureTabDataReturn.getSubSmiles());\n System.out.println(\"file mol check\" + mh1);\n mh1.aromatize();\n chemaxon.struc.Molecule mol = mh1.getMolecule();\n mol.clean(2, null);\n mol.dearomatize();\n byte[] s1 = mol.toBinFormat(\"png:w250,h250,b32\");\n\n printWriter.write(Base64.encodeToString(s1));\n System.out.println(\"generate the image check\" + s1);\n /* }*/\n }\n\n }", "title": "" }, { "docid": "c333c7b8b9e396726a9426008b2f2880", "score": "0.4414533", "text": "public void writeScrobbles(List<Scrobble> scrobbles) {\n for (Scrobble scrobble : scrobbles) {\n writeScrobble(scrobble);\n }\n }", "title": "" }, { "docid": "2003dcb771672e8ad4cca7668e7ba146", "score": "0.44133553", "text": "void separateOut() {\n for (int i = 0; i < files.size(); i++) {\n Process p;\n String line;\n try {\n if (files.get(i).startsWith(\"pdf\")) {\n String[] images = files.get(i).split(\"\\n\");\n if (outputType.equals(\"Text\")) {\n FileWriter writer = new FileWriter(outputDir\n + flist.get(i).getName().substring(0,\n flist.get(i).getName().lastIndexOf(\".\")) + \".txt\", false);\n BufferedWriter bWriter = new BufferedWriter(writer);\n for (int j = 1; j < images.length; j++) {\n p = Runtime.getRuntime().exec(SCRIPT + images[j]);\n BufferedReader r = new BufferedReader(new InputStreamReader(p.getInputStream()));\n while ((line = r.readLine()) != null) {\n bWriter.write(line);\n bWriter.newLine();\n //textArea.setText(textArea.getText() + line + \"\\n\");\n }\n }\n bWriter.close();\n } else if (outputType.equals(\"PDF\")) {\n PDDocument document = new PDDocument();\n for (int j = 1; j < images.length; j++) {\n PDPage page = new PDPage();\n document.addPage(page);\n PDPageContentStream contentStream = new PDPageContentStream(document, page);\n contentStream.beginText();\n contentStream.setFont(PDType1Font.TIMES_ROMAN, 12);\n contentStream.setLeading(14.5f);\n contentStream.newLineAtOffset(25, 700);\n p = Runtime.getRuntime().exec(SCRIPT + images[j]);\n BufferedReader r = new BufferedReader(new InputStreamReader(p.getInputStream()));\n while ((line = r.readLine()) != null) {\n contentStream.showText(line);\n contentStream.newLine();\n //textArea.setText(textArea.getText() + line + \"\\n\");\n }\n contentStream.endText();\n contentStream.close();\n }\n document.save(outputDir + flist.get(i).getName().substring(0,\n flist.get(i).getName().lastIndexOf(\".\")) + \".pdf\");\n document.close();\n }\n //cleanTempImages(images);\n } else if (files.get(i).startsWith(\"err\")) {\n System.out.println(\"Error with reading pdf.\");\n //cleanTempImages(files.get(i).split(\"\\n\"));\n } else {\n p = Runtime.getRuntime().exec(SCRIPT + files.get(i));\n BufferedReader r = new BufferedReader(new InputStreamReader(p.getInputStream()));\n if (outputType.equals(\"Text\")) {\n FileWriter writer = new FileWriter(outputDir + flist.get(i).getName().substring(0,\n flist.get(i).getName().lastIndexOf(\".\")) + \".txt\", false);\n BufferedWriter bWriter = new BufferedWriter(writer);\n while ((line = r.readLine()) != null) {\n bWriter.write(line);\n bWriter.newLine();\n //textArea.setText(textArea.getText() + line + \"\\n\");\n }\n bWriter.close();\n } else if (outputType.equals(\"PDF\")) {\n PDDocument document = new PDDocument();\n PDPage page = new PDPage();\n document.addPage(page);\n PDPageContentStream contentStream = new PDPageContentStream(document, page);\n contentStream.beginText();\n contentStream.setFont(PDType1Font.TIMES_ROMAN, 12);\n contentStream.setLeading(14.5f);\n contentStream.newLineAtOffset(25, 700);\n while ((line = r.readLine()) != null) {\n contentStream.showText(line);\n contentStream.newLine();\n //textArea.setText(textArea.getText() + line + \"\\n\");\n }\n contentStream.endText();\n contentStream.close();\n document.save(outputDir + flist.get(i).getName().substring(0,\n flist.get(i).getName().lastIndexOf(\".\")) + \".pdf\");\n document.close();\n }\n }\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n }\n }", "title": "" }, { "docid": "8b8f775eb40eaa74e9b1ac554d21d4da", "score": "0.4412486", "text": "@Override\n public void printBoard(PrintStream output) {\n this.board.printBoard();\n }", "title": "" }, { "docid": "81360255f752c81280c1ad1df398fe57", "score": "0.43981835", "text": "public void printOpenPorts(boolean PrintOnlyOpen)\n {\n\n System.out.println('\\n');\n\n if(mPortsStatus.length > 0) {\n if (PrintOnlyOpen) {\n System.out.println(\"Open Ports for \" + mIP + \": \");\n // Cycle through array and print port number for any that are open.\n for (int i = 0; i < mPortsStatus.length; i++) {\n if (mPortsStatus[i][1] == 1) {\n System.out.format(\"%6d%2s%-6s\", mPortsStatus[i][0], \": \", \"Open\");\n }\n }\n } else {\n // Cycle through array and print port number and status.\n System.out.println(\"Port status for \" + mIP + \": \");\n for (int i = 0; i < mPortsStatus.length; i++) {\n if (i % 10 == 0) {\n System.out.println();\n }\n if (mPortsStatus[i][1] == 1) {\n System.out.format(\"%6d%2s%-8s\", mPortsStatus[i][0], \": \", \"Open\");\n } else {\n System.out.format(\"%6d%2s%-8s\", mPortsStatus[i][0], \": \", \"Closed\");\n }\n }\n }\n System.out.println();\n }\n }", "title": "" }, { "docid": "2c2b52d2052119441b3a4de1326d5d28", "score": "0.43889448", "text": "public static void DumpLocationCoordinatestoKMLRevised(Places places) throws IOException{\n\n String filen = folder_path+\"loc2kmlRevised.txt\";\n File file = new File(filen);\n if (!file.exists()) {\n file.createNewFile();\n }\n BufferedWriter output = new BufferedWriter(new FileWriter(file));\n\n for(int i=0;i<places.places.size();i++){\n LocationCluster locationcls=places.places.get(i);\n output.write(locationcls.placeID+\"~\");\n\n List<UserPhoto> sublist=locationcls.getIdenticalsubLocations();\n if(sublist.size()>2){\n\n for(int j=0;j<sublist.size()-1;j++){\n\n output.write(sublist.get(j).geotag.lat+\",\"+sublist.get(j).geotag.lng);\n if(j<sublist.size()-2){\n output.write(\"|\");\n }\n }\n\n }\n else{\n\n GeoTag center =locationcls.GetCentriod();\n output.write(center.lat+\",\"+center.lng);\n }\n\n\n output.write(\"\\n\");\n\n\n\n\n }\noutput.flush();\n\n }", "title": "" }, { "docid": "3407eea64908ee5bac8e68d333f6c257", "score": "0.4385425", "text": "public void save(){\n try {\n FileOutputStream outputStream = getContext().openFileOutput(\"com_petros_cmsc434doodler_imageFile\", Context.MODE_PRIVATE);\n for(int i = 0; i<pathStack.size(); i++){\n outputStream.write((int)paintStack.get(i).getStrokeWidth()); //One byte is enough, max if 50\n outputStream.write(paintStack.get(i).getAlpha());\n //Red, Green, Blue\n outputStream.write((paintStack.get(i).getColor() & 0xFF0000) >> (4*4));\n outputStream.write((paintStack.get(i).getColor() & 0xFF00) >> (2*4));\n outputStream.write(paintStack.get(i).getColor() & 0xFF);\n\n outputStream.write(NEXT_LINE);\n for(int j = 0; j < pathPointsStack.get(i).size(); j+=2){\n //First point - have to save points byte at a time.\n outputStream.write(pathPointsStack.get(i).get(j) >> (6*4));\n outputStream.write(pathPointsStack.get(i).get(j) >> (4*4));\n outputStream.write(pathPointsStack.get(i).get(j) >> (2*4));\n outputStream.write(pathPointsStack.get(i).get(j));\n //Second point\n outputStream.write(pathPointsStack.get(i).get(j+1) >> (6*4));\n outputStream.write(pathPointsStack.get(i).get(j+1) >> (4*4));\n outputStream.write(pathPointsStack.get(i).get(j+1) >> (2*4));\n outputStream.write(pathPointsStack.get(i).get(j+1));\n if(j+2 == pathPointsStack.get(i).size()){\n outputStream.write(NEXT_PATH);\n }\n else{\n outputStream.write(NEXT_LINE);\n }\n }\n }\n outputStream.write(END_OF_PATHS);\n outputStream.close();\n } catch (Exception e) {\n Toast.makeText(getContext(), \"Error saving the file\", Toast.LENGTH_SHORT).show();\n }\n }", "title": "" }, { "docid": "270f2a22222f12ea38831381df5d1c55", "score": "0.43820012", "text": "public void savePhotosToDisk(String path, LinkedList<Image> listOfImages){\n\t\ttry{\n\t\t BufferedImage bi = new BufferedImage(WIDTH, HEIGHT, BufferedImage.TYPE_BYTE_GRAY);\n\t\t WritableRaster raster = bi.getRaster();\n\n\t\t for (int k = 0; k < listOfImages.size(); k++) {\n\t\t \t\n\t\t \tbyte[][] image = listOfImages.get(k).getData();\n\t\t \tfor (int i = 0; i < 28; i++) {\n\t\t\t\t\tfor (int j = 0; j < 28; j++) {\n\t\t\t\t\t\traster.setSample(i, j, 0, image[i][j]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t \t\n\t\t\t ImageIO.write(bi, \"jpg\", new File(path+k+\".jpg\"));\n\t\t\t}\t\t \n\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "57a263a27cb920faddb52a9bcd1ab0aa", "score": "0.43775037", "text": "public void drawMap() {\r\n\t\tfor (int x = 0; x < map.dimensionsx; x++) {\r\n\t\t\tfor (int y = 0; y < map.dimensionsy; y++) {\r\n\t\t\t\tRectangle rect = new Rectangle(x * scalingFactor, y * scalingFactor, scalingFactor, scalingFactor);\r\n\t\t\t\trect.setStroke(Color.BLACK);\r\n\t\t\t\tif (islandMap[x][y]) {\r\n\t\t\t\t\tImage isl = new Image(\"island.jpg\", 50, 50, true, true);\r\n\t\t\t\t\tislandIV = new ImageView(isl);\r\n\t\t\t\t\tislandIV.setX(x * scalingFactor);\r\n\t\t\t\t\tislandIV.setY(y * scalingFactor);\r\n\t\t\t\t\troot.getChildren().add(islandIV);\r\n\t\t\t\t} else {\r\n\t\t\t\t\trect.setFill(Color.PALETURQUOISE);\r\n\t\t\t\t\troot.getChildren().add(rect);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "f4b34ccb300fe12b73e104761ca8f011", "score": "0.43718207", "text": "private void printScreen()\n {\n try\n {\n Graphics g = getGraphics();\n if(drawingArea != null && g != null)\n {\n g.drawImage(drawingArea, 0, 0, null);\n }\n\n // Sync the display on some systems.\n // (on Linux, this fixes event queue problems)\n Toolkit.getDefaultToolkit().sync();\n g.dispose();\n }\n catch(Exception ex)\n {\n System.out.println(\"Graphics error: \" + ex);\n }\n }", "title": "" }, { "docid": "f7136d8ea423a1855714952a70c2ef0e", "score": "0.4371316", "text": "public void writeOutputSettings(File file) throws IOException\n{\n if (file != null && m.getOutputImageManager().getMosaic() != null)\n {\n boolean[][] vFlip = m.getOutputImageManager().getMosaic().getFlipV();\n boolean[][] hFlip = m.getOutputImageManager().getMosaic().getFlipH();\n String[] lines = new String[8];\n lines[0] = \"output\";\n lines[1] = new Integer((int)cp5.getController(\"sizeOfTiles\").getValue()).toString(); //size of cells\n lines[2] = new Integer((int)cp5.getController(\"evenRowShift\").getValue()).toString(); //even row shift\n lines[3] = new Integer((int)cp5.getController(\"oddRowShift\").getValue()).toString(); //odd row shift\n lines[4] = new Integer(vFlip[0].length-1).toString(); //number of x cells\n lines[5] = new Integer(vFlip.length).toString(); //number of y cells\n int i = 6;\n \n boolean[][] array = vFlip;\n while(i < lines.length)\n {\n lines[i] = \"\";\n for (int j = 0; j < array[0].length; j++)\n {\n for (int k = 0; k < array.length; k++)\n {\n if (array[k][j])\n {\n lines[i] += \"t\";\n } else\n {\n lines[i] += \"f\";\n }\n lines[i] += \"-\";\n }\n lines[i] = lines[i].substring(0,lines[i].length()-1);\n lines[i] += \";\";\n }\n array = hFlip;\n i++;\n }\n \n // list the files in the data folder\n String[] filenames = file.list();\n int fileNumber = 1;\n \n for(String f: filenames)\n {\n if(f.endsWith(\".config\") && f.startsWith(\"OutputConfiguration\"))\n {\n f = f.substring(f.length()-8,f.length()-7);\n if(isParsable(f))\n {\n fileNumber = max(Integer.parseInt(f),fileNumber);\n fileNumber++;\n }\n \n }\n }\n \n saveStrings(file+\"/\"+\"OutputConfiguration\"+fileNumber+\".config\", lines);\n }\n}", "title": "" }, { "docid": "07052b5a7f260fc4866cc17dafd0ac3a", "score": "0.4360286", "text": "public void display(){\n\t\tSystem.out.println(\"node: \"+name+\", at \"+drawnNode.getXPosition()+\",\"+drawnNode.getYPosition()+\", colour \"+drawnNode.getColour());\n\t\tif(outArcs.length > 0)\n\t\t\tSystem.out.println(\"out arcs:\");\n\t\tfor(int i=0;i<outArcs.length;i++)\n\t\t\tSystem.out.println(\"to \"+outArcs[i].getEndNode().getName());\n\t}", "title": "" }, { "docid": "eaf0fcd0d49dce4c6558ed6a762bf3a2", "score": "0.43561667", "text": "private void drawTrash(ArrayList<TrashCollect> images, GraphicsContext gc) {\n\t\tgc.save();\n\t\tfor (int i = 0; i < images.size(); i++) {\n\t\t\tgc.drawImage(images.get(i).img, images.get(i).x, images.get(i).y);\n\n\t\t}\n\t\tgc.restore();\n\n\t}", "title": "" }, { "docid": "0cebb2e7d6c21c6f9087f73e37e7d3a5", "score": "0.43555057", "text": "@Override\r\n public String toString() {\r\n String result = \"\";\r\n\r\n // Convert each sprite in each ArrayList to its string representation, then print it out.\r\n for (ArrayList<T> list : new ArrayList<ArrayList<T>>()) {\r\n for (T sprite : list) {\r\n result += sprite.toString();\r\n }\r\n result += \"\\n\";\r\n }\r\n\r\n return result;\r\n }", "title": "" }, { "docid": "76cbccb73d75fb17d79e0eda53963ad0", "score": "0.43533343", "text": "private void saveImageAsText() {\n\t\tFile textFile = fileChooser.getOutputFile(this, \"Select Text File Name\", \"textImage.txt\"); \n\t\tif (textFile == null)\n\t\t\treturn;\n\t\ttry {\n\t\t\tPrintWriter write = new PrintWriter(textFile);\n\t\t\twrite.println(\"New textImage\");\n\t\t\twrite.println(canvas.getBackground().getRed());\n\t\t\twrite.println(canvas.getBackground().getGreen());\n\t\t\twrite.println(canvas.getBackground().getBlue());\n\t\t\tif (theString != null)\n\t\t\t\tfor (DrawTextItem s: theString) { \n\t\t\t\t\twrite.println(\"theString:\"); \n\t\t\t\t\twrite.println(s.getString()); \n\t\t\t\t\twrite.println(s.getX());\n\t\t\t\t\twrite.println(s.getY());\n\t\t\t\t\twrite.println(s.getFont().getName());\n\t\t\t\t\twrite.println(s.getFont().getStyle());\n\t\t\t\t\twrite.println(s.getFont().getSize());\n\t\t\t\t\twrite.println(s.getTextColor().getRed()); \n\t\t\t\t\twrite.println(s.getTextColor().getGreen());\n\t\t\t\t\twrite.println(s.getTextColor().getBlue());\n\t\t\t\t\twrite.println(s.getTextTransparency());\n\t\t\t\t\tif (s.getBackground() == null) {\n\t\t\t\t\t\twrite.println(-1);\n\t\t\t\t\t\twrite.println(-1);\n\t\t\t\t\t\twrite.println(-1);\n\t\t\t\t\t} else {\n\t\t\t\t\t\twrite.println(s.getBackground().getRed()); \n\t\t\t\t\t\twrite.println(s.getBackground().getGreen());\n\t\t\t\t\t\twrite.println(s.getBackground().getBlue());\n\t\t\t\t\t}\n\t\t\t\t\twrite.println(s.getBackgroundTransparency());\n\t\t\t\t\twrite.println(s.getBorder())\n\t\t\t\t\twrite.println(s.getMagnification());\n\t\t\t\t\twrite.println(s.getRotationAngle());\n\t\t\t\t}\n\t\t\twrite.close();\n\n\t\t} catch (Exception e) {\n\t\t\tJOptionPane.showMessageDialog(this, \n\t\t\t\t\t\"Sorry, an error occurred while trying to save this image progress.\\n\" + \"Error message: \" + e);\n\t\t}\n\t}", "title": "" }, { "docid": "e3d27fcd934db49ce5344d9e8573344f", "score": "0.435153", "text": "public void printMap(GameMap map);", "title": "" }, { "docid": "ce5c1e98a1aae7483f7f24c8b41738d1", "score": "0.4347235", "text": "protected void printNumberSelectedPicturesOnStatusLine( ) {\n\t\tSwingUtilities.invokeLater(new Runnable() {\n\t\t\t \n\t\t\tpublic void run() {\n\t\t\t\tString text;\n\t\t\t\tint count = indexData.pictureSelected.cardinality();\n\t\t\t\tif (count == 1) {\n\t\t\t\t\ttext = \"1 picture selected.\";\n\t\t\t\t} else if (count == 0) {\n\t\t\t\t\ttext = \"NO pictures selected\";\n\t\t\t\t} else {\n\t\t\t\t\ttext = String.valueOf(count) + \" pictures selected\";\n\t\t\t\t}\n\t\t\t\tselPictures.setText(text);\t\n\t\t\t}\n\t\t});\n\t}", "title": "" }, { "docid": "c4289288bdc778665ee74db85d5d4c0e", "score": "0.43451446", "text": "public String getImage(){\n StringBuilder sb = new StringBuilder();\n for (char[] subArray : hidden) {\n sb.append(subArray);\n sb.append(\"\\n\");\n }\n return sb.toString();\n }", "title": "" }, { "docid": "907cb644793d36607943513321e9e6fc", "score": "0.43443173", "text": "public void write(String filename) throws IOException {\n \t\n\t\tFileOutputStream os = null;\n\t\ttry {\n\t\t \tos = new FileOutputStream(new File(\"./OutputImage.txt\"));\n\t\t\tString header = (\"P6\\n\" + width + \"\\n\" + height + \"\\n255\\n\")//.getBytes() missing for converting the string into bytes;\n\t\t\t// For P6 there is no \\n after each spec. Use: new (\"P6 \"+width+\" \"+h+\" 255\\n\").getBytes())\n\t\t\tos.write(header);\n\t\t\tos.write(data);\n\t\t} catch (IOException e) {\n\t\t \t e.printStackTrace();\n\t\t}finally{\n\t\t try {\n\t\t\tos.close();\n\t\t } catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t \t}\n \t}\n \n\n}", "title": "" }, { "docid": "84c33a45a8b12c867528e7658fc5ed71", "score": "0.4344234", "text": "public void outputVisualObjects ()\n\t{\n\t\toutput (\"\\n> (visual-objects)\\n\");\n\t\tif (model!=null) model.outputVisualObjects();\n\t}", "title": "" }, { "docid": "06ac8c2d08600182f8b6cd71f8e24ef3", "score": "0.4344005", "text": "public void printAvailableIslands(ArrayList<Island> islands) \n\t{\n\t\tboolean state = false;\n\t\twhile (state == false) {\n\t\t\tSystem.out.println(\"Choose island that you want to have a look:\");\n\t\t\tint num = 1;\n\t\t\tfor (int i = 0; i < islands.size(); i++) {\n\t\t\t\tIsland otherIsland = islands.get(i);\n\t\t\t\tString nameIsland = otherIsland.getIslandName();\n\t\t\t\tSystem.out.println(\"(\"+num+\") \"+ nameIsland);\n\t\t\t\tnum++;\t\n\t\t\t}\n\t\t\tint selectedAction = scanner.nextInt();\n\t\t\ttry {\n\t\t\t\tif (selectedAction <= islands.size() && selectedAction >0){\n\t\t\t\t\tgame.chooseOtherIsland(selectedAction-1);\t\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println(\"Please choose island between 1 and 4!\");\n\t\t\t\t}\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.out.println(INPUT_REQUIREMENTS);\n\t\t\t\tscanner.nextLine();\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "7acd42db298161d492ac80a73adc037f", "score": "0.4342192", "text": "private void actionSaveOutputAll ()\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tint tableSize = DataController.getTable().getTableSize();\r\n\r\n\t\t\tif (tableSize != 0)\r\n\t\t\t{\r\n\t\t\t\tJFileChooser saveFileChooser = new JFileChooser();\r\n\r\n\t\t\t\tFileNameExtensionFilter typeCSV = new FileNameExtensionFilter(\"CSV\", \"csv\", \"CSV\");\r\n\t\t\t\tsaveFileChooser.addChoosableFileFilter(typeCSV);\r\n\r\n\t\t\t\tFileNameExtensionFilter typeTXT = new FileNameExtensionFilter(\"TXT\", \"txt\", \"TXT\");\r\n\t\t\t\tsaveFileChooser.addChoosableFileFilter(typeTXT);\r\n\r\n\t\t\t\tsaveFileChooser.setAcceptAllFileFilterUsed(false);\r\n\t\t\t\tsaveFileChooser.setFileFilter(typeCSV);\r\n\r\n\t\t\t\tint isOpen = saveFileChooser.showOpenDialog(saveFileChooser);\r\n\r\n\t\t\t\tif (isOpen == JFileChooser.APPROVE_OPTION) \r\n\t\t\t\t{\r\n\t\t\t\t\tString filePath = saveFileChooser.getSelectedFile().getPath();\r\n\r\n\t\t\t\t\t/*!*/DebugLogger.logMessage(\"Saving output of all images to file \" + filePath, LOG_MESSAGE_TYPE.INFO);\r\n\r\n\t\t\t\t\tif (saveFileChooser.getFileFilter().equals(typeCSV))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif (!filePath.substring(filePath.length() - 4).equals(\".csv\")) { filePath += \".csv\"; }\r\n\r\n\t\t\t\t\t\tOutputController.saveFileAll(filePath, DataController.getTable(), OUTPUT_FORMAT.CSV);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif (!filePath.substring(filePath.length() - 4).equals(\".txt\")) { filePath += \".txt\"; }\r\n\r\n\t\t\t\t\t\tOutputController.saveFileAll(filePath, DataController.getTable(), OUTPUT_FORMAT.TXT);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (ExceptionMessage exception)\r\n\t\t{\r\n\t\t\tExceptionHandler.processException(exception);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "09b60c0cff4dd0638ab1a9a15bce26e4", "score": "0.4342166", "text": "public void printGS(){\r\n\t\tLogger.append(\" ITANet locations:\t\");\r\n\t\tfor (int i = 0; i < this.locVec.length; i++)\r\n\t\t\tLogger.append(this.locVec[i] + \" \");\r\n\t\tLogger.append(\"\\r\\n\");\r\n\r\n\t\tLogger.append(\" Interruption vector:\t\");\r\n\t\tfor(int i = 0; i < this.interVec.length; i++){\r\n\t\t\tif(this.interVec[i] == true)\r\n\t\t\t\tLogger.append(\"true \");\r\n\t\t\telse\r\n\t\t\t\tLogger.append(\"false \");\r\n\t\t}\r\n\t\tLogger.append(\"\\r\\n\");\r\n\r\n\t\tLogger.append(\" CPUStack:\t\");\r\n\t\tthis.stack.printAllEle();\r\n\t\tLogger.append(\"\\r\\n\");\r\n\r\n\t\tLogger.append(\" Control variable:\t\");\r\n\t\tthis.cvMap.printAllEle();\r\n\t\tLogger.append(\"\\r\\n\");\r\n\t\t\r\n\t\tLogger.append(\" IRQSwitch: \");\r\n\t\tthis.switches.print();\r\n\t\tLogger.append(\"\\r\\n\");\r\n\t}", "title": "" }, { "docid": "8afcda60a1a48c15271c081a81eb284d", "score": "0.4340332", "text": "private void printImage(PrintDocument printDocument) throws PrinterException, IOException {\n logger.debug(\"printImage::\" + printDocument);\n\n String filename = DocumentService.getFileFromUrl(printDocument.getUrl()).getPath();\n\n long timeStart = System.currentTimeMillis();\n\n DocPrintJob docPrintJob = getDocPrintJob(printDocument.getType());\n\n PrinterJob job = PrinterJob.getPrinterJob();\n job.setPrintService(docPrintJob.getPrintService());\n PageFormat pageFormat = getPageFormat(job);\n\n Image image = ImageIO.read(new File(filename));\n\n Book book = new Book();\n AnnotatedPrintable printable = new AnnotatedPrintable(new ImagePrintable(image));\n\n for (AnnotatedPrintable.AnnotatedPrintableAnnotation printDocumentExtra : printDocument.getExtras()) {\n printable.addAnnotation(printDocumentExtra);\n }\n\n book.append(printable, pageFormat);\n\n job.setPageable(book);\n job.setJobName(\"WebApp Hardware Bridge Image\");\n job.setCopies(printDocument.getQty());\n job.print();\n\n long timeFinish = System.currentTimeMillis();\n logger.info(\"Document \" + filename + \" printed in \" + (timeFinish - timeStart) + \"ms\");\n }", "title": "" }, { "docid": "ee7c204e3b7f62a7b9290a297c522dee", "score": "0.43375316", "text": "public void mapToString() {\r\n for (Square[] x : map) {\r\n for (Square y : x) {\r\n System.out.print(y.getVisual() + \" \");\r\n }\r\n System.out.println();\r\n }\r\n }", "title": "" }, { "docid": "d4b95537d5e5aa554ed5ba6eaae61c66", "score": "0.4331819", "text": "static void printListOfPowerups(List<PowerUpLM> powerUps) {\n for(PowerUpLM pu : powerUps){\n System.out.print(pu.getName() + \"(\" + ToolsView.ammoTypeToString(pu.getGainAmmoColor()) + \")\");\n if(powerUps.indexOf(pu) != powerUps.size()-1){\n System.out.print(\", \");\n }\n }\n }", "title": "" }, { "docid": "9bb535a02ed60f892efec3ad0984a030", "score": "0.43310404", "text": "public void Encode_Image1() {\n\n for (String s : Arraylist_image_encode) {\n listString += s + \"IMAGE:\";\n }\n\n }", "title": "" }, { "docid": "d2cbb647aba281d55c6a84494243d80a", "score": "0.43296826", "text": "public void printMoveList(){\n\t\tString body = \"\";\n\t\tfor (int i = 0; i < moveList.size(); i++) {\n\t\t\tif (i % 2 == 0)\n\t\t\t\tbody += \"\\n\" + Integer.toString(i / 2 + 1) + \" \";\n\n\t\t\tbody += moveList.get(i).algebraicNotationPrint() + \" \";\n\t\t}\n\t\tSystem.out.println(body);\n\t}", "title": "" }, { "docid": "ac8e2403efd8c10cfddfcb00a08b7696", "score": "0.43268937", "text": "public void saveUserSunkenShips(PrintWriter out) {\r\n\t\tfor(int i = 0; i < Player.sunkenShips.size(); i++) {\r\n\t\t\tout.print(\" \"+Player.sunkenShips.get(i));\r\n\t\t}\r\n\t\t\r\n\t\tout.println(\"\");\r\n\t}", "title": "" }, { "docid": "e558249d189b2429783334d7ba1fd53d", "score": "0.43166292", "text": "public void toIKL(PrintWriter iklout, int offset) {\r\n\t\t//TODO: implement toIKL\r\n\t}", "title": "" }, { "docid": "c7905890c77c92a14e09bec020dac26e", "score": "0.43160877", "text": "private static void outputBook() {\n\t\toutput(\"\");\r\n\t\tfor (book book : library.outputBook()) { // method name changes BOOKS to outputBook()\r\n\t\t\toutput(book + \"\\n\");\r\n\t\t}\t\t\r\n\t}", "title": "" }, { "docid": "51db8f2a96ef4471aca229bcd03c7f0c", "score": "0.43142083", "text": "private void printGrid(StateObservation stateObs) {\n\n ArrayList<Observation>[][] gameGrid = stateObs.getObservationGrid();\n System.out.println(\"rows \" + gameGrid.length + \" cols \" + gameGrid[0].length);\n\n System.out.println(\"------------------\");\n for (int i = 0; i < gameGrid[0].length; i++) { // cols\n for (int j = 0; j < gameGrid.length; j++) { // rows\n\n if (gameGrid[j][i].isEmpty()) {\n System.out.print(\". \");\n } else {\n for (Observation o : gameGrid[j][i]) {\n System.out.print(o.itype + \" \");\n }\n }\n }\n System.out.println();\n }\n System.out.println(\"------------------\");\n }", "title": "" } ]
221b54374b56e4a56e27ab80d6db18d6
Internal method to generate the intermediate format.
[ { "docid": "3e22e5f3dda65665f8420bbeb8e98ea9", "score": "0.0", "text": "public IRenderingElement generateDiagram(T obj);", "title": "" } ]
[ { "docid": "4c19d97e63d28df87d47256c715a43f0", "score": "0.55198616", "text": "public String transformation(){\n\t\t\tString script =\"\";\n\t\t\tscript = script + addSubjects();\n\t\t\tscript = script + addObjects();\n\t\t\tscript = script + addUserRules();\n\t\t\treturn script;\n\t\t}", "title": "" }, { "docid": "839304b29bd7ff950e03d3ee5af36271", "score": "0.5468183", "text": "@Override\n public String getIntermediateInfo() {\n return super.getIntermediateInfo() + \", result: \" + getResult();\n }", "title": "" }, { "docid": "9d4fe1ad79519ff52ff5519762dcc1dd", "score": "0.5388259", "text": "protected abstract String createOutput();", "title": "" }, { "docid": "cded3bbfd7fe78435ef349b29caf1635", "score": "0.5343157", "text": "private void intermediateOperations() {\n\t}", "title": "" }, { "docid": "f344a34a0c84ac86aa801b9d9fe01811", "score": "0.53287524", "text": "private static void assembleFile(){\n\n\t\twriteToFile(header);\n\n\t\twriteNewLine();\n\n\t\twriteToFile(\"public class Output{\");\n\n\t\twriteToFile(classes);\n\n\t\twriteNewLine();\n\n\t\twriteToFile(functions);\n\n\t\twriteNewLine();\n\n\t\twriteToFile(\"public static void main(String[] args) {\");\n\n\t\twriteNewLine();\n\n\t\twriteToFile(mainBody);\n\n\t\twriteNewLine();\n\n\t\twriteToFile(\"\t}\");\n\t\twriteToFile(\"}\");\n\t}", "title": "" }, { "docid": "81f85ea249095ccfd6c5381af4a71651", "score": "0.53147423", "text": "protected abstract String buildInner();", "title": "" }, { "docid": "96510b8e8f17a84c122079d26d5ce8d6", "score": "0.5218273", "text": "private void writeInte(){\n if (lineCounter != 0 && (insCode != null || addressLabel != null)){ // case of insCode != null mean its an instruction line not a directive , case of line counter == 0 mean there is nothing to write it . It is mean the next instruction is the first line in the program\n intermediate.add(new machineCode(lineCounter,linePc, lineBase,format,insCode,addressLabel,codeRest));\n format = -1;\n insCode = null;\n addressLabel = null;\n codeRest = null;\n\n }\n }", "title": "" }, { "docid": "a72d9bde7b842a3e1c27686a0ab20b41", "score": "0.5202854", "text": "@Override\n\tprotected void outputReferencePackgaes() {\n\t\tsuper.outputReferencePackgaes();\n\t\tString model = this.getCaptureTableName();\n\t\tprintWriter.println(\"\\r\\n\\r\\nimport org.springframework.stereotype.Service;\\r\\n\" + \n\t\t\t\t\"import com.tonfun.tools.service.C.module.sys.CGenericSysImpl;\\r\\n\" + \n\t\t\t\t\"import org.springframework.beans.factory.annotation.Autowired;\\r\\n\" +\n\t\t\t\t\"import com.tonfun.tools.Error.ErrorCode;\\r\\n\" +\n\t\t\t\t\"import com.tonfun.tools.Error.DefaultErrorCode;\\r\\n\" +\n\t\t\t\t\"import com.tonfun.tools.Error.ErrCode;\\r\\n\" +\n\t\t\t\t\"import \"+XmlParserFactory.getXmlParser().xmlParser(FileGeneratorType.DaoInterface, \"packageName\")+\".\"+\n\t\t\t\t\t\t XmlParserFactory.getXmlParser().xmlParser(FileGeneratorType.DaoInterface, \"prefix\") + model+\n\t\t\t\t\t\t XmlParserFactory.getXmlParser().xmlParser(FileGeneratorType.DaoInterface, \"suffix\")+\";\\r\\n\" +\n\t\t\t\t\"import \"+XmlParserFactory.getXmlParser().xmlParser(FileGeneratorType.Model,\"packageName\")+\".\"+model+\";\\r\\n\"+\n\t\t\t\t\"import \"+XmlParserFactory.getXmlParser().xmlParser(FileGeneratorType.ServiceInterface,\"packageName\")+\".\"+\n\t\t\t\t\t\t XmlParserFactory.getXmlParser().xmlParser(FileGeneratorType.ServiceInterface,\"prefix\")+\n\t\t\t\t\t\t model+XmlParserFactory.getXmlParser().xmlParser(FileGeneratorType.ServiceInterface,\"suffix\")+\";\\r\\n\");\n\t\tprintWriter.println(\"\\r\\n\");\n\t}", "title": "" }, { "docid": "c6ed73bebad5455b35d04337cd307dd8", "score": "0.5202014", "text": "public void generateOutput(ModInstance callingInst, OutputBuilder outputBuilder) {\n\t\n\t\t// each subclass should override to create appropriate code based on calling instance\n\t\tif (callingInst == null) return;\n\t\t// generate each direct instance in this component\n\t\tfor (ModInstance regInst : getChildInstances()) {\n\t\t\toutputBuilder.pushInstance(new InstanceProperties(callingInst));\n\t\t\tregInst.generateOutput(outputBuilder);\n\t\t\toutputBuilder.popInstance();\n\t\t}\n\t}", "title": "" }, { "docid": "bf41264b4d2e15cb5c8d80d9c8d555e2", "score": "0.5176436", "text": "Out toOutput();", "title": "" }, { "docid": "52ab859a18cad31fad7d43f78dbd7d40", "score": "0.51632845", "text": "public ImageTranscoderOutput() {\n\t\t// empty block\n\t}", "title": "" }, { "docid": "aedf129cc96bb087a19316dc233728fe", "score": "0.51496714", "text": "EObject getComputedOutput();", "title": "" }, { "docid": "492d35dfbc0bf8d94fa7f74a673cd932", "score": "0.5148258", "text": "public static OutputBuilder beginBuild() {\n return new OutputBuilder();\n }", "title": "" }, { "docid": "0ae1c6279ad1154188878ceea410b61b", "score": "0.51454693", "text": "public void generate() {\n // Reset diagnostic position to current class.\n resetDiagPos();\n // Emit prologue statements.\n prologue();\n \n // Reset diagnostic position to current class.\n resetDiagPos();\n // Emit method body.\n body();\n \n // Reset diagnostic position to current class.\n resetDiagPos();\n // Emit epilog statements.\n epilogue();\n }", "title": "" }, { "docid": "05adc1b518599666904637c3babc8506", "score": "0.5104444", "text": "public String generate() {\n return super.generateCode(8);\n }", "title": "" }, { "docid": "19c9f10569ff2f6c229ddb85e66e1c7a", "score": "0.5100334", "text": "protected String internalsString ()\r\n {\r\n StringBuffer sb = new StringBuffer(25);\r\n\r\n sb.append(\" \")\r\n .append(getInDegree());\r\n sb.append(\"/\")\r\n .append(getOutDegree());\r\n\r\n return sb.toString();\r\n }", "title": "" }, { "docid": "4411f0cd6510fca3bd7763a6730d1194", "score": "0.50954527", "text": "FlattenGeneratedItem createFlattenGeneratedItem();", "title": "" }, { "docid": "099c88cb564358a02358edf106215656", "score": "0.50757015", "text": "private static POWERMART createXML(TRANSFORMATION trns, MAPPING m, FOLDER f,POWERMART pwM){\r\n\r\n\t\tArrayList<TRANSFORMATION> alSQ = new ArrayList<TRANSFORMATION>();\r\n\t\tArrayList<TARGET> alTgt = new ArrayList<TARGET>();\r\n\t\tArrayList<SOURCE> alSrc = new ArrayList<SOURCE>();\r\n\t\tArrayList<CONNECTOR> alConsNuevo = new ArrayList<CONNECTOR>();\r\n\t\tArrayList<String> sourceNames = new ArrayList<String>();\r\n\t\tArrayList<String> tgtNames = new ArrayList<String>();\r\n\t\t@SuppressWarnings(\"unused\")\r\n\t\tArrayList<TRANSFORMATION> sourceTrans = new ArrayList<TRANSFORMATION>();\r\n\t\tArrayList<TRANSFORMATION> tgtTrans = new ArrayList<TRANSFORMATION>();\r\n\t\tString temp = \"\";\r\n\r\n\t\tMAPPING newMap = new MAPPING();\r\n\t\tTARGETLOADORDER tglo = new TARGETLOADORDER();\r\n\r\n\t\tfor(CONNECTOR c : m.getCONNECTOR())\r\n\t\t\tif(c.getTOINSTANCE().equals(trns.getNAME()) && !sourceNames.contains(c.getFROMINSTANCE()))\r\n\t\t\t\tsourceNames.add(c.getFROMINSTANCE());\r\n\r\n\r\n\t\tif(sourceNames.isEmpty()){\r\n\t\t\tif(trns.getDESCRIPTION().length()>18){\r\n\t\t\t\ttemp = trns.getDESCRIPTION().substring(0,trns.getDESCRIPTION().length()-16);\r\n\t\t\t\ttemp = temp.substring(temp.lastIndexOf(\" \")+1,temp.length());\r\n\t\t\t}\r\n\t\t\tsourceNames.add(temp);\r\n\t\t}\r\n\r\n\t\tfor(String s : sourceNames)\r\n\t\t\tfor(CONNECTOR c : m.getCONNECTOR())\r\n\t\t\t\tif(c.getFROMINSTANCE().equals(s) && !tgtNames.contains(c.getTOINSTANCE()))\r\n\t\t\t\t\ttgtNames.add(c.getTOINSTANCE());\r\n\r\n\t\tfor(String s : tgtNames)\r\n\t\t\tfor(TRANSFORMATION t : m.getTRANSFORMATION())\r\n\t\t\t\tif(s.equals(t.getNAME()))\r\n\t\t\t\t\ttgtTrans.add(t);\r\n\r\n\t\tif(tgtTrans.isEmpty()){\r\n\t\t\talSrc = getSources(trns,m);\r\n\t\t}else{\r\n\t\t\talSrc = getSources(tgtTrans.get(0),m);\r\n\t\t}\r\n\t\talTgt = getTargets(trns,m);\r\n\t\tif(alSrc.size()<1){\r\n\r\n\t\t\tfirstrun = true;\r\n\t\t\talSrc = getSources(trns,m);\r\n\t\t}\r\n\t\talSQ = getSQualifiers(alSrc, m);\r\n\t\talConsNuevo = getConnectors(alSrc, alTgt, alSQ, trns,m);\r\n\r\n\t\tfor(TARGET t : alTgt){\r\n\t\t\ttglo = new TARGETLOADORDER();\r\n\t\t\ttglo.setORDER(\"1\");\r\n\t\t\ttglo.setTARGETINSTANCE(t.getNAME());\r\n\t\t\tnewMap.getTARGETLOADORDER().add(tglo);\r\n\t\t}\r\n\r\n\r\n\t\tINSTANCE inNew;\r\n\t\tnewMap.setDESCRIPTION(\"MAPPING GENERATED WITH SCRIPT.\");\r\n\t\tnewMap.setISVALID(\"YES\");\r\n\t\tnewMap.setNAME(\"m_\"+trns.getNAME());\r\n\t\tnewMap.setOBJECTVERSION(\"1\");\r\n\t\tnewMap.setVERSIONNUMBER(\"1\");\r\n\t\tnewMap.getCONNECTOR().addAll(alConsNuevo);\r\n\t\tif(!newMap.getTRANSFORMATION().contains(trns)){\r\n\t\t\tnewMap.getTRANSFORMATION().add(trns);\r\n\t\t}\r\n\t\tif(!newMap.getTRANSFORMATION().contains(alSQ)){\r\n\t\t\tnewMap.getTRANSFORMATION().addAll(alSQ);\r\n\t\t}\r\n\t\t//alSQ = new ArrayList<TRANSFORMATION>();\r\n\t\t//newMap.getMAPDEPENDENCY().add(null);\r\n\t\tERPINFO erp = new ERPINFO();\r\n\t\tnewMap.getERPINFO().add(erp);\r\n\r\n\t\t//powermart pw = new powermart();\r\n\t\tPOWERMART pmNew = new POWERMART();\r\n\t\tREPOSITORY rNew = new REPOSITORY();\r\n\t\tFOLDER fNew = new FOLDER();\r\n\t\tWORKFLOW wfNew = new WORKFLOW();\r\n\t\tSCHEDULER schNew = new SCHEDULER();\r\n\t\tSCHEDULEINFO siNew = new SCHEDULEINFO();\r\n\t\tTASK tNew = new TASK();\r\n\t\tSESSION sNew = new SESSION();\r\n\t\tSESSTRANSFORMATIONINST stfNew;\r\n\t\tPARTITION pNew;\r\n\t\t//ATTRIBUTE aNew;\r\n\t\tSESSIONEXTENSION seNew;\r\n\t\tCONNECTIONREFERENCE crefNew;\r\n\r\n\t\tsiNew.setSCHEDULETYPE(\"ONDEMAND\");\r\n\r\n\t\tschNew.setDESCRIPTION(\"\");\r\n\t\tschNew.setNAME(\"Scheduler\");\r\n\t\tschNew.setREUSABLE(\"NO\");\r\n\t\tschNew.setVERSIONNUMBER(\"1\");\r\n\t\tschNew.setSCHEDULEINFO(siNew);\r\n\r\n\t\ttNew.setDESCRIPTION(\"\");\r\n\t\ttNew.setNAME(\"Start\");\r\n\t\ttNew.setREUSABLE(\"NO\");\r\n\t\ttNew.setTYPE(\"Start\");\r\n\t\ttNew.setVERSIONNUMBER(\"1\");\r\n\r\n\t\tint iSessTrnsCounter = 0;\r\n\t\tfor(int j = 0; j < alSrc.size();j++){\r\n\t\t\tstfNew = new SESSTRANSFORMATIONINST();\r\n\t\t\tstfNew.setISREPARTITIONPOINT(\"NO\");\r\n\t\t\tstfNew.setPIPELINE(\"0\");\r\n\t\t\tstfNew.setSINSTANCENAME(alSrc.get(j).getNAME());\r\n\t\t\tstfNew.setSTAGE(Integer.toString(iSessTrnsCounter));\r\n\t\t\tstfNew.setTRANSFORMATIONNAME(alSrc.get(j).getNAME());\r\n\t\t\tstfNew.setTRANSFORMATIONTYPE(\"Source Definition\");\r\n\t\t\tif(!sNew.getSESSTRANSFORMATIONINST().contains(stfNew)){\r\n\t\t\t\tsNew.getSESSTRANSFORMATIONINST().add(stfNew);\r\n\t\t\t}\r\n\t\t\tinNew = new INSTANCE();\r\n\t\t\tinNew.setDBDNAME(alSrc.get(j).getDBDNAME());\r\n\t\t\tinNew.setDESCRIPTION(\"\");\r\n\t\t\tinNew.setNAME(alSrc.get(j).getNAME());\r\n\t\t\tinNew.setTRANSFORMATIONNAME(alSrc.get(j).getNAME());\r\n\t\t\tinNew.setTRANSFORMATIONTYPE(\"Source Definition\");\r\n\t\t\tinNew.setTYPE(\"SOURCE\");\r\n\t\t\tif(!newMap.getINSTANCE().contains(inNew)){\r\n\t\t\t\tnewMap.getINSTANCE().add(inNew);\r\n\t\t\t\tiSessTrnsCounter++;\r\n\t\t\t}\r\n\r\n\r\n\t\t}\r\n\t\tfor(int j = 0; j < alSQ.size();j++){\r\n\t\t\tstfNew = new SESSTRANSFORMATIONINST();\r\n\t\t\tstfNew.setISREPARTITIONPOINT(\"YES\");\r\n\t\t\tstfNew.setPARTITIONTYPE(\"PASS THROUGH\");;\r\n\t\t\tstfNew.setPIPELINE(\"0\");\r\n\t\t\tstfNew.setSINSTANCENAME(alSQ.get(j).getNAME());\r\n\t\t\tstfNew.setSTAGE(Integer.toString(iSessTrnsCounter));\r\n\t\t\tstfNew.setTRANSFORMATIONNAME(alSQ.get(j).getNAME());\r\n\t\t\tstfNew.setTRANSFORMATIONTYPE(\"Source Qualifier\");\r\n\t\t\tif(!sNew.getSESSTRANSFORMATIONINST().contains(stfNew)){\r\n\t\t\t\tsNew.getSESSTRANSFORMATIONINST().add(stfNew);\r\n\t\t\t\tiSessTrnsCounter++;\r\n\t\t\t}\r\n\r\n\t\t\tseNew = new SESSIONEXTENSION();\r\n\t\t\tseNew.setDSQINSTNAME(alSQ.get(j).getNAME());\r\n\t\t\tseNew.setDSQINSTTYPE(\"Source Qualifier\");\r\n\t\t\tseNew.setNAME(\"Relational Reader\");\r\n\t\t\tseNew.setSINSTANCENAME(alSQ.get(j).getNAME().replace(\"SQ_\", \"\"));\r\n\t\t\tseNew.setSUBTYPE(\"Relational Reader\");\r\n\t\t\tseNew.setTRANSFORMATIONTYPE(\"Source Definition\");\r\n\t\t\tseNew.setTYPE(\"READER\");\r\n\t\t\tif(!sNew.getSESSIONEXTENSION().contains(seNew)){\r\n\t\t\t\tsNew.getSESSIONEXTENSION().add(seNew);\r\n\t\t\t\tiSessTrnsCounter++;\r\n\t\t\t}\r\n\t\t\tseNew = new SESSIONEXTENSION();\r\n\t\t\tseNew.setNAME(\"Relational Reader\");\r\n\t\t\tseNew.setSINSTANCENAME(alSQ.get(j).getNAME());\r\n\t\t\tseNew.setSUBTYPE(\"Relational Reader\");\r\n\t\t\tseNew.setTRANSFORMATIONTYPE(\"Source Qualifier\");\r\n\t\t\tseNew.setTYPE(\"READER\");\r\n\r\n\t\t\tcrefNew = new CONNECTIONREFERENCE();\r\n\t\t\tcrefNew.setCNXREFNAME(\"DB Connection\");\r\n\t\t\tcrefNew.setCONNECTIONNAME(\"\");\r\n\t\t\tcrefNew.setCONNECTIONNUMBER(\"1\");\r\n\t\t\tcrefNew.setCONNECTIONSUBTYPE(\"\");\r\n\t\t\tcrefNew.setCONNECTIONTYPE(\"Relational\");\r\n\t\t\tcrefNew.setVARIABLE(\"$DBConnectionCSS\");\r\n\r\n\t\t\tseNew.getCONNECTIONREFERENCE().add(crefNew);\r\n\r\n\t\t\tif(!sNew.getSESSIONEXTENSION().contains(seNew)){\r\n\t\t\t\tsNew.getSESSIONEXTENSION().add(seNew);\r\n\t\t\t\tiSessTrnsCounter++;\r\n\t\t\t}\r\n\r\n\r\n\r\n\t\t\tinNew = new INSTANCE();\r\n\t\t\tinNew.setDESCRIPTION(\"\");\r\n\t\t\tinNew.setNAME(alSQ.get(j).getNAME());\r\n\t\t\tinNew.setTRANSFORMATIONNAME(alSQ.get(j).getNAME());\r\n\t\t\tinNew.setTRANSFORMATIONTYPE(\"Source Qualifier\");\r\n\t\t\tinNew.setTYPE(\"TRANSFORMATION\");\r\n\t\t\tASSOCIATEDSOURCEINSTANCE asiNew = new ASSOCIATEDSOURCEINSTANCE();\r\n\t\t\tasiNew.setNAME(alSQ.get(j).getNAME());\r\n\r\n\t\t\tif(!inNew.getASSOCIATEDSOURCEINSTANCE().contains(asiNew)){\r\n\t\t\t\tinNew.getASSOCIATEDSOURCEINSTANCE().add(asiNew);\r\n\t\t\t}\r\n\t\t\tif(!newMap.getINSTANCE().contains(inNew)){\r\n\t\t\t\tnewMap.getINSTANCE().add(inNew);\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\tfor(int j = 0; j < alTgt.size();j++){\r\n\t\t\tstfNew = new SESSTRANSFORMATIONINST();\r\n\t\t\tstfNew.setISREPARTITIONPOINT(\"NO\");\r\n\t\t\tstfNew.setPARTITIONTYPE(\"PASS THROUGH\");;\r\n\t\t\tstfNew.setPIPELINE(\"0\");\r\n\t\t\tstfNew.setSINSTANCENAME(alTgt.get(j).getNAME());\r\n\t\t\tstfNew.setSTAGE(Integer.toString(iSessTrnsCounter));\r\n\t\t\tstfNew.setTRANSFORMATIONNAME(alTgt.get(j).getNAME());\r\n\t\t\tstfNew.setTRANSFORMATIONTYPE(\"Target Definition\");\r\n\r\n\t\t\tif(!sNew.getSESSTRANSFORMATIONINST().contains(stfNew)){\r\n\t\t\t\tsNew.getSESSTRANSFORMATIONINST().add(stfNew);\r\n\t\t\t}\r\n\r\n\t\t\tinNew = new INSTANCE();\r\n\t\t\tinNew.setDESCRIPTION(\"\");\r\n\t\t\tinNew.setNAME(alTgt.get(j).getNAME());\r\n\t\t\tinNew.setTRANSFORMATIONNAME(alTgt.get(j).getNAME());\r\n\t\t\tinNew.setTRANSFORMATIONTYPE(\"Target Definition\");\r\n\t\t\tinNew.setTYPE(\"TARGET\");\r\n\t\t\tif(!newMap.getINSTANCE().contains(inNew)){\r\n\t\t\t\tnewMap.getINSTANCE().add(inNew);\r\n\t\t\t\tiSessTrnsCounter++;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tinNew = new INSTANCE();\r\n\t\tinNew.setDESCRIPTION(\"\");\r\n\t\tinNew.setNAME(trns.getNAME());\r\n\t\tinNew.setREUSABLE(\"NO\");\r\n\t\tinNew.setTRANSFORMATIONNAME(trns.getNAME());\r\n\t\tinNew.setTRANSFORMATIONTYPE(trns.getTYPE());\r\n\t\tinNew.setTYPE(\"TRANSFORMATION\");\r\n\t\tif(!newMap.getINSTANCE().contains(inNew)){\r\n\t\t\tnewMap.getINSTANCE().add(inNew);\r\n\t\t}\r\n\r\n\t\tpNew = new PARTITION();\r\n\r\n\t\tpNew.setDESCRIPTION(\"\");\r\n\t\tpNew.setNAME(\"Partition #1\");\r\n\r\n\t\tstfNew = new SESSTRANSFORMATIONINST();\r\n\t\tstfNew.setISREPARTITIONPOINT(\"NO\");\r\n\t\tstfNew.setPIPELINE(\"0\");\r\n\t\tstfNew.setSINSTANCENAME(trns.getNAME());\r\n\t\tstfNew.setSTAGE(Integer.toString(iSessTrnsCounter));\r\n\t\tiSessTrnsCounter = 0;\r\n\t\tstfNew.setTRANSFORMATIONNAME(trns.getNAME());\r\n\t\tstfNew.setTRANSFORMATIONTYPE(trns.getTYPE());\r\n\t\tstfNew.getPARTITION().add(pNew);\r\n\r\n\t\tif(!sNew.getSESSTRANSFORMATIONINST().contains(stfNew)){\r\n\t\t\tsNew.getSESSTRANSFORMATIONINST().add(stfNew);\r\n\t\t}\r\n\r\n\r\n\t\tsNew.getATTRIBUTE().addAll(pwM.getREPOSITORY().get(0).getFOLDER().get(0).getWORKFLOW().get(0).getSESSION().get(0).getATTRIBUTE());\r\n\t\tsNew.setDESCRIPTION(\"\");\r\n\t\tsNew.setISVALID(\"YES\");\r\n\t\tsNew.setMAPPINGNAME(newMap.getNAME());\r\n\t\tsNew.setNAME(\"s_\" + newMap.getNAME());\r\n\t\tsNew.setREUSABLE(\"NO\");\r\n\t\tsNew.setSORTORDER(\"Binary\");\r\n\t\tsNew.setVERSIONNUMBER(\"1\");\r\n\t\tsNew.setCONFIGREFERENCE(pwM.getREPOSITORY().get(0).getFOLDER().get(0).getWORKFLOW().get(0).getSESSION().get(0).getCONFIGREFERENCE());\r\n\t\tfor(SESSIONCOMPONENT sc : pwM.getREPOSITORY().get(0).getFOLDER().get(0).getWORKFLOW().get(0).getSESSION().get(0).getSESSIONCOMPONENT()){\r\n\t\t\tif(!sNew.getSESSIONCOMPONENT().contains(sc)){\r\n\t\t\t\tsNew.getSESSIONCOMPONENT().add(sc);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\r\n\t\twfNew.setDESCRIPTION(\"This workflow has been generated from....\");\r\n\t\twfNew.setISENABLED(\"YES\");\r\n\t\twfNew.setISRUNNABLESERVICE(\"NO\");\r\n\t\twfNew.setISSERVICE(\"NO\");\r\n\t\twfNew.setISVALID(\"YES\");\r\n\t\twfNew.setNAME(\"wf_\"+ trns.getNAME());\r\n\t\twfNew.setREUSABLESCHEDULER(\"NO\");\r\n\t\twfNew.setSCHEDULERNAME(\"Scheduler\");\r\n\t\twfNew.setSERVERNAME(pwM.getREPOSITORY().get(0).getFOLDER().get(0).getWORKFLOW().get(0).getSERVERNAME());\r\n\t\twfNew.setSERVERDOMAINNAME(pwM.getREPOSITORY().get(0).getFOLDER().get(0).getWORKFLOW().get(0).getSERVERDOMAINNAME());\r\n\t\twfNew.setSUSPENDONERROR(\"NO\");\r\n\t\twfNew.setTASKSMUSTRUNONSERVER(\"NO\");\r\n\t\twfNew.setVERSIONNUMBER(\"1\");\r\n\t\twfNew.setSCHEDULER(schNew);\r\n\t\twfNew.getTASK().add(tNew);\r\n\t\twfNew.getSESSION().add(sNew);\r\n\t\twfNew.getTASKINSTANCE().addAll(pwM.getREPOSITORY().get(0).getFOLDER().get(0).getWORKFLOW().get(0).getTASKINSTANCE());\r\n\t\twfNew.getWORKFLOWVARIABLE().addAll(pwM.getREPOSITORY().get(0).getFOLDER().get(0).getWORKFLOW().get(0).getWORKFLOWVARIABLE());\r\n\t\twfNew.getATTRIBUTE().addAll(pwM.getREPOSITORY().get(0).getFOLDER().get(0).getWORKFLOW().get(0).getATTRIBUTE());\r\n\r\n\t\tfNew.setDESCRIPTION(pwM.getREPOSITORY().get(0).getFOLDER().get(0).getDESCRIPTION());\r\n\t\tfNew.setNAME(trns.getNAME());\r\n\t\tfNew.setOWNER(pwM.getREPOSITORY().get(0).getFOLDER().get(0).getOWNER());\r\n\t\tfNew.setPERMISSIONS(pwM.getREPOSITORY().get(0).getFOLDER().get(0).getPERMISSIONS());\r\n\t\tfNew.setSHARED(pwM.getREPOSITORY().get(0).getFOLDER().get(0).getSHARED());\r\n\t\tfNew.setUUID(pwM.getREPOSITORY().get(0).getFOLDER().get(0).getUUID());\r\n\t\tfNew.getTARGET().addAll(alTgt);\r\n\t\tfNew.getSOURCE().addAll(alSrc);\r\n\t\tfNew.getMAPPING().add(newMap);\r\n\r\n\t\tfNew.getWORKFLOW().add(wfNew);\r\n\r\n\t\trNew.setCODEPAGE(pwM.getREPOSITORY().get(0).getCODEPAGE());\r\n\t\trNew.setDATABASETYPE(pwM.getREPOSITORY().get(0).getDATABASETYPE());\r\n\t\trNew.setNAME(pwM.getREPOSITORY().get(0).getNAME());\r\n\t\trNew.setVERSION(pwM.getREPOSITORY().get(0).getVERSION());\r\n\t\trNew.getFOLDER().add(fNew); \r\n\r\n\r\n\r\n\t\tpmNew.setCREATIONDATE(pwM.getCREATIONDATE());\r\n\t\tpmNew.setREPOSITORYVERSION(pwM.getREPOSITORYVERSION());\r\n\t\tpmNew.getREPOSITORY().add(rNew);\r\n\r\n\t\t//System.out.println(pmNew.getREPOSITORY().get(0).getFOLDER().get(0).getSOURCE().get(0).getNAME()+\" ----> \"+pmNew.getREPOSITORY().get(0).getFOLDER().get(0).getMAPPING().get(0).getTRANSFORMATION().get(0).getNAME()+\" -----> \"+pmNew.getREPOSITORY().get(0).getFOLDER().get(0).getTARGET().get(0).getNAME());\r\n\t\tdesc(pmNew.getREPOSITORY().get(0).getFOLDER().get(0));\r\n\t\twriteToXML(pmNew);\r\n\t\treturn pmNew;\r\n\t}", "title": "" }, { "docid": "1baa554e88039cffb08f457a39bb4f31", "score": "0.4999759", "text": "@Override\n\tpublic String getAssembler() {\n\t\tString assembler = super.getAssembler();\n\t\tboolean agregado = false;\n\n\t\tint num_actual = controladorTercetos.getNumTercetoActual();\n\t\tnum_actual -= 1;\n\t\t\n\t\t//controladorTercetos.getTerceto(num_actual) \n\t\tcontroladorTercetos.setRegMatriz(controladorTercetos.getTerceto(controladorTercetos.getNumTercetoActual()-1).getRegistro(),1);\n\t\tassembler = assembler + \"CMP \" + controladorTercetos.getTerceto(controladorTercetos.getNumTercetoActual()-1).getRegistro() +\", \" +(t1.getColumnas()*t1.getFilas()*4) +\"\\n\";\n\t\tassembler = assembler + \"JG \" + ConvertidorAssembler.labelFueraRango +\"\\n\" ;\n\t\t\n\t\tif(act){\n\t\t\tcontroladorTercetos.setRegMatriz(controladorTercetos.getTerceto(controladorTercetos.getNumTercetoActual()-1).getRegistro(),0);\n//\t\t\tassembler = assembler +\"MOV \" + \"matrix\" +\", \" +controladorTercetos.getTerceto(controladorTercetos.getNumTercetoActual()-1).getRegistro() + \"\\n\";\n//\t\t\tcontroladorTercetos.liberarRegistro(this.getRegistro());\n\t\t}\n\t\treturn assembler;\n\t}", "title": "" }, { "docid": "90d4f027490238fd55dd9e63c87cf7fb", "score": "0.49648434", "text": "private void buildOriginalExpression2() {\n\t\tExpression e1 = new DoubleValue(1.1);\n\t\tExpression e2 = new DoubleValue(2.3);\n\t\tExpression e3 = new DoubleValue(3.3);\n\t\tExpression e4 = new DoubleValue(4.5);\n\t\tExpression e5 = new ColumnNode(\"S.A\");\n\t\tExpression e6 = new StringValue(\"\\\"%%%\\\"\");\n\t\tExpression e7 = new ColumnNode(\"S.B\");\n\t\tExpression e8 = new StringValue(\"orz\");\n\t\tExpression e9 = new GreaterThanOrEquals(e1,e2);\n\t\tExpression e10 = new LessThanOrEquals(e3,e4);\n\t\tExpression e11 = new LikeOperator(e5,e6);\n\t\tExpression e12 = new InOperator(e7,e8);\n\t\tExpression e13 = new NotOperator(e9);\n\t\tExpression e14 = new OrOperator(e13,e10);\n\t\tExpression e15 = new NotOperator(e14);\n\t\tExpression e16 = new AndOperator(e11,e12);\n\t\tExpression e17 = new Parenthesis(e16);\n\t\tExpression e18 = new OrOperator(e15,e17);\n\t\toriginal2 = new Parenthesis(e18);\n\t}", "title": "" }, { "docid": "90b9adbc86e6c64e951ee0d414141fbd", "score": "0.4946719", "text": "@Override\r\n public void generate() {\r\n log.info(\"---- start generating forms gbu file ----\");\r\n try {\r\n\r\n openFile();\r\n\r\n writeHeader();\r\n\r\n writeBytes(new byte[]{0x00, 0x00, 0x00, 0x00});\r\n\r\n writeObjectDefinition();\r\n \r\n //for some reasons the amount of objects take 2 bytes in the forms gbu, \r\n //so no postfix\r\n countPostfix = new byte[] {};\r\n \r\n //objects \r\n writeObjectsOfType(ObjectType.GENERAL_MODULE, \"%s.fmb\");\r\n\r\n //templates\r\n String template = props.formsTemplate;\r\n writeObjectsOfType(ObjectType.GENERAL_MODULE, template);\r\n\r\n //olb\r\n writeBytes(new byte[]{0x00, 0x00});\r\n String objectLibrary = props.objectLibrary;\r\n writeObjectsOfType(ObjectType.GENERAL_MODULE, objectLibrary);\r\n\r\n writeBytes(0x00, 261);\r\n\r\n //short names take a count postfix again \r\n countPostfix = new byte[] {0x00, 0x00};\r\n writeObjectsOfType(ObjectType.GENERAL_MODULE);\r\n\r\n //closing part\r\n writeClosingPart();\r\n \r\n writeLogFileName();\r\n\r\n } catch (IOException ioe) {\r\n log.error(\"error ocurrend writing the forms file\", ioe);\r\n } finally {\r\n closeFile();\r\n }\r\n log.info(\"---- finished writing to forms file ----\\n\");\r\n\r\n }", "title": "" }, { "docid": "f4f8d6b398bcb72229897d122e2b47bb", "score": "0.4908766", "text": "private String buildOutput(Map<String, String> input) {\n\n String output;\n for (Map.Entry e: input.entrySet()) {\n sb.append(\"For customer: \").append(e.getKey())\n .append(\" item \").append(e.getValue()).append(\" is recommended!\");\n }\n output = sb.toString();\n return output;\n }", "title": "" }, { "docid": "aca544cbec62ce7b70dc744af0597cf8", "score": "0.48910215", "text": "@Override\n\tpublic void Edgeinputouputformat() {\n\n\t}", "title": "" }, { "docid": "e5c7d4b6166e4b051a56ccd4e56fca42", "score": "0.487854", "text": "private void toCreation() {\n }", "title": "" }, { "docid": "93bf42c09d40011caf5c41566ed02c60", "score": "0.4875842", "text": "private synchronized void buildRow() {\n\t\tif (!isChanged)\n\t\t\treturn;\n\n\t\tStringBuilder s = new StringBuilder();\n\n\t\tString taxon = null;\n\t\tString dbObjectSynonym = null;\n\t\tString dbObjectName = null;\n\t\tString dbObjectType = null;\n\t\tString symbol = null;\n\n\t\tif (this.bioentityObject != null) {\n\t\t\ttaxon = bioentityObject.getNcbiTaxonId();\n\t\t\tif (taxon != null) {\n\t\t\t\ttaxon = \"taxon:\" + BuilderTools.removePrefix(taxon, ':');\n\t\t\t}\n\n\t\t\tdbObjectName = this.bioentityObject.getFullName();\n\t\t\tdbObjectType = this.bioentityObject.getTypeCls();\n\t\t\tList<String> synonyms = this.bioentityObject.getSynonyms();\n\t\t\tif (synonyms != null && !synonyms.isEmpty()) {\n\t\t\t\tdbObjectSynonym = StringUtils.join(synonyms, '|');\n\t\t\t}\n\t\t\tsymbol = this.bioentityObject.getSymbol();\n\t\t}\n\n\t\tif (this.bioentity != null) {\n\t\t\tint i = bioentity.indexOf(\":\");\n\t\t\tif (i > -1) {\n\t\t\t\ts.append(bioentity.substring(0, i)).append(\"\\t\").append(bioentity.substring(i + 1)).append(\"\\t\");\n\t\t\t} else {\n\t\t\t\ts.append(bioentity).append(\"\\t\");\n\t\t\t}\n\t\t} else {\n\t\t\ts.append(\"\\t\\t\");\n\t\t}\n\n\t\tappend(symbol, s);\n\t\tappend(BuilderTools.buildGafQualifierString(this), s);\n\t\tappend(cls, s);\n\t\tappend(BuilderTools.buildReferenceIdsString(referenceIds), s);\n\t\tappend(shortEvidence, s);\n\t\tappend(BuilderTools.buildWithString(withInfoList), s);\n\t\tappend(aspect, s);\n\t\tappend(dbObjectName, s);\n\t\tappend(dbObjectSynonym, s);\n\t\tappend(dbObjectType, s);\n\t\tappend(BuilderTools.buildTaxonString(taxon, actsOnTaxonId), s);\n\t\tappend(lastUpdateDate, s);\n\t\tappend(assignedBy, s);\n\n\t\tappend(BuilderTools.buildExtensionExpression(extensionExpressionList), s);\n\t\tappend(geneProductForm, s);\n\n\t\tthis.isChanged = false;\n\t\tthis.toString = s.toString();\n\t}", "title": "" }, { "docid": "1f81f5b9c6178b0b2f0eddbc452bd4bd", "score": "0.48738205", "text": "public void generateOutput() {\r\n\t\tint counter = 0;\r\n\t\tfor(int i = 0; i < hidden.length; i++) {\r\n\t\t\tfor(int j = 0; j < input.length; j++) {\r\n\t\t\t\thidden[i] += input[j] * weights[counter];\r\n\t\t\t\tcounter++;\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tfor(int i = 0; i < output.length; i++) {\r\n\t\t\tfor(int j = 0; j < hidden.length; j++) {\r\n\t\t\t\toutput[i] += hidden[j] * weights[counter];\r\n\t\t\t\toutput[i] = output[i] > 0 ? 1 : 0;\r\n\t\t\t\tcounter++;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "41a2b04afbd70afe5d573f725bc9aff0", "score": "0.48667365", "text": "protected void generate(){\n \tresponse += getHeader();\n response += getBody() + CRLF2;\n\n }", "title": "" }, { "docid": "b26d110810f56c124765a942c61e42f1", "score": "0.4864472", "text": "private Transformations() {}", "title": "" }, { "docid": "44a3e2bee9e67d6f27a7b6489292344c", "score": "0.48567635", "text": "private static void generate(ArrayList<ArrayList<String>> lists, ArrayList<String> result, ArrayList<String> out, int index) {\n\t\tif (index >= lists.size()) {\n\t\t\t//System.out.println(String.valueOf(result));\n\t\t\tString str = \"\";\n\t\t\tfor(String s : result)\n\t\t\t\tstr = str + s.strip() + \" \";\n\t\t\tout.add(str.substring(0,str.length()-1));\n\t\t\t\n\t\t\treturn;\n\t\t}\n\t\tArrayList<String> list = lists.get(index);\n\t\tfor (int i = 0; i < list.size(); i++) {\n\t\t\tresult.add(list.get(i));\n\t\t\tgenerate(lists, result, out, index + 1);\n\t\t\tresult.remove(result.size() - 1);\n\t\t}\n\t}", "title": "" }, { "docid": "8c6b25dca54cf013ee742928e3d3bd26", "score": "0.48538992", "text": "private String internalSerialize() {\n return GSON.toJson(this);\n }", "title": "" }, { "docid": "dda2a7935a2d8fa27023fafe26fee207", "score": "0.48529348", "text": "Output createOutput();", "title": "" }, { "docid": "dda2a7935a2d8fa27023fafe26fee207", "score": "0.48529348", "text": "Output createOutput();", "title": "" }, { "docid": "d11ff5717c24656ed652707b53247a7e", "score": "0.4850961", "text": "private DmTranslateOutput(Builder builder) {\n super(builder);\n }", "title": "" }, { "docid": "88a8fb36ced07ff3d2c68526445e5a6a", "score": "0.48505303", "text": "public String buildingString() {\n whichBuild = 1 - whichBuild;\n if (whichBuild == 1)\n return \"420 400;1 1 140 60 60 60 10;140 1 240 60 180 60 10;240 1 360 60 300 60 15;1 90 120 180 40 90 15;120 90 360 180 220 90 15\";\n else\n return \"400 400;90 10 320 70 220 70 10;10 180 100 380 60 180 15;100 180 320 380 200 180 20;\";\n }", "title": "" }, { "docid": "c19c2a09682747197f62e0a1b1fc7332", "score": "0.4841751", "text": "@Override\n public void formatOut(String filename) {\n }", "title": "" }, { "docid": "869bb3891406fcd243c274ab54c8f83e", "score": "0.48288655", "text": "public void generate() {\n final String pkg = schema.getCommonNamespace();\n final PrintWriter writer = createTextFile(pkg);\n\n try {\n generate(writer);\n } finally {\n writer.close();\n }\n }", "title": "" }, { "docid": "4fbb0fcf19f7a31204d40194316694d7", "score": "0.48176536", "text": "String createAlgForm() {\n String res;\n double epsilon = 0.000001;\n if (Math.abs(this.re) > epsilon && this.im > epsilon) {\n res = String.format(\"%.0f + %.0fi\", this.re, this.im);\n } else if (Math.abs(this.re) <= epsilon &&\n Math.abs(this.im) > epsilon) {\n res = String.format(\"%.0fi\", this.im);\n } else if (Math.abs(this.im) <= epsilon) {\n res = String.format(\"%.0f\", this.re);\n } else {\n res = String.format(\"%.0f - %.0fi\", this.re,\n Math.abs(this.im));\n }\n if (Math.abs(this.im) <= 1 + epsilon) {\n res = res.replace(\"1i\", \"i\");\n }\n return res;\n }", "title": "" }, { "docid": "99bb60e9447d5e29b2d275a106465f9d", "score": "0.4804283", "text": "protected void generateImpl(PhpWriter out)\n\t throws IOException\n {\n // the \"if\" test handles Java's issue with trailing statements\n \n if (getExpr() != null) {\n out.print(\"return \");\n \n // php/3a5h\n getExpr().generateValue(out);\n \n /**\n Expr copy = getExpr().createCopy();\n\n if (getExpr() instanceof VarExpr)\n copy.generateReturn(out);\n else\n copy.generate(out);\n */\n \n out.println(\";\");\n }\n else {\n out.print(\"return NullValue.NULL;\");\n }\n }", "title": "" }, { "docid": "4e8b98659e1613d8a5de130f95533f0a", "score": "0.47971395", "text": "@Override\n public String formatRecursively(Interchange interchange) {\n return Edifatto.formatRecursively(interchange);\n }", "title": "" }, { "docid": "6399844101c59cb2e0c1443da1da9cea", "score": "0.47899422", "text": "protected CharSequence _generateMethodStatement(final MethodCall mcst) {\n StringConcatenation _builder = new StringConcatenation();\n return _builder;\n }", "title": "" }, { "docid": "d67b5003cc5f86365f1d8a357ee9a837", "score": "0.47812152", "text": "@Override\n\t\tpublic String toStringWithNoFormatting() {\n\t\t\tStringBuilder sb=new StringBuilder();\n\t\t\tfor(int i=0;i<expressions.size();i++){\n\t\t\t\tsb.append(expressions.get(i).toStringWithNoFormatting());// TODO Creating Problems\n\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\treturn sb.toString();\n\t\t}", "title": "" }, { "docid": "46c1583b33bcdabc84446d44b634e3fd", "score": "0.47582233", "text": "private String resultToText() {\n String resultString = \"\";\n\n //Adding column names:\n if(typeTB.getValue()){\n resultString += \"MoleculeType\\t\";\n }\n\n if(identifierTB.getValue()){\n resultString += \"Identifier\\t\";\n }\n\n if(nameTB.getValue()){\n resultString += \"MoleculeName\\t\";\n }\n\n //Adding line break in case there are column names\n if(resultString.length() > 0){\n resultString += \"\\n\";\n }\n\n resultString += buildGroupString(chemTB, result.getChemicals(), PropertyType.CHEMICAL_COMPOUNDS.getTitle());\n resultString += buildGroupString(protTB, result.getProteins(), PropertyType.PROTEINS.getTitle());\n resultString += buildGroupString(sequTB, result.getSequences(), PropertyType.SEQUENCES.getTitle());\n resultString += buildGroupString(otheTB, result.getOthers(), PropertyType.OTHERS.getTitle());\n\n return resultString;\n }", "title": "" }, { "docid": "bbdb96702d71a8af1e828a96ddeeb6dc", "score": "0.474719", "text": "public JDefinedClass generateClass(JDefinedClass parentClass) throws JClassAlreadyExistsException {\n JDefinedClass $impl = parentClass._class(JMod.PUBLIC | JMod.STATIC, resource.getClassName());\n for (ResourceTypeNode t: resource.getResourceTypes()) {\n $impl._implements(t.getGeneratedInterface());\n }\n javaDoc.generateClassDoc(resource, $impl);\n $jaxbDispatcher = $impl.field(JMod.PRIVATE, JAXBDispatcher.class, \"_jaxbDispatcher\");\n $dsDispatcher = $impl.field(JMod.PRIVATE, DSDispatcher.class, \"_dsDispatcher\");\n $uriBuilder = $impl.field(JMod.PRIVATE, UriBuilder.class, \"_uriBuilder\");\n $jaxbContext = $impl.field(JMod.PRIVATE, JAXBContext.class, \"_jc\");\n JClass mapOfStringObject = codeModel.ref(HashMap.class).narrow(String.class, Object.class);\n $templateMatrixParamValMap = $impl.field(JMod.PRIVATE, mapOfStringObject, \"_templateAndMatrixParameterValues\");\n \n // generate constructor with parameters for each WADL defined path parameter\n JMethod $ctor = $impl.constructor(JMod.PUBLIC);\n JDocComment jdoc = $ctor.javadoc();\n jdoc.append(Wadl2JavaMessages.CREATE_INSTANCE());\n for (PathSegment segment: resource.getPathSegments()) {\n for (Param p: segment.getTemplateParameters()) {\n $ctor.param(GeneratorUtil.getJavaType(p, codeModel, $impl, javaDoc),\n GeneratorUtil.makeParamName(p.getName()));\n javaDoc.generateParamDoc(p, $ctor);\n generateBeanProperty($impl, p, false);\n }\n for (Param p: segment.getMatrixParameters()) {\n if (p.isRequired()) {\n $ctor.param(GeneratorUtil.getJavaType(p, codeModel, $impl, javaDoc),\n GeneratorUtil.makeParamName(p.getName()));\n javaDoc.generateParamDoc(p, $ctor);\n }\n generateBeanProperty($impl, p, false);\n }\n }\n $ctor._throws(JAXBException.class);\n JBlock $ctorBody = $ctor.body();\n if (generatedPackages.length() > 0) {\n // codegen: jc = JAXBContext.newInstance(\"com.example.test\");\n $ctorBody.assign($jaxbContext, codeModel.ref(JAXBContext.class).staticInvoke(\"newInstance\").arg(JExpr.lit(generatedPackages)));\n // codegen: jaxbDispatcher = new JAXBDispatcher(jc);\n $ctorBody.assign($jaxbDispatcher, JExpr._new(codeModel.ref(JAXBDispatcher.class)).arg($jaxbContext));\n }\n // codegen: dsDispatcher = new DSDispatcher();\n $ctorBody.assign($dsDispatcher, JExpr._new(codeModel.ref(DSDispatcher.class)));\n // codegen: uriBuilder = new UriBuilder();\n $ctorBody.assign($uriBuilder, JExpr._new(codeModel.ref(UriBuilder.class)));\n\n // codegen: java.util.List<String> matrixParamSet;\n JClass listOfString = codeModel.ref(List.class).narrow(String.class);\n JVar $matrixParamSet = $ctorBody.decl(listOfString, \"_matrixParamSet\");\n for (PathSegment segment: resource.getPathSegments()) {\n // codegen: matrixParamSet = uriBuilder.addPathSegment(...)\n $ctorBody.assign($matrixParamSet, $uriBuilder.invoke(\"addPathSegment\").arg(JExpr.lit(segment.getTemplate())));\n for (Param p: segment.getMatrixParameters()) {\n // codegen: matrixParamSet.add(...)\n $ctorBody.invoke($matrixParamSet, \"add\").arg(JExpr.lit(p.getName()));\n }\n }\n \n // codegen: templateAndMatrixParameterValues = new HashMap<String, Object>();\n $ctorBody.assign($templateMatrixParamValMap, JExpr._new(mapOfStringObject));\n for (PathSegment segment: resource.getPathSegments()) {\n for (Param p: segment.getTemplateParameters()) {\n // codegen: templateAndMatrixParameterValues.put(name, value);\n $ctorBody.invoke($templateMatrixParamValMap, \"put\").arg(JExpr.lit(p.getName())).arg(JExpr.ref(GeneratorUtil.makeParamName(p.getName())));\n }\n for (Param p: segment.getMatrixParameters()) {\n if (p.isRequired()) {\n // codegen: templateAndMatrixParameterValues.put(name, value);\n $ctorBody.invoke($templateMatrixParamValMap, \"put\").arg(JExpr.lit(p.getName())).arg(JExpr.ref(GeneratorUtil.makeParamName(p.getName())));\n }\n }\n }\n\n $class = $impl;\n return $class;\n }", "title": "" }, { "docid": "616febb22d798d47f70ce5b4e770ab93", "score": "0.47446737", "text": "public String toTex(Map<String, Ingredient> ingredientMap) {\n StringBuilder sb = new StringBuilder();\n\n // Ingredient list\n StringBuilder il = new StringBuilder();\n //il.append(\" \\\\begin{ruingredients}\" + System.lineSeparator());\n for (Content c: contents) {\n il.append(c.toTex(ingredientMap));\n }\n //il.append(\" \\\\end{ruingredients}\" + System.lineSeparator());\n\n // Co2 is currently for the entire course, lets do per person too\n String co2string = String.format(\"%.2f/%.2f\", co2/persons, co2);\n\n // The steps needs to be calculated from \\\\ in the code.\n List<String> stepsList = Arrays.asList(recipe.split(\"\\\\\\\\\"));\n StringBuilder steps = new StringBuilder();\n for(String step : stepsList) {\n steps.append(\"\\\\rustep{\").append(step.trim()).append(\"}\").append(System.lineSeparator());\n }\n\n\n sb\n .append(\"\\\\begin{rurecipe}\" + System.lineSeparator())\n .append(\" {\" + name + \"}\" + System.lineSeparator())\n .append(\" {\" + desc.replaceAll((\"\\\\\\\\\"), (\"\\\\\\\\\\\\\\\\\" + System.lineSeparator())) + \"}\" + System.lineSeparator())\n .append(\" {\" + persons + \"}\" + System.lineSeparator())\n // #4 : C2\n .append(\" {\" + co2string + \"}\" + System.lineSeparator())\n .append(\" {\" + co2Rating + \"}\" + System.lineSeparator())\n .append(\" {\" + time + \"}\" + System.lineSeparator())\n .append(\" {\" + il.toString() + \"}\" + System.lineSeparator())\n .append(\" {\" + steps.toString() + \"}\" + System.lineSeparator())\n .append(\"\\\\end{rurecipe}\" + System.lineSeparator() + System.lineSeparator());\n\n return sb.toString();\n }", "title": "" }, { "docid": "d256d6e2b7a5c5fa6047703262a88670", "score": "0.47371435", "text": "private void wholestagecodegen_init_6() {\n/* 1328 */ agg_unsafeRowJoiner = agg_plan.createUnsafeJoiner();\n/* 1329 */ this.wholestagecodegen_numOutputRows = (org.apache.spark.sql.execution.metric.SQLMetric) references[17];\n/* 1330 */ this.wholestagecodegen_aggTime = (org.apache.spark.sql.execution.metric.SQLMetric) references[18];\n/* 1331 */\n/* 1332 */ }", "title": "" }, { "docid": "f6f6da5a7a7fe1acf31becded6b4ebbc", "score": "0.47324812", "text": "private static EncodingOutput buildEncodingOutput(Output output, String outputPath) {\n AclEntry aclEntry = new AclEntry();\n aclEntry.setPermission(AclPermission.PUBLIC_READ);\n\n EncodingOutput encodingOutput = new EncodingOutput();\n encodingOutput.setOutputPath(buildAbsolutePath(outputPath));\n encodingOutput.setOutputId(output.getId());\n encodingOutput.addAclItem(aclEntry);\n return encodingOutput;\n }", "title": "" }, { "docid": "6ea609c2e61bc0af65f8493ed653af7f", "score": "0.47322306", "text": "public String toStringStructure() {\n return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)\n .append(\"attributes\", attributes.entrySet().stream().map(entry-> \" \"+entry.getKey()+\"=\"+entry.getValue()).collect(Collectors.joining(\"\\n\")))\n .append(\"renderers\", renderers.stream().map(BaseWordRenderer::toString).collect(Collectors.joining(\"\\n \", \" \", \"\")))\n .build();\n }", "title": "" }, { "docid": "f5c48f62955e7f01f55563af7118751d", "score": "0.473005", "text": "private void finishUp(){\n\t\tif (last_depth == 1) {\n\t\t\tl1Buffer.append(((long) last_l1_index << 32) | 0xffffffffL);\n\t\t} else if (last_depth == 2) {\n\t\t\tl2Buffer.append(((long) last_l2_index << 32) | 0xffffffffL);\n\t\t}\n\t}", "title": "" }, { "docid": "52cb0042561905098ec8164c3c62f738", "score": "0.47207713", "text": "void newCompress() {\n\t\tSystem.out.print(\"String[][] bigTree = {\");\n\t\tfor (int a = 0; a < bList.size(); a++) {\n\t\t\tif (a == 0) {\n\t\t\t\tSystem.out.print(\" {\\\"\" + bList.get(a).getWord() + \"\\\"}\");\n\t\t\t} else {\n\t\t\t\tSystem.out.print(\", {\\\"\" + bList.get(a).getWord() + \"\\\"}\");\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\" };\");\n\t\tSystem.out.print(\"int[][][] treeGoesTo = {\");\n\t\tfor (int a = 0; a < bList.size(); a++) {\n\t\t\tint[] goTo = bList.get(a).getGoesTo();\n\t\t\tif (goTo.length == 0) {\n\t\t\t\tgoTo = appendIntAr(goTo, -1);\n\t\t\t}\n\t\t\tSystem.out.print(\" {{\");\n\t\t\tfor (int b = 0; b < goTo.length; b++) {\n\t\t\t\tif (b == 0) {\n\t\t\t\t\tSystem.out.print(\" \" + goTo[b]);\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.print(\", \" + goTo[b]);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (a + 1 < bList.size()) {\n\t\t\t\tSystem.out.print(\" }},\");\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\" }}};\");\n\n\t\tSystem.out.print(\"int[] endWhen = {\");\n\t\tfor (int a = 0; a < bList.size(); a++) {\n\t\t\tif (a == 0) {\n\t\t\t\tSystem.out.print(\"\" + bList.get(a).getEndWhen());\n\t\t\t} else {\n\t\t\t\tSystem.out.print(\",\" + bList.get(a).getEndWhen());\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"};\");\n\t}", "title": "" }, { "docid": "5cadd24dcc2599c1cb30041507b97ccb", "score": "0.4710602", "text": "public abstract String getCompiledModelTransformationFilePath();", "title": "" }, { "docid": "f7f3228a1a4a3d905f27cc7a534d685e", "score": "0.47105354", "text": "public Addition()\r\n/* 16: */ {\r\n/* 17:22 */ this.inputFields = \"inputImage1,inputImage2\";\r\n/* 18:23 */ this.outputFields = \"output\";\r\n/* 19: */ }", "title": "" }, { "docid": "d47dbf4b178e150817941a501cc99e36", "score": "0.4701053", "text": "private String buildResult(List<Difference> differences) {\n StringBuilder result = new StringBuilder();\n for (Difference difference : differences) {\n result.append(difference.toString()).append(StringUtils.STRING_NEWLINE);\n }\n\n return result.toString().trim();\n }", "title": "" }, { "docid": "b1b0adfbba0b6de160a465c88f9a7d6b", "score": "0.46996287", "text": "private AnswerMergerOutput(Builder builder) {\n super(builder);\n }", "title": "" }, { "docid": "fa7706b95b367f3c265f735656660ba7", "score": "0.46962833", "text": "private void buildChain() {\n\t\tTemplateHandler imageTemplate = new ImageTemplate();\n\t\tTemplateHandler singleTemplate = new SingleTemplate();\n\t\tTemplateHandler categoryTemplate = new CategoryTemplate();\n\t\tTemplateHandler archiveTemplate = new ArchiveTemplate();\n\t\tTemplateHandler genericTemplate = new GenericTemplate();\n\t\t// linking\n\t\timageTemplate.nextTemplate = singleTemplate;//it's next template is singleTemplate\n\n\t\tsingleTemplate.nextTemplate = categoryTemplate;\n\t\tcategoryTemplate.nextTemplate = archiveTemplate;\n\t\tarchiveTemplate.nextTemplate = genericTemplate;\n\t\t// our image template will be the basic starter template\n\t\thandler = imageTemplate;\n\t}", "title": "" }, { "docid": "08ae2a75f544a9bfbd25f221349b2572", "score": "0.46882752", "text": "void toTherion( PrintWriter pw )\n {\n // FIXME triangles ?\n pw.format(\" %d %d %d\\n\", index, v1, v2 );\n }", "title": "" }, { "docid": "ad795ffbf51104c6703dcd820876e496", "score": "0.4688245", "text": "@Override\n\tpublic String toPropertyString() {\n\t\tlogger.entering(_CLASS, \"toPropertyString()\");\n\t\tNumberFormat cFmt = null;\n\t\tString result = null;\n\t\tStringBuilder sb = null;\n\n\t\tsb = new StringBuilder(2048);\n\t\tcFmt = NumberFormat.getCurrencyInstance();\n\t\tsb.append(super.toPropertyString());\n\t\tif (sb.length() > 0) {\n\t\t\tsb.append(\", \");\n\t\t} // END if (sb.length() > 0)\n\t\tsb.append(\", assemblyRequired=\").append(isAssemblyRequired());\n\t\tsb.append(\", blanketWrapRequired=\").append(isBlanketWrapRequired());\n\t\tsb.append(\", contactCompanyName=\").append(getContactName());\n\t\tsb.append(\", contactName=\").append(getContactName());\n\t\tsb.append(\", contactPhone=\").append(getContactPhone());\n\t\tsb.append(\", cratingRequired=\").append(isCratingRequired());\n\t\tsb.append(\", destinationCity=\").append(getDestinationCity());\n\t\tsb.append(\", destinationCompanyName=\").append(getDestinationCompanyName());\n\t\tsb.append(\", destinationContactEmail=\").append(getDestinationContactEmail());\n\t\tsb.append(\", destinationContactName=\").append(getDestinationContactName());\n\t\tsb.append(\", destinationContactPhone=\").append(getDestinationContactPhone());\n\t\tsb.append(\", destinationState=\").append(getDestinationState());\n\t\tsb.append(\", destinationStreetAddress=\").append(getDestinationStreetAddress());\n\t\tsb.append(\", notes=\").append(getNotes());\n\t\tsb.append(\", numberOfFlights=\").append(getNumberOfFlights());\n\t\tsb.append(\", originCity=\").append(getOriginCity());\n\t\tsb.append(\", originCompanyName=\").append(getOriginCompanyName());\n\t\tsb.append(\", originContactEmail=\").append(getOriginContactEmail());\n\t\tsb.append(\", originContactName=\").append(getOriginContactName());\n\t\tsb.append(\", originContactPhone=\").append(getOriginContactPhone());\n\t\tsb.append(\", originState=\").append(getOriginState());\n\t\tsb.append(\", originStreetAddress=\").append(getOriginStreetAddress());\n\t\tsb.append(\", originZip=\").append(getOriginZip());\n\t\tsb.append(\", purchaseOrderNumber=\").append(getPurchaseOrderNumber());\n\t\tsb.append(\", referralOther=\").append(getReferralOther());\n\t\tsb.append(\", referralSource=\").append(getReferralSource());\n\t\tsb.append(\", stairCarry=\").append(isStairCarry());\n\t\tsb.append(\", unpackagingRequired=\").append(isUnpackagingRequired());\n\t\tsb.append(\", valuation=\").append(cFmt.format(getValuation()));\n\t\tsb.append(\", valuationDeclined=\").append(isValuationDeclined());\n\t\tresult = sb.toString();\n\n\t\tlogger.exiting(_CLASS, \"toPropertyString()\", result);\n\t\treturn result;\n\t}", "title": "" }, { "docid": "cddd2dcd6f0b0171b459693a6d67f75b", "score": "0.46863478", "text": "@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:54:53.396 -0500\", hash_original_method = \"AC75BAF5D25E8A26F15256B1C5A7867F\", hash_generated_method = \"281B47BDC9545EEB94B7BF57D4FC12A7\")\n \npublic String encode() {\n return new StringBuffer(this.headerName)\n .append(COLON)\n .append(SP)\n .append(this.value)\n .append(NEWLINE)\n .toString();\n }", "title": "" }, { "docid": "6681ee906bb2fc0278eda24f98ff865c", "score": "0.4683045", "text": "private OutputShape(int firstLength, long firstSize, long firstIndent, long secondSize, long secondIndent) {\n mFirstLength = firstLength;\n mFirstSize = firstSize;\n mFirstIndent = firstIndent;\n mSecondSize = secondSize;\n mSecondIndent = secondIndent;\n }", "title": "" }, { "docid": "4b48efdfecb44d24798a53c7dd5ba365", "score": "0.46828568", "text": "public String ToString()\n {\n\n //Uses the implicit conversion above to convert to string\n String retVal = \"\";\n retVal += Generation;\n retVal += \".\";\n retVal += Type;\n retVal += \".\";\n retVal += Variant;\n return retVal;\n }", "title": "" }, { "docid": "73ac04c10c1b76487e995dc01513e74f", "score": "0.46799797", "text": "private String buildAuxSetPath(String... src) throws Exception {\n final StringJoiner tmp = new StringJoiner(\"/\");\n\n for (String s : src) {\n tmp.add(s);\n }\n return tmp.toString();\n }", "title": "" }, { "docid": "4fecfbe2dcaee59590533fc25d84ae2f", "score": "0.4678334", "text": "private PropertyGroup generatePropertyGroupForOutput(DataObject output) {\n PropertyGroup group = generatePropertyGroupForDataObject(output);\n group.addProperty(generatePropertyForDataObject(output, \"Output\"));\n return group;\n }", "title": "" }, { "docid": "31d4debf548d2a150d91047bc485a937", "score": "0.4672839", "text": "protected Relation createOutputRelation() throws DBxicException {\n List<Attribute> attributes = new ArrayList<Attribute>();\n Relation rel = getInputOperator(LEFT).getOutputRelation();\n for (int i = 0; i < rel.getNumberOfAttributes(); i++)\n attributes.add(rel.getAttribute(i));\n \n rel = getInputOperator(RIGHT).getOutputRelation();\n for (int i = 0; i < rel.getNumberOfAttributes(); i++)\n attributes.add(rel.getAttribute(i));\n\t\t\n return new Relation(attributes);\n }", "title": "" }, { "docid": "ac8127fc00a78dcbd03d713664f95705", "score": "0.4672481", "text": "public String toString() {\n String result = \"\";\n\n result = result + option2String(\"--file\", fileToConvert);\n result = result + option2String(\"--out\", getDirectoryToSaveTo());\n if (scaleFactor!=0) result = result + option2String(\"--scale\", scaleFactor);\n if (xDimension != 0) result = result + option2String(\"--dimensions\", xDimension + \" \" + yDimension);\n return result;\n\n\n }", "title": "" }, { "docid": "e59a6040ca1e52947caedf24e5df2e36", "score": "0.46694818", "text": "public NormalizerOutPackage() {\n// normalizedTable = null;\n params1 = null;\n params2 = null;\n }", "title": "" }, { "docid": "26a953297b325bdee09b8987c4ba8f29", "score": "0.4668927", "text": "@Override\n public String toString() {\n return \"Generator{}\";\n }", "title": "" }, { "docid": "69081e910a306cac0c98bf255c093948", "score": "0.46680498", "text": "@Override\n public String generate(Predicate<Employee> filter) {\n final List<Employee> employees = sortEmployees(filter);\n StringBuilder text = new StringBuilder();\n text.append(\"Name; Salary;\");\n text.append(LN);\n for (Employee employee : employees) {\n text.append(employee.getName()).append(\";\")\n .append(employee.getSalary()).append(\";\")\n .append(LN);\n }\n return text.toString();\n }", "title": "" }, { "docid": "6e5126afc2ef45694c7d39d7d51b75c5", "score": "0.4666012", "text": "public com.google.privacy.dlp.v2.TransformationDescription.Builder addTransformationBuilder() {\n return getTransformationFieldBuilder()\n .addBuilder(com.google.privacy.dlp.v2.TransformationDescription.getDefaultInstance());\n }", "title": "" }, { "docid": "52258243775c92cfea53e7a67e73ae0b", "score": "0.4661112", "text": "@Override\r\n protected Instances determineOutputFormat(Instances inputFormat) throws Exception{\n for(int i=0;i<inputFormat.numAttributes();i++)\r\n if(inputFormat.classIndex()!=i)\r\n if(!inputFormat.attribute(i).isNumeric())\r\n throw new Exception(\"Non numeric attribute not allowed in BinaryTransform\"); \r\n int length=inputFormat.numAttributes();\r\n if(inputFormat.classIndex()>=0)\r\n length--;\r\n \r\n //Set up instances size and format. \r\n FastVector atts=new FastVector();\r\n FastVector attributeValues=new FastVector();\r\n attributeValues.addElement(\"0\");\r\n attributeValues.addElement(\"1\");\r\n\r\n String name;\r\n for(int i=0;i<length;i++){\r\n name = \"Binary_\"+i;\r\n atts.addElement(new Attribute(name,attributeValues));\r\n }\r\n if(inputFormat.classIndex()>=0){\t//Classification set, set class \r\n //Get the class values as a fast vector\t\t\t\r\n Attribute target =inputFormat.attribute(inputFormat.classIndex());\r\n\r\n FastVector vals=new FastVector(target.numValues());\r\n for(int i=0;i<target.numValues();i++)\r\n vals.addElement(target.value(i));\r\n atts.addElement(new Attribute(inputFormat.attribute(inputFormat.classIndex()).name(),vals));\r\n }\t\r\n Instances result = new Instances(\"Binary\"+inputFormat.relationName(),atts,inputFormat.numInstances());\r\n if(inputFormat.classIndex()>=0){\r\n result.setClassIndex(result.numAttributes()-1);\r\n }\r\n return result; \r\n \r\n \r\n }", "title": "" }, { "docid": "943214de2bedeeabc579f90f51f7dc53", "score": "0.46549565", "text": "protected String _generateOutputVariableDeclaration()\n\t\t\tthrows IllegalActionException {\n\t\tStringBuffer code = new StringBuffer();\n\n\t\tIterator outputPorts = ((Actor) getComponent()).outputPortList()\n\t\t\t\t.iterator();\n\n\t\twhile (outputPorts.hasNext()) {\n\t\t\tTypedIOPort outputPort = (TypedIOPort) outputPorts.next();\n\n\t\t\t// If either the output port is a dangling port or\n\t\t\t// the output port has inside receivers.\n\t\t\tif (outputPort.getWidth() == 0 || outputPort.getWidthInside() != 0) {\n\t\t\t\tcode.append(\"static \" + cType(outputPort.getType()) + \" \"\n\t\t\t\t\t\t+ generateName(outputPort));\n\n\t\t\t\tif (outputPort.isMultiport()) {\n\t\t\t\t\tcode.append(\"[\" + outputPort.getWidthInside() + \"]\");\n\t\t\t\t}\n\n\t\t\t\tint bufferSize = getBufferSize(outputPort);\n\n\t\t\t\tif (bufferSize > 1) {\n\t\t\t\t\tcode.append(\"[\" + bufferSize + \"]\");\n\t\t\t\t}\n\t\t\t\tcode.append(\";\" + _eol);\n\t\t\t}\n\t\t}\n\n\t\treturn code.toString();\n\t}", "title": "" }, { "docid": "b199e970d995b4a65b78cce021e0ab16", "score": "0.46416616", "text": "private Output(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "title": "" }, { "docid": "6797a6a424962b2a9562c85c59ddbf83", "score": "0.46357995", "text": "public abstract void generate()\n\tthrows ImperativeCompilerException;", "title": "" }, { "docid": "6ac22b664f5bdb486791ce6dfb352b78", "score": "0.46276036", "text": "public String toString() {\r\n String result = \"bias->hidden: \" + Arrays.toString(bhWeights) + \"\\n\";\r\n \r\n result += \"input->hidden: [ \";\r\n for(int inputID = 0; inputID < numInput; inputID++)\r\n result += Arrays.toString(ihWeights[inputID]) + \" \";\r\n result += \"]\\n\";\r\n \r\n result += \"bias->output: \" + Arrays.toString(boWeights) + \"\\n\";\r\n \r\n result += \"hidden->output: [ \";\r\n for(int hiddenID = 0; hiddenID < numHidden; hiddenID++)\r\n result += Arrays.toString(hoWeights[hiddenID]) + \" \";\r\n result += \"]\\n\";\r\n \r\n return result;\r\n }", "title": "" }, { "docid": "58534ec8eb3ac68cdf0887d0c580dc00", "score": "0.46252763", "text": "public void createDynamicsCompressor() {\n }", "title": "" }, { "docid": "14933531c05835571f71681a2e0ee4f9", "score": "0.4624843", "text": "public TransformedClassPath build() {\n Map<File, File> transformedMap = transforms.build();\n return new TransformedClassPath(originals.build(), transformedMap);\n }", "title": "" }, { "docid": "57806c47608402a5e3db290231fdced4", "score": "0.4621721", "text": "public static void assemble() \n\t{\n\t\t//String[][] storage;\n\t\t//String[][][] shifted;\n\t\t//String[][][] sorted;\n\t\t//String line = Input.readInput(group);\n\t\t//while (!(line.equalsIgnoreCase(\"s\")) && !(line.equals(null)))\n\t\t//{\n\t\t\t//storage = LineStorage.storeData(line, group);\n\t\t\t//shifted = CircularShift.shift(storage);\n\t\t\t//sorted = Alphabetize.sort(shifted, group);\n\t\t\t//sorted = Alphabetize.removeNoise(sorted, group);\n\t\t\t//Output.display(sorted, group);\n\t\t\t//group++;\n\t\t\t//line = Input.readInput(group);\n\t\t//}\n\t\tOutput.displayAll();\n\t\ttry\n\t\t{\n\t\t\tOutput.clearFile();\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tSystem.out.println(\"Error clearing file.\");\n\t\t}\n\t}", "title": "" }, { "docid": "3a518519ed631bffbb9c3aa73d4676cc", "score": "0.46190652", "text": "public void genOutPort() {\n try {\n animInstance().notifyMethodEntered(\"genOutPort\",\n new ArgData[] {\n });\n \n //#[ operation genOutPort() \n //#]\n }\n finally {\n animInstance().notifyMethodExit();\n }\n \n }", "title": "" }, { "docid": "3404619df505840e1e4fc5e854d6643c", "score": "0.4618576", "text": "protected CodeStripeSourcePrinter(Writer out) {\n/* 203 */ this.laterText = null; this.out = out;\n/* */ }", "title": "" }, { "docid": "7f40296d4f549ffcfddeacf688ce5f53", "score": "0.46185562", "text": "@Override\n\tpublic StringBuffer writeOutput()\n\t{\n\t\tStringBuffer tempString = super.writeOutput();\n\t\t// what about _plasmidHosted?\n\t\ttempString.append(\",\"+_status+\",\"+_nCopy+\",\"+_lastReception+\",\"+_lastExchange);\n\t\treturn tempString;\n\t}", "title": "" }, { "docid": "32e4127f8ad25858eb581dd0ea4af2bb", "score": "0.46112955", "text": "public String toString(){\n\t\t\tCodeStringBuilder sb=new CodeStringBuilder();\n\t\t\tfor(int i=0;i<expressions.size();i++){\n\t\t\t\tsb.appendWithTabNewLine(expressions.get(i).toString()+\";\");// TODO Creating Problems\n\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\treturn sb.toString();\n\t\t}", "title": "" }, { "docid": "17ef25de4552bfd3842bff33dbcdaa67", "score": "0.46092874", "text": "public void generateSource(Class<AbstractCalculator> baseClass, StringBuilder src, List<String> errors) {\n\t\t/*\n\t\t * validate will add all possible errors. Also, it ensures that all the\n\t\t * attributes are non-null (could be empty though)\n\t\t */\n\t\tthis.validate(errors);\n\t\t/*\n\t\t * Should we generate even when there are errors? We will because we can\n\t\t * !!. Up to the caller to decide what to do with that\n\t\t */\n\t\tsrc.append(\"package \").append(baseClass.getPackage().getName()).append(';');\n\t\tsrc.append(\"\\n\\nimport \").append(InvalidRuleException.class.getName()).append(';');\n\t\tsrc.append(\"\\n/**\\n * generated class for rule set \").append(this.name);\n\t\tsrc.append(\"\\n * generated at \").append(LocalDateTime.now()).append(\"\\n **/\");\n\t\tsrc.append(\"\\npublic class \").append(TextUtil.nameToClassName(this.name)).append(\" extends \")\n\t\t\t\t.append(baseClass.getSimpleName()).append(\" {\");\n\t\t/*\n\t\t * we assign index numbers to constants and globals. small optimization\n\t\t * : collect index while looping for emitting declaration\n\t\t */\n\t\tMap<String, Integer> globalIndexes = this.emitGlobalNames(src);\n\t\tMap<String, Integer> constIndexes = this.emitConstants(src);\n\t\tMap<String, Integer> inputIndexes = this.emitInputParams(src);\n\t\tthis.emitOutputParams(src);\n\t\tthis.emitMainFunctions(src, globalIndexes);\n\t\tfor (Map.Entry<String, IRule> entry : this.rules.entrySet()) {\n\t\t\tthis.emitRule(src, entry.getKey(), entry.getValue(), constIndexes, inputIndexes, globalIndexes);\n\t\t}\n\n\t\tthis.emitGettersAndSetters(src, globalIndexes);\n\t\tsrc.append(\"\\n}\\n\");\n\t\treturn;\n\t}", "title": "" }, { "docid": "e081b7bc96408a6130a271deda264284", "score": "0.4606951", "text": "public static void main(String args[]) {\n AssemblyCodeGenerator myAsWriter = new AssemblyCodeGenerator(\"output.s\");\n \n myAsWriter.increaseIndent();\n myAsWriter.writeAssembly(TWO_PARAM, SET_OP, String.valueOf(4095), \"%l0\");\n myAsWriter.increaseIndent();\n myAsWriter.writeAssembly(TWO_PARAM, SET_OP, String.valueOf(1024), \"%l1\");\n myAsWriter.decreaseIndent();\n \n myAsWriter.writeAssembly(TWO_PARAM, SET_OP, String.valueOf(512), \"%l2\");\n \n myAsWriter.decreaseIndent();\n myAsWriter.dispose();\n }", "title": "" }, { "docid": "a4b19cb79df2334007a1726414574dab", "score": "0.46064603", "text": "private void buildOriginalExpression1() {\n\t\tExpression e1 = new DoubleValue(1.2);\n\t\tExpression e2 = new DoubleValue(2.3);\n\t\tExpression e3 = new DoubleValue(3.5);\n\t\tExpression e4 = new DoubleValue(4.6);\n\t\tExpression e5 = new DoubleValue(1.1);\n\t\tExpression e6 = new DoubleValue(2.5);\n\t\tExpression e7 = new DoubleValue(8.0);\n\t\tExpression e8 = new DoubleValue(7.2);\n\t\tExpression e9 = new LessThan(e1, e2);\n\t\tExpression e10 = new Equals(e3, e4);\n\t\tExpression e11 = new NotEquals(e5, e6);\n\t\tExpression e12 = new GreaterThan(e7, e8);\n\t\tExpression e13 = new OrOperator(e9, e10);\n\t\tExpression e14 = new OrOperator(e11, e12);\n\t\tExpression e15 = new AndOperator(e13, e14);\n\t\tExpression e16 = new Parenthesis(e15);\n\t\toriginal1 = new NotOperator(e16);\n\t}", "title": "" }, { "docid": "b6e00a7dcd61110130b704efbe8bf476", "score": "0.46036386", "text": "@Override\n\tpublic String toXML() {\n\t\tStructuredTextFile stf = new StructuredTextFile(\"\");\n\t\tStringBuffer sb = new StringBuffer();\n\t\tsb.append(\"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\").append(\"\\n\");\n\t\tsb.append(\"<diagram>\").append(\"\\n\");\n\t\tsb.append(\" <datasources>\").append(\"\\n\");\n\t\t;\n\t\tif (this.importDSR != null) {\n\t\t\tsb.append(\" <import \").append(importDSR.toXMLAttributes()).append(\"/>\").append(\"\\n\");\n\t\t}\n\t\tif (this.updateDSR != null) {\n\t\t\tsb.append(\" <update \").append(updateDSR.toXMLAttributes()).append(\"/>\").append(\"\\n\");\n\t\t}\n\t\tsb.append(\" </datasources>\").append(\"\\n\");\n\t\t;\n\t\t// TODO OLI 04.06.2010 - Das folgende Fragment scheint unsinnig. Dabei\n\t\t// gleich mal\n\t\t// pruefen, ob das MainViewModel irgendwo gebraucht wird.\n\t\t/*\n\t\t * for (int i = 0, len = this.getViews().size(); i < len; i++) { ViewModel vm = this.getViews().get(i); if (vm\n\t\t * instanceof MainViewModel) { break; } }\n\t\t */\n\t\tint len = this.domains.size();\n\t\tsb.append(\" <domains count=\\\"\").append(len).append(\" >\").append(\"\\n\");\n\t\t;\n\t\tfor (int i = 0; i < len; i++) {\n\t\t\tToXMLAttributes dm = (ToXMLAttributes) this.domains.elementAt(i);\n\t\t\tsb.append(\" <domain id=\\\"\").append(i).append(\"\\\" \").append(dm.toXMLAttributes()).append(\" />\\n\");\n\t\t}\n\t\tsb.append(\" </domains>\").append(\"\\n\");\n\t\t;\n\t\tlen = this.stereotypes.size();\n\t\tstf.writeLong(new String[]{\n\t\t\t\t\"Diagramm\",\n\t\t\t\t\"Stereotype\",\n\t\t\t\t\"Anzahl\"\n\t\t}, len);\n\t\tfor (int i = 0; i < len; i++) {\n\t\t\tStereotypeModel stm = this.stereotypes.elementAt(i);\n\t\t\tstf\n\t\t\t\t\t.writeStr(\n\t\t\t\t\t\t\tnew String[]{\n\t\t\t\t\t\t\t\t\t\"Diagramm\",\n\t\t\t\t\t\t\t\t\t\"Stereotype\",\n\t\t\t\t\t\t\t\t\t\"Stereotype\" + i,\n\t\t\t\t\t\t\t\t\t\"Name\"\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tthis.toHTML(stm.getName()));\n\t\t\tstf\n\t\t\t\t\t.writeStr(\n\t\t\t\t\t\t\tnew String[]{\n\t\t\t\t\t\t\t\t\t\"Diagramm\",\n\t\t\t\t\t\t\t\t\t\"Stereotype\",\n\t\t\t\t\t\t\t\t\t\"Stereotype\" + i,\n\t\t\t\t\t\t\t\t\t\"Kommentar\"\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tthis.toHTML(stm.getComment()));\n\t\t}\n\t\tlen = this.defaultComments.size();\n\t\treturn sb.toString();\n\t}", "title": "" }, { "docid": "aff835aacc280e58c786f0a116b44667", "score": "0.46035355", "text": "public void updateOutputInfo() throws QueryCompilationException;", "title": "" }, { "docid": "2b2c40f5197509588a1df4e8574b9aab", "score": "0.45987034", "text": "private void generate() {\n\t\tClass c = bean.getClass();\r\n\t\tfields = new ArrayList<Field>();\r\n\t\twhile (c != Object.class) {\r\n\t\t\tfor (Field f : c.getDeclaredFields()) {\r\n\t\t\t\tif ((!Modifier.isTransient(f.getModifiers())) && (!Modifier.isStatic(f.getModifiers()))) {\r\n\t\t\t\t\tf.setAccessible(true);\r\n\t\t\t\t\tfields.add(f);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tc = c.getSuperclass();\r\n\t\t}\r\n\t\t\r\n\t\t// Configure the layout\r\n\t\t//BoxLayout layout = new BoxLayout(this, BoxLayout.Y_AXIS);\r\n\t\t//setLayout(layout);\r\n\t\tTableLayout layout = new TableLayout(2);\r\n\t\t//layout.setFill(false);\r\n\t\tlayout.setHorizontalAlignment(TableLayout.ALIGN_CENTER);\r\n\t\tlayout.setDefaultCellMargin(new Insets(2, 2, 5, 2));\r\n\t\tsetLayout(layout);\r\n\t\t\r\n\t\t// Create components per field\r\n\t\tfor (Field f : fields) {\r\n\t\t\tJLabel label = new JLabel(StringUtilities.phrasify(f.getName()) + \": \");\r\n\t\t\tlabel.setHorizontalAlignment(JLabel.RIGHT);\r\n\t\t\tadd(label);\r\n\t\t\tlayout.getCell(label).setHorizontalAlignment(TableLayout.ALIGN_RIGHT);\r\n\t\t\tGraphicalField gf = createGraphicalField(f);\r\n\t\t\tmapping.put(f, gf);\r\n\t\t\tadd(gf.getComponent());\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "1ee02697925bb18ea5e794fe0249a35c", "score": "0.45959103", "text": "@Override\r\n\tprotected String makeCommand() {\r\n\t\t\r\n\t\tString defaultOptions = \"--dta -x\";\r\n\t\tStringBuilder builder = new StringBuilder();\r\n\t\tbuilder.append(exePath + \"hisat2\");\r\n\t\tbuilder.append(WHITESPACE);\r\n\t\t\r\n\t\tbuilder.append(\"-p\");\r\n\t\tbuilder.append(WHITESPACE);\r\n\t\tbuilder.append(process);\r\n\t\tbuilder.append(WHITESPACE);\r\n\t\t\r\n\t\tbuilder.append(defaultOptions);\r\n\t\tbuilder.append(WHITESPACE);\r\n\t\t\r\n\t\tbuilder.append(indexPath + \"chrX_tran\");\r\n\t\tbuilder.append(WHITESPACE);\r\n\r\n\t\tbuilder.append(\"-1\");\r\n\t\tbuilder.append(WHITESPACE);\r\n\t\tbuilder.append(pair1);\r\n\t\tbuilder.append(WHITESPACE);\r\n\t\t\r\n\t\tbuilder.append(\"-2\");\r\n\t\tbuilder.append(WHITESPACE);\t\t\r\n\t\tbuilder.append(pair2);\r\n\t\tbuilder.append(WHITESPACE);\r\n\r\n\t\tbuilder.append(\"-S\");\r\n\t\tbuilder.append(WHITESPACE);\r\n\t\tbuilder.append(outputFile);\r\n\t\tbuilder.append(WHITESPACE);\t\t\r\n\t\t\r\n\t\treturn builder.toString();\t\t\r\n\t}", "title": "" }, { "docid": "4529cf330e1b96e7edb251a3a587ede5", "score": "0.45957243", "text": "public void generateResult() {\n\t\t// Output result to a JSON file\n\t\tSystem.out.println(\"\\nJSON Object: \" + recommendation);\n\t\ttry (FileWriter file = new FileWriter(\"\\\\recommendation.json\")) {\n\t\t\tfile.write(recommendation.toJSONString());\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "91d59e271916d6efd94ae49bd6c1b289", "score": "0.4589442", "text": "abstract protected void transform();", "title": "" }, { "docid": "b545bf71b4f18e2dc1c1e07399380df4", "score": "0.45878568", "text": "public void addTransformer(int output_format){\n\t\tPackManager.v().getPack(\"jtp\").add(new Transform(\"jtp.statementLogger\", new Instrumenter()));\n\t\tOptions.v().set_output_format(output_format);\n//\t\tFile dir = new File(\"./profilingOutput/\");\n//\t\tdir.mkdirs();\n//\t\tfor(File f : dir.listFiles()){\n//\t\t\tf.delete();\n//\t\t}\n\t\tsoot.Main.main(new String[]{_class.getName()});\n\t}", "title": "" }, { "docid": "f7e263f0862e2c66583579023cf2f3d0", "score": "0.458763", "text": "private JrgenUtil() {\n\t\tsuper();\n\t}", "title": "" }, { "docid": "8c959c49ef0bf807f881548cd2e436ab", "score": "0.45849174", "text": "public String formatToString(){\r\n String info = super.secondaryToString(); \r\n for(int a = 0; a < NUMANS; a++){\r\n for(int b = 0; b < NUMSPECSEC; b++)\r\n info = info + yaAttr[b][a]; \r\n info = info + nextLine;\r\n } \r\n return info; \r\n }", "title": "" }, { "docid": "0e193369d730d1464b04a1a6a128d6d6", "score": "0.45829296", "text": "public String toOriginal() {\n StringBuilder buf = new StringBuilder();\n\n boolean isRtl = Language.isRTL(targetLanguage.getLanguageCode());\n boolean differentDir = isDifferentDirection(isRtl);\n boolean isSpecialDocxTagLTR = isSpecialDocxBidiTag(false);\n boolean isSpecialDocxTagRTL = isSpecialDocxBidiTag(true);\n\n // Skip special (i/b/sz) tags for target language to keep only those from the source language\n // (e.g don't include <w:bCs/> from the LTR source in the RTL target.)\n if (differentDir && ((isRtl && isSpecialDocxTagRTL) || (!isRtl && isSpecialDocxTagLTR))) {\n return \"\";\n }\n\n buf.append(\"<\");\n if (Type.END == getType()) {\n buf.append(\"/\");\n }\n\n // In Docx, the bold, italic and fontSize are handled differently for complex\n // script\n if (differentDir && isRtl && isSpecialDocxTagLTR) {\n // For LTR -> RTL, convert the i/b/sz to iCs/bCs/szCs if source and target\n // languages directionality are different.\n buf.append(getTag() + \"Cs\");\n } else if (differentDir && !isRtl && isSpecialDocxTagRTL) {\n // For RTL -> LTR, convert the iCs/bCs/szCs to i/b/sz\n buf.append(getTag().replaceFirst(\"Cs\", \"\"));\n } else {\n buf.append(getTag());\n }\n\n buf.append(getAttributes().toString());\n\n // If that's an Open XML document, we preserve spaces for all <w:t> tags\n if (getTag().equalsIgnoreCase(\"w:t\") && Type.BEGIN == getType()) {\n Boolean preserve = false;\n for (int i = 0; i < getAttributes().size(); i++) {\n Attribute oneAttribute = getAttributes().get(i);\n if (oneAttribute.getName().equalsIgnoreCase(\"xml:space\")) { // If XML:space is already there\n preserve = true; // We do nothing\n break;\n }\n }\n if (!preserve) {\n buf.append(\" xml:space=\\\"preserve\\\"\");\n }\n }\n\n boolean alreadyClosed = false;\n\n // If the target language is RTL and the document is a .doxc\n // we do a number of tag insertions\n if (isRtl) {\n if (getTag().equalsIgnoreCase(\"w:pPr\") && Type.BEGIN == getType()) {\n buf.append(\"><w:bidi/\");\n } else if (getTag().equalsIgnoreCase(\"w:sectPr\") && Type.BEGIN == getType()) {\n buf.append(\"><w:bidi/\");\n } else if (getTag().equalsIgnoreCase(\"w:rPr\") && Type.BEGIN == getType()) {\n buf.append(\"><w:rtl/\");\n } else if (getTag().equalsIgnoreCase(\"w:tblPr\") && Type.BEGIN == getType()) {\n buf.append(\"><w:bidiVisual/\");\n } else if (getTag().equalsIgnoreCase(\"w:tblStyle\") && Type.ALONE == getType()) {\n buf.append(\"/><w:bidiVisual/\");\n alreadyClosed = true;\n }\n }\n\n if (Type.ALONE == getType() && !alreadyClosed) {\n buf.append(\"/\");\n }\n buf.append(\">\");\n\n return buf.toString();\n }", "title": "" }, { "docid": "557f62de8ed698741cb6966255a68951", "score": "0.45810217", "text": "@Override\n\tpublic String toString() {\n\t\treturn \"<cl:Construct>\" + \n\t comments().toString() +\n\t expressions().toString() + \"</cl:Construct>\";\n\t}", "title": "" }, { "docid": "1131cfa8471baca634de1d47bd488cc5", "score": "0.45749858", "text": "public String invoiceFormat() {\n String output = \"Name:\\t\\t\\t\" + name + \"\\n\";\n output += \"Telephone number:\\t\" + telNumber + \"\\n\";\n output += \"E-mail address:\\t\\t\" + emailAddress + \"\\n\";\n output += \"Physical address:\\t\" + physicalAddress + \"\\n\";\n\n return output;\n }", "title": "" }, { "docid": "4f9da91754ae57304b9b6325e5cb0112", "score": "0.45674223", "text": "private static JDBCOutputFormat createJDBCSink() {\n int[] fieldTypes = new int[]{\n //SalesDate\n Types.VARCHAR,\n //AccountId\n Types.VARCHAR,\n //Business\n Types.VARCHAR,\n //CheckoutType\n Types.VARCHAR,\n //ContractEndDate\n Types.VARCHAR,\n\n //ContractStartDate\n Types.VARCHAR,\n //Country\n Types.VARCHAR,\n //Function\n Types.VARCHAR,\n //InternalAccountClassification\n Types.VARCHAR,\n //MarketUnit\n Types.VARCHAR,\n\n //Material\n Types.VARCHAR,\n //MaterialName\n Types.VARCHAR,\n //MaterialType\n Types.VARCHAR,\n //OrderType\n Types.VARCHAR,\n //PortfolioCategory\n Types.VARCHAR,\n\n //Region\n Types.VARCHAR,\n //RenewalStatus\n Types.VARCHAR,\n //RenewalType\n Types.VARCHAR,\n //RevType\n Types.VARCHAR,\n //SalesDocument\n Types.VARCHAR,\n\n //SalesOrder\n Types.VARCHAR,\n //Selling Motion\n Types.VARCHAR,\n //Store\n Types.VARCHAR,\n //NetValue\n Types.VARCHAR,\n //No of Transactions\n Types.VARCHAR,\n\n //Material\n Types.VARCHAR,\n //MaterialName\n Types.VARCHAR,\n //MaterialType\n Types.VARCHAR,\n //OrderType\n Types.VARCHAR,\n //PortfolioCategory\n Types.VARCHAR,\n\n\n\n //SalesOrder\n// Types.VARCHAR,\n// //Selling Motion\n Types.VARCHAR,\n //Store\n Types.VARCHAR,\n //NetValue\n Types.VARCHAR\n };\n\n\n return JDBCOutputFormat.buildJDBCOutputFormat()\n .setDBUrl(String.format(\"jdbc:postgresql://%s/%s\", StreamingJob.postgresHost, StreamingJob.postgresDB))\n .setDrivername(\"org.postgresql.Driver\")\n .setUsername(StreamingJob.postgresUser)\n .setPassword(StreamingJob.postgresPassword)\n .setQuery(String.format(\n //insert data into sac_table\n \" INSERT INTO \" + \"%s(\" +\n \"\\\"SalesDate\\\", \" +\n \"\\\"AccountId\\\", \" +\n \"\\\"Business\\\", \" +\n \"\\\"CheckoutType\\\", \" +\n \"\\\"ContractEndDate\\\", \" +\n\n \"\\\"ContractStartDate\\\", \" +\n \"\\\"Country\\\", \" +\n \"\\\"FunctionalArea\\\",\" +\n \"\\\"InternalAccountClassification\\\", \" +\n \"\\\"MarketUnit\\\", \" +\n\n \"\\\"Material\\\", \" +\n \"\\\"MaterialName\\\", \" +\n \"\\\"MaterialType\\\", \" +\n \"\\\"OrderType\\\", \" +\n \"\\\"PortfolioCategory\\\",\" +\n\n \"\\\"Region\\\", \" +\n \"\\\"RenewalStatus\\\", \" +\n \"\\\"RenewalType\\\", \" +\n \"\\\"RevType\\\", \" +\n \"\\\"SalesDocumentNo_1\\\", \" +\n\n \"\\\"SalesOrderNo\\\", \" +\n \"\\\"SellingMotion\\\", \" +\n \"\\\"Store\\\",\" +\n \"\\\"NetValueCalculated\\\", \" +\n \"\\\"Number of transactions\\\", \" +\n\n \"\\\"Day\\\", \" +\n \"\\\"SAPRelation\\\", \" +\n \"\\\"NumberOfEmployees\\\", \" +\n//\n \"\\\"ProductId\\\", \" +\n \"\\\"TSC\\\", \" +\n \"\\\"NetValue >=9000\\\", \" +\n \"\\\"NetValue=0\\\", \" +\n \"\\\"Industry\\\" \" +\n \") values (?,?,?,?,?,?,?,?,?,?,\" +\n \" ?,?,?,?,?,?,?,?,?,?,\" +\n \"?,?,?,?,?,?,?,?,?,?,\" +\n \"?,?,?)\", StreamingJob.outputTable))\n .setSqlTypes(fieldTypes)\n .setBatchInterval(200)\n .finish();\n }", "title": "" }, { "docid": "31b380435f1fb5678b75c4b55817a277", "score": "0.45660684", "text": "public io.dstore.values.IntegerValue.Builder getOutputIntoOneIdBuilder() {\n \n onChanged();\n return getOutputIntoOneIdFieldBuilder().getBuilder();\n }", "title": "" }, { "docid": "ec2847fd1c920ef7d7cac72669f438a3", "score": "0.45660272", "text": "private void saveInterpDefaultKB223() {\n\t Vector inputs= new Vector();\n\n\t // Define inputs\n\t variable v_outputKB1_RuleBaseConceptualDimension= new variable(LocaleKBCT.GetString(\"outputKBRuleBaseConceptualDimension\"), \"numerical\", \"llow\", \"no\", 0, 1, 0, 1, 3, \"low-high\", true, false);\n\t v_outputKB1_RuleBaseConceptualDimension.SetLabelsName();\n\t v_outputKB1_RuleBaseConceptualDimension.SetLabelProperties();\n\t JKBCTInput joutputKB1_RuleBaseConceptualDimension= new JKBCTInput(v_outputKB1_RuleBaseConceptualDimension, 1);\n\t inputs.add(joutputKB1_RuleBaseConceptualDimension);\n\n\t variable v_outputKB2_RuleBaseConceptualComplexity= new variable(LocaleKBCT.GetString(\"outputKBRuleBaseConceptualComplexity\"), \"numerical\", \"llow\", \"no\", 0, 1, 0, 1, 3, \"low-high\", true, false);\n\t v_outputKB2_RuleBaseConceptualComplexity.SetLabelsName();\n\t v_outputKB2_RuleBaseConceptualComplexity.SetLabelProperties();\n\t JKBCTInput joutputKB2_RuleBaseConceptualComplexity= new JKBCTInput(v_outputKB2_RuleBaseConceptualComplexity, 2);\n\t inputs.add(joutputKB2_RuleBaseConceptualComplexity);\n\n\t this.BuildInterpretabilityKB(inputs, 223, 6);\n }", "title": "" }, { "docid": "931f2ac5612847258ebb78b9fd2e8ca4", "score": "0.4565181", "text": "public interface Builder<Out, Prt> {\n /**\n * INTENT: Update some internal state with a given part\n * REQUIREMENT: return type must not be null\n */\n Builder<Out, Prt> append(Prt part);\n\n /**\n * INTENT: Convert the internal state to some Output\n * REQUIREMENT: return type must not be null\n */\n Out toOutput();\n}", "title": "" }, { "docid": "db0bb134b3a9ce8e176c634226649cca", "score": "0.45649374", "text": "private static String getBigQueryOutput(Options options, String trailer) {\n return options.getOutput() + \".\"\n + options.getInput().replaceFirst(\"-\", \"_\").toLowerCase()\n + \"_\" + trailer;\n }", "title": "" }, { "docid": "2dbc571fd3630277a790645a45e2059e", "score": "0.45615494", "text": "public String toString() {\n\t return \"output \" + this.expr; \n\t}", "title": "" }, { "docid": "1f1338a8d8e3b11ac5258f0059b1bba5", "score": "0.45547134", "text": "@Override\n public String toString() {\n return formatHeaders() +\n formatLogic() +\n formatEOL() +\n formatErrors();\n\n }", "title": "" } ]
cc055a5eee322709881c69ed6e57d8aa
Sets the holder and due date of the library book with the specified ISBN. If no book with the specified ISBN is in the library, returns false. If the book with the specified ISBN is already checked out, returns false. Otherwise, returns true.
[ { "docid": "38a2e13a70468d34950e2c9555007559", "score": "0.74841267", "text": "public boolean checkout(long isbn, Type holder, int month, int day, int year) {\n\t\t\n\t\tLibraryBookGeneric<Type> thisBook = null;\n\t\tfor (LibraryBookGeneric<Type> element : library) {\n\t\t\tif (element.getIsbn() == isbn)\n\t\t\t\tthisBook = element;\n\t\t}\n\t\tif (thisBook == null)\n\t\t\treturn false;\n\n\t\tif (thisBook.getDueDate() != null)\n\t\t\treturn false;\n\n\t\telse {\n\t\t\t//Checks out the book by assigning the holder and due date\n\t\t\tthisBook.checkOut(holder, new GregorianCalendar(year, month, day));\n\t\t\treturn true;\n\t\t}\n\t}", "title": "" } ]
[ { "docid": "a598d6f061f559e7d707c534b7865ccd", "score": "0.79241633", "text": "public boolean checkout(long isbn, String holder, int month, int day, int year) {\n for (LibraryBook libraryBook : library)\n if (libraryBook.getIsbn() == isbn) {\n\n // check if book is already checked out\n if (libraryBook.getHolder() != null)\n return false;\n\n // since the book hasn't been checked out set holder and due date and return\n libraryBook.setHolder(holder);\n libraryBook.setDueDate(month, day, year);\n return true;\n }\n // if the book wasn't found return false\n return false;\n }", "title": "" }, { "docid": "020ebe9d6f13d526c9e1f2a6ea1bdac6", "score": "0.7153903", "text": "public boolean checkin(long isbn) {\n\t\tLibraryBookGeneric<Type> tempBook = null;\n\t\tfor (LibraryBookGeneric<Type> element : library) {\n\t\t\tif (element.getIsbn() == isbn)\n\t\t\t\ttempBook = element;\n\t\t}\n\t\tif (tempBook == null)\n\t\t\treturn false;\n\t\tif (tempBook.getDueDate() == null)\n\t\t\treturn false;\n\t\telse {\n\t\t\ttempBook.checkIn();\n\t\t\treturn true;\n\t\t}\n\t}", "title": "" }, { "docid": "ab920c4324605404e42f211da9f8fcfb", "score": "0.68055534", "text": "public boolean checkin(long isbn) {\n for (LibraryBook libraryBook : library) // parse entire library\n if (libraryBook.getIsbn() == isbn) { // either return false if book is checked in or check the book out\n // and return true\n if (libraryBook.getHolder() == null)\n return false;\n libraryBook.checkIn();\n return true;\n }\n return false; // if the book wasn't found return false\n }", "title": "" }, { "docid": "b3d3a56f484cfb0489ebd508eb2a2a3a", "score": "0.63539547", "text": "public boolean checkin(String holder) {\n // get list of all books under specified holder\n ArrayList<LibraryBook> books = this.lookup(holder);\n\n // if no books under the specified holder return false\n if (books.size() == 0)\n return false;\n\n // otherwise check in each book and return true\n for (LibraryBook book : books)\n book.checkIn();\n return true;\n }", "title": "" }, { "docid": "512fe77ce9adcec75a6360dcb2488a06", "score": "0.6298827", "text": "public boolean checkin(Type holder) {\n\t\t//Creates an empty arrayList to hold all of the holders books\n\t\tArrayList<LibraryBookGeneric<Type>> holdersBooks = new ArrayList<LibraryBookGeneric<Type>>();\n\t\tfor (LibraryBookGeneric<Type> element : library) {\n\t\t\tif (element.getHolder() == holder)\n\t\t\t\tholdersBooks.add(element);\n\t\t}\n\t\tif (holdersBooks.size() == 0)\n\t\t\treturn false;\n\n\t\telse {\n\t\t\tfor (LibraryBookGeneric<Type> book : holdersBooks) {\n\t\t\t\tbook.checkIn();\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\t}", "title": "" }, { "docid": "c459fd18d98ca55a2cc792655fd8ba01", "score": "0.5965392", "text": "public void setIsbn(String isbn) {\n this.isbn = isbn;\n }", "title": "" }, { "docid": "90bc0f655150e02a8a86a18b844a3997", "score": "0.5933891", "text": "public void setIsbn(String isbn) {\n\t\tthis.isbn=isbn;\r\n\t}", "title": "" }, { "docid": "78fd360003d38fdc5e71f467d9dd6c3a", "score": "0.59205866", "text": "@Override\n public Book updateBook(Book book) {\n Book oldBook = this.bdao.getBookById(book.getBookId());\n if (oldBook.isAvailable() == true && book.isAvailable() == false){\n // check if book is checked out\n book.setDueDate(System.currentTimeMillis()/1000+604_800);\n logger.info(\"Book ID \" + book.getBookId() + \"was checked out\");\n }\n else if (oldBook.isAvailable() == false && book.isAvailable() == true){\n // check if book is checked out\n book.setDueDate(0);\n logger.info(\"Book ID \" + book.getBookId() + \"was checked in\");\n }\n this.bdao.updateBook(book);\n return book;\n }", "title": "" }, { "docid": "086a32294ded123e244ba4206a450708", "score": "0.59110844", "text": "public void setIsbn(String isbn) {\n\t\tthis.isbn = isbn;\n\t}", "title": "" }, { "docid": "71dcfddc0f3814341818e2ed13c7c9fa", "score": "0.58897054", "text": "@Override\n\tpublic boolean borrowbook(String user_id, String bb_id, String bb_date, String book_id, String title, String author, String peality_date, String return_date, String state) throws IOException, SQLException {\n\t\tUserConn userConn = new UserConn();\n\t\tSqlSession session = userConn.open();\n\n\t\tMap<String, Object> paramMap2 = new HashMap<String, Object>();\n\t\tparamMap2.put(\"isbn\", book_id);\n\t\tSystem.out.println(book_id);\n\t\tMap<String, Object> userMap = session.selectOne(\"cn.java.dao.user.UserDaoImpl.borrow1\", paramMap2);\n\n\t\tMap<String, Object> paramMap = new HashMap<String, Object>();\n\t\tparamMap.put(\"user_id\", user_id);\n\t\tparamMap.put(\"bb_id\", bb_id);\n\t\tparamMap.put(\"book_id\", book_id);\n\t\tparamMap.put(\"isbn\", book_id);\n\t\tparamMap.put(\"bb_date\", bb_date);\n\t\tparamMap.put(\"peality_date\", peality_date);\n\t\tparamMap.put(\"return_date\", return_date);\n\t\tparamMap.put(\"state\", state);\n\n\t\tboolean flag = true;\n\t\ttry {\n\t\t\tsession.update(\"cn.java.dao.user.UserDaoImpl.borrow2\", paramMap);\n\t\t\tsession.update(\"cn.java.dao.user.UserDaoImpl.borrow3\", paramMap);\n\t\t\tsession.commit();\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\tflag = false;\n\t\t}\n\t\treturn flag;\n\t}", "title": "" }, { "docid": "172d64371b96508db0fa4b83f75c8114", "score": "0.58030134", "text": "public void checkOutBook(Book book) throws DatabaseException\r\n\t{\r\n\t\tdataMapper.addISBN(book.getISBN());\r\n\t}", "title": "" }, { "docid": "96a80173111379a0fe79045008c7b093", "score": "0.57936347", "text": "public void setIsbn(int isbnn) {\tthis.isbn = isbnn; }", "title": "" }, { "docid": "497702ca08b8713638cff22661cbba8f", "score": "0.57316345", "text": "LibReturnCode returnBook(long isbn, long readerId, LocalDate returnDate);", "title": "" }, { "docid": "800a6df4f22e78c53434da8436824475", "score": "0.5716041", "text": "public void setISBN(java.lang.String ISBN) {\n this.ISBN = ISBN;\n }", "title": "" }, { "docid": "0607a1c12eaa10d6ea2b11c7ca3edb44", "score": "0.56273866", "text": "public void addISBN(Integer ISBN) {\n WrittenBookISBN.add(ISBN);\n }", "title": "" }, { "docid": "1ae1cf90352243d9e7a7711aebf8a07c", "score": "0.55919296", "text": "public boolean updateLoan(String bookId) {\r\n int loanIndex = getLoanIndexByBookId(bookId);\r\n if (loanIndex != -1 && loanIndex < loans.size() && !TextUtils.isEmpty(bookId)) {\r\n Date actualDate = loans.get(loanIndex).getDueDate();\r\n loans.get(loanIndex).setDueDate(DateUtils.addDays(actualDate, EXTRA_DAYS));\r\n return true;\r\n }\r\n return false;\r\n }", "title": "" }, { "docid": "e4f8bcc059ee8d5bc5b423e670bb45e1", "score": "0.55637157", "text": "public void borrowBook(String title) {\n Book found = searchBookByTitle(title);\n\n if(found == null) {\n System.err.println(\"UNRECOGNIZED BOOK!\");\n return;\n }\n\n if (title == found.getTitle() && found.isAvailable()) {\n System.out.println(\"The book: \" + found.getTitle() + \" has been borrowed successfully.\");\n found.setAvailable(false);\n return;\n } else if (title == found.getTitle() && !found.isAvailable()) {\n System.out.println(\"The book: \" + found.getTitle() + \", is already borrowed.\");\n return;\n }\n\n }", "title": "" }, { "docid": "948dd505656ae0dd21fdb3939ac372e8", "score": "0.5549377", "text": "public void setISBN (String _isbn)\r\n \r\n {\r\n \r\n this.isbn = _isbn;\r\n \r\n }", "title": "" }, { "docid": "66b526015c61b8529241c80b6166d752", "score": "0.5513908", "text": "void borrowBookFromLibrary(Book book) {\n borrowedBooks.add(book);\n }", "title": "" }, { "docid": "86bd93867fcddf265a6d824a2ae27c62", "score": "0.54955095", "text": "@Override\n\tpublic boolean returnBook(int bid) {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "42b0faf2f00564e136c4859a6437921a", "score": "0.5487237", "text": "public void Borrow() {\n\t\tin = new Scanner(System.in);\n\t\tSystem.out.print(\"Enter book ID to borrow \");\n\t\tString searchKey = in.nextLine(); //user entering id or title of the book want to borrow\n\t\tfor (Book book : myBooks) { \n\t\t\t//use loop to browse each book in the library\n\t\t\tif (book.getId().equalsIgnoreCase(searchKey)) { \n\t\t\t\t//if the library has the book which is wanted to borrow\n\t\t\t\tif (book.getIsBorrowed()) {\n\t\t\t\t\t//if this book has been borrowed\n\t\t\t\t\tSystem.out.println(\"You can not borrow this book. The book has been borrowed\");\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t//if this book has been in the library yet\n\t\t\t\tbook.setIsBorrowed(true); \n\t\t\t\tSystem.out.println(\"You have successfully borrow the book: \" + book.getTitle());\n\t\t\t\tSystem.out.println();\n\t\t\t\treturn;\t\n\t\t\t} \n\t\t}\n\t\t\n\t\tfor (Book book : myBooks) {\n\t\t\tif (!book.getId().equalsIgnoreCase(searchKey)) {\n\t\t\t\t//if the library has the book which is wanted to borrow\n\t\t\t\tSystem.out.println(\"Library currently does not have this book\");\n\t\t\t\tSystem.out.println();\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println();\n\t}", "title": "" }, { "docid": "6be7863bebf36ed367e77af60dcb39bd", "score": "0.54100627", "text": "public boolean isSetBookNo() {\n return this.bookNo != null;\n }", "title": "" }, { "docid": "a371125d9fb916f4dc1668f7067beaf9", "score": "0.5295734", "text": "public void setISBN(int value) {\n this.isbn = value;\n }", "title": "" }, { "docid": "fd7f7cca8bb896129f305fc74c552940", "score": "0.52778244", "text": "private void checkBorrowedBook() {\n navDrawer(\"Borrowed Books\");\n assertTrue(\"Book not appearing in borrowed books\", solo.searchText(\"Requesting 69\"));\n }", "title": "" }, { "docid": "8417f118224e9389f4602be586161a0b", "score": "0.5259256", "text": "public void setIsbnDelLibro(String isbnDelLibro) {\n\t\tif (validarIsbn10(isbnDelLibro) == true|| validarIsbn13(isbnDelLibro)==true) {\n\t\t\tthis.isbnDelLibro = isbnDelLibro;\n\t\t} else {\n\t\t\tSystem.out.println(\"ISBN no valido.\");\n\t\t\tsetIsbnDelLibroTrasErrorPorTeclado();\n\t\t}\n\t}", "title": "" }, { "docid": "ff88d34be8d8ba792f60f52f26f4a81b", "score": "0.52301884", "text": "public boolean addBook( Book book )\n {\n if( this.books.containsKey(book.getId()) )\n {\n return false;\n }\n\n this.books.put( book.getId(), book );\n this.copiesAvailable.put( book.getId(), book.getNumCopies() );\n return true;\n }", "title": "" }, { "docid": "7539399cd6b9dd47969a9050a131616a", "score": "0.5216318", "text": "@Test\r\n public void testSetISBN() {\r\n ElectronicBook instance = new ElectronicBook(\"ISBN\", new String[]{\"Ioana\", \"Elena\"});\r\n String expectedISBN = \"new ISBN\";\r\n instance.setISBN(expectedISBN);\r\n String result = instance.getISBN();\r\n assertEquals(expectedISBN, result);\r\n\r\n }", "title": "" }, { "docid": "60e25957c9a3e6c7430809c5d2964284", "score": "0.5214131", "text": "public void add(long isbn, String author, String title) {\n library.add(new LibraryBook(isbn, author, title));\n }", "title": "" }, { "docid": "7c72ce822306d8a586710e32e3f39b1c", "score": "0.5204463", "text": "public void checkBookState()\r\n {\r\n\r\n }", "title": "" }, { "docid": "cca0d9fc55a0e87802f5eecf97dd0ffa", "score": "0.51981443", "text": "private boolean shouldUpdateBook(DatabaseHelper databaseHelper, String id) throws SQLException {\n if (databaseHelper.recordExists(DatabaseHelper.TABLE_BOOKCAVE_BOOKS, \"id\", id)) {\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "6dc4bd4acb04f1e544b5362ce66d7aee", "score": "0.51763314", "text": "@Test\n\tpublic void GetbookByISBN(){\n\t\tBook book = BooksProxy.getInstance().getBookByISBN(\"9780684853505\");\n\t\t//System.out.println(book.toString());\n\t\tassertEquals(\"Book Title\", book.getTitle(),\"Bag of bones\");\n\t\tassertEquals(\"Book Edition\", book.getEdition(),\"\");\n\t\tassertEquals(\"Book Publisher\", book.getPublisher(),\"Scribner\");\n\t}", "title": "" }, { "docid": "05fb6fbfc3f17ed7a4d9dd979e0d56e0", "score": "0.5143631", "text": "private static boolean CheckISBN13 (String isbn) {\r\n int sum = 0;\r\n int nValue;\r\n\r\n for (int n = 0; n < 13; n++) {\r\n nValue = Integer.parseInt(isbn.substring(n, n+1));\r\n if (n % 2 == 0) {\r\n sum += nValue;\r\n } else {\r\n sum += nValue *3;\r\n }\r\n }\r\n return (sum % 10 == 0);\r\n }", "title": "" }, { "docid": "64d62cc533ba1156715fd7606a810679", "score": "0.5133247", "text": "public void setBorrowedBookId(int bi) { borrowedBookId = bi; }", "title": "" }, { "docid": "0a6de7f9263ac49ec547c0ab6e241d89", "score": "0.5111662", "text": "public boolean vaisbn(String isbn) {\n\t\treturn bookBarcodeDao.vaisbn(isbn);\n\t}", "title": "" }, { "docid": "2a464565f198068766e2e1253d63b2e3", "score": "0.5111592", "text": "@Override\r\n\tpublic boolean borrowBook(BookBorrow borrow) throws RecordNotFoundException, OutOfLimitException {\n\t\ttry {\r\n\t\t\tif(ld.borrowBook(borrow)) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t} catch (RecordNotFoundException e) {\r\n\t\t\t// TODO: handle exception\r\n\t\t\tthrow new RecordNotFoundException();\r\n\t\t}\r\n\t\tcatch (OutOfLimitException e) {\r\n\t\t\t// TODO: handle exception\r\n\t\t\tthrow new OutOfLimitException();\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "6a156c28e89484cf37a678b3e4a54fa0", "score": "0.51093733", "text": "public Boolean addBooks(Book book) ;", "title": "" }, { "docid": "7aaad95075f0602f8f41a79b0fd0cfd4", "score": "0.5069756", "text": "@Test\r\n public void testCorrectISBNFormat() {\r\n System.out.println(\"correctISBNFormat\");\r\n String isbn = \"\";\r\n boolean expResult = false;\r\n boolean result = Book.correctISBNFormat(isbn);\r\n assertEquals(expResult, result);\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }", "title": "" }, { "docid": "7f78983a065dc7ebdf23a9b82958b7ea", "score": "0.50644404", "text": "public void setBooksInLibrary() {\n availableBooks[0].setBookName(\"A Brief History Of Time\");\n availableBooks[0].setBookAuthorName(\"Stephen Hawking\");\n availableBooks[0].setIsbnNumber(\"68274677367464\");\n availableBooks[1].setBookName(\"Relativity:The special Theory\");\n availableBooks[1].setBookAuthorName(\"Elbert Einstein\");\n availableBooks[1].setIsbnNumber(\"4684212446562\");\n availableBooks[2].setBookName(\"Go like Hell\");\n availableBooks[2].setBookAuthorName(\"A.J.Baime\");\n availableBooks[2].setIsbnNumber(\"97521645489\");\n availableBooks[3].setBookName(\"In The Heart Of The Sea\");\n availableBooks[3].setBookAuthorName(\"Natheniel Philbrick\");\n availableBooks[3].setIsbnNumber(\"87812123966232\");\n availableBooks[4].setBookName(\"A Suitable Boy\");\n availableBooks[4].setBookAuthorName(\"Vikram Seth\");\n availableBooks[4].setIsbnNumber(\"8645126654548151\");\n\n }", "title": "" }, { "docid": "dcf10eee8b66174ea2d76b88fe685b88", "score": "0.50497717", "text": "private void buyBook(Book book) {\n book.purchase();\n if (!LBMS.getBooks().values().contains(book)) {\n LBMS.getBooks().put(book.getIsbn(), book);\n }\n }", "title": "" }, { "docid": "d69c220fc876a35a341decfdbc00f1ab", "score": "0.50259674", "text": "@Test\n\tpublic void testDueDate()\n\t{\n\n\t\tCalendar cal = new GregorianCalendar(2016,7,13); //13th August 2015\n\t\tDate borrowDate = cal.getTime();\n\n\t\tLoan testLoan = new Loan(member1, book2, borrowDate);\n\t\tDate dueDate = testLoan.dueDate();\n\n\t\tcal.add(Calendar.DATE, Loan.LOAN_PERIOD);\n\t\tDate expectedDueDate = cal.getTime();\n\n\t\tassertEquals(true, dueDate.equals(expectedDueDate));\n\t}", "title": "" }, { "docid": "15a02944475d809683580b5615fb718f", "score": "0.5017865", "text": "private boolean isValidIsbn(){\r\n String textValue = txtISBN.getText();\r\n if (!FieldValidator.isEmpty(textValue) && FieldValidator.isNumericOnly(textValue) && textValue.length() == 13) \r\n return true; \r\n return false;\r\n }", "title": "" }, { "docid": "2f033c73cae082256e50f112e17ccce1", "score": "0.500881", "text": "Book(long isbn, String title, String author, double price)\n {\n this.isbn = isbn;\n this.title = title;\n this.author = author;\n this.price = price;\n }", "title": "" }, { "docid": "6e8918df8463719874edb3320490cf9a", "score": "0.5001751", "text": "public void lendBook(String isbn, Loan loan) {\n Book book = getBooKReferenceByIsbn(isbn);\n book.addLoan(loan);\n }", "title": "" }, { "docid": "0183d9b47534ee0b94be7f68ab6321f6", "score": "0.49970517", "text": "@Override\n public boolean barrowBook(int bookID) {\n //STUB METHOD\n return false;\n }", "title": "" }, { "docid": "4d7c6c8088597b88de60cc724f070666", "score": "0.49675906", "text": "@Override\n\tpublic boolean requestBook(int bid, String author) {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "e03c4d601b3d51654b5904846994ff60", "score": "0.49567035", "text": "public boolean vaisbn2(String isbn) {\n\t\treturn bookBarcodeDao.vaisbn2(isbn);\n\t}", "title": "" }, { "docid": "bb46a496a8eee9453d52c090bbcec6ca", "score": "0.494577", "text": "public static void checkoutBook(ArrayList<Book> books) throws Exception {\n\t\tbooks = LibraryTextFile.readFile();\n\t\tString bookTitle;\n\t\tLocalDate date = LocalDate.now();\n\t\tdate = date.plusDays(14);\n\t\tint bookNum=0, checkoutNum;\n\t\tboolean isValid = false;\n\t\t\n\t\tSystem.out.print(\"Enter the title/keyword of the book you are checking out: \");\n\t\tbookTitle = scnr.next().toUpperCase();\n\t\t\n\t\tHashMap<Integer, Book> matchingBooks = new HashMap<>();\n\t\tHashMap<Integer, Book> checkedOutBooks = new HashMap<>();\n\t\tHashMap<Integer, Book> availableBooks = new HashMap<>();\n\t\t\n\t\t// loop through the ArrayList that stores the Book object made from the input of book.txt file\n\t\t//\tand searches for match in the book title with the keyword entered by the user\n\t\tfor(int i=0; i<books.size();i++) {\n\t\t\tif(books.get(i).getBookTitle().contains(bookTitle)) {\n\t\t\t\tbookNum=i+1;\n\t\t\t\tmatchingBooks.put(bookNum,books.get(i));\n\t\t\t\tSystem.out.println((i+1)+\". \"+books.get(i).getBookTitle()+ \" by\" +books.get(i).getBookAuthor());\n\t\t\t} \n\t\t} \n\t\t// loop through the matching entries to find if the book is On shelf or already checked out\n\t\t// and store the corresponding entries in HashMaps\n\t\tdo {\n\t\tif(matchingBooks.isEmpty()) {\n\t\t\tSystem.out.println(\"Sorry we don't have any matching books!\");\n\t\t\tbreak;\t\t\t\n\t\t}else {\n\t\t\tfor(HashMap.Entry<Integer, Book> bookEntry:matchingBooks.entrySet()) {\n\t\t\t\tif(bookEntry.getValue().getBookStatus().equals(Status.ONSHELF)) {\n\t\t\t\t\tavailableBooks.put(bookEntry.getKey(), bookEntry.getValue());\t\n\t\t\t\t}else if(bookEntry.getValue().getBookStatus().equals(Status.CHECKED_OUT)) {\n\t\t\t\t\tcheckedOutBooks.put(bookEntry.getKey(), bookEntry.getValue());\t\n\t\t\t\t}\n\t\t\t}\n\t\t} // end of match search\n\t\t\n\t\tif(matchingBooks.size() == checkedOutBooks.size()) {\n\t\t\tSystem.out.println(\"Sorry all the books are out at this time. Please check back later!\");\n\t\t\tbreak;\n\t\t} \n\n\t\tSystem.out.println(\"Avaiable book numbers - \"+availableBooks.keySet());\n\t\t// loop through the available books HashMap and find out if the user entered book number is \n\t\t// available for checkout and if so, then change the status of the book to checked out and \n\t\t// due date to 14 days from the date of checkout\n\t\tdo {\n\t\tif(!availableBooks.isEmpty()) {\n\t\t\tcheckoutNum = Validator.getInteger(scnr, \"Enter a book number: \" );\n\t\t\tif(availableBooks.containsKey(checkoutNum)) {\n\t\t\t\tfor(HashMap.Entry<Integer, Book> bookEntry:availableBooks.entrySet()) {\n\t\t\t\t\tif(bookEntry.getKey() == checkoutNum) {\n\t\t\t\t\t\tbookEntry.getValue().setBookStatus(Status.CHECKED_OUT);\t\n\t\t\t\t\t\tbookEntry.getValue().setDueDate(date);\n\t\t\t\t\t\tSystem.out.println(\"The book \" +bookEntry.getValue().getBookTitle()+\" is checked out and is due on \"+date);\n\t\t\t\t\t\tLibraryTextFile.writeFile(books);\n\t\t\t\t\t\tisValid = true;\n\t\t\t\t\t}\t\t\t\t\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Sorry the book you requested is not available!\");\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t}else\n\t\t\tSystem.out.println(\"All books are checked out ! Please visit later\");\n\t\t}while(!isValid);\n\t\tSystem.out.println(\"Thanks for checking out! Enjoy reading\");\n\t\t}while(!isValid);\n\t\tscnr.nextLine();\n\n\t}", "title": "" }, { "docid": "bb5a90f19f17041e29210be911bc172c", "score": "0.4943436", "text": "public void add(long isbn, String author, String title) {\n\t\tlibrary.add(new LibraryBookGeneric<Type>(isbn, author, title));\n\t}", "title": "" }, { "docid": "9f759dc19cc7c5d68ab3d97b4b57b0bd", "score": "0.4942268", "text": "private boolean needsANewBookedBusinessDayIncrement(BusinessDay bookedBusinessDay, List<BusinessDayIncrement> increments) {\n return isNull(bookedBusinessDay)\n && findFirstBookedBusinessDayInc(increments)\n .isPresent();\n }", "title": "" }, { "docid": "143bdd916fdef4dd47e09d2a8d4eeee1", "score": "0.4928897", "text": "public boolean addBook(Book book)\n {\n if (getBook(book.getZsbn()) == null) {\n\n Connection conn = SQLiteJDBCDriverConnection.getInstance().conn;\n try {\n PreparedStatement prep = conn.prepareStatement(\n \"insert into Book values (?, ?, ?, ?);\");\n prep.setString(1, book.getZsbn());\n //prep.setInt();\n conn.setAutoCommit(false);\n prep.executeUpdate();\n conn.setAutoCommit(true);\n } catch (SQLException e1) {\n System.out.println(\"Error creating or running statement: \" + e1.getMessage());\n return false;\n }\n return true;\n }\n\n return false;\n }", "title": "" }, { "docid": "e5430ac82e0f5db10e4c04ec9b17fa59", "score": "0.49052632", "text": "@Override\n\tpublic int checkStock(String isbn) {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "2346ee5cfea43ec0172f31cd1f41eebc", "score": "0.49000487", "text": "public boolean addLoan( Book book, int id )\n {\n if( this.loans.containsKey( (Integer) id ) && this.getNumCopies(id) > 0 )\n {\n ArrayList<Book> temp = this.loans.get( (Integer) id );\n\n //can't take out more than one copy of the same book\n if( temp.contains( book ) || this.reservations.get( (Integer) id ).contains(book) ||\n !this.setNumCopies( id, this.getNumCopies(id) - 1 ) ) //updates number of available books\n {\n return false;\n }\n\n String query = \"INSERT INTO loans VALUES( ?, ?, false, ? )\";\n ArrayList<String> params = new ArrayList<String>();\n SimpleDateFormat format = new SimpleDateFormat(\"yyyy-MM-dd\");\n params.add( Integer.toString(book.getId()) );\n params.add( Integer.toString(id) );\n params.add( format.format(Calendar.getInstance().add( Calendar.DATE, 7 ).getTime()) );//books are due a week from loan\n\n if( db.setData( query, params ) )\n {\n temp.add( book );\n this.loans.put( (Integer) id, temp );\n\n return true;\n }\n }\n return false;\n }", "title": "" }, { "docid": "cbfb0b8497566afe1f6a0ee3f4c11f06", "score": "0.48969358", "text": "public void returnBook(Book toReturn) {toReturn.checkIn(this);}", "title": "" }, { "docid": "d94db73bb76c661f3fe5ea7f075d6637", "score": "0.48893476", "text": "public static boolean removeTest() {\r\n\t\tHashTableMap<String, Book> library = new HashTableMap<String, Book>();\r\n\r\n\t\ttry {\r\n\t\t\tDataWrangler.readInputFile(library, \"Book_data.csv\");\r\n\t\t} catch(Exception e) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\tString title = \"Cool Book\";\r\n\t\tString author = \"Joe Cool\";\r\n\t\tString publisher = \"Cool Books LTD\";\r\n\t\tint publishYear = 1964;\r\n\t\tString isbn = \"1234567890\";\r\n\t\tBook filler = new Book(title, author, publisher, publishYear, isbn);\r\n\t\tlibrary.put(isbn, filler);\r\n\t\t\r\n\t\ttry {\r\n\t\t\tlibrary.remove(isbn);\r\n\t\t\tlibrary.get(isbn);\r\n\t\t} catch(NoSuchElementException e1) {\r\n\t\t\tif(library.remove(isbn)==null)\r\n\t\t\t\treturn true;\r\n\t\t\treturn false;\r\n\t\t} catch(Exception e) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "270d1e655568c21f29f07608a88cc614", "score": "0.48572612", "text": "private static boolean CheckISBN10 (String isbn) {\r\n int sum = 0;\r\n String nStr;\r\n\r\n for (int n=0; n < 10; n++) {\r\n nStr= isbn.substring(n, n+1);\r\n if (n < 9 || nStr != \"X\") {\r\n sum += Integer.parseInt(nStr) * (10-n);\r\n } else {\r\n sum += 10;\r\n }\r\n }\r\n return (sum % 11 == 0);\r\n }", "title": "" }, { "docid": "c58a1d24d0353d23d275667551ea86f8", "score": "0.48463547", "text": "private void checkDueDate() {\n\t\twhile (closeStatus == false) {\n\t\t\ttry {\n\t\t\t\tif (due.after(rent)) {\n\t\t\t\t\tcloseStatus = true;\n\t\t\t\t} else {\n\t\t\t\t\tString dueDate = JOptionPane.showInputDialog(\n\t\t\t\t\t\t\t\"Due Date Must Be After \" + fmt.format(rent),\n\t\t\t\t\t\t\t\"MM/DD/YYYY\");\n\t\t\t\t\tif (dueDate == null) {\n\t\t\t\t\t\tcloseStatus = true;\n\t\t\t\t\t\tunit.setNameOfRenter(null);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tdue = fmt.parse(dueDate);\n\t\t\t\t\t\tunit.setDueBack(due);\n\t\t\t\t\t\tcloseStatus = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} catch (ParseException e3) {\n\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "76e827b1e7b3d29fcc3bfe04e4655de0", "score": "0.484199", "text": "static void checkOutBook() {\n System.out.println(\"Welcome to the book checkout system. \" +\n \"Please enter the ID of the person who wants to check out a book for: \");\n int cardNumber = sc.nextInt();\n Patron p = null;\n for(Users user: library.getUsers()) {\n if (user.getCardNumber() == cardNumber) {\n p = (Patron) user;\n System.out.println(p.name);\n break;\n\n }\n\n }\n\n //here you select the books based on the number that is assigned to the book\n System.out.println(\"Enter the number of the book you want as displayed: \");\n System.out.println();\n int i = 1;\n for(Document doc: library.getDocuments()) {\n System.out.println(i + \": \" + doc.getTitle());\n i = i + 1;\n\n }\n cardNumber = sc.nextInt();\n Document temp = library.getDocuments().get(cardNumber - 1);\n System.out.println(temp.getTitle());\n System.out.println(temp.getEdition());\n System.out.println(temp.getNumberOfAvailableCopies());\n System.out.println(temp.getPublicationYear());\n for(String author: temp.getAuthors()) {\n System.out.print(author + \", \");\n }\n\n System.out.println(\"\\nAre you sure that you want to borrow this book in the name of \" + p.getName() + \"? (Y/N)\");\n\n char c = sc.next(\".\").charAt(0);\n if(c == 'Y' || c == 'y') {\n library.borrow(temp, p);\n }\n\n\n\n }", "title": "" }, { "docid": "be79b887365c0c3874a07146da38b949", "score": "0.48241776", "text": "private void findBook() {\n String title = findBookPanel.getTitleField().getText();\n findBookPanel.getTitleField().setText(\"\");\n Book bookAvailable = library.findInAvailable(title);\n Book bookLoaned = library.findInLoaned(title);\n if (bookAvailable == null && bookLoaned == null) {\n findBookPanel.getTextDisplay().setText(\"This book is not in the library.\");\n } else if (bookAvailable != null) {\n findBookPanel.getTextDisplay().setText(convertMultiline(bookAvailable.toString()));\n } else {\n findBookPanel.getTextDisplay().setText(convertMultiline(bookLoaned.toString()\n + \"\\n\\nBorrower's information:\\n\" + bookLoaned.getBorrower().toString()));\n }\n }", "title": "" }, { "docid": "68a46f0b0914511e2cbdd05fbcbf910e", "score": "0.47944033", "text": "public static boolean addBadTest() {\r\n\t\tHashTableMap<String, Book> library = new HashTableMap<String, Book>();\r\n\r\n\t\ttry {\r\n\t\t\tDataWrangler.readInputFile(library, \"Book_data.csv\");\r\n\t\t} catch(Exception e) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\tString title = \"Cool Book\";\r\n\t\tString author = \"Joe Cool\";\r\n\t\tString publisher = \"Cool Books LTD\";\r\n\t\tint publishYear = 1964;\r\n\t\tString isbn = \"1234567890\";\r\n\t\tBook filler = new Book(title, author, publisher, publishYear, isbn);\r\n\t\tlibrary.put(isbn, filler);\r\n\t\t\r\n\t\tif(library.put(isbn, filler) == true)\r\n\t\t\treturn false;\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "8c6a77bc2c6accc9aa8099093050f3c7", "score": "0.4782336", "text": "public static boolean removeNothingTest() {\r\n\t\tHashTableMap<String, Book> library = new HashTableMap<String, Book>();\r\n\r\n\t\ttry {\r\n\t\t\tDataWrangler.readInputFile(library, \"Book_data.csv\");\r\n\t\t} catch(Exception e) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t \r\n\t\tString isbn = \"1234567890\";\r\n\t\tif(library.remove(isbn)!= null)\r\n\t\t\treturn false;\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "82e0ffb21271baede7d6d8961a13ddc9", "score": "0.47817442", "text": "public static boolean addTest(){\r\n\t\tHashTableMap<String, Book> library = new HashTableMap<String, Book>();\r\n\r\n\t\ttry {\r\n\t\t\tDataWrangler.readInputFile(library, \"Book_data.csv\");\r\n\t\t} catch(Exception e) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tString title = \"Cool Book\";\r\n\t\tString author = \"Joe Cool\";\r\n\t\tString publisher = \"Cool Books LTD\";\r\n\t\tint publishYear = 1964;\r\n\t\tString isbn = \"1234567890\";\r\n\t\tBook temp = new Book(title, author, publisher, publishYear, isbn);\r\n\r\n\t\tlibrary.put(isbn, temp);\r\n\r\n\t\tif(library.get(isbn)!=temp)\r\n\t\t\treturn false;\r\n\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "9b6e2c91b005e9b6179c65fa0dad15f7", "score": "0.47716522", "text": "public void setIsbnDelLibroTrasErrorPorTeclado() {\n\n\t\tSystem.out.println(\"Introduzca un nuevo ISBN valido: \");\n\t\tString nuevoISBN = teclado.nextLine();\n\t\tnuevoISBN.replaceAll(\" \", \"\");\n\t\tif (validarIsbn10(nuevoISBN) == true|| validarIsbn13(nuevoISBN)==true) {\n\t\t\tthis.isbnDelLibro = nuevoISBN;\n\t\t} else {\n\t\t\tSystem.out.println(\"ISBN no valido.\");\n\t\t\tsetIsbnDelLibroTrasErrorPorTeclado();\n\t\t}\n\n\t}", "title": "" }, { "docid": "5afffb7e749b7005c3ae816ec8d6dc15", "score": "0.47688213", "text": "public void add() {\n\t\tin = new Scanner(System.in);\n\t\tSystem.out.println(\"Enter information for the new book\");\n\t\tSystem.out.print(\"ID: \");\n\t\tString id = \"\";\n\t\twhile(in.hasNext()) {\n\t\t\tid = in.next();\n\t\t\tif(checkId(id)) {\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tSystem.out.print(\"ID has already existed, please type again \");\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\tin.nextLine();\n\t\t\n\t\tSystem.out.print(\"Title: \");\n\t\tString title = in.nextLine();\n\t\t\n\t\tSystem.out.print(\"Author: \");\n\t\tString author = in.nextLine();\n\t\t\n\t\tSystem.out.print(\"Is borrowed (1 = yes, 0 = no): \");\n\t\tint choice = intCheck();\n\t\tchoice = check(choice);\n\t\t\n\t\tBoolean isBorrowed = false;\n\t\tswitch(choice) {\n\t\tcase 1:\n\t\t\tisBorrowed = true;\n\t\t\tbreak;\n\t\tcase 0:\n\t\t\tisBorrowed = false;\n\t\t\tbreak;\n\t\t}\n\t\t//add books to the library\n\t\taddToList(id.toUpperCase(), title, author, isBorrowed);\n\t\tSystem.out.println(\"A new book has been added\");\n\t\tSystem.out.println();\n\t}", "title": "" }, { "docid": "605e3703b83712eda1c50396033b4904", "score": "0.47662792", "text": "@Override\n\tpublic List<Book> searchBooksByISBN(String searchISBN) throws IOException, MongoException {\n List<Book> result = new ArrayList<>();\n MongoCollection<Document> coll = db.getCollection(\"book\");\n\n BasicDBObject query = new BasicDBObject();\n query.put(\"isbn\", searchISBN);\n FindIterable<Document> docs = coll.find(query);\n\n for(Document doc : docs) {\n Book book = makeBook(doc);\n result.add(book);\n }\n return result;\n }", "title": "" }, { "docid": "632e4fbe8b72cb07448f567913552777", "score": "0.47645387", "text": "@Test\n public void testCheckoutNonAvailable() {\n book.checkoutBook();\n assertFalse(book.checkoutBook()); // should not be able to check out again\n }", "title": "" }, { "docid": "24a03c9acad4d6ce9c0bcf786949fd2f", "score": "0.47615445", "text": "public boolean isSetBookName() {\n return this.bookName != null;\n }", "title": "" }, { "docid": "383643a8eaaca7a73564b3ad4cb7bd76", "score": "0.47577518", "text": "public void rentBook(Book toRent) {toRent.checkOut(this);}", "title": "" }, { "docid": "a76ca5b243cee52a8734286c06892244", "score": "0.47499502", "text": "public static boolean testShelfSrchISBN(){\n return false;//STUB\n }", "title": "" }, { "docid": "28128b6df18ccbddc626801af43912d2", "score": "0.47476953", "text": "public void update(Book book) {\n\t\tString bookbool;\n\t\tif (book.isAvailability()){\n\t\t\tbookbool = \"1\";\n\t\t}else{\n\t\t\tbookbool = \"0\";\n\t\t}\n\t\texecuteQuery(\"UPDATE Book SET \"\n\t\t\t\t+ \" title = '\" + book.getTitle()\n\t\t\t\t+ \"', price = '\" + book.getPrice()\n\t\t\t\t+ \"', availability = '\" + bookbool\n\t\t\t\t+ \"' WHERE id = '\" + book.getId() \n\t\t\t\t+ \"'\");\n\t\tDAOFactory.closeConnection();\n\t\t// TODO Auto-generated method stub\n\n\t}", "title": "" }, { "docid": "f4b1404ae197bfe38c2e46c6fbe26802", "score": "0.4741745", "text": "private void borrowBook() {\n solo.clickOnText(\"Requesting 69\");\n solo.clickOnView(solo.getView(R.id.view_button_accepted));\n checkActivity(ViewBookActivity.class, \"ViewBookActivity\");\n solo.clickOnView(solo.getView(R.id.borrow_book_button));\n exitActivity();\n }", "title": "" }, { "docid": "6b868a3fd377f1277ec837cf13777434", "score": "0.47398612", "text": "public static void returnBook(ArrayList<Book> books) throws Exception {\n\t\tbooks = LibraryTextFile.readFile();\n\t\tString bookTitle;\n\t\tLocalDate date = LocalDate.now();\n\t\tdate = date.plusDays(7);\n\t\tint bookNum, checkInNum;\n\t\tboolean isValid=false;\n\t\t\n\t\tHashMap<Integer, Book> matchingBooks = new HashMap<>();\n\t\tHashMap<Integer, Book> checkedOutBooks = new HashMap<>();\n\t\tHashMap<Integer, Book> availableBooks = new HashMap<>();\n\t\t\n\t\tSystem.out.print(\"Please enter the title of the book you are returning: \");\n\t\tbookTitle=scnr.nextLine().toUpperCase();\n\t\t\t\t\n\t\tfor(int i=0; i<books.size();i++) {\n\t\t\tif(books.get(i).getBookTitle().contains(bookTitle)) {\n\t\t\t\tbookNum=i+1;\n\t\t\t\tmatchingBooks.put(bookNum,books.get(i));\n\t\t\t\tSystem.out.println((i+1)+\". \"+books.get(i).getBookTitle()+ \" by\" +books.get(i).getBookAuthor());\n\t\t\t} \n\t\t} \n\t\t\n\t\t\n\t\tdo {\n\t\tif(matchingBooks.isEmpty()) {\n\t\t\tSystem.out.println(\"Sorry we don't have any matching books!\");\n\t\t\tbreak;\n\t\t}else {\n\t\t\tfor(HashMap.Entry<Integer, Book> bookEntry:matchingBooks.entrySet()) {\n\t\t\t\tif(bookEntry.getValue().getBookStatus().equals(Status.ONSHELF)) {\n\t\t\t\t\tavailableBooks.put(bookEntry.getKey(), bookEntry.getValue());\t\n\t\t\t\t}else if(bookEntry.getValue().getBookStatus().equals(Status.CHECKED_OUT)) {\n\t\t\t\t\tcheckedOutBooks.put(bookEntry.getKey(), bookEntry.getValue());\t\n\t\t\t\t}\n\t\t\t}\n\t\t} // end of match search\n\t\t\n\t\tif(matchingBooks.size() == availableBooks.size()) {\n\t\t\tSystem.out.println(\"Sorry all the books are out at this time. Please check back later!\");\n\t\t\tbreak;\t\n\t\t}\n\t\t\n\t\tSystem.out.println(\"checkedout books - \"+checkedOutBooks.keySet());\n\t\tdo {\n\t\tif(!checkedOutBooks.isEmpty()) {\n\t\t\tcheckInNum = Validator.getInteger(scnr, \"Enter the book number: \");\n\t\t\tif(checkedOutBooks.containsKey(checkInNum)) {\n\t\t\t\tfor(HashMap.Entry<Integer, Book> bookEntry:checkedOutBooks.entrySet()) {\n\t\t\t\t\tif(bookEntry.getKey() == checkInNum) {\n\t\t\t\t\t\tif(LocalDate.now().isAfter(bookEntry.getValue().getDueDate()))\t{\n\t\t\t\t\t\t\tlong daysLate = (ChronoUnit.DAYS.between(LocalDate.now(), bookEntry.getValue().getDueDate()));\n\t\t\t\t\t\t\t\tbookEntry.getValue().setBookStatus(Status.ONSHELF);\n\t\t\t\t\t\t\t\tbookEntry.getValue().setDueDate(null);\n\t\t\t\t\t\t\t\tLibraryTextFile.writeFile(books);\n\t\t\t\t\t\t\t\tSystem.out.println(\"This book was overdue by \" + Math.abs(daysLate) + \" days. Thank you for returning.\");\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tbookEntry.getValue().setBookStatus(Status.ONSHELF);\n\t\t\t\t\t\t\t\tbookEntry.getValue().setDueDate(null);\n\t\t\t\t\t\t\t\tLibraryTextFile.writeFile(books);\n\t\t\t\t\t\t\t\tSystem.out.println(\"Thank you! Come back soon.\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tisValid=true;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Sorry the book is already on the shelf!\");\n\t\t\t\tisValid=false;\n\t\t\t}\n\t\t}else {\n\t\t\tSystem.out.println(\"All books are on shelf! Please checkout book of your choice.\");\n\t\t\tisValid=true;\n\t\t}\n\t\t\n\t\t}while(!isValid);\n\t\tLibraryTextFile.writeFile(books);\n\t\t}while(!isValid);\n\t\tscnr.nextLine();\n\t}", "title": "" }, { "docid": "ba9299a1efa2eae53f8fe1687896c90e", "score": "0.473757", "text": "boolean hasReserDate();", "title": "" }, { "docid": "ba9299a1efa2eae53f8fe1687896c90e", "score": "0.473757", "text": "boolean hasReserDate();", "title": "" }, { "docid": "ba9299a1efa2eae53f8fe1687896c90e", "score": "0.473757", "text": "boolean hasReserDate();", "title": "" }, { "docid": "6529337f11474ac8808ce75fef1cd659", "score": "0.4734717", "text": "public boolean isBorrowed() {\n// this loop is ~not necessary~\n// if (this.borrowed) {\n// return true;\n// } else {\n// return false;\n// }\n return this.borrowed;\n }", "title": "" }, { "docid": "405d5b265e6d21fc5114ffae0411add9", "score": "0.47346145", "text": "public boolean equals(Book obj)\r\n \r\n {\r\n \r\n if(obj != null && obj instanceof Book)\r\n \r\n {\r\n \r\n if(obj.isbn == this.isbn) return true;\r\n else return false;\r\n \r\n } //end of if\r\n \r\n else\r\n \r\n return false;\r\n \r\n }", "title": "" }, { "docid": "e74e64f68cf00ee7c48ab3486746f8b0", "score": "0.4718107", "text": "@Override\r\n\tpublic void actionPerformed(ActionEvent event) {\n\t\tif (event.getSource() == issueBtn) {// if issue button is clicked\r\n\t\t\tint issuebookindex = 0;\r\n\t\t\tString duedate = null;\r\n\t\t\tfor (int i = 0; i < booksList.size();) { // loop through the\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// checkboxes\r\n\r\n\t\t\t\tif (check[i].isSelected()) {// if check boxes is selected\r\n\t\t\t\t\tissuebookindex = i;// get index\r\n\r\n\t\t\t\t\tbreak; // and break the loop\r\n\r\n\t\t\t\t} else { // else go to the next index\r\n\t\t\t\t\ti++;\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t\tBook bk = booksList.get(issuebookindex); // get the book details\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// from the checkbox\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// selected\r\n\r\n\t\t\tif (bk.getStatus().equals(\"Available\")) { // if books is available\r\n\t\t\t\tbk.setStatus(\"Unavailable\"); // set status as unavailable\r\n\t\t\t\tbk.setbookreturndate(duedate(duedate));// set return date as\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// duedate\r\n\r\n\t\t\t} else {\r\n\t\t\t\tJOptionPane.showMessageDialog(null,\r\n\t\t\t\t\t\t\"We are sorry but the book is already taken\\n\" + \"Please choose another book\", \"Warning\",\r\n\t\t\t\t\t\tJOptionPane.WARNING_MESSAGE); // else display books\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// taken warning message\r\n\r\n\t\t\t}\r\n\t\t\tint issuememeberindex = 0;\r\n\t\t\tfor (int i = 0; i < userList.size();) { // loop through users\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t// checkboxes\r\n\r\n\t\t\t\tif (checkuser[i].isSelected()) { // if checkbox is selected\r\n\t\t\t\t\tissuememeberindex = i; // get index\r\n\t\t\t\t\tbreak; // and break the loop\r\n\r\n\t\t\t\t} else { // else go to the next index\r\n\t\t\t\t\ti++;\r\n\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tUser us = userList.get(issuememeberindex); // get the members\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// details from the\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// checkbox selected\r\n\t\t\tif (us.getNumBooksBorrowed() < 5) {// if numbers of books borrowed\r\n\t\t\t\t\t\t\t\t\t\t\t\t// is less than 5\r\n\r\n\t\t\t\tus.setNumBooksBorrowed(us.getNumBooksBorrowed() + 1); // add 1\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// in\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// the\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// numbers\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// of\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// books\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// borrowed\r\n\t\t\t\tus.setreturndate(duedate(duedate));// set return date as duedate\r\n\t\t\t} else {\r\n\t\t\t\tJOptionPane.showMessageDialog(null, \"We are very sorry but a member can only borrow up to 5 books\\n\"\r\n\t\t\t\t\t\t+ \"Please choose another member\", \"Warning\", JOptionPane.WARNING_MESSAGE);\r\n\t\t\t\t// else display warning message\r\n\t\t\t}\r\n\t\t\tthis.setVisible(false);// exit the window\r\n\t\t}\r\n\r\n\t\telse if (event.getSource() == returnBtn) {// if return button is checked\r\n\t\t\tint returnbookindex = 0;\r\n\t\t\tfor (int i = 0; i < booksList.size();) {// loop through books\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t// checkboxes\r\n\r\n\t\t\t\tif (check[i].isSelected()) { // if checkbox is selected\r\n\t\t\t\t\treturnbookindex = i; // get index\r\n\t\t\t\t\tbreak;// and break the loop\r\n\r\n\t\t\t\t} else { // else go to the next index\r\n\t\t\t\t\ti++;\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t\tBook bk = booksList.get(returnbookindex); // get the books details\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// from the checkbox\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// selected\r\n\t\t\tif (bk.getStatus().equals(\"Unavailable\")) {// if book is unavailable\r\n\t\t\t\tbk.setStatus(\"Available\");// set books as available\r\n\t\t\t\tbk.setbookreturndate((\"None\"));// set return date as none\r\n\r\n\t\t\t} else {\r\n\t\t\t\tJOptionPane.showMessageDialog(null,\r\n\t\t\t\t\t\t\"You cannot return an available book\\n\" + \"Please choose another book\", \"Warning\",\r\n\t\t\t\t\t\tJOptionPane.WARNING_MESSAGE);\r\n\t\t\t\t// else display warning message\r\n\t\t\t}\r\n\t\t\tint returnuserindex = 0;\r\n\t\t\tfor (int i = 0; i < userList.size();) { // loop through members\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t// checkboxes\r\n\r\n\t\t\t\tif (checkuser[i].isSelected()) { // if checkbox is selected\r\n\t\t\t\t\treturnuserindex = i;// get index\r\n\t\t\t\t\tbreak;// and break the loop\r\n\r\n\t\t\t\t} else { // else go to the next index\r\n\t\t\t\t\ti++;\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\r\n\t\t\tUser us = userList.get(returnuserindex); // get the members details\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// from the checkbox\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// selected\r\n\r\n\t\t\tif (us.getNumBooksBorrowed() > 0) { // if numbers of books borrowed\r\n\t\t\t\t\t\t\t\t\t\t\t\t// is more than 0\r\n\t\t\t\tus.setNumBooksBorrowed(us.getNumBooksBorrowed() - 1); // subtract\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// 1\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// from\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// the\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// number\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// of\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// books\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// borowed\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// of\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// the\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// member\r\n\t\t\t\tus.setreturndate((\"None\"));// set return date as none\r\n\t\t\t} else {\r\n\t\t\t\tJOptionPane.showMessageDialog(null,\r\n\t\t\t\t\t\t\"We are very sorry but the member selected does not have any borrowed book\\n\"\r\n\t\t\t\t\t\t\t\t+ \"Please choose another member\",\r\n\t\t\t\t\t\t\"Warning\", JOptionPane.WARNING_MESSAGE);\r\n\t\t\t\t// Display warning message\r\n\t\t\t}\r\n\r\n\t\t\tthis.setVisible(false);// close window\r\n\t\t} else if (event.getSource() == cancelBtn) { // if cancel button is\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// clicked\r\n\t\t\tthis.setVisible(false);// exit the window\r\n\t\t}\r\n\r\n\t}", "title": "" }, { "docid": "d574bdd7c4821ef0ffb4e82ff4968201", "score": "0.47105595", "text": "private YesNoFlag isRenewalBAvailable(Record record) {\r\n YesNoFlag isAvailable = YesNoFlag.getInstance(record.getStringValue(\"isRenewalBAvailable\"));\r\n Date effectiveToDate = record.getDateValue(\"shareDtlEffToDate\");\r\n Date termExpirationDate = DateUtils.parseDate(policyHeader.getTermEffectiveToDate());\r\n if (isAvailable.booleanValue() && effectiveToDate.before(termExpirationDate)) {\r\n isAvailable = YesNoFlag.N;\r\n }\r\n return isAvailable;\r\n }", "title": "" }, { "docid": "985280bcce967a1f786c1562bd2e1df2", "score": "0.47099873", "text": "public boolean extendLoan() {\r\n\t\tif(book.isReserved() || isOverDue()) {\r\n\t\t\treturn false;\r\n\t\t}\t\t\r\n\t\t\r\n\t\tsetLoanDate(LocalDate.now());\r\n\t\treturn true;\t\t\r\n\t}", "title": "" }, { "docid": "250d167b52c2f949c5e740cb999c05b1", "score": "0.47089761", "text": "public Book(String title, String author, Categories category, String[] keywords, String description,\r\n\t\t\tboolean isBorrowed, String borrower, String borrowDate) {\r\n\t\tsuper();\r\n\t\tthis.title = title;\r\n\t\tthis.author = author;\r\n\t\tthis.category = category;\r\n\t\tthis.keywords = keywords;\r\n\t\tthis.description = description;\r\n\t\tthis.isBorrowed = isBorrowed;\r\n\t\tthis.borrower = borrower;\r\n\t\tthis.borrowDate = borrowDate;\r\n\t}", "title": "" }, { "docid": "dc57d656729160773ae898778e5e3b61", "score": "0.47051552", "text": "boolean isSetBusDate();", "title": "" }, { "docid": "4e279fa5409867dce78b8015f423769a", "score": "0.4703527", "text": "public void checkout(String patron, String due) {\n\tSystem.out.println(\"cannot check out a reference book\");\n }", "title": "" }, { "docid": "f1adfb2d3f60b56764755a5445e9d7bb", "score": "0.46982306", "text": "public boolean isSetBookName() {\n return this.bookName != null;\n }", "title": "" }, { "docid": "f1adfb2d3f60b56764755a5445e9d7bb", "score": "0.46982306", "text": "public boolean isSetBookName() {\n return this.bookName != null;\n }", "title": "" }, { "docid": "29a87d217305fe765f9e5be15aa5366c", "score": "0.46876457", "text": "public boolean loseBook(Book b)\n\t{\n\t\tif (loanedBooks.contains(b))\n\t\t{\n\t\t\tloanedBooks.remove(b);\n\t\t\treturn lostBooks.add(b);\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "acb6b581dc6fc97d27995fda09232b0f", "score": "0.4686044", "text": "private void checkRep() {\n // same BookCopy cannot be both in inLibrary and checkedOut\n for (BookCopy copy : checkedOut) {\n assert !inLibrary.contains(copy);\n }\n }", "title": "" }, { "docid": "324b8c0f6f2f7786dbcf539115f690ed", "score": "0.4674278", "text": "public abstract boolean update(AddressBook addBook);", "title": "" }, { "docid": "244763e65057ba1bd6ff3967f4cc24e3", "score": "0.46736223", "text": "public void setBorrowedBook(ArrayList<String> borrowedBook)\n {\n this.borrowedBook = borrowedBook;\n }", "title": "" }, { "docid": "26dbc232656148976ee5450c1f4e4ba4", "score": "0.4672687", "text": "public boolean isSetDealDate() {\n return this.dealDate != null;\n }", "title": "" }, { "docid": "ed328e6ba6d81b3f39e68d422c36805b", "score": "0.4670915", "text": "public void borrowBook(LibraryMember member, int tick) {\n\t\tthis.whoHas = member;\n\t\tif (!member.ifAlreadyRead(this)) {\n\t\t\tmember.addToHistory(this);\n\t\t}\n\t\tmember.holdBook(this);\n\t\tthis.isTaken = true;\n\t\tthis.deadLine = tick + member.getTimeLimit();\n\t\tmember.setCurrentBooks(member.getCurrentBooks() + 1);\n\n\t}", "title": "" }, { "docid": "e154bc8bf7b98040db9eccfe79c9e170", "score": "0.46702936", "text": "public void setBorrowedDate(Date borrowedDate) {\n\t\tthis.borrowedDate = borrowedDate;\n\t}", "title": "" }, { "docid": "d595e14a8f28b404d3e6c35e57c1c7c5", "score": "0.46687615", "text": "public String getISBN() {\n return isbn;\n }", "title": "" }, { "docid": "fc6e9bcc98da10641fde0796ea56a3f0", "score": "0.466364", "text": "private void checkBorrowedStatus() {\n assertTrue(\"Book not appearing in My Books\", solo.searchText(\"Requesting 69\"));\n solo.clickOnText(\"Requesting 69\");\n solo.clickOnView(solo.getView(R.id.view_book_button));\n assertTrue(\"Book status is not borrowed\", solo.searchText(\"Borrowed\"));\n exitActivity();\n }", "title": "" }, { "docid": "1c120e8d2743e0c7a5f5aecb0951cffa", "score": "0.4648572", "text": "@Test\n\tpublic void testGetCheckedOutItems() {\n\t\tBook item = new Book(\"Dune\", \"Frank Herbert\", \"Chilton Books\", new Date(0) , Binding.HARDCOVER, 412);\n\t\ttry {\n\t\t\tlibrary.add(item);\n\t\t} catch (LibraryException e) {\n\t\t\tfail(\"Could not add an item to the library\");\n\t\t}\n\n\t\ttry {\n\t\t\tlibrary.addPatron(\"John Doe\");\n\t\t} catch (PatronException e) {\n\t\t\tfail(\"Could not add a patron to the library\");\n\t\t}\n\t\t\n\t\ttry{\n\t\t\tlibrary.checkout(item, library.findPatronByName(\"John Doe\").getCardNumber());\n\t\t} catch (CheckInOutException e){\n\t\t\tfail(\"Could not checkout an item from the library\");\n\t\t}\n\t\t\n\t\tlibrary.getCheckedOutItems();\n\t}", "title": "" }, { "docid": "6f840b9a50d5120177673c1b510d202f", "score": "0.46455798", "text": "public void borrowBook(Book book, User user);", "title": "" }, { "docid": "10c803d630d7a07d997ddfc3bc158587", "score": "0.4640971", "text": "public boolean checkHandForBook() {\n\t\t\n\t\tfor(int i = 0; i < hand.size(); i++){\n\t\t\tfor(int k = 1 + i; k < hand.size(); k++){\n\t\t\t\tCard refCard = new Card(hand.get(i));\n\t\t\t\tCard compCard = new Card(hand.get(k));\n\n\t\t\t\tif(refCard.isSameRank(compCard)){\n\t\t\t\t\tbook.add(refCard);\n\t\t\t\t\tbook.add(compCard);\n\t\t\t\t\thand.remove(k);\n\t\t\t\t\thand.remove(i);\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n \treturn false; //stubbed\n }", "title": "" }, { "docid": "3a015c598e7e8176884ff7bddfe5d9f6", "score": "0.46330485", "text": "@Override\n\tpublic boolean bookCar(Month month, int day, Make make, int lengthOfRent) {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "17eab5082ed235c6695a2bf3a43c0ee8", "score": "0.46310425", "text": "public void borrow(String book, String borrower) {\n }", "title": "" }, { "docid": "1a2154d30f72c6f16a9e10d20c47566f", "score": "0.46272534", "text": "void markAsAlreadyRead(int user_id, int book_id) throws SQLException;", "title": "" }, { "docid": "98c42f863073671745f76c252bee5344", "score": "0.46267357", "text": "public boolean rentRequest(Book wanted, String requestDate, String dueDate) {\r\n\r\n try {\r\n Helper.checkDate(requestDate);\r\n Helper.checkDate(dueDate);\r\n\r\n if(wanted.isRented((Library<Book>) this)){\r\n String available = wanted.availableDate((Library<Book>) this);\r\n\r\n // if the request date is after the available date the book can be rented\r\n if(Helper.timeDifference(available, requestDate) > 0){\r\n System.out.println(Helper.printAvailable(wanted, requestDate, this));\r\n return true;\r\n }\r\n\r\n System.out.println(Helper.printUnavailable(wanted, requestDate));\r\n return false;\r\n } else {\r\n System.out.println(Helper.printAvailable(wanted, requestDate, this));\r\n }\r\n\r\n } catch (DateFormatException e) {\r\n System.out.println(wanted + e.getMessage());\r\n return false;\r\n }\r\n return true;\r\n\r\n }", "title": "" } ]
e4be95818626abcaddcafb4475a21118
all constructors get namespaceaccess
[ { "docid": "d71edd4c3c5c81de46933b76d41526a1", "score": "0.67172045", "text": "public void encapsulateConstructor() {\n for (Operation feature : operations) {\n if (feature instanceof Constructor) {\n if (feature.getAccess() == AccessModifier.PUBLIC) {\n feature.setAccessModifier(AccessModifier.NAMESPACE);\n }\n }\n }\n }", "title": "" } ]
[ { "docid": "7958f776557cba158b3b833f0305f9e2", "score": "0.67716134", "text": "private Namespace() {\n this(GLOBAL);\n }", "title": "" }, { "docid": "eab238787844fcf9701da6753f09c8c0", "score": "0.635925", "text": "public abstract String getNamespace();", "title": "" }, { "docid": "e4874fc4ac9cd6cb3c0cb3506911b40d", "score": "0.6142248", "text": "private DataStreamStoreNamespaceUtils()\n {\n \n }", "title": "" }, { "docid": "0650ef0f911cdf33bd25a61a779342de", "score": "0.60032934", "text": "Namespace getNamespace();", "title": "" }, { "docid": "0650ef0f911cdf33bd25a61a779342de", "score": "0.60032934", "text": "Namespace getNamespace();", "title": "" }, { "docid": "cee691028f05abe1ee222a8efd41178e", "score": "0.5958606", "text": "public String getNamespace();", "title": "" }, { "docid": "5d7aabd694e3e173526714eb68be5757", "score": "0.59380245", "text": "public XMLSchemaNamespace() {\n\n }", "title": "" }, { "docid": "6fd9a7279a03bd777cf99221904a5838", "score": "0.5935319", "text": "String getNamespace();", "title": "" }, { "docid": "6fd9a7279a03bd777cf99221904a5838", "score": "0.5935319", "text": "String getNamespace();", "title": "" }, { "docid": "eb605403372981373153fe51ccaeac1e", "score": "0.5836768", "text": "public abstract boolean isNamespaceAware();", "title": "" }, { "docid": "bcaf9bd6bc1e9c462021ab29292ebb28", "score": "0.58213323", "text": "public Namespace() {\n super(\"namespace\", \"name\", \"&rest\", \"body\");\n }", "title": "" }, { "docid": "368478484dc58ae20705e417489c81e7", "score": "0.5811593", "text": "public void testCtor_emptyNamespace2() throws Exception {\r\n try {\r\n new InformixContactDAO(\" \", null);\r\n fail(\"The namespace is empty.\");\r\n } catch (IllegalArgumentException e) {\r\n //good\r\n }\r\n }", "title": "" }, { "docid": "8cf97c0f140b8a4fa17fa7c5097f3e75", "score": "0.5711862", "text": "private MySinglton3() {\n }", "title": "" }, { "docid": "2eedd56ce1c57b0b0eaa4217c0832adb", "score": "0.57067144", "text": "private MCS() {\r\n }", "title": "" }, { "docid": "f279984089d87fa71f26b3c28515fa64", "score": "0.56696403", "text": "public void testCtor_nullNamespace2() throws Exception {\r\n try {\r\n new InformixContactDAO(null, null);\r\n fail(\"The namespace is null.\");\r\n } catch (IllegalArgumentException e) {\r\n //good\r\n }\r\n }", "title": "" }, { "docid": "353d350180b926c691b1fd156337be0a", "score": "0.5656838", "text": "@Override\n\tString getNamespace();", "title": "" }, { "docid": "37742ab6265361ee157349bc061a43ec", "score": "0.56452936", "text": "private ItsystemPackage() {}", "title": "" }, { "docid": "d95f782d4899aa0b8f4225a0ecbf5389", "score": "0.562028", "text": "public XmlSchema()\r\n {\r\n // these are in blocks so that we can call register using a standard pattern.\r\n {\r\n final QName name = new QName(XMLConstants.XML_NS_URI, \"base\", XMLConstants.XML_NS_PREFIX);\r\n final SimpleType type = BuiltInSchema.SINGLETON.ANY_URI;\r\n XML_BASE = new AttributeDeclTypeImpl(name, ScopeExtent.Global, type);\r\n register(XML_BASE);\r\n }\r\n {\r\n final QName name = new QName(XMLConstants.XML_NS_URI, \"lang\", XMLConstants.XML_NS_PREFIX);\r\n final SimpleType type = BuiltInSchema.SINGLETON.LANGUAGE;\r\n XML_LANG = new AttributeDeclTypeImpl(name, ScopeExtent.Global, type);\r\n register(XML_LANG);\r\n }\r\n }", "title": "" }, { "docid": "6ca8f1b9105bd821c50aefc78718726c", "score": "0.559112", "text": "private Apiary() {\r\n\r\n }", "title": "" }, { "docid": "a7e9ea481d1b20ea1c316fde8b1e9710", "score": "0.55882365", "text": "ImmutableSet<ASTConstructor> getConstructors();", "title": "" }, { "docid": "593ad8b53fe79488de06338666874d46", "score": "0.55847216", "text": "Collection<ConstructorDeclaration> getConstructors();", "title": "" }, { "docid": "12fd65601d9c3d061fb3d6fe0af23ba0", "score": "0.5583014", "text": "private CModuleFunctions() {\n }", "title": "" }, { "docid": "ed7b4b36dffd8e11e0d35867ae420345", "score": "0.55793506", "text": "private SS(){}", "title": "" }, { "docid": "96f76ce32f9f1a36a486d23b0b909629", "score": "0.5570721", "text": "private TypicalInternship() {}", "title": "" }, { "docid": "15d7f74b814de0383b9faad7cddbc498", "score": "0.5562341", "text": "private IntrospectionTranslator() {\n }", "title": "" }, { "docid": "e0f3617db15d25d0bd80e55838a33d15", "score": "0.5514098", "text": "public interface Namespace {\n\n String PREFIX = \"teiidddl\";\n String URI = \"http://www.modeshape.org/ddl/teiid/1.0\";\n\n }", "title": "" }, { "docid": "7612846be3faa6f67f33572bbe60da15", "score": "0.5485141", "text": "private SchemaDeclarations() {}", "title": "" }, { "docid": "672616ba175974e05b0325fdc2c77311", "score": "0.5478697", "text": "public void testCtor_nullNamespace() throws Exception {\r\n try {\r\n new InformixContactDAO(null);\r\n fail(\"The namespace is null.\");\r\n } catch (IllegalArgumentException e) {\r\n //good\r\n }\r\n }", "title": "" }, { "docid": "26c9b905505776e93557ec2a49977cac", "score": "0.5464553", "text": "public NamespaceElements getNamespaceAccess() {\n\t\treturn pNamespace;\n\t}", "title": "" }, { "docid": "ca3ee8504eb5fb4dd10c588a6235ab1d", "score": "0.54633987", "text": "private IpcConstants() {\n\n\t}", "title": "" }, { "docid": "73b6e43cb23c1d6dc89cbb75bb1e203c", "score": "0.5458954", "text": "public void testCtor_emptyNamespace() throws Exception {\r\n try {\r\n new InformixContactDAO(\" \");\r\n fail(\"The namespace is empty.\");\r\n } catch (IllegalArgumentException e) {\r\n //good\r\n }\r\n }", "title": "" }, { "docid": "cb3a30c640fb60db0eac375d4cd5c967", "score": "0.54547465", "text": "protected void createNamespaceAnnotations() {\n String source = \"http://www.w3.org/XML/1998/namespace\";\t\t\t\t\t\t\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 addAnnotation\n (this, \n source, \n new String[] {\n \"lang\", \"en\"\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\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\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 }", "title": "" }, { "docid": "46904566664c565affdc397dc0efb2ad", "score": "0.54429144", "text": "protected KhanAccess() {}", "title": "" }, { "docid": "d38d8273c5fc3093ab61041d1b5daeb2", "score": "0.54385054", "text": "public void construire(){\n\t\t}", "title": "" }, { "docid": "f962714d62db331173b60bb4b27fbd56", "score": "0.5429725", "text": "@Override\r\n\t@PostConstruct\r\n\tpublic void init() {\n\t\tthis.setNamespace(\"M_ROLERELATION\");\r\n\t}", "title": "" }, { "docid": "9345a39ed84e83b79e215005aa051cec", "score": "0.54294705", "text": "public Namespace(Namespace parent) {\n this.parent = parent;\n this.decls = new ArrayList<Declaration>();\n }", "title": "" }, { "docid": "e3241f5780cc27fd85957a0c4617daaa", "score": "0.54257214", "text": "protected void initState() {\n try {\n NamespaceImpl ns = new NamespaceImpl(\"\", NO_NAMESPACE);\n addNamespace(ns);\n activateNamespace(ns);\n ns = new NamespaceImpl(\"xml\", XML_NAMESPACE);\n addNamespace(ns);\n activateNamespace(ns);\n } catch (XBISException e) {\n // can safely ignore error occurring here\n }\n }", "title": "" }, { "docid": "310c1cee7ffdd933dbea31a1a05a27af", "score": "0.5423358", "text": "protected Namespace namespace() {\n return namespaceSupplier().get();\n }", "title": "" }, { "docid": "d45bbd8c12e0b5f9a3a149eceb0d100b", "score": "0.54193574", "text": "public void testConstructorWithNamespace() {\n AddSubsystemAction addSubsystemAction = new AddSubsystemAction(subsystem, manager, namespace);\n assertNotNull(\"Instance of AddSubsystemAction should be created.\", addSubsystemAction);\n }", "title": "" }, { "docid": "f4d36e2a6aa4d9dff86d3a75440dc57d", "score": "0.5417594", "text": "private Library()\n \t{\n \t}", "title": "" }, { "docid": "e661ca4e30a2ce9c05e6063942cdf94b", "score": "0.54110724", "text": "private ANNClient()\r\n\t{\r\n\t}", "title": "" }, { "docid": "f970fe858a8544c0fc7dcfa29f6348fd", "score": "0.54086316", "text": "String getNameSpace();", "title": "" }, { "docid": "cfec551a41a6deda11949986b1e1d72d", "score": "0.5394345", "text": "private Constants() {\n\n\t}", "title": "" }, { "docid": "01845d118e2d24d28f5dc9d7c137b8dd", "score": "0.5393355", "text": "String getNamespaceUri();", "title": "" }, { "docid": "cfdcd252e657ee493bfba26f627910e9", "score": "0.5387959", "text": "private XmlUtilities() {\r\n }", "title": "" }, { "docid": "f64fe014625fad289f4254a5dcdc9037", "score": "0.5387616", "text": "private Globals(){}", "title": "" }, { "docid": "b93223f265a4bc7f772f3482f62ec960", "score": "0.5385524", "text": "private OntologyIndexerUtils()\n {\n }", "title": "" }, { "docid": "691cd3e0314721b56f5dc5df02e6f983", "score": "0.53846776", "text": "java.lang.String getNamespaceName();", "title": "" }, { "docid": "60d580f0593347450c49f27bb7a96364", "score": "0.53717965", "text": "public NameAccessPoint() {\n super();\n }", "title": "" }, { "docid": "8d91d5022162f1fc844eeb9a86fb6183", "score": "0.5364499", "text": "private Utils() {\r\n\t}", "title": "" }, { "docid": "806b7e392a0f8904e2a276a070618314", "score": "0.5354043", "text": "public void writeConstructors();", "title": "" }, { "docid": "4e5a86fbdff82aab8caa9a67054955cf", "score": "0.53453153", "text": "private Utilities()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "70e270dd3ad558da5a1c28561b37f0cd", "score": "0.53434813", "text": "public T caseNamespace(Namespace object)\n {\n return null;\n }", "title": "" }, { "docid": "6f70e1bf257794153e3a0fe90a93e3da", "score": "0.53410816", "text": "private ConexionJNDI() {\n\t}", "title": "" }, { "docid": "05376175828876d05086b6c82df71fe4", "score": "0.53367954", "text": "private Utils() {\n\t}", "title": "" }, { "docid": "ea9d2b8c33f6b59caca46aa623d553c7", "score": "0.533425", "text": "private Utilities() {\r\n\t}", "title": "" }, { "docid": "cc6e03c342a48abc068185c71c49f4bb", "score": "0.53310305", "text": "private Globals() {}", "title": "" }, { "docid": "11007d8abb04d478953f95ced8bf91f6", "score": "0.5330822", "text": "private DatastageExplorerUtilities() {\r\n\r\n\t}", "title": "" }, { "docid": "5c8809633bb7ef005f4a61e4c5b35a9f", "score": "0.5327893", "text": "private NetworkUtils() {\n\t}", "title": "" }, { "docid": "41fe10cb71b96980c99df291d4b25761", "score": "0.5319132", "text": "public void testCtor_notExistNamespace2() {\r\n try {\r\n new InformixContactDAO(\"notExist\", null);\r\n fail(\"The namespace does not exist.\");\r\n } catch (ConfigurationException e) {\r\n //good\r\n }\r\n }", "title": "" }, { "docid": "390a4eb3623a6f6063bd44ac1bcc934d", "score": "0.53185195", "text": "public Object getNamespaces() {\n return this.namespaces;\n }", "title": "" }, { "docid": "b90cd6dc4a15d87a51d1ea7c9a91431f", "score": "0.53119594", "text": "private AuthenticationParser() {\n access();\n }", "title": "" }, { "docid": "5459062f35881a050b1d69de3c7fd8e0", "score": "0.53097045", "text": "private NetworkInfo() {\r\n // forbid object construction \r\n }", "title": "" }, { "docid": "1dca6c6e7f0ac1f59e1e1933137b26de", "score": "0.5308392", "text": "private CvsRoot() {\r\n // Private, just needed to support the clone-method\r\n }", "title": "" }, { "docid": "43b0b085fb49b785a4e7cff7537d7b79", "score": "0.5307669", "text": "public String [] getNamespaces() {\n return this.Namespaces;\n }", "title": "" }, { "docid": "3c388c4bb4d81f16aa59ef55a9aa19b0", "score": "0.5302169", "text": "private Tg2SchemaGraph() {\n \t}", "title": "" }, { "docid": "24c35eb92dffa12da4501cc50c3905bc", "score": "0.5299419", "text": "private TACDFAConstants() {\n }", "title": "" }, { "docid": "320b01992f94fc0be4498dbf07f3cd54", "score": "0.528974", "text": "private NodePackage() {}", "title": "" }, { "docid": "c25186a0f111cd6d40006a0dd046086c", "score": "0.5280979", "text": "private AccessChecker() {\n\n }", "title": "" }, { "docid": "40a12e9d0df04c90e50ec6f79a60e694", "score": "0.52765656", "text": "String getNamespace()\n {\n return m_namespace;\n }", "title": "" }, { "docid": "cb1088105f69148b57218a11d08920b7", "score": "0.5276077", "text": "private TLEConstants() {\n // nothin to do\n }", "title": "" }, { "docid": "8df6bceb9cbac0d9b9710ebe555e2d3d", "score": "0.5270735", "text": "private OCSPClient() {\n\t}", "title": "" }, { "docid": "e0c7ff295d8dd3bb1aa790c564c4e263", "score": "0.5255462", "text": "private StandardDefinitions() {\n }", "title": "" }, { "docid": "5058e7eb1a6e272beb70d3dfb6d461f1", "score": "0.52531457", "text": "@SuppressWarnings(\"unchecked\")\n public static Map<String, String> getNamespaces() {\n return registry.getNamespaces();\n }", "title": "" }, { "docid": "306e0d4dd419e8b2bf7f7b81cac54e5d", "score": "0.52420723", "text": "public abstract void addDefaultConstructor(int accessFlags) throws JavaClassCreatorException;", "title": "" }, { "docid": "8189ca6c6c8c4138a88fd092594d1df6", "score": "0.52377105", "text": "private OperatorMetadataFactory() {\n\t}", "title": "" }, { "docid": "341bb95b78d5dd8631345fc9dd863ffc", "score": "0.5231723", "text": "private Common() {\n }", "title": "" }, { "docid": "094ba25afc2c8b8aa67ce293ee23a0d0", "score": "0.52304363", "text": "private PreInstantiation() {\n\t}", "title": "" }, { "docid": "cea43e0cb680a79bbbdee87cd6e23719", "score": "0.5230065", "text": "@Override\n\tpublic ArrayList<String> getNamespacesImp() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "75aeee263718977d39d579df19609cf8", "score": "0.52166617", "text": "ConjuntoTDA claves();", "title": "" }, { "docid": "7575f193762bf0c3fcc2d17c441a2bae", "score": "0.5216222", "text": "Object getCLIENTSPACE();", "title": "" }, { "docid": "f5be4bd691e60a5caf13264748f96169", "score": "0.5209986", "text": "private AsteroidFactory() {\n\t}", "title": "" }, { "docid": "11952fc69ea34e9a552a2c688d3ea613", "score": "0.52075714", "text": "private DataOrganizationImpl() {\n\t}", "title": "" }, { "docid": "f059b968612eea8b36f67e6d067c807f", "score": "0.5203791", "text": "String getNameSpacePrefix();", "title": "" }, { "docid": "9ec50cb552e571959a7c57afb0833404", "score": "0.5200971", "text": "private AFTPreferences() {\n\t}", "title": "" }, { "docid": "2de9c4d1ca5bc04378835e55f1719ad4", "score": "0.51965123", "text": "@Override\n\tpublic String getNamespace() {\n\t\treturn NAMESPACE;\n\t}", "title": "" }, { "docid": "3086729bb95867f5709fb863a6c33285", "score": "0.51880413", "text": "public String getNamespace() {\n return namespace;\n }", "title": "" }, { "docid": "62c4a11cdc2f76da06a67c5c04616df1", "score": "0.51820546", "text": "private Arcs() {\n\n }", "title": "" }, { "docid": "cc565b00db20b928c611c164b868b10a", "score": "0.51812637", "text": "default void init(){}", "title": "" }, { "docid": "9119953405cf55401dae907c1c7010d1", "score": "0.5179044", "text": "int getC2SScope();", "title": "" }, { "docid": "ce477c4efb725f3cc9722561528096a2", "score": "0.5178807", "text": "public boolean isNamespaceAware() {\n return true;\n }", "title": "" }, { "docid": "9a5a2087c5fb49f7587370a8cbd429d0", "score": "0.51762927", "text": "private Roles() {\n\t}", "title": "" }, { "docid": "03e7bf78cb1db023c50223ac68a06a14", "score": "0.51710874", "text": "private ImpactareaPackage() {}", "title": "" }, { "docid": "8f5873a2f3cb50bfdc47b727bfeed47f", "score": "0.5166739", "text": "@Override\n public String[] getNamespacePrefixes() {\n \n StringPairVector bindings = staticContext.getNamespaceBindings();\n Collection<String> stringBindings = new ArrayList<String>();\n int size= (int) bindings.size();\n for (int i=0; i<size; i++) {\n StringPair pair = bindings.get(i);\n stringBindings.add(pair.getFirst());\n }\n return stringBindings.toArray(new String[0]);\n }", "title": "" }, { "docid": "e53d9f47cb5fd7e58981d0196491394c", "score": "0.5166639", "text": "public void testGetNamespaces() {\n // TODO add your test code.\n }", "title": "" }, { "docid": "a310a5c741628e10bb2724fdd20f8d6e", "score": "0.51588875", "text": "public interface Classifier extends Namespace {\n}", "title": "" }, { "docid": "a0fb1b7eb35ce3f0bc9779dabd4aeb26", "score": "0.51555467", "text": "private BaseUtils() {}", "title": "" }, { "docid": "df6eddc78c242c359bcbc961b12ca439", "score": "0.5154561", "text": "private DocbookPackage() {}", "title": "" }, { "docid": "2f4818b294cf91ff4748623c2a0a89c7", "score": "0.5147416", "text": "public CACC(){\r\n\t}", "title": "" }, { "docid": "2a23eb2cf22fbc0a78b63a2002fd63cd", "score": "0.5146847", "text": "void init() {}", "title": "" } ]
7ac061da23893467f146858cc080a227
Method for cleaning and reseting the fields
[ { "docid": "a88207070d3d94a4b19ce7ecd81092b2", "score": "0.6178206", "text": "public void cleanPasswords() {\n\t\tthis.newPassword = \"\";\n\t\tthis.newRetryPassword = \"\";\n\t\tthis.oldPassword = \"\";\n\t}", "title": "" } ]
[ { "docid": "cfefb935dc55c663ee24dfc73edb454b", "score": "0.7733122", "text": "@Override\r\n\tpublic void cleanForm() {\n\t\ttxtDescripcion.setText(null);\r\n\t\ttxtAbreviatura.setText(null);\r\n\t\ttxtIdTipoDoc.setText(null);\r\n\t}", "title": "" }, { "docid": "cad23fee59a145f52c6262000ff40f20", "score": "0.73226875", "text": "private void clearfields() {\n\t\tContractID.setText(\"\");\r\n\t\tCustomerName.setText(\"\");\r\n\t\trepname.setText(\"\");\r\n\t\trepname.setText(\"\");\r\n\t\trepemail.setText(\"\");\r\n\t\trepmobile.setText(\"\");\r\n\t\tBasePrice.setText(\"\");\r\n\t}", "title": "" }, { "docid": "4d6ed02eb64147575b18f3869c9ea4b8", "score": "0.7229191", "text": "private void clearTextFields() {\n clearTextField(patientIDField);\n }", "title": "" }, { "docid": "1276c2491bbc96787237271413b46fe3", "score": "0.7216534", "text": "private void clearGeneralFields() {\n\t\t// Set all form fields to null.\n\t\ttry {\n\t\t\ttxtDepartment.setText(null);\n\t\t\ttxtCourse.setText(null);\n\t\t\ttxtEnrollment.setText(null);\n\t\t\ttxtSemesterStartDate.setText(null);\n\t\t\ttxtSemesterEndDate.setText(null);\n\t\t\ttxtChairFirstName.setText(null);\n\t\t\ttxtChairLastName.setText(null);\n\t\t\ttxtChairPhone.setText(null);\n\t\t\ttxtChairEmail.setText(null);\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "811880c013c372717212d0ca84bf6be9", "score": "0.7213479", "text": "private void clearAllFields() {\n idField.clear();\n codeField.clear();\n categoryComboBox.getSelectionModel().clearSelection();\n categoryComboBox.setAccessibleText(\"Category\");\n nameField.clear();\n descriptionField.clear();\n priceField.clear();\n discountField.clear();\n }", "title": "" }, { "docid": "212ed8553f34e0a3a109b2d987123b05", "score": "0.7212932", "text": "private void clearFields() {\n\t\tidField.clear();\n\t\tnameField.clear();\n\t\tbeschreibungField.clear();\n\t\tprioritySlider.setValue(1.0);\n\t\tdayField.clear();\n\t\tmonthField.clear();\n\t\tyearField.clear();\n\t}", "title": "" }, { "docid": "cb06c5aabf5eb603f16b6a6897a06c5f", "score": "0.7162066", "text": "public void clean(){\n\t\tframe.txtIdCliente.setText(null);\n\t\tframe.txtNombre.setText(null);\n\t\tframe.txtDireccion.setText(null);\n\t\tframe.txtAt.setText(null);\n\t}", "title": "" }, { "docid": "022112dc94182cf12c64b69eb3c732d1", "score": "0.7125056", "text": "public void clean()\r\n {\r\n this.puerto = null;\r\n this.puertoValueList = null;\r\n this.puertoLabelList = null;\r\n this.resultado = null;\r\n this.resultadoValueList = null;\r\n this.resultadoLabelList = null;\r\n this.nodo = null;\r\n this.nodoValueList = null;\r\n this.nodoLabelList = null;\r\n this.comunidad = null;\r\n this.comunidadValueList = null;\r\n this.comunidadLabelList = null;\r\n this.url = null;\r\n this.urlValueList = null;\r\n this.urlLabelList = null;\r\n this.urlWS = null;\r\n this.urlWSValueList = null;\r\n this.urlWSLabelList = null;\r\n }", "title": "" }, { "docid": "e05a83913b207c63b5a3244bd53fed51", "score": "0.71209556", "text": "private void resetAllFields() {\n rentalTable.getSelectionModel().select(null);\n idField.setText(\"\");\n custIdField.setText(\"\");\n pickupField.setText(\"\");\n dropoffField.setText(\"\");\n mhIdField.setText(\"\");\n seasonField.setText(\"\");\n startDate.setValue(null);\n endDate.setValue(null);\n rentalDate.setValue(null);\n priceField.setText(\"\");\n extraKmField.setText(\"\");\n emptyTank.setSelected(false);\n extrasBox.setItems(null);\n }", "title": "" }, { "docid": "c8d049d3bed71b1b2adf68ffd375820d", "score": "0.70990133", "text": "public void resetTextFields(){\n\t\twineField.setText(\"\");\n\t\tnumbotField.setText(\"\"); \n\t\tpricebotField.setText(\"\");\n\t}", "title": "" }, { "docid": "db5b330f7e1534cd68244e056c950ce9", "score": "0.708148", "text": "public void clean() {\n txt_nrocliente.setText(\"\");\n txt_nombremascota.setText(\"\");\n txt_raza.setText(\"\");\n txt_color.setText(\"\");\n cmb_alergico.setSelectedIndex(0);\n txt_atespecial.setSelectedIndex(0);\n txt_nombreduenio.setText(\"\");\n txt_celduenio.setText(\"\");\n txt_obs.setText(\"\");\n }", "title": "" }, { "docid": "3a82d8e79533dab7f08de0548e6dc250", "score": "0.7066453", "text": "private void cleanNew() {\n jTextField13.setText(\"\");\n jTextField14.setText(\"\");\n jTextField15.setText(\"\");\n jTextField16.setText(\"\");\n jTextField17.setText(\"\");\n jTextField18.setText(\"\");\n jTextField19.setText(\"\");\n jTextField20.setText(\"\");\n jTextField21.setText(\"\");\n jTextField22.setText(\"\");\n jTextField23.setText(\"\");\n }", "title": "" }, { "docid": "5e9836a4b7dcbacc90ed1b80ef31be1d", "score": "0.70292634", "text": "public void clean() {\n\t\tframe.get_txt_total_egreso().setText(\"0.00\");\n\t\tframe.get_txt_total_ingreso().setText(\"0.00\");\n\t\tframe.get_txt_total_diferencia().setText(\"0.00\");\n\t\tframe.get_txt_fecha().setText(\"\");\n\t\tframe.get_txt_leyenda().setText(\"\");\n\t\tframe.setJTableMedios(null);\n\t\tframe.setJTableMedios2(null);\n\t\tframe.get_txt_estado().setText(\"\");\n\t\tframe.get_txt_concepto().setText(\"\");\n\t\tframe.get_txt_estado().setForeground(Color.white);\n\t\tframe.get_txt_idPago().setEditable(true);\n\t\tframe.get_btn_buscar_pago().setEnabled(true);\n\t\tframe.get_list_cajas().setEnabled(true);\n\t\tframe.get_btn_buscar_pago().setEnabled(true);\n\t\tframe.get_txt_caja_detalle().setText(\"\");\n\t\tthis.obtener_proximo_cpte();\n\t\tcargar_cajas();\n\t\tthis.setInitialDate();\n\t}", "title": "" }, { "docid": "b83d7179e388ca427f6bbcb15a7e173a", "score": "0.6994078", "text": "private static void cleaning() {\n\t\twords.clear();\n\t\ttypeOfwords.clear();\n\t\tmaxEntryValue = null;\n\t\tmaxEntryType = null;\n\t}", "title": "" }, { "docid": "ea0a810b450ce31254e8865240e195cd", "score": "0.6982781", "text": "public void clearFields() {\r\n txtAge.setText(\"\");\r\n txtWorkHistory.setText(\"\");\r\n txtBenefits.setText(\"\");\r\n }", "title": "" }, { "docid": "17569e90d21161511fa34c463e54034e", "score": "0.69826406", "text": "private void sanitizeInputs() {\n nameText.clear();\n thresholdText.clear();\n timeText.clear();\n\n }", "title": "" }, { "docid": "cc1a2ae4fde936aaf5b28462bf5d1c04", "score": "0.69344807", "text": "private void clearAllTextFieldPersonalDetails() {\n\t\ttextFieldEmpID.setText(\"\");\n\t\ttextFieldFirstName.setText(\"\");\n\t\ttextFieldLastNme.setText(\"\");\n\t\ttextFieldFathersName.setText(\"\");\n\t\ttextFieldMothersName.setText(\"\");\n\t\ttextFieldMobile.setText(\"\");\n\t\ttextFieldEmail.setText(\"\");\n\t\tcomboBoxMeritalStatus.setSelectedIndex(0);\n\t\tcomboBoxReligions.setSelectedIndex(0);\n\t\tcomboBoxDeptID.setSelectedIndex(0);\n\t\tgroup.clearSelection();\n\t\ttextFieldEmployeePicturesPath.setText(\"\");\n\t\tlabelEmpPiture.setIcon(null);\n\t\tgrpActiveStatus.clearSelection();\n\t\tcomboBoxGradeScale.setSelectedIndex(0);\n\t\ttextFieldTinNo.setText(null);\n\t\tdateChooserBirthdate.setCalendar(null);\n\t\tdateChooserJoiningDate.setCalendar(null);\n\t\tdateChooserEndingDate.setCalendar(null);\n\t\t\t\t\n\t}", "title": "" }, { "docid": "2491e72d54560358e0d1f7aab2c0cb97", "score": "0.6934342", "text": "public void clean()\r\n {\r\n this.trabajoRowSelection = null;\r\n this.trabajos = null;\r\n this.trabajosValueList = null;\r\n this.trabajosLabelList = null;\r\n }", "title": "" }, { "docid": "58d1dcd48525e975199414ee35c501dd", "score": "0.6927896", "text": "private void clearInputValues() {\n \tinputEmail = null;\n \tinputPassword = null;\n \tinputConfirmPassword = null;\n \tinputFirstName = null;\n \tinputLastName = null;\n \tinputBirthDate = null;\n }", "title": "" }, { "docid": "6203b8c569bafa9059324ebe677502e3", "score": "0.68834513", "text": "public static void resetFields() {\n createPanelNameField.setText(\"\");\n createPanelUNField.setText(\"\");\n createPanelPWField.setText(\"\");\n editPanelNameField.setText(\"\");\n editPanelUNField.setText(\"\");\n editPanelPWField.setText(\"\");\n }", "title": "" }, { "docid": "2dc769b598275326d902165c5341b2b6", "score": "0.6859736", "text": "private void clearAllTextFieldAddress() {\n\t\ttextFieldEmpIdAdrs.setText(\"\");\n\t\ttextFieldCurRoad.setText(\"\");\n\t\ttextFieldCurVillage.setText(\"\");\n\t\ttextFieldCurPostOffice.setText(\"\");\n\t\ttextFieldCurPoliceStation.setText(\"\");\n\t\ttextFieldCurDistrict.setText(\"\");\n\t\ttextFieldParRoad.setText(\"\");\n\t\ttextFieldParVillage.setText(\"\");\n\t\ttextFieldParPostOffice.setText(\"\");\n\t\ttextFieldParPoliceStation.setText(\"\");\n\t\ttextFieldParDistrict.setText(\"\");\n\t\ttextFieldCountry.setText(\"\");\n\t\tdateChooserBirthdate.setCalendar(null);\n\t\tdateChooserJoiningDate.setCalendar(null);\n\t\tdateChooserEndingDate.setCalendar(null);\n\t\t\n\t\ttextFieldRefEmail.setText(\"\");\n\t\ttextFieldRefMobile.setText(\"\");\n\t\ttextFieldRefName.setText(\"\");\n\t\ttextFieldRefRelation.setText(\"\");\n\t\ttextAreaRefAddress.setText(\"\");\n\t\t\n\n\t\t\n\t}", "title": "" }, { "docid": "ff72cec264e344ca2cff846341510a0e", "score": "0.68578184", "text": "private void clearBookFields() {\n\t\t// Set all form fields to null.\n\t\ttry {\n\t\t\ttxtISBN.setText(null);\n\t\t\ttxtTitle.setText(null);\n\t\t\ttxtAuthor.setText(null);\n\t\t\ttxtPublisher.setText(null);\n\t\t\ttxtCost.setText(null);\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "755b1ded734fffc7aa4c7eec0d11445d", "score": "0.68363035", "text": "public void clearAllFields(){\n\t\t\t setAdditionabankrulemapPK(null);\n\t\t\t setCountryId(null);\n\t\t\t setFieldName(null);\n\t\t\t setdBflexField(null);\n\t\t\t setOrderNo(null);\n\t\t\t setCreatedBy(null);\n\t\t\t setCreatedDate(null);\n\t\t\t setModifiedBy(null);\n\t\t\t setModifiedDate(null);\n\t\t\t setApproveBy(null);\n\t\t\t setApproveDate(null);\n\t\t\t setIsActive(null);\n\t\t\t setDynamicLabelForActivateDeactivateForBankMap(null);\n\t\t\t additionalBankRuleDataList1.clear();\n\t\t\t additionalBankRuleDataNewList1.clear();\n\t\t\t setAdditionalBankRuleMapRendered(false);\n\t\t\t setSaveAdditionalBankRule1(false);\n\t\t}", "title": "" }, { "docid": "968ba8fec4dc73775eec9a2507b01690", "score": "0.6828422", "text": "@FXML\n\tprivate void clean() {\n descrip.setText(null);\n price.setText(null);\n month_choice_2.setValue(null);\n year_choice_2.setValue(null);\n\t}", "title": "" }, { "docid": "873eda55847172dde8acf72a64814423", "score": "0.6770377", "text": "public void reset() {\n nameEditText.setText(\"\");\n dobEditText.setText(\"\");\n pobEditText.setText(\"\");\n tobEditText.setText(\"\");\n heightEditText.setText(\"\");\n contactEditText.setText(\"\");\n whatsappEditText.setText(\"\");\n qualificationEditText.setText(\"\");\n occupationEditText.setText(\"\");\n incomeEditText.setText(\"\");\n budgetEditText.setText(\"\");\n filePath1 = null;\n filePath2 = null;\n filePath3 = null;\n locationAutoCompleteTextView.setText(\"\");\n\n maleCheckBox.setChecked(false);\n femaleCheckBox.setChecked(false);\n divorceeCheckBox.setChecked(false);\n mangalikCheckBox.setChecked(false);\n jobCheckBox.setChecked(false);\n buisnessCheckBox.setChecked(false);\n }", "title": "" }, { "docid": "3076a261235fd9b9a1441be4cd02120f", "score": "0.6744388", "text": "private void resetFields() {\n\t\tlblTime.setCaption(\"\");\n\t\tlblLiveExchangeRate.setCaption(\"With Live Exchange Rate\");\n\t\ttfAmountFrom.setValue(\"\");\n\t\tcbCurrencyFrom.setValue(null);\n\t\ttfConvertedAmount.setValue(\"\");\n\t\tcbCurrencyTo.setValue(null);\n\t\ttfAmountFrom.setComponentError(null);\n\t\tcbCurrencyFrom.setComponentError(null);\n\t\tcbCurrencyTo.setComponentError(null);\n\t}", "title": "" }, { "docid": "0d953e0375e58bbe946da71d0246dc6d", "score": "0.6726531", "text": "private void clearForm() {\n\t\tthis.txtName.setText(null);\n\t\tthis.txtArtisticName.setText(null);\n\t\tthis.txtBio.setText(null);\n\t\tthis.txtBorn.setText(null);\n\t}", "title": "" }, { "docid": "e607159da27eb1d02d8a81fbadb4d455", "score": "0.67229974", "text": "private void resetForm()\n {\n price.setText(null);\n address.setText(null);\n rooms.setText(null);\n area.setText(null);\n description.setText(null);\n }", "title": "" }, { "docid": "442c6fe527439ee96b2eb2f96ebdb913", "score": "0.6714059", "text": "public void clean () {\n\t\tsetContentProvider(new FormatContentProvider(null));\n\t\tsetInput(null);\n\t}", "title": "" }, { "docid": "66a8978701f57fed90d754c3c7a36895", "score": "0.66978526", "text": "private void clearFields() {\n \n txtLecturerID.setText(\"\");\n txtLecturerName.setText(\"\");\n txtLecturerAddress.setText(\"\");\n txtLecturerContact.setText(\"\");\n }", "title": "" }, { "docid": "afb8bdbf6f4bddb1dec69c6f80f2a58a", "score": "0.6688435", "text": "private void clearInstructorFields() {\n\t\t// Set all form fields to null.\n\t\ttry {\n\t\t\ttxtFirstName.setText(null);\n\t\t\ttxtLastName.setText(null);\n\t\t\ttxtPhone.setValue(null);\n\t\t\ttxtEmail.setText(null);\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "13a7dbaff213a4200b2f337f3b378f2b", "score": "0.6673155", "text": "public void clearTextFields() {\n\t\tcp5.get(Textfield.class, \"Name\").setText(\"\");\n\t\tcp5.get(Textfield.class, \"Last Name\").setText(\"\");\n\t\tcp5.get(Textfield.class, \"E-mail\").setText(\"\");\n\t\tcp5.get(Textfield.class, \"Nationality\").setText(\"\");\n\t\tcp5.get(Textfield.class, \"Phone Number\").setText(\"\");\n\t}", "title": "" }, { "docid": "6cc4da341fb377216660e1c88827fe0a", "score": "0.66693324", "text": "private void clearFields(){\n bookTitle.setText(\"\");\n bookSubTitle.setText(\"\");\n authors.setText(\"\");\n categories.setText(\"\");\n bookCover.setVisibility(View.INVISIBLE);\n saveButton.setVisibility(View.INVISIBLE);\n cancelButton.setVisibility(View.INVISIBLE);\n scanButton.setVisibility(View.VISIBLE);\n }", "title": "" }, { "docid": "d64b45320b0aa26d6dc322a4ab7f6eeb", "score": "0.66689605", "text": "public void resetAll() {\n\t\thonorific = \"\";\n\t\tfirstName = \"\";\n\t\tmiddleName = \"\";\n\t\tlastName = \"\";\n\t\textraName = \"\" ; \n\n\t\tarrNameTokens = new ArrayList<String>();\n\t}", "title": "" }, { "docid": "77e90697541f40f154978e6ffd0fb42f", "score": "0.66595066", "text": "public void resetSignupFields() {\n\t\tusernameTextField.setText(\"\");\n\t\temailTextField.setText(\"\");\n\t\tfullNameTextField.setText(\"\");\n\t\tmobileNoTextField.setText(\"\");\n\t\tpasswordTextField.setText(\"\");\n\t\trepeatPasswordTextField.setText(\"\");\n\t\tagentToggleButton.setSelected(false);\n\t\townerToggleButton.setSelected(false);\n\t\tlicenseOrGrantIDTextField.setText(\"\");\n\t}", "title": "" }, { "docid": "448b17477500600ca32eb6a5fe9c7529", "score": "0.660393", "text": "private void clearTextFields() {\n for(int i = 0; i < 4; i++)\n field[i].setText(\"\");\n }", "title": "" }, { "docid": "7eacc6af76ef5dfd0a01e2dc2b9bd15c", "score": "0.65670764", "text": "protected void clearDataFields()\r\n\t{\tthis.data.clear();\r\n\t}", "title": "" }, { "docid": "c87d99e0e5ab8ae19a57c0011c64ca21", "score": "0.6546347", "text": "private void ClearFields() \n {\n this.FName.setText(\"\");\n this.LName.setText(\"\");\n this.username.setText(\"\");\n this.password.setText(\"\");\n }", "title": "" }, { "docid": "65de0c1df81cae319318255a6b080f0c", "score": "0.65154517", "text": "private void limpiarCampos() {\r\n etPassAdmin.setText(null);\r\n etCodigoEmpleadoVistaFirma.setText(null);\r\n etCodigoAdmin.setText(null);\r\n }", "title": "" }, { "docid": "ee3f953ff064082c0ba36a873c290729", "score": "0.64920276", "text": "public void clearFields()\n\t{\n\t\tusername_field.setText( \"\" );\n\t\tpw_field.setText( \"\" );\n\t}", "title": "" }, { "docid": "1016b5138e6fa4a20c04a657af752dd3", "score": "0.6487756", "text": "public void clearAll(){\r\n\t\t\t//Clear Generic Fields\r\n\t\t\tnameTextField.setText(\"\");\r\n\t\t\taddressTextArea.setText(\"\");\r\n\t\t\tcityTextField.setText(\"Olympia\");//Olympia is Default city\r\n\t\t\tstatesCombo.setSelectedItem(\"WA\");//WA is default state\r\n\t\t\tzipTextField.setText(\"\");\r\n\t\t\tpersonalRB.setSelected(true);//Personal Radio Button is default\r\n\t\t\t//Toggle personal/Business Panel\r\n\t\t\tpersonalPanel.setVisible(true);\r\n\t\t\tbusinessPanel.setVisible(false);\r\n\r\n\t\t\t//Personal Fields\r\n\t\t\temailTextField.setText(\"\");\r\n\t\t\t//Birth date combo boxes\r\n\t\t\tbirthYear.setSelectedIndex(0);\r\n\t\t\tbirthMonth.setSelectedIndex(0);\r\n\t\t\tbirthDay.setSelectedIndex(0);\r\n\r\n\t\t\t//Business Fields\r\n\t\t\tcellTextField.setText(\"\");\r\n\t\t\tfaxTextField.setText(\"\");\r\n\t\t}", "title": "" }, { "docid": "afdfea20c286030c54081e62a4e5a2be", "score": "0.6474344", "text": "private void clearFields(){\n\t\tfor (JTextField f: fields) {\n\t\t\tf.setText(\"\");\n\t\t}\n\t}", "title": "" }, { "docid": "b6da00ff50745bd3a9a95326bc55668e", "score": "0.6470035", "text": "public void clearTextFields()\n {\n bookId.setText(\"\");\n quantity.setText(\"\");\n }", "title": "" }, { "docid": "abc6e7b20fa2344ffa96d0249338add6", "score": "0.64677197", "text": "private void limpaCampos() {\n jTextFieldNomeCliente.setText(\"\");\n jTextFieldNomeProduto.setText(\"\");\n jFormattedTextFieldDesconto.setText(\"\");\n jFormattedTextFieldPrecoTotal.setText(\"\");\n jFormattedTextFieldValorParcelado.setText(\"\");\n dados.removeAll(dados);\n\n }", "title": "" }, { "docid": "d9546470f20a636c8f49fbe1d351e104", "score": "0.64592284", "text": "public void limpiarCampos() {\r\n\t\tapynom.setText(\"\");\r\n\t\tdni.setText(\"\");\r\n\t\ttelefono.setText(\"\");\r\n\t\tdireccion.setText(\"\");\r\n\t}", "title": "" }, { "docid": "f5536d5e3c2d3b823f760ad060da1d40", "score": "0.64581156", "text": "private void clearFields(){\n editText_email.setText(null);\n editText_password.setText(null);\n }", "title": "" }, { "docid": "1a794312c7cb4abf5667686fc7010bb7", "score": "0.6447401", "text": "public void cleanData() {\n\n //handles distance\n int i = 0;\n while (distance.charAt(i) != ' ') {\n ++i;\n }\n distance = distance.substring(0, i);\n\n //handles traffic if that's given\n if (givenTraffic) {\n i = 0;\n while (traffic.charAt(i) != ' ') {\n ++i; \n }\n traffic = traffic.substring(0, i);\n }\n\n }", "title": "" }, { "docid": "fe20d08dc1035b691e25c9dc4bc1ae35", "score": "0.6419898", "text": "@Override\n public void clearForm() {\n binding.textName.getEditText().setText(\"\");\n binding.textEmail.getEditText().setText(\"\");\n binding.textAddress.getEditText().setText(\"\");\n\n removeError();\n }", "title": "" }, { "docid": "30a87d2970739700d9714467b9cf39c4", "score": "0.6410297", "text": "private void clear() {\n codeFormattedTextField.setText(\"\");\n nameTextField.setText(\"\");\n }", "title": "" }, { "docid": "58cb00e7caac6f694f5a1dbf37495df7", "score": "0.6396025", "text": "private void clearAllBankDetails() {\n\t\ttextFieldEmpIDBnk.setText(\"\");\n\t\ttextFieldBankName.setText(\"\");\n\t\ttextFieldAccountNo.setText(\"\");\n\t\ttextFieldBranch.setText(\"\");\n\t\t\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "76d14c27a565921ecd42e8ee35b2adec", "score": "0.6389951", "text": "public void clearTextFieldsForNewOrder()\n {\n numItems.setText(\"\");\n bookId.setText(\"\");\n quantity.setText(\"\");\n itemInfo.setText(\"\");\n subTotal.setText(\"\");\n\n }", "title": "" }, { "docid": "e53c30e82998486e8c8436c7e7079e8e", "score": "0.6381174", "text": "public void clearFields()\r\n {\r\n nameField.setText(\"\");\r\n buttonGroup1.clearSelection();\r\n buttonGroup2.clearSelection();\r\n buttonGroup3.clearSelection();\r\n buttonGroup4.clearSelection();\r\n\r\n }", "title": "" }, { "docid": "788baa316440708a3b9edc9a670e722d", "score": "0.6374183", "text": "private void reset() {\n txtId.setText(\"\");\n txtNama.setText(\"\");\n txtAlamat.setText(\"\"); \n txtTelpon.setText(\"\");\n service.read(tabelSuplier);\n }", "title": "" }, { "docid": "361b9c4a4b98943fdafa7c60962723ab", "score": "0.63692814", "text": "public void clearForm() {\n\t\ttxtMaNhanVien.setText(\"\");\n\t\ttxtHoVaTen.setText(\"\");\n\t\ttxtTuoi.setText(\"\");\n\t\ttxtEmail.setText(\"\");\n\t\ttxtLuong.setText(\"\");\n\t}", "title": "" }, { "docid": "fd771c19b44b567ab5478222e67f5359", "score": "0.6349425", "text": "protected void cleanInformazioni() {\n\t\tmodel.getInformazioni().clear();\n\t}", "title": "" }, { "docid": "f3ced374a2c6a61df42595cc9b8c4e12", "score": "0.63455606", "text": "private void clearInputFields(){\n for(EditText textField: mInputFields){\n textField.getText().clear();\n }\n }", "title": "" }, { "docid": "668f178036bf67e464947e1be242a53d", "score": "0.6345293", "text": "protected void cleanErrori() {\n\t\tmodel.getErrori().clear();\n\t\tCollection<String> actionErrors = getActionErrors();\n\t\tactionErrors.clear();\n\t\tsetActionErrors(actionErrors);\n\t}", "title": "" }, { "docid": "28851724e1a7879043c493ef77aab24c", "score": "0.63301706", "text": "public void reset() {\n this.address.setPostalCode(null);\n this.address.setCity(null);\n this.address.setPeriod(null);\n this.address.setDistrict(null);\n this.address.setCountry(null);\n this.address.setState(null);\n this.address.setType(null);\n this.address.setUse(null);\n this.address.getLine().clear();\n this.address.setText(null);\n\n }", "title": "" }, { "docid": "f9153596be66df585f8ce5a2745ad16b", "score": "0.6328295", "text": "private void limparCampos() {\n\t\tnome.setText(\"\");\n\t\tcpf.setText(\"\");\n\t\tenderecoBairro.setText(\"\");\n\t\tenderecoNumero.setText(\"\");\n\t\tenderecoRua.setText(\"\");\n\t\tenderecoTelefone.setText(\"\");\n\t\tlabelWarningNome.setText(\"\");\n\t\tlabelWarningCpf.setText(\"\");\n\t}", "title": "" }, { "docid": "110bd913b16ae1c274b44825949a12eb", "score": "0.6325048", "text": "private void limpiarCampos() {\n reportesV.getTxtNit().setText(\"\");\n reportesV.getTxtCodTienda().setText(\"\");\n reportesV.getTxtFechaInicio().setDate(null);\n reportesV.getTxtFechaFinal().setDate(null);\n }", "title": "" }, { "docid": "df6f4760ddb4bbc8c1ff0994a1b366bb", "score": "0.6321582", "text": "public void clearAllFields(){\n\t\tthis.crypto_data = null;\n\t\tthis.flags = null;\n\t}", "title": "" }, { "docid": "0a2b075879a8c784d2c36daccc690e9b", "score": "0.6319818", "text": "public void reset() { \r\n /*\r\n SimpleDateFormat formato = new SimpleDateFormat(\"HH:mm\");\r\n Date fechaDate = null;\r\n try {\r\n fechaDate = formato.parse(\" \");\r\n } catch (ParseException ex) {\r\n Logger.getLogger(AcuerdoBean.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n */\r\n this.setHfin1(null);\r\n this.setHinicio1(null);\r\n this.setDia1(\"\");\r\n this.setHfin2(null);\r\n this.setHinicio2(null);\r\n this.setDia2(\"\");\r\n this.setIdescuela(null);\r\n this.hoEstado = false;\r\n }", "title": "" }, { "docid": "126f3b3c393d51fcb42e64f494e452bd", "score": "0.63025373", "text": "private void limpiarCampos() {\n txtNombreGrupo.setText(\"\");\n txtDescripcion.setText(\"\");\n }", "title": "" }, { "docid": "c1700c5f7f45704c7c0b2b7b93b7cce6", "score": "0.62978", "text": "public void reset()\n\t{\n\t\t// Make sure we satisfy the validation rules\n\t\tsubjectId = null;\n\t\tcourseId = null;\n\t\ttopicId = null;\n\t\tsubTopicId = null;\n\t}", "title": "" }, { "docid": "fe23ece62210b10e6f5b8a0ba5853bbb", "score": "0.6295146", "text": "void clearFields() {\n this.usernameField.setText(\"\");\n this.passwordField.setText(\"\");\n }", "title": "" }, { "docid": "25e6375c749213f62f2cdb9c40f4c505", "score": "0.6291611", "text": "@Override\r\n public void clearField() {\r\n stockSymbolText.setText(\"\");\r\n moneyText.setText(\"\");\r\n dateText.setText(\"\");\r\n portfolioNameText.setText(\"\");\r\n }", "title": "" }, { "docid": "b0b38a3a8fcd7bbdd7081cf4eb7a59bc", "score": "0.6242768", "text": "private void clear() {\n orderId.setText(\"\");\n customer.setText(\"\");\n phone.setText(\"\");\n email.setText(\"\");\n orderNum.setText(\"\");\n oDate.setCalendar(null);\n product.setText(\"\");\n quantity.setText(\"\");\n sPrice.setText(\"\");\n tprice.setText(\"\");\n }", "title": "" }, { "docid": "65731a01cce49c8ed9a6b88e8c563ebd", "score": "0.6240333", "text": "@FXML\n\tprivate void clearStudentFields(ActionEvent event) {\n\t\tthis.id.setText(\"\");\n\t\tthis.firstname.setText(\"\");\n\t\tthis.lastname.setText(\"\");\n\t\tthis.email.setText(\"\");\n\t\tthis.dob.setValue(null);\n\t}", "title": "" }, { "docid": "5fd4828f0d148bd38c46708fb2fc0a12", "score": "0.62387395", "text": "private void clearSectionFields() {\n\t\t// Set all form fields to null.\n\t\ttry {\n\t\t\ttxtSection.setText(null);\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "31b8b24be002d74ded3de3bdcce1ec4b", "score": "0.62332624", "text": "private void reset(){\n this.jTextFieldId.setText(\"\");\n this.jTextFieldCategoryName.setText(\"\");\n loadTable();\n }", "title": "" }, { "docid": "deb1defdd6bcb7e9acce632590f6035c", "score": "0.6224849", "text": "public void reset() {\n txtID.setText(\"\");\n txtStreet.setText(\"\");\n txtPostal.setText(\"\");\n txtCity.setText(\"\");\n txtProv.setText(\"\");\n cmbCountry.setSelectedIndex(0);\n btnSimpan.setEnabled(false);\n btnHapus.setEnabled(false);\n }", "title": "" }, { "docid": "c11caf3595380b8cbff171104d8ab396", "score": "0.6215695", "text": "public void clearCredientialField(){\n\n txtUserName.setText(\"\");\n txtPassword.setText(\"\");\n }", "title": "" }, { "docid": "92e8619de8c1cff555f0e6ad1216d216", "score": "0.6213204", "text": "public static void clearTextFields(){\n\t\ttextFields.clear();\n\t}", "title": "" }, { "docid": "a2b3e13b67809cb1a7db50d45ab39c7c", "score": "0.62096304", "text": "public void clearTextFields(){\n //Clears all text from the EditText\n textInputEditText_full_name.setText(\"\");\n textInputEditText_candidate_id.setText(\"\");\n\n }", "title": "" }, { "docid": "1c8142f7ce7116ad5480f8eafe4f2079", "score": "0.62022", "text": "private void resetInput(){\n tf_navn.setText(\"\");\n tf_adresse.setText(\"\");\n tf_tlf.setText(\"\");\n tf_epost.setText(\"\");\n }", "title": "" }, { "docid": "6315ea22d20159d6a1cf8dc06719e2bc", "score": "0.6200484", "text": "public void reset()\n {\n InEcapsSectionId_AS = ' ';\n InEcapsSectionId = \"\";\n InEcapsSectionTextFromDate_AS = ' ';\n InEcapsSectionTextFromDate = 00000000;\n InEcapsSectionTextPosition_AS = ' ';\n InEcapsSectionTextPosition = \"\";\n InEcapsSectionTextHeader_AS = ' ';\n InEcapsSectionTextHeader = \"\";\n InEcapsSectionTextTextArea_AS = ' ';\n InEcapsSectionTextTextArea = \"\";\n InEcapsSectionAdminFromDate_AS = ' ';\n InEcapsSectionAdminFromDate = 00000000;\n InEcapsSectionAdminDueDate_AS = ' ';\n InEcapsSectionAdminDueDate = 0;\n InEcapsSectionAdminNovellUserId_AS = ' ';\n InEcapsSectionAdminNovellUserId = \"\";\n InCurrentWsDateDate_AS = ' ';\n InCurrentWsDateDate = 00000000;\n }", "title": "" }, { "docid": "cafa22dc60230742e8aa3fb63c1ed1e0", "score": "0.619725", "text": "private void clean() {\n yea = Long.MAX_VALUE;\n mon = -1;\n day = -1;\n }", "title": "" }, { "docid": "9177f048d35a2fef407db51f00b45c1a", "score": "0.61899316", "text": "private void limparCampos() {\n txtNome.setText(\"\");\n txtEmail.setText(\"\");\n txtTelefone.setText(\"\");\n txtDataNascimento.setText(\"\");\n txtCpf.setText(\"\");\n txtRg.setText(\"\");\n txtEndereco.setText(\"\");\n txtSalario.setText(\"\");\n txtOcupacao.setText(\"\");\n }", "title": "" }, { "docid": "5029b6e8979750278cc3a00e2f6216a3", "score": "0.6158641", "text": "public void reset() {\n identifier = null;\n contributor = null;\n cont_version = null;\n cont_url = null;\n cont_date = new Date();\n maintainer = null;\n maint_version = null;\n maint_url = null;\n maint_date = new Date();\n name = null;\n prev_meta = null;\n desc = null;\n algo = null;\n cat = null;\n sub_cat = null;\n cv_class = null;\n code = 0;\n cascade = false;\n is_generated = false;\n }", "title": "" }, { "docid": "2f83f26b659aea00186202380f407542", "score": "0.6145797", "text": "public void clearTheDriverFields() {\n code.setText(\"\");\n driverId.setText(\"\");\n permanentNumber.setText(\"\");\n givenName.setText(\"\");\n familyName.setText(\"\");\n dateOfBirth.setText(\"\");\n nationality.setText(\"\");\n // Clear the Image\n driverImage.setImage(null);\n driverFlag.setImage(null);\n teamLogo.setImage(null);\n driverHelmet.setImage(null);\n driverHelmet.setImage(null);\n }", "title": "" }, { "docid": "cb414cb99f373432ea834bc8d70004a9", "score": "0.6141685", "text": "private void clear() {\n\t\tedit_Screen.tf_id.setText(\"\");\n\t\t// tf_id.requestFocus(); // nhay ve o id\n\t\tedit_Screen.tf_Name.setText(\"\");\n\t\tedit_Screen.tf_Name.requestFocus();\n\t\tedit_Screen.tf_CMND.setText(\"\");\n\t\tedit_Screen.tf_Day.setText(\"\");\n\t\tedit_Screen.tf_Month.setText(\"\");\n\t\tedit_Screen.tf_Year.setText(\"\");\n\t\tedit_Screen.tf_Gender.setText(\"\");\n\t\tedit_Screen.tf_Job.setText(\"\");\n\t\tedit_Screen.tf_Address.setText(\"\");\n\t\tedit_Screen.tf_Phone.setText(\"\");\n\t}", "title": "" }, { "docid": "7493f7aa2456a2dcc5817f26ce19b8d6", "score": "0.6140741", "text": "public void clearAll()\r\n {\r\n currentPropNameTextField.setText( \"\" );\r\n currentPropValueTextField.setText( \"\" );\r\n currentPropValueTypeComboBox.setSelectedItem( \"\" );\r\n currentPropNameTextField.requestFocus();\r\n }", "title": "" }, { "docid": "2ac305b40a72acaea51bc2587176fd84", "score": "0.6137942", "text": "public void reset() {\n\t\t\tsetValue(null,null);\n\t\t}", "title": "" }, { "docid": "4279ae128d72a667b7f2ff0e7f6a01d3", "score": "0.61360633", "text": "public void clearForms(){\r\n username.clear();\r\n password.clear();\r\n }", "title": "" }, { "docid": "0c578f0498afcfce7445a78178f88ada", "score": "0.61358505", "text": "public void limparCampos() {\n txtNome.setText(\"\");\n txtNascimento.setText(\"\");\n txtRG.setText(\"\");\n txtCPF.setText(\"\");\n txtEmail.setText(\"\");\n txtTelefone.setText(\"\");\n txtBairro.setText(\"\");\n txtRua.setText(\"\");\n txtNumero.setText(\"\");\n txtCep.setText(\"\");\n }", "title": "" }, { "docid": "acdf95002b301294e3deecffa4b03fe7", "score": "0.6133866", "text": "private void clearTextF() {\n try {\n this.roomField.setText(null);\n this.roomRateField.setText(null);\n } catch (Exception ec) {\n }\n }", "title": "" }, { "docid": "6d2fc5204c9e2e747deff4894bcd4b22", "score": "0.6131859", "text": "boolean clean();", "title": "" }, { "docid": "671ea2fd9b3754c3281ba25e7a5aad13", "score": "0.61317617", "text": "public void reset(){\n form.getTxtkdplg().setText(\"\");\n form.getTxtnmplg().setText(\"\");\n form.getTxtalamat().setText(\"\");\n form.getTxttelp().setText(\"\");\n form.getTxtnmplg().setText(\"\");\n tampilurutankode();\n isiTable();\n }", "title": "" }, { "docid": "257794fa48715881b9f631b3bbcaebec", "score": "0.6126954", "text": "public void resetAll() {\r\n\t\tfor ( final SearchField searchField : searchFieldList )\r\n\t\t\tsearchField.reset();\r\n\t}", "title": "" }, { "docid": "09ef547e06b960ceee12b199154e027e", "score": "0.612587", "text": "private void limparCampos() {\n jTextFieldCodigoBarrasProduto.setText(\"\");\n jTextFieldNomeProduto.setText(\"\");\n jTextFieldValorProduto.setText(\"\");\n jTextFieldEstoqueProduto.setText(\"\");\n }", "title": "" }, { "docid": "79fcde3cfff356acd1de393265ea0bbc", "score": "0.6100253", "text": "public void reset() {\n firstNameField.setText(\"\");\n lastNameField.setText(\"\");\n dayField.setText(\"\");\n monthField.setText(\"\");\n yearField.setText(\"\");\n weightField.setText(\"\");\n heightField.setText(\"\");\n errorText.setText(\"\");\n\n currentImageIndex = 0;\n profilePicImageView.setImage(GuiUtilities.maskProfileImage(profilePictures.get(currentImageIndex)));\n }", "title": "" }, { "docid": "fef572b8b9b2ceea872ffa939577701b", "score": "0.60965115", "text": "private void empty_field() {\n e_idperawat.setText(null);\n e_namaperawat.setText(null);\n e_telp.setText(null);\n e_alamat.setText(null);\n e_jeniskelamin.setSelectedItem(\"-\");\n pencarian.setText(null);\n }", "title": "" }, { "docid": "5942ee140240fb054577b5a05dbe1e63", "score": "0.6091789", "text": "public void clearVars() {\n setPlaphyCode (INTNULL );\n setTaxcod (CHARNULL);\n setTaxlev (INTNULL );\n setTaxcnt (INTNULL );\n setTaxcom (CHARNULL);\n }", "title": "" }, { "docid": "0bc4b3f6c23c79955ad1ebf890bd7c52", "score": "0.6083736", "text": "private void cleanLogin() {\n\n view_login.txt_username.setText(null);\n view_login.txt_password.setText(null);\n }", "title": "" }, { "docid": "529e208ab35681ffb3b97ab675f95a48", "score": "0.6066464", "text": "private void limpiarCampos() {\n\t\ttxtPaciente.setText(\"\");\n\t\ttxtDuracion.setText(\"\");\n\t\ttxtDescripcion.setText(\"\");\n\t\ttxtHora.setText(\"\");\n\t\ttxtNota.setText(\"\");\n\t\tcomboTipoCita.setSelectedIndex(0);;\n\t\tlblNombrePaciente.setText(\"\");\n\t\ttxtPaciente.requestFocus();\n\t}", "title": "" }, { "docid": "e3ae1f7597e0e3cf98455a26f32200b1", "score": "0.60544777", "text": "public void clear(){\n username.setValue(null);\n password.setValue(null);\n error.setValue(null);\n }", "title": "" }, { "docid": "de48a8ec06206d87d8edf8620b141410", "score": "0.60505044", "text": "@Override\n public void clear() {\n super.getAllFields().clear();\n }", "title": "" }, { "docid": "889c38e769b6d069f07c732db8fe5614", "score": "0.6047642", "text": "public void resetSearch() {\n hotelNameField.setText(\"\");\n cityField.setText(\"\");\n }", "title": "" }, { "docid": "970c951a52d9d883466fd58d0ea5bafc", "score": "0.603709", "text": "private void limparCampos() {\n tf_carga.setText(\"\");\n tf_codigo.setText(\"\");\n tf_nome.setText(\"\");\n }", "title": "" }, { "docid": "7e7bf9ca3a78e71e378f83b06ede5312", "score": "0.60308254", "text": "public void clearFields() {\r\n\t\tif(view != null) {\r\n\t\t\tview.clearFields();\r\n\t\t}\r\n\t}", "title": "" } ]
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "fd2adf5d1791bd253dda3e457f10a40a", "score": "0.0", "text": "@Override\r\n\tpublic Persona ListPersonaId(int id) {\n\t\treturn null;\r\n\t}", "title": "" } ]
[ { "docid": "9208773f8d675a45ef2786d0cb668514", "score": "0.654538", "text": "@Override\n\tpublic void addiion() {\n\t\t\n\t}", "title": "" }, { "docid": "80d20df1cc75d8fa96c12c49a757fc43", "score": "0.65323734", "text": "@Override\n\tprotected void getExras() {\n\t\t\n\t}", "title": "" }, { "docid": "5d259e9a9ed31ac29902b25db191acd1", "score": "0.6490277", "text": "@Override\n\tpublic void bewegen() {\n\t\t\n\t}", "title": "" }, { "docid": "49f82de84791f2d90dd9ea5cce118bf5", "score": "0.6314085", "text": "@Override\r\n\tpublic void ader() {\n\t\t\r\n\t}", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.623686", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.61546874", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.61546874", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.61546874", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "a4dcc093d4ff3452de6ac444aececdf1", "score": "0.61316955", "text": "public void ausgabeZugFiguren() {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "9144a32a2cd5a72f1d1380aa1f1d5f09", "score": "0.6092728", "text": "public void mo5774g() {\n }", "title": "" }, { "docid": "19def8ee9a9cacfd168fa29cb08dcee2", "score": "0.6080876", "text": "@Override\n\tpublic void vaccination()\n\t{\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "title": "" }, { "docid": "67e1a422c8d1e74f6601c8a6d1aaa237", "score": "0.6071615", "text": "@Override\n\tpublic void apagar() {\n\n\t}", "title": "" }, { "docid": "99bd004e44dd7019c8ef01a44a9b3eab", "score": "0.6067535", "text": "@Override\r\n\tpublic void breah() {\n\t\t\r\n\t}", "title": "" }, { "docid": "e90bb5928accbf89387d2613629ce52f", "score": "0.60653234", "text": "public void mo5201a() {\n }", "title": "" }, { "docid": "e90bb5928accbf89387d2613629ce52f", "score": "0.60653234", "text": "public void mo5201a() {\n }", "title": "" }, { "docid": "04771723ee2c07e5fa5fe8c322190beb", "score": "0.60607964", "text": "@Override\n\tpublic void affichage() {\n\t\t\n\t}", "title": "" }, { "docid": "5c8e848472fb111129ff96ea7e3eea3d", "score": "0.605578", "text": "@Override\n public void pintar() {\n \n }", "title": "" }, { "docid": "5c8e848472fb111129ff96ea7e3eea3d", "score": "0.605578", "text": "@Override\n public void pintar() {\n \n }", "title": "" }, { "docid": "db1df23a1dd6753a6267bb04b332bf85", "score": "0.6054585", "text": "public void mo12026a() {\n }", "title": "" }, { "docid": "e46610ee0bd6f029738af766fdc21054", "score": "0.59955573", "text": "@Override\r\n\tpublic void vender() {\n\r\n\t}", "title": "" }, { "docid": "d0738cb6f0934e8c2706f8cceaa57916", "score": "0.5969007", "text": "@Override\r\n\tpublic void init() {\r\n\t\t\r\n\t}", "title": "" }, { "docid": "15d6b98b279429b150a682bd6349a355", "score": "0.59551615", "text": "@Override\n\tpublic void fertilise() {\n\t\t\n\t}", "title": "" }, { "docid": "cce0c669162940d6a1e5e611c61410b3", "score": "0.59530795", "text": "@Override\r\n\tpublic void getDirect() {\n\t\t\r\n\t}", "title": "" }, { "docid": "8c3354ae13a827b8d836df56c4c510d8", "score": "0.59508646", "text": "@Override\n protected void init() {\n\n\n }", "title": "" }, { "docid": "16a4669a2213802ac94829fc8d9946ff", "score": "0.5935938", "text": "@Override\n\t\tpublic void init() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "b9e40f8e651069ba40a35ef1db458ce9", "score": "0.59202784", "text": "@Override\r\n\tpublic void tyres() {\n\t\t\r\n\t}", "title": "" }, { "docid": "cad86041007c052466e6525bc7dcd8c8", "score": "0.5901697", "text": "@Override\r\n\tpublic void trasation() {\n\t\t\r\n\t}", "title": "" }, { "docid": "5d9f4634054e808deccea8846817de31", "score": "0.588331", "text": "@Override\r\n\tpublic void vola() {\n\t\t\r\n\t}", "title": "" }, { "docid": "d0b7e3f5544447dc12bf9d1bad50a34b", "score": "0.5864994", "text": "public void mo40391a() {\n }", "title": "" }, { "docid": "ff6eb8b61c178f23b971412958c256c8", "score": "0.58641464", "text": "@Override\n\tpublic void ate() {\n\t\t\n\t}", "title": "" }, { "docid": "c64411f2d7b4359b656294e598122466", "score": "0.58560646", "text": "public void mo1294d() {\n }", "title": "" }, { "docid": "d29a027cc93fdf42445fadb149d49da1", "score": "0.5855024", "text": "public void mo1184a() {\n }", "title": "" }, { "docid": "a672d2d2a4b7bb037f7f20d62ff1f55e", "score": "0.5849603", "text": "@Override\n\tpublic void ss() {\n\t\t\n\t}", "title": "" }, { "docid": "e04f934fbe00df663fa9d5d545a1a729", "score": "0.5842969", "text": "@Override\n public void sporcuPuaniGoster() {\n\n }", "title": "" }, { "docid": "d48ac35465c27e31c1f21be54513f8f9", "score": "0.58330834", "text": "@Override\r\n\tpublic void pirntA() {\n\r\n\t}", "title": "" }, { "docid": "ad7fe50be28bd3c3d7952d71f935957c", "score": "0.5829554", "text": "@Override\n\t\t\tpublic void work() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "d1236089c8974701d0acd37b2cad6d5b", "score": "0.5809914", "text": "@Override\n\tpublic void init(){\n\t\t\n\t}", "title": "" }, { "docid": "63519e7beede7b06dcebbca99514f5c5", "score": "0.57981986", "text": "@Override\n\tprotected void salirsePorXIzq() {\n\t\t\n\t}", "title": "" }, { "docid": "5783648f118108797828ca2085091ef9", "score": "0.5793788", "text": "@Override\n protected void initialize() {\n \n }", "title": "" }, { "docid": "beee84210d56979d0068a8094fb2a5bd", "score": "0.5792378", "text": "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "title": "" }, { "docid": "bcd5f0b16beb225527894894dcaf774f", "score": "0.5789414", "text": "@Override\n\tprotected void update() {\n\t\t\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.57844025", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.57844025", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.57844025", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "53519f34ca6dc9b2249e5bf2a0182992", "score": "0.5762815", "text": "@Override\n\tpublic void Avanzar() {\n\t\t\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "d92a1f963aafb73b8192e677b33d128f", "score": "0.57472074", "text": "@Override\n\tpublic void postConstruct() {\n\n\t}", "title": "" }, { "docid": "e3fcb762f77cfc9168a1bc0d865ded42", "score": "0.574678", "text": "@Override\n\tprotected void crier() {\n\t\t\n\t}", "title": "" }, { "docid": "770cd968ebdff1a71e678a800372d8c6", "score": "0.57460904", "text": "@Override\r\n\tpublic void afisareDatepers() {\n\t\t\r\n\t}", "title": "" }, { "docid": "260bb3e9c481a3e03724071c87239711", "score": "0.574225", "text": "private void m11272q() {\n }", "title": "" }, { "docid": "c13e6a1b7c130afa9fb0f34225bea4ef", "score": "0.573645", "text": "protected void mo1555b() {\n }", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "28872bba7a5c17cad13c73f21624cabc", "score": "0.57069", "text": "@Override\n\tpublic void CreateRs() {\n\t\t\n\t}", "title": "" }, { "docid": "3c6f91c038ca7ffdab72b5c233b827c5", "score": "0.5705329", "text": "@Override\n\tprotected void initMethod() {\n\t}", "title": "" }, { "docid": "3d6cdc1afb7138b4083b3a4a65f01db1", "score": "0.5702478", "text": "public void mo10296b() {\n }", "title": "" }, { "docid": "45fd99bd8793c6d67c4f276a27b4fdca", "score": "0.5685153", "text": "@Override public int getDefensa(){\n\n return 0;\n\n }", "title": "" }, { "docid": "9d551589ec00d7b16a77df7a4d54caae", "score": "0.5683637", "text": "@Override\n public void init()\n {\n\n }", "title": "" }, { "docid": "cc07b6e925fefd34942bfb2fd21e818a", "score": "0.56719893", "text": "public void ausgabeFiguren() {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "f5766311eecc43fe076ad8e87f995b64", "score": "0.56654924", "text": "@Override\r\n\tvoid erstelleGebäude() {\n\t\t\r\n\t}", "title": "" }, { "docid": "9b8a44f27329437a5b3f89427b894c91", "score": "0.56609863", "text": "public void mo36058a() {\n }", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "3a2534d5fb04e020e5849904bbe4720a", "score": "0.56515974", "text": "@Override\r\n\tprotected void geJiage() {\n\t\tsuper.geJiage();\r\n\t}", "title": "" }, { "docid": "02e1bc278c2b2caf23edb429d02b85c0", "score": "0.56482685", "text": "@Override\n\tprotected void initialise() {\n\t\n }", "title": "" }, { "docid": "18c7036dd108c40b7a27469d8b92687c", "score": "0.5642345", "text": "@Override\n\tpublic void onLoadComplete() {\n\t\t\n\t}", "title": "" }, { "docid": "674d6b47736013d84190eed15130aad6", "score": "0.5641662", "text": "@Override\n\tpublic void obtenerPrecalculados() {\n\t\t\n\t}", "title": "" }, { "docid": "6754b5dbf617cd4b6315568f4ba45bc3", "score": "0.56412077", "text": "@Override\n protected void initialize() {}", "title": "" }, { "docid": "6754b5dbf617cd4b6315568f4ba45bc3", "score": "0.56412077", "text": "@Override\n protected void initialize() {}", "title": "" }, { "docid": "0ba831513140db25039c80559d16603f", "score": "0.5636391", "text": "@Override\n \tpublic void process_6() {\n \n \t}", "title": "" }, { "docid": "af9170e83e6f26bfa1f5e7b9cdbc491a", "score": "0.5623968", "text": "@Override\r\n public void initData() {\n\r\n }", "title": "" }, { "docid": "af9170e83e6f26bfa1f5e7b9cdbc491a", "score": "0.5623968", "text": "@Override\r\n public void initData() {\n\r\n }", "title": "" }, { "docid": "eb2ec3c736f6af0e79bde71492b6d2dd", "score": "0.56177896", "text": "@Override\n public int arność() {\n return 2;\n }", "title": "" }, { "docid": "870d28e8c0326c2e585508a88499e108", "score": "0.5607548", "text": "private void init() {\n\t\t\t\t\n\t\n\t}", "title": "" }, { "docid": "b78de853138b4d1a9183420c6cd735cc", "score": "0.56050456", "text": "@Override\n public void init() {\n\n }", "title": "" }, { "docid": "b78de853138b4d1a9183420c6cd735cc", "score": "0.56050456", "text": "@Override\n public void init() {\n\n }", "title": "" }, { "docid": "d69d82cd185340d978c1a70fb66c01db", "score": "0.560443", "text": "public void mo5773f() {\n }", "title": "" }, { "docid": "ccba64a54b47095e22d528bff878aff1", "score": "0.5600534", "text": "@Override\r\n public String toString()\r\n {\n return null;\r\n }", "title": "" }, { "docid": "c1e6f049bd0a6f8cdd055f88f3b45eaa", "score": "0.5596128", "text": "public void mo80311c() {\n }", "title": "" }, { "docid": "bc4c805ce86377a96c35c50ef04ab983", "score": "0.55958176", "text": "@Override\n\tprotected void initAfterData() {\n\t}", "title": "" }, { "docid": "0d47d46f06beb83b10147b5efbda9e6b", "score": "0.55933857", "text": "@Override\r\n\tpublic void see() {\n\t\t\r\n\t}", "title": "" }, { "docid": "1d69f38b94702675a7a6d7b4ca002e6d", "score": "0.5592467", "text": "@Override\n\tpublic void init()\n\t{\n\n\t}", "title": "" }, { "docid": "822226d86d7514db3081754cf8a8d3b3", "score": "0.55916166", "text": "@Override\n\t\tpublic void rest() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "fb9a873c01eb354c85aac7a220fbaac2", "score": "0.5588414", "text": "@Override\r\n\tprotected void doF6() {\n\t\t\r\n\t}", "title": "" }, { "docid": "c47723cc77bfdfbeac347959926f9a12", "score": "0.55856144", "text": "@Override\n protected void initialize() {\n\n }", "title": "" } ]
d0f6f3661f1a816514f6d73c4c9f54b1
Adds descriptive text to the project.
[ { "docid": "b7bd5c3c976d59f895381a467feb67e4", "score": "0.7909947", "text": "public void addText(String text) {\n \n- ProjectHelper ph = ProjectHelper.getProjectHelper();\n+ ProjectHelper ph = (ProjectHelper) getProject().getReference(ProjectHelper.PROJECTHELPER_REFERENCE);\n if (!(ph instanceof ProjectHelperImpl)) {\n // New behavior for delayed task creation. Description\n // will be evaluated in Project.getDescription()\n return;\n }\n String currentDescription = getProject().getDescription();\n if (currentDescription == null) {\n getProject().setDescription(text);\n } else {\n getProject().setDescription(currentDescription + text);\n }\n }", "title": "" } ]
[ { "docid": "eebfe7bd29d1ee3d4cebb80f74db0cb2", "score": "0.6867896", "text": "String getProjectDescription();", "title": "" }, { "docid": "fbb0ab43bcee3122beae6948f43984d9", "score": "0.6670024", "text": "public void setDescription (String Description);", "title": "" }, { "docid": "fbb0ab43bcee3122beae6948f43984d9", "score": "0.6670024", "text": "public void setDescription (String Description);", "title": "" }, { "docid": "9d677c20afccafed66ffee386aa6ebc7", "score": "0.66505754", "text": "CompletionStage<ProjectDetails> changeDescription(User executor, ResourceName project, Markdown description);", "title": "" }, { "docid": "185c42583e40e8a1b4799778d05d1275", "score": "0.6517248", "text": "@Override\n\t\tpublic String description() {\n\t\t\treturn \"Добавить задачу\";\n\t\t}", "title": "" }, { "docid": "f095ac79260fd617af65d6483be236cc", "score": "0.64337075", "text": "private static void printDescription(Project project) {\n if (project.getDescription() != null) {\n project.log(project.getDescription());\n }\n }", "title": "" }, { "docid": "42dfff423beb77f825deb1510b242e5e", "score": "0.6432121", "text": "void setDescription(String description);", "title": "" }, { "docid": "42dfff423beb77f825deb1510b242e5e", "score": "0.6432121", "text": "void setDescription(String description);", "title": "" }, { "docid": "42dfff423beb77f825deb1510b242e5e", "score": "0.6432121", "text": "void setDescription(String description);", "title": "" }, { "docid": "42dfff423beb77f825deb1510b242e5e", "score": "0.6432121", "text": "void setDescription(String description);", "title": "" }, { "docid": "42dfff423beb77f825deb1510b242e5e", "score": "0.6432121", "text": "void setDescription(String description);", "title": "" }, { "docid": "7bd0cf171b9f3ccde32513508328c848", "score": "0.64293253", "text": "@Override\r\n\tpublic void description() {\n\t\tSystem.out.println(\"我是一个软件工程师,我从事Java开发工作几年了,我喜欢这份工作!\");\r\n\t}", "title": "" }, { "docid": "d3f9564983f1e326ebc5e434070a55fc", "score": "0.64224464", "text": "void setDescription(java.lang.String description);", "title": "" }, { "docid": "ec52b3be0a1072ad6ea509658ddaefe1", "score": "0.6418574", "text": "public void setDescription(String text) {\r\n taDescription.setText(text);\r\n }", "title": "" }, { "docid": "3eae5e8f7dac5fa8469851bba80a35d0", "score": "0.6382227", "text": "public static String getDescription()\n {\n return(\"PROJWPORTLETSPROJWMYPROJECTDETAILSESC: My Project Details\"); \n }", "title": "" }, { "docid": "497c539574c9b576e163b1e3a1ee5c66", "score": "0.63554424", "text": "public void addText(String msg) {\n if (message == null) {\n message = \"\";\n }\n message += getProject().replaceProperties(msg);\n }", "title": "" }, { "docid": "e75b754acbb5178397afb58e46377b5b", "score": "0.63421685", "text": "public void setDescription(String description);", "title": "" }, { "docid": "e75b754acbb5178397afb58e46377b5b", "score": "0.63421685", "text": "public void setDescription(String description);", "title": "" }, { "docid": "e75b754acbb5178397afb58e46377b5b", "score": "0.63421685", "text": "public void setDescription(String description);", "title": "" }, { "docid": "694b9b9641cacccf3be17015b16eb136", "score": "0.6339426", "text": "public void setDescription(java.lang.String description);", "title": "" }, { "docid": "31450c837a91eb49296d7b69e5e6a413", "score": "0.6333523", "text": "public void setProjectDescription(String desc)\n {\n clone.setDescription(desc);\n }", "title": "" }, { "docid": "43599ccdbb755c4472ccd978f616b21e", "score": "0.6314504", "text": "public void setDescription(java.lang.String newDescription);", "title": "" }, { "docid": "89addfecfd3cf0dac67b8a30c9d13c39", "score": "0.6276821", "text": "public abstract void setDescription(String description);", "title": "" }, { "docid": "dfa586f9c6771f599dded51189d27348", "score": "0.6235759", "text": "public void setDescription(String newDescription);", "title": "" }, { "docid": "02aee25e2c2b6599e0559a06ae3027df", "score": "0.62289387", "text": "void addHadithText(Object newHadithText);", "title": "" }, { "docid": "f993f3f86a05139877415ec201f6067e", "score": "0.62241197", "text": "private void addDescription(VBox curr, int index) {\r\n if (_targetedTask.getDisplayAssociations().size() < index || index < 0) {\r\n return;\r\n }\r\n TaskEntity task = _targetedTask.getDisplayAssociations().get(index);\r\n Text description = new Text(task.getDescription());\r\n description.getStyleClass().add(CSS_LABEL);\r\n description.setWrappingWidth(_individualItemWidth - LEFT_RIGHT_MARGIN_INDIVIDUAL_ITEMS * 2);\r\n description.setTextAlignment(TextAlignment.JUSTIFY);\r\n VBox.setMargin(description, new Insets(0, LEFT_RIGHT_MARGIN_INDIVIDUAL_ITEMS,\r\n BOTTOM_MARGIN_INDIVIDUAL_ITEMS, LEFT_RIGHT_MARGIN_INDIVIDUAL_ITEMS));\r\n curr.getChildren().add(description);\r\n }", "title": "" }, { "docid": "3f51d2db03d6108ce104dd0f6f6509c7", "score": "0.6187568", "text": "void setDescription(String description) {\n\t\t_description += description;\n\t}", "title": "" }, { "docid": "3241b050a609c07eb16987f69baf1222", "score": "0.6102846", "text": "@Override\r\n\tpublic void setDescription(String description) {\n\r\n\t}", "title": "" }, { "docid": "0336a5554fd5734ad80c5ec1a2c0f20f", "score": "0.6079827", "text": "public void appendDescription (TextLine line, FontInfo romanFontInfo,\n\t\tFontInfo[] fontInfo)\n\t{\n\t\tline.appendRun(\"work part = \" + getFullTitle(), romanFontInfo);\n\t}", "title": "" }, { "docid": "ba68a07182a7a44fa571f78997d99b56", "score": "0.6068116", "text": "public void setDescription(java.lang.String value);", "title": "" }, { "docid": "ba68a07182a7a44fa571f78997d99b56", "score": "0.6068116", "text": "public void setDescription(java.lang.String value);", "title": "" }, { "docid": "dc2e934b00b213e02d5f611e71fcf8be", "score": "0.6064706", "text": "void setDescription(final String description);", "title": "" }, { "docid": "75f0d24486bffeeed212930cf86d99e9", "score": "0.6062877", "text": "private void changeDescriptionText(String text) {\n descriptionPane.setText(text);\n }", "title": "" }, { "docid": "84456405c40beb9d6830fd1441186e14", "score": "0.60614747", "text": "public void setDescription(String descr)\n\t{\n\t}", "title": "" }, { "docid": "a2e0d13e08b37826fa5d1d3133d738f7", "score": "0.6026541", "text": "public void setDescriptiveText(String descriptiveText) {\n this.descriptiveText = descriptiveText;\n }", "title": "" }, { "docid": "7c7fdcd709a2eff864b912f8dcc75bff", "score": "0.6014229", "text": "interface WithDescription {\n /**\n * Specifies the description property: Description of the project..\n *\n * @param description Description of the project.\n * @return the next definition stage.\n */\n WithCreate withDescription(String description);\n }", "title": "" }, { "docid": "7bd472ae42d9ff31da3bd1b0c5e59988", "score": "0.5985701", "text": "private void generateGUIDescription(String projectName){\n\t\tFile proj = new File(Configuration.sourceDirPrefix+\"/\"+Configuration.projectDirInSourceFolder+\"/\"+projectName+\"/\"+Configuration.descriptionFileName);\n\t\ttry {\n\t\t\tif(!proj.exists()) {\n\t\t\t\tdescriptionText.setText(\"There is no description-file in the currently selected project.\");\n\t\t\t} else {\n\t\t\t\tLineNumberReader r = new LineNumberReader(new FileReader(proj));\n\t\t\t\tString description = \"\";\n\t\t\t\tString tmp = null;\n\t\t\t\twhile((tmp = r.readLine()) != null) {\n\t\t\t\t\tdescription += tmp + \"\\n\";\n\t\t\t\t}\n\t\t\t\tdescriptionText.setText(description);\n\t\t\t\tdescriptionText.setCaretPosition(0);\n\t\t\t}\n\t\t} catch (FileNotFoundException e) {\n\t\t\tdescriptionText.setText(\"There is no description-file in the currently selected project.\");\n\t\t} catch (IOException e) {\n\t\t\tMain.minorError(e);\n\t\t\tdescriptionText.setText(\"There is no description-file in the currently selected project.\");\n\t\t}\n\t}", "title": "" }, { "docid": "039d15f080fbedabc233bacf7b4a9cae", "score": "0.5984385", "text": "public void showDescription () { showDescription (true); }", "title": "" }, { "docid": "aac81c7c748a86e31ab815e1c4877666", "score": "0.59817386", "text": "public void addText(String text) {\n this.text = text;\n }", "title": "" }, { "docid": "152eef39c53516c049100e907398435c", "score": "0.5974085", "text": "public String getProjectDescription()\n {\n return clone.getDescription();\n }", "title": "" }, { "docid": "c632aa449150bc73f37353d4178d1aba", "score": "0.5950623", "text": "public void addMoveDescription(String text)\n\t{\n\t\ttextAreaDescription.setText(textAreaDescription.getText()+(++descCount)+\". \"+text+\"\\n\");\n\t}", "title": "" }, { "docid": "48a0a2c534cd610e18cf4e762962b0f0", "score": "0.5944766", "text": "public void setDescription(String desc)\r\n\t{\tDescription = desc.toUpperCase();\t}", "title": "" }, { "docid": "f9bb1b98fb79abe7bcb0c4753a2794c6", "score": "0.5934324", "text": "interface WithDescription {\n /**\n * Specifies the description property: Description of the project..\n *\n * @param description Description of the project.\n * @return the next definition stage.\n */\n Update withDescription(String description);\n }", "title": "" }, { "docid": "74d37f918a04b3cba7282a24586ebbac", "score": "0.5927729", "text": "public String getDescription()\n\t{\n\t\treturn base.getDescription() + \"\\nAdded: Whipped Cream\";\n\t}", "title": "" }, { "docid": "fdcf2d427f2a3ab75fb31241e8b414cb", "score": "0.5925934", "text": "@Override\n\tpublic void setDescription(String description) {\n\n\t}", "title": "" }, { "docid": "75fbc0de4d3d5a5120d120288de810b3", "score": "0.5924971", "text": "public void addText(String newText) {\n text = text + newText;\n }", "title": "" }, { "docid": "2f237961646026ec1f184a8b5a193272", "score": "0.5923169", "text": "public static void addText(Project project, Object target, String text)\n throws BuildException {\n \n if (text == null) {\n return;\n }\n if (target instanceof TypeAdapter) {\n target = ((TypeAdapter) target).getProxy();\n }\n IntrospectionHelper.getHelper(project, target.getClass()).addText(project, target, text);\n }", "title": "" }, { "docid": "fb4f6807fc883cf34ca9777287243b15", "score": "0.5921891", "text": "public void setDescription(String d) { this.description = d; }", "title": "" }, { "docid": "a99def19fbfd32135ec3b2608f6147dd", "score": "0.5902828", "text": "public void setDescription(String text) {\n jtaDescription.setText(text);\n jtaDescription.setSize(600,900);\n }", "title": "" }, { "docid": "13c79923fcd656b812a9b2e13f8b1500", "score": "0.5884326", "text": "public void setDescription(String description) { _description = description; }", "title": "" }, { "docid": "51801140816f154207a83d059ed01179", "score": "0.5881408", "text": "public String getProjectDescription() {\n\t\treturn projectDescription;\n\t}", "title": "" }, { "docid": "dd131df31f500496d95c8d8622c08218", "score": "0.58645695", "text": "public void setDescription(String value) {\n setValue(DESCRIPTION, value);\n }", "title": "" }, { "docid": "4692fe30b96e908f8c79d5f321cd84ed", "score": "0.5859433", "text": "public void addTitle(String title);", "title": "" }, { "docid": "7d97aedc2c1f864ecbf1589f4676219f", "score": "0.58519906", "text": "public void addText(String name, String field) {\n this.addTextArea(name, field);\r\n this.addLabel(name + \"field\");\r\n }", "title": "" }, { "docid": "82b378aab74e43127a4f0db79f329c80", "score": "0.58381045", "text": "public void setUpText()\n {\n subject.setText(theSubject);\n date.setText(\"Date: \" + theDate);\n time.setText(\"Time: \" + theTime);\n location.setText(\"Location: \" + theLocation);\n lessonPlan.setText(\"Lesson Plan: \" + theLessonPlan);\n }", "title": "" }, { "docid": "7c6cb99bd52fa91da251f253e8e96e5c", "score": "0.58255893", "text": "void setDescription(String description){\n\tthis.description = description;\n}", "title": "" }, { "docid": "202219f781dbc6fb60a41d49077a5dcb", "score": "0.58115786", "text": "public void setDescription(java.lang.CharSequence value) {\n this.description = value;\n }", "title": "" }, { "docid": "202219f781dbc6fb60a41d49077a5dcb", "score": "0.58115786", "text": "public void setDescription(java.lang.CharSequence value) {\n this.description = value;\n }", "title": "" }, { "docid": "b02bfe8fe2c904c39dc30d191cf8647e", "score": "0.58003473", "text": "public void setDescription(String description){\r\n this.description = description;\r\n }", "title": "" }, { "docid": "960353152e8ab940e880b7fffd918af6", "score": "0.5796072", "text": "@Override\n public void updateDescription() {\n description = DESCRIPTIONS[0] + this.getAmount() + getAtkString() + DESCRIPTIONS[1];\n }", "title": "" }, { "docid": "b682022fa1ba675925ffa71b1faa7076", "score": "0.57781506", "text": "public void setDescription(String description) {\n Description = description;\n }", "title": "" }, { "docid": "2a6b35f08b91f18b94fe14277db74c12", "score": "0.57773376", "text": "public void setDescription(String Description) {\n this.Description = Description;\n }", "title": "" }, { "docid": "2a6b35f08b91f18b94fe14277db74c12", "score": "0.57773376", "text": "public void setDescription(String Description) {\n this.Description = Description;\n }", "title": "" }, { "docid": "2a6b35f08b91f18b94fe14277db74c12", "score": "0.57773376", "text": "public void setDescription(String Description) {\n this.Description = Description;\n }", "title": "" }, { "docid": "a5b3e93d5a53a149c79be4a5c19ec4d3", "score": "0.57739705", "text": "public String getProjectDescription() {\n\t\treturn getConfig().getDescription();\n\t}", "title": "" }, { "docid": "5f10a88041d8f26bc5739de1fdacd890", "score": "0.5762765", "text": "public void addDescription(String described){\n\t\tdescription.add(described);\n\t}", "title": "" }, { "docid": "3e4bb55c416e2daa70fddf06de81287a", "score": "0.5760996", "text": "public void setDescription(java.lang.String param){\n \n this.localDescription=param;\n \n\n }", "title": "" }, { "docid": "0d553319ed25d4a122b041d5b8102305", "score": "0.575179", "text": "private void setDescription(String description) {\n this.description = description;\n }", "title": "" }, { "docid": "73f0ade25fc18cfdf04a091e6876ae9e", "score": "0.57506895", "text": "protected void setDescription(@StringRes int textId) {\n // Set the text and background color\n TextView description = (TextView) findViewById(R.id.description);\n if (description != null) {\n description.setText(textId);\n }\n }", "title": "" }, { "docid": "1f12070ada0497e2edbc0b081772b5f1", "score": "0.5743156", "text": "Printable setDescription(String description);", "title": "" }, { "docid": "f046dfffbb51cb4847f570bfc7eca543", "score": "0.5736486", "text": "public void setDescription(java.lang.String value) {\n this.description = value;\n }", "title": "" }, { "docid": "f046dfffbb51cb4847f570bfc7eca543", "score": "0.5736486", "text": "public void setDescription(java.lang.String value) {\n this.description = value;\n }", "title": "" }, { "docid": "8d32efec77205e2e3c633ac11a3d9148", "score": "0.57323307", "text": "private void updateDescriptionTexts() {\n\n \t//Name\n \tname.setSummary(\"\".equals(nameValue) ? Constants.EMPTY_TEXT : nameValue);\n \t\n \tString urlLink = \"\";\n \tif (\"\".equals(urlEndValue)){\n \t\turlLink = URL_START_DISPLAY_TO_USER + getText(R.string.url_end_hint);\n \t} else {\n \t\turlLink = URL_START_DISPLAY_TO_USER + urlEndValue;\n \t}\n \turlEnd.setSummary(urlLink);\n \t\n \t//Username\n \tuserName.setSummary(\"\".equals(userNameValue) ? \"\": userNameValue); \t\n }", "title": "" }, { "docid": "f6bab011873ac297ff0fe319056163f5", "score": "0.5730203", "text": "@Override\n public void setDescription(String description) {\n this.description = description;\n }", "title": "" }, { "docid": "5cdcb36e41f9dbfb9d7847d442e48433", "score": "0.57226485", "text": "private void setDescription() {\n this.description.add(clockSpeed);\n this.description.add(cpuFamily);\n this.description.add(numCores);\n this.description.add(threadCount);\n }", "title": "" }, { "docid": "7fc10f963d111bd4515a762081b74b3b", "score": "0.5719935", "text": "public void buildDescription() {\n if (super.isConcurrent()){\n// Log.i(\"PANELTASK\", concurPanels.toString());\n ArrayList<String> d = new ArrayList<>();\n for (Panel p: concurPanels.keySet()) {\n d.add(p.getVerb() + \" the \" + p.getObject());\n }\n //voor de Unit test gaat TextUtils.join fout, maar geen idee waardoor\n super.description = TextUtils.join(\",\", d);\n\n } else {\n String desc = taskPanel.getVerb() + \" the \" + taskPanel.getObject();\n super.description = desc;\n }\n\n }", "title": "" }, { "docid": "1611cc737fc161125fa910901363b5f9", "score": "0.57189924", "text": "public void setDescription(String description) {\n this.description = description;\n }", "title": "" }, { "docid": "3e2b08f2029a4cfcb9c03c119034e588", "score": "0.5712635", "text": "public void setDescription(String description) {\n put(AppConstants.description, description);\n }", "title": "" }, { "docid": "26c0c602c443c93621e0e6e9fee3373d", "score": "0.5707426", "text": "public String getDescription()\r\n {\r\n // put your code here\r\n return desc;\r\n }", "title": "" }, { "docid": "54a14ab743e124ab87090958caa34deb", "score": "0.5700495", "text": "public void showHelpMessage() {\n this.message = \"Hello! Here are the things that I can help you with:\\n\"\n + \"-------------\\n\"\n + \"1. list \\u2192 displays the tasks to be completed\\n\"\n + \"2. find <keyword> \\u2192 search for the items that matches the keyword you have provided\\n\"\n + \"3. done <index> \\u2192 mark a task as completed\\n\"\n + \"4. delete <index> \\u2192 delete a task\\n\"\n + \"5. todo <task name> \\u2192 add a ToDo task to the list\\n\"\n + \"6. deadline <task name> /by <yyyy-mm-dd> <hhmm> \\u2192 add a Deadline task to the list\\n\"\n + \"7. event <task name> /at <yyyy-mm-dd> <hhmm> \\u2192 add a Event task to the list\\n\"\n + \"8. bye \\u2192 exits the programme\";\n }", "title": "" }, { "docid": "b6918846712028a8db7a5d4fec39c135", "score": "0.5696673", "text": "public void setDescription(String value) {\n this.description = value;\n }", "title": "" }, { "docid": "f6dfb29372d683df53de7ad29e3629cf", "score": "0.56916255", "text": "@Override\r\n public String getDescription() {\r\n return myDesc;\r\n }", "title": "" }, { "docid": "d3291770bb73a4bd336908deb1ce0471", "score": "0.5685004", "text": "@Test\n public void testUpdateProjectDescription() {\n //When\n Project project = dashboard.clickOnProject(PROJECT);\n ProjectSettings projectSettings = project.clickSettingTab();\n projectSettings.setProjectDescriptionTestField(NEW_DESCRIPTION);\n projectSettings.clickSaveButton();\n\n //Then\n assertEquals(projectSettings.getProjectDescription(), NEW_DESCRIPTION);\n }", "title": "" }, { "docid": "16ced4e3dacead3ac8cd6f2e957bb335", "score": "0.56658715", "text": "public void setDescription(int index, java.lang.String value) {\n\t\tthis.setValue(DESCRIPTION, index, value);\n\t}", "title": "" }, { "docid": "16ced4e3dacead3ac8cd6f2e957bb335", "score": "0.56658715", "text": "public void setDescription(int index, java.lang.String value) {\n\t\tthis.setValue(DESCRIPTION, index, value);\n\t}", "title": "" }, { "docid": "16ced4e3dacead3ac8cd6f2e957bb335", "score": "0.56658715", "text": "public void setDescription(int index, java.lang.String value) {\n\t\tthis.setValue(DESCRIPTION, index, value);\n\t}", "title": "" }, { "docid": "941385e49f37e981a417bab996c03b29", "score": "0.5664243", "text": "@DesignerProperty(editorType = PropertyTypeConstants.PROPERTY_TYPE_STRING)\n @SimpleProperty\n public void Description(String text) {\n this.description = text;\n chartView.setDescription(description);\n }", "title": "" }, { "docid": "4c509a5663eed3642b19a136f88beeda", "score": "0.5664113", "text": "public void setDescription(final String description) {\n this.description = description;\n }", "title": "" }, { "docid": "f9ac554fe286d818f95157fec460a93f", "score": "0.5662004", "text": "public abstract String buildTeamDescription();", "title": "" }, { "docid": "fb0bbf2a0e788bca5a1a3f99ef4122e7", "score": "0.56600165", "text": "public void setDescription(String description)\r\n {\r\n this.description = description;\r\n }", "title": "" }, { "docid": "fb0bbf2a0e788bca5a1a3f99ef4122e7", "score": "0.56600165", "text": "public void setDescription(String description)\r\n {\r\n this.description = description;\r\n }", "title": "" }, { "docid": "a6d6235869d04e2ea111a3998bb4c1ce", "score": "0.5655851", "text": "public void setDescription(String description) {\n this.description = description;\n }", "title": "" }, { "docid": "c47b7f1c94dc2dc505e748584aed61a0", "score": "0.5654532", "text": "public void addText (String text) {\n\tthis.text = this.text + text;\n }", "title": "" }, { "docid": "f09c15a5681c539940018e1ac32dbaf8", "score": "0.56457686", "text": "public void addCaption(String caption)\n\t{\n\t\tthis.caption = caption;\n\t}", "title": "" }, { "docid": "b109674adb490852222c71abceb574b9", "score": "0.5643381", "text": "public void setDescription(String description) {\n \tthis.description = description;\n }", "title": "" }, { "docid": "e063e45ba86b29d67b3a94b9280b9a48", "score": "0.56415325", "text": "public void introduce(){\n System.out.println(\"My name is \" + this.name);\n System.out.println(\"I was born in \" + this.bornYear);\n System.out.println(\"I'm a police and work in \" + this.workCountry);\n }", "title": "" }, { "docid": "4aae5489218f8ddfa05c4a2da3fa0003", "score": "0.5636503", "text": "@Override\n public String getDescription() {\n return description;\n }", "title": "" }, { "docid": "4aae5489218f8ddfa05c4a2da3fa0003", "score": "0.5636503", "text": "@Override\n public String getDescription() {\n return description;\n }", "title": "" }, { "docid": "15d1bec2b2f8b2bbb54bad7aef2c9062", "score": "0.56328475", "text": "public void setDescription(String desc) {\r\n\t\tthis.description=desc;\r\n\t}", "title": "" }, { "docid": "61f39025df593ee967a3937b17c65c4e", "score": "0.56309086", "text": "public void setDescription(String description) {\r\n this.description = description;\r\n }", "title": "" } ]
d7aa29d4b3fbadaba1f93ffe575e36a3
main method for FindKnightsPath will initialize, solve, and display the knights path. The application gets the beginning and ending locations via commandline arguments. It then determines and outputs a valid path.
[ { "docid": "7e1edccdc57a03e7afd5a0604aad6dcf", "score": "0.52791154", "text": "public static void main (String[] args) throws EmptyStackException, \n\tEmptyQueueException\n\t{\n\t\tboard = new int[8][8]; //creates 2D board 8 by 8 in size\n\t\tboard2 = new String [8][8]; //creates 2D board 8 by 8 in size\n\t\tif(args.length == 0 || args == null || args.length == 1)\n\t\t{\n\t\t\tSystem.out.println(\"Please enter valid starting and ending \" +\n\t\t\t\t\t\"locations between 0 and 7\");\n\t\t\tSystem.exit(-1);\n\t\t}\n\t\tif(args.length > 3)\n\t\t{\n\t\t\tSystem.out.println(\"You may only enter up to three arguments.\");\n\t\t\tSystem.exit(-1);\n\t\t}\n\n\t\tString [] startlocation = null; //the starting location specified in \n\t\t\t\t\t\t\t\t\t //commmand-line args\n\t\tString [] endlocation = null; //the ending location specified in \n\t\t\t\t\t\t\t\t\t //command-line args\n\t\tstartlocation = args[0].split(regex);\n\t\tendlocation = args[1].split(regex);\n\t\ttry\n\t\t{\n\t\t\tstartLocRow = Integer.parseInt(startlocation[0]);\n\t\t\tstartLocCol = Integer.parseInt(startlocation[1]);\n\t\t\tendLocRow = Integer.parseInt(endlocation[0]);\n\t\t\tendLocCol = Integer.parseInt(endlocation[1]);\n\t\t\tif(checkPos(startLocRow, startLocCol, endLocRow,endLocCol) == true)\n\t\t\t{\n\t\t\t\tstartLocationArgs = args[0];\n\t\t\t\tendLocationArgs = args[1];\n\t\t\t\tinitilizeBoard(startLocRow, startLocCol);\n\t\t\t\tfindPath(endLocRow,endLocCol);\n\t\t\t\tif(args.length == 2)\n\t\t\t\t{\n\t\t\t\t\tprintPath();\n\t\t\t\t}\n\t\t\t\telse if(args[2].equals(\"-n\"))\n\t\t\t\t{\n\t\t\t\t\tprintBoard();\n\t\t\t\t\tSystem.out.println(\"\");\n\t\t\t\t\tprintPath();\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"To see the numbered board, \" +\n\t\t\t\t\t\t\t\"the last argument should be '-n'\");\n\t\t\t\t\tSystem.exit(-1);\n\t\t\t\t}\n\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tSystem.out.println(\"Positions must be between 0 and 7\");\n\t\t\t\tSystem.exit(-1);\n\t\t\t}\n\t\t}\n\t\tcatch(NumberFormatException e)\n\t\t{\n\t\t\tSystem.out.println(\"Please enter valid starting and ending \" +\n\t\t\t\t\t\"locations between 0 and 7\");\n\t\t\tSystem.exit(-1);\n\t\t}\n\t}", "title": "" } ]
[ { "docid": "807d48e484d3f927921456fbb750494f", "score": "0.61373097", "text": "public static void main(String[] args) {\n\n //Offset values to perform directional search.\n int[] x = {-1, -1, 0, 1, 1, 1, 0, -1};\n int[] y = {0, 1, 1, 1, 0, -1, -1, -1};\n\n //Map of ints to label direction for output.\n HashMap<Integer, String> directions = new HashMap<>();\n directions.put(0, \"N\");\n directions.put(1, \"NE\");\n directions.put(2, \"E\");\n directions.put(3, \"SE\");\n directions.put(4, \"S\");\n directions.put(5, \"SW\");\n directions.put(6, \"W\");\n directions.put(7, \"NW\");\n\n //Routine to call methods to scan in text files and call methods to\n // build ArrayLists of the text files.\n Path dictionarySource = Paths.get(\"dictionary2.txt\"); //source for\n // dictionary, need to change to CLI args[0]\n Path puzzleSource = Paths.get(\"puzzle2.txt\"); //source for puzzle,\n // need to change to CLI args[1]\n ArrayList<String> puzzle = new ArrayList<>();\n ArrayList<String> dictionary = new ArrayList<>();\n buildArray(puzzleSource, puzzle);\n buildArray(dictionarySource, dictionary);\n\n puzzle.remove(0);//Need to comment out if 1st line of puzzle does\n //not have metadata for puzzle.\n\n //Routine to obtain row(height) and column(width) dimensions.\n Puzzle.puzzle2DArray(puzzle);\n int C = Puzzle.getPuzzleWidth() + 1;\n int R = Puzzle.getPuzzleHeight() + 1;\n\n //Routine to determine length of longest word in dictionary. This\n //determines the extent of directional search.\n int a = 0;\n for (String word :\n dictionary) {\n if (word.length() > a) {\n a = word.length();\n }\n }\n\n //Creates instance of a new dictionary and calls routine to build trie.\n WordDictionary newDict = new WordDictionary();\n for (String word :\n dictionary) {\n newDict.addWord(word);\n }\n\n\n //The search algorithm to move column and row through the puzzle,\n // includes the direction search from each index.\n for (int row = 0; row < Puzzle.getPuzzleHeight() + 1; row++) {\n for (int col = 0; col < Puzzle.getPuzzleWidth() + 1; col++) {\n for (int dir = 0; dir < 8; dir++) {\n String word = \"\";\n\n int rd = row;\n int cd = col;\n\n for (int k = 0; k < a; k++) {\n word = word + Puzzle.getPuzzleChar(rd, cd);\n testWord(word, newDict, row, col, dir);\n rd = rd + x[dir];\n cd = cd + y[dir];\n // If out of bound break\n if (rd >= R || rd < 0 || cd >= C || cd < 0) {\n break;\n }\n\n }\n }\n }\n }\n\n //This begins the sort routine on the results ArrayList and finally\n // prints out the results.\n newResults.sort(Comparator.comparingInt(Results::getDir));\n newResults.sort(Comparator.comparingInt(Results::getCol));\n newResults.sort(Comparator.comparingInt(Results::getRow));\n newResults.sort(Comparator.comparing(Results::getWord));\n for (Results r :\n newResults) {\n String out = r.getWord() + \" \" + r.getRow() + \" \" + r.getCol() +\n \" \" + directions.get(r.getDir());\n System.out.println(out);\n }\n\n }", "title": "" }, { "docid": "bd127ea02510a1f2c0ec4eb47c296245", "score": "0.6114659", "text": "public static void main(String[] args) {\r\n int[][] maze = {\r\n {1, 1, 0, 1, 1},\r\n {0, 0, 0, 1, 1},\r\n {1, 0, 1, 0, 1},\r\n {0, 0, 0, 0, 1},\r\n {1, 1, 1, 0, 1}};\r\n String endMsg = \"No paths were found.\";\r\n List<Integer> starts = findStarts(maze);\r\n\r\n for (int x = 0; x < starts.size(); x += 2) {\r\n if (findPath(maze, starts.get(x), starts.get(x + 1))) {\r\n endMsg = \"A path was found!\";\r\n break;\r\n }\r\n }\r\n System.out.println(endMsg);\r\n }", "title": "" }, { "docid": "a545a00dd923bf3fc5b7e7da9e74161a", "score": "0.6076936", "text": "public static void main(String[] args) {\n\n\t\tScanner scn = new Scanner(System.in);\n\t\tint cur = scn.nextInt();\n\t\tint end = scn.nextInt();\n\t\tSystem.out.println(getpath(cur, end, \"\"));\n\n\t}", "title": "" }, { "docid": "f1581b4f5f1a4a3a241c30668f85d29a", "score": "0.5983542", "text": "public static void main(String[] args){\n System.out.println(findPath(20, 2, 12, 2, 3) + \" expected output: 19\");\r\n \r\n System.out.println(findPath(25, 1, 9, 5, 5) + \" expected output: 8\");\r\n System.out.println(findPath(40, 9, 7, 3, 6) + \" expected output: 7\");\r\n System.out.println(findPath(30, 7, 8, 4, 2) + \" expected output: 11\");\r\n System.out.println(findPath(20, 1, 18, 3, 20));\r\n \r\n \r\n \r\n }", "title": "" }, { "docid": "61b20f031bd80a4218fb8b5eb0ee27e3", "score": "0.5856081", "text": "public static void main(String[] args) {\n \n // Check that arguments exist\n \t\tif (args.length == 0) {\n \t\t\tSystem.err.println(\"Must enter command line arguments\");\n \t\t\tSystem.exit(1);\n \t\t}\n\t\t// Validate command line arguments, and check that there are no 0's in the array, except in the last position\n for (int i = 0; i < args.length; i++) {\n if (Integer.parseInt(args[i]) < 0 || Integer.parseInt(args[i]) > 99) {\n System.err.println(\"Invalid value: values must be between 0 and 99\");\n System.exit(1);\n }\n if (Integer.parseInt(args[i]) == 0 && i != args.length-1) {\n System.err.println(\"Invalid value: cannot have 0 inside the array\");\n System.exit(1);\n }\n }\n // Verify that the last value is 0\n if (Integer.parseInt(args[args.length-1]) != 0) {\n System.err.println(\"Invalid value: last value must be 0.\");\n System.exit(1);\n }\n \n // Populate array of MyInteger objects using values from args array\n MyInteger[] array = new MyInteger[args.length];\n for (int i = 0; i < args.length; i++) {\n array[i] = new MyInteger(Integer.parseInt(args[i]));\n }\n \n // Create a String to store the steps of a partcular solution\n String steps = \"\";\n \n // Call recursive method\n wayFinder(array, 0, steps);\n\n // Display number of solutions for puzzle\n if (counter == 0)\n \t\tSystem.out.println(\"No way through this puzzle.\");\n else\n \t\tSystem.out.println(\"There are \" + counter + \" ways through this puzzle.\");\n }", "title": "" }, { "docid": "702dee1ccde6d9eef91464890afa6c16", "score": "0.5782124", "text": "public static void main(String[] args) {\n\t\tSystem.out.println(countmazepath(2, 2, 0, 0));\n\t\tSystem.out.println(\"********************************************\");\n\t\tSystem.out.println(getmazepath(2, 2, 0, 0));\n\t\tSystem.out.println(\"********************************************\");\n\t\tprintmazepath(2, 2, 0, 0, \" \");\n\t\tSystem.out.println(\"********************************************\");\n\t\tSystem.out.println(countdiagmazepath(2, 2, 0, 0));\n\t\tSystem.out.println(\"********************************************\");\n\t\tSystem.out.println(getmazepathwd(2, 2, 0, 0));\n\t}", "title": "" }, { "docid": "2f7b99453d124cb19da1c9b04dae7681", "score": "0.5707781", "text": "public static void main(String[] args)\n {\n State first = new State();\n first.enableDebug(); // show all valid states with path\n solve(first);\n \n System.out.println(\"We found \"+Search.states_found.size()+\" path(s)! For view, enable debug!\\n\");\n System.out.println(new FindBest(states_found));\n \n }", "title": "" }, { "docid": "ea0113826a36e5735e327ecd6cce7576", "score": "0.56760025", "text": "public static void main(String[] args) {\n int s = 0;\n Graph graph = new Graph(6);\n graph.addEdge(0, 5);\n graph.addEdge(2, 4);\n graph.addEdge(2, 3);\n graph.addEdge(1, 2);\n graph.addEdge(0, 1);\n graph.addEdge(3, 4);\n graph.addEdge(3, 5);\n graph.addEdge(0, 2);\n Paths search = new DepthFirstPaths(graph, s);\n for (int v = 0; v < graph.V(); v++) {\n System.out.print(s + \" to \" + v + \": \");\n if (search.hasPathTo(v)) {\n for (int x : search.pathTo(v)) {\n if (x == s) {\n System.out.print(x);\n } else {\n System.out.print(\"-\" + x);\n }\n }\n \n }\n System.out.println();\n }\n }", "title": "" }, { "docid": "52b1251fa5da02167e0a7bb4e60a0700", "score": "0.5645843", "text": "public static void main(String[] args) {\n\t\tint[][] graph={ { 0, 4, 0, 0, 0, 0, 0, 8, 0 },\n\t\t { 4, 0, 8, 0, 0, 0, 0, 11, 0 },\n\t\t { 0, 8, 0, 7, 0, 4, 0, 0, 2 },\n\t\t { 0, 0, 7, 0, 9, 14, 0, 0, 0 },\n\t\t { 0, 0, 0, 9, 0, 10, 0, 0, 0 },\n\t\t { 0, 0, 4, 14, 10, 0, 2, 0, 0 },\n\t\t { 0, 0, 0, 0, 0, 2, 0, 1, 6 },\n\t\t { 8, 11, 0, 0, 0, 0, 1, 0, 7 },\n\t\t { 0, 0, 2, 0, 0, 0, 6, 7, 0 } };\n\t\tint start=0;\n\t\tfindDistanceAndPath(graph,start);\n\t}", "title": "" }, { "docid": "384909f98f05c4b5a341f22e9d6dfefc", "score": "0.5644361", "text": "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n \n int n = sc.nextInt();\n int m = sc.nextInt();\n \n printmazepath(1,1,n,m,\"\");\n\n }", "title": "" }, { "docid": "89059710fb043b5a467414a5c6626544", "score": "0.56009877", "text": "public static void main(String[] args) {\n\t\tSystem.out.println(countMazePathWD(0, 0, 2, 2,\"\"));\n\n\t\t//System.out.println(countMazePathWD2(0, 0, 2, 2));\n\t\t//countMazePathWD2(0, 0, 2, 2,\"\");\n\t\t//System.out.println(MazePathList(0, 0, 2, 2));\n\t\t\n\t}", "title": "" }, { "docid": "96010418e39b238e2f67bcdb4e39decb", "score": "0.5593855", "text": "public static void main(String[] args) {\n \tKnightsTour tour = new KnightsTour();\n tour.run(false); \n }", "title": "" }, { "docid": "15210cdd9e7c1bf46a1fcdb4e267066e", "score": "0.5551622", "text": "public static void main(String[] args) {\n\t\tString initialConfiguration = InputHandler.takeInput();\n\t\t// Find the shortest path to solve the puzzle\n\t\tStack<ConfigurationNode> shortestPath = PuzzleSolver.findShortestSolution(initialConfiguration);\n\t\t// Print the moves taken to solve the puzzle\n\t\tprintSolution(shortestPath);\n\t}", "title": "" }, { "docid": "ad8f12da441bee04cbceecee4eaa416e", "score": "0.55449665", "text": "public static void main(String[] args) {\r\n\t\t// Data\r\n\t\tObject[][] map=loadData();\r\n\t\t\r\n\t\t//convert data to object\r\n\t\tconvert2Obj []data=convertAll( map);\r\n\t\t\r\n\t\t\r\n\t\tString start_point=\"A\";\r\n\t\tString end_point=\"j\";\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tArrayList<convert2Obj[]> paths = new ArrayList<convert2Obj[]>();\r\n\t\t ArrayList<String> names= findNodes( data) ;\r\n\t\t for(String s:names)\r\n\t\t\t System.out.println(s);\r\n\t\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "a01054b2774f63f9917b958826235fd7", "score": "0.5527146", "text": "public static void main(String[] args) {\n\t\tSystem.out.println(mazePath(0,2,0,2,\"\"));\r\n\t\t//lexicoCounting(1,10);\r\n\t}", "title": "" }, { "docid": "398e854fa2ab7ccbfae06456d22516de", "score": "0.55178434", "text": "public static void main (String args[]){\n\t\tif (args.length % 2 == 1) {\n\t\t\tusageMessage();\n\t\t}\n\t\telse if (args.length > 0) {\n\t\t\tfor(int i = 0; i < args.length; i += 2) {\n\t\t\t\tswitch (args[i].charAt(1)) {\n\t\t\t\t\tcase 'n':\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tTOWER_HEIGHT = Integer.parseInt(args[i + 1]);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcatch (Exception e) {\n\t\t\t\t\t\t\tusageMessage();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'm':\n\t\t\t\t\t\tdirection = args[i + 1].toUpperCase();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tusageMessage();\n\t\t\t\t}\n\t\t\t}\n\t\t}\t//end check on usage\t\n\t\t\n\t\tcreateStacksAndMaps();\n\t\t\n\t\t// a last check regarding usage\n\t\tif(!start_map.containsKey(direction)) {\n\t\t\tusageMessage();\n\t\t}\t\n\t\t\n\t\t// Let's see how long this takes?\n\t\tlong start = System.currentTimeMillis();\n\t\t\n\t\tfor (int i = 0; i < start_map.get(direction).length; i++) {\n\t\t\tstart_map.get(direction)[i] = TOWER_HEIGHT - i;\n\t\t}\n\t\t\n\t\tSystem.out.println(\"\\nThe starting position is given as:\\n\");\n\t\tprintStacks();\n\t\t\n\t\t// At long last! One who knows the ways of the Tower!\n\t\ttowerSolve(TOWER_HEIGHT, start_map.get(direction), dest_map.get(direction), temp_map.get(direction));\n\t\t\n\t\tSystem.out.println(\"Moved \" + TOWER_HEIGHT + \" disks in \" + counter + \" moves!\");\n\t\tSystem.out.println(\"Completed in: \" + ((double) ((System.currentTimeMillis() - start)) / 1000) + \" seconds\");\n\t}", "title": "" }, { "docid": "d49816aebb8f8723c298a909d2a15159", "score": "0.55145085", "text": "public static String findPath (List<String> args) throws IOException{\n \n String body = args.get(0);\n List<String> lines = Files.readAllLines(Paths.get(BODY_DATA + body + \".txt\"));\n \n //Gets the precision of the map\n Double precision = Double.parseDouble(lines.get(0));\n lines.remove(0);\n \n //Finds the starting coordinates\n //Remember to toss the starting coords in the wraps incase, because in-game is -90 to 90, -180 to 180.\n Point2D start = new Point2D.Double(LTC(args.get(1), precision), LTC(args.get(2), precision)); //Lat,lng\n Point2D end = new Point2D.Double(LTC(args.get(3), precision), LTC(args.get(4), precision));\n \n double lat_start = start.getX();\n double lng_start = start.getY();\n \n double lat_end = end.getX(); \n double lng_end = end.getY();\n\n //WLAT here should always return the passed in values.\n double lat_f = WLAT(lat_end - lat_start);\n double lat_b = WLAT(lat_start - lat_end);\n double lat_diff = Math.min(lat_f, lat_b);\n \n double lng_f = WLNG(lng_end - lng_start);\n double lng_b = WLNG(lng_start - lng_end);\n double lng_diff = Math.min(lng_f, lng_b);\n \n //If latitude difference is smaller.\n //\n if(Math.min(lat_f, lat_b) < Math.min(lng_f, lng_b)){\n \n }\n \n double lat_step = (lat_f <= lat_b ? 1 : -1)*precision;\n double lng_step = (lng_f <= lng_b ? 1 : -1)*precision;\n \n double iterate_lat_start = (lat_f <= lat_b ? 0 : 180);\n //double iterate_lat_start = (lat_f <= lat_b ? 0 : lat_diff);\n double iterate_lng_start = (lng_f <= lng_b ? 0 : lng_diff); \n \n double iterate_lat_end = (lat_f <= lat_b ? 180 : 0);\n //double iterate_lat_end = (lat_f <= lat_b ? lat_diff : 0);\n double iterate_lng_end = (lng_f <= lng_b ? lng_diff : 0);\n \n double record_lat_start = (lat_f <= lat_b ? lat_start : lat_end);\n double record_lng_start = (lng_f <= lng_b ? lng_start : lng_end);\n \n double p_mult = (1/precision);\n Node [][] bodyGraph = new Node[(int)(182*p_mult) + 1][(int)(lng_diff*p_mult) + 1];\n //Node [][] bodyGraph = new Node[(int)(lat_diff*p_mult) + 1][(int)(lng_diff*p_mult) + 1];\n for(double i = iterate_lat_start; i != (iterate_lat_end + lat_step); i+=lat_step ){\n for(double j = iterate_lng_start; j != (iterate_lng_end + lng_step); j+=lng_step ){\n bodyGraph[(int)(i*p_mult)][(int)(j*p_mult)] = new Node(new Point2D.Double(i, WLNG(j+record_lng_start)), getNodeAltitude(i, WLNG(j+record_lng_start), precision, lines));\n //bodyGraph[(int)(i*p_mult)][(int)(j*p_mult)] = new Node(new Point2D.Double(WLAT(i+record_lat_start), WLNG(j+record_lng_start)), getNodeAltitude(WLAT(i+record_lat_start), WLNG(j+record_lng_start), precision, lines));\n }\n }\n System.out.println(\"Created nodes.\");\n \n //Links the nodes\n for(double i = iterate_lat_start; i != (iterate_lat_end + lat_step); i+=lat_step ){\n for(double j = iterate_lng_start; j != (iterate_lng_end + lng_step); j+=lng_step ){\n if(i+lat_step != (iterate_lat_end + lat_step)){ //+1 lat\n bodyGraph[(int)(i*p_mult)][(int)(j*p_mult)].addDestination(bodyGraph[(int)((i+lat_step)*p_mult)][(int)(j*p_mult)]); }\n if(i-lat_step != (iterate_lat_start - lat_step)){ //-1 lat\n bodyGraph[(int)(i*p_mult)][(int)(j*p_mult)].addDestination(bodyGraph[(int)((i-lat_step)*p_mult)][(int)(j*p_mult)]); }\n if(j+lng_step != (iterate_lng_end + lng_step)){ //+1 lng\n bodyGraph[(int)(i*p_mult)][(int)(j*p_mult)].addDestination(bodyGraph[(int)(i*p_mult)][(int)((j+lng_step)*p_mult)]); }\n if((i+lat_step != (iterate_lat_end + lat_step)) && (j+lng_step != (iterate_lng_end + lng_step))){ //+1 lat +1 lng\n bodyGraph[(int)(i*p_mult)][(int)(j*p_mult)].addDestination(bodyGraph[(int)((i+lat_step)*p_mult)][(int)((j+lng_step)*p_mult)]); }\n if((i-lat_step != (iterate_lat_start - lat_step)) && (j+lng_step != (iterate_lng_end + lng_step))){ //-1 lat +1 lng\n bodyGraph[(int)(i*p_mult)][(int)(j*p_mult)].addDestination(bodyGraph[(int)((i-lat_step)*p_mult)][(int)((j+lng_step)*p_mult)]); }\n }\n }\n System.out.println(\"Linked nodes.\");\n \n //Adds nodes\n Graph graph = new Graph();\n for(double i = iterate_lat_start; i != (iterate_lat_end + lat_step); i+=lat_step ){\n for(double j = iterate_lng_start; j != (iterate_lng_end + lng_step); j+=lng_step ){\n graph.addNode(bodyGraph[(int)(i*p_mult)][(int)(j*p_mult)]);\n }\n } \n System.out.println(\"Added nodes to graph.\\n\");\n \n\n System.out.println(\"Performing shortest path search.\");\n Node startNode = bodyGraph[(int)(lat_start*p_mult)][(int)((lng_f <= lng_b ? 0 : lng_diff)*p_mult)];\n Node endNode = bodyGraph[(int)(lat_end*p_mult)][(int)((lng_f <= lng_b ? lng_diff : 0)*p_mult)];\n //Node startNode = bodyGraph[(int)((lat_f <= lat_b ? 0 : lat_diff)*p_mult)][(int)((lng_f <= lng_b ? 0 : lng_diff)*p_mult)];\n //Node endNode = bodyGraph[(int)((lat_f <= lat_b ? lat_diff : 0)*p_mult)][(int)((lng_f <= lng_b ? lng_diff : 0)*p_mult)];\n graph = calculateShortestPathFromSource(graph, startNode); \n List<Node> path = endNode.getShortestPath();\n //List<String> returnPath = new LinkedList<>(); \n String result = \"\";\n for(int i = 0; i < path.size(); i++){\n //returnPath.add(path.get(i).getName());\n result += (\"\\\"\" + path.get(i).getName() + \"\\\",\\n\");\n System.out.println(path.get(i).getName());\n }\n result += (\"\\\"\" + endNode.getName() + \"\\\"\");\n System.out.println(endNode.getName());\n \n //Maybe add a bit for removing nodes in the path where weight=0?\n \n return result;\n }", "title": "" }, { "docid": "f4429feb5226acf3dd7a98ecb20c6a1c", "score": "0.5469442", "text": "public static void main(String[] args) {\n\t\tScanner sf = new Scanner(System.in);\r\n\t\tint n = sf.nextInt();\r\n\t\tint m = sf.nextInt();\r\n\t\tString[][] graph= new String[n][m];\r\n\t\tfor (int i = 0; i < graph.length; i++) {\r\n\t\t\tgraph[i] = sf.next().split(\"\");\r\n\t\t}\r\n\t\tint[][] visited = new int[n][m];\r\n\t\tfor (int i = 0; i < visited.length; i++) {\r\n\t\t\tArrays.fill(visited[i], 0);\r\n\t\t}\r\n\t\touter: for (int i = 0; i < visited.length; i++) {\r\n\t\t\tfor (int j = 0; j < visited[0].length; j++) {\r\n\t\t\t\tif(visited[i][j]==0) {\r\n\t\t\t\t\tfinder(graph, i, j, i, j, 4,graph[i][j], visited);\r\n\t\t\t\t}\r\n\t\t\t\tif(graph[0][0].equals(\"1\")) {\r\n\t\t\t\t\tbreak outer;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(graph[0][0].equals(\"1\")) {\r\n\t\t\tSystem.out.println(1);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tSystem.out.println(\"0\");\r\n\t\t}\r\n\t\tsf.close();\r\n\r\n\t}", "title": "" }, { "docid": "23f17b7b73f253b2eb725460752c96db", "score": "0.54558116", "text": "public static void main(String[] args) {\n\n List<String> dict = new ArrayList<>();\n dict.add(\"abz\");\n dict.add(\"asc\");\n dict.add(\"ayz\");\n dict.add(\"agw\");\n dict.add(\"asb\");\n dict.add(\"abw\");\n dict.add(\"agz\");\n\n List<String> n = findWordPath(\"abc\", \"agz\", dict);\n System.out.println(\"The answer is: \");\n for(String m : n){\n System.out.println(m);\n }\n //System.out.printf(\"There is a path: %b\", n);\n }", "title": "" }, { "docid": "1017434281cf3a5256fe0531908d56fe", "score": "0.54318917", "text": "public static void main(String[] arguments)\n {\n Maze m = new Maze(\"MazeRunnerInput\"); // the maze \n //System.out.println(m);\n Position goal = m.finish(); // where the finish is\n Position square = null; // the current position\n // a linear structure to manage search\n Linear todo = new StackList();\n\n // begin by priming the queue(stack) w/starting position\n todo.add(m.start());\n while (!todo.isEmpty()) // while we haven't finished exploring\n {\n // take the top position from the stack and check for finish\n square = (Position)todo.remove();\n if (m.isVisited(square)) continue; // been here before\n if (square.equals(goal)) {\n System.out.println(m); // print solution\n break;\n }\n // not finished.\n // visit this location, and add neighbors to pool\n m.visit(square);\n if (m.isClear(square.north())) todo.add(square.north());\n if (m.isClear(square.west())) todo.add(square.west());\n if (m.isClear(square.south())) todo.add(square.south());\n if (m.isClear(square.east())) todo.add(square.east());\n }\n }", "title": "" }, { "docid": "bb0f7b2c61f192c9c69a77cb323a14ad", "score": "0.54260063", "text": "public static void main(String[] args) {\r\n\r\n PathFinder object = new PathFinder();\r\n\r\n int [][][] grid = new int [LAYERS][5][5];\r\n int [][][] userInput = new int [LAYERS][5][5];\r\n\r\n for (int k=0; k<LAYERS; k++) {\r\n for (int i = 0; i < 5; i++) {\r\n for (int j = 0; j < 5; j++) {\r\n grid [k][i][j] = 0;\r\n userInput[k][i][j] = 0;\r\n }\r\n }\r\n }\r\n\r\n // create the obstacles randomly (this will be generated by user input)\r\n object.createObstacles(grid);\r\n System.out.println(\"Grid after user input\");\r\n printGrid(grid);\r\n\r\n for (int i=0; i<LAYERS; i++) {\r\n // for each layer, create a path of 10 objects starting from random available point\r\n object.findPath(grid, i+1);\r\n System.out.println(\"\\nLayer \" + (int)(i+1));\r\n printGrid(grid);\r\n }\r\n\r\n // copy the user input obstacles into an auxiliary array\r\n copyGrid(userInput, grid);\r\n }", "title": "" }, { "docid": "4548139d2fb755ffccd75042a121eb25", "score": "0.541592", "text": "public static void main(String[] args)\n {\n int visited[][] = new int[N][N];\n int pos = 1;\n \n // start knight tour from corner square `(0, 0)`\n knightTour(visited, 0, 0, pos);\n System.out.println(\"Total no. of solutions = \"+ count);\n }", "title": "" }, { "docid": "e75f9eaac444bc4a4755077631999454", "score": "0.54079723", "text": "public static void main(String[] args) {\n\t\ttry {\n\t\t\tPathFinder.solveMaze(\"randomMaze.txt\", \"Cheryloput.txt\");\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "02a4b32beea4814efd80e1dea89e551a", "score": "0.54058266", "text": "public void findQuickExit(ActionEvent event) {\n // Pathfind to nearest exit\n clearPath();\n\t\tclearPath();\n\t\tbreadcrumbs.clear();\n\t\tsetTheBreadyBoysBackToTheirGrayStateAsSoonAsPossibleSoThatItMakesSenseAgainPlease();\n\n System.out.println(txtLocationStart.getText());\n System.out.println(txtLocationEnd.getText());\n\n\n\n PathfinderUtil pathfinderUtil = new PathfinderUtil();\n\n //List<Node> nodeList = new ArrayList<>();\n //LinkedList<Node> pathList = new LinkedList<>();\n //nodeList = DataModelI.getInstance().retrieveNodes();\n Node startNode = KioskInfo.getMyLocation();\n Node exitNode = new Room(\"N1X3Y\", 1, 3, \"F1\", \"BUILD1\", \"EXIT\", \"Node 1, 3\", \"n1x3y\", 1, 0, 0);\n\n startFloor = startNode.getFloor();\n endFloor = exitNode.getFloor();\n currentFloor = startNode.getFloor();\n // update end name\n txtLocationEnd.setText(exitNode.getLongName());\n\n try {\n//\t\t\t\tpathList = Singleton.getInstance().pathfindingContext.getPath(startNode, endNode, new AStarStrategyI());\n pathList = optionPicker.pathfindingContext.getPath(startNode, exitNode, new ClosestStrategyI());\n\n } catch (PathNotFoundException e) {\n e.printStackTrace();\n }\n\n\t\tString dirFloorL2 = \"\";\n\t\tString dirFloorL1 = \"\";\n\t\tString dirFloor1 = \"\";\n\t\tString dirFloor2 = \"\";\n\t\tString dirFloor3 = \"\";\n\n\t\tfloorL2DirectionNodes.clear();\n\t\tfloorL1DirectionNodes.clear();\n\t\tfloor1DirectionNodes.clear();\n\t\tfloor2DirectionNodes.clear();\n\t\tfloor3DirectionNodes.clear();\n\n\t\tdirectionsL2.clear();\n\t\tdirectionsL1.clear();\n\t\tdirections1.clear();\n\t\tdirections2.clear();\n\t\tdirections3.clear();\n\n\t\tboolean useL2 = false;\n\t\tboolean useL1 = false;\n\t\tboolean use1 = false;\n\t\tboolean use2 = false;\n\t\tboolean use3 = false;\n\n\n\t\tfor (Node node: pathList) {\n\t\t\tString floorName = node.getFloor();\n\t\t\tif (floorName.equals(\"L2\")) {\n\t\t\t\tfloorL2DirectionNodes.add(node);\n\t\t\t}\n\t\t\tif (floorName.equals(\"L1\")) {\n\t\t\t\tfloorL1DirectionNodes.add(node);\n\t\t\t}\n\t\t\tif (floorName.equals(\"1\")) {\n\t\t\t\tfloor1DirectionNodes.add(node);\n\t\t\t}\n\t\t\tif (floorName.equals(\"2\")) {\n\t\t\t\tfloor2DirectionNodes.add(node);\n\t\t\t}\n\t\t\tif (floorName.equals(\"3\")) {\n\t\t\t\tfloor3DirectionNodes.add(node);\n\t\t\t}\n\t\t}\n\n\t\tdirectionsL2 = ((pathfinderUtil.angleToText(floorL2DirectionNodes)));\n\t\tdirectionsL1 = (pathfinderUtil.angleToText(floorL1DirectionNodes));\n\t\tdirections1 = (pathfinderUtil.angleToText(floor1DirectionNodes));\n\t\tdirections2 = (pathfinderUtil.angleToText(floor2DirectionNodes));\n\t\tdirections3 = (pathfinderUtil.angleToText(floor3DirectionNodes));\n\n\t\tif(directionsL2.size() > 1){\n\t\t\tuseL2 = true;\n\t\t}\n\t\tif(directionsL1.size() > 1){\n\t\t\tuseL1 = true;\n\t\t}\n\t\tif(directions1.size() > 1){\n\t\t\tuse1 = true;\n\t\t}\n\t\tif(directions2.size() > 1){\n\t\t\tuse2 = true;\n\t\t}\n\t\tif(directions3.size() > 1){\n\t\t\tuse3 = true;\n\t\t}\n\n\t\tfor (int i = 0; i < directionsL2.size(); i++){\n\t\t\tdirFloorL2 += directionsL2.get((i)) + \"\\n\";\n\t\t}\n\t\tfor (int i = 0; i < directionsL1.size(); i++){\n\t\t\tdirFloorL1 += directionsL1.get((i)) + \"\\n\";\n\t\t}\n\t\tfor (int i = 0; i < directions1.size(); i++){\n\t\t\tdirFloor1 += directions1.get((i)) + \"\\n\";\n\t\t}\n\t\tfor (int i = 0; i < directions2.size(); i++){\n\t\t\tdirFloor2 += directions2.get((i)) + \"\\n\";\n\t\t}\n\t\tfor (int i = 0; i < directions3.size(); i++) {\n\t\t\tdirFloor3 += directions3.get((i)) + \"\\n\";\n\t\t}\n\t\tTreeItem<String> floorDirectionL2 = new TreeItem<>(dirFloorL2);\n\t\tTreeItem<String> floorDirectionL1 = new TreeItem<>(dirFloorL1);\n\t\tTreeItem<String> floorDirection1 = new TreeItem<>(dirFloor1);\n\t\tTreeItem<String> floorDirection2 = new TreeItem<>(dirFloor2);\n\t\tTreeItem<String> floorDirection3 = new TreeItem<>(dirFloor3);\n\n\t\tfloorL2.getChildren().setAll(floorDirectionL2);\n\t\tfloorL1.getChildren().setAll(floorDirectionL1);\n\t\tfloor1.getChildren().setAll(floorDirection1);\n\t\tfloor2.getChildren().setAll(floorDirection2);\n\t\tfloor3.getChildren().setAll(floorDirection3);\n\n\t\t// calcDistance function now converts to feet\n\t\tdouble dist = CalcDistance.calcDistance(pathList) * OptionSingleton.getOptionPicker().feetPerPixel;\n\t\tetaDistance = String.format(\"TOTAL DISTANCE: %.1f ft ETA: %.1f s\", dist, dist / OptionSingleton.getOptionPicker().walkSpeedFt);\n\t\tTreeItem<String> root = new TreeItem<>(etaDistance);\n\n\t\troot.getChildren().setAll(floor3, floor2, floor1, floorL1, floorL2);\n\t\tcolDirections.setCellValueFactory(\n\t\t\t\t(TreeTableColumn.CellDataFeatures<String, String> param) -> new SimpleStringProperty(param.getValue().getValue()));\n\n\t\ttblDirections.setRoot(root);\n\t\tdirections = FXCollections.observableArrayList(pathfinderUtil.angleToText((LinkedList) pathList));\n\t\ttblDirections.getRoot().setExpanded(true);\n\n\t\tif( useL2 == true){tblDirections.getTreeItem(5).setExpanded(true);}\n\t\tif( useL1 == true){tblDirections.getTreeItem(4).setExpanded(true);}\n\t\tif( use1 == true){tblDirections.getTreeItem(3).setExpanded(true);}\n\t\tif( use2 == true){tblDirections.getTreeItem(2).setExpanded(true);}\n\t\tif( use3 == true){tblDirections.getTreeItem(1).setExpanded(true);}\n\n\t\tpaneDirections.setVisible(true);\n\n String dimension;\n listForQR = (LinkedList) pathList;\n\n // Draw path code\n if (currentDimension.equals(\"3-D\")) {\n // use 3-D\n dimension = \"3-D\";\n printNodePath(pathList, startFloor, dimension);\n changeFloor(startFloor);\n } else {\n // use 2-D\n dimension = \"2-D\";\n printNodePath(pathList, startFloor, dimension);\n changeFloor(startFloor);\n }\n\n\t\t// Clear old fields\n\t\t// Show directions interface and hide pathfinding interface\n\t\tpaneDirections.setVisible(true);\n\n\t\t// Clean up Navigation Fields\n\t\tcomBuildingStart.setItems(buildings); // Set comboboxes for buildings to default lists\n\t\tcomBuildingStart.getSelectionModel().clearSelection(); // eventually set to default kiosk\n\t\tcomBuildingEnd.setItems(buildings);\n\t\tcomBuildingEnd.getSelectionModel().clearSelection(); // eventually set to default kiosk\n\t\t//comFloorStart.setDisable(true);\n\t\tcomFloorStart.getSelectionModel().clearSelection();\n\t\tcomFloorStart.setItems(empty);\n\t\t//comFloorEnd.setDisable(true);\n\t\tcomFloorEnd.getSelectionModel().clearSelection();\n\t\tcomFloorEnd.setItems(empty);\n\t\t//comTypeStart.setDisable(true);\n\t\tcomTypeStart.getSelectionModel().clearSelection();\n\t\tcomTypeStart.setItems(empty);\n\t\t//comTypeEnd.setDisable(true);\n\t\tcomTypeEnd.getSelectionModel().clearSelection();\n\t\tcomTypeEnd.setItems(empty);\n\n\t\t// Directions Update\n\t\tbreadBoy();\n\t\tanimatePath();\n\n\t}", "title": "" }, { "docid": "ae821b65dc81e45a9715b0699cfb16eb", "score": "0.5392467", "text": "private static void calculatePath(){\t\n \tPoint closestExit = null;\n int smalleastCost = -1;\n \tint stepUsedinThisRun = -1;\n \t//startEndPoint.clear();\n \tpathPoints.clear();\n //calculate path to each exit.\n for (Point this_exit : map.getPointGroupsHashMap().get(\"exits\")){\n \tif (dangerousPoints.contains(this_exit)){\n \t\tif(VERBOSE_MODE){\n \t\t\tSystem.out.println(\"Skipping this exit: [\" + this_exit.x + \", \" + this_exit.y + \"] because its in dangerouse area\");\n \t\tSystem.out.println();\n \t\t}\t\n \t\tcontinue;\n \t}\n \tif (VERBOSE_MODE){\n \t\tSystem.out.println(\"Now doing this exit: [\" + this_exit.x + \", \" + this_exit.y + \"] with straight distance = \" + distance(this_exit, startPoint));\n \t}\n \t//update end point as current exit\n \tpf.updateGoal((int)this_exit.getX(),(int)this_exit.getY());\n \t//recalculate path\n pf.replan();\n \n List<State> path = pf.getPath();\n //check path cost\n int thisPathCost = path.size();\n if (thisPathCost >0){\n \tif (VERBOSE_MODE){\n \t\tSystem.out.println(\"Path found. Cost = \" + thisPathCost + \"(smalleast cost so far = \" + smalleastCost + \")\" + \"(used \"+ pf.getNumOfSteps() + \" steps, while maxStep = \" + pf.getMaxSteps() + \")\");\n \t}\t\n }\n \n //thisPathCost > 0 means there is a path found\n if ((smalleastCost == -1 || thisPathCost < smalleastCost) && thisPathCost> 0){\n \tpathPoints.clear();\n \tendPoint = this_exit;\n \tclosestExit = this_exit;\n \tsmalleastCost = thisPathCost;\n \t//set max step for next iteration;\n \tstepUsedinThisRun = pf.getNumOfSteps();\n \tpf.setMaxSteps(stepUsedinThisRun*3);\n \tfor (State i : path){ \n //System.out.println(\"x: \" + i.x + \" y: \" + i.y);\n \t\t pathPoints.add(new Point(i.x,i.y));\n }\n } \n if(VERBOSE_MODE) System.out.println(); \n }\n if(VERBOSE_MODE) System.out.println(\"Final result is: smallestCost = \" + smalleastCost + \" with step_used = \" + stepUsedinThisRun);\n }", "title": "" }, { "docid": "13635f1332addf9ed089e55ac2c9cf88", "score": "0.53778505", "text": "public static void main(String[] args) throws IOException\n {\n System.out.println(\"Enter a file to work with: \");\n Scanner scan = new Scanner(System.in);\n String file = scan.nextLine();\n KenKen puzzle = new KenKen();\n System.out.println(\"Initializing KenKen board...\\nSetting cages...\");\n puzzle.InitializePuzzle(file);\n System.out.println(\"Searching for solution...\");\n puzzle.FindSolution(); \n }", "title": "" }, { "docid": "1cf93a5febea551267dc5afed5e8dda0", "score": "0.53554356", "text": "public static void main(String args[]) {\n Robot beeperBot = new Robot(2, 2, East, -1);\n makePath(beeperBot);\n Robot karel = new BeeperPath(2, 1, East, 0);\n // Your code goes below here\n karel.run();\n karel.turnOff();\n }", "title": "" }, { "docid": "f0e543135a91f0dc0fd820d1384f3904", "score": "0.53476715", "text": "public static void main(String[] args) {\n\t\tFile f = new File(\"nineex2.txt\");\n\n\t\tStringFileReader sfr = new StringFileReader();\n\t\tString[] lines = StringFileReader.readLinesOfFile(f);\n\n\t\tTravelerSalesmanProblem tsp = new TravelerSalesmanProblem();\n\t\tfor (String s : lines) {\n\t\t\ttsp.getModelOutOfString(s);\n\t\t}\n\t\ttsp.calculateShortestRoute();\n\t}", "title": "" }, { "docid": "9012c0085b5f1baf2ff71f10d3af7ee9", "score": "0.5344457", "text": "public static void main(String[] args) {\n new Solution().findNumberOfSticksCut();\n }", "title": "" }, { "docid": "641b1a89575af8a8c942878509242683", "score": "0.5329698", "text": "public static void main(String[] args) {\n\t\tArrayList<String> pathList = getMazePath(0,0,2,2,\"\");\n//\t\tint pathCount = getMazePathCount(0,0,3,3);\n//\t\tSystem.out.println(pathCount);\n\t\tSystem.out.println(pathList);\n//\t\tSystem.out.println(mazeCountIterativeTD(0, 0, 3, 3));\n\t\t\n\t}", "title": "" }, { "docid": "7aa2c1e362e16168e76a71907fedac4d", "score": "0.5279373", "text": "public static void main(String args[]) {\n\t\t\n\t\t\n\t\t\n\t\t\n\t\tint n = 3;\n\t\tdp = new int[n][n];\n\t\tint x = n-1, y = n-1;\n\t\tgetWays(0, 0, x, y, dp, path);\n\t\tSystem.out.println(dp[x][y]);\n\t}", "title": "" }, { "docid": "143a146a1cb365ec4ce2bbd843473ac8", "score": "0.52584714", "text": "public static void main(String[] args) throws IOException {\n // Inject service layer.\n IslandService islandService = new IslandServiceImpl();\n MapServiceImpl mapServiceImpl = new MapServiceImpl(islandService);\n VikingServiceImpl vikingServiceImpl = new VikingServiceImpl(islandService);\n\n // 1. Read map.\n islandList = mapServiceImpl.loadMap(AppConstants.PATH_TO_MAP);\n System.out.println(\"Map loaded. Islands created.\");\n\n // 2. Create vikings.\n vikingList = vikingServiceImpl.createListOfVikings(defineStartIslandForViking());\n System.out.println(\"Vikings are created and distributed across the islands.\");\n\n // 3. Start game simulation.\n Main.runGame(vikingList, vikingServiceImpl, islandService);\n\n // 4. Unload changed map to file.\n mapServiceImpl.unloadMap(islandList);\n }", "title": "" }, { "docid": "751cd010ec6e984eae5bdc752df07dc4", "score": "0.5252128", "text": "static private void findPath(){\n \t\n \t//timer\n //Timer.getTimer().start();\n \n \t//get connected rooms and hallway as dangerous area\n \tArrayList<Point> connected_rommHallway = connected_roomHallway_points(shooterPosition);\n \tArrayList<Point> nearPoints = nearPoints(shooterPosition);\n \tString infoMessage = \"\";\n \t//user in the same hallway or room with shooter, but not near him\n \tif(connected_rommHallway.contains(startPoint) && !nearPoints.contains(startPoint)){\n \t\tinfoMessage = \"User in the same hallway or room with shooter, but not near shooter\";\n \t\tif(VERBOSE_MODE) System.out.println(infoMessage);\n \t\tdangerousPoints.addAll(nearPoints);\n \t}\n \n \t//user in the same hallway or room with shooter, and near him\n \telse if (connected_rommHallway.contains(startPoint) && nearPoints.contains(startPoint)){\n \t\tinfoMessage = \"User in the same hallway or room with shooter, and near shooter\";\n \t\tif(VERBOSE_MODE) System.out.println(infoMessage);\n \t}\n \t\n \t//user not in the same hallway or room with shooter, but near him\n \telse if (!connected_rommHallway.contains(startPoint) && nearPoints.contains(startPoint)){\n \t\tinfoMessage = \"User near shooter, but not in the same hallway or room\";\n \t\tif(VERBOSE_MODE) System.out.println(infoMessage);\n \t\tdangerousPoints.addAll(connected_rommHallway);\n \t}\n \n \telse{\n \t\tdangerousPoints.addAll(nearPoints);\n \t\tdangerousPoints.addAll(connected_rommHallway);\n \t\tif(VERBOSE_MODE) System.out.println(\"Normal case\");\n \t}\n \n //need to sort the exits by it's distance to the current location\n SortExitsbyStraightDistance(map.getPointGroupsHashMap().get(\"exits\"), startPoint);\n\n \t//this needs to be taken care of afterwards\n if(dangerousPoints.contains(startPoint)){\n \t\n \tSystem.out.println(\"start point in dangerous area, no way to go!\");\n \tendPoint = new Point(0,0);\n \t//System.exit(0);\n }\t\n else{\n \tendPoint = new Point(0,0);\n \tinitiateDstar();\t\n \t//in calculatePath(), starEndpoint is filled, pathPoints is filled\n \tcalculatePath(); \n }\n \n //end timer\n //System.out.println(\"time used: \" + Timer.getTimer().stop());\n }", "title": "" }, { "docid": "fd8ac6b81c00d53ca3a3ea2f51597b16", "score": "0.5236859", "text": "public static void main(String[] args) {\n\t\tStrobogrammatic sb = new Strobogrammatic();\r\n\t\tSystem.out.println(sb.findStrobogrammatic(1));\r\n\t}", "title": "" }, { "docid": "c320aa2758078471c0e673b7da5e0f9b", "score": "0.52349013", "text": "public static void main(String[] args) {\n\t\tSystem.out.println(numberOfPaths(3, 3, 2));\n\t\tSystem.out.println(countPaths(2, 2, 2));\n\t}", "title": "" }, { "docid": "9bb622301c62aa78264cd2f5ef851d98", "score": "0.5234114", "text": "public static void main(String[] args) {\n\t\tint[][] values = { { 1, 1, 1, 1, 1},\r\n\t\t\t\t\t\t { 1, 0, 0, 1, 1},\r\n\t\t\t\t\t\t { 1, 1, 0, 0, 1},\r\n\t\t\t\t\t\t { 1, 9, 1, 9, 1}};\r\n\t\t\t\t \r\n\t\tint row = 4;\r\n\t\tint col = 5;\r\n\t\tint dist = shortestPath(row, col, values);\r\n\t\tSystem.out.println(\"Distance = \"+dist);\r\n\t}", "title": "" }, { "docid": "916eeecbe9f3aa5626af0719f1863067", "score": "0.5225135", "text": "public static void main(String[] args) throws FileNotFoundException{\n\t\tSystem.out.println(\"Enter name of dictionary file:\");\n\t\tScanner console = new Scanner(System.in);\n\t\tScanner input = new Scanner(new File(console.next()));\n\t\tArrayList<String> checkWords = new ArrayList<String>();\n\t\tcheckWords = allWords(input);\n\t\tboolean run =true;\n\t\twhile (run=true){\n\t\tSystem.out.println(\"Enter two words separated by a space:\");\n\t\tString word1 = console.next();\n\t\tString word2 = console.next();\n\t\tArrayList<String> temp = new ArrayList<String>();\n\t\ttemp=shortWords(checkWords, word1);\n\t\t\tif (word1.length() != word2.length()){\n\t\t\t\t\tSystem.out.println(\"No solution\");\n\t\t\t\t\trun=false;\n\t\t\t\t} else {\n\t\t\t\tif (!checkWords.contains(word1) || !checkWords.contains(word2) ) {\n\t\t\t\tSystem.out.println(\"Word does not exist!\");\n\t\t\t\trun=false;\n\t\t\t} else {\n\t\t\t\t\tfindPath(mapWords(temp), word1, word2, temp);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "8b4814175bd0da844c76ab15b84d00e6", "score": "0.51886135", "text": "public static void main(String[] args) {\n\t\tScanner scanner=new Scanner(System.in);\r\n\t\tint n=scanner.nextInt();\r\n\t\tdp=new int[n+1];\r\n\t\t// intializing dp with-1\r\n\t\tfor(int i=0;i<dp.length;i++) {\r\n\t\t\tdp[i]=-1;\r\n\t\t}\r\n\t\tedges[] input=new edges[n+1];\r\n\t\tboolean[] visited=new boolean[n+1];\r\n\t\tfor(int i=0;i<=n;i++) {\r\n\t\t\tedges put=new edges();\r\n\t\t\tinput[i]=put;\r\n\t\t}\r\n\t\tint x=scanner.nextInt();\r\n\t\tint y=scanner.nextInt();\r\n\t\twhile(x!=0) {\r\n\t\t\tinput[x].add(y);\r\n\t\t\tx=scanner.nextInt();\r\n\t\t\ty=scanner.nextInt();\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(noOFPaths(-1, 1, input, n,visited));\r\n\t\t\r\n\r\n\t}", "title": "" }, { "docid": "f69b5941b10139730f3eff7a4a3f0b01", "score": "0.51864314", "text": "public static void main(String[] args) {\n\t\tBinaryTreePaths app = new BinaryTreePaths();\r\n\t\t\r\n\t\t//tree\r\n\t\tTreeNode root = new TreeNode(1);\r\n\t\troot.left = new TreeNode(2);\r\n\t\troot.right = new TreeNode(3);\r\n\t\troot.left.right = new TreeNode(5);\r\n\t\t\r\n\t\tapp.binaryTreePaths(root);\r\n\r\n\t}", "title": "" }, { "docid": "3f9f791485b32406685035f2c4e87b21", "score": "0.5173249", "text": "public static void main(String[] args) {\r\n\t\t\r\n\t\tSystem.out.println(\"1\");\r\n\t\tMyMaze3dGenerator gen = new MyMaze3dGenerator();\r\n\t\tMaze3d maze = gen.generate(2,3,3);\r\n\t\t\r\n\t\tSystem.out.println(\"2\");\r\n\t\tSystem.out.println(\"Start Position: \" + maze.getStartPosition());\r\n\t\tSystem.out.println(\"Goal Position: \" + maze.getGoalPosition());\r\n\t\tSystem.out.println(maze);\r\n\t\t\r\n\t\tSystem.out.println(\"3\");\r\n\t\tMazeAdapter adapter = new MazeAdapter(maze);\r\n\t\t\r\n\t\tSystem.out.println(\"4\");\r\n\t\tBFS bfs = new BFS();\r\n\t\tDFS dfs = new DFS();\r\n\t\tSystem.out.println(\"5\");\r\n\r\n\t\t\r\n\t\tSolution solution = bfs.search(adapter);\r\n\t\tSolution solution2 = dfs.search(adapter);\r\n\t\tSystem.out.println(\"6\");\r\n\r\n\t\tSystem.out.println(\"BFS solution is: \");\r\n\t\tSystem.out.println(solution);\r\n\t\tSystem.out.println(\"numer of BFS evaluated nodes is: \" + bfs.getEvaluatedNodes());\r\n\t\t\r\n\t\tSystem.out.println(\"\");\r\n\t\t\r\n\t\tSystem.out.println(\"DFS solution is: \");\r\n\t\tSystem.out.println(solution2);\r\n\t\tSystem.out.println(\"numer of DFS evaluated nodes is: \" + dfs.getEvaluatedNodes());\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "bf10e83b05dde32edc677d7e12ce5a2a", "score": "0.51673454", "text": "public static void main(String[] args) {\n\t\tBinaryNode root = BinaryTree.generateRandomBinaryTree();\n\t\tLevelOrderTraversal.printLevelOrderTraversal(root);\n\t\t\n\t\tint[] path = returnMaxSumPath(root, new int[20], new int[20], 0, 0, 0);\n\t\tSystem.out.println(\"\\n \\n\" + path.toString());\n\t\tmaxSum(root, 0);\n\t\tSystem.out.println(\"\\n \\n\");\n\t\tpath(root, maxLeaf);\n\t\t\n\t}", "title": "" }, { "docid": "c06c3f8b9fd53c9f77412ddd6c400343", "score": "0.51653373", "text": "public static void main(String[] args) {\n if (args.length != 1) {\n System.out.println(\"Command-line argument: <Root of scan output folder>\");\n System.exit(1);\n }\n String scanOutputRoot = args[0];\n\n // Get the expected data from the Excel file\n Map<String, List<String>> expectedData = ExcelParser.parseCorrectFile(EXCEL_FILE, EXCEL_SHEETS,\n EXCEL_DATA_COLUMNS);\n\n // Get the actual data outputted by Scan\n Map<String, ScanOutput> actualOutput = JsonParser.crawlDirectories(scanOutputRoot);\n\n // Compare the results and print out statistics\n compareResults(actualOutput, expectedData);\n }", "title": "" }, { "docid": "6c3702ecdb0cf45009b9f8689fbf21a9", "score": "0.5158502", "text": "public static void main(String[] args) {\n long startTime = 0;\n long endTime = 0;\n long timeElapsed = 0;\n startTime = System.currentTimeMillis();\n search();\n endTime = System.currentTimeMillis();\n timeElapsed = endTime - startTime;\n System.out.println(\"The code took \" + (timeElapsed * 0.001) + \" seconds to find a solution\");\n System.out.println(\"The program used \" + count + \" steps to get a solution.\");\n return;\n }", "title": "" }, { "docid": "399fff53ce52462069c285ed0ce1a87a", "score": "0.5156874", "text": "public static void main(String[] args) {\n\n TreeNode root = new TreeNode(0);\n root.left = new TreeNode(0);\n root.right = new TreeNode(0);\n\n System.out.println(new OptimalSolution().pathSum(root, 0));\n }", "title": "" }, { "docid": "447c9a6718ca2a9e2cc5999b5bb9fcf9", "score": "0.51510525", "text": "public static void main(String[] args) {\n Path dictionary = Paths.get(\"/\", \"usr\", \"share\", \"dict\", \"web2\");\n System.out.println(dictionary);\n\n Path home = Paths.get(\"/Users/kousen\");\n System.out.println(home);\n\n // Using resolve to find nested paths\n Path docs = home.resolve(\"Documents\");\n System.out.println(docs);\n\n // Can resolve siblings as well\n Path downloads = docs.resolveSibling(\"Downloads\");\n System.out.println(downloads);\n\n // Project directory\n Path project = Paths.get(\".\");\n System.out.println(project);\n System.out.println(project.toAbsolutePath());\n System.out.println(\"As a URI: \" + project.toUri());\n\n // Normalize a path\n Path p = Paths.get(\"/Users/kousen/Documents/./IntelliJ/..\").normalize();\n System.out.println(\"Normalized: \" + p);\n\n System.out.println(\"parent: \" + project.toAbsolutePath().getParent());\n System.out.println(\"file name: \" + project.toAbsolutePath().getFileName());\n System.out.println(\"root: \" + project.toAbsolutePath().getRoot());\n for (Path path : project.toAbsolutePath()) {\n System.out.println(path);\n }\n\n File localDir = new File(\"..\");\n System.out.println(localDir);\n System.out.println(localDir.toPath().toAbsolutePath().normalize());\n }", "title": "" }, { "docid": "0476ef8a5749c28ae9ea5c34b14fbb3d", "score": "0.5146796", "text": "public static void main(String[] args) {\n\t\tint source=3;\r\n\t\tint target=1;\r\n\t\t\r\n\t\t\r\n\t\t//initialise graph matrix for testing purposes\r\n//\t\tAdjacencyMatrix obj = new AdjacencyMatrix( 6 );\r\n\t\tAdjacencyMatrix obj = new AdjacencyMatrix( 14 );\r\n\r\n\t\t//add in edges to graph matrix for testing purposes\r\n\t\tSystem.out.println(\"---- Graph (START) ----\" );\r\n\t\tobj.addEdge( 0, 1 );\r\n\t\tobj.addEdge( 0, 2 );\r\n\t\tobj.addEdge( 2, 3 );\r\n\t\tobj.addEdge( 2, 4 );\r\n\t\tobj.addEdge( 3, 5 );\r\n\t\tobj.addEdge( 4, 5 );\r\n\t\t\r\n\t\tobj.addEdge( 1, 6 );\r\n\t\tobj.addEdge( 2, 10 );\r\n\t\tobj.addEdge( 3, 7 );\r\n\t\tobj.addEdge( 5, 8 );\r\n\t\tobj.addEdge( 4, 9 );\r\n\t\tobj.addEdge( 8, 9 );\r\n\t\tobj.addEdge( 7, 6 );\r\n\t\tobj.addEdge( 8, 7 );\r\n\t\t//obj.print();\r\n\t\tSystem.out.println(\"---- Graph (END) ----\" );\r\n\t\tSystem.out.println();\r\n\t\t\r\n\r\n\t\t//check for valid input of source and target values\r\n\t\tint isValid=validInput(source, target, obj.getGraph());\r\n\t\t\r\n\t\tif(isValid<0) { \r\n\t\t\tSystem.out.println(\"Invalid inputs, cannot find path\");\r\n\t\t}else {\r\n\r\n\t\t\tSystem.out.println(\"---- Traversal (START) ----\" );\r\n\t\t\t\r\n\t\t\tResult result = find( source, target , obj.getGraph() );\r\n\t\t\t\r\n\t\t\t//print the distance\r\n\t\t\tSystem.out.println(\"Least number of edges between node \"+source+\" and node \"+target+\" is \"+result.getDistance());\r\n\t\t\t\r\n\t\t\t//print the node path\r\n\t\t\tSystem.out.print(\"The node path is: \");\r\n\t\t\tfor(int i=0;i<result.getNodePath().size();i++) {\r\n\t\t\t\tSystem.out.print(result.getNodePath().get(i)+\" , \");\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"---- Traversal (END) ----\" );\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "4af4e843cbbf0ca01a6fc0ae741b401e", "score": "0.5146", "text": "public static void main(String[]args)\n\t{\n\t\tSystem.out.println(\"Sonia Lopez *** 1001523296 *** CSE 4344\");\n\t\tSystem.out.println(\"Distance Vector Routing\");\n\t\t\n\t\tint i;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//counter variable\n\t\tint j;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//counter variable\n\t\tint cycles = 0;\t\t\t\t\t\t\t\t\t\t\t\t\t//count of cycles until it is stable\n\t\tString filename;\t\t\t\t\t\t\t\t\t\t\t\t//will hold filename entered by user\n\t\tString choice;\t\t\t\t\t\t\t\t\t\t\t\t\t//will hold whether user chose single step;\n\t\tScanner scanner = new Scanner(System.in); \t\t\t\t// gets user input\n\t\t\n\t\tSystem.out.print(\"What file would you like to open: \");\n\t\tfilename = scanner.nextLine();\n\t\tint [][] nodeInfo = read(filename);\t\t\t\t\t\t// has the info for the links between the routers\n\t\t\n\t\tNode[] routers = new Node[NUM_NODES];\t\t\t\t\t\t\t//router object\n\t\tboolean singleStep;\t\t\t\t\t\t\t\t\t\t\t\t//true means user chose to do single step\n\t\tboolean stable = false;\n\t\t\n\t\tSystem.out.print(\"Would you like single step mode? (y/n): \");\n\t\tchoice = scanner.nextLine();\n\t\t\n\t\tif(choice.equalsIgnoreCase(\"y\") || choice.equalsIgnoreCase(\"yes\"))\n\t\t{\n\t\t\tsingleStep = true;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tsingleStep = false;\n\t\t}\n\t\t\n\t\t//Begin main part\n\t\tSystem.out.println(\"Initializing Routers\");\n\t\t\n\t\t//create a list\n\t\tfor (i = 0; i < routers.length; i++)\n\t\t{\n\t\t\trouters[i] = new Node();\t\t\t\t\t\t\t\t\t\t//starting at 1\n\t\t\trouters[i].node(i+1,nodeInfo);\n\t\t\tSystem.out.println(\"Initial link state for router: \"+(i+1));\t//printing what is currently known\n\t\t\trouters[i].printRTable();\t\t\t\n\t\t}\n\t\t\n\t\t//dif program direction depending on user input\n\t\tif(singleStep)\n\t\t{\n\t\t\twhile(!stable)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"Please press enter to continue.\");\n\t\t\t\tchoice = scanner.nextLine();\n\t\t\t\tstable = share(routers);\n\t\t\t\tfor(i = 0; i < NUM_NODES; i++)\n\t\t\t\t{\n\t\t\t\t\trouters[i].printDTable();\n\t\t\t\t}\n\t\t\t}\n\t\t\tscanner.close();\t\t\t\t\t\t\t\t\t\t\t\t//no longer needed will not be getting user input\n\t\t\tSystem.out.println(\"The system is now stable.\");\n\t\t\tSystem.out.println(\"The nodes are not getting any new information.\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tlong startTime = System.nanoTime();\n\t\t\twhile(!stable)\n\t\t\t{\n\t\t\t\tstable = share(routers);\n\t\t\t\tcycles++;\n\t\t\t}\n\t\t\tSystem.out.println(\"The system is now stable.\");\n\t\t\tSystem.out.println(\"The nodes are not getting any new information.\");\n\t\t\tlong endTime = System.nanoTime();\n\t\t\tlong duration = endTime - startTime;\n\t\t\tSystem.out.println(\"It took \"+ cycles +\"cycles and \"+(duration/1000000)+\" milliseconds to reach a stable staus.\");\n\t\t}\n\t}", "title": "" }, { "docid": "37d35ec7ae1ce8d152336f4a7e363e51", "score": "0.5141901", "text": "public static void main(String[] args) {\n\t\tString board = \"WWRRBBWW\", hand = \"WRBRW\";\n\t\tSystem.out.println(new Solution().findMinStep(board, hand));\n\t}", "title": "" }, { "docid": "9e4928da2888049db3c12cc1c2601a1b", "score": "0.51409847", "text": "public static void main(String[] args)\n\t{\n\t\tSolution28 s28 = new Solution28();\n\t\tString haystack = \"a\";\n\t\tString needle = \"a\";\n\t\tSystem.out.println(s28.strStr(haystack, needle));\n\t}", "title": "" }, { "docid": "2d5a43cc10e1f2074a6dcd962a70079c", "score": "0.51378083", "text": "public static void main(String[] args) throws FileNotFoundException {\n\n\n //Registrer tiden når programmet starter i nanosekunder.\n float startTime = System.nanoTime();\n\n //Arrayliste der indeholder layouts for mazes\n ArrayList<Maze> mazes = readMazes();\n\n int i = 0;\n while (i < mazes.size()){\n if (solveMaze(mazes.get(i))){\n System.out.println(\"YOU WOOON!!!\\n\");\n\n }else {\n System.out.println(\"No path available\\n\");\n }\n i++;\n }\n\n //registrer når programmet slutter i nanosekunder\n float endTime = System.nanoTime();\n //udregner tiden hvor langtid programmet kørte i sekunder\n float totalTime = (endTime -startTime)/100000000;\n System.out.println(\"Det tog \" + totalTime+ \" sekunder for at gennemføre Mazes.\");\n //System.out.println(\"Der blev brugt \" + m.path.size() + \" ryk til at finde ud af mazen\");\n\n }", "title": "" }, { "docid": "5ec9d0409ce24d0757b3cf4b389542c9", "score": "0.51292044", "text": "public static void main(String[] args){\n\t\t\n\t\t\n\t\tCmdLineParser parser = new CmdLineParser();\n\t\tCmdLineParser.Option console = parser.addStringOption('m',\"map\");\n\t\tCmdLineParser.Option swing = parser.addStringOption('i',\"interface\");\n\t\tCmdLineParser.Option solve = parser.addStringOption('d', \"max-depth\"); //--interface both --map map.txt --max-depth 3\n\t\t\n\t\ttry {\n\t\t\tparser.parse(args);\n\t\t}\n\t\tcatch (CmdLineParser.OptionException e ) {\n\t\t\tSystem.err.println(e.getMessage());\n\t\t\tSystem.exit(-1);\n\t\t}\n\t\tString swingValue = (String)parser.getOptionValue(swing);\n\t\tString consoleValue = (String)parser.getOptionValue(console);\n\t\tString solveValue = (String)parser.getOptionValue(solve);\n\t\t\n\t\tFileInputStream file = null;\n\t\tMapLoaderFromTxtFile loader = null;\n\t\t\n\t\ttry{\n\t\t\t\n\t\t\tfile = new FileInputStream(consoleValue);\n\t\t\tloader = new MapLoaderFromTxtFile();\n\t\t\t\n\t\t}\n\t\tcatch(Exception e){ // null map\n\t\t\t\n\t\t\tSystem.err.println(\"No map file specified.\" + '\\n');\n\t\t\tSystem.err.println(\"Usage: tp.pr3.Main <mapFile>\" + '\\n');\n\t\t\t\n\t\t\tSystem.exit(-1);\n\t\t\t\n\t\t}\t\n\t\t\n\t\ttry{\n\t\t\tMap map = loader.loadMap(file); // No sé por qué si lo intento cargar 2 veces me salta excepción. Por eso lo guardo en un mapa y con ese trabajo.\n\t\t\tRoom InitRoom = map.getCurrentRoom();\n\t\t\tGame g = new Game(map);\n\t\t\t\n\t\t\tif(Integer.parseInt(solveValue) > 0){\n\t\t\t\tnew FindExit(map, Integer.parseInt(solveValue)).solve(map.getCurrentRoom());\n\t\t\t}\n\t\t\t\n\t\t\tmap.setCurrentRoom(InitRoom, Directions.UNKNOWN);\n\t\t\t\n\t\t\tif(swingValue.equalsIgnoreCase(\"swing\")){\n\t\t\t\t\n\t\t\t\tGameControllerGUI gui = new GameControllerGUI(g);\n\t\t\t\tnew MainWindow(gui);\n\t\t\t\tgui.runGame();\n\t\t\t\t\n\t\t\t}\n\t\t\telse if(swingValue.equalsIgnoreCase(\"console\")){\n\t\t\t\t\n\t\t\t\tGameControllerConsole cons = new GameControllerConsole(g); \n\t\t\t\tnew Console();\n\t\t\t\tcons.runGame();\n\t\t\t\t\n\t\t\t}\n\t\t\telse if(swingValue.equalsIgnoreCase(\"both\")){\n\t\t\t\t\n\t\t\t\tGameControllerGUI gui = new GameControllerGUI(g);\n\t\t\t\tnew MainWindow(gui);\n\t\t\t\tgui.runGame();\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tnew GameControllerConsole(g); \n\t\t\t\tnew Console();\n\t\t\t\t//cons.runGame(); // No se permiten comandos desde la consola en este modo.\n\t\t\t\t\n\t\t\t}\n\t\t\telse\n\t\t\t\tthrow new Exception(\"Error : no se ha especificado ni console ni swing\");\n\t\t}\n\t\tcatch(Exception e){ // Wrong map format\n\t\t\tSystem.err.println(\"No map file specified.\" + '\\n');\n\t\t\tSystem.err.println(\"Usage: tp.pr3.Main <mapFile>\" + '\\n');\n\t\t\tSystem.err.println(e.getMessage());\n\t\t\tSystem.exit(-1);\n\t\t\t\n\t\t}\n\t\t\n\t\tfinally{\n\t\t\ttry{\n\t\t\t\tfile.close();\n\t\t\t}\n\t\t\tcatch(Exception p){}\n\t\t}\n\t\t\n\t\treturn;\n\t}", "title": "" }, { "docid": "ed54e45e868358e9e0330e75b14dd90a", "score": "0.51271677", "text": "public static void main(String[] args){\r\n Route_Between_Nodes<String> route = new Route_Between_Nodes<>();\r\n Node<String> n1 = new Node<>(\"Start\");\r\n Node<String> n2 = new Node<>(\"Second\");\r\n Node<String> n3 = new Node<>(\"Third\");\r\n Node<String> n4 = new Node<>(\"Fourth\");\r\n Node<String> n5 = new Node<>(\"Final\");\r\n\r\n n1.addChild(n2);\r\n n2.addChild(n3);\r\n n2.addChild(n4);\r\n n4.addChild(n5);\r\n n5.addChild(n3);\r\n\r\n Graph<String> g = new Graph<>();\r\n g.addNode(n1);\r\n g.addNode(n2);\r\n g.addNode(n3);\r\n g.addNode(n4);\r\n g.addNode(n5);\r\n\r\n //g.dfs(n1);\r\n\r\n System.out.println(route.existsPath(g, n1, n2));\r\n System.out.println(route.existsPath(g, n1, n5));\r\n System.out.println(route.existsPath(g, n5, n2));\r\n\r\n }", "title": "" }, { "docid": "8e75e97bdcf1c663b527953a4500871c", "score": "0.509635", "text": "public static void main(String[] args) throws FileNotFoundException {\n Points points = InputReader.getPoints(\"program2data.txt\");\n ClosestPairAlgorithm.runAlgorithm(points);\n }", "title": "" }, { "docid": "24b8d249e5e4f5cec4b53f2bb05174cc", "score": "0.50958705", "text": "public static void main(String[] args) {\n int[][] t1 = new int[][]{{1,3,5,9},{8,1,3,4},{5,0,6,1},{8,8,4,0}};\n System.out.println(getShortestRoute(t1, t1.length-1, t1[0].length-1));\n\t}", "title": "" }, { "docid": "ee278903d9f6ad3d2668e40263c93fa0", "score": "0.50892854", "text": "public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n String[] strings = br.readLine().split(\" \");\n int vertexCount = Integer.parseInt(strings[0]);\n int edgeCount = Integer.parseInt(strings[1]);\n int startNodeIndex = Integer.parseInt(strings[2]);\n\n int[][] adj = new int[vertexCount][vertexCount];\n\n for (int i = 0; i < edgeCount; i++) {\n strings = br.readLine().split(\" \");\n adj[Integer.parseInt(strings[0]) - 1][Integer.parseInt(strings[1]) - 1] = 1;\n adj[Integer.parseInt(strings[1]) - 1][Integer.parseInt(strings[0]) - 1] = 1;\n }\n boolean[] visit = new boolean[vertexCount];\n visit[startNodeIndex - 1] = true;\n System.out.print(startNodeIndex + \" \");\n DFS(adj, startNodeIndex - 1, visit);\n System.out.println();\n visit = new boolean[vertexCount];\n BFS(adj, startNodeIndex - 1, visit);\n }", "title": "" }, { "docid": "45d22e0a39a57697fb4e541be1cbb586", "score": "0.50890404", "text": "public static void main(String[] args) {\n\t\tCity[] cities = new City[0];\n\t\ttry {\n\t\t\tBufferedReader input = new BufferedReader(new FileReader(args[0]));\n\t\t\tint numberOfCities = Integer.parseInt(input.readLine());\n\t\t\tcities = new City[numberOfCities];\n\t\t\tfor (int i = 0 ; i < numberOfCities ; i++) {\n\t\t\t\tString line = input.readLine();\n\t\t\t\tString[] lineSplit = line.split(\" \");\n\t\t\t\tcities[i] = new City(lineSplit[0], Double.parseDouble(lineSplit[1]), Double.parseDouble(lineSplit[2]));\n\t\t\t}\n\t\t\tinput.close();\n\t\t} catch (IOException io) {\n\t\t\tio.printStackTrace();\n\t\t}\n\n\t\t// If there is only one city in the input, just output that city. This saves some bounds checking in the search proper\n\t\tif (cities.length == 1) {\n\t\t\tSystem.out.println(cities[0].name);\n\t\t}\n\t\telse {\t\t\n\t\t\tState result = simulatedAnnealing(cities, Integer.parseInt(args[1]));\n\n\t\t\t// Output formatted path\n\t\t\tfor (int i = 0 ; i < result.citiesInOrder.size() ; i++) {\n\t\t\t\tSystem.out.print(result.citiesInOrder.get(i).name);\n\t\t\t\tSystem.out.print(\":\");\n\t\t\t\tif (i == result.citiesInOrder.size() - 1) {\n\t\t\t\t\tSystem.out.println(result.citiesInOrder.get(0).name);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "8d02b769f51f34fd2ca0fa0cafee2726", "score": "0.50832236", "text": "public static void main(String[] args)\n\t{\n\t\tScanner mazeSolver = new Scanner(System.in);\n\t\tMaze mazeTemp = null;\n\t\tString fileName = \"\";\n\t\twhile(mazeTemp == null)\n\t\t{\n\t\t\tSystem.out.println(\"What is the name of your maze file?\");\n\t\t\tfileName = mazeSolver.nextLine();\n\t\t\tmazeTemp = Maze.loadMaze(fileName);\n\t\t}\n\t\tmaze = mazeTemp;\n\t\tSystem.out.println(maze.toString());\n\t\t\n\t\tboolean validPoints = false;\n\t\tPoint start = new Point(0,0);\n\t\tPoint end = new Point(0,0);\n\t\t\n\t\tdo {\n\t\t\ttry {\n\t\t\t\tSystem.out.println(\"What is the x value of your starting point?\");\n\t\t\t\tint startX = mazeSolver.nextInt();\n\t\t\t\tSystem.out.println(\"What is the y value of your starting point?\");\n\t\t\t\tint startY = mazeSolver.nextInt();\n\t\t\t\t\n\t\t\t\tstart = new Point(startX, startY);\n\t\t\t\t\n\t\t\t\tif(maze.inBounds(start) == true && maze.get(start) == maze.EMPTY)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"What is the x value of your ending point?\");\n\t\t\t\t\tint endX = mazeSolver.nextInt();\n\t\t\t\t\tSystem.out.println(\"What is the y value of your ending point?\");\n\t\t\t\t\tint endY = mazeSolver.nextInt();\n\t\t\t\t\t\n\t\t\t\t\tend = new Point(endX, endY);\n\t\t\t\t\t\n\t\t\t\t\tif(maze.inBounds(end) == true && maze.get(end) == maze.EMPTY)\n\t\t\t\t\t{\n\t\t\t\t\t\tvalidPoints = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (InputMismatchException e) {\n\t\t\t\tmazeSolver.nextLine();\n\t\t\t}\n\t\t} while(!validPoints);\n\t\t\n\t\tif(solveMaze(maze, start, end) == true)\n\t\t{\n\t\t\tSystem.out.println(\"The maze was solved!\");\n\t\t\tSystem.out.println(maze.toString());\n\t\t\tMaze.saveMaze(fileName + \".solved\", maze);\n\t\t}\n\t}", "title": "" }, { "docid": "708d9cc8b83fe2f6c37d92c7a8819a17", "score": "0.5082188", "text": "private static void printPath() throws EmptyStackException \n\t{\n\t\tSystem.out.println(\"A path from \" + startLocationArgs + \" to \" \n\t\t\t\t+ endLocationArgs + \" is:\");\n\t\tclearZeros(board2);\n\t\tfor(int k = path.size(); k > 0; k--) \n\t\t{\n\t\t\tString pos = path.pop();\n\t\t\tint row2 = Character.getNumericValue(pos.charAt(0));\n\t\t\tint col2 = Character.getNumericValue(pos.charAt(1));\n\t\t\tboard2[row2][col2] = Integer.toString(board[row2][col2]);\n\t\t}\n\t\tSystem.out.println(\" 0 1 2 3 4 5 6 7\");\n\t\tfor(int i = 0; i < board[0].length; i++) \n\t\t{\n\t\t\tSystem.out.println(\" ------------------------------- \" );\n\t\t\tfor(int j = 0; j < board[0].length; j++) \n\t\t\t{\n\t\t\t\tif(j == 0) System.out.print(i + \" | \" );\n\t\t\t\tSystem.out.print( board2[i][j] + \" | \" );\n\t\t\t}\n\t\t\tSystem.out.print( \"\\n\" );\n\t\t}\n\t\tSystem.out.println( \" ------------------------------- \" );\n\t}", "title": "" }, { "docid": "6083ddbadae2f45d0f2e3e10dcc8bb69", "score": "0.5068121", "text": "public static void main(String[] args) {\n\t\tSystem.out.println(Solution.solution(10, 85, 30));\n\t}", "title": "" }, { "docid": "c852f27451198b22de480f39123c33c5", "score": "0.5066892", "text": "@Test\r\n\tpublic void testCase1() throws IOException {\r\n\t\tgraphBuidler = new GraphBuilder();\r\n\t\tg = graphBuidler.buildGraph(this.getClass()\r\n\t\t\t\t.getResource(\"PlanMontalbert.kml\").getFile());\r\n\t\tIterativeDeepeningAStar algorithm = new IterativeDeepeningAStar();\r\n\t\t\r\n\t\t\t\t\r\n\r\n\t\t// Get the start and end of each node\r\n\t\tHashMap<Integer, Node> startOptions = new HashMap<Integer, Node>();\r\n\t\tHashMap<Integer, Node> endOptions = new HashMap<Integer, Node>();\r\n\r\n\t\tint i = 1;\r\n\t\tfor (Piste p : g.getPistes()) {\r\n\t\t\tSystem.out.println(\"Start of \" + p.getName() + \":\" + i);\r\n\t\t\tstartOptions.put(i, (Node)p.getNodes().toArray()[0]);\r\n\t\t\ti++;\r\n\t\t}\r\n\t\tSystem.out.println(\"Enter source node\");\r\n\r\n\t\t// open up standard input read in start node choice\r\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\r\n\t\tString input = br.readLine();\r\n\t\tNode source = startOptions.get(new Integer(input));\r\n\t\t// read in end node choice\r\n\r\n\t\ti = 1;\r\n\t\tfor (Piste p : g.getPistes()) {\r\n\t\t\tSystem.out.println(\"End of \" + p.getName() + \":\" + i);\r\n\t\t\tendOptions.put(i, (Node)p.getNodes().toArray()[p.getNodes().size() -1]);\r\n\t\t\ti++;\r\n\t\t}\r\n\r\n\t\tSystem.out.println(\"Enter destination node\");\r\n\t\tinput = br.readLine();\r\n\t\tInteger desinationI = new Integer(input);\r\n\t\t\r\n\t\tfor (Piste p : g.getPistes())\r\n\t\t{\r\n\t\t\tSystem.out.println(OutputKML.outputRoutes(p.getNodes()));\r\n\t\t}\r\n\r\n\t\tNode destination = endOptions.get(desinationI);\r\n\t\tPath p = algorithm.findPath(source,destination);\r\n\t\tSystem.out.println(\"Total Time taken = \" + algorithm.getDuration());\r\n\t\tSystem.out.println(p.printPath());\t\r\n\t}", "title": "" }, { "docid": "6d765a086afdb3036288c18d8f569b3a", "score": "0.5066774", "text": "public static void main(String[] args) {\n\t\tString pathToGraphFile = \"D:\\\\Documents\\\\stuff\\\\UWA\\\\2nd Year\\\\Sem 1\\\\CITS2200 - Data Structures and Algorithms\\\\2200Project\\\\lib\\\\test_graphs\\\\1024n16384e\"\r\n\t\t\t\t+ \".txt\";\r\n\t\t// Create an instance of your implementation.\r\n\t\tWikiGraphAnalyzer proj = new WikiGraphAnalyzer();\r\n\t\t// Load the graph into the project.\r\n\t\tloadGraph(proj, pathToGraphFile);\r\n\t\tfor(int i = 0; i < proj.getGraph().size(); i++) {\r\n\t\t\tfor(int j = 0; j < proj.getGraph().get(i).size(); j++) {\r\n\t\t\t\tSystem.out.print(proj.getGraph().get(i).get(j) + \" \");\r\n\t\t\t}\r\n\t\t\tSystem.out.print(\"\\n\");\r\n\t\t}\r\n\t\tSystem.out.print(\"\\n\");\r\n\r\n\t\tSystem.out.print(\"\\n\");\r\n\t\t//System.out.print(proj.getShortestPath(\"/wiki/Out-of-kilter_algorithm\", \"/wiki/Push%E2%80%93relabel_maximum_flow_algorithm\"));\r\n\t\tprintArray(proj.getCenters());\r\n\t\tSystem.out.println(proj.getGraph().size());\r\n\t\tSystem.out.println(proj.getCenters().length);\r\n\t}", "title": "" }, { "docid": "36e65d8df6b276ba3ee950aae3cf17f8", "score": "0.50597405", "text": "public void findQuickBathroom(ActionEvent event) {\n\n // Pathfind to nearest bathroom\n String startFloor = \"1\";\n\t\tclearPath();\n\t\tbreadcrumbs.clear();\n\t\tsetTheBreadyBoysBackToTheirGrayStateAsSoonAsPossibleSoThatItMakesSenseAgainPlease();\n clearPath();\n\n System.out.println(txtLocationStart.getText());\n System.out.println(txtLocationEnd.getText());\n\n String dimension;\n\n\n PathfinderUtil pathfinderUtil = new PathfinderUtil();\n\n //List<Node> nodeList = new ArrayList<>();\n //LinkedList<Node> pathList = new LinkedList<>();\n //nodeList = DataModelI.getInstance().retrieveNodes();\n Node startNode = KioskInfo.getMyLocation();\n Node bathroomNode = new Room(\"N1X3Y\", 1, 3, \"F1\", \"BUILD1\", \"REST\", \"Node 1, 3\", \"n1x3y\", 1, 0, 0);\n\n startFloor = startNode.getFloor();\n endFloor = bathroomNode.getFloor();\n currentFloor = startNode.getFloor();\n // update end name\n\n try {\n//\t\t\t\tpathList = Singleton.getInstance().pathfindingContext.getPath(startNode, endNode, new AStarStrategyI());\n pathList = optionPicker.pathfindingContext.getPath(startNode, bathroomNode, new ClosestStrategyI());\n\n } catch (PathNotFoundException e) {\n e.printStackTrace();\n }\n txtLocationEnd.setText(pathList.get(pathList.size()-1).getLongName());\n\n\n\t\tString dirFloorL2 = \"\";\n\t\tString dirFloorL1 = \"\";\n\t\tString dirFloor1 = \"\";\n\t\tString dirFloor2 = \"\";\n\t\tString dirFloor3 = \"\";\n\n\t\tfloorL2DirectionNodes.clear();\n\t\tfloorL1DirectionNodes.clear();\n\t\tfloor1DirectionNodes.clear();\n\t\tfloor2DirectionNodes.clear();\n\t\tfloor3DirectionNodes.clear();\n\n\t\tdirectionsL2.clear();\n\t\tdirectionsL1.clear();\n\t\tdirections1.clear();\n\t\tdirections2.clear();\n\t\tdirections3.clear();\n\n\t\tboolean useL2 = false;\n\t\tboolean useL1 = false;\n\t\tboolean use1 = false;\n\t\tboolean use2 = false;\n\t\tboolean use3 = false;\n\n\t\t\tfor (Node node: pathList) {\n\t\t\tString floorName = node.getFloor();\n\t\t\tif (floorName.equals(\"L2\")) {\n\t\t\t\tfloorL2DirectionNodes.add(node);\n\t\t\t}\n\t\t\tif (floorName.equals(\"L1\")) {\n\t\t\t\tfloorL1DirectionNodes.add(node);\n\t\t\t}\n\t\t\tif (floorName.equals(\"1\")) {\n\t\t\t\tfloor1DirectionNodes.add(node);\n\t\t\t}\n\t\t\tif (floorName.equals(\"2\")) {\n\t\t\t\tfloor2DirectionNodes.add(node);\n\t\t\t}\n\t\t\tif (floorName.equals(\"3\")) {\n\t\t\t\tfloor3DirectionNodes.add(node);\n\t\t\t}\n\t\t}\n\n\t\tdirectionsL2 = ((pathfinderUtil.angleToText(floorL2DirectionNodes)));\n\t\tdirectionsL1 = (pathfinderUtil.angleToText(floorL1DirectionNodes));\n\t\tdirections1 = (pathfinderUtil.angleToText(floor1DirectionNodes));\n\t\tdirections2 = (pathfinderUtil.angleToText(floor2DirectionNodes));\n\t\tdirections3 = (pathfinderUtil.angleToText(floor3DirectionNodes));\n\n\t\tif(directionsL2.size() > 1){\n\t\t\tuseL2 = true;\n\t\t}\n\t\tif(directionsL1.size() > 1){\n\t\t\tuseL1 = true;\n\t\t}\n\t\tif(directions1.size() > 1){\n\t\t\tuse1 = true;\n\t\t}\n\t\tif(directions2.size() > 1){\n\t\t\tuse2 = true;\n\t\t}\n\t\tif(directions3.size() > 1){\n\t\t\tuse3 = true;\n\t\t}\n\n\t\tfor (int i = 0; i < directionsL2.size(); i++){\n\t\t\tdirFloorL2 += directionsL2.get((i)) + \"\\n\";\n\t\t}\n\t\tfor (int i = 0; i < directionsL1.size(); i++){\n\t\t\tdirFloorL1 += directionsL1.get((i)) + \"\\n\";\n\t\t}\n\t\tfor (int i = 0; i < directions1.size(); i++){\n\t\t\tdirFloor1 += directions1.get((i)) + \"\\n\";\n\t\t}\n\t\tfor (int i = 0; i < directions2.size(); i++){\n\t\t\tdirFloor2 += directions2.get((i)) + \"\\n\";\n\t\t}\n\t\tfor (int i = 0; i < directions3.size(); i++) {\n\t\t\tdirFloor3 += directions3.get((i)) + \"\\n\";\n\t\t}\n\t\tTreeItem<String> floorDirectionL2 = new TreeItem<>(dirFloorL2);\n\t\tTreeItem<String> floorDirectionL1 = new TreeItem<>(dirFloorL1);\n\t\tTreeItem<String> floorDirection1 = new TreeItem<>(dirFloor1);\n\t\tTreeItem<String> floorDirection2 = new TreeItem<>(dirFloor2);\n\t\tTreeItem<String> floorDirection3 = new TreeItem<>(dirFloor3);\n\n\t\tfloorL2.getChildren().setAll(floorDirectionL2);\n\t\tfloorL1.getChildren().setAll(floorDirectionL1);\n\t\tfloor1.getChildren().setAll(floorDirection1);\n\t\tfloor2.getChildren().setAll(floorDirection2);\n\t\tfloor3.getChildren().setAll(floorDirection3);\n\n\t\t// calcDistance function now converts to feet\n\t\tdouble dist = CalcDistance.calcDistance(pathList) * OptionSingleton.getOptionPicker().feetPerPixel;\n\t\tetaDistance = String.format(\"TOTAL DISTANCE: %.1f ft ETA: %.1f s\", dist, dist / OptionSingleton.getOptionPicker().walkSpeedFt);\n\t\tTreeItem<String> root = new TreeItem<>(etaDistance);\n\n\t\troot.getChildren().setAll(floor3, floor2, floor1, floorL1, floorL2);\n\t\tcolDirections.setCellValueFactory(\n\t\t\t\t(TreeTableColumn.CellDataFeatures<String, String> param) -> new SimpleStringProperty(param.getValue().getValue()));\n\n\t\ttblDirections.setRoot(root);\n\n\t\ttblDirections.getRoot().setExpanded(true);\n\n\t\tif( useL2 == true){tblDirections.getTreeItem(5).setExpanded(true);}\n\t\tif( useL1 == true){tblDirections.getTreeItem(4).setExpanded(true);}\n\t\tif( use1 == true){tblDirections.getTreeItem(3).setExpanded(true);}\n\t\tif( use2 == true){tblDirections.getTreeItem(2).setExpanded(true);}\n\t\tif( use3 == true){tblDirections.getTreeItem(1).setExpanded(true);}\n\n\t\tdirections = FXCollections.observableArrayList(pathfinderUtil.angleToText((LinkedList) pathList));\n\n\t\tpaneDirections.setVisible(true);\n\n listForQR = (LinkedList) pathList;\n\n // Draw path code\n if (currentDimension.equals(\"3-D\")) {\n // use 3-D\n dimension = \"3-D\";\n printNodePath(pathList, startFloor, dimension);\n changeFloor(startFloor);\n } else {\n // use 2-D\n dimension = \"2-D\";\n printNodePath(pathList, startFloor, dimension);\n changeFloor(startFloor);\n }\n\n\t\t// Clear old fields\n\t\t// Show directions interface and hide pathfinding interface\n\t\tpaneDirections.setVisible(true);\n\n\t\t// Clean up Navigation Fields\n\t\tcomBuildingStart.setItems(buildings); // Set comboboxes for buildings to default lists\n\t\tcomBuildingStart.getSelectionModel().clearSelection(); // eventually set to default kiosk\n\t\tcomBuildingEnd.setItems(buildings);\n\t\tcomBuildingEnd.getSelectionModel().clearSelection(); // eventually set to default kiosk\n\t\t//comFloorStart.setDisable(true);\n\t\tcomFloorStart.getSelectionModel().clearSelection();\n\t\tcomFloorStart.setItems(empty);\n\t\t//comFloorEnd.setDisable(true);\n\t\tcomFloorEnd.getSelectionModel().clearSelection();\n\t\tcomFloorEnd.setItems(empty);\n\t\t//comTypeStart.setDisable(true);\n\t\tcomTypeStart.getSelectionModel().clearSelection();\n\t\tcomTypeStart.setItems(empty);\n\t\t//comTypeEnd.setDisable(true);\n\t\tcomTypeEnd.getSelectionModel().clearSelection();\n\t\tcomTypeEnd.setItems(empty);\n\n\t\t// Directions Update\n\t\tbreadBoy();\n\t\tanimatePath();\n\n\t}", "title": "" }, { "docid": "2e089f074d393f22537f77e1a6170e10", "score": "0.50470495", "text": "public static void main(String[] args) {\n ApplicationContext context = new AnnotationConfigApplicationContext(KnightMain.class);\n Knight knight = (Knight)context.getBean(Knight.class);\n knight.embarkOnQuest();\n }", "title": "" }, { "docid": "0bc1216fcc2c9975702a493642ac245e", "score": "0.50445706", "text": "public static void main(String[] args) {\n\t\tint[] nums = {};\n\t\tint target = 3;\n\t\tSystem.out.println(new TargetSum().findTargetSumWays(nums, target));\n\n\t}", "title": "" }, { "docid": "2493589b7bb75f6e1a5c37f3e5ba54a3", "score": "0.50400954", "text": "public void run() {\n\t\tString path = \"/..\";\r\n\t\tSystem.out.println(\"Simplified Path = \" + simplifyPath(path));\r\n\t}", "title": "" }, { "docid": "ee6d08378eef90182e7519eccfb28a17", "score": "0.5031667", "text": "public static void main(String[] args) {\n\t\t\n\t\tTreeGraph g = new TreeGraph(GeoJsonParser.parseTreeData());\n\t\t\n\t\tswitch(Integer.parseInt(args[0])) {\n\t\tcase 1: \n\t\t\t/*\n\t\t\t * Returns the types of trees in a 100 meter radius of given lat/long\n\t\t\t */\n\t\t\tHashMap<Species, Integer> question1 = g.getTreesAroundMe(Double.parseDouble(args[1]), \n\t\t\t\t\tDouble.parseDouble(args[2]), 100);\n\t\t\tSystem.out.println(question1.toString());\n\t\t\treturn;\n\t\t\t\n\t\tcase 2:\n\t\t\t/*\n\t\t\t * Returns closest tree of a given species to the given lat/long\n\t\t\t */\n\t\t\tTree question2 = g.findClosestTree(Double.parseDouble(args[1]), Double.parseDouble(args[2]),\n\t\t\t\t\tSpecies.parseSpecies(args[3]));\n\t\t\tSystem.out.print(question2.toString());\n\t\t\treturn;\n\t\t\t\n\t\tcase 3:\n\t\t\t/*\n\t\t\t * Returns route through all trees starting from the tree closest to given lat/long.\n\t\t\t * Route is in the form of a graph\n\t\t\t */\n\t\t\tGraph question3 = g.hamiltonianPath(g.findClosestTree(Double.parseDouble(args[1]),\n\t\t\t\t\tDouble.parseDouble(args[2]), null));\n\t\t\tg.draw(question3);\n\t\t\treturn;\n\t\tcase 4:\n\t\t\t/*\n\t\t\t * Returns a route recommendation based on the number of trees of a species\n\t\t\t * you want to see you want to see. Starts the route with the closest tree near lat/lng.\n\t\t\t * args[1] = lat\n\t\t\t * args[2] = lng\n\t\t\t * args[3] = species\n\t\t\t * args[4] = number of trees of this species you want on a route\n\t\t\t */\n\t\t\tTree closestTreeOfSpecies = g.findClosestTree(Double.parseDouble(args[1]), Double.parseDouble(args[2]),\n\t\t\t\t\tSpecies.parseSpecies(args[3]));\n\t\t\tTreeGraph route = g.getRouteReccomendation(closestTreeOfSpecies, Species.parseSpecies(args[3]), Integer.parseInt(args[4]));\n\t\t\tg.draw(route.graph);\n\t\t\treturn;\n\t\tcase 5:\n\t\t\t/*\n\t\t\t * returns a route recommendation based on a given lat/lng\n\t\t\t * by finding trees in your local area and finding the species with least number of tree\n\t\t\t * then recommends a route with that species and an increased amount\n\t\t\t */\n\t\t\tHashMap<Species, Integer> treesAroundMe = g.getTreesAroundMe(Double.parseDouble(args[1]), \n\t\t\t\t\tDouble.parseDouble(args[2]), 500);\n\t\t\tint lowestCount = Integer.MAX_VALUE;\n\t\t\tSpecies lowestSpecies = Species.GINKGO;\n\t\t\tfor(Species s : Species.values()) {\n\t\t\t\tif(treesAroundMe.containsKey(s)) {\n\t\t\t\t\tint val = treesAroundMe.get(s);\n\t\t\t\t\tif(lowestCount > val) {\n\t\t\t\t\t\tlowestCount = val;\n\t\t\t\t\t\tlowestSpecies = s;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tSystem.out.println(\"Recommending a route to see more: \" + lowestSpecies);\n\t\t\tTree closestTree = g.findClosestTree(Double.parseDouble(args[1]), Double.parseDouble(args[2]),\n\t\t\t\t\tlowestSpecies);\n\t\t\tTreeGraph route2 = g.getRouteReccomendation(closestTree, lowestSpecies, lowestCount + 10);\n\t\t\tg.draw(route2.graph);\n\t\t\treturn;\n\t\t}\n\t}", "title": "" }, { "docid": "73e9110683caf4dc9289078b37335c89", "score": "0.50279164", "text": "public static void testBoardWithSnakesAndLadders() {\r\n\t\tint N, M;\r\n\t\tScanner scn = new Scanner(System.in);\r\n\r\n\t\tSystem.out.println(\"Please enter the final number on board \");\r\n\t\tN = scn.nextInt();\r\n\r\n\t\tSystem.out.println(\"Please enter the multiple for making ladders \");\r\n\t\tM = scn.nextInt();\r\n\r\n\t\tArrayList<Integer> map = new ArrayList<>();\r\n\t\tArrayList<Integer> reverse = new ArrayList<>();\r\n\r\n\t\tfor (int i = 1; true; i++) {\r\n\t\t\tint begin = 0 + (M * i);\r\n\t\t\tint end = N - (M * i);\r\n\r\n\t\t\tif (begin >= end) {\r\n\t\t\t\tbreak;\r\n\t\t\t} else {\r\n\t\t\t\tif (i % 2 == 1) { // ladder\r\n\t\t\t\t\tmap.add(begin);\r\n\t\t\t\t\treverse.add(end);\r\n\t\t\t\t} else { // snake\r\n\t\t\t\t\tmap.add(end);\r\n\t\t\t\t\treverse.add(begin);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tArrayList<Integer> diceTurns = new ArrayList<>();\r\n\r\n\t\tSystem.out.println(\"Please enter the number of dice turns \");\r\n\t\tint numTurns = scn.nextInt();\r\n\r\n\t\tfor (int i = 1; i <= numTurns; i++) {\r\n\t\t\tSystem.out.println(\"Enter dice turn \");\r\n\t\t\tdiceTurns.add(scn.nextInt());\r\n\t\t}\r\n\r\n\t\tSystem.out.println(isValidPath(0, N, map, reverse, diceTurns, 0));\r\n\t}", "title": "" }, { "docid": "a0689fd3fa6cc3a0d1cbe46310aa230a", "score": "0.50253564", "text": "public static void main(String[] args) {\r\n\t\t\r\n\t\tint[] perm = {0, 19, 3, 11, 6, 4, 18, 13, 12, 2, 1, 15, 14, 16, 5, 7, 17, 8, 9, 10};\r\n\t\t\r\n\t\t\r\n\n\t\tGraph g = new Graph(6);\r\n\t\t\r\n\t\tg.addEdge(0, 1, 1);\r\n\t\tg.addEdge(0, 2, 10);\r\n\t\tg.addEdge(1, 3, 1);\r\n\t\tg.addEdge(2, 3, 5);\r\n\t\tg.addEdge(3, 4, 1);\r\n\t\tg.addEdge(3, 5, 5);\r\n\t\tg.addEdge(5, 4, 3);\r\n\t\t\r\n\t\t\r\n\t\tGraph h = GraphFunctions.createGraph(20, 50, true);\r\n\t\t\r\n\t\tGraphFunctions.printGraph(h);\r\n\t\tFloydWarshall f = new FloydWarshall(h);\r\n\t\tf.shortestPath();\r\n\t\t\r\n\t}", "title": "" }, { "docid": "9ccdc4b4bae264ab889ede74cf53afb1", "score": "0.5018671", "text": "public static void main(String[] args) {\n\r\n\t\tnew baek_1912().solution();\r\n\t}", "title": "" }, { "docid": "e10c0d8789bbdaff8a6057fc416197cf", "score": "0.5010643", "text": "public static void main(String[] args) {\n WordNet w = new WordNet(args[0], args[1]);\n int dist = w.distance(\"Black_Plague\", \"black_marlin\");\n StdOut.printf(\"dist = %d\\n\", dist);\n dist = w.distance(\"American_water_spaniel\", \"histology\");\n StdOut.printf(\"dist = %d\\n\", dist);\n dist = w.distance(\"Brown_Swiss\", \"barrel_roll\");\n StdOut.printf(\"dist = %d\\n\", dist);\n String ancestor = w.sap(\"individual\", \"edible_fruit\");\n StdOut.printf(\"ancestor = %s\\n\", ancestor);\n }", "title": "" }, { "docid": "6b90c36611299b985d6d48852408373d", "score": "0.5003626", "text": "public static void main(String[] args) throws Exception {\n Scanner scn = new Scanner(System.in);\n int n = scn.nextInt();\n int arr[] = new int[n];\n for(int i=0;i<n;i++)\n {\n arr[i] = scn.nextInt();\n }\n \n int paths = minSteps(arr , 0 , new int[n+1] );\n System.out.println(paths);\n }", "title": "" }, { "docid": "debb385d1e399e4368a6dc213b2dde14", "score": "0.49814686", "text": "public static void main (String [] args) throws Exception\n {\n Scanner input = new Scanner(new File(\"testcase.txt\"));\n input.nextLine();\n\n List<String> initialPositions = new ArrayList<>();\n List<String> paths = new ArrayList<>();\n\n while (input.hasNextLine())\n {\n initialPositions.add(input.nextLine());\n paths.add(input.nextLine());\n }\n\n input.close();\n\n for (int i = 0; i < paths.size(); i++)\n {\n String str = initialPositions.get(i);\n\n getFinalPosition(str.charAt(0) - 48, str.charAt(2) - 48, str.charAt(4), paths.get(i));\n }\n\n }", "title": "" }, { "docid": "c27c7cbdd0256fc2e19a08274e0c27b4", "score": "0.4962895", "text": "public static void main(String[] args) {\n\n new WordLadder2().findLadders(\"qa\", \"sq\",\n Arrays.asList(\"si\",\"go\",\"se\",\"cm\",\"so\",\"ph\",\"mt\",\"db\",\"mb\",\"sb\",\"kr\",\"ln\",\"tm\",\"le\",\"av\",\"sm\",\"ar\",\"ci\",\"ca\",\"br\",\"ti\",\"ba\",\"to\",\"ra\",\"fa\",\"yo\",\"ow\",\"sn\",\"ya\",\"cr\",\"po\",\"fe\",\"ho\",\"ma\",\"re\",\"or\",\"rn\",\"au\",\"ur\",\"rh\",\"sr\",\"tc\",\"lt\",\"lo\",\"as\",\"fr\",\"nb\",\"yb\",\"if\",\"pb\",\"ge\",\"th\",\"pm\",\"rb\",\"sh\",\"co\",\"ga\",\"li\",\"ha\",\"hz\",\"no\",\"bi\",\"di\",\"hi\",\"qa\",\"pi\",\"os\",\"uh\",\"wm\",\"an\",\"me\",\"mo\",\"na\",\"la\",\"st\",\"er\",\"sc\",\"ne\",\"mn\",\"mi\",\"am\",\"ex\",\"pt\",\"io\",\"be\",\"fm\",\"ta\",\"tb\",\"ni\",\"mr\",\"pa\",\"he\",\"lr\",\"sq\",\"ye\"));\n }", "title": "" }, { "docid": "6f3b15edca1144bb72a86d079b7ae96b", "score": "0.4950766", "text": "public static void main(String[] args) {\n\t\tRecursion recursion = new Recursion();\n\t\tFile file = new File(\"D:\\\\javawork\\\\5.15\");\n\t\trecursion.show(file);\n\t}", "title": "" }, { "docid": "ac1f0b370c98d4fb69c4084e4dceac90", "score": "0.4948274", "text": "public static void main(String[] args) {\n\t\t\n\t\tint [][] arr = {{2,-2,-3},{1,0,2},{-1,-1,3}};\n\t\t\n\t\tfindSaddlePoint(arr);\n\n\t}", "title": "" }, { "docid": "520dfa3541d5b953efe2de604f3c1da0", "score": "0.49478188", "text": "public static void main(String[] args) {\r\n\r\n\t\t// **** define graph ****\r\n\t\tint graph[][] = new int[][] {\r\n\t\t\t\t// TO: 0 1 2 3 4 5 6 7 9 FROM:\r\n\t\t\t\t{ 0, 4, 0, 0, 0, 0, 0, 8, 0 }, // 0\r\n\t\t\t\t{ 4, 0, 8, 0, 0, 0, 0, 11, 0 }, // 1\r\n\t\t\t\t{ 0, 8, 0, 7, 0, 4, 0, 0, 2 }, // 2\r\n\t\t\t\t{ 0, 0, 7, 0, 9, 14, 0, 0, 0 }, // 3\r\n\t\t\t\t{ 0, 0, 0, 9, 0, 10, 0, 0, 0 }, // 4\r\n\t\t\t\t{ 0, 0, 4, 14, 10, 0, 2, 0, 0 }, // 5\r\n\t\t\t\t{ 0, 0, 0, 0, 0, 2, 0, 1, 6 }, // 6\r\n\t\t\t\t{ 8, 11, 0, 0, 0, 0, 1, 0, 7 }, // 7\r\n\t\t\t\t{ 0, 0, 2, 0, 0, 0, 6, 7, 0 } // 8\r\n\t\t};\r\n\r\n\t\t// **** compute shortest distance from specified node to all others ****\r\n\t\tdijkstra(graph, 0);\r\n\t}", "title": "" }, { "docid": "deb6fea12627d7e209124b80374f877a", "score": "0.49475095", "text": "public static void main(String[] args) {\n\t\tif (args.length == 2){\r\n\t\t\t\r\n\t\t\t//Set north and south as negative\r\n\t\t\tint north = -1, south = -1;\r\n\t\t\t\r\n\t\t\t//Loop through arguments to find N and S\r\n\t\t\tfor(int i = 0; i < 2; i++) {\r\n\t\t\t\tString[] cur = args[i].split(\"=\");\r\n\t\t\t\t\r\n\t\t\t\tif(cur[0].contentEquals(\"N\")) {\r\n\t\t\t\t\tnorth = Integer.parseInt(cur[1]);\r\n\t\t\t\t}\r\n\t\t\t\tif(cur[0].contentEquals(\"S\")) {\r\n\t\t\t\t\tsouth = Integer.parseInt(cur[1]);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//Make sure N and S are positive or 0\r\n\t\t\tif(north >= 0 && south >= 0) {\r\n\t\t\t\tSystem.out.println(\"Assignment 2, Problem A - North: \" + north + \" / South: \" + south + \"\\n\");\r\n\r\n\t\t\t\t//Start farmers crossing bridge\r\n\t\t\t\tbegin(north, south);\r\n\t\t\t\t\r\n\t\t\t}else {\r\n\t\t\t\tSystem.out.println(\"North and South Data is Invalid!\");\r\n\t\t\t}\r\n\t\t}else {\r\n\t\t\tSystem.out.println(\"Wrong Parameters!\\nNeeds N=x S=x\");\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "a85bb3ccb8f1d852f878c3927e8da4fa", "score": "0.4945673", "text": "public static void main(String[] args) {\n\t\tString s = new String(\"leetcode\");\n\t\tSet<String> dict = new HashSet<String>();\n\t\tdict.add(\"leet\");\n\t\tdict.add(\"code\");\n\t\tSolution solu = new Solution();\n\t\tSystem.out.println(solu.wordBreak(s, dict));\n\t}", "title": "" }, { "docid": "6d73dd641e075d657228e0dbff99cefe", "score": "0.49410075", "text": "public static void main(String[] args) throws Exception {\n\t\tString output_path = args[1];\n\n\t\tString active_set_addr = args[1] + \"active/\";\n\t\tPath active_set_path = new Path(active_set_addr);\n\n\t\tString inactive_set_addr = args[1] + \"inactive/\";\n\t\tPath inactive_set_path = new Path(inactive_set_addr);\n\n\t\tString active_update_addr = args[1] + \"active_update/\";\n\t\tPath active_update_path = new Path(active_update_addr);\n\n\t\tString inactive_update_addr = args[1] + \"inactive_update/\";\n\t\tPath inactive_update_path = new Path(inactive_update_addr);\n\n\t\tString shrink_step_one_addr = args[1] + \"shrink_step_one/\";\n\t\tPath shrink_step_one_path = new Path(shrink_step_one_addr);\n\n\t\tString select_working_set_step_one_addr = args[1]\n\t\t\t\t+ \"select_working_set_step_one/\";\n\t\tPath select_working_set_step_one_path = new Path(\n\t\t\t\tselect_working_set_step_one_addr);\n\n\t\tString select_working_set_step_two_addr = output_path\n\t\t\t\t+ \"select_working_set_step_two/\";\n\t\tPath select_working_set_step_two_path = new Path(\n\t\t\t\tselect_working_set_step_two_addr);\n\n\t\tString shrink_step_two_addr = output_path + \"shrink_step_two/\";\n\t\tPath shrink_step_two_path = new Path(shrink_step_two_addr);\n\n\t\tFileSystem fs;\n\n\t\tint kernel_type = 2;\n\t\tConfiguration conf = new Configuration();\n\t\tFileSystem hdfs = FileSystem.get(conf);\n\t\thdfs.delete(new Path(output_path));\n\n\t\tConfiguration initialize_config = new Configuration();\n\t\tinitialize_config.set(\"kernel_type\", Integer.toString(kernel_type));\n\t\tinitialize_config.set(\"coef0\", Double.toString(coef0));\n\t\tinitialize_config.set(\"degree\", Integer.toString(degree));\n\t\tinitialize_config.set(\"gamma\", Double.toString(gamma));\n\t\tinitialize_config.set(\"C\", Double.toString(C));\n\t\tJob initialize = new Job(initialize_config);\n\t\tinitialize.setJobName(\"Initialize\");\n\t\tFileInputFormat.addInputPath(initialize, new Path(args[0]));\n\t\tFileOutputFormat.setOutputPath(initialize, active_set_path);\n\t\tinitialize.setJarByClass(Svm.class);\n\t\tinitialize.setMapperClass(InitializeMapper.class);\n\t\tinitialize.waitForCompletion(true);\n\t\tint counter=1000;\n\t\tint max_iter = 10000000;\n\t\tint iter = 0;\n\t\tboolean unshrink = false;\n\t\twhile (iter < max_iter) {\n\t\t\tif (--counter == 0) {\n\t\t\t\tcounter = 1000;\n\t\t\t\tconf = new Configuration();\n\t\t\t\thdfs = FileSystem.get(conf);\n\t\t\t\thdfs.delete(shrink_step_one_path);\n\n\t\t\t\tJob shrink_step_one = new Job();\n\t\t\t\tshrink_step_one.setJobName(\"Shrink Step One\");\n\t\t\t\tFileInputFormat.addInputPath(shrink_step_one, active_set_path);\n\t\t\t\tFileOutputFormat.setOutputPath(shrink_step_one,\n\t\t\t\t\t\tshrink_step_one_path);\n\t\t\t\tshrink_step_one.setJarByClass(Svm.class);\n\t\t\t\tshrink_step_one.setMapperClass(ShrinkMapper.class);\n\t\t\t\tshrink_step_one.setNumReduceTasks(1);\n\t\t\t\tshrink_step_one.setReducerClass(ShrinkReducer.class);\n\t\t\t\tshrink_step_one.waitForCompletion(true);\n\n\t\t\t\tString shrink_result_addr = shrink_step_one_addr\n\t\t\t\t\t\t+ \"/part-r-00000\";\n\t\t\t\tPath shrink_one_result_path = new Path(shrink_result_addr);\n\t\t\t\tfs = FileSystem.get(URI.create(shrink_result_addr), conf);\n\t\t\t\tdouble shrink_Gmax1 = 0, shrink_Gmax2 = 0;\n\t\t\t\tString shrink_one_result = null;\n\t\t\t\tif (fs.exists(shrink_one_result_path)) {\n\t\t\t\t\tFSDataInputStream is = fs.open(shrink_one_result_path);\n\t\t\t\t\tFileStatus stat = fs.getFileStatus(shrink_one_result_path);\n\t\t\t\t\tbyte[] buffer = new byte[Integer.parseInt(String\n\t\t\t\t\t\t\t.valueOf(stat.getLen()))];\n\t\t\t\t\tis.readFully(0, buffer);\n\t\t\t\t\tis.close();\n\t\t\t\t\tfs.close();\n\t\t\t\t\tshrink_one_result = new String(buffer);\n\t\t\t\t} else {\n\t\t\t\t\tthrow new Exception(\"the file is not found .\");\n\t\t\t\t}\n\t\t\t\tString[] shrink_split = shrink_one_result.split(\"\\t\");\n\t\t\t\tshrink_Gmax1 = Double.parseDouble(shrink_split[0]);\n\t\t\t\tshrink_Gmax2 = Double.parseDouble(shrink_split[1]);\n\n\t\t\t\tconf = new Configuration();\n\t\t\t\thdfs = FileSystem.get(conf);\n\t\t\t\thdfs.delete(shrink_step_two_path);\n\t\t\t\tConfiguration shrink_two_config = new Configuration();\n\t\t\t\tshrink_two_config.set(\"Gmax1\", Double.toString(shrink_Gmax1));\n\t\t\t\tshrink_two_config.set(\"Gmax2\", Double.toString(shrink_Gmax2));\n\t\t\t\tshrink_two_config.set(\"iter\", Integer.toString(iter));\n\t\t\t\tJob shrink_step_two = new Job(shrink_two_config);\n\t\t\t\tshrink_step_two.setJobName(\"Shrink Step Two\");\n\t\t\t\tFileInputFormat.addInputPath(shrink_step_two, active_set_path);\n\t\t\t\tFileOutputFormat.setOutputPath(shrink_step_two,\n\t\t\t\t\t\tshrink_step_two_path);\n\t\t\t\tMultipleOutputs.addNamedOutput(shrink_step_two, \"MOSText\",\n\t\t\t\t\t\tTextOutputFormat.class, LongWritable.class, Text.class);\n\t\t\t\tshrink_step_two.setJarByClass(Svm.class);\n\t\t\t\tshrink_step_two.setMapperClass(ShrinkTwoMapper.class);\n\t\t\t\tshrink_step_two.setNumReduceTasks(1);\n\t\t\t\tshrink_step_two.waitForCompletion(true);\n\t\t\t\tconf = new Configuration();\n\t\t\t\thdfs = FileSystem.get(conf);\n\t\t\t\tif (hdfs.exists(active_set_path)) {\n\t\t\t\t\thdfs.delete(active_set_path);\n\t\t\t\t\thdfs.rename(new Path(shrink_step_two + \"active_\" + iter\n\t\t\t\t\t\t\t+ \"/\"), active_set_path);\n\t\t\t\t}\n\t\t\t\thdfs.rename(\n\t\t\t\t\t\tnew Path(shrink_step_two + \"inactive_\" + iter + \"/\"),\n\t\t\t\t\t\tinactive_set_path);\n\n\t\t\t}\n\t\t\t// if(unshrink == false && Gmax1 + Gmax2 <= eps*10)\n\t\t\t// {\n\t\t\t// unshrink = true;\n\t\t\t// reconstruct_gradient();\n\t\t\t// System.out.println(\"shrink reconstrcut gradient\");\n\t\t\t// active_size = l;//move inactive to active\n\t\t\t// }\n\n\t\t\tconf = new Configuration();\n\t\t\thdfs = FileSystem.get(conf);\n\t\t\thdfs.delete(select_working_set_step_one_path);\n\t\t\tJob selectWorkingSet_step_one = new Job();\n\t\t\tselectWorkingSet_step_one.setJobName(\"Select Workingset Step One\");\n\t\t\tFileInputFormat.addInputPath(selectWorkingSet_step_one,\n\t\t\t\t\tactive_set_path);\n\t\t\tFileOutputFormat.setOutputPath(selectWorkingSet_step_one,\n\t\t\t\t\tselect_working_set_step_one_path);\n\t\t\tselectWorkingSet_step_one.setJarByClass(Svm.class);\n\t\t\tselectWorkingSet_step_one\n\t\t\t\t\t.setMapperClass(SelectWorkingSetMapper.class);\n\t\t\tselectWorkingSet_step_one.setNumReduceTasks(1);\n\t\t\tselectWorkingSet_step_one\n\t\t\t\t\t.setReducerClass(SelectWorkingSetReducer.class);\n\t\t\tselectWorkingSet_step_one.waitForCompletion(true);\n\n\t\t\tString i_data = null;\n\t\t\tdouble Gmax;\n\t\t\tPath select_working_set_one_file_path = new Path(\n\t\t\t\t\tselect_working_set_step_one_addr + \"/part-r-00000\");\n\t\t\tfs = FileSystem.get(URI.create(select_working_set_step_one_addr),\n\t\t\t\t\tconf);\n\t\t\tif (fs.exists(select_working_set_one_file_path)) {\n\t\t\t\tFSDataInputStream is = fs\n\t\t\t\t\t\t.open(select_working_set_one_file_path);\n\t\t\t\tFileStatus stat = fs\n\t\t\t\t\t\t.getFileStatus(select_working_set_one_file_path);\n\t\t\t\tbyte[] buffer = new byte[Integer.parseInt(String.valueOf(stat\n\t\t\t\t\t\t.getLen()))];\n\t\t\t\tis.readFully(0, buffer);\n\t\t\t\tis.close();\n\t\t\t\tfs.close();\n\t\t\t\tString select_i_result = new String(buffer);\n\t\t\t\tString[] select_split = select_i_result.split(\"\\t\");\n\t\t\t\ti_data = select_split[1].trim();\n\t\t\t\tGmax = Double.parseDouble(select_split[0]);\n\t\t\t} else {\n\t\t\t\tthrow new Exception(\"the file is not found .\");\n\t\t\t}\n\n\t\t\tconf = new Configuration();\n\t\t\thdfs = FileSystem.get(conf);\n\t\t\thdfs.delete(select_working_set_step_two_path);\n\t\t\tConfiguration select_working_set_step_two_config = new Configuration();\n\t\t\tselect_working_set_step_two_config.set(\"data\", i_data);\n\t\t\tselect_working_set_step_two_config.set(\"Gmax\",\n\t\t\t\t\tDouble.toString(Gmax));\n\t\t\tJob select_working_set_step_two = new Job(\n\t\t\t\t\tselect_working_set_step_two_config);\n\t\t\tselect_working_set_step_two.setJobName(\"Select Working Set Step Two\");\n\t\t\tFileInputFormat.addInputPath(select_working_set_step_two,\n\t\t\t\t\tactive_set_path);\n\t\t\tFileOutputFormat.setOutputPath(select_working_set_step_two,\n\t\t\t\t\tselect_working_set_step_two_path);\n\t\t\tselect_working_set_step_two.setJarByClass(Svm.class);\n\t\t\tselect_working_set_step_two\n\t\t\t\t\t.setMapperClass(SelectWorkingSetTwoMapper.class);\n\t\t\tselect_working_set_step_two.setNumReduceTasks(1);\n\t\t\tselect_working_set_step_two\n\t\t\t\t\t.setReducerClass(SelectWorkingSetTwoReducer.class);\n\t\t\tselect_working_set_step_two.waitForCompletion(true);\n\n\t\t\tPath select_working_set_two_file_path = new Path(\n\t\t\t\t\tselect_working_set_step_two_addr + \"/part-r-00000\");\n\t\t\tfs = FileSystem.get(URI.create(select_working_set_step_two_addr),\n\t\t\t\t\tconf);\n\t\t\tString j_data = null;\n\t\t\tif (fs.exists(select_working_set_two_file_path)) {\n\t\t\t\tFSDataInputStream is = fs\n\t\t\t\t\t\t.open(select_working_set_two_file_path);\n\t\t\t\tFileStatus stat = fs\n\t\t\t\t\t\t.getFileStatus(select_working_set_two_file_path);\n\t\t\t\tbyte[] buffer = new byte[Integer.parseInt(String.valueOf(stat\n\t\t\t\t\t\t.getLen()))];\n\t\t\t\tis.readFully(0, buffer);\n\t\t\t\tis.close();\n\t\t\t\tfs.close();\n\t\t\t\tString select_j_result = new String(buffer);\n\t\t\t\tString[] select_two_split = select_j_result.split(\"\\t\");\n\t\t\t\tj_data = select_two_split[1].trim();\n\t\t\t}\n\t\t\tSvmData i_svmdata = new SvmData(i_data.split(\" \"));\n\t\t\tSvmData j_svmdata = new SvmData(j_data.split(\" \"));\n\t\t\tdouble original_i_alpha = i_svmdata.alpha;\n\t\t\tdouble original_j_alpha = j_svmdata.alpha;\n\t\t\tupdate_alpha(i_svmdata, j_svmdata);\n\t\t\tdouble delta_alpha_i = i_svmdata.alpha - original_i_alpha;\n\t\t\tdouble delta_alpha_j = j_svmdata.alpha - original_j_alpha;\n\n\t\t\tConfiguration update_config = new Configuration();\n\t\t\tupdate_config.set(\"i\", i_svmdata.toString());\n\t\t\tupdate_config.set(\"j\", j_svmdata.toString());\n\t\t\tupdate_config.set(\"delta_alpha_i\", Double.toString(delta_alpha_i));\n\t\t\tupdate_config.set(\"delta_alpha_j\", Double.toString(delta_alpha_j));\n\t\t\tupdate_config.set(\"kernel_type\", Integer.toString(kernel_type));\n\t\t\tupdate_config.set(\"coef0\", Double.toString(coef0));\n\t\t\tupdate_config.set(\"degree\", Integer.toString(degree));\n\t\t\tupdate_config.set(\"gamma\", Double.toString(gamma));\n\t\t\tupdate_config.set(\"C\", Double.toString(C));\n\n\t\t\tconf = new Configuration();\n\t\t\thdfs = FileSystem.get(conf);\n\t\t\tif (hdfs.exists(new Path(active_set_addr))) {\n\t\t\t\tJob update_active = new Job(update_config);\n\t\t\t\tupdate_active.setJobName(\"Update Active Set\");\n\t\t\t\tFileInputFormat.addInputPath(update_active, active_set_path);\n\t\t\t\tFileOutputFormat.setOutputPath(update_active,\n\t\t\t\t\t\tactive_update_path);\n\t\t\t\tupdate_active.setJarByClass(Svm.class);\n\t\t\t\tupdate_active.setMapperClass(UpdateMapper.class);\n\t\t\t\tupdate_active.waitForCompletion(true);\n\t\t\t\thdfs.delete(active_set_path);\n\t\t\t\thdfs.rename(active_update_path, active_set_path);\n\t\t\t}\n\n\t\t\tconf = new Configuration();\n\t\t\thdfs = FileSystem.get(conf);\n\t\t\tif (hdfs.exists(new Path(inactive_set_addr))) {\n\t\t\t\tJob update_inactive = new Job(update_config);\n\t\t\t\tupdate_inactive.setJobName(\"Update Inactive Set\");\n\t\t\t\tFileInputFormat\n\t\t\t\t\t\t.addInputPath(update_inactive, inactive_set_path);\n\t\t\t\tFileOutputFormat.setOutputPath(update_inactive,\n\t\t\t\t\t\tinactive_update_path);\n\t\t\t\tupdate_inactive.setJarByClass(Svm.class);\n\t\t\t\tupdate_inactive.setMapperClass(UpdateMapper.class);\n\t\t\t\tupdate_inactive.waitForCompletion(true);\n\t\t\t\thdfs.delete(inactive_set_path);\n\t\t\t\thdfs.rename(inactive_update_path, inactive_set_path);\n\t\t\t}\n\t\t\titer++;\n\t\t}\n\t\t// }\n\n\t}", "title": "" }, { "docid": "5391de87c1501c629d06f21d4382bff8", "score": "0.49381074", "text": "public static void main(String[] args) {\n System.out.println(\"Search12D problem STARTS\");\n Search12D m = new Search12D() ;\n System.out.println(\"All Search12D tests passed. You are genius\");\n System.out.println(\"Search12D problem ENDS\");\n }", "title": "" }, { "docid": "bd4410aef59a15eb9fd113a375e071f5", "score": "0.49379465", "text": "public static void main(String[] args) throws FileNotFoundException {\n\t\tScanner in = new Scanner(System.in);\n\t\t\n\t\tint problem = in.nextInt();\n\t\t\n\t\tfor(int number = 0;number <problem;number++){\n\t\t\t\n//\t\t\tSystem.out.println(\" Start >>>>>> \"+(number+1));\n\t\t\t\n\t\t\tint line = in.nextInt();\n\t\t\t\n\t\t\tarray = new int[line][line];\n\t\t\tvisited = new int[line][line];\n\t\t\t\n\t\t\t\n\t\t\tfor(int x=0;x<line;x++){\n\t\t\t\tfor(int y=0;y<line;y++){\n\t\t\t\t\t\n\t\t\t\t\tarray[x][y] = in.nextInt();\n\t\t\t\t\tvisited[x][y] = -1;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// Finished inserting input data\n\t\t\t\n\t\t\tint x1 = 0;\n\t\t\tint y1 = 0;\n\t\t\t\n\t\t\tint result = 0;\n\t\t\t\n\t\t\tresult = findExit(x1,y1,line);\n\t\t\t\n\t\t\tif(result >= 1){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t\n\t\t\t\n\t\t\t\n//\t\t\tfor(int x=0;x<line;x++){\n//\t\t\t\tfor(int y=0;y<line;y++){\n//\t\t\t\t\t\n//\t\t\t\t\tSystem.out.printf(\"%d \", visited[x][y]);\n//\t\t\t\t}\n//\t\t\t\tSystem.out.println(\"\");\n//\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "1e784d415cf64a812186270913d2cbc2", "score": "0.4935418", "text": "public void drawPath(ActionEvent event) {\n\t\ttry {\n\n\n\t\t\tSystem.out.println(txtLocationStart.getText());\n\t\t\tSystem.out.println(txtLocationEnd.getText());\n\n\t\t\tString startName = txtLocationStart.getText();\n\t\t\tString endName = txtLocationEnd.getText();\n\n\t\t\tString dimension;\n\n\t\t\tif (startName.equals(\"\") || endName.equals(\"\")) {\n\t\t\t\tSystem.out.println(\"Pick a start and end location!\");\n\t\t\t} else {\n\n\t\t\t\tPathfinderUtil pathfinderUtil = new PathfinderUtil();\n\n\t\t\t\t//List<Node> nodeList = new ArrayList<>();\n\t\t\t\t//LinkedList<Node> pathList = new LinkedList<>();\n\t\t\t\t//nodeList = DataModelI.getInstance().retrieveNodes();\n\t\t\t\tNode startNode = DataModelI.getInstance().getNodeByLongName(startName);\n\t\t\t\tNode endNode = DataModelI.getInstance().getNodeByLongName(endName);\n\n\t\t\t\tif(startNode == null || endNode == null) {\n\t\t\t\t\tlblError.setOpacity(1);\n\t\t\t\t\tFadeTransition fadeTransition = new FadeTransition(Duration.millis(4000), lblError);\n\t\t\t\t\tfadeTransition.setFromValue(1);\n\t\t\t\t\tfadeTransition.setToValue(0);\n\t\t\t\t\tfadeTransition.setCycleCount(1);\n\t\t\t\t\tfadeTransition.setAutoReverse(true);\n\t\t\t\t\tfadeTransition.play();\n\t\t\t\t\treturn;\n\t\t\t\t} else {\n\t\t\t\t\tclearPath();\n\t\t\t\t\tbreadcrumbs.clear();\n\t\t\t\t\tsetTheBreadyBoysBackToTheirGrayStateAsSoonAsPossibleSoThatItMakesSenseAgainPlease();\n\t\t\t\t}\n\n\t\t\t\tstartFloor = startNode.getFloor();\n\t\t\t\tendFloor = endNode.getFloor();\n\t\t\t\tcurrentFloor = startNode.getFloor();\n\n\t\t\t\ttry {\n//\t\t\t\tpathList = Singleton.getInstance().pathfindingContext.getPath(startNode, endNode, new AStarStrategyI());\n\t\t\t\t\tpathList = optionPicker.pathfindingContext.getPath(startNode, endNode, new AStarStrategyI());\n\n\t\t\t\t} catch (PathNotFoundException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\n\t\t\t\tString dirFloorL2 = \"\";\n\t\t\t\tString dirFloorL1 = \"\";\n\t\t\t\tString dirFloor1 = \"\";\n\t\t\t\tString dirFloor2 = \"\";\n\t\t\t\tString dirFloor3 = \"\";\n\n\t\t\t\tfloorL2DirectionNodes.clear();\n\t\t\t\tfloorL1DirectionNodes.clear();\n\t\t\t\tfloor1DirectionNodes.clear();\n\t\t\t\tfloor2DirectionNodes.clear();\n\t\t\t\tfloor3DirectionNodes.clear();\n\n\t\t\t\tdirectionsL2.clear();\n\t\t\t\tdirectionsL1.clear();\n\t\t\t\tdirections1.clear();\n\t\t\t\tdirections2.clear();\n\t\t\t\tdirections3.clear();\n\n\t\t\t\tboolean useL2 = false;\n\t\t\t\tboolean useL1 = false;\n\t\t\t\tboolean use1 = false;\n\t\t\t\tboolean use2 = false;\n\t\t\t\tboolean use3 = false;\n\n\t\t\t\tfor (Node node: pathList) {\n\t\t\t\t\tString floorName = node.getFloor();\n\t\t\t\t\tif (floorName.equals(\"L2\")) {\n\t\t\t\t\t\tfloorL2DirectionNodes.add(node);\n\t\t\t\t\t}\n\t\t\t\t\tif (floorName.equals(\"L1\")) {\n\t\t\t\t\t\tfloorL1DirectionNodes.add(node);\n\t\t\t\t\t}\n\t\t\t\t\tif (floorName.equals(\"1\")) {\n\t\t\t\t\t\tfloor1DirectionNodes.add(node);\n\t\t\t\t\t}\n\t\t\t\t\tif (floorName.equals(\"2\")) {\n\t\t\t\t\t\tfloor2DirectionNodes.add(node);\n\t\t\t\t\t}\n\t\t\t\t\tif (floorName.equals(\"3\")) {\n\t\t\t\t\t\tfloor3DirectionNodes.add(node);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tdirectionsL2 = ((pathfinderUtil.angleToText(floorL2DirectionNodes)));\n\t\t\t\tdirectionsL1 = (pathfinderUtil.angleToText(floorL1DirectionNodes));\n\t\t\t\tdirections1 = (pathfinderUtil.angleToText(floor1DirectionNodes));\n\t\t\t\tdirections2 = (pathfinderUtil.angleToText(floor2DirectionNodes));\n\t\t\t\tdirections3 = (pathfinderUtil.angleToText(floor3DirectionNodes));\n\n\t\t\t\tif(directionsL2.size() > 1){\n\t\t\t\t\tuseL2 = true;\n\t\t\t\t}\n\t\t\t\tif(directionsL1.size() > 1){\n\t\t\t\t\tuseL1 = true;\n\t\t\t\t}\n\t\t\t\tif(directions1.size() > 1){\n\t\t\t\t\tuse1 = true;\n\t\t\t\t}\n\t\t\t\tif(directions2.size() > 1){\n\t\t\t\t\tuse2 = true;\n\t\t\t\t}\n\t\t\t\tif(directions3.size() > 1){\n\t\t\t\t\tuse3 = true;\n\t\t\t\t}\n\n\t\t\t\tfor (int i = 0; i < directionsL2.size(); i++){\n\t\t\t\t\tdirFloorL2 += directionsL2.get((i)) + \"\\n\";\n\t\t\t\t}\n\t\t\t\tfor (int i = 0; i < directionsL1.size(); i++){\n\t\t\t\t\tdirFloorL1 += directionsL1.get((i)) + \"\\n\";\n\t\t\t\t}\n\t\t\t\tfor (int i = 0; i < directions1.size(); i++){\n\t\t\t\t\tdirFloor1 += directions1.get((i)) + \"\\n\";\n\t\t\t\t}\n\t\t\t\tfor (int i = 0; i < directions2.size(); i++){\n\t\t\t\t\tdirFloor2 += directions2.get((i)) + \"\\n\";\n\t\t\t\t}\n\t\t\t\tfor (int i = 0; i < directions3.size(); i++) {\n\t\t\t\t\tdirFloor3 += directions3.get((i)) + \"\\n\";\n\t\t\t\t}\n\t\t\t\tTreeItem<String> floorDirectionL2 = new TreeItem<>(dirFloorL2);\n\t\t\t\tTreeItem<String> floorDirectionL1 = new TreeItem<>(dirFloorL1);\n\t\t\t\tTreeItem<String> floorDirection1 = new TreeItem<>(dirFloor1);\n\t\t\t\tTreeItem<String> floorDirection2 = new TreeItem<>(dirFloor2);\n\t\t\t\tTreeItem<String> floorDirection3 = new TreeItem<>(dirFloor3);\n\n\t\t\t\tfloorL2.getChildren().setAll(floorDirectionL2);\n\t\t\t\tfloorL1.getChildren().setAll(floorDirectionL1);\n\t\t\t\tfloor1.getChildren().setAll(floorDirection1);\n\t\t\t\tfloor2.getChildren().setAll(floorDirection2);\n\t\t\t\tfloor3.getChildren().setAll(floorDirection3);\n\n\t\t\t\t// calcDistance function now converts to feet\n\t\t\t\tdouble dist = CalcDistance.calcDistance(pathList) * OptionSingleton.getOptionPicker().feetPerPixel;\n\t\t\t\tetaDistance = String.format(\"TOTAL DISTANCE: %.1f ft ETA: %.1f s\", dist, dist / OptionSingleton.getOptionPicker().walkSpeedFt);\n\t\t\t\tTreeItem<String> root = new TreeItem<>(etaDistance);\n\n\t\t\t\troot.getChildren().setAll(floor3, floor2, floor1, floorL1, floorL2);\n\t\t\t\tcolDirections.setCellValueFactory(\n\t\t\t\t\t\t(TreeTableColumn.CellDataFeatures<String, String> param) -> new SimpleStringProperty(param.getValue().getValue()));\n\n\t\t\t\ttblDirections.setRoot(root);\n\n\t\t\t\ttblDirections.getRoot().setExpanded(true);\n\n\t\t\t\tif( useL2 == true){tblDirections.getTreeItem(5).setExpanded(true);}\n\t\t\t\tif( useL1 == true){tblDirections.getTreeItem(4).setExpanded(true);}\n\t\t\t\tif( use1 == true){tblDirections.getTreeItem(3).setExpanded(true);}\n\t\t\t\tif( use2 == true){tblDirections.getTreeItem(2).setExpanded(true);}\n\t\t\t\tif( use3 == true){tblDirections.getTreeItem(1).setExpanded(true);}\n\n\t\t\t\tdirections = FXCollections.observableArrayList(pathfinderUtil.angleToText((LinkedList) pathList));\n\t\t\t\tpaneDirections.setVisible(true);\n\n\n\t\t\t\tlistForQR = (LinkedList) pathList;\n\n\t\t\t\t// Draw path code\n\t\t\t\tif (currentDimension.equals(\"3-D\")) {\n\t\t\t\t\t// use 3-D\n\t\t\t\t\tdimension = \"3-D\";\n\t\t\t\t\tprintNodePath(pathList, startFloor, dimension);\n\t\t\t\t\tchangeFloor(startFloor);\n\t\t\t\t} else {\n\t\t\t\t\t// use 2-D\n\t\t\t\t\tdimension = \"2-D\";\n\t\t\t\t\tprintNodePath(pathList, startFloor, dimension);\n\t\t\t\t\tchangeFloor(startFloor);\n\t\t\t\t}\n\n\t\t\t\tbreadBoy();\n\t\t\t\tanimatePath();\n\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tlblErrorPath.setOpacity(1);\n\t\t\tFadeTransition fadeTransition = new FadeTransition(Duration.millis(4000), lblErrorPath);\n\t\t\tfadeTransition.setFromValue(1);\n\t\t\tfadeTransition.setToValue(0);\n\t\t\tfadeTransition.setCycleCount(1);\n\t\t\tfadeTransition.setAutoReverse(true);\n\t\t\tfadeTransition.play();\n\n\t\t}\n\t}", "title": "" }, { "docid": "c0c4771747cdb2db96190db77f94dccc", "score": "0.49271613", "text": "public int[][] getKnightsPath() {\n\t\t// Start at the top left corner of the board\n\t\tsolMatrix[0][0] = 0;\n\t\tif (!solve(1, 0, 0))\n\t\t\tSystem.out.println(\"No path Exists.\");\n\t\treturn solMatrix;\n\t}", "title": "" }, { "docid": "0e0341a1b2937f8312416bf14fc12a8a", "score": "0.49246022", "text": "public static void main(String[] args){\n TreeNode head = new TreeNode(10);\n head.left = new TreeNode(5);\n head.left.left = new TreeNode(4);\n head.left.right = new TreeNode(7);\n head.right = new TreeNode(12);\n // 有两条路径上的结点和为22\n System.out.println(\"findPath(head, 22);\");\n System.out.println(FindPath(head, 22));\n }", "title": "" }, { "docid": "a451353935ebce8fbae1e61ebe1bdfef", "score": "0.49230972", "text": "public static void main(String[] args) {\n\n ///////////////// Arguments parsing /////////////////\n int k = 0;\n String pathname = null;\n\n try {\n pathname = args[0];\n k = Integer.parseInt(args[1]);\n } catch (NumberFormatException kNotANumber) {\n System.err.println(\"K must be an integer.\");\n System.exit(-1);\n } catch (ArrayIndexOutOfBoundsException missingArguments) {\n System.err.println(\"Usage: <input file OR input directory> <k>\");\n System.exit(-1);\n }\n\n ///////////////// Load input file /////////////////\n File filePath = new File(pathname);\n BufferedReader br;\n\n List<String> xAndY;\n String x, y;\n\n File[] directoryListing = null;\n\n // if given pathname is a directory, extract all files in that directory\n if (filePath.isDirectory()) {\n directoryListing = filePath.listFiles();\n // if given pathname is a file, store that file\n } else if (filePath.isFile()) {\n directoryListing = new File[]{filePath};\n } else {\n // given pathname does not exist - terminate\n System.err.println(\"Given path \" + filePath + \" does not exist.\");\n System.exit(-1);\n }\n try {\n for (File childFile : directoryListing) {\n if (!childFile.isFile()) {\n continue;\n }\n br = new BufferedReader(new FileReader(childFile));\n\n xAndY = FastaParser.parse(childFile);\n\n x = xAndY.get(0);\n y = xAndY.get(1);\n\n ///////////////// LCSk++ /////////////////\n int result = lcskPlusPlus(x, y, k);\n System.out.printf(\"Input file=%s, k=%d, result=%d\\n\", childFile.getName(), k, result);\n\n ///////////////// Write results /////////////////\n // remove file extension\n String childName = childFile.getName().split(\"\\\\.\")[0];\n writeResults(result, childName, k);\n\n br.close();\n }\n\n } catch (FileNotFoundException e) {\n // this can happen if path to the single file is passed and it does not exist\n System.err.println(\"File \" + filePath + \" does not exist.\");\n System.exit(-1);\n } catch (IOException e) {\n System.err.println(\"Error while reading \" + pathname + \" file.\");\n System.exit(-1);\n }\n }", "title": "" }, { "docid": "96c98dfae46879eb6a5310e089d661a0", "score": "0.4922109", "text": "public static void main(String[] args) \n\t{\n\t Scanner sc = new Scanner(System.in);\n\t \n\t // Input the number of test cases\n\t int t = sc.nextInt();\n\t \n\t while (t > 0)\n\t {\n\t // Input the rows of the matrix\n\t \tint M = sc.nextInt();\n\t \t\n\t \t// Input the columns of the matrix\n\t \tint N = sc.nextInt();\n\t \t\n\t \tSystem.out.println(countPaths(0, M, N));\n\n\t t--;\t \n\t }\t \n\t sc.close();\n\t}", "title": "" }, { "docid": "e14bac20d2df5291999c9d78846bb485", "score": "0.4919711", "text": "public static void main(String[] args) {\n int num1;\n int num2;\n\n //Creating empty array to be populated by command line arguments\n String[] commandArgs = new String[3];\n if (args.length > 0) {\n for (int i = 0; i < args.length; i++) {\n commandArgs[i] = args[i];\n }\n }\n String choice;\n num1 = 3;\n num2 = 3;\n\n //if statement for no command line args\n if (commandArgs[0] == null || commandArgs[1] == null) { //|| commandArgs[2] == null){\n for (int i = 0; i < commandArgs.length ; i++) {\n if (commandArgs[i] != null) {\n num1 = Integer.parseInt(commandArgs[i]);\n num2 = Integer.parseInt(commandArgs[i]);\n }\n }\n\n choice = \"\";\n }\n else {\n num1 = Integer.parseInt(commandArgs[0]);\n num2 = Integer.parseInt(commandArgs[1]);\n }\n\n //if, else statement for printing steps or not\n if (commandArgs[2] == null) {\n choice = \"\";\n }\n else choice = \"V\";\n\n //output\n printTowers(num1, num2, choice);\n\n }", "title": "" }, { "docid": "38d7f84450d833d4a2ac405f1787cf2b", "score": "0.49185345", "text": "public static void main(String[] args) {\n\t\tScan scan=new Scan();\n\t\tManager manager=new Manager();\n\t\tmanager.setVisible(true);\n\t\t//scan.getFileNameFromFolder();\n\n\t}", "title": "" }, { "docid": "40b2fbf77bef5678742e0a04b298a2fa", "score": "0.49172127", "text": "public static void main(String[] args) {\n\t\tCheapestFlightsWithinKStops obj = new CheapestFlightsWithinKStops();\n\t\t// int[][] flights = new int[][] {\n\t\t// {0,1,5},{1,2,5},{0,3,2},{3,1,2},{1,4,1},{4,2,1}};\n\t\tint[][] flights = new int[][] { { 0, 1, 5 }, { 1, 2, 5 }, { 0, 3, 2 }, { 3, 1, 2 }, { 1, 4, 1 }, { 4, 2, 1 } };\n\t\tint r = obj.findCheapestPrice(5, flights, 0, 2, 2);\n\t\tSystem.out.println(r);\n\t}", "title": "" }, { "docid": "a7d28931bf45e7b7100fc2398b3c0fb1", "score": "0.49154618", "text": "public static void main(String[] args) {\n Day15 day = new Day15(args.length >= 1 && args[0] != null ? args[0] : \"day21/test.txt\");\n int start = day.processInput();\n day.startGame(start);\n }", "title": "" }, { "docid": "65dff82d11be74bbfeb1699c7d365cb1", "score": "0.49124733", "text": "public static void main(String[] args) throws IOException {\n\t\tif (args.length != 1) { //If they don't have 1 argument\n\t\t\tprintUsage();\n\t\t\tSystem.exit(-1); //signals that something went wrong\n\t\t}\n\n\t\tString pathName = args[0]; //set it to the first one\n\t\t// Since Files.walkFileTree method takes an input argument of type Path,\n\t\t// convert the string argument passed to main method to Path instance\n\t\tPath startingDir = Paths.get(pathName);\n\t\tprintStructure(startingDir);\n\t}", "title": "" }, { "docid": "40305ef3ef317b15ac9f60531f1d877e", "score": "0.49099082", "text": "public static void main(String[] args) {\n KdTree ktree = new KdTree();\n\n /*\n\n while (!StdIn.isEmpty()) {\n double x = StdIn.readDouble();\n double y = StdIn.readDouble();\n ktree.insert(new Point2D(x, y));\n }\n\n StdOut.println(ktree.size());\n StdOut.println(ktree.contains(new Point2D(0, 0)));\n StdOut.println(ktree.contains(new Point2D(0.158530, 0.486901)));\n\n ktree.draw();\n\n RectHV rect = new RectHV(0.3, 0.3, 0.6, 0.6);\n StdDraw.setPenRadius(0.005);\n StdDraw.setPenColor(StdDraw.MAGENTA);\n rect.draw();\n\n StdDraw.setPenRadius(0.015);\n StdDraw.setPenColor(StdDraw.RED);\n for (Point2D p : ktree.range(rect)) {\n p.draw();\n }\n */\n\n StdDraw.setPenRadius(0.015);\n StdDraw.setPenColor(StdDraw.BLUE);\n Point2D near = new Point2D(0.1, 0.1);\n near.draw();\n\n StdDraw.setPenColor(StdDraw.GREEN);\n ktree.nearest(near).draw();\n\n\n }", "title": "" }, { "docid": "6fa73e897364ed594ffb6cb022fac9ed", "score": "0.49051738", "text": "public static void main(String args[]) throws FileNotFoundException {\n\t\tProcessData();\n\t\t\n\t\tScanner kb = new Scanner(System.in);\n\t\tString option = null;\n\t\t\n\t\tSystem.out.print(\"Command?\");\n\t\toption = kb.nextLine();\n\t\twhile(!option.equals(\"E\")){\n\t\t\tif(option.equals(\"H\")){\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"Q Query the city information by entering the city code.\");\n\t\t\t\tSystem.out.println(\"D Find the minimum distance between two cities.\");\n\t\t\t\tSystem.out.println(\"I Insert a road by entering two city codes and distance.\");\n\t\t\t\tSystem.out.println(\"R Remove an existing road by entering two city codes.\");\n\t\t\t\tSystem.out.println(\"H Display this message.\");\n\t\t\t\tSystem.out.println(\"E Exit.\");\n\t\t\t\t\t\n\t\t\t}else if(option.equals(\"Q\")){\n\t\t\t\tString query;\n\t\t\t\tSystem.out.print(\"Please enter the city code:\");\n\t\t\t\tquery = kb.nextLine();\n\t\t\t\t\n\t\t\t\tVertex v = vertexMap.get(query);\n\t\t\t\tSystem.out.println(v.cityNum + \" \" + v.cityInit + \" \" + v.cityName + \" \" + v.cityPop + \" \" + v.cityElv);\n\t\t\t}else if(option.equals(\"D\")){\n\t\t\t\tString first;\n\t\t\t\tString second;\n\t\t\t\t\n\t\t\t\tSystem.out.print(\"City Codes: \");\n\t\t\t\tString line = kb.nextLine();\n\t\t\t\t\n\t\t\t\tScanner newScan = new Scanner(line);\n\t\t\t\tfirst = newScan.next();\n\t\t\t\tsecond = newScan.next();\n\t\t\t\t//get vertices\n\t\t\t\tVertex from = vertexMap.get(first);\n\t\t\t\tVertex to = vertexMap.get(second);\n\t\t\t\tDijkstra(from);\n\t\t\t\tSystem.out.println(\"The minimum distance between \" + from.cityName + \" and \" + to.cityName + \" is \" + to.minDistance);\n\t\t\t\tSystem.out.print(\"The Path: \");\n\t\t\t\tSystem.out.print(getShortestPathTo(to));\n\t\t\t\tSystem.out.println();\n\t\t\t\t\n\t\t\t}else if(option.equals(\"I\")){\n\n\t\t\t\tSystem.out.print(\"City Codes and Distance: \");\n\t\t\t\tString line = kb.nextLine();\n\t\t\t\t\n\t\t\t\tScanner newScan = new Scanner(line);\n\t\t\t\tString first = newScan.next();\n\t\t\t\tString second = newScan.next();\n\t\t\t\tString dist = newScan.next();\n\t\t\t\t\n\t\t\t\tint weight = Integer.parseInt(dist);\n\t\t\t\t//get vertices\n\t\t\t\tVertex from = vertexMap.get(first);\n\t\t\t\tVertex to = vertexMap.get(second); \n\t\t\t\tEdge e = new Edge(to, weight);\n\t\t\t\tfrom.addEdge(e);\n\t\t\t\tSystem.out.println(\"You have inserted a road from \" + from.cityName + \" to \" + to.cityName);\n\t\t\t\t\n\t\t\t}else if(option.equals(\"R\")){\n\t\t\t\tSystem.out.print(\"City Codes: \");\n\t\t\t\tString line = kb.nextLine();\n\t\t\t\t\n\t\t\t\tScanner newScan = new Scanner(line);\n\t\t\t\tString first = newScan.next();\n\t\t\t\tString second = newScan.next();\n\t\t\t\t//get vertices\n\t\t\t\tVertex from = vertexMap.get(first);\n\t\t\t\tVertex to = vertexMap.get(second);\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"Sorry! this is not functional at the Moment!\");\n\t\t\t\t//from.edges.remove(index)\n\t\t\t\t\n\t\t\t\t//from.removeEdge(to);\n\t\t\t\t\n\t\t\t\t//get city code\n\t\t\t\t//from.edges.remove(to);\n\t\t\t\t\t\t\t\t\n\t\t\t}\n\t\t\tSystem.out.print(\"Command?\");\n\t\t\toption = kb.nextLine();\n\t\t}\n\t\t\n\t\tSystem.out.print(\"Thank you!\");\n }", "title": "" }, { "docid": "f3c7675efa42b2867e4bcb7501a4a10f", "score": "0.4903723", "text": "public static void main(String[] args) {\n Path path = Paths.get(\"lineoutput.txt\");\n\n System.out.format(\"toString: %s%n\", path.toString());\n System.out.format(\"toUri: %s%n\", path.toUri());\n System.out.format(\"toAbsolutePath: %s%n\", path.toAbsolutePath());\n try {\n System.out.format(\"toRealPath: %s%n\", path.toRealPath());\n } catch (IOException e) {\n System.out.println(\"not a real file path\");\n }\n System.out.format(\"getFileName: %s%n\", path.getFileName());\n System.out.format(\"getName(0): %s%n\", path.getName(0));\n System.out.format(\"getNameCount: %d%n\", path.getNameCount());\n System.out.format(\"subpath(0, 2): %s%n\", path.subpath(0, 1));\n System.out.format(\"getParent: %s%n\", path.getParent());\n System.out.format(\"getRoot: %s%n\", path.getRoot());\n System.out.format(\"resolve: %s%n\", path.resolve(\"hello.out\"));\n }", "title": "" }, { "docid": "6dcdd4dc17fe28519d78edbbb7dab2b4", "score": "0.4898787", "text": "private void printPath(int row, int column)\n\t{\n\t\tSystem.out.println();\n\t\tSystem.out.print(\" \");\n\t\tfor(int i=0;i<dimension;i++)\n\t\t{\n\t\t\tfor(int j=0;j<dimension;j++)\n\t\t\t{\n\t\t\t\tif(i-1 < 0)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.print(\" ~~~\");\n\t\t\t\t}\n\t\t\t\telse if(north[i][j] == 1)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.print(\" ~~~\");\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\tif(i-1 < 0)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"Enter-->\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tfor(int j=0;j<dimension;j++)\n\t\t\t{\n\t\t\t\tif(j-1 < 0 && i-1 > 0 && !resultset.contains(new SimpleEntry<Integer,Integer>(i,j)))\n\t\t\t\t{\n\t\t\t\t\tSystem.out.print(\"! \");\n\t\t\t\t}\n\t\t\t\telse if(j-1 < 0 && i-1 > 0 && resultset.contains(new SimpleEntry<Integer,Integer>(i,j)))\n\t\t\t\t{\n\t\t\t\t\tSystem.out.print(\"! # \");\n\t\t\t\t}\n\t\t\t\telse if(west[i][j] == 1 && !resultset.contains(new SimpleEntry<Integer,Integer>(i,j)))\n\t\t\t\t{\n\t\t\t\t\tSystem.out.print(\"! \");\n\t\t\t\t}\n\t\t\t\telse if(west[i][j] == 1 && resultset.contains(new SimpleEntry<Integer,Integer>(i,j)))\n\t\t\t\t{\n\t\t\t\t\tSystem.out.print(\"! # \");\n\t\t\t\t}\n\t\t\t\telse if(resultset.contains(new SimpleEntry<Integer,Integer>(i,j)))\n\t\t\t\t{\n\t\t\t\t\tSystem.out.print(\" # \");\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\tif(j == dimension-1 && i != dimension-1)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.print(\"!\");\n\t\t\t\t}\n\t\t\t\telse if(j == dimension-1 && i == dimension-1)\n\t\t\t\t\tSystem.out.print(\" -->Exit\");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.print(\" \");\n\t\t}\n\t\tfor(int i=0;i<dimension;i++)\n\t\t{\n\t\t\tSystem.out.print(\" ~~~\");\n\t\t}\n\t}", "title": "" }, { "docid": "7b6d271bc45973c7dc823a361f55057a", "score": "0.48885778", "text": "public static void main(final String[] args) {\n Scanner scan = new Scanner(System.in);\n HashMap<String, Integer> map\n = new HashMap<String, Integer>();\n String[] tokens = scan.nextLine().split(\" \");\n int edges = Integer.parseInt(tokens[1]);\n String[] vertices = scan.nextLine().split(\" \");\n for (int i = 0; i < vertices.length; i++) {\n map.put(vertices[i], i);\n }\n Edge edgeObj;\n EdgeWeightedGraph digraph\n = new EdgeWeightedGraph(vertices.length);\n for (int i = 0; i < edges; i++) {\n String[] directPath = scan.nextLine().split(\" \");\n edgeObj = new Edge(map.get(directPath[0]),\n map.get(directPath[1]),\n Double.parseDouble(directPath[2]));\n digraph.addEdge(edgeObj);\n }\n int queries = Integer.parseInt(scan.nextLine());\n DijkstrasSP spObj;\n for (int i = 0; i < queries; i++) {\n String[] check = scan.nextLine().split(\" \");\n int source = map.get(check[0]);\n spObj = new DijkstrasSP(digraph, source);\n System.out.println((int) spObj.distance(map.get(check[1])));\n }\n }", "title": "" }, { "docid": "69df3102f034293b43f284c7f0167417", "score": "0.48863763", "text": "public static void main(String[] args) {\n\t\tint n1 = 3;\n\t\tint ret1 = solution(n1);\n\n\t\t// Press Run button to receive output.\n\t\tSystem.out.println(\"Solution: return value of the method is \" + ret1 + \" .\");\n\n\t\tint n2 = 2;\n\t\tint ret2 = solution(n2);\n\n\t\t// Press Run button to receive output.\n\t\tSystem.out.println(\"Solution: return value of the method is \" + ret2 + \" .\");\n\t}", "title": "" }, { "docid": "fa3c60fc39b1fd0e3a3a33432617540d", "score": "0.4885744", "text": "public static void main(String[] args) {\n\t\tSolution solution = new Solution();\n\t\tString []words = solution.findWords(new String[]{\"Hello\", \"Alaska\", \"Dad\", \"Peace\"});\n\t\tStream.of(words).forEach(System.out::println);\n\t}", "title": "" }, { "docid": "ae84c00501180bf8eaab2a434c2e97c1", "score": "0.48839492", "text": "public static void main(String[] args) {\n\t\tfindIt(25) ;\n\t}", "title": "" }, { "docid": "9837b666cde6d893f81509eb7dffc038", "score": "0.488271", "text": "public static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString[] str = br.readLine().split(\" \");\n\t\tN = Integer.parseInt(str[0]);\n\t\tM = Integer.parseInt(str[1]);\n\n\t\tmap = new int[N][N];\n\t\tchicken = new ArrayList<Dot>();\n\t\thome = new ArrayList<Dot>();\n\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tstr = br.readLine().split(\" \");\n\t\t\tfor (int j = 0; j < N; j++) {\n\t\t\t\tmap[i][j] = Integer.parseInt(str[j]);\n\t\t\t\tif (map[i][j] == 1) {\n\t\t\t\t\thome.add(new Dot(hnum, i, j));\n\t\t\t\t\thnum++;\n\t\t\t\t} else if (map[i][j] == 2) {\n\t\t\t\t\tchicken.add(new Dot(cnum, i, j));\n\t\t\t\t\tcnum++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tsolution();\n\n\t\tbr.close();\n\t}", "title": "" } ]
aee97691e49917a73e6ac992b037735a
Sort the list of players ordered by points. Players with more points are the highest. topFivePlayers ArrayList ordered descendant by points
[ { "docid": "705b6b2d4a076520313d94fa06e2145b", "score": "0.68500406", "text": "public void sortByPoints() {\n\t\t// 2 Points\n\t\t// TODO Execute the sort by points here\n\t\tCollections.sort(list, int);\n\t}", "title": "" } ]
[ { "docid": "63d3652fd28999ca8aa51b8e11842546", "score": "0.6516141", "text": "private void sortPlayers() {\n for (int i = 0; i < competitors.size() - 1; i++) {\n for (int j = 0; j < competitors.size() - i - 1; j++) {\n Competitor player1 = competitors.get(j);\n Competitor player2 = competitors.get(j + 1);\n if (player1.isFinished() && player2.isFinished())\n continue;\n if (player1.getLocation().getX() < player2.getLocation().getX()) {\n Collections.swap(competitors, j, j + 1);\n }\n }\n }\n }", "title": "" }, { "docid": "d7513032f056fb430cee0590cbad8984", "score": "0.64511544", "text": "public ArrayList<Player> getTopFivePlayers() {\n\t\treturn topFivePlayers;\n\t}", "title": "" }, { "docid": "623ba7d5f6e677bf719e2e38acff937e", "score": "0.62907004", "text": "public void sort(){\n\t\tScoreComparator comparator = new ScoreComparator();\n\t\tCollections.sort(scorelist,comparator);\n\t}", "title": "" }, { "docid": "34f0f2fe47fe708ad9db63ab95b48283", "score": "0.6256295", "text": "public static void sortPlayers() {\n int j;\n boolean flag = true;\n Player temp;\n while (flag) {\n flag = false;\n for (j = 0; j < playerCount - 1; j++) {\n if (PLAYERS[j].hashCode() < PLAYERS[j + 1].hashCode()) {\n temp = PLAYERS[j];\n PLAYERS[j] = PLAYERS[j + 1];\n PLAYERS[j + 1] = temp;\n flag = true;\n }\n }\n }\n }", "title": "" }, { "docid": "e515f554b2e83a98cfb72cd572e370a6", "score": "0.62330073", "text": "public ArrayList<?> ascSelectionSort(ArrayList<?> playerList){\r\n \r\n for (int i = 0; i < playerList.size() - 1; i++) \r\n { \r\n int min = i; \r\n for (int j = i + 1; j < playerList.size(); j++){ \r\n if (((NimPlayer) playerList.get(j)).getPercentage() < \r\n \t\t((NimPlayer) playerList.get(min)).getPercentage()){ \r\n min = j;//searching for min \r\n } \r\n } \r\n Collections.swap(playerList, i, min);\r\n } \r\n \t\r\n \treturn playerList;\r\n }", "title": "" }, { "docid": "a6e2daff715c7ed659c0f99e6bb5fe61", "score": "0.6090605", "text": "@Test\n public void sortingBucketListExtraTest() {\n Player first = new Player(\"Nicholaz1\", \"de Mimsy-Porpington\", 510000);\n Player second = new Player(\"Nicholaz2\", \"de Mimsy-Porpington\", 520000);\n Player third = new Player(\"Nicholaz1\", \"de Mimsy-Porpington\", 530000);\n\n highScores.add(first);\n highScores.add(second);\n highScores.add(third);\n\n ArrayList<Player> sortedArrayList = new ArrayList<>();\n sortedArrayList.add(third);\n sortedArrayList.add(second);\n sortedArrayList.add(first);\n\n assertEquals(sortedArrayList, highScores.getHighScores(3));\n }", "title": "" }, { "docid": "c190e9ff2641797afa8fcab1f8c4d1e5", "score": "0.6052962", "text": "private ArrayList<String> getTopScorers() {\n int mostGoalsScored = getMostGoalsScored();\n ArrayList<String> topScorers = new ArrayList<String>();\n for (int i = 0; i < players.size(); i++) {\n if (players.get(i).getGoals() == mostGoalsScored) {\n topScorers.add(players.get(i).getName());\n }\n }\n return topScorers;\n }", "title": "" }, { "docid": "bee14708d38bb529fa2329f302d7cde5", "score": "0.60356516", "text": "public ArrayList<?> descSelectionSort(ArrayList<?> playerList){\r\n \r\n for (int i = 0; i < playerList.size() - 1; i++) \r\n { \r\n int max = i; \r\n for (int j = i + 1; j < playerList.size(); j++){ \r\n if (((NimPlayer) playerList.get(j)).getPercentage() > \r\n ((NimPlayer) playerList.get(max)).getPercentage()){ \r\n max = j;//searching for max\r\n } \r\n } \r\n Collections.swap(playerList, i, max);\r\n } \r\n \t\r\n \treturn playerList;\r\n }", "title": "" }, { "docid": "8489baf5b24473a64f888625a63a02a0", "score": "0.5966006", "text": "ArrayList<Top3Player> topThree( ArrayList<Top3Player> topScores)\n\t{\n\t\tArrayList<Top3Player>OnlyThree= new ArrayList<Top3Player>();\n\t\tCollections.sort(topScores, (e,f)->{\n\t\t\treturn f.score-e.score;\n\t\t});\n\t\tfor (int i=0;i<3;i++)\n\t\t{\n\t\t\tOnlyThree.add(topScores.get(i));\n\t\t}\n\t\treturn OnlyThree; //return the arrayList of top three player\n\t}", "title": "" }, { "docid": "0ac5c7dc4131546ba12cdf1786b43910", "score": "0.5948686", "text": "public void sortTeams() {\n int temp[]; // For the statistics\n String temp2; // For the team name\n for (int i = 1; i < tournament.getNumTeams(); i++) {\n for (int j = i; j > 0; j--) {\n if (calculatePoints(teamsStats[j]) > calculatePoints(teamsStats[j - 1])) { // Calculates the points from the wins and losses\n temp = teamsStats[j]; // Temporarily stores the team statistics\n temp2 = teams[j]; // Temporarily stores the team name\n teamsStats[j] = teamsStats[j-1]; // Shifts the higher point team statistics across towards the beginning\n teams[j] = teams[j-1]; // Shifts the team name across towards the beginning to match the statistics\n teamsStats[j-1] = temp; // Puts the team statistics across to where the other team statistics moved from\n teams[j-1] = temp2; // Puts the team name across to where the other team name moved from\n }\n }\n }\n }", "title": "" }, { "docid": "e87d3ca8651e6db2c6568a88ead9467f", "score": "0.59162873", "text": "public int compareTo(Player o) {\n\t\tif(totalPoints>o.getPoints())\n\t\t\treturn 1;\n\t\telse if(totalPoints==o.getPoints())\n\t\t\treturn 0;\n\t\treturn -1;\n\t}", "title": "" }, { "docid": "485fcbd6b1e41cbdf9329f8dc5ccf2bf", "score": "0.5912149", "text": "@Override\n\tpublic int compare(Playerinfo p1, Playerinfo p2) {\n\t\tif(p1.Score>p2.Score) {\n\t\t\treturn -1;\n\t\t}\n\t\telse if(p1.Score<p2.Score) {\n\t\t\treturn 1;\n\t\t}\n\t\t\n\t\treturn 0;\n\t\t\n\t}", "title": "" }, { "docid": "99f201915bc9959cb558b1683f7127f1", "score": "0.5907236", "text": "public static void main(String[] args) {\n\t\tList<Integer> randomList = new ArrayList<>();\n\t\trandomList.add(10);\n\t\trandomList.add(30);\n\t\trandomList.add(50);\n\t\trandomList.add(40);\n\t\t\n\t\tSystem.out.println(\"Before Sorting : \" + randomList);\n\t\tCollections.sort(randomList);\n\t\tSystem.out.println(\"After Sorting : \" + randomList);\n\t\t\n\t\t//sorting Objects having multiple attributes\n\t\tList<Player> footballTeam = new ArrayList<>();\n\t\tPlayer player1 = new Player(59, \"St. John\", 20);\n\t\tPlayer player2 = new Player(67, \"Roger\", 22);\n\t\tPlayer player3 = new Player(45, \"Anthony Steven\", 24);\n\t\tfootballTeam.add(player1);\n\t\tfootballTeam.add(player2);\n\t\tfootballTeam.add(player3);\n\t\t\n\t\tSystem.out.println(\"Before Sorting : \" + footballTeam);\n\t\tPlayerRankingComparator playerRankingComparator = new PlayerRankingComparator();\n\t\tCollections.sort(footballTeam, playerRankingComparator);\n\t\tSystem.out.println(\"After Ranking Sort : \" + footballTeam);\n\t\t//executing some statements\n\t\t\n\t\tPlayerNameComparator playerNameComparator = new PlayerNameComparator();\n\t\tCollections.sort(footballTeam, playerNameComparator);\n\t\t\n\t\tSystem.out.println(\"After Name Sort : \" + footballTeam);\n\n\t}", "title": "" }, { "docid": "2072be656bccd2e3e322e7a15dfe0500", "score": "0.590346", "text": "ObservableList<Team> getSortedTeamList();", "title": "" }, { "docid": "19a12119b95154c7bd4b39db1ff00cb6", "score": "0.5876726", "text": "public void displayPlayersAsc()\n {\n ArrayList<String> SortedNames = new ArrayList<>();\n for (int i = 0; i < tickets.size(); i++)\n {\n SortedNames.add(tickets.get(i).getName());\n }\n Collections.sort(SortedNames);\n System.out.println(\"\\n\" + SortedNames);\n\n }", "title": "" }, { "docid": "f61501af4979f8df3c753ea5b82c6d03", "score": "0.5855059", "text": "private void sortHighScore() {\n try {\n BufferedReader reader = new BufferedReader(new FileReader(\"HighScore.txt\"));\n ArrayList<Player> playerRecords = new ArrayList<>();\n String currentLine = reader.readLine();\n\n while (currentLine != null) {\n String[] playerDetail = currentLine.split(\" \");\n String name = playerDetail[0];\n int coin = Integer.parseInt(playerDetail[1]);\n playerRecords.add(new Player(name, coin));\n\n currentLine = reader.readLine();\n }\n\n Collections.sort(playerRecords, new CoinsCompare());\n BufferedWriter writer = new BufferedWriter(new FileWriter(\"HighScore.txt\"));\n\n for (Player player : playerRecords) {\n writer.write(player.getName());\n writer.write(\" \" + player.getNumOfCoins());\n writer.newLine();\n }\n\n reader.close();\n writer.close();\n } catch (FileNotFoundException e) {\n LOGGER.error(\"Could not find HighScore.txt\");\n } catch (IOException e) {\n LOGGER.error(\"Could not read from HighScore.txt\");\n }\n }", "title": "" }, { "docid": "05a155f26b4d1dec622197102c48ac41", "score": "0.583386", "text": "public void getTopPlayers(int maxTopPlayers) {\n final DatabaseReference playersDatabase = FirebaseDatabase.getInstance().getReference().child(\"players\");\n Query myTopPostsQuery = playersDatabase.orderByChild(\"highestScore\").limitToLast(maxTopPlayers);\n myTopPostsQuery.addChildEventListener(new ChildEventListener() {\n @Override\n public void onChildAdded(DataSnapshot dataSnapshot, String s) {\n topListReceivedCallback.onItemRead(dataSnapshot.getValue(Player.class));\n }\n\n @Override\n public void onChildChanged(DataSnapshot dataSnapshot, String s) {\n topListReceivedCallback.onItemRead(dataSnapshot.getValue(Player.class));\n\n }\n\n @Override\n public void onChildRemoved(DataSnapshot dataSnapshot) {\n topListReceivedCallback.onItemRead(dataSnapshot.getValue(Player.class));\n\n }\n\n @Override\n public void onChildMoved(DataSnapshot dataSnapshot, String s) {\n topListReceivedCallback.onItemRead(dataSnapshot.getValue(Player.class));\n\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n topListReceivedCallback.onError(databaseError.getMessage());\n }\n\n });\n\n }", "title": "" }, { "docid": "9b4344ffbb87cf644ec8a67a5a34c3ee", "score": "0.57698935", "text": "public List<String> getPlayerWithBestBattingAndBowlingAvg() {\n\t\tList<String> battingAvgSortList = this.getTopBattingAvg().stream().map(entry -> entry.playerName).limit(40)\n\t\t\t\t.collect(Collectors.toList());\n\t\tList<String> bowlingAvgSortList = this.getTopBowlingAvg().stream().map(entry -> entry.playerName).limit(40)\n\t\t\t\t.collect(Collectors.toList());\n\t\tList<String> result = battingAvgSortList.stream().distinct().filter(bowlingAvgSortList::contains)\n\t\t\t\t.collect(Collectors.toList());\n\t\treturn result;\n\t}", "title": "" }, { "docid": "2b587bf88ef509cd16cdd8c821aad47f", "score": "0.576813", "text": "public String getSortedJsonBestBowlingAvgAndStrikeRate() {\n\t\tList<CSVWickets> tempList = wicketsCSVList.stream().filter(entry -> entry.wickets != 0)\n\t\t\t\t.filter(entry -> entry.average != 0).collect(Collectors.toList());\n\t\tComparator<CSVWickets> bowlingComparator = Comparator.comparing(entry -> entry.average);\n\t\tthis.sort(tempList, bowlingComparator.thenComparing(entry -> entry.strikeRate).reversed());\n\t\tString jsonSortedPlayers = new Gson().toJson(tempList);\n\t\treturn jsonSortedPlayers;\n\t}", "title": "" }, { "docid": "ba973ae7de00fee0f57644214a81ebf4", "score": "0.57555276", "text": "public static Comparator<Team> getComparatorTotalPoints () {\n\t\treturn new Comparator<Team>(){\n\t\t\t@Override\n\t\t\tpublic int compare(final Team team1, final Team team2){\n\t\t\t\t// return >0 if team1 has more points.\n\t\t\t\t// return 0 if team1 and team2 have same number of points\n\t\t\t\t// return <0 if team2 has more points.\n\t\t\t\treturn (team1.getSumPoints() - team2.getSumPoints())*(-1);\n\t\t\t\t// multiple by -1 so that descending order comes out.\n\t\t\t}\n\t\t};\n\t}", "title": "" }, { "docid": "81843616d7438c7a8f18310ec1be5cd3", "score": "0.5701442", "text": "public static Comparator<Player> getComparatorTotalPenaltiesPlayer () {\n\t\treturn new Comparator<Player>() {\n\t\t\t@Override\n\t\t\tpublic int compare(Player player1, Player player2) {\n\t\t\t\t// return >0 if player1 has more goals.\n\t\t\t\t// return 0 if player1 and player2 have same number of goals\n\t\t\t\t// return <0 if player2 has more goals.\n\t\t\t\treturn (player1.getSumInfractions() - player2.getSumInfractions())*(-1);\n\t\t\t\t// multiply by -1 so that descending order comes out.\n\t\t\t}\n\t\t};\n\t}", "title": "" }, { "docid": "6b7ad251859aa654e7e013000e1044d0", "score": "0.56859744", "text": "@Override public LinkedList<Pokemon> sortBySpAttack(boolean order) {\n LinkedList<Pokemon> collection = new LinkedList<Pokemon>();\n LinkedList<Integer> SpAttacks = new LinkedList<Integer>();\n\n for (LinkedList<HashNode> pokemonList : basedTable\n .getTable()) { // copy the SpAttacks of pokemons from hashTable to SpAttacks, about to be sorted\n if (pokemonList != null) {\n for (HashNode<String, Pokemon> pokemon : pokemonList) {\n SpAttacks.add(pokemon.getValue().getSpAttack());\n }\n }\n }\n\n if (order == true) { // in descending order\n Collections.sort(SpAttacks, Collections.reverseOrder());\n } else { // in ascending order\n Collections.sort(SpAttacks);\n }\n for (Integer SpAttack : SpAttacks) {\n for (LinkedList<HashNode> pokemonList : basedTable.getTable()) {\n if (pokemonList != null) {\n for (HashNode<String, Pokemon> node : pokemonList) {\n if (node != null && node.getValue().getSpAttack() == SpAttack && !collection\n .contains(node.getValue())) {\n collection.add(node.getValue());\n }\n }\n }\n }\n }\n return collection;\n }", "title": "" }, { "docid": "405b7db20b696f7d3e93c60612f0118a", "score": "0.5654307", "text": "public ArrayList<String> sortAllWordsByPoints() {\n\t\tArrayList<String> t = new ArrayList<String>();\n\t\tfor (int i = 0; i < allWords.size(); i++) {\n\t\t\tString max = \"\";\n\t\t\tint points = 0;\n\t\t\tfor (String s : allWords) {\n\t\t\t\tif (getWordValue(s) > points && !t.contains(s)) {\n\t\t\t\t\tmax = s;\n\t\t\t\t\tpoints = getWordValue(s);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (!max.equals(\"\")) {\n\t\t\t\tt.add(max);\n\t\t\t} else {\n\t\t\t\treturn t;\n\t\t\t}\n\t\t}\n\t\treturn t;\n\t}", "title": "" }, { "docid": "e3336f6195e86409ac2d06351eecd4b6", "score": "0.5652766", "text": "public void getTopPlayersTotal(int maxTopPlayers) {\n final DatabaseReference playersDatabase = FirebaseDatabase.getInstance().getReference().child(\"players\");\n Query myTopPostsQuery = playersDatabase.orderByChild(\"totalratio\").limitToLast(maxTopPlayers);\n myTopPostsQuery.addChildEventListener(new ChildEventListener() {\n @Override\n public void onChildAdded(DataSnapshot dataSnapshot, String s) {\n topListReceivedCallback.onItemRead(dataSnapshot.getValue(Player.class));\n }\n\n @Override\n public void onChildChanged(DataSnapshot dataSnapshot, String s) {\n topListReceivedCallback.onItemRead(dataSnapshot.getValue(Player.class));\n\n }\n\n @Override\n public void onChildRemoved(DataSnapshot dataSnapshot) {\n topListReceivedCallback.onItemRead(dataSnapshot.getValue(Player.class));\n\n }\n\n @Override\n public void onChildMoved(DataSnapshot dataSnapshot, String s) {\n topListReceivedCallback.onItemRead(dataSnapshot.getValue(Player.class));\n\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n topListReceivedCallback.onError(databaseError.getMessage());\n }\n\n });\n\n }", "title": "" }, { "docid": "baa0a68f4959a21a0bbf13bcd6b7abf1", "score": "0.56243914", "text": "private void sort() {\n Score comparator = new Score();\n Collections.sort(highScore, comparator);\n }", "title": "" }, { "docid": "4bec8795ade346d2a31e2d0b95ca4025", "score": "0.5614737", "text": "private void sorteerHoekpunten() {\n ArrayList<Punt> puntenLijst = new ArrayList<>();\n\n puntenLijst.add(hoekPunt1);\n puntenLijst.add(hoekPunt2);\n puntenLijst.add(hoekPunt3);\n\n //we steunen op de Comparable interface zijn toCompare methode hier om alle elementen te sorteren\n //na het sorteren weten we dat de waarden in puntenLijst gesorteerd zijn, en geven we deze gesorteerde lijst terug aan de hoekpunten\n Collections.sort(puntenLijst);\n\n hoekPunt1 = puntenLijst.get(0);\n hoekPunt2 = puntenLijst.get(1);\n hoekPunt3 = puntenLijst.get(2);\n }", "title": "" }, { "docid": "c2982c7902aa0a244df7bf05eb7814c2", "score": "0.560523", "text": "@Override\n\t\t\tpublic int compare(Player player1, Player player2) {\n\t\t\t\treturn (player1.getSumGoals() - player2.getSumGoals())*(-1);\n\t\t\t\t// multiply by -1 so that descending order comes out.\n\t\t\t}", "title": "" }, { "docid": "8aebd90efd41a384127f0d1d646d452a", "score": "0.5603597", "text": "public static Point[] orderPoints(ArrayList<Point> points) {\n\t\tif (points.size() != 4) {\n\t\t\treturn null;\n\t\t}\n\t\tPoint[] result = new Point[4];\n\t\t// Sorting by sum of x+y\n\t\tpoints.sort(new CoordinateSumComparator());\n\t\t// Top Left Point has smallest x+y sum\n\t\tresult[0] = points.get(0);\n\t\t// Bottom Right Point has largest x+y sum\n\t\tresult[2] = points.get(3);\n\t\t// Sorting by difference x-y\n\t\tpoints.sort(new CoordinateDifferenceComparator());\n\t\t// Top Right Point has the smallest x-y difference\n\t\tresult[1] = points.get(0);\n\t\t// Bottom Left Point has the largest x-y difference\n\t\tresult[3] = points.get(3);\n\t\treturn result;\n\t}", "title": "" }, { "docid": "13e0f12abaf211a6359c0ef8cd0fb0d6", "score": "0.5580715", "text": "private static void Sort() {\n\t\tCollections.sort(population, new Comparator<CandidateSolution>() {\r\n\t\t\tint a = 0;\r\n\r\n\t\t\tpublic int compare(CandidateSolution o1, CandidateSolution o2) {\r\n\t\t\t\tif (o2.getFitness() != o1.getFitness()) {\r\n\t\t\t\t\ta = o1.getFitness().compareTo(o2.getFitness());\r\n\t\t\t\t} else {\r\n\t\t\t\t\tif (o1.wasBest)\r\n\t\t\t\t\t\treturn -1;\r\n\t\t\t\t}\r\n\t\t\t\treturn a;\r\n\t\t\t}\r\n\t\t});\r\n\t\tfor (CandidateSolution cs : population) {\r\n\t\t\tcs.wasBest = false;\r\n\t\t}\r\n\t\tpopulation.get(0).wasBest = true;\r\n\t}", "title": "" }, { "docid": "b89f256a818c8bdeaf69c21655846244", "score": "0.55806446", "text": "public static void main(String[] args) {\n ArrayList<Student> myStudentsArrayList = new ArrayList<>();\n Student firstStudent = new Student(\"Lena\", 1235, 98);\n Student secondStudent = new Student(\"Boris\", 458, 80);\n Student thirdStudent = new Student(\"Yon\", 475874, 76);\n\n myStudentsArrayList.add(firstStudent);\n myStudentsArrayList.add(secondStudent);\n myStudentsArrayList.add(thirdStudent);\n\n for (Student s : myStudentsArrayList) {\n System.out.println(s);\n }\n\n PointsComparator myPointsComparator = new PointsComparator(); // see it in the Class PointsComparator includes function COMPARATOR for Student class\n myStudentsArrayList.sort(myPointsComparator);\n\n System.out.println(\"\\nSorted by exam's points: \");\n for (Student s : myStudentsArrayList) {\n System.out.println(s);\n }\n\n StudentComparatorByName myStudentComparator = new StudentComparatorByName();\n myStudentsArrayList.sort(myStudentComparator);\n\n System.out.println(\"\\nSorted by Name: \");\n for (Student s : myStudentsArrayList) {\n System.out.println(s);\n }\n }", "title": "" }, { "docid": "67fd7c6a1f854049260c1baa3fc8063a", "score": "0.55734134", "text": "public ArrayList<?> alphaSelectionSort(ArrayList<?> playerList)\r\n {\r\n \t for (int i = 0; i < playerList.size() - 1; i++) \r\n { \r\n int min = i; \r\n for (int j = i+1; j < playerList.size(); j++){ \r\n if ((((NimPlayer) playerList.get(j)).getUserName()).compareTo(\r\n \t\t ((NimPlayer) playerList.get(min)).getUserName()) <0){ \r\n min = j;//searching for min \r\n } \r\n } \r\n Collections.swap(playerList, i, min);\r\n } \r\n \t\r\n \treturn playerList;\r\n }", "title": "" }, { "docid": "cbcfd6b036da1f62ca801e8fd442c532", "score": "0.55709594", "text": "@Override\r\n\t\t\tpublic int compare(PlayerData o1, PlayerData o2) {\n\t\t\t\tint p1 = o1.getNumberOfVictoryPoints();\r\n\t\t\t\tint p2 = o2.getNumberOfVictoryPoints();\r\n\t\t\t\tif (p1 > p2) return -1;\r\n\t\t\t\tif (p1 < p2) return 1;\r\n\t\t\t\tint m1 = o1.getAmountOfMoney();\r\n\t\t\t\tint m2 = o2.getAmountOfMoney();\r\n\t\t\t\tif (m1 > m2) return -1;\r\n\t\t\t\tif (m1 < m2) return 1;\r\n\t\t\t\treturn 0;\r\n\t\t\t}", "title": "" }, { "docid": "cf2e1f037c4a3aef1e751e4dfa36a35f", "score": "0.5569031", "text": "public List<CountryModel> sortCountries() {\n\t\tPlayerModel currentPlayer = PlayerOperations.getInstance().currentPlayer(PlayerOperations.getInstance().getPlayerCounter());\n\t\tList<CountryModel> sortedList = new ArrayList<CountryModel>(currentPlayer.getPlayerCountryList());\n\t\tCollections.sort(sortedList, new SortCountriesWithArmies());\n\t\treturn sortedList;\n\t}", "title": "" }, { "docid": "28bfffc237c1caae85ef85ae0ab062a6", "score": "0.55613345", "text": "public void addPlayer(Player player) {\n\t\t// 1 Point\n\t\t// TODO Write your code here\n\t\tobj.add(leo)\n\t\tobj.add(melissa)\n\t\tobj.add(maria)\n\t\tobj.add(amanda)\n\t\tobj.add(john)\n\t\tfor (int i=1; i<=n; i++;)\n\t\t\ttopFivePlayers(i);\n\t}", "title": "" }, { "docid": "9fa653e1c91a0bd359ca4a4f09e1d92a", "score": "0.5560063", "text": "public String getSortedJsonMaxWicketsWithBestBowlingAvg() {\n\t\tList<CSVWickets> tempList = wicketsCSVList.stream().filter(entry -> entry.wickets != 0)\n\t\t\t\t.filter(entry -> entry.average != 0).collect(Collectors.toList());\n\t\tComparator<CSVWickets> bowlingComparator = Comparator.comparing(entry -> -entry.wickets);\n\t\tthis.sort(tempList, bowlingComparator.thenComparing(entry -> entry.average).reversed());\n\t\tString jsonSortedPlayers = new Gson().toJson(tempList);\n\t\treturn jsonSortedPlayers;\n\t}", "title": "" }, { "docid": "9f549cacd4f21bf8a97bfadfa07cd1fa", "score": "0.55523056", "text": "@Override public LinkedList<Pokemon> sortByAttack(boolean order) {\n LinkedList<Pokemon> collection = new LinkedList<Pokemon>();\n LinkedList<Integer> ATTACKs = new LinkedList<Integer>();\n\n for (LinkedList<HashNode> pokemonList : basedTable\n .getTable()) { // copy the ATTACKs of pokemons from hashTable to ATTACKs, about to be sorted\n if (pokemonList != null) {\n for (HashNode<String, Pokemon> pokemon : pokemonList) {\n ATTACKs.add(pokemon.getValue().getAttack());\n }\n }\n }\n if (order == true) { // in descending order\n Collections.sort(ATTACKs, Collections.reverseOrder());\n } else { // in ascending order\n Collections.sort(ATTACKs);\n }\n for (Integer ATTACK : ATTACKs) {\n for (LinkedList<HashNode> pokemonList : basedTable.getTable()) {\n if (pokemonList != null) {\n for (HashNode<String, Pokemon> node : pokemonList) {\n if (node != null && node.getValue().getAttack() == ATTACK && !collection\n .contains(node.getValue())) {\n collection.add(node.getValue());\n }\n }\n }\n }\n }\n return collection;\n }", "title": "" }, { "docid": "109da619a2ee6330d67fa739e74cc37b", "score": "0.5517815", "text": "public int compareTo(Player playerr) {\r\n\t\treturn playerr.pointsToList-Bomb.points;\r\n\t}", "title": "" }, { "docid": "c7b68efb6a0881143cbf05d8a123309e", "score": "0.5509987", "text": "public static ArrayList<ArrayList<Integer>> SortTable(ArrayList<ArrayList<Integer>> tableData)\n {\n int highestPoints = 0;\n int teamId = 0;\n int teamsProcessed = 0;\n ArrayList<ArrayList<Integer>> sortedTable = CreateEmptyTable();\n for(int i = 0; i < tableData.get(8).size(); i++)\n {\n if(teamsProcessed >= tableData.get(8).size())\n {\n break;\n }\n i = 0;\n highestPoints = tableData.get(8).get(i);\n teamId = tableData.get(0).get(i);\n for(int j = i + 1; j < tableData.get(8).size(); j++)\n {\n if(highestPoints < tableData.get(8).get(j))\n {\n highestPoints = tableData.get(8).get(j);\n teamId = tableData.get(0).get(j);\n }\n }\n \n for (int k = 0; k < 9; k++)\n {\n sortedTable.get(k).add(tableData.get(k).get(teamId - 1));\n tableData.get(k).set(teamId - 1, 0);\n }\n teamsProcessed++;\n }\n \n return sortedTable;\n }", "title": "" }, { "docid": "27d0cfb72338c6e746690e397d621976", "score": "0.5506541", "text": "public static Comparator<Player> getComparatorTotalScore () {\n\t\treturn new Comparator<Player>() {\n\t\t\t@Override\n\t\t\tpublic int compare(Player player1, Player player2) {\n\t\t\t\t// return >0 if player1 has more goals.\n\t\t\t\t// return 0 if player1 and player2 have same number of goals\n\t\t\t\t// return <0 if player2 has more goals.\n\t\t\t\treturn (player1.getSumGoals() - player2.getSumGoals())*(-1);\n\t\t\t\t// multiply by -1 so that descending order comes out.\n\t\t\t}\n\t\t};\n\t}", "title": "" }, { "docid": "c1ea12179bf41bd2e13d941a5ab32eaa", "score": "0.5503385", "text": "public void printTopFive() {\n if (!sorted) {\n sort();\n sorted = true;\n }\n for (int i = nodeAL.size() - 1; i > nodeAL.size() - 6; i--) {\n nodeAL.get(i).printNode();\n }\n }", "title": "" }, { "docid": "0920b460b1fb6662163ddab06fca99e6", "score": "0.5492425", "text": "public String getSortedJsonMaxAvgAndStrikeRate() {\n\t\tComparator<CSVRuns> battingComparator = Comparator.comparing(entry -> entry.average);\n\t\tthis.sort(runsCSVList, battingComparator.thenComparing(entry -> entry.strikeRate));\n\t\tString jsonSortedPlayers = new Gson().toJson(runsCSVList);\n\t\treturn jsonSortedPlayers;\n\t}", "title": "" }, { "docid": "d1cbd7753148957036ad9094a4274875", "score": "0.5486231", "text": "public List<String> getBestAllRounder() {\n\t\tComparator<CSVRuns> battingComparator = Comparator.comparing(entry -> entry.runs);\n\t\tComparator<CSVWickets> bowlingComparator = Comparator.comparing(entry -> entry.wickets);\n\t\tthis.sort(runsCSVList, battingComparator);\n\t\tthis.sort(wicketsCSVList, bowlingComparator);\n\t\tList<String> mostRunsPlayerList = runsCSVList.stream().limit(40).map(entry -> entry.playerName)\n\t\t\t\t.collect(Collectors.toList());\n\t\tList<String> mostWicketsPlayerList = wicketsCSVList.stream().limit(40).map(entry -> entry.playerName)\n\t\t\t\t.collect(Collectors.toList());\n\t\treturn mostRunsPlayerList.stream().distinct().filter(mostWicketsPlayerList::contains)\n\t\t\t\t.collect(Collectors.toList());\n\t}", "title": "" }, { "docid": "38491f7ee749ce3865305c8f64aa4185", "score": "0.54806167", "text": "public void calThePlayerScores(){\r\n\t\t for(AbstractGame game : games){//Each game can only be scored by the referee statistics\r\n\t\t\t game.getOffi().calScores(game);\r\n\t\t }\r\n\t\t for(Athletes ath : aths){\r\n\t\t\t System.out.println(ath + \" scores:\" +ath.getScore());\r\n\t\t }\r\n\t\t//Sort by fraction\r\n\t\t Collections.sort(aths, new Comparator<Athletes>() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic int compare(Athletes o1, Athletes o2) {\r\n\t\t\t\treturn o2.getScore() - o1.getScore();\r\n\t\t\t}\r\n\t\t });\r\n\t\t Athletes realWinner = aths.get(0);\r\n\t\t System.out.println(\"the realWinner is \"+realWinner);\r\n\t\t \r\n\t\t if(predictWinner == null){// the user does not predict so it do not execute following code \r\n\t\t\t return;\r\n\t\t }\r\n\t\t if(predictWinner.getAthID().equals(realWinner.getAthID())){\r\n\t\t\t System.out.println(\"Congratulations! your predict is correct\");\r\n\t\t }else{\r\n\t\t\t System.out.println(\"Sorry! your predict is inCorrect\");\r\n\t\t }\r\n\t }", "title": "" }, { "docid": "734569da1b7eaf6adad439a422ecfc8d", "score": "0.5466578", "text": "private ArrayList<HighscoreEntry> sort(ArrayList<HighscoreEntry> unsorted) {\n Collections.sort(unsorted, new Comparator<HighscoreEntry>() {\n @Override\n public int compare(HighscoreEntry o1, HighscoreEntry o2) {\n return o1.getScore() > o2.getScore() ? -1 : o1.getScore() == o2.getScore() ? 0 : 1;\n }\n });\n return unsorted;\n }", "title": "" }, { "docid": "f85340da85b2327a6cc9c65667474d82", "score": "0.5465933", "text": "@Override\n public int compare(Player p1, Player p2) {\n return p1.getRating() - p2.getRating();\n }", "title": "" }, { "docid": "c06a88b483624653e946298cd8953655", "score": "0.54593354", "text": "@Override\n\t\t\tpublic int compare(Player player1, Player player2) {\n\t\t\t\treturn (player1.getSumInfractions() - player2.getSumInfractions())*(-1);\n\t\t\t\t// multiply by -1 so that descending order comes out.\n\t\t\t}", "title": "" }, { "docid": "fb83981febf9d3bae2420b9b3e8033ee", "score": "0.54565036", "text": "public int compareTo(IhmCustomComparator o) {\n // Use standard compareTo\n if (sortCriteria != SORT_POINTS) {\n return super.compareTo(o);\n }\n\n // Cast stats ... (should be stats ;-)\n TeamStats other = (TeamStats) o;\n\n // Return values depending on ascending/descending sort order\n int smaller = -1;\n int bigger = 1;\n\n if (!ascending) {\n smaller = 1;\n bigger = -1;\n }\n\n // First check for points\n int otherPoints = other.getPoints();\n int ourPoints = this.getPoints();\n\n if (otherPoints != ourPoints) {\n if (otherPoints > ourPoints) {\n return smaller;\n } else {\n return bigger;\n }\n }\n\n // Then check difference between goalsFor & goalsAgainst\n int otherDiff = other.getGoalsDiff();\n int ourDiff = getGoalsDiff();\n\n if (otherDiff != ourDiff) {\n if (otherDiff > ourDiff) {\n return smaller;\n } else {\n return bigger;\n }\n }\n\n // Then check for goalsFor\n int otherGF = other.getGoalsFor();\n int ourGF = getGoalsFor();\n\n if (otherGF != ourGF) {\n if (otherGF > ourGF) {\n return smaller;\n } else {\n return bigger;\n }\n }\n\n // Last check for wins\n int otherWins = other.getGamesWon();\n int ourWins = getGamesWon();\n\n if (otherWins != ourWins) {\n if (otherWins > ourWins) {\n return smaller;\n } else {\n return bigger;\n }\n }\n\n // todo : Nothing left ?? Perhaps games between this teams ??\n\n return 0;\n // equal !!!!\n\n }", "title": "" }, { "docid": "e4b83056bc0d157df98a7302d6b5d161", "score": "0.54485214", "text": "public static void SortAtDistance(){\n\t\tint priority = bricklist.get(0).colorPriority;\n\t\tint priorityi = 0;\n\n\t\t/* first the amount of bricks with a color priority equal to the first brick are determined. */\n\t\tfor (int i=0; i < bricklist.size(); i++){\n\t\t\tif (bricklist.get(i).colorPriority == priority) {\n\t\t\t\tpriorityi = priorityi+1;\n\t\t\t}\n\t\t}\n\t\t\n\t\t/* for each brick, the distance from the brick to the robot is compared with the distance of the next brick in the list, with the same \n\t\t * color priority to the robot. If the distance is larger, the two bricks switch positions. This is repeated as many times as there are\n\t\t * bricks with the same color priority as the first brick. After that the list is sorted on distance.\n\t\t */\n\t\tfor (int i=0; i < priorityi; i++){\n\n\t\t\tfor (int j=0; j < priorityi-1; j++){\n\n\t\t\t\tif (nav.getPoseProvider().getPose().distanceTo(bricklist.get(j).waypoint) > nav.getPoseProvider().getPose().distanceTo(bricklist.get(j+1).waypoint)) {\n\t\t\t\t\tBrick brick = bricklist.get(j+1);\n\t\t\t\t\tbricklist.set(j+1, bricklist.get(j));\n\t\t\t\t\tbricklist.set(j,brick);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "9aebe4d70b5b95fbb3e3995832ff0f61", "score": "0.5440481", "text": "private void sort() {\n\t\tCollections.sort(records, (r1, r2) -> r2.score - r1.score);\n\t}", "title": "" }, { "docid": "84b684bf47a0c890cbf19a8bbfba4793", "score": "0.5435299", "text": "@Override\n\tpublic int compareTo(Score score) {\n\t\t\n\t\tint result = 0;\n\t\t\n\t\tif(points > score.getPoints()) {\n\t\t\t\n\t\t\tresult = 1;\n\t\t}\n\t\telse if(points < score.getPoints()) {\n\t\t\t\n\t\t\tresult = -1;\n\t\t}\n\t\t\n\t\treturn result;\n\t}", "title": "" }, { "docid": "ed124c45c9497e4f57958b1920306921", "score": "0.5420341", "text": "public ArrayList<Person> getTop5influencedBy() {\r\n\t\tArrayList<Person> ret = new ArrayList<>();\r\n\t\tif(this.top1influencedBy != null) { ret.add(this.top1influencedBy); }\r\n\t\tif(this.top2influencedBy != null) { ret.add(this.top2influencedBy); }\r\n\t\tif(this.top3influencedBy != null) { ret.add(this.top3influencedBy); }\r\n\t\tif(this.top4influencedBy != null) { ret.add(this.top4influencedBy); }\r\n\t\tif(this.top5influencedBy != null) { ret.add(this.top5influencedBy); }\r\n\t\treturn ret;\r\n\t}", "title": "" }, { "docid": "345d8bcf39ae270392c75778dbfb3d38", "score": "0.54178786", "text": "@Override\n\t\t\tpublic int compare(final Team team1, final Team team2){\n\t\t\t\treturn (team1.getSumPoints() - team2.getSumPoints())*(-1);\n\t\t\t\t// multiple by -1 so that descending order comes out.\n\t\t\t}", "title": "" }, { "docid": "44dfd4865bd2f1671dc1be26f5869c0e", "score": "0.54111797", "text": "public void takeTopCards() {\n\t\tArrayList<Integer> tempRoundCards = new ArrayList<Integer>();\r\n\t\tfor (int i = 0; i < numberOfPlayers; i++) {\r\n\t\t\ttempRoundCards.add(playerDecks[i].get(0));\r\n\t\t\tplayerDecks[i].remove(0);\r\n\t\t}\r\n\r\n\t\troundCards = tempRoundCards;\r\n\r\n\t}", "title": "" }, { "docid": "7394ab95531e13720369fde0a65735c1", "score": "0.5408859", "text": "public void sortList() {\n\t\tfor(int i = 0; i < myList.size(); i++) {\n\t\t\tfor(int n = 0; n < myList.size(); n++) {\t\t\t\t\n\t\t\t\tif(myList.get(i).getSalary() > myList.get(n).getSalary()) {\n\t\t\t\t\tPerson tempPerson = myList.get(i);\n\t\t\t\t\tPerson tempPerson2 = myList.get(n);\n\t\t\t\t\tmyList.set(i, tempPerson2);\n\t\t\t\t\tmyList.set(n, tempPerson);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "2fd4a01cac0866bb2fa32ff5cfc385c8", "score": "0.54017997", "text": "public void sortMovies() {\n\t\tCollections.sort(Movie.allMovies, new Comparator<Movie>() {\n public int compare(Movie m1, Movie m2) {\n return m2.avg_rating.compareTo(m1.avg_rating);\n }\n });\n\t\tscoreTopList = new ArrayList<>();\n\t\tfor (Movie movie:Movie.allMovies) {\n\t\t\tscoreTopList.add(movie);\n\t\t}\n\t\t\n\t\t// sort by release time desc\n\t\tCollections.sort(Movie.allMovies, new Comparator<Movie>() {\n public int compare(Movie m1, Movie m2) {\n return m2.released_at.compareTo(m1.released_at);\n }\n });\n\t\treleaseTopList = new ArrayList<>();\n\t\tfor (Movie movie:Movie.allMovies) {\n\t\t\treleaseTopList.add(movie);\n\t\t}\n\t\t\n\t\t// sort by average score date time desc\n\t\tCollections.sort(Movie.allMovies, new Comparator<Movie>() {\n public int compare(Movie m1, Movie m2) {\n return m2.avg_datetime.compareTo(m1.avg_datetime);\n }\n });\n\t\thotTopList = new ArrayList<>();\n\t\tfor (Movie movie:Movie.allMovies) {\n\t\t\thotTopList.add(movie);\n\t\t}\n\t}", "title": "" }, { "docid": "e78f10759a5de5627f978cd2c182658d", "score": "0.5398218", "text": "public int getPlayers(){\n\t\treturn top;\n\t}", "title": "" }, { "docid": "20983f82be6daaef7e5411824fa83457", "score": "0.5390448", "text": "public List<String> getBonusPlayers() {\n List<String> bonusPlayers = new ArrayList<>();\n int biggestSoFar = 0;\n for (Player player: getGamePlayers().values()) {\n if (player.getRoutesOwned().size() > biggestSoFar) {\n biggestSoFar = player.getRoutesOwned().size();\n }\n }\n for (Player player: getGamePlayers().values()) {\n if (player.getRoutesOwned().size() == biggestSoFar) {\n bonusPlayers.add(player.getUsername());\n }\n }\n return bonusPlayers;\n }", "title": "" }, { "docid": "1aed8e6f93147233d87db4157b41dca1", "score": "0.5389992", "text": "private void sortBidsByOpponentUtility(List<Bid> bids) {\n\t\ttry {\n\t\t\tbids.sort(new Comparator<Bid>() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic int compare(Bid bid0, Bid bid1) {\n\t\t\t\t\treturn Double.compare(estimateOpponentUtility(bid0),\n\t\t\t\t\t\t\testimateOpponentUtility(bid1));\n\t\t\t\t}\n\t\t\t});\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "2b8c3fe28a4cd33d0239e59eabeea890", "score": "0.53897166", "text": "@Test\n public void testTopScorers() {\n player = stats.search(\"Gretzky\");\n List<Player> top = stats.topScorers(1);\n assertEquals(player, top.get(0));\n }", "title": "" }, { "docid": "c83e87bc8d0cbde487a61b4c03cf8e6c", "score": "0.5386215", "text": "public void k_mostHappyCouples (ArrayList<Couples> couples, int n) {\n DecimalFormat df = new DecimalFormat(\"#.0000\");\n df.setRoundingMode(RoundingMode.CEILING);\n setPrintStream (\"K_MostHappy.txt\");\n couples.sort(Comparator.comparing(Couples::getHappiness));\n int last = couples.size();\n for (int i = 0; i < n; i++) {\n // System.out.println(i);\n System.out.println((i+1) + \": \" + couples.get(last-1-i).getGF().getName() + \" And \"+ couples.get(last-1-i).getBF().getName() +\" , Happiness Value \" + df.format(couples.get(last-1-i).getHappiness()));\n }\n }", "title": "" }, { "docid": "4f92567c4313bf17f3cbbc0163e6c888", "score": "0.5383031", "text": "public void sortByTime() {\n\t\tCollections.sort(playableList, new CmprTime());\n\t}", "title": "" }, { "docid": "d892bd9d1a0dd90d56103107771420b1", "score": "0.5378287", "text": "@Test\n public void testSortByPrice() throws Exception {\n List<Stationery> starterKit = new ArrayList<>(Stationery.STARTER_KIT);\n System.out.println(starterKit);\n starterKit.sort(new Stationery.PriceComparator());\n System.out.println(\"Sort by price:\");\n System.out.println(starterKit);\n\n for (int i = 1; i < starterKit.size(); i++) {\n Stationery s1 = starterKit.get(i-1);\n Stationery s2 = starterKit.get(i);\n assertTrue(s2.getPrice().compareTo(s1.getPrice()) > 0);\n }\n }", "title": "" }, { "docid": "3489afbb0e268a436b24303dac4c62d9", "score": "0.5361463", "text": "public LinkedList<Combat_Player> combatsort(LinkedList<Combat_Player> combatlist){\r\n\t\tCollections.sort(combatlist);\r\n\t\tCollections.reverse(combatlist);\r\n\t\treturn combatlist; \r\n\t}", "title": "" }, { "docid": "6c7008a98df2d886fc61764ac93322fc", "score": "0.53528845", "text": "@Override public LinkedList<Pokemon> sortByHp(boolean order) {\n LinkedList<Pokemon> collection = new LinkedList<Pokemon>();\n LinkedList<Integer> HPs = new LinkedList<Integer>();\n\n for (LinkedList<HashNode> pokemonList : basedTable\n .getTable()) { // copy the HPs of pokemons from hashTable to HPs, about to be sorted\n if (pokemonList != null) {\n for (HashNode<String, Pokemon> pokemon : pokemonList) {\n HPs.add(pokemon.getValue().getHp());\n }\n }\n }\n if (order == true) { // in descending order\n Collections.sort(HPs, Collections.reverseOrder());\n } else { // in ascending order\n Collections.sort(HPs);\n }\n for (Integer HP : HPs) {\n for (LinkedList<HashNode> pokemonList : basedTable.getTable()) {\n if (pokemonList != null) {\n for (HashNode<String, Pokemon> node : pokemonList) {\n if (node != null && node.getValue().getHp() == HP && !collection\n .contains(node.getValue())) {\n collection.add(node.getValue());\n }\n }\n }\n }\n }\n return collection;\n }", "title": "" }, { "docid": "a645ba7d29472fef9f0aa19307d85572", "score": "0.5349876", "text": "public ArrayList<Person> getTop5influenced() {\r\n\t\tArrayList<Person> ret = new ArrayList<>();\r\n\t\tif(this.top1influenced != null) { ret.add(this.top1influenced); }\r\n\t\tif(this.top2influenced != null) { ret.add(this.top2influenced); }\r\n\t\tif(this.top3influenced != null) { ret.add(this.top3influenced); }\r\n\t\tif(this.top4influenced != null) { ret.add(this.top4influenced); }\r\n\t\tif(this.top5influenced != null) { ret.add(this.top5influenced); }\r\n\t\treturn ret;\r\n\t}", "title": "" }, { "docid": "ed7776d76f9c52f6c34d44227d843e38", "score": "0.5341256", "text": "@Override\n public int compareTo(Player player) {\n return this.triunfos - player.triunfos;\n }", "title": "" }, { "docid": "c2758794b4e0b87839386f7620d8b44a", "score": "0.53406304", "text": "public void selectionSortforFavPet() {\n\t\tfor(int i=0; i<theClubs.size()-1; i++) {\n\t\t\tString clubMin= theClubs.get(i).getType();\n\t\t\tint min=i;\n\t\t\tfor(int j=i+1; j<theClubs.size(); j++) {\n\t\t\t\tString actual =theClubs.get(j).getType();\n\t\t\t\tif(actual.compareTo(clubMin)<0) {\n\t\t\t\t\tclubMin= actual;\n\t\t\t\t\tmin=j;\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\tClub temporal = theClubs.get(min);\n\t\t\ttheClubs.set(min, theClubs.get(i));\n\t\t\ttheClubs.set(i, temporal);\n\t\t}\n\t}", "title": "" }, { "docid": "972465aea8529a3a069d060f065e769d", "score": "0.5337109", "text": "List<Player> getPlayerWithHighestCard() {\r\n if (this.players.isEmpty()) return null;\r\n \r\n Queue<Player> copy = this.getCopyOfPlayers();\r\n List<Player> highest = new List<Player>();\r\n highest.append(copy.front());\r\n \r\n for (copy.dequeue(); !copy.isEmpty(); copy.dequeue()) {\r\n highest.toFirst();\r\n List<Card> highestCards = highest.getContent().getCards();\r\n highestCards.toFirst();\r\n int highestNumber = highestCards.getContent().getNumber();\r\n \r\n List<Card> currentCards = copy.front().getCards();\r\n currentCards.toFirst();\r\n int currentNumber = currentCards.getContent().getNumber();\r\n \r\n if(highestNumber < currentNumber) {\r\n highest = new List<Player>();\r\n highest.append(copy.front());\r\n }else if (highestNumber == currentNumber) {\r\n highest.append(copy.front());\r\n }\r\n \r\n }\r\n \r\n return highest;\r\n }", "title": "" }, { "docid": "d1e1ecf10134f4cbcde64e68270fd587", "score": "0.5333681", "text": "@Test\n public void orderScores(){\n Map<String, Integer> playerNamesScoreHashMap = new HashMap<String, Integer>();\n List<StatisticsGetDTO> rankScorePlayerNameList = new ArrayList<StatisticsGetDTO>();\n for (int i = 0; i < 6; i++){\n StatisticsGetDTO statisticsGetDTO = new StatisticsGetDTO();\n int score = 100 + i*100;\n statisticsGetDTO.setScore(score);\n char userName = (char)(i +65);\n statisticsGetDTO.setPlayerName(String.valueOf(userName));\n rankScorePlayerNameList.add(statisticsGetDTO);\n }\n\n\n List<StatisticsGetDTO> scores = logicService.orderStatisticsGetDTOList(rankScorePlayerNameList);\n\n //Check scores\n assertEquals(scores.get(0).getScore(), 600);\n assertEquals(scores.get(1).getScore(), 500);\n assertEquals(scores.get(2).getScore(), 400);\n assertEquals(scores.get(3).getScore(), 300);\n assertEquals(scores.get(4).getScore(), 200);\n assertEquals(scores.get(5).getScore(), 100);\n\n //Check names\n assertEquals(scores.get(0).getPlayerName(), \"F\");\n assertEquals(scores.get(1).getPlayerName(), \"E\");\n assertEquals(scores.get(2).getPlayerName(), \"D\");\n assertEquals(scores.get(3).getPlayerName(), \"C\");\n assertEquals(scores.get(4).getPlayerName(), \"B\");\n assertEquals(scores.get(5).getPlayerName(), \"A\");\n }", "title": "" }, { "docid": "16ddc8ad3a50394864849cab6700936b", "score": "0.5329716", "text": "public void displayPlayersDesc()\n {\n ArrayList<String> SortedNames = new ArrayList<>();\n for (int i = 0; i < tickets.size(); i++)\n {\n SortedNames.add(tickets.get(i).getName());\n }\n Collections.sort(SortedNames);\n Collections.reverse(SortedNames);\n System.out.println(\"\\n\" + SortedNames);\n\n }", "title": "" }, { "docid": "14f63ea668ae627ff79371052e055422", "score": "0.53231263", "text": "public List<CSVRuns> getPlayerHittingZeroHundredsAndFiftysWithBestAverage() {\n\t\tList<CSVRuns> playersWithZeroHundredsFiftys = runsCSVList.stream()\n\t\t\t\t.filter(entry -> entry.hundreds + entry.fiftys == 0).collect(Collectors.toList());\n\t\tComparator<CSVRuns> battingComparator = Comparator.comparing(entry -> entry.average);\n\t\tthis.sort(playersWithZeroHundredsFiftys, battingComparator);\n\t\treturn playersWithZeroHundredsFiftys;\n\t}", "title": "" }, { "docid": "2d1053a7ae0f4d7becad9621c7ca8cf3", "score": "0.53222656", "text": "public void countingSort() {\n ArrayList<Card> sorted = new ArrayList<Card>();\n for (int k = 0; k < myCards.size(); k++) {\n int numLessThan = 0;\n for (int j = 0; j < myCards.size(); j++) {\n if (myCards.get(k).outranks(myCards.get(j))) {\n numLessThan++;\n }\n }\n sorted.set(numLessThan, myCards.get(k));\n }\n myCards = sorted;\n }", "title": "" }, { "docid": "9d5203e13bccef59a3d602f983aea51a", "score": "0.532087", "text": "public ArrayList<Player> oneRound(ArrayList<Player> players) throws Exception{\n\t\t\n\t\t\n\t\tHandGestureComparator comparator=new HandGestureComparator();\n\t\t\n\t\tfor(Player p1:players) {\n\t\t\tif(p1.getGesture()==null) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tint scoreP1=p1.getScore();\n\t\t\tfor(Player p2: players) {\n\t\t\t\tif(p2.getGesture()==null) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tHandGesture gestureP1=p1.getGesture();\n\t\t\t\tHandGesture gestureP2=p2.getGesture();\n\t\t\t\tif(gestureP1==null||gestureP2==null) {\n\t\t\t\t\tthrow new Exception(\"null gesture\");\n\t\t\t\t}\n\t\t\t\tif(comparator.compare(gestureP1, gestureP2)==1) {\n\t\t\t\t\tscoreP1=scoreP1+1;\n\t\t\t\t\tp1.setScore(scoreP1);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn players;\n\t}", "title": "" }, { "docid": "0c8febd0a893d429ac856a742c533ba4", "score": "0.53184146", "text": "private void createRoundOrder() {\n\t\t// roundOrder.clear();\n\t\t// System.out.println(\"RO size post clear:\" + roundOrder.size());\n\t\troundOrder = players;\n\t\t// System.out.println(\"RO size post player:\" + roundOrder.size());\n\n\t\tCollections.sort(roundOrder, new PlayerComparator());\n\n\t\tactivePlayer = roundOrder.get(0);\n\t}", "title": "" }, { "docid": "17681912c9ec67637750261a267f7068", "score": "0.5314958", "text": "public static void top10List(){\n\t System.out.println(\"Type 'V' to view leaderboard or 'C' to continue:\");\n\t\tScanner scn = new Scanner(System.in);\n\t\tchar ch;\n\t\tch = scn.next().toUpperCase().charAt(0);\n\t\tPlayerOperator pO = new PlayerOperator();\n\t\t\n\t\ttry {\n\t\t\tif(ch == 'V') { ArrayList<Player> top10 = new ArrayList<Player>(pO.loadAllPlayers());}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "234824c6a460cbdb6bd9e0c926b0ca34", "score": "0.53093016", "text": "public void sortPoints() {\n\t\t// points sur l'images\n\t\tList<int[]> calPoints2 = new ArrayList<int[]>(20);\n\t\t// coordonnées\n\t\tList<Coord> calCoords2 = new ArrayList<Coord>(20);\n\n\t\t// public void transferPoint(int toTra) {\n\t\t// };\n\n\t\tint toTransfer;\n\t\ttoTransfer = getMaxPoint(-1, 1);\n\t\t// System.out.println(\"getMaxPoint(-1,1) = \" + toTransfer);\n\n\t\tif (toTransfer >= 0) {\n\t\t\tcalPoints2.add(calPoints.get(toTransfer));\n\t\t\tcalPoints.remove(toTransfer);\n\t\t\tcalCoords2.add(calCoords.get(toTransfer));\n\t\t\tcalCoords.remove(toTransfer);\n\t\t}\n\t\ttoTransfer = getMaxPoint(1, 1);\n\t\t// System.out.println(\"getMaxPoint(1,1) = \" + toTransfer);\n\t\tif (toTransfer >= 0) {\n\t\t\tcalPoints2.add(calPoints.get(toTransfer));\n\t\t\tcalPoints.remove(toTransfer);\n\t\t\tcalCoords2.add(calCoords.get(toTransfer));\n\t\t\tcalCoords.remove(toTransfer);\n\t\t}\n\t\ttoTransfer = getMaxPoint(1, -1);\n\t\tif (toTransfer >= 0) {\n\t\t\tcalPoints2.add(calPoints.get(toTransfer));\n\t\t\tcalPoints.remove(toTransfer);\n\t\t\tcalCoords2.add(calCoords.get(toTransfer));\n\t\t\tcalCoords.remove(toTransfer);\n\t\t}\n\t\ttoTransfer = getMaxPoint(-1, -1);\n\t\t// System.out.println(\"getMaxPoint(-1,-1) = \" + toTransfer);\n\t\tif (toTransfer >= 0) {\n\t\t\tcalPoints2.add(calPoints.get(toTransfer));\n\t\t\tcalPoints.remove(toTransfer);\n\t\t\tcalCoords2.add(calCoords.get(toTransfer));\n\t\t\tcalCoords.remove(toTransfer);\n\t\t}\n\t\t// le reste\n\t\tcalPoints2.addAll(calPoints);\n\t\tcalCoords2.addAll(calCoords);\n\n\t\t//\n\t\tcalPoints = calPoints2;\n\t\tcalCoords = calCoords2;\n\n\t}", "title": "" }, { "docid": "788f6d8b464c0b1b2d422feb499c4aeb", "score": "0.530754", "text": "public Playable sortByTime()\n\t{\n\t\tCollections.sort(playableList, new CmpByTime());\n\t\treturn null;\n\t}", "title": "" }, { "docid": "0cf73738dd1caec0fbc057f20fca5036", "score": "0.530708", "text": "public void sort() {\n java.util.Collections.sort(internalQueue, new ChunkCoordComparator(player.getHandle()));\n }", "title": "" }, { "docid": "4029add13a111afc212b858c4286765f", "score": "0.5300292", "text": "public List<CSVRuns> getPlayersWithMaxHundredsBestBattingAverage() {\n\t\tComparator<CSVRuns> battingComparator = Comparator.comparing(entry -> entry.hundreds);\n\t\tthis.sort(runsCSVList, battingComparator.thenComparing(entry -> entry.average));\n\t\treturn runsCSVList;\n\t}", "title": "" }, { "docid": "709870a85b13888fb51d7aab7551d5e8", "score": "0.5293933", "text": "private ArrayList<AirbnbListing> getTopListings(ArrayList<AirbnbListing> listings)\n {\n listings.sort(Comparator.comparing(AirbnbListing::getReviewsPerMonth));\n ArrayList<AirbnbListing> topListings = new ArrayList();\n if (listings.size() >=5) {\n int count = 5;\n while (count > 0) {\n topListings.add(listings.get((listings.size()-1) - count));\n count --;\n }\n return topListings;\n }\n else {\n return listings;\n }\n }", "title": "" }, { "docid": "a5e779226293c9b33cf51dcff62eef8d", "score": "0.5290292", "text": "public void sortScore(BoardItem score)\n {\n int i = 0;\n int sizeOfItems = this.ObjectItems.size();\n while (i < sizeOfItems)\n {\n if (score.getPosition() > this.ObjectItems.get(i).getPosition())\n {\n this.ObjectItems.add(i, score);\n break;\n }\n i++;\n }\n }", "title": "" }, { "docid": "594b50d9e2b8e11950d29336c8edc4f0", "score": "0.5285233", "text": "List<Song> findTop10ByOrderByRatingDesc();", "title": "" }, { "docid": "7b29eb44c1f67da6f7c6d446272569e3", "score": "0.5279583", "text": "private void sort() {\n\t\tPlayingCard temp;\n\t\tboolean swapped = true;\n\t\tint j = 0;\n\t\twhile (swapped) {\n\t\t\tswapped = false;\n\t\t\tj++;\n\t\t\tfor(int i = 0; i < hand.length - j; i++) {\n\t\t\t\tif(hand[i].getGameValue() < hand[i+1].getGameValue()) {\n\t\t\t\t\ttemp = hand[i];\n\t\t\t\t\thand[i] = hand[i+1];\n\t\t\t\t\thand[i+1] = temp;\n\t\t\t\t\tswapped = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "6d78bf14e37542c0c8f8689c28d4e7f9", "score": "0.5276274", "text": "List<Game> getAllOrderByTotalGoalsAndStartTime();", "title": "" }, { "docid": "94af4adfd48d7a601a782928de706e6f", "score": "0.52730536", "text": "private void sortPoems() {\n if (poems.size() == 0) return;\n\n Poems.sort(sort_order);\n activity.searchPoems();\n activity.scrollToTop();\n }", "title": "" }, { "docid": "e6498a7b58301dbfb7c13deaffd95423", "score": "0.52664435", "text": "private void showTopFiveFromDiscipline(){\n String chosenDiscipline = chooseDiscipline();\n\n //list used to store the members of the chosen discipline\n List<Member> disciplineMembers = new ArrayList<>();\n for (int i = 0; i < memberList.size(); i++) {\n if (memberList.get(i).getDiscipline().equals(chosenDiscipline)) {\n disciplineMembers.add(memberList.get(i));\n }\n }\n\n System.out.println(CYAN + \"Top 5 Swimmers from \" + chosenDiscipline + \":\" + RESET);\n\n //an array of doubles used to store the bestlaps of the members from the disciplineMembers list\n double[] sortedLaps = new double[disciplineMembers.size()];\n for (int i=0; i < disciplineMembers.size(); i++) {\n sortedLaps[i] = disciplineMembers.get(i).getBestLap();\n }\n\n //sort the array of doubles in ascending order\n Arrays.sort(sortedLaps);\n\n //horizontal divider for the table\n String divider = \"*───────────────────────────────────────────────*\";\n\n //format for the table output\n String tableFormat = \"│ %8s │ %25s │ %6s │%n\";\n\n //print the table header, using the table format\n System.out.println(divider);\n System.out.printf(tableFormat, \"Position\", \"Name\", \"Time\");\n System.out.println(divider);\n\n //iterate through each double in the sortedLaps\n for (int i = 0; i < 5; i++) { // show just top 5 from sortedLaps\n //iterate through each member of the discipline, and print the one whose bestLap matches the one in the sortedLaps array\n for (int j = 0; j < disciplineMembers.size(); j++) {\n if (sortedLaps[i] == disciplineMembers.get(j).getBestLap())\n {\n System.out.printf(tableFormat, i+1, disciplineMembers.get(j).getName(), String.format(\"%.2f\", disciplineMembers.get(j).getBestLap()));\n System.out.println(divider);\n\n //remove the member from that discipline, to avoid the double printing of a member in the table\n disciplineMembers.remove(disciplineMembers.get(j));\n break;\n }\n }\n }\n }", "title": "" }, { "docid": "4437317978d97664801d6d9b2ef42f8a", "score": "0.5265753", "text": "public void sortByBeers() {\n\t\tboolean isDone = false;\n\t\tCouple temp;\n\t\tint i;\n\t\t\n\t\twhile(isDone == false) {\n\t\t\tisDone = true;\n\t\t\tfor(i = 0; i < coupleList.size() - 1; i++) {\n\t\t\t\tif(coupleList.get(i).getHusband().getBeers() < coupleList.get(i+1).getHusband().getBeers()) {\n\t\t\t\t\tisDone = false;\n\t\t\t\t\ttemp = coupleList.get(i);\n\t\t\t\t\tcoupleList.set(i, coupleList.get(i+1));\n\t\t\t\t\tcoupleList.set(i+1, temp);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "067c1665fa6929ba14007a0d1a1160f8", "score": "0.52650017", "text": "public List<Matchup> getRecommendedMatchups(List<Player> players)\n {\n int G = 100; // total number of all games for all players\n int g = 0; // player one's games\n int p = 0; // player two'g games\n int t = 0; // number of times player1 and player2 have played together\n int T = 0; // number of times player1 and player2 SHOULD have played\n\n int[][] teamCiMatrix = new int[players.size()][players.size()];\n\n for (int i = 0; i < players.size(); i++)\n {\n for (int j = 0; j < players.size(); j++)\n {\n if (i == j)\n {\n teamCiMatrix[i][j] =Integer.MIN_VALUE;\n }\n else\n {\n int ci = 0;\n\n g = players.get(i).getGamesPlayed();\n p = players.get(j).getGamesPlayed();\n t = players.get(i).getGamesPlayedWith(players.get(j));\n\n if (G - g != 0)\n {\n T = (int) Math.ceil(((double) p / (G - g)) * g);\n ci = t - T;\n }\n teamCiMatrix[i][j] = ci;\n }\n }\n }\n\n List<Team> teams = new LinkedList<>();\n for (int i = 0; i < players.size(); i++)\n {\n for (int j = 0; j < players.size(); j++)\n {\n if (i != j)\n {\n double[] ci = new double[]{teamCiMatrix[i][j], teamCiMatrix[j][i]};\n Team newTeam = new Team();\n newTeam.addPlayer(players.get(i));\n newTeam.addPlayer(players.get(j));\n newTeam.setCI(mean(ci));\n if (!teams.contains(newTeam))\n {\n teams.add(newTeam);\n }\n }\n }\n }\n\n List<Matchup> matchups = new LinkedList<>();\n\n for (int i = 0; i < teams.size(); i++)\n {\n for (int j = 0; j < teams.size(); j++)\n {\n if (i != j && !teams.get(i).hasPlayer(teams.get(j).getPlayers().get(0)) && !teams.get(i).hasPlayer(teams.get(j).getPlayers().get(1)))\n {\n double[] cis = new double[2];\n cis[0] = teams.get(i).getCI();\n cis[1] = teams.get(j).getCI();\n Matchup newMatchup = new Matchup(teams.get(i), teams.get(j), mean(cis));\n if (!matchups.contains(newMatchup))\n {\n matchups.add(newMatchup);\n }\n }\n }\n }\n\n //Collection.sort(matchups);\n return matchups;\n }", "title": "" }, { "docid": "53fb3066e55f17bf33b4e4be1ba69c6e", "score": "0.5259098", "text": "public void displayTeams(){\n Collections.sort(league);\n\n for(S s : league){\n System.out.println(s.getName() + \": \" + s.ranking());\n }\n }", "title": "" }, { "docid": "1f2284232f5202392853deff3314714a", "score": "0.5258293", "text": "public void compare() {\n\t\tList<Integer> li=new ArrayList<Integer>();\n\t\tli.add(1);\n\t\tli.add(3);\n\t\tli.add(4);\n\t\tli.add(5);\n\t\tli.add(2);\n\t\t\n\t\tCollections.sort(li,(i1,i2)->(i1>i2)?-1:(i1<i2)?+1:0);\n\t\t//Collections.sort(li,(i1,i2)->i1.compareTo(i2));\n\t\t\n\t\tSystem.out.println(li);\n\t\t\n\t}", "title": "" }, { "docid": "99e888e0b8cef871036e8b454d17a0c5", "score": "0.52541983", "text": "@Override\n public int compareTo(PlayerCount o) {\n if (this.count < o.count) {\n return 1;\n } else if (this.count > o.count) {\n return -1;\n } else {\n return 0;\n }\n }", "title": "" }, { "docid": "502f1ffdf67e31badd52f537026a9eb8", "score": "0.52538663", "text": "public List<LeaderboardItem> getTop10Scores() throws Exception {\n try (PreparedStatement statement = this.dataSource.getConnection().prepareStatement(\n \"SELECT username, MAX(score) as highest_score FROM \"\n + \"(scores JOIN users ON scores.user_id = users.user_id) \"\n + \"GROUP BY scores.user_id ORDER BY highest_score DESC LIMIT 10;\")) {\n try (ResultSet result = statement.executeQuery()) {\n if (!result.first()) {\n return new ArrayList<>();\n }\n List<LeaderboardItem> top10 = new ArrayList<>();\n while (result.next()) {\n String username = result.getString(1);\n int highestScore = result.getInt(2);\n top10.add(new LeaderboardItem(username, highestScore));\n }\n return top10;\n }\n } catch (SQLException e) {\n e.printStackTrace(System.err);\n throw new Exception(errorMessage + e.getMessage());\n }\n }", "title": "" }, { "docid": "1a7a19fdd3dbee290576d01fd6df76b7", "score": "0.52513003", "text": "public void sortByName() {\n\t\tCollections.sort(playableList, new CmprName());\n\t}", "title": "" }, { "docid": "24ebf0fa1f854649cd448539d6c99951", "score": "0.5249906", "text": "public List<Player> getAllPlayers(){\n\t\tString query = \"SELECT * FROM Player\";\n\t\tResultSet result = DatabaseAccess.retrieve(query);\n\t\tArrayList<Player> ret = new ArrayList<Player>();\n\t\t\n\t\ttry {\n\t\t\twhile (result.next()) {\n\t\t\t\tPlayer Player = new Player(result.getInt(\"id\"), \n\t\t\t\t\t\tresult.getDouble(\"RankValue\"),\n\t\t\t\t\t\tresult.getString(\"PlayerTag\") \n\t\t\t\t\t\t);\n\t\t\t\t\n\t\t\t\tPlayer.addPlayerPoints(Integer.parseInt((result.getString(\"Points\"))));\n\t\t\t\t\n\t\t\t\tret.add(Player);\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn ret;\n\t}", "title": "" }, { "docid": "55c5ec03ef958c9f10d26b83c0f32eba", "score": "0.5247777", "text": "public ArrayList<Players> allPlayers() {\n\n ArrayList<Players> players = new ArrayList<>();\n String query = \"SELECT * FROM \" + TABLE_NAME + \" ORDER BY \"+ KEY_NUMBER+\" DESC\";\n SQLiteDatabase db = this.getWritableDatabase();\n Cursor cursor = db.rawQuery(query, null);\n Players player = null;\n\n if (cursor.moveToFirst()) {\n do {\n player = new Players();\n player.setMyName(cursor.getString(0));\n player.setMyScore(cursor.getString(1));\n players.add(player);\n } while (cursor.moveToNext());\n }\n return players;\n }", "title": "" }, { "docid": "7ace9cf008a2409f2a0f467e13eb07da", "score": "0.52161026", "text": "public ArrayList <Pets> getTop()\n {\n\n\n\n ArrayList<Pets> topPets = new ArrayList<>();\n String query =\"select * from \"+ConstantesDB.NOMBRE_TPETS+\" order by \"+ConstantesDB.TPETS_LIKES+ \" desc limit 5\";\n SQLiteDatabase db = this.getReadableDatabase();\n Cursor registros = db.rawQuery(query, null);\n\n while (registros.moveToNext())\n {\n Pets petActual = new Pets();\n petActual.setId(registros.getInt(0));\n petActual.setNombre(registros.getString(1));\n petActual.setLikes(registros.getInt(2));\n petActual.setMascota(registros.getInt(3));\n\n topPets.add(petActual);\n }\n db.close();\n return topPets;\n }", "title": "" }, { "docid": "e48e7ee91b03c5793a23d4d271c688ae", "score": "0.52066517", "text": "public List<Colleagues> findTopActorPairings() {\n\t\tList<Colleagues> topList = new ArrayList<Colleagues>();\n\t\tint mostMovies = 0; // most movies of a Colleague\n\t\tfor (int actor = 0; actor < keys.length; actor++) {\n\t\t\tif (isActor(actor) && (G.degree(actor) >= mostMovies)) {\n\t\t\t\t// skips actors that have been in less movies than current high\n\t\t\t\tColleagues topColleague = findTopColleague(actor);\n\t\t\t\tif (!(topColleague == null)) {// has a top colleague\n\t\t\t\t\tint mov = topColleague.numMoviesShared;\n\t\t\t\t\tif (mov > mostMovies) { // new high\n\t\t\t\t\t\ttopList.clear();\n\t\t\t\t\t\tmostMovies = mov;\n\t\t\t\t\t\ttopList.add(topColleague);\n\t\t\t\t\t}\n\t\t\t\t\tif ((mov == mostMovies) // same as current high\n\t\t\t\t\t\t\t&& topList.contains(topColleague) == false) {\n\t\t\t\t\t\ttopList.add(topColleague);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn topList;\n\t}", "title": "" }, { "docid": "2125eb26bc75608add3fe0d6d6fbe34f", "score": "0.5206096", "text": "private void sortInputTalks(ArrayList<Talk> input_talks) {\n\t\tCollections.sort(input_talks);\n\t\t\n\t\t// Input after sorting\n//\t\tSystem.out.println(\"\\nAfter sorting the input is:\");\n//\t\tfor (Talk tk1 : input_talks) {\n//\t\t\tSystem.out.println(tk1);\n//\t\t}\n\t}", "title": "" }, { "docid": "815b6e241cbef2d073792c59e4f1ad23", "score": "0.51932526", "text": "@Test\r\n\tpublic void sortTest(){\r\n\t\t\r\n\t\t//Create a list of inputs and test if they are ordered by priority\r\n\t\tInput i0 = new Input(holder0, 1);\r\n\t\tInput i1 = new Input(holder1, 2);\r\n\t\tInput i2 = new Input(holder2, 45);\r\n\t\tInput i3 = new Input(holder3, 72);\r\n\t\tList<Input> list = Arrays.asList(i3,i1,i2,i0);\r\n\t\tCollections.sort(list);\r\n\t\tAssert.assertEquals(Arrays.asList(i0,i1,i2,i3), list);\r\n\t}", "title": "" }, { "docid": "21e184e05f2a0390eab0fd7e311cf9b5", "score": "0.5188054", "text": "public void updateScoreboard() {\n\n // Get the wanted players in descending priority order\n ArrayList<WantedPlayer> wanted = new ArrayList<WantedPlayer>(players.values());\n Collections.sort(wanted);\n\n // Initialize the scoreboard if needed\n if (wantedList == null) {\n wantedList = Bukkit.getScoreboardManager().getNewScoreboard();\n }\n\n // Reset the objective if necessary\n if (obj != null) {\n obj.unregister();\n }\n\n // Create a new objective\n obj = wantedList.registerNewObjective(ChatColor.DARK_GREEN + \"\" + ChatColor.UNDERLINE + \"Wanted List\", \"dummy\");\n obj.setDisplaySlot(DisplaySlot.SIDEBAR);\n\n // Add the top 15 targets\n for (int i = 0; i < 15 && i < wanted.size(); i++) {\n WantedPlayer player = wanted.get(i);\n obj.getScore(Bukkit.getOfflinePlayer(player.getPlayerName())).setScore(player.getPriority());\n }\n }", "title": "" } ]
c04e9069aef12e5af8fa12ce31293365
Lifts the spinner, spins it, and lowers it as needed.
[ { "docid": "ded23180cd172579992a33a77e1629a2", "score": "0.52888095", "text": "public void run() {\n double bias = lifted ? 0.2 : -0.2;\n\n if (color != null) {\n if (getColor() != color) {\n spin.set(1);\n }\n } else {\n if (lifted) {\n spin.set(1);\n }\n }\n }", "title": "" } ]
[ { "docid": "df09f13519381f6c0b3de069e6f2c1bb", "score": "0.640999", "text": "Spinner createSpinner();", "title": "" }, { "docid": "70537a0e4189a7f8af990898bc31c84d", "score": "0.6213109", "text": "public void beginSpin(){\n //spinMotor.set(0.55);\n //spinMotor.setSelectedSensorPosition(0);\n checkEncoders();\n SmartDashboard.putString(\"begin\", \"\");\n spinMotor.set(TalonFXControlMode.PercentOutput, 0.5);\n }", "title": "" }, { "docid": "a99726bfd2ba0cdf300a4621ef82aa4a", "score": "0.616344", "text": "public void spinToLowGoalSpeed() {\n\t\tshooterWheels.set(-INTAKE_SPEED);\n\t\twheelsSpinning = true;\n\t}", "title": "" }, { "docid": "3b386fa7c72458e6c3e8d968a62d0aa7", "score": "0.60397613", "text": "@Override\n protected void end() {\n Robot.m_spinner.doubleDOWN();\n Robot.m_spinner.setSpinnerMotor(0);\n }", "title": "" }, { "docid": "50583f01f59bc19bf2c7b15703c6d42e", "score": "0.5917902", "text": "@Override\r\n\tpublic void spinStart(int spinNumber, Pocket pocket) {\n\t\tnew Thread(){\r\n\t\t\tpublic void run() {\r\n\t\t\t\tmenu.getWheelPanel().setBaseSpinPosition();\t\t\t\r\n\t\t\t\t//blabla block menu functions somehow\r\n\t\t\t}\r\n \r\n }.start();\r\n\t\t\r\n\t}", "title": "" }, { "docid": "4606fb6694e5bcadf3608f76451e81eb", "score": "0.5913444", "text": "public void spinToIntakeSpeed() {\n\t\tshooterWheels.set(INTAKE_SPEED);\n\t\twheelsSpinning = true;\n\t}", "title": "" }, { "docid": "4a81a9dd97cfa0ab1ab68a05a3e96bfe", "score": "0.5807706", "text": "@Override\n public void execute() {\n cpBag.wheelSpin(speed * 0.75);\n }", "title": "" }, { "docid": "e04e9315917fab7fb17efc6a964b53e5", "score": "0.57185686", "text": "void initSpinners();", "title": "" }, { "docid": "8ab2b0c0b430744d011ecce745e97328", "score": "0.5688043", "text": "public Spinner() {\r\n\t\tthis.generator = new Random();\r\n\t}", "title": "" }, { "docid": "2c3ed7c6b10e4abd23229b057656090e", "score": "0.56508726", "text": "private void IntakeHandler() {\r\n\t\ttalon.set(0.5);\r\n\t\tif (limitSwitch.get()) {\r\n\t\t\ttalon.set(0);\r\n\t\t\tsolenoid.set(true);\r\n\t\t\tmachineState = 0;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "2016e548102b11845e4046fc72d03200", "score": "0.56432647", "text": "public void lowerArm() {\r\n\t\t\tleftArm.setSpeed(0.075);\r\n\t\t\trightArm.setSpeed(0.075);\r\n\t\t\t\r\n\t\t\tTimer.delay(0.75);\r\n\t\t\t\r\n\t\t\tarmStop();\r\n\t\t}", "title": "" }, { "docid": "883fcda47b2be7d4ab5b390b7e131766", "score": "0.56368464", "text": "public void raiseToSwitch() {\r\n\t\t\tleftArm.setSpeed(0.6);\r\n\t\t\trightArm.setSpeed(0.6);\r\n\t\t\t\r\n\t\t\tTimer.delay(0.5);\r\n\t\t\t\r\n\t\t\tholdArm();\r\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "6e502ad3eab6f81fbeb52977af48d8c8", "score": "0.5590043", "text": "public void AutoRing0() {\n autonomousMoveForward(2200);\n\n //Drop the wobble\n autonomousMoveArmDown(50);\n wait(2000);\n clamp.CloseOrOpen(true);\n autonomousMoveBackward(500);\n holdArmUp();\n wait(2000);\n autonomousStrafeRight(600);\n autonomousMoveForward(800);\n }", "title": "" }, { "docid": "d5bf40281dc287d15b83115d5e125fe2", "score": "0.5564902", "text": "public void AutoRing4() {\n autonomousStrafeLeft(150);\n\n //Move Kiwi to the desired block\n autonomousMoveForward(4000);\n\n //Drop the wobble\n autonomousMoveArmDown(50);\n wait(2000);\n clamp.CloseOrOpen(true);\n holdArmUp();\n\n //Move Kiwi to the launch zone\n autonomousMoveBackward(1700);\n }", "title": "" }, { "docid": "4ba5099060b305bde02d4cb605305581", "score": "0.55344254", "text": "@Override\n\t\t\tpublic boolean onTouch(View v, MotionEvent event) {\n\t\t\t\tspinReferenceid.setSelection(0);\n\t\t\t\treturn false;\n\t\t\t}", "title": "" }, { "docid": "8193f6a213cee153ccf80cd920aef5bd", "score": "0.55117494", "text": "public void Intake() {\n if (sticky.getRawButton(InAnalogInput)) {\n inRun.set(0.65);// in\n } else if (sticky.getRawButton(C)) {\n inRun.set(-0.5);// out\n } else {\n inRun.set(0.0);\n }\n }", "title": "" }, { "docid": "d1aa842e94656a0e168f9c169d8e093a", "score": "0.5494057", "text": "@Override\n public void onClick(View v) {\n ivOk.setVisibility(View.INVISIBLE);\n mDashSpinner.start();\n }", "title": "" }, { "docid": "b8256b1cbd544d81458c46dc3d6cbde6", "score": "0.5483204", "text": "public void spin(spinMode mode)\n\t{\n\t\tswitch(mode){\n\t\tcase INTAKE:\n\t\t\tleftFlyWheel.spin(-.7);\n\t\t\trightFlyWheel.spin(.7);\n\t\t\tbreak;\n\t\tcase EJECT:\n\t\t\tleftFlyWheel.spin(1);\n\t\t\trightFlyWheel.spin(-1);\n\t\t\tbreak;\n\t\tcase STOP:\n\t\t\tleftFlyWheel.spin(0);\n\t\t\trightFlyWheel.spin(0);\n\t\t\tbreak;\n\t\t}\n\t}", "title": "" }, { "docid": "8d3d1b6b6687abfa2a4d5d6b2266b878", "score": "0.54733026", "text": "private void showSpinner() {\n if (!showSpinnerPending) {\n spinner.postDelayed(() -> {\n if (showSpinnerPending) {\n showSpinnerPending = false;\n spinner.setVisibility(View.VISIBLE);\n }\n }, 100);\n showSpinnerPending = true;\n }\n }", "title": "" }, { "docid": "5d9f72acc0f47f493dfcbe649b7bb5e9", "score": "0.5455044", "text": "public void raiseToScale() {\r\n\t\t\tleftArm.setSpeed(0.6);\r\n\t\t\trightArm.setSpeed(0.6);\r\n\t\t\t\r\n\t\t\tTimer.delay(1.0);\r\n\t\t\t\r\n\t\t\tholdArm();\r\n\t\t}", "title": "" }, { "docid": "3bbbb630f9c51478726a68e6a00364e5", "score": "0.5448866", "text": "protected void extendGlyphter () throws InterruptedException {\n //the distance that the motor is ran before the springs take over\n int encoderDist = 800;\n //change in encoder clicks per loop\n int speed;\n int lastPos = 0;\n //measures the amount of stall\n int stallCount = 0;\n\n motorLifter.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n motorLifter.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n\n motorLifter.setPower(0.3);\n while(Math.abs(motorLifter.getCurrentPosition()) < Math.abs(encoderDist)) {\n speed = Math.abs(motorLifter.getCurrentPosition()) - lastPos;\n if(speed < 3) {\n stallCount++;\n }\n if(stallCount > 50) {\n motorLifter.setPower(-0.3);\n }\n lastPos = Math.abs(motorLifter.getCurrentPosition());\n Thread.sleep(10);\n }\n motorLifter.setPower(0);\n }", "title": "" }, { "docid": "2a67232492e0131e3afe5b1ff4f7beb4", "score": "0.54015285", "text": "private void setupSpinner() {\n // Setup the adapter\n Spinner spinner = findViewById(R.id.spinner_type);\n ArrayAdapter<CharSequence> adapter = ArrayAdapter.createFromResource(this, R.array.types, android.R.layout.simple_spinner_item);\n adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n spinner.setAdapter(adapter);\n\n // Add a selection listener\n spinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n type = position == 0 ? Type.DRINK : Type.FOOD;\n }\n\n @Override\n public void onNothingSelected(AdapterView<?> parent) {}\n });\n\n // Set the preselection\n spinner.setSelection(type == Type.DRINK ? 0 : 1);\n }", "title": "" }, { "docid": "57e01e3b13ff3679d63e4b3c723dc6fc", "score": "0.5394698", "text": "@Override\n public void onClick(View v) {\n coin = true;\n spinningThread.start();\n }", "title": "" }, { "docid": "579403d4df2a6e66e1d10566683e92a1", "score": "0.53933007", "text": "public void spinINfinitly()\n {\n RotateAnimation spiner = new RotateAnimation(0, 360f,\n Animation.RELATIVE_TO_SELF, 0.5f,\n Animation.RELATIVE_TO_SELF, 0.5f);\n spiner.setInterpolator(new LinearInterpolator());\n spiner.setDuration(10000);\n spiner.setRepeatCount(Animation.INFINITE);\n mPointer.startAnimation(spiner);\n }", "title": "" }, { "docid": "15458fcba287b7a90bf73b8da7ba88c5", "score": "0.53776634", "text": "public void intakeLift() {\n double ball = 148.6;\n\n // Needed to be reversed because idiots\n if (sticky.getRawButton(B) && !upLimitIntake) {\n x52InLiftOverride = true;\n inLift.set(1);// down\n thing = 0;\n } else if (sticky.getRawButton(A) && !lowLimitIntake) {\n x52InLiftOverride = true;\n inLift.set(-1);// up\n thing = 0;\n } else {\n x52InLiftOverride = false;\n inLift.set(0.0);\n }\n\n if (sticky.getRawButton(button) && thing == 0) {\n thing = 1;\n } else if (!sticky.getRawButton(button) && thing == 1) {\n thing = 2;\n } else if (sticky.getRawButton(button) && thing == 2) {\n thing = 3;\n } else if (!sticky.getRawButton(button) && thing == 3) {\n thing = 0;\n }\n if (thing == 1 || thing == 2) {\n if (intakePosition < ball - 3 || intakePosition > ball + 3) {\n inLift.set(simpleSpeed(intakePosition, ball, 50));\n } else {\n inLift.set(0.0);\n }\n // inLift.set( Speed(intakePosition, ball, 25, 1) );\n }\n if (intakePosition < ball - 3) {\n ballPos = false;\n } else if (intakePosition > ball + 3) {\n ballPos = false;\n } else {\n ballPos = true;\n }\n SmartDashboard.putBoolean(\"Intake Position\", ballPos);\n }", "title": "" }, { "docid": "2713cd2a0c6125422fc9bf251a0d9415", "score": "0.53694266", "text": "private void mapSpinnerSetup(){\r\n\t\tString [] items = null;\r\n\t\tif(eighteenHoleRound) {\r\n\t\t\titems = new String[18];\r\n\t\t\tfor(int x = 1; x < 19; x++) {\r\n\t\t\t\titems[x-1] = \"Hole \" + Integer.toString(holeNumberText[x]);\r\n\t\t\t}\r\n\t\t}\r\n\t\telse{\r\n\t\t\titems = new String[9];\r\n\t\t\tfor(int x = 1; x < 10; x++) {\r\n\t\t\t\titems[x-1] = \"Hole \" + Integer.toString(holeNumberText[x]);\r\n\t\t\t}\r\n\t\t}\r\n\r\n \tSpinner spinner = (Spinner) findViewById(R.id.pastmapspinner);\r\n \t\r\n \tArrayAdapter<String> adapter = new ArrayAdapter<String>(PastRoundMap.this, android.R.layout.simple_spinner_item, items);\r\n \tadapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\r\n \tspinner.setAdapter(adapter);\r\n \t\r\n \t//Sets the map location to the correct hole when the hole number is changed\r\n \tspinner.setOnItemSelectedListener(new OnItemSelectedListener() {\r\n \t\tpublic void onItemSelected(AdapterView<?> parent, View view, int pos, long id) {\r\n \t\t\tsetMapLocation(pos+1);\r\n\t\t\t}\r\n\r\n\t\t\tpublic void onNothingSelected(AdapterView<?> arg0) {\r\n\t\t\t}\r\n \t}); \t\r\n\t}", "title": "" }, { "docid": "f9f56408c73c4765e41d5595400b4aff", "score": "0.5349433", "text": "private void switchLiftAndShoot() {\n lift.up(true);\n sleep(500); \n lift.up(false);\n\n /* TODO: Keeler what the hell do I set the speed & wait \n * and are positive speeds in or out */\n intake.setSpeed(1, 1);\n sleep(1000);\n intake.setSpeed(0, 0);\n }", "title": "" }, { "docid": "20abadb6f45332b3ade0ca7ed80a4628", "score": "0.53485006", "text": "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n riskLevelSpinnerSelected = position != SPINNER_INITIAL_POSITION;\n\n }", "title": "" }, { "docid": "0ebee7c72179ea5a81a54fb2d4260908", "score": "0.5337688", "text": "private void scaleLiftAndShoot() {\n lift.up(true);\n sleep(1000); \n lift.up(false);\n\n /* TODO: Keeler what the hell do I set the speed & wait \n * and are positive speeds in or out */\n intake.setSpeed(1, 1);\n sleep(1000);\n intake.setSpeed(0, 0);\n }", "title": "" }, { "docid": "04a22215b52cd044a928a4598211ce78", "score": "0.53286594", "text": "void spinDisc();", "title": "" }, { "docid": "37fad5c60d2c69c4b644b5b47e37193c", "score": "0.53228617", "text": "public void setupTraderSpinner() {\n traderSpinner = findViewById(R.id.traderSpinner);\n tAdapter = new ArrayAdapter<>(getApplicationContext(), R.layout.traderlayout, traders);\n traderSpinner.setAdapter((SpinnerAdapter) tAdapter);\n traderSpinner.setOnItemSelectedListener(new OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n getQuestsBasedOnTraderSelection(traders[position]);\n\n }\n\n @Override\n public void onNothingSelected(AdapterView<?> parent) {\n\n }\n });\n }", "title": "" }, { "docid": "c13b63687785057b986661254a9188c9", "score": "0.52810043", "text": "public void AutoRing1() {\n autonomousMoveForward(3000);\n autonomousStrafeRight(1150);\n\n //Drop the wobble\n autonomousMoveArmDown(50);\n wait(2000);\n clamp.CloseOrOpen(true);\n wait(1000);\n holdArmUp();\n wait(3000);\n\n //Move Kiwi to the launch zone\n autonomousStrafeLeft(500);\n autonomousMoveBackward(500);\n }", "title": "" }, { "docid": "d03d1bab8679cc0ed1558f6c1d8a2eac", "score": "0.52487254", "text": "public void setSpinners(){\n String[] roomItems = new String[]{Card.BALLROOM.getName(),Card.BILLIARD_ROOM.getName(), Card.CONSERVATORY.getName(),\n Card.DINING_ROOM.getName(), Card.HALL.getName(), Card.KITCHEN.getName(), Card.LIBRARY.getName(), Card.LOUNGE.getName(), Card.STUDY.getName()};\n String[] weaponItems = new String[]{Card.CANDLESTICK.getName(), Card.KNIFE.getName(), Card.LEAD_PIPE.getName(), Card.REVOLVER.getName(), Card.ROPE.getName(),Card.WRENCH.getName()};\n String[] suspectItem = new String []{Card.MR_GREEN.getName(), Card.COL_MUSTARD.getName(),Card.MRS_PEACOCK.getName(), Card.PROF_PLUM.getName(), Card.MISS_SCARLET.getName(), Card.MRS_WHITE.getName()};\n ArrayAdapter<String> roomAdapter = new ArrayAdapter<String>(myActivity, android.R.layout.simple_spinner_dropdown_item, roomItems);\n ArrayAdapter<String> weaponAdapter = new ArrayAdapter<String>(myActivity, android.R.layout.simple_spinner_dropdown_item, weaponItems);\n ArrayAdapter<String> suspectAdapter = new ArrayAdapter<String>(myActivity,android.R.layout.simple_spinner_dropdown_item, suspectItem );\n\n roomSpinner.setAdapter(roomAdapter);\n weaponSpinner.setAdapter(weaponAdapter);\n suspectSpinner.setAdapter(suspectAdapter);\n\n submitButton.setEnabled(true);\n }", "title": "" }, { "docid": "4aa46a420846c4c14876c51de6dee2e3", "score": "0.5233109", "text": "@Override\r\n\tpublic void callStateRinging() {\n\t\t\r\n\t}", "title": "" }, { "docid": "84c98469e483d32623133de8b10266d9", "score": "0.5215386", "text": "public void spinLeft() {\n\t\tthis.direction = this.direction.left();\n\t}", "title": "" }, { "docid": "e86a668f8e97143e140be043078e5c7d", "score": "0.52112645", "text": "public static void lower(){\n \t\n \tNXTSlave.clawArm.setSpeed(ARMSPEED);\n \tNXTSlave.clawArm.forward();\n\t \n\t try{Thread.sleep(RAISETIME);}catch(Exception e){}\n\t NXTSlave.clawArm.setSpeed(0);\n }", "title": "" }, { "docid": "e819585e9db9446b41c97cb9abdfee0c", "score": "0.52015704", "text": "public void setSpinner()\n {\n productList.add(\"ALL\"); // To add an option to select calculation for all the items\n ArrayAdapter<String> adapter = new ArrayAdapter<String>(this,R.layout.spinner_item, productList);\n adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n spinnerItemSelect.setAdapter(adapter);\n\n }", "title": "" }, { "docid": "32d53e26be4e6c3bf61e4052fbae1dfe", "score": "0.51756066", "text": "public void lowBarAndScore() {\n\t\tif (m_step == 0) {\n\t\t\tm_drives.resetEncoders();\n\t\t\tm_drives.brakesOff();\n\t\t\tm_drives.resetNavX();\n\t\t\tm_timer.start();\n\t\t\tm_timer.reset();\n\t\t\tm_step++;\n\t\t} else if (m_step == 1) {\n\t\t\tif (!m_pickup.goTo(Constants.PICKUP_ARM_DOWN + 0.002, 1.0) || m_timer.get() > 3.0) {\n\t\t\t\tm_pickup.setArmSpeed(0.0, true);\n\t\t\t\tm_timer.stop();\n\t\t\t\tm_step++;\n\t\t\t}\n\t\t} else if (m_step == 2) {\n\t\t\tif (m_drives.driveStraight(233.0, 0.65)) {\n\t\t\t\tm_drives.setSpeed(0.0);\n\t\t\t\tm_drives.resetNavX();\n\t\t\t\tm_step++;\n\t\t\t}\n\t\t} else if (m_step == 3) {\n\t\t\tif (m_drives.turnToAngle(64, 0.5)) {\n\t\t\t\tm_drives.setSpeed(0.0);\n\t\t\t\tm_drives.resetEncoders();\n\t\t\t\tm_drives.resetNavX();\n\t\t\t\tm_step++;\n\t\t\t}\n\t\t} else if (m_step == 4) {\n\t\t\tif (m_drives.driveStraight(79.0, 0.65)) {\n\t\t\t\tm_drives.setSpeed(0.0);\n\t\t\t\tm_pickup.eject();\n\t\t\t\tm_drives.brakesOff();\n\t\t\t\tm_timer.start();\n\t\t\t\tm_timer.reset();\n\t\t\t\tm_step++;\n\t\t\t}\n\t\t} else if (m_step == 5) {\n\t\t\tm_pickup.eject();\n\t\t\tif (m_timer.get() > 1.0) {\n\t\t\t\tm_timer.stop();\n\t\t\t\tm_step++;\n\t\t\t}\n\t\t} else {\n\t\t\tm_pickup.intake(false);\n\t\t\tif (m_pickup.lineBroken()) {\n\t\t\t\tm_timer.start();\n\t\t\t\tm_timer.reset();\n\t\t\t\tm_step--;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "2966e6a87d580c9fdf2fdba863731168", "score": "0.51590055", "text": "private void spin(final Robot robot) {\n RawMotorCommand.sendCommand(robot, leftMotorDirection, 100, rightMotorDirection, 100);\n\n // Send delayed message on a handler to turn of color\n final Handler handler = new Handler();\n handler.postDelayed(new Runnable() {\n public void run() {\n // turn of color and randomize if the randomize flag is set\n spin(robot);\n }\n // stall for 200 ms\n }, 200);\n }", "title": "" }, { "docid": "864d90a8374b9fc3585a237780ef4697", "score": "0.51484305", "text": "private void startEditMode() {\n\t\tspinnerRoom.setVisibility(View.GONE);\n\t\tspinnerProcess.setVisibility(View.GONE);\n\t\tthis.editMode = true;\n\t}", "title": "" }, { "docid": "5d4c6079233c501711a15de7d8629dea", "score": "0.510736", "text": "public void spinToShootSpeed() {\n\t\tshooterWheels.set(SHOOT_SPEED);\n\t\twheelsSpinning = true;\n\t}", "title": "" }, { "docid": "ddbbb7d2f01f8dca440de596b1db724e", "score": "0.50954074", "text": "private void updateClubSpinner() {\n Log.d(TAG, \"Update club spinner called\");\n clubAdapter.clear();\n clubAdapter.addAll(mClubList);\n int pos = findClubPositionById(mClubList, clubId);\n if (pos < 0) {\n clubId = -1;\n eventId = -1;\n SharedPreferences.Editor editor = sharedPref.edit();\n editor.putInt(SELECTED_CLUB_KEY, clubId);\n editor.putInt(SELECTED_EVENT_KEY, eventId);\n editor.apply();\n\n // Callback to parent activity\n if (mCallback != null)\n mCallback.onEventIdChange(eventId);\n\n // Disable get events\n getEvents.setEnabled(false);\n } else {\n clubSpinner.setSelection(pos);\n\n // Enable get events\n getEvents.setEnabled(true);\n }\n }", "title": "" }, { "docid": "1e54af440d2f29dad60afd79ed58ad13", "score": "0.5093604", "text": "@Override\r\n\tpublic void onItemSelected(AdapterView<?> parent, View view, int position,\r\n\t\t\tlong id) {\n\tparent.setSelection(position);\r\n Log.d(TAG,\"spinner clicked\");\r\n\t}", "title": "" }, { "docid": "c494d9b8f8e11b904e34080b3fa0258c", "score": "0.5080794", "text": "public static void spin(double speed) {\r\n\t\tRobot.canTalonIntakeLeft.set(speed);\r\n\t\tRobot.canTalonIntakeRight.set(-speed);\r\n\t\t\r\n\t}", "title": "" }, { "docid": "ce8790c56c9e88516e373777d57f4909", "score": "0.50759697", "text": "public void liftArm() {\r\n\t\t\tleftArm.setSpeed(0.6);\r\n\t\t\trightArm.setSpeed(0.6);\r\n\t\t\t\r\n\t\t\t\tTimer.delay(0.1);\r\n\t\t\t\r\n\t\t\tlowerArm();\r\n\t\t}", "title": "" }, { "docid": "6a6753ff907b2126f4514501e228e3c7", "score": "0.5064985", "text": "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n skillLevelSpinnerSelected = position != SPINNER_INITIAL_POSITION;\n\n }", "title": "" }, { "docid": "1aed92132dbdf1fd459c6741c617958f", "score": "0.50605655", "text": "public void showScrubber() {\n if (scrubberScalingAnimator.isStarted()) {\n scrubberScalingAnimator.cancel();\n }\n scrubberPaddingDisabled = false;\n scrubberScale = 1;\n invalidate(seekBounds);\n }", "title": "" }, { "docid": "65907656eee837d1b966676929058041", "score": "0.5058863", "text": "public void low() {\n setValue(Gpio.LOW);\n }", "title": "" }, { "docid": "96496f26787f7df5b06d0b1f16d18e74", "score": "0.5051755", "text": "public void SpinStop()\n {\n turn_motor.set(ControlMode.PercentOutput, 0.0f);\n }", "title": "" }, { "docid": "27b86d3170d2aae92b48a9e850cf0bd1", "score": "0.50507826", "text": "@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tarqMisc.buzzerCtl(2, 300, 300);\n\t\t\t\t\t}", "title": "" }, { "docid": "36f7613d61196802915457bc3281c964", "score": "0.50433624", "text": "public void elevator() {\n\n if (sticky.getRawButton(thumbUp) && !upLimitElev) {\n Elevator.set(0.75);\n x52ElevOverride = true;\n } else if (sticky.getRawButton(thumbDown) && !lowLimitElev) {\n Elevator.set(-0.75);\n x52ElevOverride = true;\n } else {\n Elevator.set(0.0);\n x52ElevOverride = false;\n }\n }", "title": "" }, { "docid": "0656f64389e270f05df70821a00d43d6", "score": "0.5037021", "text": "public void lower() {\r\n\t\tmotorLifter.set(-1);\r\n\t}", "title": "" }, { "docid": "c4838a62385a37fe4ac8aef3ecb4d5ea", "score": "0.50294274", "text": "@Override\n public void lockPrevious() {\n findViewById(R.id.tournament_start_date).setEnabled(false);\n findViewById(R.id.tournament_finish_Date).setEnabled(false);\n teamsNumberSpinner.setEnabled(false);\n }", "title": "" }, { "docid": "d70b234f30d8657146f18ef474df96dd", "score": "0.5015137", "text": "@Override\n public void spinDisc(){\n System.out.println(\"A DVD spins at a rate of 570 - 1600 rpm.\");\n }", "title": "" }, { "docid": "d5173b33f1e1c0e2e60f2616585ba634", "score": "0.5010376", "text": "private void useAngle() {\n this.useTime = false;\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n skBarTime.setProgress(0);\n }\n });\n }", "title": "" }, { "docid": "44f93f38ae3addaeb80b7f6fa50c8f4a", "score": "0.5009237", "text": "@Override\r\n\t\t\tpublic void stateChanged(ChangeEvent e) {\n\t\t\t\tif((int)Spinnersafedistance.getValue()>200)\r\n\t\t\t\t{\r\n\t\t\t\t\tSpinnersafedistance.setValue(200);\r\n\t\t\t\t}\r\n\t\t\t\tif((int)Spinnersafedistance.getValue()<10)\r\n\t\t\t\t{\r\n\t\t\t\t\tSpinnersafedistance.setValue(10);\r\n\t\t\t\t}\r\n\t\t\t\tsafedistance=(int)Spinnersafedistance.getValue();\r\n\t\t\t}", "title": "" }, { "docid": "b89c8ed1aaa373e82c237b85298d9821", "score": "0.5000434", "text": "public void setSuggestSpinners() {\n String[] roomItems = new String[]{\"Current Room\"};\n String[] weaponItems = new String[]{Card.CANDLESTICK.getName(), Card.KNIFE.getName(), Card.LEAD_PIPE.getName(), Card.REVOLVER.getName(), Card.ROPE.getName(), Card.WRENCH.getName()};\n String[] suspectItem = new String[]{Card.MR_GREEN.getName(), Card.COL_MUSTARD.getName(), Card.MRS_PEACOCK.getName(), Card.PROF_PLUM.getName(), Card.MISS_SCARLET.getName(), Card.MRS_WHITE.getName()};\n ArrayAdapter<String> roomAdapter = new ArrayAdapter<String>(myActivity, android.R.layout.simple_spinner_dropdown_item, roomItems);\n ArrayAdapter<String> weaponAdapter = new ArrayAdapter<String>(myActivity, android.R.layout.simple_spinner_dropdown_item, weaponItems);\n ArrayAdapter<String> suspectAdapter = new ArrayAdapter<String>(myActivity, android.R.layout.simple_spinner_dropdown_item, suspectItem);\n\n roomSpinner.setAdapter(roomAdapter);\n weaponSpinner.setAdapter(weaponAdapter);\n suspectSpinner.setAdapter(suspectAdapter);\n }", "title": "" }, { "docid": "0565f981a8012db2f0434a99619e02ed", "score": "0.49998647", "text": "@Override\n public void end(boolean interrupted) {\n cpBag.wheelSpin(0);\n }", "title": "" }, { "docid": "389adf9bcc38340086585d3293fa1190", "score": "0.49942955", "text": "private void setSpinner(final Spinner spinner) {\n spinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n\n @Override\n public void onItemSelected(AdapterView<?> arg0, View arg1,\n int position, long id) {\n setSpinnerSelectionListener(position, spinner);\n mode = position;\n }\n\n @Override\n public void onNothingSelected(AdapterView<?> arg0) {\n\n }\n\n });\n }", "title": "" }, { "docid": "17e34a72bb1ec846aa7e8170593fca9b", "score": "0.4990673", "text": "private void fillSpinner() {\r\n\r\n Collections.sort(spinnerArray);\r\n ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, android.R.layout.simple_spinner_item, spinnerArray);\r\n adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\r\n spImage.setAdapter(adapter);\r\n }", "title": "" }, { "docid": "6f62802788fc1beff12d03bea9f65194", "score": "0.49868017", "text": "private void setupSpinner(boolean isTaskNew) {\n ArrayAdapter<CharSequence> adapter = ArrayAdapter.createFromResource(this,\n R.array.priority_array, android.R.layout.simple_spinner_item);\n // Specify the layout to use when the list of choices appears\n adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n // Apply the adapter to the spinner\n prioritySpinner.setAdapter(adapter);\n if (!isTaskNew) {\n priority = callingIntent.getIntExtra(\"priority\", 0);\n prioritySpinner.setSelection(priority);\n } else {\n prioritySpinner.setSelection(0);\n }\n prioritySpinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> adapterView, View view, int i, long l) {\n priority = prioritySpinner.getSelectedItemPosition();\n }\n\n @Override\n public void onNothingSelected(AdapterView<?> adapterView) {\n\n }\n });\n }", "title": "" }, { "docid": "bbf6f51796dc86202c0a880f186cb9d9", "score": "0.49756715", "text": "public void setValue (Integer value)\r\n {\r\n spinner.setValue(value);\r\n }", "title": "" }, { "docid": "d7dd6e38cc0699fd152cd0d0df6ca7f0", "score": "0.4975434", "text": "private void setupGameDifficultySpinner(){\n AppCompatSpinner gameDifficultySpinner = (AppCompatSpinner) findViewById(R.id.game_difficulty_spinner);\n\n ArrayAdapter<GameDifficulty> gameDifficultySpinnerAdapter = new ArrayAdapter<GameDifficulty>(this, android.R.layout.simple_spinner_item, GameDifficulty.values());\n gameDifficultySpinnerAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n gameDifficultySpinner.setAdapter(gameDifficultySpinnerAdapter);\n }", "title": "" }, { "docid": "cf518c0f2479b792407857be55bac173", "score": "0.49735567", "text": "@Override\n\tpublic void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\nsPosition=position;\nString item = parent.getItemAtPosition(position).toString();\t \n\t // Showing selected spinner item\n//Toast.makeText(parent.getContext(), \"Selected: \" + item, Toast.LENGTH_LONG).show();\n \n//////////////\n\nif (sPosition==1){ // OP load file\n\tUBO.clear();\n//\tbmparr.clear();\n\trunIt();\n//\tString path1=\"DILE\";\n//\tString file=\"view1.png\";\n//\tLoadBitmapFile LBF=new LoadBitmapFile(ScreenWidth,ScreenHeight);\n//\tmyBitmap=LBF.loadBitMap( path1,file);\n//\tGO1.putBitmap(myBitmap);\n//\tiv.setImageBitmap(myBitmap);\n}\n\n\nif (sPosition==15){\n\tBitmap b=UBO.pop();\n\n\t if (null!=b){\n\t\t myBitmap=b; \n\t\t GO1.putBitmap(myBitmap);\n\t\t iv.setImageBitmap(myBitmap);\n\t\t spinner.setSelection(0);\n\t\t tv.setText(\"Stack= \"+String.valueOf(UBO.getSize()-1));\n\t\t Toast.makeText(this,\"Un-done (\"+String.valueOf(UBO.getSize()-1)+\")\",Toast.LENGTH_SHORT).show();\n\n\t }\t\n\t else {\n\t\t Toast.makeText(this,\"Nothing to undo (\"+String.valueOf(UBO.getSize()-1)+\")\",Toast.LENGTH_SHORT).show();\n\t\t tv.setText(\"Stack empty\");\n\n\t }\n}\n\nif (sPosition == 2) {// OP=makegrey\n\trunIt();\n}\n\nif (sPosition == 5) {// OP=snow\n\trunIt();\t\n\t\n}\t\t\n\n//if (sPosition == 6) {// OP=sharpen\n//\tparams[1]=String.valueOf(3);\n//\trunIt();\t\n//\t}\t\n\nif (sPosition == 7) {// OP=invert\n\trunIt();\n\t}\t\t\n\nif (sPosition == 8) {// OP=flip hor\n\trunIt();\n\t}\t\nif (sPosition == 9) {// OP=flip ver\n\trunIt();\n\t}\t\n\nif (sPosition == 10) {// OP=mean\n\trunIt();\n\t}\t\n\nif (sPosition == 11) {// OP=emboss\n\trunIt();\n\t}\t\nif (sPosition == 17) {// OP=engrave\n\trunIt();\n\t}\nif (sPosition==14){ // add text\n\t\tUBO.push(myBitmap);\n\t\tsPosition=0;\n\t\tspinner.setSelection(0);\n\t\tshowAlertDialogCust1 sDC1 =new showAlertDialogCust1(context,7.16f);\n\t\tsDC1.getText(iv, GO1,upx,upy);\n\t} \n/////////////////\n\n\n\n\n\n\t}", "title": "" }, { "docid": "cade9510592557d7a209212ffe220356", "score": "0.49730244", "text": "public void lock()\n {\n screen.lock();\n }", "title": "" }, { "docid": "c28137f20e5a8384b7202bc0423c4991", "score": "0.4964329", "text": "public void setupSpinner() {\n Spinner cover_spinner = findViewById(R.id.cover_spinner);\n ArrayAdapter<CharSequence> adapter = ArrayAdapter.createFromResource(this, R.array.cover_types_array, R.layout.spinner_items);\n adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n cover_spinner.setAdapter(adapter);\n }", "title": "" }, { "docid": "59ce808c7579c3971c2654ee5605f93d", "score": "0.4934347", "text": "public int spin() {\r\n\t\treturn generator.nextInt(MAX_VALUE) + 1; // bound is exclusive\r\n\t}", "title": "" }, { "docid": "125c34a20d813f9180856e5804f2fc79", "score": "0.4930045", "text": "public void increaseLoadingAngle(double amount);", "title": "" }, { "docid": "e6a188bab96ef2dcee2358f002645fb8", "score": "0.49280578", "text": "public void lowGoal() {\n\t\tif (Pathfinder.intake.intakeUp()) {\n\t\t\tholder.set(false);\n\t\t\ttry {\n\t\t\t\tThread.sleep(1000);\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\tshooter.set(true);\n\t\t}\n\t}", "title": "" }, { "docid": "8ba9b227d91012b4670487b47e5ff6c7", "score": "0.49190828", "text": "public void m41281b() {\n av.c(new View[]{this.mGetTinderPlusBtn, this.mTinderPlusUpsellDivider});\n }", "title": "" }, { "docid": "e9c506710b4fbfa280c2a1b45e5d9d1d", "score": "0.4914993", "text": "@Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n financialGoalSpinnerSelected = position != SPINNER_INITIAL_POSITION;\n\n\n }", "title": "" }, { "docid": "f74f6dca36c69d73b7c3f07d7060a5bf", "score": "0.49104625", "text": "public void startIn(){\n \tintaker.set(1);\n }", "title": "" }, { "docid": "58ec4ce278f1b78e2b5d984549c18aff", "score": "0.49069417", "text": "@Override\n\tpublic void park() {\n\t\tisFahrwerkDrinne=false;\n\t\tisFlying=false;\n\t\tsetLoad(0);\n\t\tsetSpeed(0);\n\t}", "title": "" }, { "docid": "386a95658c05cbbdae326042679432d5", "score": "0.4904961", "text": "private void setupTimeSlotSpinner() {\n ArrayAdapter deliveryTimeSlotSpinnerAdapter = ArrayAdapter.createFromResource( this, R.array.time_slots_options,\n android.R.layout.simple_spinner_item );\n\n // Specify dropdown layout style - simple list view with 1 item per line\n deliveryTimeSlotSpinnerAdapter.setDropDownViewResource( android.R.layout.simple_dropdown_item_1line );\n\n // Apply the adapter to the spinner\n deliverySlotSpinner.setAdapter( deliveryTimeSlotSpinnerAdapter );\n\n // Set the integer mSelected to the constant values\n deliverySlotSpinner.setOnItemSelectedListener( new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n String selection = (String) parent.getItemAtPosition( position );\n\n if (selection.equals( \"10-12\" )) {\n deliveryTimeSlot = \"10-12\";\n } else if (selection.equals( \"1-3\" )) {\n deliveryTimeSlot = \"1-3\";\n } else if (selection.equals( \"5-7\" )) {\n deliveryTimeSlot = \"5-7\";\n }\n\n\n }\n\n @Override\n public void onNothingSelected(AdapterView<?> parent) {\n\n }\n } );\n }", "title": "" }, { "docid": "afccf1f47bdb941fd4a1df0a72daa5b1", "score": "0.48988464", "text": "private void setSpinnerDefaultByFlag(Spinner spinner)\n { SpinnerObject selected;\n for (int i = 0; i < spinner.getCount(); i++) {\n selected = (SpinnerObject) spinner.getItemAtPosition(i);\n if (selected.getDefaultflag() == 1) {\n\n spinner.setSelection(i);\n break;\n }\n }\n }", "title": "" }, { "docid": "cc52408c5a733d53102ba109f978fc87", "score": "0.48954797", "text": "private void encryptionProgressInit() {\n \n PowerManager pm = (PowerManager) getSystemService(Context.POWER_SERVICE);\n mWakeLock = pm.newWakeLock(PowerManager.FULL_WAKE_LOCK, TAG);\n \n mWakeLock.acquire();\n \n ProgressBar progressBar = (ProgressBar) findViewById(R.id.progress_bar);\n progressBar.setIndeterminate(true);\n \n updateProgress();\n }", "title": "" }, { "docid": "d75729f9476890d38029c4b0334cad68", "score": "0.48943073", "text": "private void updateEventSpinner() {\n Log.d(TAG, \"Update event spinner called\");\n eventAdapter.clear();\n eventAdapter.addAll(mEventList);\n int pos = findEventPositionById(mEventList, eventId);\n if (pos < 0) {\n // Set eventId to -1\n eventId = -1;\n SharedPreferences.Editor editor = sharedPref.edit();\n editor.putInt(SELECTED_EVENT_KEY, eventId);\n editor.apply();\n\n // Callback to parent activity\n if (mCallback != null)\n mCallback.onEventIdChange(eventId);\n\n // Disable download event data button\n getCompetitors.setEnabled(false);\n } else {\n eventSpinner.setSelection(pos);\n\n // Enable download event data button\n getCompetitors.setEnabled(true);\n }\n }", "title": "" }, { "docid": "db3abba64fca316e3d831ccfb88401e7", "score": "0.48918006", "text": "@Override\n\t\t\tpublic boolean onTouch(View arg0, MotionEvent event) {\n\t\t\t\tmSpinner.onTouchEvent(event);\n\t\t\t\treturn false;\n\t\t\t}", "title": "" }, { "docid": "a115872fee5977a9bba074c377eeec78", "score": "0.48862568", "text": "public void suspender() {\n this.callback.suspender();\n }", "title": "" }, { "docid": "e50c8a76c27cfc52e95659f2d5c6e70e", "score": "0.4886101", "text": "@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tarqMisc.buzzerCtl(1, 2000, 500);\n\t\t\t\t\t}", "title": "" }, { "docid": "2d23fffa045d21d9589db4eb001220d6", "score": "0.4878467", "text": "public int spin() {\r\n/* 271 */ if (this.shape == null) {\r\n/* */ \r\n/* 273 */ System.out.println(\"未识别到shape\");\r\n/* 274 */ return -1;\r\n/* */ } \r\n/* 276 */ int type = this.shape.type;\r\n/* 277 */ if (type == 0)\r\n/* */ {\r\n/* 279 */ return 0;\r\n/* */ }\r\n/* 281 */ if (type == 1) {\r\n/* */ \r\n/* 283 */ int subtype = this.shape.subType;\r\n/* 284 */ if (subtype == 0) {\r\n/* */ \r\n/* 286 */ Shapes sub = new BLine(this.shape.getx0(), this.shape.gety0());\r\n/* 287 */ spinRight(sub);\r\n/* 288 */ boolean isRight = checkShape(sub);\r\n/* 289 */ if (isRight) {\r\n/* */ \r\n/* 291 */ deleteThis();\r\n/* 292 */ this.shape = sub;\r\n/* 293 */ updateThis();\r\n/* 294 */ repaint();\r\n/* */ } else {\r\n/* */ \r\n/* 297 */ System.out.println(\"shape 不能旋转\");\r\n/* 298 */ return 1;\r\n/* */ } \r\n/* */ } else {\r\n/* */ \r\n/* 302 */ Shapes sub = new ALine(this.shape.getx0(), this.shape.gety0());\r\n/* 303 */ spinRight(sub);\r\n/* 304 */ boolean isRight = checkShape(sub);\r\n/* 305 */ if (isRight) {\r\n/* */ \r\n/* 307 */ deleteThis();\r\n/* 308 */ this.shape = sub;\r\n/* 309 */ updateThis();\r\n/* 310 */ repaint();\r\n/* */ } else {\r\n/* */ \r\n/* 313 */ System.out.println(\"shape 不能旋转\");\r\n/* 314 */ return 1;\r\n/* */ }\r\n/* */ \r\n/* */ } \r\n/* 318 */ } else if (type == 2) {\r\n/* */ \r\n/* 320 */ int subtype = this.shape.subType;\r\n/* 321 */ if (subtype == 0) {\r\n/* */ \r\n/* 323 */ Shapes sub = new BThree(this.shape.getx0(), this.shape.gety0());\r\n/* 324 */ spinRight(sub);\r\n/* 325 */ boolean isRight = checkShape(sub);\r\n/* 326 */ if (isRight) {\r\n/* */ \r\n/* 328 */ deleteThis();\r\n/* 329 */ this.shape = sub;\r\n/* 330 */ updateThis();\r\n/* 331 */ repaint();\r\n/* */ } else {\r\n/* */ \r\n/* 334 */ System.out.println(\"shape 不能旋转\");\r\n/* 335 */ return 1;\r\n/* */ }\r\n/* */ \r\n/* 338 */ } else if (subtype == 1) {\r\n/* */ \r\n/* 340 */ Shapes sub = new CThree(this.shape.getx0(), this.shape.gety0());\r\n/* 341 */ spinRight(sub);\r\n/* 342 */ boolean isRight = checkShape(sub);\r\n/* 343 */ if (isRight) {\r\n/* */ \r\n/* 345 */ deleteThis();\r\n/* 346 */ this.shape = sub;\r\n/* 347 */ updateThis();\r\n/* 348 */ repaint();\r\n/* */ } else {\r\n/* */ \r\n/* 351 */ System.out.println(\"shape 不能旋转\");\r\n/* 352 */ return 1;\r\n/* */ }\r\n/* */ \r\n/* 355 */ } else if (subtype == 2) {\r\n/* */ \r\n/* 357 */ Shapes sub = new DThree(this.shape.getx0(), this.shape.gety0());\r\n/* 358 */ spinRight(sub);\r\n/* 359 */ boolean isRight = checkShape(sub);\r\n/* 360 */ if (isRight) {\r\n/* */ \r\n/* 362 */ deleteThis();\r\n/* 363 */ this.shape = sub;\r\n/* 364 */ updateThis();\r\n/* 365 */ repaint();\r\n/* */ } else {\r\n/* */ \r\n/* 368 */ System.out.println(\"shape 不能旋转\");\r\n/* 369 */ return 1;\r\n/* */ } \r\n/* */ } else {\r\n/* */ \r\n/* 373 */ Shapes sub = new AThree(this.shape.getx0(), this.shape.gety0());\r\n/* 374 */ spinRight(sub);\r\n/* 375 */ boolean isRight = checkShape(sub);\r\n/* 376 */ if (isRight) {\r\n/* */ \r\n/* 378 */ deleteThis();\r\n/* 379 */ this.shape = sub;\r\n/* 380 */ updateThis();\r\n/* 381 */ repaint();\r\n/* */ } else {\r\n/* */ \r\n/* 384 */ System.out.println(\"shape 不能旋转\");\r\n/* 385 */ return 1;\r\n/* */ }\r\n/* */ \r\n/* */ } \r\n/* 389 */ } else if (type == 3) {\r\n/* */ \r\n/* 391 */ int subtype = this.shape.subType;\r\n/* 392 */ if (subtype == 0) {\r\n/* */ \r\n/* 394 */ Shapes sub = new BTurnX(this.shape.getx0(), this.shape.gety0());\r\n/* 395 */ spinRight(sub);\r\n/* 396 */ boolean isRight = checkShape(sub);\r\n/* 397 */ if (isRight) {\r\n/* */ \r\n/* 399 */ deleteThis();\r\n/* 400 */ this.shape = sub;\r\n/* 401 */ updateThis();\r\n/* 402 */ repaint();\r\n/* */ } else {\r\n/* */ \r\n/* 405 */ System.out.println(\"shape 不能旋转\");\r\n/* 406 */ return 1;\r\n/* */ }\r\n/* */ \r\n/* 409 */ } else if (subtype == 1) {\r\n/* */ \r\n/* 411 */ Shapes sub = new CTurnX(this.shape.getx0(), this.shape.gety0());\r\n/* 412 */ spinRight(sub);\r\n/* 413 */ boolean isRight = checkShape(sub);\r\n/* 414 */ if (isRight) {\r\n/* */ \r\n/* 416 */ deleteThis();\r\n/* 417 */ this.shape = sub;\r\n/* 418 */ updateThis();\r\n/* 419 */ repaint();\r\n/* */ } else {\r\n/* */ \r\n/* 422 */ System.out.println(\"shape 不能旋转\");\r\n/* 423 */ return 1;\r\n/* */ }\r\n/* */ \r\n/* 426 */ } else if (subtype == 2) {\r\n/* */ \r\n/* 428 */ Shapes sub = new DTurnX(this.shape.getx0(), this.shape.gety0());\r\n/* 429 */ spinRight(sub);\r\n/* 430 */ boolean isRight = checkShape(sub);\r\n/* 431 */ if (isRight) {\r\n/* */ \r\n/* 433 */ deleteThis();\r\n/* 434 */ this.shape = sub;\r\n/* 435 */ updateThis();\r\n/* 436 */ repaint();\r\n/* */ } else {\r\n/* */ \r\n/* 439 */ System.out.println(\"shape 不能旋转\");\r\n/* 440 */ return 1;\r\n/* */ } \r\n/* */ } else {\r\n/* */ \r\n/* 444 */ Shapes sub = new ATurnX(this.shape.getx0(), this.shape.gety0());\r\n/* 445 */ spinRight(sub);\r\n/* 446 */ boolean isRight = checkShape(sub);\r\n/* 447 */ if (isRight) {\r\n/* */ \r\n/* 449 */ deleteThis();\r\n/* 450 */ this.shape = sub;\r\n/* 451 */ updateThis();\r\n/* 452 */ repaint();\r\n/* */ } else {\r\n/* */ \r\n/* 455 */ System.out.println(\"shape 不能旋转\");\r\n/* 456 */ return 1;\r\n/* */ }\r\n/* */ \r\n/* */ } \r\n/* 460 */ } else if (type == 4) {\r\n/* */ \r\n/* 462 */ int subtype = this.shape.subType;\r\n/* 463 */ if (subtype == 0) {\r\n/* */ \r\n/* 465 */ Shapes sub = new BTurnY(this.shape.getx0(), this.shape.gety0());\r\n/* 466 */ spinRight(sub);\r\n/* 467 */ boolean isRight = checkShape(sub);\r\n/* 468 */ if (isRight) {\r\n/* */ \r\n/* 470 */ deleteThis();\r\n/* 471 */ this.shape = sub;\r\n/* 472 */ updateThis();\r\n/* 473 */ repaint();\r\n/* */ } else {\r\n/* */ \r\n/* 476 */ System.out.println(\"shape 不能旋转\");\r\n/* 477 */ return 1;\r\n/* */ }\r\n/* */ \r\n/* 480 */ } else if (subtype == 1) {\r\n/* */ \r\n/* 482 */ Shapes sub = new CTurnY(this.shape.getx0(), this.shape.gety0());\r\n/* 483 */ spinRight(sub);\r\n/* 484 */ boolean isRight = checkShape(sub);\r\n/* 485 */ if (isRight) {\r\n/* */ \r\n/* 487 */ deleteThis();\r\n/* 488 */ this.shape = sub;\r\n/* 489 */ updateThis();\r\n/* 490 */ repaint();\r\n/* */ } else {\r\n/* */ \r\n/* 493 */ System.out.println(\"shape 不能旋转\");\r\n/* 494 */ return 1;\r\n/* */ }\r\n/* */ \r\n/* 497 */ } else if (subtype == 2) {\r\n/* */ \r\n/* 499 */ Shapes sub = new DTurnY(this.shape.getx0(), this.shape.gety0());\r\n/* 500 */ spinRight(sub);\r\n/* 501 */ boolean isRight = checkShape(sub);\r\n/* 502 */ if (isRight) {\r\n/* */ \r\n/* 504 */ deleteThis();\r\n/* 505 */ this.shape = sub;\r\n/* 506 */ updateThis();\r\n/* 507 */ repaint();\r\n/* */ } else {\r\n/* */ \r\n/* 510 */ System.out.println(\"shape 不能旋转\");\r\n/* 511 */ return 1;\r\n/* */ } \r\n/* */ } else {\r\n/* */ \r\n/* 515 */ Shapes sub = new ATurnY(this.shape.getx0(), this.shape.gety0());\r\n/* 516 */ spinRight(sub);\r\n/* 517 */ boolean isRight = checkShape(sub);\r\n/* 518 */ if (isRight) {\r\n/* */ \r\n/* 520 */ deleteThis();\r\n/* 521 */ this.shape = sub;\r\n/* 522 */ updateThis();\r\n/* 523 */ repaint();\r\n/* */ } else {\r\n/* */ \r\n/* 526 */ System.out.println(\"shape 不能旋转\");\r\n/* 527 */ return 1;\r\n/* */ } \r\n/* */ } \r\n/* */ } \r\n/* */ \r\n/* 532 */ return 0;\r\n/* */ }", "title": "" }, { "docid": "4ab06582494911189817150cc7eeb5ac", "score": "0.48780826", "text": "private void setSpinners() {\n final Spinner types = findViewById(R.id.types);\n final Spinner sizes = findViewById(R.id.sizes);\n ArrayAdapter<String> adapter;\n\n adapter = new ArrayAdapter<String>\n (this, android.R.layout.simple_spinner_item, this.mTypes);\n adapter.setDropDownViewResource(\n android.R.layout\n .simple_spinner_dropdown_item\n );\n types.setAdapter(adapter);\n types.setSelection(adapter.getPosition(\"All\"));\n\n adapter = new ArrayAdapter<String>\n (this, android.R.layout.simple_spinner_item, this.mSizes);\n adapter.setDropDownViewResource(\n android.R.layout\n .simple_spinner_dropdown_item\n );\n sizes.setAdapter(adapter);\n sizes.setSelection(adapter.getPosition(\"All\"));\n\n // On item selected listeners for spinners\n types.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n String selectedType = types.getSelectedItem().toString();\n String selectedSize = sizes.getSelectedItem().toString();\n try {\n filterBikes(selectedType, selectedSize);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n\n @Override\n public void onNothingSelected(AdapterView<?> parent) {\n // TODO: on nothing selected\n }\n });\n\n sizes.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n String selectedType = types.getSelectedItem().toString();\n String selectedSize = sizes.getSelectedItem().toString();\n try {\n filterBikes(selectedType, selectedSize);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n\n @Override\n public void onNothingSelected(AdapterView<?> parent) {\n // TODO: on nothing selected\n }\n });\n }", "title": "" }, { "docid": "a90f084766515be699ffb3c5243894c7", "score": "0.48763752", "text": "public void runIntakeBackwards() {\n intakeRelease.set(DoubleSolenoid.Value.kForward);\n intakeMotor.set(ControlMode.PercentOutput, -0.35);\n }", "title": "" }, { "docid": "9fdc49e660a330ecb700f161561712f6", "score": "0.48750868", "text": "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n label_semente = new javax.swing.JLabel();\n botao = new javax.swing.JButton();\n label_qtd = new javax.swing.JLabel();\n label_aqruivo = new javax.swing.JLabel();\n spinner_qtd = new javax.swing.JSpinner();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n label_semente.setForeground(new java.awt.Color(0, 153, 51));\n\n botao.setText(\"Gerar\");\n botao.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n botaoActionPerformed(evt);\n }\n });\n\n label_qtd.setText(\"Quantidade\");\n\n spinner_qtd.addChangeListener(new javax.swing.event.ChangeListener() {\n public void stateChanged(javax.swing.event.ChangeEvent evt) {\n spinner_qtdStateChanged(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(28, 28, 28)\n .addComponent(spinner_qtd, javax.swing.GroupLayout.PREFERRED_SIZE, 156, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 19, Short.MAX_VALUE)\n .addComponent(botao)\n .addContainerGap(33, Short.MAX_VALUE))\n .addGroup(layout.createSequentialGroup()\n .addGap(29, 29, 29)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(label_semente, javax.swing.GroupLayout.PREFERRED_SIZE, 142, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(label_qtd))\n .addGap(0, 0, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(label_aqruivo, javax.swing.GroupLayout.PREFERRED_SIZE, 187, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(6, 6, 6)\n .addComponent(label_semente, javax.swing.GroupLayout.PREFERRED_SIZE, 12, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(label_qtd)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(botao)\n .addComponent(spinner_qtd, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addComponent(label_aqruivo, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n pack();\n setLocationRelativeTo(null);\n }", "title": "" }, { "docid": "81cfc4a3de2b57141934726657e55b7d", "score": "0.48733392", "text": "@Override\n public void initialize() {\n m_sweeperSubsystem.setSweeperPower(m_power);\n m_spinnerSubsystem.setPower(-m_power);\n }", "title": "" }, { "docid": "0b138e1491b0dca4d4f39d3840946238", "score": "0.4872621", "text": "public void rise() {\r\n\t\tmotorLifter.set(1);\r\n\t}", "title": "" }, { "docid": "22ea6d5fa221bd5047ca35a7c1ac7c51", "score": "0.4871203", "text": "public static void resetSpinnersPositionsToZero(Context context) {\n Logger.logD(Logger.getTag(), \"resetSpinnersPositionsToZero\");\n\n final SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(context);\n final SharedPreferences.Editor editor = sp.edit();\n\n editor.putInt(context.getString(R.string.saved_cb_rf_from_spinner_pos), 0);\n editor.putInt(context.getString(R.string.saved_cb_rf_to_spinner_pos), 0);\n\n editor.putInt(context.getString(R.string.saved_yahoo_from_spinner_pos), 0);\n editor.putInt(context.getString(R.string.saved_yahoo_to_spinner_pos), 0);\n\n editor.putInt(context.getString(R.string.saved_custom_from_spinner_pos), 0);\n editor.putInt(context.getString(R.string.saved_custom_to_spinner_pos), 0);\n\n editor.putInt(context.getString(R.string.saved_custom_fragment_spinner_pos), 0);\n\n editor.apply();\n }", "title": "" }, { "docid": "1740c2e4e03cadf86a27f505720694b1", "score": "0.48666716", "text": "public Builder clearSpin() {\n if (spinBuilder_ == null) {\n spin_ = null;\n onChanged();\n } else {\n spinBuilder_.clear();\n }\n bitField0_ = (bitField0_ & ~0x00000080);\n return this;\n }", "title": "" }, { "docid": "71fb0f711f1f0eb4848b6d820e0dcf1b", "score": "0.48641676", "text": "public void throttleBackFromUpAnimation()\n\t{ \n\n\t\tSkeletalEntity rightHand =\n\t(SkeletalEntity) eng.getSceneManager().getEntity(\"rightHandAv\");\n\trightHand.playAnimation(\"throttleBackFromUp\", animationSpeed, SkeletalEntity.EndType.PAUSE, 0);\n\n\t}", "title": "" }, { "docid": "805b8711f91e5bf2ce61794a731acf7a", "score": "0.48542824", "text": "public SpinVector( int intialCapacity, int cpacityIncrement )\r\n\t{\r\n\t\tsuper( intialCapacity, cpacityIncrement );\r\n\t\tselectedObjectIndex = 0;\r\n\t\tcircular = true;\r\n\t}", "title": "" }, { "docid": "c8d79e903ad69f60955473afa984c00f", "score": "0.48517516", "text": "private void useTime() {\n this.useTime = true;\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n skBarAngle.setProgress(0);\n }\n });\n }", "title": "" }, { "docid": "58e5468e5812e5923b593f204b5e6974", "score": "0.48473573", "text": "public void handleBlock(boolean pickUp) {\n\t\tif (pickUp){\n\t\t\tclawMotor.rotateTo(-200);\n\t\t} else {\n\t\t\tclawMotor.rotateTo(0);\n\t\t}\n\t}", "title": "" }, { "docid": "4278eb2a350c666d5ae17c52144825b3", "score": "0.48463625", "text": "private void enlargePaddle(){\n Timeline powerTimeline = makePowerUpTimeline();\n\n Scale paddleScale = new Scale();\n paddleScale.setX(2);\n paddle.getTransforms().add(paddleScale);\n paddle.setX(paddle.getLayoutBounds().getMinX()/2);\n powerTimeline.setOnFinished(e -> shrinkPaddle());\n ENLARGED = true;\n\n }", "title": "" }, { "docid": "0131f21bdf19ea1d7e386ef0810e8904", "score": "0.4834487", "text": "public void takeFrisbees(){\r\n if(!intakeBottomSwitch.get()){\r\n intakeMotor.set(intakeSpeed);\r\n }\r\n }", "title": "" }, { "docid": "c8e0fcbb50b389be5d5a89e0229def70", "score": "0.48321807", "text": "public void holdArm() {\r\n\t\t\tleftArm.setSpeed(0.4);\r\n\t\t\trightArm.setSpeed(0.4);\r\n\t\t}", "title": "" }, { "docid": "3a88a84316ac313f02444da4bd5bed55", "score": "0.4825136", "text": "public mySpinner(\n int width,\n int height) {\n initComponents();\n\n this.Value = 0;\n this.Max = 0;\n this.Min = 0;\n\n design(width, height);\n }", "title": "" }, { "docid": "9c7cc1b71315d86a9e45b3965b4059e1", "score": "0.48194245", "text": "public void disableMinuteSpinner(boolean b)\n\t{\n\t\tminspin.setDisable(b);\n\t}", "title": "" }, { "docid": "146634378e8c32dee880fda152b05fae", "score": "0.4818801", "text": "public void consumeAndApplyPendingStateLocked() {\n consumeAndApplyPendingStateLocked(true);\n }", "title": "" }, { "docid": "4b9b0e5b3c78dda646c1ba04cfa1382d", "score": "0.48157942", "text": "private void createSpinner()\n\t{\n\t\tString[] monthStrings = getMonthStrings(); //get month names\n\t\tmonthModel = new SpinnerListModel(monthStrings); //model for spinner is created\n\t\tspinner = new JSpinner(monthModel); // sinner is created\n\t\tspinner.setEditor(new JSpinner.DefaultEditor(spinner)); //spinner can't be edited\n\t\t\n\t\t/* Width for spinner is set */\n\t\tDimension d = spinner.getPreferredSize();\n\t\td.width = 90;\n\t\tspinner.setPreferredSize(d);\n\t\t\n\t}", "title": "" }, { "docid": "8f92f956994a4304caa134bbcf9bae89", "score": "0.4810853", "text": "public void lowBarAndScoreSpecial() {\n\t\tif (m_step == 0) {\n\t\t\tm_drives.resetEncoders();\n\t\t\tm_drives.brakesOff();\n\t\t\tm_drives.resetNavX();\n\t\t\tm_timer.start();\n\t\t\tm_timer.reset();\n\t\t\tm_step++;\n\t\t} else if (m_step == 1) {\n\t\t\tif (!m_pickup.goTo(Constants.PICKUP_ARM_DOWN + 0.002, 1.0) || m_timer.get() > 3.0) {\n\t\t\t\tm_pickup.setArmSpeed(0.0, true);\n\t\t\t\tm_timer.stop();\n\t\t\t\tm_step++;\n\t\t\t}\n\t\t} else if (m_step == 2) {\n\t\t\tif (m_drives.driveStraight(233.0, 0.5)) {\n\t\t\t\tm_drives.setSpeed(0.0);\n\t\t\t\tm_drives.resetNavX();\n\t\t\t\tm_pickup.setArmSpeed(0.0, true);\n\t\t\t\tm_step++;\n\t\t\t}\n\t\t\tif (m_drives.getLeftEncoderDistance() > 75.0) {\n\t\t\t\tif (!m_pickup.goTo(Constants.PICKUP_ARM_UP, 1.0)) {\n\t\t\t\t\tm_pickup.setArmSpeed(0.0, true);\n\t\t\t\t}\n\t\t\t}\n\t\t} else if (m_step == 3) {\n\t\t\tif (m_drives.turnToAngle(64, 0.5)) {\n\t\t\t\tm_drives.setSpeed(0.0);\n\t\t\t\tm_drives.resetEncoders();\n\t\t\t\tm_drives.resetNavX();\n\t\t\t\tm_step++;\n\t\t\t}\n\t\t} else if (m_step == 4) {\n\t\t\tif (!m_pickup.goTo(Constants.PICKUP_ARM_DOWN, 0.8)) {\n\t\t\t\tm_pickup.setArmSpeed(0.0, true);\n\t\t\t\tm_drives.resetEncoders();\n\t\t\t\tm_drives.resetNavX();\n\t\t\t\tm_step++;\n\t\t\t}\n\t\t} else if (m_step == 5) {\n\t\t\tif (m_drives.driveStraight(79.0, 0.5)) {\n\t\t\t\tm_drives.setSpeed(0.0);\n\t\t\t\tm_pickup.eject();\n\t\t\t\tm_drives.brakesOff();\n\t\t\t\tm_timer.start();\n\t\t\t\tm_timer.reset();\n\t\t\t\tm_step++;\n\t\t\t}\n\t\t} else if (m_step == 6) {\n\t\t\tm_pickup.eject();\n\t\t\tif (m_timer.get() > 1.0) {\n\t\t\t\tm_timer.stop();\n\t\t\t\tm_step++;\n\t\t\t}\n\t\t} else {\n\t\t\tm_pickup.intake(false);\n\t\t\tif (m_pickup.lineBroken()) {\n\t\t\t\tm_timer.start();\n\t\t\t\tm_timer.reset();\n\t\t\t\tm_step--;\n\t\t\t}\n\t\t}\n\t}", "title": "" } ]
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "52ee67a9b480decd394514d91da936c3", "score": "0.0", "text": "@Override\n\tpublic void onClick(View v) {\n\t\tswitch (v.getId()) {\n\t\tcase R.id.pause_button:\n\t\t\tmLivePlayerManager.pause();\n\t\t\tbreak;\n\t\tcase R.id.resume_button:\n\t\t\tmLivePlayerManager.start();\n\t\t\tbreak;\n\t\tcase R.id.play_button:\n\t\t\t// mLivePlayerManager\n\t\t\t// .start(\"http://play.kaolafm.net/20150901/1111111111_4444444444/playlist.m3u8\");\n\t\t\t// http://play.kaolafm.net/20150901/1111111111_4444444444/playlist.m3u8\n\t\t\tRandom random = new Random();\n\t\t\tint index = random.nextInt(mLiveUrls.length);\n\t\t\tif (index >= mLiveUrls.length) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tString liveUrl = mLiveUrls[index];\n\t\t\tLog.d(\"start = \", liveUrl);\n\t\t\t//String strfile = \"/sdcard/tmp/test_mp3.aac\";\n\t\t\t//String strfile = \"/sdcard/tmp/test.aac\";\n\t\t\t//String strfile = \"/sdcard/tmp/123.opus\";\n\t\t\t//mLivePlayerManager.start(\"http://play.kaolafm.net/20160111/abc_128/playlist.m3u8\");\n\t\t\t//String strfile = \"http://192.168.5.220/hongri.mp3\";\n\t\t\t//String strfile = \"http://192.168.5.220/123.opus\";\n\t\t\t//String strfile = \"http://192.168.5.220/by.aac\";\n\t\t\tString strfile = \"http://trslbs.kaolafm.com/016f63815d64d4db/1600000000510/1456977600000_1456981199000.m3u8\";\n\t\t\t//String strfile = \"rtmp://rtmp.hsrtv.cn/live/radio3\";\n\t\t\t//String strfile= \"/sdcard/tmp/hongri.mp3\";\n\t\t\tmLivePlayerManager.start(strfile);\n\t\t\tbreak;\n\t\tcase R.id.reset_button:\n\t\t\tmLivePlayerManager.reset();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t}", "title": "" } ]
[ { "docid": "e5fa0eebc721dea67da872fd14413bc7", "score": "0.69744676", "text": "@Override\n\tpublic void formule() {\n\t\t\n\t}", "title": "" }, { "docid": "8b7f87c22e268a87686c66398c2c442b", "score": "0.6936331", "text": "@Override\r\n\t\t\tpublic void atras() {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "1acc57d42c31dee937ac33ea6f2a5b0b", "score": "0.6836411", "text": "@Override\r\n\tpublic void comer() {\n\t\t\r\n\t}", "title": "" }, { "docid": "ec76ff8d70ced9d8135ad33b23353b4d", "score": "0.6624367", "text": "@Override\r\n\t\t\tpublic void adelante() {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "82ab90ffadf9b8d43e60c8510a33beba", "score": "0.6623182", "text": "@Override\r\n\tpublic void morirse() {\n\t\t\r\n\t}", "title": "" }, { "docid": "e3110a393bd4b870b4055aa9ed6efd87", "score": "0.66015315", "text": "@Override\n\tpublic void attaquer() {\n\t\t\n\t}", "title": "" }, { "docid": "a5f7a321f63abee65f0b9008f270490e", "score": "0.6594605", "text": "@Override\n\t\t\tpublic void competir() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "0b5b11f4251ace8b3d0f5ead186f7beb", "score": "0.65677965", "text": "@Override\n\tpublic void comer() {\n\t\t\n\t}", "title": "" }, { "docid": "0b5b11f4251ace8b3d0f5ead186f7beb", "score": "0.65677965", "text": "@Override\n\tpublic void comer() {\n\t\t\n\t}", "title": "" }, { "docid": "80d20df1cc75d8fa96c12c49a757fc43", "score": "0.65323734", "text": "@Override\n\tprotected void getExras() {\n\t\t\n\t}", "title": "" }, { "docid": "7756cbf76fd6363807e17834db326bbc", "score": "0.6501866", "text": "@Override\n\t\t\tpublic void avanzar() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "bdceff0dc4130d850ab15d702b785449", "score": "0.63844895", "text": "@Override\n\tprotected void generate() {\n\t\t\n\t}", "title": "" }, { "docid": "14f6250e215aa66dcffb123fd6b7fd74", "score": "0.63381773", "text": "@Override\n\tpublic void entzünden() {\n\n\t}", "title": "" }, { "docid": "cd03efba12b5473dcc457b910fd92a0e", "score": "0.63222265", "text": "@Override\n\t\t\tpublic void sprout() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "070e1adb9bfd59cb643407a2dabe9b7a", "score": "0.6291592", "text": "private void hinzufügen() {\n\t\t\r\n\t}", "title": "" }, { "docid": "469c90392fb12e4553574135278541f5", "score": "0.62385184", "text": "@Override\n\tpublic void attck() {\n\t\t\n\t}", "title": "" }, { "docid": "d3585587779dbdf33600e1670ca42099", "score": "0.6193195", "text": "@Override\n\tpublic void IngresoKromi() {\n\t}", "title": "" }, { "docid": "7c4f2f94b290de5507eb56a649c4fab9", "score": "0.61922914", "text": "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.61546874", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "093a096d6e96e05b160fe2406b1e8a2d", "score": "0.61053663", "text": "@Override\n\tpublic void parir() {\n\t\t\n\t}", "title": "" }, { "docid": "29cde3f10dab87cebafdd9412ef4b29f", "score": "0.6062187", "text": "@Override\r\n\tpublic void embala() {\n\t\t\r\n\t}", "title": "" }, { "docid": "7839d9b18f833d7ad1ccae8536c829da", "score": "0.60561824", "text": "@Override\r\n\tpublic void zielone_swiatlo() {\n\t\t\r\n\t}", "title": "" }, { "docid": "0cd47ce21776ffa50dd678180ffe94e5", "score": "0.6003824", "text": "public void ayak() {\n\t\t\r\n\t}", "title": "" }, { "docid": "c2c1f0ca9c7029b85142a2ab9536d708", "score": "0.5990595", "text": "@Override\n\tpublic void attaque() {\n\t\t\n\t}", "title": "" }, { "docid": "fa1a013b1df2f5f1062e1cc971135645", "score": "0.5987973", "text": "@Override\n\tpublic void mamar() {\n\t\t\n\t}", "title": "" }, { "docid": "70c63b539d1b6f883ad13008fbcaa6ce", "score": "0.59600407", "text": "@Override\n\tpublic void fiy(){\n\t\t\n\t}", "title": "" }, { "docid": "360bf42213adde0b962792c6cd6d8df7", "score": "0.5952374", "text": "@Override\r\n\t\tpublic void interg() {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "6f1e0cfaa7350cf143896dace56978f5", "score": "0.59270483", "text": "@Override\n\tpublic void respirar() {\n\t\t\n\t}", "title": "" }, { "docid": "8b18fd12dbb5303a665e92c25393fb78", "score": "0.59239364", "text": "@Override\n\tprotected void initData() {\n\t\t\n\t}", "title": "" }, { "docid": "dd66e8668788d27519d44caeb83b0c44", "score": "0.5923557", "text": "@Override\r\n\tpublic void operation() {\n\t\t\r\n\t}", "title": "" }, { "docid": "28237d6ae20e1aa35aaca12e05c950c9", "score": "0.5902906", "text": "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "title": "" }, { "docid": "28237d6ae20e1aa35aaca12e05c950c9", "score": "0.5902906", "text": "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "title": "" }, { "docid": "9808ba3c113b79c3677f2c08c09e60a1", "score": "0.59020513", "text": "@Override\n\tpublic void resert() {\n\t\t\n\t}", "title": "" }, { "docid": "e05db3dd501cfaf4d9d1b128ca673f1b", "score": "0.58988667", "text": "@Override\n\tprotected void formRes() {\n\n\t}", "title": "" }, { "docid": "7f91c82c66ced12c5b193d3c89d68e4c", "score": "0.5883667", "text": "@Override\n\tprotected void init() {\n\t}", "title": "" }, { "docid": "ea6be29351b2f6d99af3992f4a8fbd45", "score": "0.58685964", "text": "public void afficherEntreprise(){\r\n\t\t\r\n\t}", "title": "" }, { "docid": "3177b2be45c490e407b98d647e109c0d", "score": "0.58572376", "text": "@Override\n protected void initData()\n {\n\t\n }", "title": "" }, { "docid": "eea1284dac4ca57b790a13dcd1ad6bff", "score": "0.58401465", "text": "@Override\n protected void ucitaj() {\n //only because of 'extands rule'\n }", "title": "" }, { "docid": "e57f005733f2eb8590150b3f4542b844", "score": "0.5810564", "text": "@Override\n\tprotected void getData() {\n\t\t\n\t}", "title": "" }, { "docid": "af70f420bd21981aa44db6516064224d", "score": "0.58060104", "text": "@Override\n\tpublic int berechnen() {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "ce91051d32625345f2bf3562abbb93de", "score": "0.5794177", "text": "@Override\n\tprotected void inicializar() {\n\t}", "title": "" }, { "docid": "beee84210d56979d0068a8094fb2a5bd", "score": "0.5792378", "text": "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "title": "" }, { "docid": "94f32cdbe8afc400e05efbdb8d78c591", "score": "0.5788508", "text": "@Override\r\n\tpublic void borc_hesapla() {\n\t\t\r\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.57844025", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "aed26444304cfac4d695203c7d86e6c5", "score": "0.5769439", "text": "public void autTC05() {\r\n\r\n\t}", "title": "" }, { "docid": "9b56e05d631b1ea925ea2c139ee709ad", "score": "0.5763841", "text": "@Override\n\tpublic void adim7() {\n\n\t}", "title": "" }, { "docid": "5e6804b1ba880a8cc8a98006ca4ba35b", "score": "0.5761362", "text": "@Override\n public void init() {\n\n }", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57596046", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "a49b2d411619c6f2680e9b0e8c21a20f", "score": "0.57574755", "text": "private void erledigt() {\n\t\t\r\n\t}", "title": "" }, { "docid": "8aac1da26498753495658c2bb9044b21", "score": "0.5751961", "text": "@Override\n public int getOrder() {\n return 0;\n }", "title": "" }, { "docid": "2bbeae4f0e92c95ecc07204851be4769", "score": "0.57508", "text": "@Override\n\tpublic void nyalakan() {\n\t\t\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "8603393cbe27452fe30e396632c62eed", "score": "0.57415414", "text": "@Override\n\t\tpublic void postConstruct() {\n\t\t}", "title": "" }, { "docid": "37bf6e6ef01cf7dab163b5d3bedbc140", "score": "0.5740271", "text": "@Override\n\tpublic void som() {\n\t\t\n\t}", "title": "" }, { "docid": "92af0f4d75822a6723aebd9fcc92fafb", "score": "0.57394177", "text": "@Override\n protected void initData() {\n \n }", "title": "" }, { "docid": "c13e6a1b7c130afa9fb0f34225bea4ef", "score": "0.573645", "text": "protected void mo1555b() {\n }", "title": "" }, { "docid": "691b15fed469ddc176b9c9e6151dea65", "score": "0.5734636", "text": "@Override\n\tpublic void breathes()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "0f7672ee5ac14b05f31da4e1e34d7b49", "score": "0.5725253", "text": "@Override\r\n\tpublic void test8() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t\r\n\t}", "title": "" }, { "docid": "a22a3abb4b9b5de4ed8c054da445e9b0", "score": "0.5724528", "text": "@Override\r\n\tpublic void jugar() {\n\r\n\t}", "title": "" }, { "docid": "7fd3ef4778cae98af386c2c7c0aa5995", "score": "0.57231057", "text": "@Override\r\n\tpublic void nmi() {\n\t\t\r\n\t}", "title": "" }, { "docid": "90a583a9686287e3374351dca59e3033", "score": "0.5721244", "text": "@Override\r\n\tpublic void abrir() {\n\r\n\t}", "title": "" }, { "docid": "d629c4ad6266d296b13a93bb0c7f8c66", "score": "0.57099986", "text": "@Override\r\n public void init()\r\n {\n\r\n }", "title": "" }, { "docid": "7aadbda143e84de0144f7a8dadde423d", "score": "0.5701067", "text": "@Override\n protected void initData() {\n\n }", "title": "" }, { "docid": "7aadbda143e84de0144f7a8dadde423d", "score": "0.5701067", "text": "@Override\n protected void initData() {\n\n }", "title": "" }, { "docid": "f375646c5bc224c29261414f3cb81b04", "score": "0.56984305", "text": "@Override\n public int qualiteRelation() {\n return 0;\n }", "title": "" }, { "docid": "5592333c90e75bae58a686b24b05d894", "score": "0.5693882", "text": "@Override\n public String toString() {\n return null;\n }", "title": "" }, { "docid": "b2858312446172fa25a799c5367d2043", "score": "0.56896037", "text": "Smelting(){\r\n\r\n\t\t}", "title": "" }, { "docid": "9f7ae565c79188ee275e5778abe03250", "score": "0.56881124", "text": "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "title": "" }, { "docid": "20b42a0c3fee6c140a112d40354f4298", "score": "0.5686577", "text": "@Override\r\n\tpublic void prepara() {\n\t\t\r\n\t}", "title": "" }, { "docid": "92b8246d78d46bf0f60b46e17e797540", "score": "0.5685193", "text": "@Override\n\tpublic void init () {\n\t}", "title": "" }, { "docid": "57f5caef4402cc8ce13e81561eaa9e43", "score": "0.56787807", "text": "@Override\r\n\tpublic void pickUp() {\n\t\t\r\n\t}", "title": "" }, { "docid": "152818b619dcfcd5190a2f48bc75fa5f", "score": "0.56757474", "text": "@Override\n\tpublic void adim6() {\n\n\t}", "title": "" }, { "docid": "b6c641fa6ba40a5b14cc33cb07aa0671", "score": "0.5669649", "text": "@Override\n\tprotected void initData() {\n\t}", "title": "" }, { "docid": "b6c641fa6ba40a5b14cc33cb07aa0671", "score": "0.5669649", "text": "@Override\n\tprotected void initData() {\n\t}", "title": "" }, { "docid": "131c7dcebe8ac7fd010381a03bd0f405", "score": "0.5667569", "text": "@Override\r\n\tprotected void initActb() {\n\t\t\r\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "6392764d7ff297c1a478fc1669944649", "score": "0.5653691", "text": "@Override\n\tpublic void gostar_de_carne() {\n\t\t\n\t}", "title": "" }, { "docid": "2b53548295a92f80cb7814e7e3ead131", "score": "0.56503963", "text": "@Override\n\tString frighten() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "18c7036dd108c40b7a27469d8b92687c", "score": "0.5642345", "text": "@Override\n\tpublic void onLoadComplete() {\n\t\t\n\t}", "title": "" }, { "docid": "7b36e2fb2a778b8c30924f6f30758db2", "score": "0.56388146", "text": "private static void buscarId() {\n\t\t\r\n\t}", "title": "" }, { "docid": "9bcd15a2298e73719d7c7326027b093b", "score": "0.56369984", "text": "@Override\n\tprotected void getData() {\n\n\t}", "title": "" } ]
fa9e3949ffeb565ba45f281bf33de245
Generic function to close the database
[ { "docid": "b4d72d524270f191227ed3da1833fc47", "score": "0.65655166", "text": "public void close() {\r\n\t\ttry {\r\n\t\t\tfor(SQLiteStatement s : m_statements) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\ts.close();\r\n\t\t\t\t} catch (Exception e)\r\n\t\t\t\t{};\r\n\t\t\t}\r\n\r\n\t\t\tm_dbHelper.close();\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\t//do nothing - already closed? Cant do much.\r\n\t\t} finally {\r\n\t\t\tm_statements.clear();\r\n\t\t}\r\n\t}", "title": "" } ]
[ { "docid": "cff6ef7f963873c64c5fba37398887d8", "score": "0.7963703", "text": "public static void closeDatabase() {\n\t\t// WARNING: not thread safe\n\t\tif(xmldbInstance != null) {\n\t\t\ttry {\n if(!xmldbInstance.wasContextAdopted) {\n new Close().execute(xmldbInstance.context);\n }\n } catch (BaseXException e) {\n e.printStackTrace();\n\t\t\t} finally {\n xmldbInstance.context = null;\n xmldbInstance.contName = null;\n\t\t\t\txmldbInstance = null;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "1b549755b2fecae36a27efcac2121f53", "score": "0.7900183", "text": "private void closeDB()\n {\n _myDb.close();\n }", "title": "" }, { "docid": "1b549755b2fecae36a27efcac2121f53", "score": "0.7900183", "text": "private void closeDB()\n {\n _myDb.close();\n }", "title": "" }, { "docid": "a7e90552e38f4e9a441fcea53b2c3b03", "score": "0.7885432", "text": "protected abstract void closeDatabaseConnection();", "title": "" }, { "docid": "693f7a20bae16853165426904d260780", "score": "0.7881536", "text": "public void closeDB() {\n\t\tdb.close();\n\t}", "title": "" }, { "docid": "78ab854b007f245e1c021b9a99555cb9", "score": "0.7789257", "text": "public void close() {\n db.close();\n }", "title": "" }, { "docid": "78ab854b007f245e1c021b9a99555cb9", "score": "0.7789257", "text": "public void close() {\n db.close();\n }", "title": "" }, { "docid": "c9856aadf78c7d5b6fe314eaa270ae97", "score": "0.7780159", "text": "public void CloseDB() {\n db.close();\n db = null;\n }", "title": "" }, { "docid": "cda92d0f23659052296a9bda7509fe10", "score": "0.76853704", "text": "protected abstract void doClose() throws DBException;", "title": "" }, { "docid": "4d65f7c389c07781e81d8008a3e43e16", "score": "0.76466787", "text": "public void close() {\n\t if (database != null)\n\t database.close(); // close the database connection\n\t }", "title": "" }, { "docid": "1e8790f279968247f7d05cc37f7c06a6", "score": "0.7646138", "text": "public void closeDatabaseConnection() throws IOException;", "title": "" }, { "docid": "4494d2ad0d31ab7b7f0b5f1ecf1b0a9f", "score": "0.7635895", "text": "public void dbClose ()\n {\n try\n {\n if (mConnection != null)\n {\n mConnection.close();\n }\n }\n catch (SQLException exception)\n {\n exception.printStackTrace ();\n }\n }", "title": "" }, { "docid": "bbb23b3272cd285d8a50108132a02890", "score": "0.7622895", "text": "public void close() {\n dbhelper.close();\n }", "title": "" }, { "docid": "823a33e61fa2032ae9dda32d57e887ff", "score": "0.7593073", "text": "public void close()\n {\n if (database != null)\n database.close();\n }", "title": "" }, { "docid": "afebc3db7da82f71999272df7eb264a8", "score": "0.7576663", "text": "public void closeDB() {\n\t\tdb.commitTransaction();\n\t\tstorage.close();\n\t}", "title": "" }, { "docid": "20d74a8c89d70adb96eef68e443ab9eb", "score": "0.75155246", "text": "@Override\n\tpublic void close() throws DatabaseException {\n\n\t}", "title": "" }, { "docid": "292952e809d490d7988d9654fd5c4043", "score": "0.7509484", "text": "public void close() {\r\n if (database != null)\r\n database.close(); // close the database connection\r\n }", "title": "" }, { "docid": "278810e9b7458fa323298c03aefe917c", "score": "0.7488546", "text": "public void closeDatabase() {\n moduleDBOpenHelper.close();\n }", "title": "" }, { "docid": "62e9ebf4d3d44189d6d32206d00fa973", "score": "0.7467155", "text": "private void closeDbObjects()\n {\n try{\n this.con.close();\n }\n catch (Exception ex) {Reports.reporter.fail(new Throwable().getStackTrace()[0].getMethodName()+Reports.FUNC_ERROR_MSG +ex);}\n }", "title": "" }, { "docid": "05d1e80db9ff80832cd5a6f55bce7594", "score": "0.74499327", "text": "@Override\n public void close() {\n if (db == null) {\n return;\n }\n\n LOG.info(\"Closing database \" + this.toString());\n\n try {\n // attempt to close the database\n db.close();\n } catch (IOException e) {\n LOG.error(\"Failed to close the database \" + this.toString() + \".\", e);\n } finally {\n // ensuring the db is null after close was called\n db = null;\n }\n }", "title": "" }, { "docid": "cba1667bcee47cbd98e93e86cd5d5d1e", "score": "0.738967", "text": "public void close() throws DatabaseException {\n /* not yet implemented */\n }", "title": "" }, { "docid": "aa67374e424cff2fe85af096148baafc", "score": "0.7377487", "text": "public static void closeDatabase() {\n INSTANCE = null;\n }", "title": "" }, { "docid": "194ba942ed7e22fc27584f1d31c73586", "score": "0.7361668", "text": "protected void doClose() {\n\t\tif (store == null) \n\t\t\treturn; // DB already closed.\n\t\t\t\t\n\t\ttry {\n\t\t\topenCursors.forEach(EntityCursor::close);\n\t\t\topenCursors.clear();\n\n\t\t\tstore.close();\n\t\t\tenv.close();\n\t\t\t\n\t\t\tenv = null;\n\t\t\tstore = null;\n\t\t} catch (DatabaseException e) {\n\t\t\tthrow new WiktionaryException(\"Unable to close database\", e);\n\t\t}\n\t}", "title": "" }, { "docid": "1f1a39760af3a9e433ccd793913c7a66", "score": "0.7323586", "text": "public void close(){\n\t\t_dbHelper.close();\n\t}", "title": "" }, { "docid": "3e6a63346aa58becc53b899293c8f4ac", "score": "0.73100424", "text": "@Override\n public synchronized void close() {\n if(myDb != null){\n myDb.close();\n }\n\n super.close();\n }", "title": "" }, { "docid": "d6396d82e626c05b0209e7e8bceb2bcb", "score": "0.72977036", "text": "protected void closeDatabase() {\n mDbHelper.close();\n }", "title": "" }, { "docid": "815a3d7c85e759173fff00b336d7b248", "score": "0.72879547", "text": "public void close() {\n\t\tdbHelper.close();\n\t}", "title": "" }, { "docid": "5c81b2b9994ea2ba77ba95c8c547c476", "score": "0.72556925", "text": "abstract public void close_() throws SqlException;", "title": "" }, { "docid": "d0ea506c6b51fb096e52e9b620625148", "score": "0.7251438", "text": "protected void dbClose() {\n if (dbConnection != null)\n {\n try {\n logger.info(\"closing db connection\");\n dbConnection.close ();\n }\n catch (Exception e) { \n logger.error(\"Cannot close Database Connection \" + e);\n }\n }\n }", "title": "" }, { "docid": "eaffe1d0091d1c18b9ae8e642a2a32b6", "score": "0.7222274", "text": "public void CloseDatabase() {\n\t\ttry {\n\t\t\tif (connection != null) {\n\t\t\t\tconnection.close();\n\t\t\t\tconnection = null;\n\t\t\t}\n\t\t}\n\t\tcatch (Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t\tsqlDatabaseEnabled = false;\n\t\t}\n\t}", "title": "" }, { "docid": "8ca82977ff67bf3a9448f3b137a8d8b2", "score": "0.7175837", "text": "public void closeConnection()\n {\n mydb.closeConnection();\n }", "title": "" }, { "docid": "cf4d0751c629762b29ba04747489f468", "score": "0.71620154", "text": "void close() {\n if (database != null) {\n this.database.close();\n }\n }", "title": "" }, { "docid": "276af0efe293567caeaabdde2eef5d46", "score": "0.7159822", "text": "public void close() {\r\n\t\tDBHelper.close();\r\n\t}", "title": "" }, { "docid": "ff88bf10e04c0fc76d1e7aa007e98e98", "score": "0.71558714", "text": "public void close() {\n\t\tmDbHelper.close();\n\t}", "title": "" }, { "docid": "7971124b9a26c40c068155479e6d1236", "score": "0.71481717", "text": "public void close() {\n if (database != null) {\n this.database.close();\n }\n }", "title": "" }, { "docid": "7971124b9a26c40c068155479e6d1236", "score": "0.71481717", "text": "public void close() {\n if (database != null) {\n this.database.close();\n }\n }", "title": "" }, { "docid": "e680be3f7d0d299543e8f6de231ed3c4", "score": "0.7146352", "text": "@Override\n public synchronized void close() {\n if (database != null) {\n database.close();\n }\n SQLiteDatabase.releaseMemory();\n super.close();\n }", "title": "" }, { "docid": "5e431800266fb017ee642081dcd7b5b8", "score": "0.7130225", "text": "@Override\n\tpublic void finish() {\n\t\tsuper.finish();\n\t\tdb.close();\n\t}", "title": "" }, { "docid": "e69f003e3a82c2695db0afd84a238cd6", "score": "0.70951664", "text": "public final void close( ) {\r\n\t\ttry {\r\n\t\t\tcon.commit( ); // Commit any updates\r\n\t\t\tcon.close ( );\r\n\t\t}\r\n\t\tcatch ( Exception e ) {\r\n\t\t\tnotify( \"Db.close\", e );\r\n\t\t};\r\n\t}", "title": "" }, { "docid": "a0c4f24d063f4a715c0239e5eb14f12f", "score": "0.70912737", "text": "public static void closeDb() {\n synchronized (Application.class) {\n getInstance().mDaoSession = null;\n if (getInstance().mDb != null) {\n getInstance().mDb.close();\n getInstance().mDb = null;\n }\n }\n }", "title": "" }, { "docid": "855b31a6e9978cc4e754cd9a8e5e1294", "score": "0.70721686", "text": "public void close() {\n dbHelper.close();\n }", "title": "" }, { "docid": "855b31a6e9978cc4e754cd9a8e5e1294", "score": "0.70721686", "text": "public void close() {\n dbHelper.close();\n }", "title": "" }, { "docid": "855b31a6e9978cc4e754cd9a8e5e1294", "score": "0.70721686", "text": "public void close() {\n dbHelper.close();\n }", "title": "" }, { "docid": "855b31a6e9978cc4e754cd9a8e5e1294", "score": "0.70721686", "text": "public void close() {\n dbHelper.close();\n }", "title": "" }, { "docid": "855b31a6e9978cc4e754cd9a8e5e1294", "score": "0.70721686", "text": "public void close() {\n dbHelper.close();\n }", "title": "" }, { "docid": "855b31a6e9978cc4e754cd9a8e5e1294", "score": "0.70721686", "text": "public void close() {\n dbHelper.close();\n }", "title": "" }, { "docid": "855b31a6e9978cc4e754cd9a8e5e1294", "score": "0.70721686", "text": "public void close() {\n dbHelper.close();\n }", "title": "" }, { "docid": "b950fc01a93029cf6622a7c095303266", "score": "0.7069217", "text": "public void close() {\n Log.i(LOGTAG, \"Database closed\");\n dbhelper.close();\n }", "title": "" }, { "docid": "16565199b80ff021af8dc14541563ce2", "score": "0.70644987", "text": "@Override\n public void close() {\n\t\t\tcloseResultSet();\n\t\t\tcloseConnection();\n\t\t\tdatabase.removeConnection(this);\n\t\t\tdatabase = null;\n\t\t}", "title": "" }, { "docid": "ac73882e3a55065e4deecf53311615ce", "score": "0.70637584", "text": "@Override\n\tpublic synchronized void close() {\n\t\tif (myDataBase != null)\n\t\t\tmyDataBase.close();\n\t\tsuper.close();\n\t}", "title": "" }, { "docid": "9ec4235c2157ea40175d5615b5a22f8c", "score": "0.70511246", "text": "public static void closeRoom() {\n database.close();\n }", "title": "" }, { "docid": "a930d4ff5b887c84b55c18f2c7f08b09", "score": "0.7040495", "text": "public void close() {\n\t\tiCareDacDbHelper.close();\n\t}", "title": "" }, { "docid": "8f155a364426d4686c1264d4c3c3c743", "score": "0.7030359", "text": "@Override\n\tprotected void onDestroy() {\n\t\tcursor.close();\n\t\tdbhelper.close();\n\t\tsuper.onDestroy();\n\t}", "title": "" }, { "docid": "d68027f5b744f0da41967610c1bd8cbc", "score": "0.6996881", "text": "public void close()\n {\n myDBHelper.close();\n }", "title": "" }, { "docid": "033464a139e4ce66c1a39dd4b80e2ee9", "score": "0.6996245", "text": "public synchronized void close() {\n\t\tmOpenHelper.close();\n\n\t\tif (mDb != null)\n\t\t\tmDb.close();\n\t\tmDb = null;\n\t}", "title": "" }, { "docid": "105700d1be0112dd5fd7a8af0ea188a0", "score": "0.6991493", "text": "protected void closedb(){\n try{ \t\n System.out.println(\"now closing and commiting db\");\n connection.commit();\n\t resultSet.close();\n\t statement.close();\n\t connection.close();\n }\n catch(SQLException e){\n\t \n\t System.err.println(e);\n\t System.out.println(\"error during closing the connection..\");\n\t \n\t }\n }", "title": "" }, { "docid": "62dcf7b331f05957858ee74142c6b7d2", "score": "0.69740844", "text": "public void close() {\n\n\t\ttry {\n\t\t\tif (result != null) {\n\t\t\t\tresult.close();\n\t\t\t}\n\t\t\tbddinterface.closeDataBase();\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "0cd633a11840d04a1825bcaeacad11cd", "score": "0.6966609", "text": "public void close() {\n/* */ try {\n/* 46 */ this.dat.close();\n/* */ }\n/* 48 */ catch (Exception e) {\n/* 49 */ Utilidades.writeError(\"CalPlantillasDAO:close \", e);\n/* */ } \n/* */ }", "title": "" }, { "docid": "0f404bd22283e0447f47a375fe15af1d", "score": "0.6921501", "text": "void release() throws DatabaseException ;", "title": "" }, { "docid": "f92c1c6d5777045f6b6a33afa60fbfd7", "score": "0.6910495", "text": "public void close() {\r\n\t\tif (this.statement != null) {\r\n\t\t\ttry {\r\n\t\t\t\tthis.statement.close();\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tSystem.err.println(\"Fail to close DatabaseManager.stmt !\");\r\n\t\t\t\t//e.printStackTrace();\r\n\t\t\t}\r\n\t\t\tthis.statement = null;\r\n\t\t}\r\n\r\n\t\tif (this.connection != null) {\r\n\t\t\ttry {\r\n\t\t\t\tthis.connection.close();\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\tSystem.err.println(\"Fail to close DatabaseManager.coonection !\");\r\n\t\t\t\t//e.printStackTrace();\r\n\t\t\t}\r\n\t\t\tthis.connection = null;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "568ae87a1fc8344b46a7b8768b8300b8", "score": "0.68954927", "text": "@Override\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\n\t\tif(db!=null){\n\t\t\tdb.close();\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "d0afc9aa4977c2d2c36851c04bf20cde", "score": "0.6867914", "text": "@Override\n protected void onDestroy() {\n db.close();\n super.onDestroy();\n }", "title": "" }, { "docid": "88541bb8905ab3415d1ed49b9536ff47", "score": "0.68456125", "text": "private void closeDbObjects(Statement stmt)\n {\n try{\n if(stmt!=null){ stmt.close();}\n this.con.close();\n }\n catch (Exception ex) {Reports.reporter.fail(new Throwable().getStackTrace()[0].getMethodName()+Reports.FUNC_ERROR_MSG +ex);}\n }", "title": "" }, { "docid": "046a7f3de4aa857f64cb947e25221153", "score": "0.68436855", "text": "private synchronized void close(SQLiteDatabase db) {\n\t\tif (db != null) {\n\t\t\tdb.close();\n\t\t}\n\t}", "title": "" }, { "docid": "91b7fe751caacc2a9b1de3051597bb97", "score": "0.683239", "text": "public void closeDBconnection() throws SQLException\r\n\t{\r\n\t\tdbConnection.close();\r\n\t}", "title": "" }, { "docid": "ad0899a5c13ca5adddbc0e46becf9e2f", "score": "0.6810188", "text": "public void close()\n {\n // close connection\n XCloseable closeConn = (XCloseable)UnoRuntime.queryInterface( XCloseable.class,\n m_connection );\n if ( closeConn != null )\n {\n try\n {\n closeConn.close();\n }\n catch( SQLException e )\n {\n }\n }\n m_connection = null;\n\n // close document\n com.sun.star.util.XCloseable closeDoc = (com.sun.star.util.XCloseable)UnoRuntime.queryInterface(\n com.sun.star.util.XCloseable.class, m_databaseDocument );\n if ( closeDoc != null )\n {\n try\n {\n closeDoc.close( true );\n }\n catch( CloseVetoException e )\n {\n }\n }\n m_databaseDocument = null;\n }", "title": "" }, { "docid": "955d4fa26cfa83ac419c3b1500fc48c1", "score": "0.68095034", "text": "@Override\n \tprotected void onDestroy() {\n \t\ttimer.cancel();\n \n \t\tif (cursor != null)\n \t\t\tcursor.close();\n \n \t\tif (db != null)\n \t\t\tdb.close();\n \n \t\tsuper.onDestroy();\n \t}", "title": "" }, { "docid": "a1fe1cdae249ac57afecf756b34d9523", "score": "0.6802269", "text": "private void closeEnv()\n throws DatabaseException {\n\n db.close();\n db = null;\n close(env);\n env = null;\n }", "title": "" }, { "docid": "6c600316748fa9e955edeb1f42054449", "score": "0.67899007", "text": "public void close() {\n for (String functionName : statementMap.keySet()) {\n CallableStatement cs = statementMap.get(functionName);\n try {\n cs.close();\n } catch (SQLException e) {\n log.error(\"Error closing statement for \" + functionName, e);\n }\n }\n\n if (cp != null && conn != null) {\n try {\n cp.closeConnection(conn);\n } catch (SQLException e) {\n log.error(\"Error closing db connection\", e);\n }\n }\n }", "title": "" }, { "docid": "2b4d72566a559d065c840d50691cadd0", "score": "0.67815274", "text": "public synchronized static void close() {\n try {\n DriverManager.getConnection(\"jdbc:derby:;shutdown=true\");\n } catch (SQLException ex) {\n if (ex.getSQLState().equals(\"XJ015\")) {\n System.out.println(\"DB shutdown normally\");\n } else {\n ex.printStackTrace();\n }\n }\n\n }", "title": "" }, { "docid": "3c0551810c973d50f788bc45f4a2e374", "score": "0.6719773", "text": "public boolean closeConnection() throws DBError;", "title": "" }, { "docid": "b2cc3190323337e8d1e8ba8f69373954", "score": "0.6697302", "text": "public void closeDB(){\n SQLiteDatabase db = this.getReadableDatabase();\n if(db !=null && db.isOpen()){\n /*// Drop tables\n db.execSQL(\"Drop table if exists \"+ TABLE_TUTORIELS);\n db.execSQL(\"Drop table if exists \"+ TABLE_PRESENTATION_T);*/\n db.close();\n }\n }", "title": "" }, { "docid": "0ba99c5a7bf109edc58bf854a8f99c4f", "score": "0.6674608", "text": "@Override\n \tprotected void onDestroy() {\n \t\tsuper.onDestroy();\n \t\tdbOpenHelper.close();\n \t}", "title": "" }, { "docid": "5de493f7eacb38621003eb040d5a4d08", "score": "0.66624963", "text": "public static void close() throws SQLException {\n dbConnection.close();\n }", "title": "" }, { "docid": "6ff94166682dca20d2ca82df83826c05", "score": "0.66583854", "text": "@Override\r\n\tpublic void close() {\n\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\tstInsert.close();\r\n\t\t\tstUpdateNom.close();\r\n\t\t\tstDelete.close();\r\n\t\t\tstAffAll.close();\r\n\t\t\tstRechReg.close();\r\n\t\t\tstCalcPopReg.close();\r\n\t\t\t\r\n\t\t\tif (connect != null) {\r\n\t\t\t\tconnect.close();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} catch (\r\n\r\n\t\tSQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\tthrow new RuntimeException(e);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "9be19aa4a6802cbd13df6dc8d490b840", "score": "0.6655359", "text": "public void destroy(){\n\t// close any open connections\n\tdbDisconnect();\n }", "title": "" }, { "docid": "753ba660404831dd66964b9dc919a33a", "score": "0.66509223", "text": "public void closeDatabase() {\n SQLiteDatabase database = getWritableDatabase();\n if (database != null && database.isOpen()) {\n database.close();\n }\n }", "title": "" }, { "docid": "22b8dcc93332420c71be8ff078adeb42", "score": "0.66425705", "text": "@Override\n public void free() {\n database.free();\n }", "title": "" }, { "docid": "1b60bdf6c33510f530c8cae987984372", "score": "0.6630156", "text": "@Override\n public void close() throws DatabaseException {\n\n ExecutorService.getInstance().clearExecutor(this);\n DatabaseConnection connection = getConnection();\n if (connection != null) {\n\n Boolean previousAutoCommit = previousAutoCommit();\n if (previousAutoCommit != null) {\n try {\n connection.setAutoCommit(previousAutoCommit);\n } catch (DatabaseException e) {\n LogService.getLog(getClass()).warning(\"Failed to restore the auto commit to \" + previousAutoCommit);\n throw e;\n }\n }\n connection.close();\n }\n }", "title": "" }, { "docid": "1ee249d074ebb27e1ab61cf16e010d1d", "score": "0.66252065", "text": "public GYST_db close(){\n help.close();\n return this;\n }", "title": "" }, { "docid": "038c2c75b20fa05cf8c763deb7bf9ee4", "score": "0.65677357", "text": "public void closeDataBase() throws SQLException{\n\t\tif(conn != null){\n\t\t\tconn.close();\n\t\t}\n\t}", "title": "" }, { "docid": "14b2a7d45eebbd33233fa866e863b8a6", "score": "0.6545237", "text": "@Override\n public void cleanUp(CommandResultsBuilder resultsBuilder) {\n if (database != null) {\n try {\n database.close();\n database = null;\n } catch (Exception e) {\n Scope.getCurrentScope().getLog(getClass()).warning(coreBundle.getString(\"problem.closing.connection\"), e);\n }\n }\n }", "title": "" }, { "docid": "655f6410f440700ba71324282f9c45d8", "score": "0.6542918", "text": "public void close() throws Exception {\r\n\t /**********MAKE SURE THE CONNECTION IS CLOSED WHEN NOT IN USE*************/\r\n\t try{\r\n\t \t if(conn!=null) {\r\n\t \t\t this.conn.close(); \r\n\t \t }\r\n\t }\r\n\t catch(SQLException e){\r\n\t System.out.println(\"Closure of Database connection failed :\" + e);\r\n\t }\r\n\t }", "title": "" }, { "docid": "1038d017e5ba119c36306bcbda766147", "score": "0.65413713", "text": "@Override\n public void close() {\n super.close();\n dao = null;\n simpleRuntimeDao = null;\n }", "title": "" }, { "docid": "2045e51e19142b2dc73c0f880e3880cd", "score": "0.6535694", "text": "@Override\n\tpublic void close() throws SQLException {\n\t\tthis.connection=null;\n\t\tthis.sqls=null;\n\t\tthis.tableName=null;\n\t\tthis.theSqlParse=null;\n\t\tisClosed=true;\n\t}", "title": "" }, { "docid": "45eb1cd3d67e62f2d15d1932de3f612f", "score": "0.6531788", "text": "public void close() {\n\t\ttry {\n\t\t\t\n\t\t\tif(insertAddress != null) {insertAddress.close();}\n\t\t\tif(insertCustomer != null) {insertCustomer.close();}\n\t\t\tif(insertContractor != null) {insertContractor.close();}\n\t\t\tif(insertArchitect != null) {insertArchitect.close();}\n\t\t\tif(insertInvoice != null) {insertArchitect.close();}\n\t\t\tif(insertProject != null) {insertProject.close();}\n\t\t\t\n\t\t\tif(conn != null) {\n\t\t\t\tconn.close();\n\t\t\t}\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.print(\"Database connection close error: \" + e.getMessage());\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "294bf6babf91eea779967174e0546ca0", "score": "0.6518033", "text": "protected abstract void stopDatabaseConnection();", "title": "" }, { "docid": "2b6ef7c90e8e5ce1503aaf2cf74a6190", "score": "0.6515348", "text": "private void close() throws SQLException, InstantiationException, IllegalAccessException{\r\n conn.close();\r\n stmt.close();\r\n }", "title": "" }, { "docid": "b5093cd186b955464a3dad1b122f1a94", "score": "0.65148306", "text": "@Override\r\n\tpublic void close() {\n\r\n\t\ttry {\r\n\t\t\tif(stm != null)\r\n\t\t\t\tstm.close();\r\n\t\t\tif(rslt != null)\r\n\t\t\t\trslt.close();\r\n\t\t\tif(pstm != null)\r\n\t\t\t\tpstm.close();\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\t\r\n\t}", "title": "" }, { "docid": "aca6060855edb529268b347eff2b1393", "score": "0.65062946", "text": "public void close() throws DBAccessException\r\n\t{\n\t\tclose = true;\r\n\t}", "title": "" }, { "docid": "10f3a28822f36ec78b89b4b0453e5c0d", "score": "0.64937466", "text": "public void closeAndDelete()\n {\n close();\n\n if ( m_databaseDocumentFile != null )\n {\n try\n {\n File file = new File(m_databaseDocumentFile);\n file.delete();\n }\n catch(Exception e)\n {\n }\n m_databaseDocumentFile = null;\n }\n }", "title": "" }, { "docid": "dc8c39f6e454484b7adc0f45d89e7144", "score": "0.6492687", "text": "protected abstract void doCloseConnection(Connection connection, CloseMode mode, DbCallback<Void> callback);", "title": "" }, { "docid": "2820c2fd263427ed2c19c152598cda9e", "score": "0.64580595", "text": "public void closeDBConnection() {\n try {\n DBUtils.closeDBConnection(conn);\n System.out.println(\"Closed a connection\");\n } catch (SQLException sqlEx) {\n sqlEx.printStackTrace(System.err);\n }\n }", "title": "" }, { "docid": "43638d2093e1fb62bb21570893be382e", "score": "0.64516497", "text": "public void dbDisconnect() throws SQLException {\n conn.close();\n }", "title": "" }, { "docid": "038cdfb285b3af300118fa891ca7b961", "score": "0.64510536", "text": "public void closeDBConnection() {\n try {\n if (con != null) {\n con.close();\n System.out.println(\"DB connection closed.\");\n }\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "587c7e98c4840f218832233739358d8a", "score": "0.6445521", "text": "public void close() {\n Database.close(resultSet);\n }", "title": "" }, { "docid": "adab4ed8e30952ff89a6157cbe70b4a4", "score": "0.64390975", "text": "@Override\n public void close()\n {\n super.close();\n scoreDao = null;\n }", "title": "" }, { "docid": "85286ee3792f026f8de5b3614dc58b13", "score": "0.64381474", "text": "protected void doClose()\n {\n LOG.info(\"closing \" + jdbcUrl);\n }", "title": "" }, { "docid": "9b563d970a1c50b7ce77dc9bc1f75c9a", "score": "0.64357585", "text": "public void closeDBConnection() {\n\t try {\n\t DBUtils.closeDBConnection(_conn);\n\t System.out.println(\"Closed a connection\");\n\t } catch (SQLException sqle) {\n\t sqle.printStackTrace(System.err);\n\t }\n }", "title": "" }, { "docid": "1dc5afc2d211451eea081d4a5b0dbe13", "score": "0.64285403", "text": "public boolean closeDb() {\n\t\tdb.commit();\n\t\tdb.close();\n\t\treturn true;\n\t}", "title": "" } ]
b476812b9cc841abe9ada8f9bed25191
repeated .protos.Block blocks = 2;
[ { "docid": "694e858227c3c3284dc251c4972e3e91", "score": "0.0", "text": "public Builder removeBlocks(int index) {\n if (blocksBuilder_ == null) {\n ensureBlocksIsMutable();\n blocks_.remove(index);\n onChanged();\n } else {\n blocksBuilder_.remove(index);\n }\n return this;\n }", "title": "" } ]
[ { "docid": "a413c50cd825bd64c5d99989cbcd979e", "score": "0.65813655", "text": "protos.Fabric.BlockOrBuilder getBlockOrBuilder();", "title": "" }, { "docid": "e97171aa7f84bd87090728d8e2490065", "score": "0.65085703", "text": "protos.Fabric.Block getBlock();", "title": "" }, { "docid": "12719a203dbad2ac05cb4269276c3c77", "score": "0.64272946", "text": "@Override\n public void receiveBlock(Block block) {\n\n }", "title": "" }, { "docid": "fb35fc23302bb95133a107b7383b088e", "score": "0.596627", "text": "block createblock();", "title": "" }, { "docid": "334d93db23ba9a34258e68907de21bdf", "score": "0.5950093", "text": "void have(PeerInterface sender, int blockIndex);", "title": "" }, { "docid": "bb4eb91454503553411834a4409a00d7", "score": "0.5934102", "text": "void request(PeerInterface sender, int blockIndex);", "title": "" }, { "docid": "49bc323d6f19b81b848f8d71788c81d5", "score": "0.59025335", "text": "public ProtocolStructure() {\n protocolBlocks = new ArrayList<>();\n }", "title": "" }, { "docid": "869f83d271da0722ce202017ecaddbb7", "score": "0.58226126", "text": "@Test\n\tpublic void testParseBlocksTwoLevels() {\n\t\tString message = \"{1:test1}{2:test2}{3:test3}{4:{345:test345}{177:test177}}{5:test5}\";\t\t\n\t\tHashMap<Integer, ArrayList<String>> blocks = SwiftMT7XXParser.parseBlocks(message);\t\t\t\n\t\tassertEquals(5, blocks.size());\n\t}", "title": "" }, { "docid": "b97ba0d745ddcaefb5bda42fada2e0f1", "score": "0.5787895", "text": "@Test\n\tpublic void testParseBlocksOneLevel() {\n\t\tString message = \"{1:test1}{2:test2}{3:test3}{4:test4}{5:test5}\";\n\t\tHashMap<Integer, ArrayList<String>> blocks = SwiftMT7XXParser.parseBlocks(message);\t\t\t\n\t\tassertEquals(5, blocks.size());\t\t\n\t\t\n\t}", "title": "" }, { "docid": "75ab050c914b2e23b1763b318c365c7d", "score": "0.5736866", "text": "java.util.List<? extends protos.Fabric.BlockOrBuilder> \n getBlocksOrBuilderList();", "title": "" }, { "docid": "7ec80f7c2f2b1bf3114b7a55bc7009a4", "score": "0.57111496", "text": "@Override\n public void broadcastBlock(Block block) {\n\n }", "title": "" }, { "docid": "91a02c0a3d3321d8c7a589df8a2cb573", "score": "0.5635656", "text": "interface PeerInterface {\n /**\n * Sdeli vzdalenemu uzlu, ze uzel sender prave obdrzel blok s indexem\n * blockIndex.\n */\n void have(PeerInterface sender, int blockIndex);\n\n /**\n * Pozada vzdaleny uzel o blok s indexem blockIndex.\n */\n void request(PeerInterface sender, int blockIndex);\n\n /**\n * Zasle vzdalenemu uzlu blok s indexem blockIndex.\n */\n void piece(PeerInterface sender, int blockIndex, byte[] data);\n}", "title": "" }, { "docid": "7f44fbb5935696288c5dba8927bd8393", "score": "0.5614124", "text": "long numberOfBlocks();", "title": "" }, { "docid": "966a1a3de01e80fc7f098ea81a8f03af", "score": "0.55955434", "text": "public void addBlock(List<Byte> bytes) {\n boolean fixed = true;\n boolean variable = true;\n for (Byte each : bytes) {\n if (each == null) {\n fixed = false;\n } else {\n variable = false;\n }\n }\n if (!fixed && !variable) {\n return;\n }\n // noinspection UnqualifiedInnerClassAccess\n Type type = fixed ? Type.FIX : Type.VAR;\n protocolBlocks.add(new ProtocolBlock(type, bytes.toArray(new Byte[bytes.size()])));\n }", "title": "" }, { "docid": "17f79ddb0adcac2c0c75775f53474024", "score": "0.558114", "text": "void piece(PeerInterface sender, int blockIndex, byte[] data);", "title": "" }, { "docid": "50bfa1b497d8794d0ed5f10d114183b2", "score": "0.5573501", "text": "private Block(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n }", "title": "" }, { "docid": "5548dd4476fbd73a623d119c85e3750e", "score": "0.5556212", "text": "private SyncBlocks(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n }", "title": "" }, { "docid": "e95c5bbd8d70aba3a602054cb3948c78", "score": "0.5527203", "text": "private static void a(kotlin.reflect.jvm.internal.impl.protobuf.WireFormat.FieldType r2, java.lang.Object r3) {\n /*\n if (r3 == 0) goto L_0x004c;\n L_0x0002:\n r0 = kotlin.reflect.jvm.internal.impl.protobuf.g.AnonymousClass1.fqd;\n r2 = r2.getJavaType();\n r2 = r2.ordinal();\n r2 = r0[r2];\n r0 = 1;\n r1 = 0;\n switch(r2) {\n case 1: goto L_0x003f;\n case 2: goto L_0x003c;\n case 3: goto L_0x0039;\n case 4: goto L_0x0036;\n case 5: goto L_0x0033;\n case 6: goto L_0x0030;\n case 7: goto L_0x0027;\n case 8: goto L_0x001e;\n case 9: goto L_0x0014;\n default: goto L_0x0013;\n };\n L_0x0013:\n goto L_0x0041;\n L_0x0014:\n r2 = r3 instanceof kotlin.reflect.jvm.internal.impl.protobuf.n;\n if (r2 != 0) goto L_0x001c;\n L_0x0018:\n r2 = r3 instanceof kotlin.reflect.jvm.internal.impl.protobuf.i;\n if (r2 == 0) goto L_0x0041;\n L_0x001c:\n r1 = 1;\n goto L_0x0041;\n L_0x001e:\n r2 = r3 instanceof java.lang.Integer;\n if (r2 != 0) goto L_0x001c;\n L_0x0022:\n r2 = r3 instanceof kotlin.reflect.jvm.internal.impl.protobuf.h.a;\n if (r2 == 0) goto L_0x0041;\n L_0x0026:\n goto L_0x001c;\n L_0x0027:\n r2 = r3 instanceof kotlin.reflect.jvm.internal.impl.protobuf.d;\n if (r2 != 0) goto L_0x001c;\n L_0x002b:\n r2 = r3 instanceof byte[];\n if (r2 == 0) goto L_0x0041;\n L_0x002f:\n goto L_0x001c;\n L_0x0030:\n r1 = r3 instanceof java.lang.String;\n goto L_0x0041;\n L_0x0033:\n r1 = r3 instanceof java.lang.Boolean;\n goto L_0x0041;\n L_0x0036:\n r1 = r3 instanceof java.lang.Double;\n goto L_0x0041;\n L_0x0039:\n r1 = r3 instanceof java.lang.Float;\n goto L_0x0041;\n L_0x003c:\n r1 = r3 instanceof java.lang.Long;\n goto L_0x0041;\n L_0x003f:\n r1 = r3 instanceof java.lang.Integer;\n L_0x0041:\n if (r1 == 0) goto L_0x0044;\n L_0x0043:\n return;\n L_0x0044:\n r2 = new java.lang.IllegalArgumentException;\n r3 = \"Wrong object type used with protocol message reflection.\";\n r2.<init>(r3);\n throw r2;\n L_0x004c:\n r2 = new java.lang.NullPointerException;\n r2.<init>();\n goto L_0x0053;\n L_0x0052:\n throw r2;\n L_0x0053:\n goto L_0x0052;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: kotlin.reflect.jvm.internal.impl.protobuf.g.a(kotlin.reflect.jvm.internal.impl.protobuf.WireFormat$FieldType, java.lang.Object):void\");\n }", "title": "" }, { "docid": "3048981a0e92522e666ae336de4a813b", "score": "0.5518619", "text": "public interface RakNetProtocol {\n\n /**\n * https://github.com/CloudburstMC/Network/blob/607c81b9b4194d1bdadb2801eb795ca061081a4f/raknet/src/main/java/com/nukkitx/network/raknet/RakNetConstants.java#L22\n */\n int MAXIMUM_ENCAPSULATED_HEADER_SIZE = 28;\n int UDP_HEADER_SIZE = 8;\n int DATAGRAM_HEADER_SIZE = 4;\n\n /**\n * 0x00 ff ff 00 fe fe fe fe fd fd fd fd 12 34 56 78\n * RakNet magic values\n */\n byte[] MAGIC = new byte[]{0, -1, -1, 0, -2, -2, -2, -2, -3, -3, -3, -3, 18, 52, 86, 120};\n\n /**\n * Check if the provided buffer (reading the next 16 bytes) is magic.\n *\n * @param buffer the buffer\n * @return {@code true} if so\n */\n static boolean isMagic(ByteBuf buffer) {\n final byte[] magic = new byte[16];\n buffer.readBytes(magic, 0, 16);\n return Arrays.equals(magic, MAGIC);\n }\n\n /**\n * Valid flag.\n */\n byte VALID = (byte) 0b10000000;\n\n /**\n * Reliability bit flag\n */\n byte RELIABILITY = (byte) 0b11100000;\n\n /**\n * Split bit flag\n */\n byte SPLIT = (byte) 0b00010000;\n\n /**\n * Send bit flag\n */\n byte CONTINUOUS_SEND = (byte) 0b00001000;\n\n /**\n * The current version of the protocol.\n */\n int PROTOCOL_VERSION = 10;\n\n /**\n * The UNCONNECTED_PING.\n * Sent by clients attempting to retrieve MOTD of servers.\n */\n byte UNCONNECTED_PING = 0x01;\n\n /**\n * The UNCONNECTED_PONG\n * Sent by the server in response to {@code UNCONNECTED_PING}\n */\n byte UNCONNECTED_PONG = 0x1c;\n\n /**\n * The first open connection request.\n */\n byte OPEN_CONNECTION_REQUEST_1 = 0x05;\n\n /**\n * Incompatible RakNet protocol version.\n */\n byte INCOMPATIBLE_PROTOCOL = 0x19;\n\n /**\n * Connection banned\n */\n byte CONNECTION_BANNED = 0x017;\n\n /**\n * Indicates there is no free connections left.\n */\n byte NO_FREE_INCOMING_CONNECTIONS = 0x14;\n\n /**\n * Indicates the sender is already connected.\n */\n byte ALREADY_CONNECTED = 0x12;\n\n /**\n * The first open connection reply.\n */\n byte OPEN_CONNECTION_REPLY_1 = 0x06;\n\n /**\n * Sent to indicate a disconnection.\n */\n byte DISCONNECTED = 0x15;\n\n /**\n * The second open connection request\n */\n byte OPEN_CONNECTION_REQUEST_2 = 0x07;\n\n /**\n * The second open connection reply\n */\n byte OPEN_CONNECTION_REPLY_2 = 0x08;\n\n /**\n * A connection request\n */\n byte CONNECTION_REQUEST = 0x09;\n\n /**\n * Connection request failed or was denied.\n */\n byte CONNECTION_REQUEST_FAILED = 0x11;\n\n /**\n * The connection request was accepted.\n */\n byte CONNECTION_REQUEST_ACCEPTED = 0x10;\n\n /**\n * Clamp MTU size\n *\n * @param mtu mtu\n */\n static int clampMtuSize(int mtu) {\n return Math.max(576, Math.min(1400, mtu));\n }\n\n /**\n * Check if the potential byte ID is RakNet.\n *\n * @param potential the ID\n * @return {@code true} if so\n */\n static boolean isRakNet(byte potential) {\n return (potential & VALID) != 0;\n }\n\n /**\n * Write a IPv4 or IPv6 address.\n * https://github.com/NukkitX/Network/blob/79a77142ab3e34d9f45170dec1e6f906c9cf53ca/common/src/main/java/com/nukkitx/network/NetworkUtils.java#L40\n *\n * @param address the address.\n * @param buffer the buffer\n */\n static void writeAddress(InetSocketAddress address, ByteBuf buffer) {\n final var add = address.getAddress();\n final var bytes = address.getAddress().getAddress();\n if (add instanceof Inet4Address) {\n buffer.writeByte(4);\n for (byte aByte : bytes) buffer.writeByte((byte) (~aByte & 0xFF));\n buffer.writeShort(address.getPort());\n } else if (add instanceof Inet6Address) {\n buffer.writeByte(6);\n buffer.writeShortLE(23);\n buffer.writeShort(address.getPort());\n buffer.writeInt(0);\n buffer.writeBytes(bytes);\n buffer.writeInt(((Inet6Address) add).getScopeId());\n }\n }\n\n /**\n * https://github.com/CloudburstMC/Network/blob/607c81b9b4194d1bdadb2801eb795ca061081a4f/raknet/src/main/java/com/nukkitx/network/raknet/RakNetConstants.java#L98\n */\n InetSocketAddress LOOPBACK_V4 = new InetSocketAddress(Inet4Address.getLoopbackAddress(), 19132);\n InetSocketAddress LOOPBACK_V6 = new InetSocketAddress(Inet6Address.getLoopbackAddress(), 19132);\n InetSocketAddress[] LOCAL_IP_ADDRESSES_V4 = new InetSocketAddress[20];\n InetSocketAddress[] LOCAL_IP_ADDRESSES_V6 = new InetSocketAddress[20];\n\n /**\n * Initialize\n */\n static void initialize() {\n LOCAL_IP_ADDRESSES_V4[0] = LOOPBACK_V4;\n LOCAL_IP_ADDRESSES_V6[0] = LOOPBACK_V6;\n\n for (int i = 1; i < 20; i++) {\n LOCAL_IP_ADDRESSES_V4[i] = new InetSocketAddress(\"0.0.0.0\", 19132);\n LOCAL_IP_ADDRESSES_V6[i] = new InetSocketAddress(\"::0\", 19132);\n }\n }\n\n}", "title": "" }, { "docid": "a37654daae9216ff167329d95227c40b", "score": "0.5509003", "text": "public int getBlocksCount();", "title": "" }, { "docid": "5c05b36b787abb91f841e32e567b048e", "score": "0.5495011", "text": "private void start_block() {\n/* 1454 */ if (!this.isChunked) {\n/* */ return;\n/* */ }\n/* */ \n/* */ \n/* 1459 */ this.blockLength = 2147483392;\n/* */ \n/* 1461 */ this.blockLength = read_long();\n/* */ \n/* */ \n/* */ \n/* */ \n/* 1466 */ if (this.blockLength > 0 && this.blockLength < 2147483392) {\n/* 1467 */ this.blockLength += get_offset();\n/* */ \n/* */ \n/* */ }\n/* */ else {\n/* */ \n/* */ \n/* */ \n/* 1475 */ this.blockLength = 2147483392;\n/* */ \n/* 1477 */ this.bbwi.position(this.bbwi.position() - 4);\n/* */ } \n/* */ }", "title": "" }, { "docid": "fdd8d9e83fa45706deffc96f7d85f8b5", "score": "0.54663086", "text": "public void requestNewBlockSequential(Peer peer){\n\t\tif(this.done)\n\t\t\treturn;\n\t\tboolean[] peerlist = peer.getBitfield();\n\t\t\n\t\tfor(int i = 0; i < this.recieved.length; i++){\n\t\t\tif(!this.recieved[i] && peerlist[i]){\n\t\t\t\tPiece p = this.pieces.get(i);\n\t\t\t\tif(p == null || p.complete() || p.blockWaiting())\n\t\t\t\t\tcontinue;\n\t\t\t\tint offset = p.getNextBlockOffset();\n\t\t\t\tif(offset < 0)\n\t\t\t\t\tcontinue;\n\t\t\t\tint length = p.getBlockLength(offset);\n\t\t\t\tif(length <= 0)\n\t\t\t\t\tcontinue;\n\t\t\t\t//System.out.println(\"Requesting \" + i + \"-\" + offset + \"-\" + length);\n\t\t\t\tpeer.sendMessage(Message.blockRequestBuilder(i, offset, length));\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\t//System.out.println(\"Oops\");\n\t}", "title": "" }, { "docid": "144d3bb24a8287c90c0b2165e8003bfc", "score": "0.5437815", "text": "BlockSMC createBlockSMC();", "title": "" }, { "docid": "caa0e1d78e5723f0f5786b1abc22fa74", "score": "0.53685534", "text": "public interface Loop extends Block {\n}", "title": "" }, { "docid": "eb3c2cf63a055ab14de2da4f9381307e", "score": "0.53608644", "text": "private Peer2PeerMessage(){\r\n\t\t\r\n\t}", "title": "" }, { "docid": "7f87ef4083f54e03379af63006179ba9", "score": "0.5359598", "text": "Block createBlock();", "title": "" }, { "docid": "7f87ef4083f54e03379af63006179ba9", "score": "0.5359598", "text": "Block createBlock();", "title": "" }, { "docid": "5f8d6780071a7cac9deb0d1c2ad37235", "score": "0.53549767", "text": "int getBlocksNumber();", "title": "" }, { "docid": "5daf479e4834784ff60e5c74f2037dac", "score": "0.5351346", "text": "protos.Fabric.Block getBlocks(int index);", "title": "" }, { "docid": "be9386990bd0feea24a7f73d411c5bbc", "score": "0.5335432", "text": "@Override\n public void run(){\n\n //reduce the size of the packet to its true size\n byte[] smallerData = new byte[received.getLength()];\n\n byte[] data = received.getData();\n System.arraycopy(data, 0, smallerData, 0, received.getLength());\n data = smallerData;\n\n ArrayList<byte[]> separation = separateBodyAndHeader(data);\n\n String dataStr = new String(separation.get(0));\n\n String[] dataArray = dataStr.split(\" \",5);\n\n //getting local variables\n int senderID = Integer.parseInt(dataArray[2]);\n\n //check if we sent it\n\n if(senderID == peerID)//to do, check if restore doesn't need this\n {\n //ignore message\n return;\n }\n\n //else deal with message\n //check type of instruction\n String messageType = dataArray[1];\n\n ConcurrentHashMap<String,Chunk> chunks = Peer.getChunks();\n\n switch (messageType){\n case \"DELETE\":\n //Go trough every entry and deleting all entries that have as a substring the id of a file\n Iterator<Map.Entry<String,Chunk>> iter = chunks.entrySet().iterator();\n\n while (iter.hasNext()) {\n Map.Entry<String,Chunk> entry = iter.next();\n if(entry.getKey().contains(dataArray[3])){\n double memory = Peer.getUsedMemory();\n memory -= (double) entry.getValue().getContent().length;\n iter.remove();\n }\n }\n\n System.out.println(\"\\n Completed delete with chunk size: \"+Peer.getChunks().size());\n break;\n\n case \"STORED\":\n dataArray = dataStr.split(\" \",6);\n String chunkId = dataArray[3] + \" \" + dataArray[4];\n\n if(chunks.containsKey(chunkId)){//check if we already have it stored\n Chunk updatedChunk = chunks.get(chunkId);//update local chunk count\n updatedChunk.increase_chunk_count(Integer.parseInt(dataArray[2]));\n chunks.replace(chunkId, updatedChunk);//complete update\n }\n return;\n\n case \"GETCHUNK\":\n dataArray = dataStr.split(\" \",6);\n if(chunks.containsKey(dataArray[3] + \" \" + dataArray[4])) {//check if we have the chunk\n\n //create message\n //format: <Version> <CHUNK> <SenderId> <FileId> <ChunkNo> <CRLF><CRLF><Body>\n String message = dataArray[0] + \" \" + \"CHUNK\" + \" \" + peerID + \" \" + dataArray[3] + \" \" + dataArray[4] + \" \";\n byte[] crlf = new byte[] {CR, LF, CR , LF};\n\n //concatenating all of the bytes\n byte[] content = chunks.get(dataArray[3] + \" \" + dataArray[4]).getContent();\n\n byte[] m = new byte[message.getBytes().length + crlf.length];\n System.arraycopy(message.getBytes(), 0, m, 0, message.getBytes().length);\n System.arraycopy(crlf, 0 , m , message.getBytes().length , crlf.length);\n\n byte[] finalMessage = new byte[m.length + content.length];\n System.arraycopy(m, 0, finalMessage, 0, m.length);\n System.arraycopy(content, 0, finalMessage, m.length, content.length);\n\n Peer.getMdr().sendRequest(finalMessage);\n }\n break;\n\n case \"REMOVED\":\n dataArray = dataStr.split(\" \", 6);\n String chunk_id = dataArray[3] + \" \" + dataArray[4];\n\n if(chunks.containsKey(chunk_id)){\n Chunk chunk = chunks.get(chunk_id);\n chunks.replace(chunk_id, chunk); //complete update\n if(chunk.decrease_chunk_count(Integer.parseInt(dataArray[2]))){\n\n //finnish creating message\n String message = Peer.getVersion() + \" \" + \"PUTCHUNK\" + \" \" + Peer.getPeerId() + \" \" + dataArray[3] + \" \" + dataArray[4] + \" \" + chunk.getReplication_degree() + \" \";\n byte[] content = chunk.getContent();\n\n //creating th crlf byte\n byte[] crlf = new byte[] {CR, LF, CR , LF};\n\n\n //joining the bytes into a single message ( header(message) + crlf + body do chunk(content))\n byte[] m = new byte[message.getBytes().length + crlf.length];\n System.arraycopy(message.getBytes(), 0, m, 0, message.getBytes().length);\n System.arraycopy(crlf, 0 , m , message.getBytes().length , crlf.length);\n\n byte[] finalMessage = new byte[m.length + content.length];\n System.arraycopy(m, 0, finalMessage, 0, m.length);\n System.arraycopy(content, 0, finalMessage, m.length, content.length);\n Peer.getMdb().sendRequest(finalMessage);\n\n }\n\n }\n break;\n\n default:\n System.out.println(\"couldn't translate message\");\n }\n\n return;\n }", "title": "" }, { "docid": "4eda205a3f6a85481a932f84336d39d0", "score": "0.5326296", "text": "interface MessageParts {\n byte[] END_OF_MESSAGE = NetconfMessageConstants.END_OF_MESSAGE.getBytes(UTF_8);\n byte[] START_OF_CHUNK = NetconfMessageConstants.START_OF_CHUNK.getBytes(UTF_8);\n byte[] END_OF_CHUNK = NetconfMessageConstants.END_OF_CHUNK.getBytes(UTF_8);\n}", "title": "" }, { "docid": "f52e51ba9331807588f272325dc67bf5", "score": "0.53196985", "text": "proto.TestDummyOrBuilder getTestDummyOrBuilder();", "title": "" }, { "docid": "f8150944c87fc648c3f8c45572bdb6ea", "score": "0.5273802", "text": "List<Block> blocks();", "title": "" }, { "docid": "f8150944c87fc648c3f8c45572bdb6ea", "score": "0.5273802", "text": "List<Block> blocks();", "title": "" }, { "docid": "f8150944c87fc648c3f8c45572bdb6ea", "score": "0.5273802", "text": "List<Block> blocks();", "title": "" }, { "docid": "f8150944c87fc648c3f8c45572bdb6ea", "score": "0.5273802", "text": "List<Block> blocks();", "title": "" }, { "docid": "474a68aad8a4716066ec696f87e07189", "score": "0.5263898", "text": "ILoBlock spawnBlock(int n);", "title": "" }, { "docid": "20e09ba340b0221a2f86dc2c7dbaeac1", "score": "0.52619714", "text": "int getBlocksCount();", "title": "" }, { "docid": "c11c138372bf38928da815271be9869e", "score": "0.52182573", "text": "private IPBlock(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "title": "" }, { "docid": "03a2ea47a19b18d8b50cf698ab0ef375", "score": "0.52059525", "text": "blockStatements createblockStatements();", "title": "" }, { "docid": "9bab5c19f58a265c8e657c20a3c0eb3e", "score": "0.5192947", "text": "public int getSize() {\n return protocolBlocks.size();\n }", "title": "" }, { "docid": "8b5a25ab27e06990c02c5b2e4efa0e03", "score": "0.5191884", "text": "List<BlockUpdate> talkInteract(Player player);", "title": "" }, { "docid": "218e967e9ccd96b26aa8685e01e6d126", "score": "0.5168091", "text": "private Blockchain () {\n blocks = new HashMap<>();\n Block block = new Block( \"0\", 0, new ArrayList<>(), null);\n blocks.put(block.hash, block);\n transferPool = new ArrayList<>();\n lastBlockHash = block.hash;\n transferCount = 0;\n }", "title": "" }, { "docid": "12816f1f6f0f7abfd4212d689f5e57da", "score": "0.51654106", "text": "public interface Block {\n void callBack(String msg);\n}", "title": "" }, { "docid": "4993224966f3840167b05b2350d6bf91", "score": "0.5148173", "text": "public abstract void use(Block b);", "title": "" }, { "docid": "e9fd7c708c2fefea173e9a0bea463935", "score": "0.51267594", "text": "@SuppressWarnings(\"hiding\")\npublic interface Chat {\n public static final class SendMessageRequest extends\n com.google.protobuf.nano.MessageNano {\n\n private static volatile SendMessageRequest[] _emptyArray;\n public static SendMessageRequest[] emptyArray() {\n // Lazily initializes the empty array\n if (_emptyArray == null) {\n synchronized (\n com.google.protobuf.nano.InternalNano.LAZY_INIT_LOCK) {\n if (_emptyArray == null) {\n _emptyArray = new SendMessageRequest[0];\n }\n }\n }\n return _emptyArray;\n }\n\n // required string access_token = 1;\n public java.lang.String accessToken;\n\n // required string from = 2;\n public java.lang.String from;\n\n // required string to = 3;\n public java.lang.String to;\n\n // required string text = 4;\n public java.lang.String text;\n\n // required string topic = 5;\n public java.lang.String topic;\n\n public SendMessageRequest() {\n clear();\n }\n\n public SendMessageRequest clear() {\n accessToken = \"\";\n from = \"\";\n to = \"\";\n text = \"\";\n topic = \"\";\n cachedSize = -1;\n return this;\n }\n\n @Override\n public void writeTo(com.google.protobuf.nano.CodedOutputByteBufferNano output)\n throws java.io.IOException {\n output.writeString(1, this.accessToken);\n output.writeString(2, this.from);\n output.writeString(3, this.to);\n output.writeString(4, this.text);\n output.writeString(5, this.topic);\n super.writeTo(output);\n }\n\n @Override\n protected int computeSerializedSize() {\n int size = super.computeSerializedSize();\n size += com.google.protobuf.nano.CodedOutputByteBufferNano\n .computeStringSize(1, this.accessToken);\n size += com.google.protobuf.nano.CodedOutputByteBufferNano\n .computeStringSize(2, this.from);\n size += com.google.protobuf.nano.CodedOutputByteBufferNano\n .computeStringSize(3, this.to);\n size += com.google.protobuf.nano.CodedOutputByteBufferNano\n .computeStringSize(4, this.text);\n size += com.google.protobuf.nano.CodedOutputByteBufferNano\n .computeStringSize(5, this.topic);\n return size;\n }\n\n @Override\n public SendMessageRequest mergeFrom(\n com.google.protobuf.nano.CodedInputByteBufferNano input)\n throws java.io.IOException {\n while (true) {\n int tag = input.readTag();\n switch (tag) {\n case 0:\n return this;\n default: {\n if (!com.google.protobuf.nano.WireFormatNano.parseUnknownField(input, tag)) {\n return this;\n }\n break;\n }\n case 10: {\n this.accessToken = input.readString();\n break;\n }\n case 18: {\n this.from = input.readString();\n break;\n }\n case 26: {\n this.to = input.readString();\n break;\n }\n case 34: {\n this.text = input.readString();\n break;\n }\n case 42: {\n this.topic = input.readString();\n break;\n }\n }\n }\n }\n\n public static SendMessageRequest parseFrom(byte[] data)\n throws com.google.protobuf.nano.InvalidProtocolBufferNanoException {\n return com.google.protobuf.nano.MessageNano.mergeFrom(new SendMessageRequest(), data);\n }\n\n public static SendMessageRequest parseFrom(\n com.google.protobuf.nano.CodedInputByteBufferNano input)\n throws java.io.IOException {\n return new SendMessageRequest().mergeFrom(input);\n }\n }\n\n public static final class SendMessageResponse extends\n com.google.protobuf.nano.MessageNano {\n\n // enum Error\n public static final int ERR_OK = 0;\n public static final int ERR_SYS = -1;\n\n private static volatile SendMessageResponse[] _emptyArray;\n public static SendMessageResponse[] emptyArray() {\n // Lazily initializes the empty array\n if (_emptyArray == null) {\n synchronized (\n com.google.protobuf.nano.InternalNano.LAZY_INIT_LOCK) {\n if (_emptyArray == null) {\n _emptyArray = new SendMessageResponse[0];\n }\n }\n }\n return _emptyArray;\n }\n\n // required int32 err_code = 1;\n public int errCode;\n\n // required string err_msg = 2;\n public java.lang.String errMsg;\n\n // required string from = 3;\n public java.lang.String from;\n\n // required string text = 4;\n public java.lang.String text;\n\n // required string topic = 5;\n public java.lang.String topic;\n\n public SendMessageResponse() {\n clear();\n }\n\n public SendMessageResponse clear() {\n errCode = 0;\n errMsg = \"\";\n from = \"\";\n text = \"\";\n topic = \"\";\n cachedSize = -1;\n return this;\n }\n\n @Override\n public void writeTo(com.google.protobuf.nano.CodedOutputByteBufferNano output)\n throws java.io.IOException {\n output.writeInt32(1, this.errCode);\n output.writeString(2, this.errMsg);\n output.writeString(3, this.from);\n output.writeString(4, this.text);\n output.writeString(5, this.topic);\n super.writeTo(output);\n }\n\n @Override\n protected int computeSerializedSize() {\n int size = super.computeSerializedSize();\n size += com.google.protobuf.nano.CodedOutputByteBufferNano\n .computeInt32Size(1, this.errCode);\n size += com.google.protobuf.nano.CodedOutputByteBufferNano\n .computeStringSize(2, this.errMsg);\n size += com.google.protobuf.nano.CodedOutputByteBufferNano\n .computeStringSize(3, this.from);\n size += com.google.protobuf.nano.CodedOutputByteBufferNano\n .computeStringSize(4, this.text);\n size += com.google.protobuf.nano.CodedOutputByteBufferNano\n .computeStringSize(5, this.topic);\n return size;\n }\n\n @Override\n public SendMessageResponse mergeFrom(\n com.google.protobuf.nano.CodedInputByteBufferNano input)\n throws java.io.IOException {\n while (true) {\n int tag = input.readTag();\n switch (tag) {\n case 0:\n return this;\n default: {\n if (!com.google.protobuf.nano.WireFormatNano.parseUnknownField(input, tag)) {\n return this;\n }\n break;\n }\n case 8: {\n this.errCode = input.readInt32();\n break;\n }\n case 18: {\n this.errMsg = input.readString();\n break;\n }\n case 26: {\n this.from = input.readString();\n break;\n }\n case 34: {\n this.text = input.readString();\n break;\n }\n case 42: {\n this.topic = input.readString();\n break;\n }\n }\n }\n }\n\n public static SendMessageResponse parseFrom(byte[] data)\n throws com.google.protobuf.nano.InvalidProtocolBufferNanoException {\n return com.google.protobuf.nano.MessageNano.mergeFrom(new SendMessageResponse(), data);\n }\n\n public static SendMessageResponse parseFrom(\n com.google.protobuf.nano.CodedInputByteBufferNano input)\n throws java.io.IOException {\n return new SendMessageResponse().mergeFrom(input);\n }\n }\n}", "title": "" }, { "docid": "62e5e59c8845b7e0434f3b10df6c9990", "score": "0.5126649", "text": "Blocks(int w, boolean c,String s) // 3 = 1-4 / attached to wall\n\t{wall=(byte)w; conn=c; name=s;}", "title": "" }, { "docid": "5d54dc912ca8cfe1830f6f9e6b4f48bb", "score": "0.5109521", "text": "private SyncBlockRange(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n }", "title": "" }, { "docid": "06eb2066922a3a6b3a87bfbf203f7374", "score": "0.51028484", "text": "@Test\n public void repeatedChannels() throws Exception {\n {\n Sha256Hash someServerId = Sha256Hash.ZERO_HASH;\n ChannelTestUtils.RecordingPair pair = ChannelTestUtils.makeRecorders(serverWallet, mockBroadcaster);\n pair.server.connectionOpen();\n PaymentChannelClient client = new PaymentChannelClient(wallet, myKey, COIN, someServerId, pair.clientRecorder, versionSelector);\n PaymentChannelServer server = pair.server;\n client.connectionOpen();\n server.receiveMessage(pair.clientRecorder.checkNextMsg(MessageType.CLIENT_VERSION));\n client.receiveMessage(pair.serverRecorder.checkNextMsg(MessageType.SERVER_VERSION));\n client.receiveMessage(pair.serverRecorder.checkNextMsg(MessageType.INITIATE));\n if (useRefunds()) {\n server.receiveMessage(pair.clientRecorder.checkNextMsg(MessageType.PROVIDE_REFUND));\n client.receiveMessage(pair.serverRecorder.checkNextMsg(MessageType.RETURN_REFUND));\n }\n broadcastTxPause.release();\n server.receiveMessage(pair.clientRecorder.checkNextMsg(MessageType.PROVIDE_CONTRACT));\n broadcasts.poll(5, TimeUnit.SECONDS);\n pair.serverRecorder.checkTotalPayment(Transaction.REFERENCE_DEFAULT_MIN_TX_FEE);\n client.receiveMessage(pair.serverRecorder.checkNextMsg(MessageType.CHANNEL_OPEN));\n Sha256Hash contractHash = (Sha256Hash) pair.serverRecorder.q.poll(5, TimeUnit.SECONDS);\n pair.clientRecorder.checkInitiated();\n assertNull(pair.serverRecorder.q.poll());\n assertNull(pair.clientRecorder.q.poll());\n for (int i = 0; i < 3; i++) {\n ListenableFuture<PaymentIncrementAck> future = client.incrementPayment(CENT);\n server.receiveMessage(pair.clientRecorder.checkNextMsg(MessageType.UPDATE_PAYMENT));\n pair.serverRecorder.q.poll(5, TimeUnit.SECONDS);\n final Protos.TwoWayChannelMessage msg = pair.serverRecorder.checkNextMsg(MessageType.PAYMENT_ACK);\n final Protos.PaymentAck paymentAck = msg.getPaymentAck();\n assertTrue(\"No PaymentAck.Info\", paymentAck.hasInfo());\n assertEquals(\"Wrong PaymentAck info\", ByteString.copyFromUtf8(CENT.toPlainString()), paymentAck.getInfo());\n client.receiveMessage(msg);\n assertTrue(future.isDone());\n final PaymentIncrementAck paymentIncrementAck = future.get();\n assertEquals(\"Wrong value returned from increasePayment\", CENT, paymentIncrementAck.getValue());\n assertEquals(\"Wrong info returned from increasePayment\", ByteString.copyFromUtf8(CENT.toPlainString()), paymentIncrementAck.getInfo());\n }\n\n // Settle it and verify it's considered to be settled.\n broadcastTxPause.release();\n client.settle();\n server.receiveMessage(pair.clientRecorder.checkNextMsg(MessageType.CLOSE));\n Transaction settlement1 = broadcasts.poll(5, TimeUnit.SECONDS);\n // Server sends back the settle TX it just broadcast.\n final Protos.TwoWayChannelMessage closeMsg = pair.serverRecorder.checkNextMsg(MessageType.CLOSE);\n final Transaction settlement2 = new Transaction(PARAMS, closeMsg.getSettlement().getTx().toByteArray());\n assertEquals(settlement1, settlement2);\n client.receiveMessage(closeMsg);\n assertNotNull(wallet.getTransaction(settlement2.getHash())); // Close TX entered the wallet.\n sendMoneyToWallet(AbstractBlockChain.NewBlockType.BEST_CHAIN, settlement1);\n client.connectionClosed();\n server.connectionClosed();\n }\n // Now open a second channel and don't spend all of it/don't settle it.\n {\n Sha256Hash someServerId = Sha256Hash.ZERO_HASH;\n ChannelTestUtils.RecordingPair pair = ChannelTestUtils.makeRecorders(serverWallet, mockBroadcaster);\n pair.server.connectionOpen();\n PaymentChannelClient client = new PaymentChannelClient(wallet, myKey, COIN, someServerId, pair.clientRecorder, versionSelector);\n PaymentChannelServer server = pair.server;\n client.connectionOpen();\n final Protos.TwoWayChannelMessage msg = pair.clientRecorder.checkNextMsg(MessageType.CLIENT_VERSION);\n assertFalse(msg.getClientVersion().hasPreviousChannelContractHash());\n server.receiveMessage(msg);\n client.receiveMessage(pair.serverRecorder.checkNextMsg(MessageType.SERVER_VERSION));\n client.receiveMessage(pair.serverRecorder.checkNextMsg(MessageType.INITIATE));\n if (useRefunds()) {\n server.receiveMessage(pair.clientRecorder.checkNextMsg(MessageType.PROVIDE_REFUND));\n client.receiveMessage(pair.serverRecorder.checkNextMsg(MessageType.RETURN_REFUND));\n }\n broadcastTxPause.release();\n server.receiveMessage(pair.clientRecorder.checkNextMsg(MessageType.PROVIDE_CONTRACT));\n broadcasts.poll(5, TimeUnit.SECONDS);\n pair.serverRecorder.checkTotalPayment(Transaction.REFERENCE_DEFAULT_MIN_TX_FEE);\n client.receiveMessage(pair.serverRecorder.checkNextMsg(MessageType.CHANNEL_OPEN));\n Sha256Hash contractHash = (Sha256Hash) pair.serverRecorder.q.poll(5, TimeUnit.SECONDS);\n pair.clientRecorder.checkInitiated();\n assertNull(pair.serverRecorder.q.poll());\n assertNull(pair.clientRecorder.q.poll());\n client.incrementPayment(CENT);\n server.receiveMessage(pair.clientRecorder.checkNextMsg(MessageType.UPDATE_PAYMENT));\n client.connectionClosed();\n server.connectionClosed();\n }\n // Now connect again and check we resume the second channel.\n {\n Sha256Hash someServerId = Sha256Hash.ZERO_HASH;\n ChannelTestUtils.RecordingPair pair = ChannelTestUtils.makeRecorders(serverWallet, mockBroadcaster);\n pair.server.connectionOpen();\n PaymentChannelClient client = new PaymentChannelClient(wallet, myKey, COIN, someServerId, pair.clientRecorder, versionSelector);\n PaymentChannelServer server = pair.server;\n client.connectionOpen();\n server.receiveMessage(pair.clientRecorder.checkNextMsg(MessageType.CLIENT_VERSION));\n client.receiveMessage(pair.serverRecorder.checkNextMsg(MessageType.SERVER_VERSION));\n client.receiveMessage(pair.serverRecorder.checkNextMsg(MessageType.CHANNEL_OPEN));\n }\n assertEquals(2, StoredPaymentChannelClientStates.getFromWallet(wallet).mapChannels.size());\n }", "title": "" }, { "docid": "8c43ecdcf344aa941630ebdbe1a5e51a", "score": "0.51003903", "text": "public abstract List<IMerkleTree.Node> generateResponse(int blockToTest);", "title": "" }, { "docid": "4f1253e4315d5a108563f8299bb0e777", "score": "0.50828636", "text": "public static Block unlimited(Block block) {\n return new RepeatBlock(Integer.MAX_VALUE, block);\n }", "title": "" }, { "docid": "571293682596f8702e08bd5da6367399", "score": "0.5078994", "text": "public void requestNewBlock(Peer peer){\n\t\tif(this.done)\n\t\t\treturn;\n\t\t\n\t\tboolean[] peerlist = peer.getBitfield();\n\t\tint[] priorityBV = new int[peerlist.length];\n\t\tArrayList<Peer> peers = this.peerManager.getPeers();\n\t\t\n\t\tfor(Peer p : peers){\n\t\t\tboolean[] pl = p.getBitfield();\n\t\t\tfor(int i = 0; i < priorityBV.length && i < pl.length; i++){\n\t\t\t\tif(pl[i])\n\t\t\t\t\tpriorityBV[i]++;\n\t\t\t}\n\t\t}\n\t\tfor(int min = 1; min <= peers.size(); min++){\n\t\t\t//System.out.println(\"priority: \" + min);\n\t\t\tfor(int i = 0; i < this.recieved.length; i++){\n\t\t\t\tif(priorityBV[i] > min)\n\t\t\t\t\tcontinue;\n\t\t\t\tif(!this.recieved[i] && peerlist[i]){\n\t\t\t\t\tPiece p = this.pieces.get(i);\n\t\t\t\t\tif(p == null || p.complete() || p.blockWaiting())\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\tint offset = p.getNextBlockOffset();\n\t\t\t\t\tif(offset < 0)\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\tint length = p.getBlockLength(offset);\n\t\t\t\t\tif(length <= 0)\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t//System.out.println(\"Requesting \" + i + \"-\" + offset + \"-\" + length);\n\t\t\t\t\tpeer.sendMessage(Message.blockRequestBuilder(i, offset, length));\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//System.out.println(\"Oops\");\n\t}", "title": "" }, { "docid": "0f83deff9f022954411e0963730b0e1f", "score": "0.5075497", "text": "public interface MessageReceiver {\n boolean checkMine(Number160 peerID);\n\n void onReceived(ByteBuf request);\n}", "title": "" }, { "docid": "18dcf206d1d46a2a8ff49fb842e9f096", "score": "0.5070989", "text": "public void block() {\n }", "title": "" }, { "docid": "ede5cdab4a457ed080886249df105b50", "score": "0.5062553", "text": "@Test\n public void testGetBlockHeaders() {\n int NUM_BLOCKS = 25;\n int NUM_BLOCKS_AGO = 100;\n int currentHeight = daemon.getInfo().getHeight();\n int startHeight = currentHeight - NUM_BLOCKS_AGO;\n int endHeight = currentHeight - (NUM_BLOCKS_AGO - NUM_BLOCKS) - 1;\n List<MoneroBlockHeader> headers = daemon.getBlockHeaders(startHeight, endHeight);\n \n // test blocks\n assertEquals(NUM_BLOCKS, headers.size());\n for (int i = 0; i < NUM_BLOCKS; i++) {\n MoneroBlockHeader header = headers.get(i);\n assertEquals((int) startHeight + i, (int) header.getHeight());\n testDaemonResponseInfo(header, true, true);\n testBlockHeader(header);\n }\n }", "title": "" }, { "docid": "8f8c5bfce512af1ebcab4116d774fcda", "score": "0.5058614", "text": "public interface Network {\n\n /**\n * Send data to other party with id partyId. Ownership of the data array is transferred to\n * the network through this call. This means that the caller cannot change the byte array after\n * this call nor assume it is unchanged by the network.\n *\n * @param partyId the party to send data to\n * @param data the data to send\n */\n void send(int partyId, byte[] data);\n\n /**\n * Blocking call that only returns once the data has been fully received. Ownership of the\n * byte array is given to the caller.\n *\n * @param partyId the party to receive from\n * @return the data send by the given partyId through the given channel\n */\n byte[] receive(int partyId);\n\n /**\n * Gets the total amount of players. Used for building the default methods.\n *\n * @return the number of different parties.\n */\n int getNoOfParties();\n\n /**\n * Retrieves input from all players (including yourself)\n *\n * @return A list of byte buffers where the data from party 1 resides at\n * index 0 and so forth.\n */\n default List<byte[]> receiveFromAll() {\n List<byte[]> res = new ArrayList<>();\n for (int i = 1; i <= getNoOfParties(); i++) {\n res.add(receive(i));\n }\n return res;\n }\n\n /**\n * Queues up a value to be send to all parties (yourself included).\n *\n * @param data The value to send to all parties\n */\n default void sendToAll(byte[] data) {\n for (int i = 1; i <= getNoOfParties(); i++) {\n send(i, data);\n }\n }\n\n}", "title": "" }, { "docid": "26ffdf6d73e88dde1aacf7f5943710cd", "score": "0.50557166", "text": "protos.Fabric.BlockOrBuilder getBlocksOrBuilder(\n int index);", "title": "" }, { "docid": "23d5bd4a2feff64df1bdd36724bd861b", "score": "0.5048088", "text": "Block getBlock();", "title": "" }, { "docid": "44894fe29d8df18ae4986608f39cfbed", "score": "0.5034018", "text": "java.util.List<protos.Fabric.Block> \n getBlocksList();", "title": "" }, { "docid": "dbb1094e60625d6696140406b5d71cf9", "score": "0.5032728", "text": "public BlockInstruction()\n {\n list = new ArrayList<>();\n }", "title": "" }, { "docid": "90341dbb3644954b59168b780be06a93", "score": "0.50240445", "text": "@Test\n public void testParseClientHandshake() throws Exception {\n for (int splitPos = 1; splitPos < 5; splitPos++) {\n log.info(\"Checking split position: \" + splitPos);\n\n ByteBuffer tmp = clientHandshakePacket();\n\n ByteBuffer[] split = split(tmp, splitPos);\n\n GridNioSession ses = new MockNioSession();\n\n ses.addMeta(MARSHALLER.ordinal(), new GridClientOptimizedMarshaller());\n\n GridTcpRestParser parser = new GridTcpRestParser(false);\n\n Collection<GridClientMessage> lst = new ArrayList<>(1);\n\n for (ByteBuffer buf : split) {\n GridClientMessage r;\n\n while (buf.hasRemaining() && (r = parser.decode(ses, buf)) != null)\n lst.add(r);\n\n assertTrue(\"Parser has left unparsed bytes.\", buf.remaining() == 0);\n }\n\n assertEquals(1, lst.size());\n\n GridClientHandshakeRequest req = (GridClientHandshakeRequest)F.first(lst);\n\n assertNotNull(req);\n assertEquals(U.bytesToShort(new byte[]{5, 0}, 0), req.version());\n }\n }", "title": "" }, { "docid": "dd8c8ff58ba6b4ac430cc5cda6a7381d", "score": "0.50186294", "text": "private BlockState(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n }", "title": "" }, { "docid": "00fef5aa861d3fdc2ae230add312da6e", "score": "0.50051457", "text": "public void block() {\n\t}", "title": "" }, { "docid": "8e363c5c07565040ead6a660ecef6fbb", "score": "0.50030535", "text": "public void setMaxRepetitions(int no)\r\n{\r\n // same field as error index in any other PDU.\r\n max_repetitions = no;\r\n}", "title": "" }, { "docid": "9bc0378bbd277ebfee06c4b2e7ec5cfa", "score": "0.49905542", "text": "public OutNetMessage getNext(long blockUntil);", "title": "" }, { "docid": "f314f8b2d000154ff525c54ef39c767b", "score": "0.49801025", "text": "String[][] generateNextBlock();", "title": "" }, { "docid": "66d33ede4c594471de8901d944598ba5", "score": "0.49785885", "text": "default void addBlock(URIRes res1, URIRes res2) { }", "title": "" }, { "docid": "cbbba0ff416707cd9cb914b7e43bc4ed", "score": "0.49741945", "text": "int blockHeaderSize();", "title": "" }, { "docid": "4d987b30c909ad2294511b392c73da84", "score": "0.4971474", "text": "private final com.google.p061a.p062a.p063a.p064a.p069b.p070a.p071a.p076c.p078b.p079a.ad m4989b(com.google.protobuf.nano.a r7) {\n /*\n r6 = this;\n L_0x0000:\n r0 = r7.a();\n switch(r0) {\n case 0: goto L_0x000d;\n case 10: goto L_0x000e;\n case 18: goto L_0x0015;\n case 26: goto L_0x001c;\n case 34: goto L_0x002d;\n case 40: goto L_0x003e;\n case 50: goto L_0x006f;\n case 58: goto L_0x0076;\n case 64: goto L_0x007d;\n case 74: goto L_0x0085;\n case 82: goto L_0x008d;\n default: goto L_0x0007;\n };\n L_0x0007:\n r0 = super.m4918a(r7, r0);\n if (r0 != 0) goto L_0x0000;\n L_0x000d:\n return r6;\n L_0x000e:\n r0 = r7.f();\n r6.f4864c = r0;\n goto L_0x0000;\n L_0x0015:\n r0 = r7.f();\n r6.f4865d = r0;\n goto L_0x0000;\n L_0x001c:\n r0 = r6.f4871j;\n if (r0 != 0) goto L_0x0027;\n L_0x0020:\n r0 = new com.google.a.a.a.a.b.a.a.d.a.a;\n r0.<init>();\n r6.f4871j = r0;\n L_0x0027:\n r0 = r6.f4871j;\n r7.a(r0);\n goto L_0x0000;\n L_0x002d:\n r0 = r6.f4862a;\n if (r0 != 0) goto L_0x0038;\n L_0x0031:\n r0 = new com.google.a.a.a.a.b.a.a.f.h;\n r0.<init>();\n r6.f4862a = r0;\n L_0x0038:\n r0 = r6.f4862a;\n r7.a(r0);\n goto L_0x0000;\n L_0x003e:\n r1 = r7.o();\n r2 = r7.i();\t Catch:{ IllegalArgumentException -> 0x0064 }\n switch(r2) {\n case 0: goto L_0x006c;\n case 1: goto L_0x006c;\n case 2: goto L_0x006c;\n default: goto L_0x0049;\n };\t Catch:{ IllegalArgumentException -> 0x0064 }\n L_0x0049:\n r3 = new java.lang.IllegalArgumentException;\t Catch:{ IllegalArgumentException -> 0x0064 }\n r4 = 47;\n r5 = new java.lang.StringBuilder;\t Catch:{ IllegalArgumentException -> 0x0064 }\n r5.<init>(r4);\t Catch:{ IllegalArgumentException -> 0x0064 }\n r2 = r5.append(r2);\t Catch:{ IllegalArgumentException -> 0x0064 }\n r4 = \" is not a valid enum AssociationType\";\n r2 = r2.append(r4);\t Catch:{ IllegalArgumentException -> 0x0064 }\n r2 = r2.toString();\t Catch:{ IllegalArgumentException -> 0x0064 }\n r3.<init>(r2);\t Catch:{ IllegalArgumentException -> 0x0064 }\n throw r3;\t Catch:{ IllegalArgumentException -> 0x0064 }\n L_0x0064:\n r2 = move-exception;\n r7.e(r1);\n r6.m4918a(r7, r0);\n goto L_0x0000;\n L_0x006c:\n r6.f4863b = r2;\t Catch:{ IllegalArgumentException -> 0x0064 }\n goto L_0x0000;\n L_0x006f:\n r0 = r7.g();\n r6.f4866e = r0;\n goto L_0x0000;\n L_0x0076:\n r0 = r7.f();\n r6.f4868g = r0;\n goto L_0x0000;\n L_0x007d:\n r0 = r7.i();\n r6.f4869h = r0;\n goto L_0x0000;\n L_0x0085:\n r0 = r7.f();\n r6.f4870i = r0;\n goto L_0x0000;\n L_0x008d:\n r0 = r7.f();\n r6.f4867f = r0;\n goto L_0x0000;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.a.a.a.a.b.a.a.c.b.a.ad.b(com.google.protobuf.nano.a):com.google.a.a.a.a.b.a.a.c.b.a.ad\");\n }", "title": "" }, { "docid": "eac0975543d2a41175a7b38a2ebd11ce", "score": "0.4971362", "text": "protobuf_unittest.LazyFieldsLite.LazyInnerMessageLite getRepeatedInner(int index);", "title": "" }, { "docid": "3be17fb9a34c5d5b09508c30b354348d", "score": "0.4966757", "text": "Builder blocksPerCluster(VariableAmount attempts);", "title": "" }, { "docid": "889eb80c81705069c906881945afd863", "score": "0.49666762", "text": "protos.Fabric.BlockchainInfoOrBuilder getBlockchainInfoOrBuilder();", "title": "" }, { "docid": "5c58dc539f158b1587514c74286f407c", "score": "0.49640772", "text": "void bufs()\n {\n Buf code = parent.code;\n code.align(2);\n\n // sanity check to ensure we are both aligned on a\n // block index and on an 2-byte boundary\n if (code.size % parent.image.blockSize != 0) throw new IllegalStateException();\n if (code.size % 2 != 0) throw new IllegalStateException();\n \n Buf[] keys = (Buf[])bufs.keySet().toArray(new Buf[bufs.size()]);\n Arrays.sort(keys);\n for (int i=0; i<keys.length; ++i)\n {\n IrBuf buf = (IrBuf)bufs.get(keys[i]);\n buf.blockIndex = blockIndex();\n Buf val = buf.val;\n // System.out.println(\"-- [\" + buf.blockIndex + \"] \\\"\" + val);\n code.u2(val.size);\n code.u2(val.size);\n code.append(val);\n code.align(2); // leave padding \n blockAlign();\n }\n }", "title": "" }, { "docid": "336247de5be886a78a5b7397f42194a8", "score": "0.4961373", "text": "public Blocker(){\n super(\"Blocker\",4,850,1800,\"n\",9,0);\n }", "title": "" }, { "docid": "864a6197e43c02a650aee837f1047d7d", "score": "0.49596313", "text": "public void receivedSyncMessage( MessageBlock message ) {}", "title": "" }, { "docid": "7dae25d2504a8de71a100649d74bb48c", "score": "0.4950487", "text": "@Test\n @InSequence(2)\n public void testSendMsgs() throws Exception {\n for (int i = 1; i <= 10; i++) {\n sendNMessages(i, i + 1);\n }\n }", "title": "" }, { "docid": "1c90f539228e6c4e23610a4419bece28", "score": "0.4945766", "text": "java.util.List<? extends parspiceTest.FurnshReqOrBuilder> \n getRequestsOrBuilderList();", "title": "" }, { "docid": "8697955d0d39ef6336cd5ac4fc3809d4", "score": "0.4938769", "text": "java.util.List<protobuf_unittest.UnittestMultiNestedProto.Inner> \n getTwoList();", "title": "" }, { "docid": "f267b1adeefe491d697e36e1cd9d4ccb", "score": "0.493759", "text": "protected void checkBlockLength(int paramInt1, int paramInt2) {\n/* 283 */ if (!this.isChunked) {\n/* */ return;\n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 293 */ if (this.specialNoOptionalDataState) {\n/* 294 */ throw this.omgWrapper.rmiiiopOptionalDataIncompatible1();\n/* */ }\n/* */ \n/* 297 */ boolean bool = false;\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 306 */ if (this.blockLength == get_offset()) {\n/* */ \n/* 308 */ this.blockLength = 2147483392;\n/* 309 */ start_block();\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 317 */ if (this.blockLength == 2147483392) {\n/* 318 */ bool = true;\n/* */ }\n/* */ }\n/* 321 */ else if (this.blockLength < get_offset()) {\n/* */ \n/* */ \n/* 324 */ throw this.wrapper.chunkOverflow();\n/* */ } \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 334 */ int i = computeAlignment(this.bbwi.position(), paramInt1) + paramInt2;\n/* */ \n/* 336 */ if (this.blockLength != 2147483392 && this.blockLength < \n/* 337 */ get_offset() + i) {\n/* 338 */ throw this.omgWrapper.rmiiiopOptionalDataIncompatible2();\n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 346 */ if (bool) {\n/* 347 */ int j = read_long();\n/* 348 */ this.bbwi.position(this.bbwi.position() - 4);\n/* */ \n/* */ \n/* */ \n/* */ \n/* 353 */ if (j < 0) {\n/* 354 */ throw this.omgWrapper.rmiiiopOptionalDataIncompatible3();\n/* */ }\n/* */ } \n/* */ }", "title": "" }, { "docid": "8423c00184eb549fb943fa95f9a71751", "score": "0.49149114", "text": "java.util.List<? extends proto.TestDummyOrBuilder> \n getTestDummiesOrBuilderList();", "title": "" }, { "docid": "135c70a944fe8a593551b976437ccb95", "score": "0.490493", "text": "ConsLoBlock(Block first, ILoBlock rest) {\n //default speed is 15\n this(first, rest, 15);\n }", "title": "" }, { "docid": "337ca4e1324f6999aa8cf78775514b59", "score": "0.4901105", "text": "@Override\n boolean visitHaveMessage(HaveMessage message) {\n boolean[] blocks;\n blocks = peer.peers2BlocksMap.get(message.sender);\n if (blocks == null)return false;\n blocks[message.blockIndex] = true;\n return false;\n }", "title": "" }, { "docid": "d97ad7f4661c2946fbadb567369112e8", "score": "0.49009383", "text": "long getBlockNumber();", "title": "" }, { "docid": "650b536ffd20592399d94ae187986d29", "score": "0.48983175", "text": "@NonBlocking\n void next();", "title": "" }, { "docid": "f73e0f4355dfb0b54036b5b4a2779363", "score": "0.4896911", "text": "public void receivedSyncMessage( MessageBlock message );", "title": "" }, { "docid": "c5e6c78c4e599364b8708c619672da2f", "score": "0.48962948", "text": "boolean isBlockRepeat();", "title": "" }, { "docid": "ae4270ea7d3647310b44964dc69f966e", "score": "0.48926404", "text": "protobuf_unittest.LazyFieldsLite.LazyInnerMessageLite getInner();", "title": "" }, { "docid": "07ab7f3b93ea0d22081e48be8d2634f7", "score": "0.4887798", "text": "com.aiflow.proto.Message.ExampleProto getExample();", "title": "" }, { "docid": "4c67311574feb09fd1c924b02d007be5", "score": "0.48839477", "text": "public void registerBlocks() {\n\n\t}", "title": "" }, { "docid": "f20bab59fdd655d057ba33af77111b8c", "score": "0.48795968", "text": "public static void registerBlocks() { }", "title": "" }, { "docid": "c723aa59c827dea2b5c28af1a8cd20a3", "score": "0.48786944", "text": "public ContinuationWebSocketFrame(ByteBuf binaryData) {\n/* 42 */ super(binaryData);\n/* */ }", "title": "" }, { "docid": "c03305feb6e6887de9daaa8c113ace6c", "score": "0.48637477", "text": "java.util.List<protobuf_unittest.UnittestMultiNestedProto.Holder> \n getData2List();", "title": "" }, { "docid": "98b3bc7844353e8efb8ab2f5269b3de3", "score": "0.4855739", "text": "public void setToBlock(BigInteger toBlock);", "title": "" }, { "docid": "729d5ebb51528f96b4c5e4821aebeb94", "score": "0.4853914", "text": "protos.Fabric.BlockchainInfo getBlockchainInfo();", "title": "" }, { "docid": "aae6c9c7cc41dbac777b77d612273475", "score": "0.485201", "text": "int getTransactionProtoCount();", "title": "" }, { "docid": "b2ba6e16d6f64cafc2e2a4791f44a10c", "score": "0.48458815", "text": "@Override\n public void block() {\n }", "title": "" }, { "docid": "9b7d2b1391a6a92cb9c680888d020b75", "score": "0.48447147", "text": "@Override\n public String getLabel()\n {\n return \"Block\";\n }", "title": "" }, { "docid": "517e508b4814769cce89928dc0567cda", "score": "0.4844698", "text": "private boolean m12767u(com.google.protobuf.CodedInputStream r6, com.google.protobuf.ExtensionRegistryLite r7, com.google.protobuf.GeneratedMessageLite.GeneratedExtension<?, ?> r8, int r9, int r10) {\n /*\n r5 = this;\n int r0 = com.google.protobuf.WireFormat.getTagWireType(r9)\n r1 = 0\n r2 = 1\n if (r8 != 0) goto L_0x000b\n L_0x0008:\n r0 = 1\n L_0x0009:\n r3 = 0\n goto L_0x0035\n L_0x000b:\n com.google.protobuf.GeneratedMessageLite$b r3 = r8.f20572d\n com.google.protobuf.WireFormat$FieldType r3 = r3.getLiteType()\n int r3 = com.google.protobuf.FieldSet.m12715p(r3, r1)\n if (r0 != r3) goto L_0x0019\n r0 = 0\n goto L_0x0009\n L_0x0019:\n com.google.protobuf.GeneratedMessageLite$b r3 = r8.f20572d\n boolean r4 = r3.f20581d\n if (r4 == 0) goto L_0x0008\n com.google.protobuf.WireFormat$FieldType r3 = r3.f20580c\n boolean r3 = r3.isPackable()\n if (r3 == 0) goto L_0x0008\n com.google.protobuf.GeneratedMessageLite$b r3 = r8.f20572d\n com.google.protobuf.WireFormat$FieldType r3 = r3.getLiteType()\n int r3 = com.google.protobuf.FieldSet.m12715p(r3, r2)\n if (r0 != r3) goto L_0x0008\n r0 = 0\n r3 = 1\n L_0x0035:\n if (r0 == 0) goto L_0x003c\n boolean r6 = r5.parseUnknownField(r9, r6)\n return r6\n L_0x003c:\n r5.mo23362r()\n if (r3 == 0) goto L_0x0093\n int r7 = r6.readRawVarint32()\n int r7 = r6.pushLimit(r7)\n com.google.protobuf.GeneratedMessageLite$b r9 = r8.f20572d\n com.google.protobuf.WireFormat$FieldType r9 = r9.getLiteType()\n com.google.protobuf.WireFormat$FieldType r10 = com.google.protobuf.WireFormat.FieldType.ENUM\n if (r9 != r10) goto L_0x0076\n L_0x0053:\n int r9 = r6.getBytesUntilLimit()\n if (r9 <= 0) goto L_0x008e\n int r9 = r6.readEnum()\n com.google.protobuf.GeneratedMessageLite$b r10 = r8.f20572d\n com.google.protobuf.Internal$EnumLiteMap r10 = r10.getEnumType()\n com.google.protobuf.Internal$EnumLite r9 = r10.findValueByNumber(r9)\n if (r9 != 0) goto L_0x006a\n return r2\n L_0x006a:\n com.google.protobuf.FieldSet<com.google.protobuf.GeneratedMessageLite$b> r10 = r5.extensions\n com.google.protobuf.GeneratedMessageLite$b r0 = r8.f20572d\n java.lang.Object r9 = r8.mo23366d(r9)\n r10.mo23280a(r0, r9)\n goto L_0x0053\n L_0x0076:\n int r9 = r6.getBytesUntilLimit()\n if (r9 <= 0) goto L_0x008e\n com.google.protobuf.GeneratedMessageLite$b r9 = r8.f20572d\n com.google.protobuf.WireFormat$FieldType r9 = r9.getLiteType()\n java.lang.Object r9 = com.google.protobuf.FieldSet.m12704B(r6, r9, r1)\n com.google.protobuf.FieldSet<com.google.protobuf.GeneratedMessageLite$b> r10 = r5.extensions\n com.google.protobuf.GeneratedMessageLite$b r0 = r8.f20572d\n r10.mo23280a(r0, r9)\n goto L_0x0076\n L_0x008e:\n r6.popLimit(r7)\n goto L_0x0122\n L_0x0093:\n int[] r9 = com.google.protobuf.GeneratedMessageLite.C3642a.f20577a\n com.google.protobuf.GeneratedMessageLite$b r0 = r8.f20572d\n com.google.protobuf.WireFormat$JavaType r0 = r0.getLiteJavaType()\n int r0 = r0.ordinal()\n r9 = r9[r0]\n if (r9 == r2) goto L_0x00c7\n r7 = 2\n if (r9 == r7) goto L_0x00b1\n com.google.protobuf.GeneratedMessageLite$b r7 = r8.f20572d\n com.google.protobuf.WireFormat$FieldType r7 = r7.getLiteType()\n java.lang.Object r6 = com.google.protobuf.FieldSet.m12704B(r6, r7, r1)\n goto L_0x0103\n L_0x00b1:\n int r6 = r6.readEnum()\n com.google.protobuf.GeneratedMessageLite$b r7 = r8.f20572d\n com.google.protobuf.Internal$EnumLiteMap r7 = r7.getEnumType()\n com.google.protobuf.Internal$EnumLite r7 = r7.findValueByNumber(r6)\n if (r7 != 0) goto L_0x00c5\n r5.mergeVarintField(r10, r6)\n return r2\n L_0x00c5:\n r6 = r7\n goto L_0x0103\n L_0x00c7:\n r9 = 0\n com.google.protobuf.GeneratedMessageLite$b r10 = r8.f20572d\n boolean r10 = r10.isRepeated()\n if (r10 != 0) goto L_0x00e0\n com.google.protobuf.FieldSet<com.google.protobuf.GeneratedMessageLite$b> r10 = r5.extensions\n com.google.protobuf.GeneratedMessageLite$b r0 = r8.f20572d\n java.lang.Object r10 = r10.mo23287j(r0)\n com.google.protobuf.MessageLite r10 = (com.google.protobuf.MessageLite) r10\n if (r10 == 0) goto L_0x00e0\n com.google.protobuf.MessageLite$Builder r9 = r10.toBuilder()\n L_0x00e0:\n if (r9 != 0) goto L_0x00ea\n com.google.protobuf.MessageLite r9 = r8.getMessageDefaultInstance()\n com.google.protobuf.MessageLite$Builder r9 = r9.newBuilderForType()\n L_0x00ea:\n com.google.protobuf.GeneratedMessageLite$b r10 = r8.f20572d\n com.google.protobuf.WireFormat$FieldType r10 = r10.getLiteType()\n com.google.protobuf.WireFormat$FieldType r0 = com.google.protobuf.WireFormat.FieldType.GROUP\n if (r10 != r0) goto L_0x00fc\n int r10 = r8.getNumber()\n r6.readGroup((int) r10, (com.google.protobuf.MessageLite.Builder) r9, (com.google.protobuf.ExtensionRegistryLite) r7)\n goto L_0x00ff\n L_0x00fc:\n r6.readMessage((com.google.protobuf.MessageLite.Builder) r9, (com.google.protobuf.ExtensionRegistryLite) r7)\n L_0x00ff:\n com.google.protobuf.MessageLite r6 = r9.build()\n L_0x0103:\n com.google.protobuf.GeneratedMessageLite$b r7 = r8.f20572d\n boolean r7 = r7.isRepeated()\n if (r7 == 0) goto L_0x0117\n com.google.protobuf.FieldSet<com.google.protobuf.GeneratedMessageLite$b> r7 = r5.extensions\n com.google.protobuf.GeneratedMessageLite$b r9 = r8.f20572d\n java.lang.Object r6 = r8.mo23366d(r6)\n r7.mo23280a(r9, r6)\n goto L_0x0122\n L_0x0117:\n com.google.protobuf.FieldSet<com.google.protobuf.GeneratedMessageLite$b> r7 = r5.extensions\n com.google.protobuf.GeneratedMessageLite$b r9 = r8.f20572d\n java.lang.Object r6 = r8.mo23366d(r6)\n r7.mo23278C(r9, r6)\n L_0x0122:\n return r2\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.protobuf.GeneratedMessageLite.ExtendableMessage.m12767u(com.google.protobuf.CodedInputStream, com.google.protobuf.ExtensionRegistryLite, com.google.protobuf.GeneratedMessageLite$GeneratedExtension, int, int):boolean\");\n }", "title": "" }, { "docid": "6d324293215ed099edb2f3974bca136d", "score": "0.4839919", "text": "int getBlockLength();", "title": "" }, { "docid": "777baf6c41e78575f748849ca6a90faa", "score": "0.4819239", "text": "@Override\n boolean visitPieceMessage(PieceMessage message) {\n peer.data[message.blockIndex] = message.data; //ulozi data do lokalniho uzlu\n peer.downloadedBlocksCount++;//zvysi pocet stazenych bloku\n for (PeerInterface p: peer.peers2BlocksMap.keySet()){\n p.have(peer, message.blockIndex);//vsem vzdalenym uzlum (vcetne toho, od ktereho data obdrzel) rozesle zpravu \"have\"\n }\n\n return peer.downloadedBlocksCount==peer.totalBlocksCount;//Vrati true, pokud lokalni uzel stahl vsechny bloky, false jinak.\n }", "title": "" }, { "docid": "1b69635312de79515aaba19fc2f0f4bf", "score": "0.481821", "text": "long getBlockTime();", "title": "" } ]
487b21321accae3008d39afe47b5af41
Test case number: 34 /Coverage entropy=1.2130075659799042
[ { "docid": "c3ec4a5fd09c32c90a834e88159cb180", "score": "0.0", "text": "@Test(timeout = 4000)\n public void test034() throws Throwable {\n Submit submit0 = new Submit((Component) null, \"p\", \"f&vrQc[JH/5XdO5p=S\");\n Map<String, String> map0 = submit0._getXhtmlAttributes();\n assertEquals(1, map0.size());\n }", "title": "" } ]
[ { "docid": "80807553c59aad5881b49e5bf8f2ae4d", "score": "0.73175514", "text": "@Test(timeout = 4000)\n public void test126() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.totalCost();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "title": "" }, { "docid": "94f212bc6a849c00ff38d6f8b43105a1", "score": "0.72135067", "text": "@Test(timeout = 4000)\n public void test112() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.getHeader();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "title": "" }, { "docid": "232cf22eae50aaa4ac74a64a4f52888a", "score": "0.6935526", "text": "@Test\n public void test29() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n double double0 = evaluation0.pctCorrect();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "title": "" }, { "docid": "6c11c3d6d0fedee1ebeb1104de2ff01c", "score": "0.6896739", "text": "@Test(timeout = 4000)\n public void test050() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.areaUnderPRC((-1));\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "title": "" }, { "docid": "c5760c87fd93158fa2e2bb9075c1f6eb", "score": "0.68869877", "text": "@Test\n public void test40() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertEquals(0.0, evaluation0.unclassified(), 0.01D);\n }", "title": "" }, { "docid": "785c2ef17d43efc55fa83e7162396754", "score": "0.6867901", "text": "@Test(timeout = 4000)\n public void test110() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString();\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(\"\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "title": "" }, { "docid": "dd3e139758ea44aa1d7dc2d52f50d5d4", "score": "0.68641216", "text": "@Test(timeout = 4000)\n public void test025() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setPriors(instances0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "title": "" }, { "docid": "c7da693efd4f4a3bd0247dd7668a680f", "score": "0.68127453", "text": "@Test(timeout = 4000)\n public void test012() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.priorEntropy();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "title": "" }, { "docid": "5eef8f66e7b9261fc303bc9cefdf0d9d", "score": "0.68051594", "text": "@Test(timeout = 4000)\n public void test108() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.avgCost();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "title": "" }, { "docid": "3af062974f99b586f07a88f43189107a", "score": "0.67981917", "text": "@Test(timeout = 4000)\n public void test120() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.pctIncorrect();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "title": "" }, { "docid": "ba0c80410f3946347963b8c96e70fba3", "score": "0.67781866", "text": "@Test(timeout = 4000)\n public void test118() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n \n evaluation0.useNoPriors();\n assertEquals(Double.NaN, evaluation0.SFPriorEntropy(), 0.01);\n }", "title": "" }, { "docid": "f52a557dae67ad6a3235e543dddbb6d5", "score": "0.67551225", "text": "@Test\n public void test17() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFPriorEntropy();\n assertEquals(0.0, double0, 0.01D);\n }", "title": "" }, { "docid": "4b1e35d1916d708b3056b1400b8a16ec", "score": "0.6750383", "text": "@Test(timeout = 4000)\n public void test117() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.pctUnclassified();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "title": "" }, { "docid": "0ff278a33193f25721cb4ca6766d4390", "score": "0.67431813", "text": "@Test(timeout = 4000)\n public void test113() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString(false);\n assertEquals(\"=== Summary ===\\n\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n }", "title": "" }, { "docid": "65b9e502a212e2303d337d50d9de3a69", "score": "0.6722561", "text": "@Test(timeout = 4000)\n public void test007() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setNumericPriorsFromBuffer();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "title": "" }, { "docid": "41526fecb903ad3f94a7b84632f37e52", "score": "0.6708117", "text": "@Test(timeout = 4000)\n public void test086() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanPriorEntropy();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "title": "" }, { "docid": "73ab4bdf42537ecef11014ae4df661da", "score": "0.6686826", "text": "@Test(timeout = 4000)\n public void test119() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString((String) null, true);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(\"null\\nTotal Number of Instances 0 \\n\", string0);\n }", "title": "" }, { "docid": "7ae58ac4493ed847bba35e47ca55548e", "score": "0.66816", "text": "@Test(timeout = 4000)\n public void test114() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = evaluation0.getClassPriors();\n assertEquals(2, doubleArray0.length);\n assertNotNull(doubleArray0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "title": "" }, { "docid": "a64681e5dac0be7450bb6b3dfa08cb54", "score": "0.6681271", "text": "@Test(timeout = 4000)\n public void test085() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanSchemeEntropy();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "title": "" }, { "docid": "3e4769f5357a9a18a661d618137c0b8f", "score": "0.6673647", "text": "@Test(timeout = 4000)\n public void test083() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanEntropyGain();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(Double.NaN, double0, 0.01);\n }", "title": "" }, { "docid": "12615e3225077d78f80f58f3d34a696c", "score": "0.6657405", "text": "@Test(timeout = 4000)\n public void test031() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.numFalseNegatives((-1436));\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(0.0, double0, 0.01);\n }", "title": "" }, { "docid": "605c4ce5bfcac5f871f74e7b794b33fd", "score": "0.66339946", "text": "@Test\n public void test35() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.pctUnclassified();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertEquals(Double.NaN, double0, 0.01D);\n }", "title": "" }, { "docid": "4ca40ff0ef23761bf9040ae98b05794a", "score": "0.66319466", "text": "@Test(timeout = 4000)\n public void test116() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.correct();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "title": "" }, { "docid": "5117f11c46c60172d7af5f7df0b64576", "score": "0.66214675", "text": "@Test\n public void test36() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.incorrect();\n assertEquals(0.0, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "title": "" }, { "docid": "653a9d80e310ad7e143aa99b24aaf1e6", "score": "0.6591958", "text": "@Test\n public void test33() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.correct();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertEquals(0.0, double0, 0.01D);\n }", "title": "" }, { "docid": "96be29e17f2a176c6ad0d72709b28d0e", "score": "0.6588393", "text": "@Test(timeout = 4000)\n public void test013() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = evaluation0.getClassPriors();\n assertNotNull(doubleArray0);\n assertEquals(0, doubleArray0.length);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "title": "" }, { "docid": "020fad79db21b76fb2aee9858f59ff54", "score": "0.6586498", "text": "@Test(timeout = 4000)\n public void test121() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toClassDetailsString();\n assertEquals(\"=== Detailed Accuracy By Class ===\\n\\n TP Rate FP Rate Precision Recall F-Measure MCC ROC Area PRC Area Class\\nWeighted Avg. NaN NaN NaN NaN NaN NaN NaN NaN \\n\", string0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "title": "" }, { "docid": "75e3560b8f1bf9b4eadd18c47ac0a941", "score": "0.6500747", "text": "@Test\n public void test16() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n double double0 = evaluation0.SFSchemeEntropy();\n assertEquals(0.0, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "title": "" }, { "docid": "385eb845bf177b01d6232ee965546ebc", "score": "0.6489951", "text": "@Test(timeout = 4000)\n public void test068() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.addNumericTrainClass(360, (-336.251));\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "title": "" }, { "docid": "a04e1976a138a8f6f14284c7cee79244", "score": "0.6432652", "text": "@Test(timeout = 4000)\n public void test087() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.KBMeanInformation();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "title": "" }, { "docid": "6ff50d579c185faf5d459b54fe08ae9a", "score": "0.6432342", "text": "@Test(timeout = 4000)\n public void test026() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.recall((-9));\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "title": "" }, { "docid": "733dd48317837e2b9a788cf2700e0625", "score": "0.64225674", "text": "@Test(timeout = 4000)\n public void test024() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setPriors(instances0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "title": "" }, { "docid": "b6068b86f324c10552fddb691f8f8dcb", "score": "0.6418789", "text": "@Test(timeout = 4000)\n public void test122() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"Y#:')*#rI\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.numInstances();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(0.0, double0, 0.01);\n }", "title": "" }, { "docid": "17b19436dcb5be27dcda7a2d69ad7997", "score": "0.64116824", "text": "@Test(timeout = 4000)\n public void test048() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.areaUnderROC(17);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "title": "" }, { "docid": "981df647bb540bd1fdc97366f0043ead", "score": "0.64039487", "text": "@Test\n public void test13() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanEntropyGain();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "title": "" }, { "docid": "0a60b67f677b486b1c270d68685fc595", "score": "0.6401023", "text": "@Test\n public void test15() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFMeanSchemeEntropy();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "title": "" }, { "docid": "a08c7b90cce5288ee552a2c407ec9bb0", "score": "0.63963807", "text": "@Test\n @Tag(\"bm1000\")\n public void testE226() {\n CuteNetlibCase.doTest(\"E226.SIF\", \"-11.638929066370546\", \"111.65096068931459\", NumberContext.of(7, 4));\n }", "title": "" }, { "docid": "d411ce5ed5a92dbb1d55e5fc11117cad", "score": "0.6391273", "text": "@Test(timeout = 4000)\n public void test106() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setDiscardPredictions(false);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertFalse(evaluation0.getDiscardPredictions());\n }", "title": "" }, { "docid": "87b19c5efeaad0534bf0b43232edbe8e", "score": "0.6347177", "text": "@Test(timeout = 4000)\n public void test011() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.unclassified();\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "title": "" }, { "docid": "fa1424f0b5a3c5cc71c38fb691227e3a", "score": "0.6346912", "text": "@Test\n @Tag(\"bm1000\")\n public void testSC50A() {\n CuteNetlibCase.doTest(\"SC50A.SIF\", \"-64.57507705856449\", \"0.0\", NumberContext.of(7, 4));\n }", "title": "" }, { "docid": "099c65696fbdd3f2ed2a848553625567", "score": "0.63439614", "text": "@Test(timeout = 4000)\n public void test021() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString(\"\", false);\n assertEquals(\"\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n }", "title": "" }, { "docid": "cec02cc32b33f38bf5bf40ba390c13c8", "score": "0.63369715", "text": "@Test\n public void test01() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.addNumericTrainClass((-1459.149165489484), ',');\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "title": "" }, { "docid": "28ee4438d45cab3ba6c77a5da37c2751", "score": "0.6336889", "text": "@Test\n public void test18() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.KBMeanInformation();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "title": "" }, { "docid": "948364a7ed02bcb67e43152874479e47", "score": "0.6333615", "text": "@Test(timeout = 4000)\n public void test084() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFEntropyGain();\n assertEquals(0.0, double0, 0.01);\n }", "title": "" }, { "docid": "0e419bd809946550d34e44a1556e0766", "score": "0.63275146", "text": "@Override\n protected long getTestSolution() {\n return 100024;\n }", "title": "" }, { "docid": "d5eed6f336aeceef3e80ec35aee6bd64", "score": "0.6325712", "text": "@Test(timeout = 4000)\n public void test022() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.toMatrixString(\"getPreBuiltClassifiers\");\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "title": "" }, { "docid": "f28d84357c0235f1f41b6686e4bb27a2", "score": "0.6321674", "text": "@Test\n @Tag(\"slow\")\n public void testFIT1D() {\n CuteNetlibCase.doTest(\"FIT1D.SIF\", \"-9146.378092421019\", \"80453.99999999999\", NumberContext.of(7, 4));\n }", "title": "" }, { "docid": "a0f83b1a691e27e72638a9c570b5a1ad", "score": "0.63210636", "text": "@Test\n public void test21() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.errorRate();\n assertEquals(Double.NaN, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "title": "" }, { "docid": "dfc29f25ae12586cbe7978a7565edb40", "score": "0.63182163", "text": "@Test\n public void test30() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n boolean boolean0 = evaluation0.getDiscardPredictions();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertFalse(boolean0);\n }", "title": "" }, { "docid": "782fb40dbac20397ec5d7042e40ce8cc", "score": "0.6316863", "text": "@Test(timeout = 4000)\n public void test093() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n Object[] objectArray0 = new Object[2];\n evaluation0.evaluateModel((Classifier) null, instances0, objectArray0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "title": "" }, { "docid": "b740fdfd955ec9f330bf6d0e5a1d4090", "score": "0.6312733", "text": "@Test(timeout = 4000)\n public void test109() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n boolean boolean0 = evaluation0.getDiscardPredictions();\n assertFalse(boolean0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "title": "" }, { "docid": "cedbb41980182766f743f93ed669fdc8", "score": "0.62938887", "text": "public void testSummaryStatsPartialLog() {\n\n // TODO: Create File in platform independent way.\n File testFile = new File(\"src/test/data/dataset98.txt\");\n GcManager gcManager = new GcManager();\n File preprocessedFile = gcManager.preprocess(testFile, null);\n gcManager.store(preprocessedFile, false);\n JvmRun jvmRun = gcManager.getJvmRun(new Jvm(null, null), Constants.DEFAULT_BOTTLENECK_THROUGHPUT_THRESHOLD);\n Assert.assertEquals(\"GC event type count not correct.\", 2, jvmRun.getEventTypes().size());\n Assert.assertEquals(\"GC blocking event count not correct.\", 2, jvmRun.getBlockingEventCount());\n Assert.assertEquals(\"GC pause total not correct.\", 61, jvmRun.getTotalGcPause());\n Assert.assertEquals(\"GC first timestamp not correct.\", 1002192, jvmRun.getFirstGcEvent().getTimestamp());\n Assert.assertEquals(\"GC last timestamp not correct.\", 1002847, jvmRun.getLastGcEvent().getTimestamp());\n Assert.assertEquals(\"GC last duration not correct.\", 41, jvmRun.getLastGcEvent().getDuration());\n Assert.assertEquals(\"Stopped Time event count not correct.\", 6, jvmRun.getStoppedTimeEventCount());\n Assert.assertEquals(\"Stopped time total not correct.\", 1064, jvmRun.getTotalStoppedTime());\n Assert.assertEquals(\"Stopped first timestamp not correct.\", 1000964,\n jvmRun.getFirstStoppedEvent().getTimestamp());\n Assert.assertEquals(\"Stopped last timestamp not correct.\", 1003884,\n jvmRun.getLastStoppedEvent().getTimestamp());\n Assert.assertEquals(\"Stopped last duration not correct.\", 1000688, jvmRun.getLastStoppedEvent().getDuration());\n Assert.assertEquals(\"JVM first event timestamp not correct.\", 1000964, jvmRun.getFirstEvent().getTimestamp());\n Assert.assertEquals(\"JVM last event timestamp not correct.\", 1003884, jvmRun.getLastEvent().getTimestamp());\n Assert.assertEquals(\"JVM run duration not correct.\", 3920, jvmRun.getJvmRunDuration());\n Assert.assertEquals(\"GC throughput not correct.\", 98, jvmRun.getGcThroughput());\n Assert.assertEquals(\"Stopped time throughput not correct.\", 73, jvmRun.getStoppedTimeThroughput());\n Assert.assertTrue(Analysis.WARN_GC_STOPPED_RATIO + \" analysis not identified.\",\n jvmRun.getAnalysis().contains(Analysis.WARN_GC_STOPPED_RATIO));\n }", "title": "" }, { "docid": "e4e7750e28d8871c5d7691cc7890c45e", "score": "0.6293116", "text": "@Test\n public void test19() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.KBInformation();\n assertEquals(0.0, double0, 0.01D);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n }", "title": "" }, { "docid": "685fd14e8eb571b9b8cb6591cc4b849f", "score": "0.6280838", "text": "@Test(timeout = 4000)\n public void test102() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double[][] doubleArray0 = evaluation0.confusionMatrix();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(2, doubleArray0.length);\n }", "title": "" }, { "docid": "04d1fdf80265f3f45ffbd178c592392b", "score": "0.6264721", "text": "@Test\n @Tag(\"slow\")\n public void testOSA_07() {\n CuteNetlibCase.doTest(\"OSA-07.SIF\", \"535722.517299352\", \"4332086.205299969\", NumberContext.of(7, 4));\n }", "title": "" }, { "docid": "73bf9c725da13b46a28b4ec3133324df", "score": "0.624495", "text": "@Test(timeout = 4000)\n public void test051() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.addNumericTrainClass(0.0, Double.NaN);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "title": "" }, { "docid": "b9ae627adb84dd149563237dea0b07de", "score": "0.6238852", "text": "@Test(timeout = 4000)\n public void test02() throws Throwable {\n Discretize discretize0 = new Discretize(\"l*{e5SNh\");\n boolean boolean0 = true;\n discretize0.m_ClassIndex = 177;\n discretize0.setUseEqualFrequency(true);\n double[][] doubleArray0 = new double[5][9];\n double[] doubleArray1 = new double[3];\n doubleArray1[0] = (double) 177;\n doubleArray1[1] = (double) 177;\n doubleArray1[2] = (double) 177;\n doubleArray0[0] = doubleArray1;\n double[] doubleArray2 = new double[2];\n doubleArray2[0] = (double) 177;\n doubleArray2[1] = (double) 177;\n doubleArray0[1] = doubleArray2;\n double[] doubleArray3 = new double[9];\n doubleArray3[0] = (double) 177;\n doubleArray3[1] = (double) 177;\n doubleArray3[2] = (double) 177;\n doubleArray3[3] = (double) 177;\n doubleArray3[4] = (double) 177;\n doubleArray3[5] = (double) 177;\n doubleArray3[6] = (double) 177;\n doubleArray3[7] = (double) 177;\n doubleArray3[8] = (double) 177;\n doubleArray0[2] = doubleArray3;\n double[] doubleArray4 = new double[8];\n doubleArray4[0] = (double) 177;\n doubleArray4[1] = (double) 177;\n doubleArray4[2] = (double) 177;\n doubleArray4[3] = (double) 177;\n doubleArray4[4] = (double) 177;\n doubleArray4[5] = (double) 177;\n doubleArray4[6] = (double) 177;\n doubleArray4[7] = (double) 177;\n doubleArray0[3] = doubleArray4;\n double[] doubleArray5 = new double[0];\n doubleArray0[4] = doubleArray5;\n discretize0.m_CutPoints = doubleArray0;\n discretize0.listOptions();\n discretize0.setIgnoreClass(true);\n String[] stringArray0 = new String[0];\n Discretize.main(stringArray0);\n discretize0.findNumBinsTipText();\n discretize0.setInvertSelection(true);\n // Undeclared exception!\n try { \n discretize0.getBinRangesString(511);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 511\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "title": "" }, { "docid": "aab312e4ebdc377af8761abcd243c145", "score": "0.6237275", "text": "public void testLiangFigure6() {\n int[] a = {0, 0, 0, 0, 1, 1, 1, 1};\n int[] b = {0, 0, 1, 1, 0, 0, 1, 1};\n int[] c = {0, 1, 0, 1, 0, 1, 0, 1};\n int[] ap = {0, 0, 1, 1, 0, 0, 1, 1};\n int[] bp = {0, 1, 0, 1, 1, 1, 1, 1};\n int[] cp = {0, 0, 0, 1, 0, 1, 1, 1};\n\n for (int i = 0; i < ntimes - 1; i++) {\n cases[i][0] = a[i];\n cases[i][1] = b[i];\n cases[i][2] = c[i];\n cases[i + 1][3] = ap[i];\n cases[i + 1][4] = bp[i];\n cases[i + 1][5] = cp[i];\n }\n cases[8][0] = 0;\n cases[8][1] = 0;\n cases[8][2] = 0;\n cases[0][3] = 0;\n cases[0][4] = 0;\n cases[0][5] = 0;\n\n RevealEvaluator re = new RevealEvaluator(cases);\n\n double rea = re.entropy(a);\n assertEquals(1.0, rea, TOLERANCE);\n System.out.println(\"H(a) = \" + rea); //Should be 1.0\n\n double reb = re.entropy(b);\n assertEquals(1.0, reb, TOLERANCE);\n System.out.println(\"H(b) = \" + reb); //Should be 1.0\n\n double rec = re.entropy(c);\n assertEquals(1.0, rec, TOLERANCE);\n System.out.println(\"H(c) = \" + rec); //Should be 1.0\n\n double reab = re.jointEntropy(a, b);\n assertEquals(2.0, reab, TOLERANCE);\n System.out.println(\"H(a,b) = \" + reab); //Should be 2.0\n\n double reap = re.entropy(ap);\n assertEquals(1.0, reap, TOLERANCE);\n System.out.println(\"H(ap) = \" + reap); //Should be 1.0\n\n double rebp = re.entropy(bp);\n assertEquals(0.8112781244591328, rebp, TOLERANCE);\n System.out.println(\"H(bp) = \" + rebp); //Should be 0.8112781244591328\n\n double recp = re.entropy(cp);\n assertEquals(1.0, recp, TOLERANCE);\n System.out.println(\"H(cp) = \" + recp); //Should be 1.0\n\n double reapa = re.jointEntropy(ap, a);\n assertEquals(2.0, reapa, TOLERANCE);\n System.out.println(\"H(ap, a) = \" + reapa); //Should be 2.0\n\n double rebpb = re.jointEntropy(bp, b);\n assertEquals(1.8112781244591327, rebpb, TOLERANCE);\n System.out.println(\n \"H(bp, b) = \" + rebpb); //Should be 1.8112781244591327\n\n double recpb = re.jointEntropy(cp, b);\n assertEquals(1.8112781244591327, recpb, TOLERANCE);\n System.out.println(\n \"H(cp, b) = \" + recpb); //Should be 1.8112781244591327\n\n int[][] ab = new int[2][8];\n for (int i = 0; i < 8; i++) {\n ab[0][i] = a[i];\n ab[1][i] = b[i];\n }\n\n double rebpab = re.jointEntropy(bp, ab);\n assertEquals(2.5, rebpab, TOLERANCE);\n System.out.println(\"H(bp, a, b) = \" + rebpab); //Should be 2.5\n\n double recpab = re.jointEntropy(cp, ab);\n assertEquals(2.5, recpab, TOLERANCE);\n System.out.println(\"H(cp, a, b) = \" + recpab); //Should be 2.5\n\n int[][] abc = new int[3][8];\n for (int i = 0; i < 8; i++) {\n abc[0][i] = a[i];\n abc[1][i] = b[i];\n abc[2][i] = c[i];\n }\n\n double recpabc = re.jointEntropy(cp, abc);\n assertEquals(3.0, recpabc, TOLERANCE);\n System.out.println(\"H(cp, a, b, c) = \" + recpabc); //Should be 3.0\n\n //Setup array cases and test mutualInformation\n int[] p = new int[1];\n p[0] = 0;\n\n double rembpa = re.mutualInformation(4, p, 1);\n assertEquals(0.31127812445913294, rembpa, TOLERANCE);\n System.out.println(\n \"M(Bp, A) = \" + rembpa); //Should be 0.31127812445913294\n\n int[] pp = new int[2];\n pp[0] = 0;\n pp[1] = 1;\n\n double rmcpab = re.mutualInformation(5, pp, 1);\n assertEquals(0.5, rmcpab, TOLERANCE);\n System.out.println(\"M(Cp, [A,B]) = \" + rmcpab); //Should be 0.5\n\n int[] ppp = new int[3];\n ppp[0] = 0;\n ppp[1] = 1;\n ppp[2] = 2;\n\n double rmcpabc = re.mutualInformation(5, ppp, 1);\n assertEquals(1.0, rmcpabc, TOLERANCE);\n System.out.println(\"M(Cp, [A,B,C]) = \" + rmcpabc); //Should be 1.0\n\n }", "title": "" }, { "docid": "38e2b5e3f993c07b667ee8a28e3c96ea", "score": "0.62275314", "text": "@Test(timeout = 4000)\n public void test074() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = evaluation0.makeDistribution(Double.NaN);\n assertNotNull(doubleArray0);\n assertEquals(0, doubleArray0.length);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "title": "" }, { "docid": "6058ea63bba495ed9ffe298d0df05a8e", "score": "0.62116396", "text": "@Test(timeout = 4000)\n public void test070() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = new double[7];\n evaluation0.updateNumericScores(doubleArray0, doubleArray0, 0.0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "title": "" }, { "docid": "c3ebd679b83d5cec5dc415cfd0c54c11", "score": "0.62099797", "text": "@Test\n @Tag(\"slow\")\n public void testOSA_14() {\n CuteNetlibCase.doTest(\"OSA-14.SIF\", \"1106462.8447362552\", \"9377699.405100001\", NumberContext.of(7, 4));\n }", "title": "" }, { "docid": "34c618a4231b3eafd725dda36db7ab40", "score": "0.6200844", "text": "@Test\n public void test14() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.SFEntropyGain();\n assertEquals(0.0, double0, 0.01D);\n }", "title": "" }, { "docid": "4c88d98fb57e0a6a21f2103d7e346907", "score": "0.61873394", "text": "@Test\n @Tag(\"slow\")\n public void testKEN_07() {\n CuteNetlibCase.doTest(\"KEN-07.SIF\", \"-6.795204433816869E8\", \"-1.61949281194431E8\", NumberContext.of(7, 4));\n }", "title": "" }, { "docid": "324575e8ee380b12923bb79b739cec43", "score": "0.61773276", "text": "@Test(timeout = 4000)\n public void test103() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double[][] doubleArray0 = evaluation0.confusionMatrix();\n assertEquals(0, doubleArray0.length);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "title": "" }, { "docid": "85f3bbef69a5211ab5edf3b6f7fe0734", "score": "0.6174648", "text": "@Test(timeout = 4000)\n public void test36() throws Throwable {\n Discretize discretize0 = new Discretize();\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n Properties properties0 = new Properties();\n ProtectedProperties protectedProperties0 = new ProtectedProperties(properties0);\n ProtectedProperties protectedProperties1 = new ProtectedProperties(protectedProperties0);\n Attribute attribute0 = new Attribute(\"-\", \"-\", protectedProperties1);\n arrayList0.add(attribute0);\n Instances instances0 = new Instances(\"(,Z;Xp#\\\"dxq[\", arrayList0, 1587);\n boolean boolean0 = discretize0.setInputFormat(instances0);\n boolean boolean1 = discretize0.batchFinished();\n assertFalse(discretize0.getFindNumBins());\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertTrue(boolean1 == boolean0);\n assertFalse(discretize0.getUseEqualFrequency());\n assertFalse(boolean1);\n }", "title": "" }, { "docid": "27eaf4de4e9901488df8f19bfe6d1b6a", "score": "0.61519384", "text": "@Test\n @Tag(\"bm1000\")\n public void testSCORPION() {\n CuteNetlibCase.doTest(\"SCORPION.SIF\", \"1878.1248227381068\", null, NumberContext.of(7, 4));\n }", "title": "" }, { "docid": "345a5ae04cc711988d86ed8ef7fc38ed", "score": "0.61489624", "text": "@Test(timeout = 4000)\n public void test12() throws Throwable {\n Discretize discretize0 = new Discretize();\n String string0 = discretize0.getRevision();\n assertEquals(\"8964\", string0);\n assertFalse(discretize0.getUseEqualFrequency());\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getFindNumBins());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n }", "title": "" }, { "docid": "848c4a4c971dd2f83b8e4f5eaf393778", "score": "0.6132984", "text": "@Test(timeout = 4000)\n public void test036() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate(\"\");\n Evaluation evaluation0 = new Evaluation(instances0);\n double[] doubleArray0 = evaluation0.makeDistribution(0.95);\n assertNotNull(doubleArray0);\n assertArrayEquals(new double[] {1.0, 0.0}, doubleArray0, 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n }", "title": "" }, { "docid": "8847a829280949973901562e03db8fe1", "score": "0.61229527", "text": "@Test(timeout = 4000)\n public void test082() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toCumulativeMarginDistributionString();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(\" -1 0 \\n\", string0);\n }", "title": "" }, { "docid": "d77e0abb5b049c839c52cf4f4f903d46", "score": "0.610406", "text": "@Test\n public void test22() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n FastVector fastVector0 = evaluation0.predictions();\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01D);\n }", "title": "" }, { "docid": "2161a24d7c5c0b06c9d972a550e534bc", "score": "0.610247", "text": "@Test\n @Tag(\"bm1000\")\n public void testSCAGR25() {\n CuteNetlibCase.doTest(\"SCAGR25.SIF\", \"-1.475343306076852E7\", null, NumberContext.of(7, 4));\n }", "title": "" }, { "docid": "c117d15c1c2e94710ca6ce317bfff06b", "score": "0.6086859", "text": "@Test(timeout = 4000)\n public void test041() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.fMeasure((-2765));\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "title": "" }, { "docid": "98f4fc598d55b165b1b0e477f828471b", "score": "0.6084521", "text": "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testCRE_A() {\n CuteNetlibCase.doTest(\"CRE-A.SIF\", \"2.9889732905677114E7\", \"2.9889732905677114E7\", NumberContext.of(7, 4));\n }", "title": "" }, { "docid": "052544a98648ab57be7d7a36d8578a51", "score": "0.60631084", "text": "@Test\n @Tag(\"bm1000\")\n public void testSC205() {\n CuteNetlibCase.doTest(\"SC205.SIF\", \"-52.202061211707246\", \"0.0\", NumberContext.of(7, 4));\n }", "title": "" }, { "docid": "214783eec9f367210c846ecc409f98bc", "score": "0.6056657", "text": "@Test(timeout = 4000)\n public void test13() throws Throwable {\n Discretize discretize0 = new Discretize();\n String string0 = discretize0.makeBinaryTipText();\n assertFalse(discretize0.getFindNumBins());\n assertEquals(\"Make resulting attributes binary.\", string0);\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getMakeBinary());\n }", "title": "" }, { "docid": "be9ef103e88e6ac9ba43925131b751b1", "score": "0.6042021", "text": "@Test\n @Tag(\"slow\")\n public void testCZPROB() {\n CuteNetlibCase.doTest(\"CZPROB.SIF\", \"2185196.6988565763\", \"3089066.71321333\", NumberContext.of(7, 4));\n }", "title": "" }, { "docid": "206ea50f5f060a4c2f934a89e5cacad5", "score": "0.6027108", "text": "@Test\n @Tag(\"bm1000\")\n public void testSC105() {\n CuteNetlibCase.doTest(\"SC105.SIF\", \"-52.202061211707246\", \"0.0\", NumberContext.of(7, 4));\n }", "title": "" }, { "docid": "214f93abf2e4a2eeec77f9355cf372cf", "score": "0.602438", "text": "@Test(timeout = 4000)\n public void test040() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.falseNegativeRate((-2));\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "title": "" }, { "docid": "eab61942a6546b51b05dab1bcd330975", "score": "0.6019859", "text": "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testKEN_13() {\n CuteNetlibCase.doTest(\"KEN-13.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "title": "" }, { "docid": "d28817dbe812697e0d36eeb032af034d", "score": "0.60182214", "text": "@Test\n @Tag(\"slow\")\n public void testFIT1P() {\n CuteNetlibCase.doTest(\"FIT1P.SIF\", \"9146.378092420955\", null, NumberContext.of(7, 4));\n }", "title": "" }, { "docid": "ac3f8b4507e0103686998db4103763ba", "score": "0.60135865", "text": "@Test(timeout = 4000)\n public void test24() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.m_FindNumBins = true;\n byte[] byteArray0 = new byte[3];\n byteArray0[0] = (byte)108;\n byteArray0[1] = (byte)27;\n byteArray0[2] = (byte)14;\n FileSystemHandling.appendDataToFile((EvoSuiteFile) null, byteArray0);\n discretize0.setBins((-830));\n discretize0.getOptions();\n assertEquals((-830), discretize0.getBins());\n }", "title": "" }, { "docid": "4f0077f7fc2feaad0bcabc321107d852", "score": "0.60118634", "text": "@Test(timeout = 4000)\n public void test049() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.areaUnderROC((-1));\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "title": "" }, { "docid": "475e8943740f8ca4133cee5ce3c8bb1b", "score": "0.60022575", "text": "@Test(timeout = 4000)\n public void test088() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.KBRelativeInformation();\n assertEquals(0.0, double0, 0.01);\n }", "title": "" }, { "docid": "3e5a538c8b080cbdc25d726f0ae5e20d", "score": "0.59966385", "text": "@Test(timeout = 4000)\n public void test006() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.weightedAreaUnderPRC();\n assertEquals(Double.NaN, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "title": "" }, { "docid": "1277d3c44692f75afb1a477e39d3d862", "score": "0.5993904", "text": "@Test(timeout = 4000)\n public void test26() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.m_FindNumBins = true;\n int[] intArray0 = new int[6];\n intArray0[0] = (-388);\n intArray0[1] = (-2121610348);\n intArray0[2] = 11;\n intArray0[3] = (-1);\n intArray0[4] = 1062;\n intArray0[5] = 70;\n discretize0.setAttributeIndicesArray(intArray0);\n discretize0.setDesiredWeightOfInstancesPerInterval((-1149.15832593));\n discretize0.getOptions();\n assertEquals((-1149.15832593), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n }", "title": "" }, { "docid": "3c7d515980cbbf165c3abe63ed08f54a", "score": "0.5990593", "text": "@Test\n @Tag(\"bm1000\")\n public void testSCAGR7() {\n CuteNetlibCase.doTest(\"SCAGR7.SIF\", \"-2331389.8243309837\", null, NumberContext.of(7, 4));\n }", "title": "" }, { "docid": "0204a4eba1bff99c2187b41cd40a67ba", "score": "0.5984457", "text": "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testOSA_60() {\n CuteNetlibCase.doTest(\"OSA-60.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "title": "" }, { "docid": "20c5c1344ecee19227006877387c6d9d", "score": "0.5976064", "text": "@Test(timeout = 4000)\n public void test01() throws Throwable {\n Discretize discretize0 = new Discretize(\"c9^n/\");\n discretize0.getCapabilities();\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n }", "title": "" }, { "docid": "9e1f71d14d45c266c6f5e13cc252aea6", "score": "0.596788", "text": "@Test(timeout = 4000)\n public void test020() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString(\".arff\", true);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(\".arff\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "title": "" }, { "docid": "81cca02671bf51cfba7ba01621a09927", "score": "0.595325", "text": "@Test(timeout = 4000)\n public void test13() throws Throwable {\n Discretize discretize0 = new Discretize(\"\\tInvert matching sense of column indexes.\");\n discretize0.setOutputFormat();\n discretize0.listOptions();\n Discretize discretize1 = new Discretize();\n discretize1.setIgnoreClass(false);\n String[] stringArray0 = new String[2];\n stringArray0[0] = \"\\tInvert matching sense of column indexes.\";\n stringArray0[1] = \"\";\n Discretize.main(stringArray0);\n String string0 = discretize1.findNumBinsTipText();\n assertEquals(\"Optimize number of equal-width bins using leave-one-out. Doesn't work for equal-frequency binning\", string0);\n \n discretize1.setInvertSelection(false);\n discretize0.getBinRangesString(511);\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseEqualFrequency());\n \n discretize1.getFindNumBins();\n assertEquals(10, discretize1.getBins());\n }", "title": "" }, { "docid": "7a066f4be91de6dd98634e59c3854136", "score": "0.5946745", "text": "@Test(timeout = 4000)\n public void test14() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.getBinRangesString(2607);\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseEqualFrequency());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n }", "title": "" }, { "docid": "ff1aa9d07a69b5f20336901c927cde02", "score": "0.5944734", "text": "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testSCRS8() {\n CuteNetlibCase.doTest(\"SCRS8.SIF\", \"960.0206152764557\", null, NumberContext.of(7, 4));\n }", "title": "" }, { "docid": "a46d710fcd62f4f38d1f23db3d2488bb", "score": "0.59372747", "text": "@Test\n @Tag(\"bm1000\")\n public void testSCSD1() {\n CuteNetlibCase.doTest(\"SCSD1.SIF\", \"8.666666674333367\", null, NumberContext.of(7, 4));\n }", "title": "" }, { "docid": "53349082d6e7c8069803489ad1fa0900", "score": "0.5936921", "text": "@Test\n @Tag(\"bm1000\")\n public void testDEGEN2() {\n CuteNetlibCase.doTest(\"DEGEN2.SIF\", \"-1435.1779999999999\", \"-1226.12\", NumberContext.of(7, 4));\n }", "title": "" }, { "docid": "c6db33570cf2ae996ea166394582afd8", "score": "0.59333104", "text": "@Test(timeout = 4000)\n public void test14() throws Throwable {\n Discretize discretize0 = new Discretize(\"'B1of2'\");\n int[] intArray0 = new int[8];\n intArray0[0] = 18;\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"'B1of2'\");\n discretize0.listOptions();\n String[] stringArray0 = discretize0.getOptions();\n assertEquals(10, discretize0.getBins());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertEquals(6, stringArray0.length);\n }", "title": "" }, { "docid": "2d164777213cdabc871e87bf8f8b217d", "score": "0.59289616", "text": "@Test(timeout = 4000)\n public void test027() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.precision((-1484));\n assertEquals(0.0, double0, 0.01);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n }", "title": "" }, { "docid": "a1858d2279c6807f8cdbf14911a4f047", "score": "0.5925913", "text": "@Test(timeout = 4000)\n public void test28() throws Throwable {\n Discretize discretize0 = new Discretize();\n double[][] doubleArray0 = new double[8][8];\n double[] doubleArray1 = new double[3];\n doubleArray1[2] = 1421.4058829;\n doubleArray0[1] = doubleArray1;\n double[] doubleArray2 = new double[9];\n doubleArray2[1] = 1.7976931348623157E308;\n doubleArray2[2] = 0.0;\n doubleArray2[5] = (-236.4995664359);\n doubleArray2[7] = 1421.4058829;\n doubleArray0[3] = doubleArray2;\n double[] doubleArray3 = new double[3];\n doubleArray3[0] = 0.0;\n doubleArray3[1] = (-236.4995664359);\n doubleArray0[4] = doubleArray3;\n double[] doubleArray4 = new double[21];\n doubleArray4[0] = 1421.4058829;\n doubleArray3[2] = (-236.4995664359);\n doubleArray4[4] = 1.7976931348623157E308;\n doubleArray0[7] = doubleArray4;\n discretize0.m_NumBins = 162;\n doubleArray0[1] = doubleArray4;\n discretize0.m_CutPoints = doubleArray0;\n discretize0.getBinRangesString(1);\n // Undeclared exception!\n try { \n discretize0.setOutputFormat();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "title": "" }, { "docid": "b327062effdf1a824307ec2dac4faa4a", "score": "0.5923456", "text": "@Test\n public void testCalculateProbability() throws IOException, ParseException, MathException {\n System.out.println(\"calculateProbability\");\n OrganizationsRegister ro = info(\"e\", \"f\");\n String id = \"12\";\n String expResult = \"25,25 %\";\n String result = ro.calculateProbability();\n assertEquals(expResult, result);\n }", "title": "" }, { "docid": "e11123f011ff3aecf000dbf1a5b97539", "score": "0.5919602", "text": "@Test(timeout = 4000)\n public void test19() throws Throwable {\n Discretize discretize0 = new Discretize();\n discretize0.getCutPoints((-2276));\n assertFalse(discretize0.getFindNumBins());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n assertFalse(discretize0.getUseBinNumbers());\n assertFalse(discretize0.getUseEqualFrequency());\n }", "title": "" }, { "docid": "0501bf157ec1e7defe927abf30e5c4c7", "score": "0.5918165", "text": "@Test(timeout = 4000)\n public void test030() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n double double0 = evaluation0.numFalseNegatives(2458);\n assertEquals(0.0, evaluation0.SFEntropyGain(), 0.01);\n assertEquals(0.0, double0, 0.01);\n }", "title": "" }, { "docid": "e337669155e0bfed7fe3fbacb2552664", "score": "0.591559", "text": "@Test(timeout = 4000)\n public void test09() throws Throwable {\n Discretize discretize0 = new Discretize(\"*W5D<hSCW|8@I\");\n int[] intArray0 = new int[9];\n intArray0[0] = (-1405);\n intArray0[1] = (-2938);\n intArray0[2] = (-1954);\n intArray0[3] = 9;\n intArray0[4] = 66;\n intArray0[5] = 573;\n intArray0[6] = 0;\n intArray0[7] = (-71);\n intArray0[8] = 99;\n discretize0.setAttributeIndicesArray(intArray0);\n assertFalse(discretize0.getFindNumBins());\n assertFalse(discretize0.getUseEqualFrequency());\n assertFalse(discretize0.getUseBinNumbers());\n assertEquals(10, discretize0.getBins());\n assertFalse(discretize0.getMakeBinary());\n assertEquals((-1.0), discretize0.getDesiredWeightOfInstancesPerInterval(), 0.01);\n }", "title": "" } ]
3ce499f709deb9d3689b4647d9bd8482
Checks if is empty list.
[ { "docid": "bd23ff027d1219ce1cd1e868f2d2e0fe", "score": "0.76302016", "text": "public static boolean isEmptyList(List lst) {\r\n\t\tif(lst==null)\r\n\t\t\treturn true;\r\n\t\tif(lst.size()>0)\r\n\t\t\treturn false;\r\n\t\treturn true;\r\n\t}", "title": "" } ]
[ { "docid": "35025c5e5bf97a12b595e1bf1deaccd9", "score": "0.8766974", "text": "public boolean isListEmpty() {\n\t\treturn listSize() == 0;\n\t}", "title": "" }, { "docid": "b399e42661626a6c4c2ba0434542de72", "score": "0.8466728", "text": "@Override\r\n\tpublic boolean isEmpty() {\r\n\t\treturn list.isEmpty();\r\n\t}", "title": "" }, { "docid": "c2901a7c1c258ffe19bf0908eae080ae", "score": "0.8463077", "text": "@Override\n\tpublic boolean isEmpty() {\n\t\treturn list.isEmpty();\n\t}", "title": "" }, { "docid": "5ddb4af1b8bc2284ba0a48803b65236f", "score": "0.84032303", "text": "@Override\n public boolean isEmpty() {\n return list.isEmpty();\n }", "title": "" }, { "docid": "0c09c90c435e168d60d5f007f9ca4994", "score": "0.8261895", "text": "public boolean isEmpty(){\n\t\t\treturn (list_size == 0);\n\t }", "title": "" }, { "docid": "9fa1bc132899659d5ae41791c22d77b7", "score": "0.82128084", "text": "public boolean isEmpty() {\n\t\treturn list.isEmpty();\r\n\t}", "title": "" }, { "docid": "06c81154bdd1b94b9d814bf0ca0b9e9b", "score": "0.82070374", "text": "public boolean isEmpty() {\t//returns true if the list is empty, false if otherwise\n\t\tif(numItems==0){\n\t\t\treturn true;\n\t\t}else{\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "a3ce27b45b4b01e163b5eea1588a87ec", "score": "0.82049686", "text": "public boolean isEmpty()\n\t{\n\t\treturn list.isEmpty();\n\t}", "title": "" }, { "docid": "67873c98eb1b95c55a8b5a1c2041b96a", "score": "0.8174827", "text": "public boolean isEmpty() {\r\n\t\treturn list.isEmpty();\r\n\t}", "title": "" }, { "docid": "811567692a0d0afb76325f924092aeef", "score": "0.81743574", "text": "public boolean isEmpty()\n {\n return list.isEmpty();\n }", "title": "" }, { "docid": "811567692a0d0afb76325f924092aeef", "score": "0.81743574", "text": "public boolean isEmpty()\n {\n return list.isEmpty();\n }", "title": "" }, { "docid": "911777e1e3f9cca5e4de84d894a5de34", "score": "0.8172157", "text": "public boolean EmptyList()\r\n {\r\n if (Last == 0)\r\n return true;\r\n else\r\n return false;\r\n // end if\r\n }", "title": "" }, { "docid": "eb86157feb9b6a44d7831965f9f48825", "score": "0.8165567", "text": "public boolean isEmpty() {\n\t\treturn list.isEmpty();\n\t}", "title": "" }, { "docid": "6fa9ed8efb693a9184ce8985d62019ec", "score": "0.81459254", "text": "public boolean isEmpty(){\n return list.isEmpty();\n }", "title": "" }, { "docid": "66bf2b2c0a7c71b2824e7eaca391c9e8", "score": "0.8116443", "text": "public boolean isEmpty() {\n return list.isEmpty();\n }", "title": "" }, { "docid": "0846e47d33a13948ba08200d81de6fb1", "score": "0.8109538", "text": "public boolean empty() {\n return list.isEmpty();\n }", "title": "" }, { "docid": "675d62ad4229d514d03a4cebfedc165c", "score": "0.810366", "text": "public boolean isEmpty() {\n assert check();\n return list.size == 0;\n }", "title": "" }, { "docid": "7ce78462532bcce06bc210e24d40f841", "score": "0.8103262", "text": "@Override\r\n\tpublic boolean isEmpty() {\r\n\t\treturn this.lista.isEmpty();// Vacia?\r\n\t}", "title": "" }, { "docid": "146a3034d2552a7e63b837454cd9f0fd", "score": "0.80542845", "text": "public boolean isEmpty() {\n\t\tif (list.size() > 0)\n\t\t\treturn false;\n\t\treturn true;\n\t}", "title": "" }, { "docid": "d4ee17ae314ca09db720a56f78158bdf", "score": "0.79865694", "text": "public boolean isEmpty() {\n\t\treturn getList().isEmpty();\n\t}", "title": "" }, { "docid": "8795532c85f90bd3bfecaa05267a3f0a", "score": "0.79556817", "text": "public boolean isEmpty(){\n if(itemList.size() == 0)\n return true;\n else\n return false;\n }", "title": "" }, { "docid": "7bb2ce29b3cba75601c7222ebb4ce0fe", "score": "0.79150355", "text": "public boolean emptyList() {\n\t\treturn powerUpArray.isEmpty();\n\t}", "title": "" }, { "docid": "7e2e5623a03f29845706e635b24915fd", "score": "0.78736377", "text": "public boolean isEmpty()\n\t{\n\t\tboolean result = true;\n\t\tif (list.length > 0)\n\t\t{\n\t\t\tresult = false;\n\t\t}\n\t\treturn result; \n\t}", "title": "" }, { "docid": "3051b6deef33f023a0c6d74055077257", "score": "0.78578776", "text": "public boolean isEmpty() {\n if (list.size() == 0) {\n return true;\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "bcc5a9087a9965e31701b23422a50938", "score": "0.774102", "text": "private void checkNotEmpty() {\n\t\tif (this.isEmpty()) {\n\t\t\tthrow new EmptyListError();\n\t\t}\n\t}", "title": "" }, { "docid": "bcc5a9087a9965e31701b23422a50938", "score": "0.774102", "text": "private void checkNotEmpty() {\n\t\tif (this.isEmpty()) {\n\t\t\tthrow new EmptyListError();\n\t\t}\n\t}", "title": "" }, { "docid": "35b99656b979393f2fcb2115a77409c4", "score": "0.77035826", "text": "public boolean isEmpty() {\n return theList.isEmpty();\n}", "title": "" }, { "docid": "e5f7115f28bf00a683d0300934739f8f", "score": "0.7687649", "text": "public boolean isEmpty() {\n\t\tboolean empty = true;\n\t\tfor (int i = 0; i < list.length; i++) {\n\t\t\tif (list[i] == null) {\n\n\t\t\t} else {\n\t\t\t\tempty = false;\n\t\t\t}\n\t\t}\n\t\treturn empty;\n\t}", "title": "" }, { "docid": "1c649285c4f63be040555741ebb5b4b1", "score": "0.76588", "text": "public boolean isEmpty() {\n boolean empty = true;\n\n for (int i = 0; i < getSize(); i++) {\n if (list[i] != null) {\n empty = false;\n }\n }\n\n return empty;\n }", "title": "" }, { "docid": "3bd597a6d25ef11680c596ba3bc11cce", "score": "0.76496345", "text": "private <T> boolean isNotEmpty(List<T> list) {\n return list != null && list.size() > 0;\n }", "title": "" }, { "docid": "56defa427916ee7a7443ef3b47271562", "score": "0.7642477", "text": "public boolean is_empty() {\n\n\t\treturn this.number_of_elements == 0;\n\t}", "title": "" }, { "docid": "055ca169fdaedd44a01222c1ab44de36", "score": "0.7627849", "text": "static boolean CheckEmptylist(ArrayList<String> Clauses){\n return Clauses.size() == 0;\n }", "title": "" }, { "docid": "19985e9038495ffcb17d4d39f8b0863e", "score": "0.76082844", "text": "@Override\n\tpublic boolean isEmpty() {\n\t\treturn (size == 0);\n\t}", "title": "" }, { "docid": "19985e9038495ffcb17d4d39f8b0863e", "score": "0.76082844", "text": "@Override\n\tpublic boolean isEmpty() {\n\t\treturn (size == 0);\n\t}", "title": "" }, { "docid": "19985e9038495ffcb17d4d39f8b0863e", "score": "0.76082844", "text": "@Override\n\tpublic boolean isEmpty() {\n\t\treturn (size == 0);\n\t}", "title": "" }, { "docid": "8a1349cc9c0257e351d59ec03af0b1ce", "score": "0.7590852", "text": "public static boolean isEmpty(List list) {\n\t\t return (null == list || list.isEmpty());\n\t }", "title": "" }, { "docid": "5a3dd747be096614f8d63aacafdf9360", "score": "0.7577723", "text": "public boolean isEmpty() { return size() == 0; }", "title": "" }, { "docid": "5a3dd747be096614f8d63aacafdf9360", "score": "0.7577723", "text": "public boolean isEmpty() { return size() == 0; }", "title": "" }, { "docid": "2067f9e2f41ca2d941fe6e45b7e50f9f", "score": "0.7572845", "text": "public boolean isEmpty() {\r\n return this.num_items == 0;\r\n }", "title": "" }, { "docid": "5df5cbd8420231ee6b82d74f01466bed", "score": "0.75714296", "text": "public boolean isEmpty() {\n\t\treturn numItems == 0;\n\t}", "title": "" }, { "docid": "44c21381972c569889e7ad3553ead10e", "score": "0.7565774", "text": "public boolean isEmpty() {\r\n\t\treturn items == 0;\r\n\t}", "title": "" }, { "docid": "033d48e1769740ccf0d12beb6f20862a", "score": "0.75627685", "text": "@Override\r\n\tpublic boolean isEmpty() {\n\t\treturn size() == 0;\r\n\t}", "title": "" }, { "docid": "9fa585ffb86e9e2679eb67dfd33f6b7b", "score": "0.75540835", "text": "@Override\n public boolean isEmpty() {\n return this.size() == 0;\n // END\n }", "title": "" }, { "docid": "d12063949604bb1f03486840e5d1370c", "score": "0.75505096", "text": "public boolean isEmpty()\n {\n return (numItems == 0);\n }", "title": "" }, { "docid": "18b3f8dded0fd9622a1df0a693e3e1d0", "score": "0.7544882", "text": "public boolean isEmpty(){\n\t\treturn(numItems == 0);\n }", "title": "" }, { "docid": "0d08ced30529d1bff98519567f4176b5", "score": "0.7541112", "text": "public boolean captureListEmpty(){\r\n return this.captureList.size() == 0;\r\n }", "title": "" }, { "docid": "16c1c9651639b2ad4326bd7450c5fc76", "score": "0.7534049", "text": "@Override\n public boolean isEmpty()\n {\n return (countOfElements == 0);\n }", "title": "" }, { "docid": "4cfa0e89c3182ad5cece208dd586658b", "score": "0.751724", "text": "public boolean isEmpty() {\n return (numItems == 0);\n }", "title": "" }, { "docid": "7bfd85fdfaa4a496900f386f2dc57335", "score": "0.7515633", "text": "public boolean isEmpty()\r\n {\r\n return llData.isEmpty();\r\n }", "title": "" }, { "docid": "0cc5940874c310c34aa9739d0e49fdee", "score": "0.7511779", "text": "@Override\n public boolean isEmpty() {\n return size() == 0;\n }", "title": "" }, { "docid": "507e23b989eef5d0c1b7c1aa991a5e4c", "score": "0.75116706", "text": "public boolean isTaskListEmpty()\n {\n if(taskList.size() == 0)\n return true;\n else\n return false;\n }", "title": "" }, { "docid": "16992073cf28989cc8be4ac22c3b0eb4", "score": "0.75072217", "text": "public boolean isEmpty() {\n\t\treturn nofItem == 0;\n\t}", "title": "" }, { "docid": "0dde67ac827b2f163a50218c5806f228", "score": "0.750563", "text": "public boolean supportsEmptyInList() {\n return true;\n }", "title": "" }, { "docid": "645e6b8b68d66593dcbcde5ef5784654", "score": "0.7496987", "text": "public boolean isEmpty() {\n\t\treturn (items.isEmpty());\n\t}", "title": "" }, { "docid": "f6a56ddfb40c58c6c043ed9611dcb887", "score": "0.74833727", "text": "@Override\n public boolean isEmpty() {\n return (this.size == 0);\n }", "title": "" }, { "docid": "2e4e747162687673739c3bb8a9a1a013", "score": "0.74712473", "text": "public boolean isEmpty() {\n return (lineList == null) ? true : lineList.isEmpty();\n }", "title": "" }, { "docid": "2b24cfcc052032b19b4d6b40f764ceec", "score": "0.74696296", "text": "@Override\r\n\tpublic boolean isEmpty() {\r\n\t\treturn this.size() == 0;\r\n\t}", "title": "" }, { "docid": "10f8e18c575b77980e295574c0ca1771", "score": "0.7469418", "text": "private boolean isEmpty() {\n\t\treturn this.size == 0;\n\t}", "title": "" }, { "docid": "e3eac4008dab2f5600e35539af4977c6", "score": "0.74684644", "text": "public boolean isEmpty() {\r\n\t\t\treturn items.isEmpty();\r\n\t\t}", "title": "" }, { "docid": "dfbd016c68d652ac6c5e1feefd11f63e", "score": "0.7451916", "text": "@Override\n\tpublic boolean isEmpty() {\n\t\treturn size==0;\n\t}", "title": "" }, { "docid": "9a19b927664a233e73bede8fd5548457", "score": "0.7449374", "text": "public boolean isEmpty() { return size == 0; }", "title": "" }, { "docid": "9a19b927664a233e73bede8fd5548457", "score": "0.7449374", "text": "public boolean isEmpty() { return size == 0; }", "title": "" }, { "docid": "32596a26e7b23daf8bb947f6b9a58730", "score": "0.74477917", "text": "@Override\n\tpublic boolean isEmpty() {\n\t\treturn size ==0;\n\t}", "title": "" }, { "docid": "9d9b4cee7c4345964314a76edff2ad1c", "score": "0.7428419", "text": "public boolean isEmpty() {\n return items.isEmpty();\n }", "title": "" }, { "docid": "133e20239c8d5e665da8a680d7a3e8c4", "score": "0.74274826", "text": "@Override\r\n public boolean isEmpty() {\r\n return size == 0;\r\n }", "title": "" }, { "docid": "601a4dadfd099e4f50dd2180a3cf3786", "score": "0.7425242", "text": "public static boolean isListNullOrEmpty(List listOfData) {\n\t\treturn listOfData == null || listOfData.size() == 0;\n\t}", "title": "" }, { "docid": "750eb15a3eedd70a3f976099d73c2ace", "score": "0.74239457", "text": "public boolean isEmpty( ) { return size == 0; }", "title": "" }, { "docid": "804a646e25cc952cc8417fe18e5a574e", "score": "0.74161506", "text": "@Override\n public boolean isEmpty() {\n return this.numberOfElements == 0;\n }", "title": "" }, { "docid": "953da352e6f65aa2bcd418a323d95ae2", "score": "0.7411406", "text": "@Override\n public boolean isEmpty() {\n return size == 0;\n }", "title": "" }, { "docid": "953da352e6f65aa2bcd418a323d95ae2", "score": "0.7411406", "text": "@Override\n public boolean isEmpty() {\n return size == 0;\n }", "title": "" }, { "docid": "953da352e6f65aa2bcd418a323d95ae2", "score": "0.7411406", "text": "@Override\n public boolean isEmpty() {\n return size == 0;\n }", "title": "" }, { "docid": "953da352e6f65aa2bcd418a323d95ae2", "score": "0.7411406", "text": "@Override\n public boolean isEmpty() {\n return size == 0;\n }", "title": "" }, { "docid": "953da352e6f65aa2bcd418a323d95ae2", "score": "0.7411406", "text": "@Override\n public boolean isEmpty() {\n return size == 0;\n }", "title": "" }, { "docid": "b22d2de9fd63743e870a9267eab57348", "score": "0.7410113", "text": "@Override\n public boolean isEmpty() {\n\n return size == 0;\n }", "title": "" }, { "docid": "b20d384dac53bcacee5f8c597e0f8ae3", "score": "0.7403618", "text": "public boolean isEmpty(){\r\n\t\treturn playlist.size() == 0;\r\n\t}", "title": "" }, { "docid": "222e765e48d522601d1799e534357437", "score": "0.73939335", "text": "public Boolean isEmpty() {\n\t\t\n\t\t//Condition to test for the size, if size = 0, the OrderedList is empty.\n\t\tif (this.size == 0) {\n\t\t\treturn true;\n\t\t}\n\t\telse {\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "7e8f5c7b55bbfe7c3f25d9a410a6c91c", "score": "0.73931646", "text": "public boolean isEmpty(){\n return size() == 0;\n }", "title": "" }, { "docid": "61d42db5e9408dfe3138acb081359c4b", "score": "0.7388988", "text": "@Override\n\tpublic final boolean isEmpty() {\n\t\tif (head == null || size == 0) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "title": "" }, { "docid": "d861fa7437472b7d906fb875241df200", "score": "0.73846316", "text": "public boolean isEmpty(){\n\t\treturn size() == 0;\n\t}", "title": "" }, { "docid": "e8601f29c00d1748bb93dd7a2443aab5", "score": "0.73779136", "text": "public boolean isEmpty()\n {\n return (this.size() == 0);\n }", "title": "" }, { "docid": "0df463e00a2c3cb4923fbdf50e705091", "score": "0.73640925", "text": "public boolean empty() {\n return elements.isEmpty();\n }", "title": "" }, { "docid": "ea64da3085b18153907d6d7765995831", "score": "0.7360258", "text": "boolean isDeviceListEmpty() {\n return this.getDeviceList().isEmpty();\n }", "title": "" }, { "docid": "f5b8b71e29c1f32263fe122cacb8ebde", "score": "0.7358966", "text": "public boolean OpenListIsEmpty() {\n\t\treturn this.openList.isEmpty();\n\t}", "title": "" }, { "docid": "842e398ce348fc020153dd85e469989f", "score": "0.7358933", "text": "public boolean isEmpty() {\n\treturn _size <= 0;\n\n\n }", "title": "" }, { "docid": "348528f73997978aaa2e4fcc25fb4c09", "score": "0.73553973", "text": "public boolean isEmpty() {\n return size() == 0;\n }", "title": "" }, { "docid": "fe364138cd53fe3609e64db803123950", "score": "0.7350118", "text": "public boolean isEmpty() {\n\n\t\tif(numItems == 0) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\n\t}", "title": "" }, { "docid": "4c92bea62917ef6908796ff6e8d995d9", "score": "0.7350115", "text": "public boolean isEmpty() {\n return (size == 0);\n }", "title": "" }, { "docid": "4c92bea62917ef6908796ff6e8d995d9", "score": "0.7350115", "text": "public boolean isEmpty() {\n return (size == 0);\n }", "title": "" }, { "docid": "12f2fc212ed1a7a861bcfc57e5badd7d", "score": "0.73498034", "text": "@Override\n public boolean isEmpty() { \n return size == 0;\n }", "title": "" }, { "docid": "4e270f04d5606e239701e29e3c10b341", "score": "0.73446494", "text": "public boolean isEmpty() {\n return (size == 0);\n }", "title": "" }, { "docid": "3c19508e0bb52765a78902a089f2f019", "score": "0.7344046", "text": "public boolean notEmpty () {\n\t\treturn size() != 0;\n\t}", "title": "" }, { "docid": "9a727efa9a38d457c7e782d8a0a53829", "score": "0.73396987", "text": "public boolean isEmpty() {\n/* 54 */ return (this.size == 0);\n/* */ }", "title": "" }, { "docid": "bb2b4d9d9a3523f183cc5f8f3e27dc32", "score": "0.73286206", "text": "public boolean isEmpty()\r\n {\r\n return size() == 0;\r\n }", "title": "" }, { "docid": "91dd15b02f22d65595ed7357418a0754", "score": "0.7328532", "text": "@Override\n\tpublic Boolean isEmpty() {\n\t\t\n\t\t return (getNumberOfElements() == 0);\n\t}", "title": "" }, { "docid": "6e14c176576d5c8ea6b84fafad7f6fe6", "score": "0.7325452", "text": "public boolean isEmpty() {\n return size == 0;\n }", "title": "" }, { "docid": "6e14c176576d5c8ea6b84fafad7f6fe6", "score": "0.7325452", "text": "public boolean isEmpty() {\n return size == 0;\n }", "title": "" }, { "docid": "4c624fa0d76d5ccd0a1ccad5b37660cf", "score": "0.73235387", "text": "public boolean isEmpty() {\n\t\treturn this.size == 0;\n\t}", "title": "" }, { "docid": "acc06dbea00c437b7e90f45b89681405", "score": "0.7316616", "text": "public boolean isEmpty() { // open empty\n //check();\n return size == 0;\n }", "title": "" }, { "docid": "10d1b46ece80f265111a671c3e4f45a1", "score": "0.73154354", "text": "public boolean isEmpty() {\r\n return size() == 0;\r\n }", "title": "" }, { "docid": "492cc2220e8f331ac4a742f0fbe41f11", "score": "0.73108554", "text": "public boolean isEmpty() {\n return this.size == 0;\n }", "title": "" } ]
6a47142bcf48dd6c9b367bab2bd04d4e
accessors get Get a property value from the configuration.
[ { "docid": "0554deea51c8a7d37412223ba17d6c20", "score": "0.0", "text": "String get(String inKey, @Nullable String inDefault);", "title": "" } ]
[ { "docid": "3b0143befe89835c4c90addf506bd77f", "score": "0.7508652", "text": "String getProperty();", "title": "" }, { "docid": "605f9f0a1ca8696077c50a641de86fd5", "score": "0.7502289", "text": "String getPropertyValue();", "title": "" }, { "docid": "6025d45a35c027104cfb247ae2f790b6", "score": "0.73640186", "text": "java.lang.String getProperty();", "title": "" }, { "docid": "bcd041949e1d2e783c983663f0742aa9", "score": "0.7333619", "text": "String getProperty(String name);", "title": "" }, { "docid": "82930039cfb98b2db7afa3c7707098db", "score": "0.7282176", "text": "private String getProperty()\n {\n return property;\n }", "title": "" }, { "docid": "9d6c2c8cb761aeed22b3035396e6beac", "score": "0.725666", "text": "public Object getProperty( String property );", "title": "" }, { "docid": "68e5fe760a2aab945a958189f39ffbdd", "score": "0.7245905", "text": "public String getProperty(){\n\t\treturn property;\n\t}", "title": "" }, { "docid": "02cd6618d7e3a58660a434e2067c6834", "score": "0.722914", "text": "public String getProperty() {\n return property;\n }", "title": "" }, { "docid": "737926567a43eb047727dab0c754dc30", "score": "0.72169137", "text": "Object getPropertyValue();", "title": "" }, { "docid": "737926567a43eb047727dab0c754dc30", "score": "0.72169137", "text": "Object getPropertyValue();", "title": "" }, { "docid": "83403e5d1c3efdb190be03e28806b480", "score": "0.7190286", "text": "public String getProperty() {\n return property;\n }", "title": "" }, { "docid": "f365bcd88ced48b31ab8e718e44bdb17", "score": "0.71818155", "text": "public String getProperty (String propertyId);", "title": "" }, { "docid": "17e4cd0aca7a5a209fdf344ee1996872", "score": "0.7119612", "text": "public abstract Optional<ConfigProp> getValue();", "title": "" }, { "docid": "2459d357d7376f635583163979504dc1", "score": "0.70821923", "text": "public String getProperty() {\n return property;\n }", "title": "" }, { "docid": "2459d357d7376f635583163979504dc1", "score": "0.70821923", "text": "public String getProperty() {\n return property;\n }", "title": "" }, { "docid": "d5ace01982a31e9b4cf23ebfc37af124", "score": "0.708061", "text": "public String getProperty(final String key) {\n String value = this.configProps.getProperty(key);\n return value;\n }", "title": "" }, { "docid": "25074c85c42448ec96e7de17bad59c75", "score": "0.7075797", "text": "public String getProperty(String prop, String defValue);", "title": "" }, { "docid": "dcdd8027de9a6cfd8000fa0098e1524b", "score": "0.7043903", "text": "public static String get(String property) {\n String value = PROPERTIES.getProperty(property);\n if (value == null) {\n logger.error(\"There is no '\" + property + \"' configuration property, or it couldn't be read.\");\n return \"\";\n } else {\n return value;\n }\n }", "title": "" }, { "docid": "1165342469d0d594aaabc578da8251be", "score": "0.70317817", "text": "public String getProperty() {\n return this.property;\n }", "title": "" }, { "docid": "c369eb1c4482d5f16ce31ffdc47983f9", "score": "0.7019254", "text": "P getProperty();", "title": "" }, { "docid": "a298dbae8094e7cd65aa9e6294d3f856", "score": "0.7000249", "text": "Property getProperty(String key);", "title": "" }, { "docid": "de46d554876541f723f81a87451e5a00", "score": "0.6906761", "text": "public String getProperty() {\n\t\t\treturn property;\n\t\t}", "title": "" }, { "docid": "8b7bbad4eb0f9e6bcf53f04197d6ccac", "score": "0.6905706", "text": "@Cmd\n\tpublic String get(final String configKey) {\n\t\treturn resolveProperty(configKey);\n\t}", "title": "" }, { "docid": "1e7d954f280d0a1afe0bd55065026beb", "score": "0.6904153", "text": "public String getConfigurationValue(String propertyKey) {\n\t\treturn properties.getProperty(propertyKey);\n\t}", "title": "" }, { "docid": "ed0f4875d8680cf98eb1bb202e6a3996", "score": "0.6884074", "text": "String getProperty(String key);", "title": "" }, { "docid": "51b51db56819ff06c48fc9b18c985444", "score": "0.6873329", "text": "final Property getProperty(final String propertyName) {\n return conf.getProperty(propertyName);\n }", "title": "" }, { "docid": "b7452ec695367194f29a1cc77b887e9f", "score": "0.68351537", "text": "public String getValue(String key) {\n return configuration.getProperty(key);\n }", "title": "" }, { "docid": "d9744782d50a46dbf7ed739fd76852e3", "score": "0.6825146", "text": "<T> T getProperty(String name);", "title": "" }, { "docid": "d9744782d50a46dbf7ed739fd76852e3", "score": "0.6825146", "text": "<T> T getProperty(String name);", "title": "" }, { "docid": "d9744782d50a46dbf7ed739fd76852e3", "score": "0.6825146", "text": "<T> T getProperty(String name);", "title": "" }, { "docid": "606df7ede755552b3a9e9d2840ddf2d9", "score": "0.680661", "text": "@Override\n public String getProperty() {\n return property;\n }", "title": "" }, { "docid": "07f00d3f13da9f27ab28cf5b475bfb5f", "score": "0.678036", "text": "public String getConfigValue(String configName) {\r\n\t\treturn propMap.get(configName);\r\n\t}", "title": "" }, { "docid": "065d0f8e24b31d0f34b26c485c40997e", "score": "0.6775042", "text": "public String getProperty(String name) {\n return _properties.getProperty(name);\n }", "title": "" }, { "docid": "0961d8d316421ac1efec0949927a4b3f", "score": "0.6767164", "text": "private String getProperty(ConfigurationProperty property) throws UndefinedPropertyException {\n return propertyProviders\n .stream()\n .map(provider -> provider.apply(property))\n .filter(Objects::nonNull)\n .findFirst()\n .orElseGet(property::getDefaultValue);\n }", "title": "" }, { "docid": "7b9b798fed71c3334689a6abb67c45c2", "score": "0.67404175", "text": "public static String getProperty(String propertyName){\r\n\t\tString value=propertiesConfiguration.getProperty(propertyName).toString();\r\n\t\treturn value;\r\n\t}", "title": "" }, { "docid": "62433b0f2f99ea70bf5832c8f7aad9d2", "score": "0.6721942", "text": "@Override\n public Optional<String> get(String key) {\n if (config != null) {\n\n Object value = getValue(key);\n\n return (value == null) ? Optional.empty() : Optional.of(value.toString());\n\n // get value from .properties configuration\n } else if (properties != null) {\n\n String value = properties.getProperty(key);\n if (value != null) {\n return Optional.of(value);\n }\n }\n\n return Optional.empty();\n }", "title": "" }, { "docid": "660af828cbfbeefe97308d5248770f0d", "score": "0.67199945", "text": "Object getProperty(String propertyName);", "title": "" }, { "docid": "c1da5c9aa1d5aaf6817a270987090998", "score": "0.66949105", "text": "public static String getConfigProperty(String fieldName){\n String result = null;\n\n if(System.getProperty(fieldName) != null)\n return System.getProperty(fieldName);\n\n if(localProps.getProperty(fieldName) != null)\n return localProps.getProperty(fieldName);\n\n if(threadProperties.get() != null && threadProperties.get().getProperty(fieldName) != null)\n return threadProperties.get().getProperty(fieldName);\n\n return result;\n }", "title": "" }, { "docid": "c9dbf155e73a448f8ed569bda6050320", "score": "0.6680961", "text": "public String getProperty(final String name) {\r\n\t\treturn this.properties.get(name);\r\n\t}", "title": "" }, { "docid": "9047aef3d21aafb63e82adf8db9d18fa", "score": "0.6658342", "text": "public synchronized String getProperty(String name) {\r\n \treturn getProperty(name, true);\r\n }", "title": "" }, { "docid": "721897c42ff95de4d6a33fcc409a0c7a", "score": "0.6610194", "text": "@Override\r\n\tpublic String getConfig(String config) {\n\t\treturn properties.get(config).toString();\r\n\t}", "title": "" }, { "docid": "5490409754c92fc141f505786fb9b5ce", "score": "0.6600335", "text": "static public String getPropertyValue (String key)\r\n {\r\n \treturn properties.getProperty(key);\r\n }", "title": "" }, { "docid": "3b6d1fdd8ca3b7699075856cc5f3eb21", "score": "0.65994424", "text": "String getProperty(String key, String defaultValue);", "title": "" }, { "docid": "9640929d55fb8cd1546b34444ef66a49", "score": "0.65772283", "text": "public Object getPropertyValue() {\n return value;\n }", "title": "" }, { "docid": "6156b7724c98c85fa2ce698a2c167f14", "score": "0.65749335", "text": "public Object getProperty(String name)\n {\n return properties.get(name);\n }", "title": "" }, { "docid": "54ea0ba9aa702247b302df6c291819eb", "score": "0.65490735", "text": "public String getProperty(String key){\n return properties.getProperty(key);\n }", "title": "" }, { "docid": "6947e7026c4334e418cf8d2c2d76032c", "score": "0.65355", "text": "private Property getProperty(String propertyID) {\n return properties.get(propertyID);\n }", "title": "" }, { "docid": "be06f069e33942c1ba6957b12018dff1", "score": "0.64908725", "text": "public String getPropertiesValue(String key) { \n return properties.getProperty(key); \n }", "title": "" }, { "docid": "53f736278cca7b038c02f031e37d2990", "score": "0.646812", "text": "protected String getValue() {\n return getPropertyString(\"value\");\n }", "title": "" }, { "docid": "c3f8fc9f23157102aa3ba40a6ad0305c", "score": "0.6453278", "text": "public String getConfigValue(String key) {\n if (properties != null) {\n return properties.getProperty(CONFIG_PREFIX + key);\n } else {\n return null;\n }\n }", "title": "" }, { "docid": "cdc80b5d59f5da96084adcb5b32320f7", "score": "0.64475965", "text": "public <T> T getValue(IProperty property) {\r\n\t\tif (!properties.containsKey(property.getName()))\r\n\t\t\tGame.stop(new IllegalArgumentException(\"Property \" + property.getName() + \" attempted to be accessed even though it does not exist.\"), \"You cannot get the value of a property that does not exist!\");\r\n\t\treturn (T) properties.get(property.getName()) == null ? null : (T) properties.get(property.getName()).getValue();\r\n\t}", "title": "" }, { "docid": "15c236844531be362b3c95f53512fb52", "score": "0.6447409", "text": "public static String getProperty(String name){\n if(properties == null) getProperties();\n return properties.getProperty(name);\n }", "title": "" }, { "docid": "abf51cf21becc1c2585572c15c438916", "score": "0.6447007", "text": "public static String getProperty(String key, String value) {\r\n return properties.getProperty(key, value);\r\n }", "title": "" }, { "docid": "35d79c4fed44cc90b4266c67eea00e5a", "score": "0.64305", "text": "public AssetPropertyValue getPropertyValue() {\n return this.propertyValue;\n }", "title": "" }, { "docid": "9ae203aa33a30d6303dfbb7d04283530", "score": "0.64263296", "text": "public Node getProperty() {\r\n\t\treturn property;\r\n\t}", "title": "" }, { "docid": "f08875a4f4437d6c4316aa42ef791e34", "score": "0.6396643", "text": "@Override\n public Object getProperty(String name) {\n if (properties != null) {\n return properties.get(name);\n }\n return null;\n }", "title": "" }, { "docid": "f52ac0036361702456f510dc1f4ccb5f", "score": "0.63958913", "text": "public String get(String key) {\n return properties.getProperty(key);\n }", "title": "" }, { "docid": "43bd7bbd5e59ee6ff82278c90e7b597c", "score": "0.63722974", "text": "private static String getProperty(String name) throws BusinessException {\n\t\tProperties prop = getInstance();\n\t\tif(prop.keySet().contains(name)) {\n\t\t\treturn prop.getProperty(name);\n\t\t}else {\n\t\t\t throw new BusinessException(\"Unable to find the key '\" + name + \" in 'config.properties' file.\");\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "34572beae7bdf13f1e6c137c2616cacf", "score": "0.63686454", "text": "public String getProperty(String name) {\r\n\t\tif (properties.containsKey(name))\r\n\t\t\treturn properties.get(name);\r\n\t\treturn System.getProperty(name);\r\n\t}", "title": "" }, { "docid": "3376a51c06bc121c88c8100c04c0c65d", "score": "0.6360101", "text": "public <T> T getValue(String property) {\n\t\t@SuppressWarnings(\"unchecked\") T t = (T) get(property);\n\t\treturn t;\n\t}", "title": "" }, { "docid": "1b99d5f19595532dcebf14c8acb8192e", "score": "0.63507664", "text": "public <T> T getProperty(String key);", "title": "" }, { "docid": "af6eb919978013d55c32f4a94d96b376", "score": "0.6348641", "text": "public static String getProperty(final String param) {\n String value = propertyMap.get(param);\n if (value == null) {\n value = getProperty(param, createDefaultProperty());\n }\n return value;\n }", "title": "" }, { "docid": "af0070f7b28625979785fa929fad65df", "score": "0.63205314", "text": "public static String getProperty(String name){\n if(propertyManager == null){\n propertyManager = new PropertiesManager();\n }\n return propertyManager.prop.getProperty(name);\n }", "title": "" }, { "docid": "ee9614b8cbd9dcdd1641fa82141ccdf3", "score": "0.6318333", "text": "public String get(String key) {\n\t\treturn properties.getProperty(key);\n\t}", "title": "" }, { "docid": "d9c3c06ed36d76070ebc717f69fcea8e", "score": "0.6316679", "text": "public PropertyDefinition getProperty() {\n return m_property;\n }", "title": "" }, { "docid": "ae049724c0efe8a04826a2b8ec6cdd09", "score": "0.63156843", "text": "public\t\tString\t\tgetPropertyValue(String name)\n\t\t{\n\t\tif (name.equalsIgnoreCase(Mi_ENABLED_NAME))\n\t\t\treturn(\"\" + enabled);\n\t\telse if (grid != null)\n\t\t\treturn(grid.getPropertyValue(name));\n\t\telse\n\t\t\t{\n\t\t\tthrow new IllegalArgumentException(this \n\t\t\t\t+ \": Attempt to get value of unknown property: \" + name);\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "8d09648707802f69cf9827be6a3148ed", "score": "0.63117087", "text": "abstract public String getProperty(int propNumber);", "title": "" }, { "docid": "9216fa3a8f16b38b59aef08643bb56bd", "score": "0.6249627", "text": "public String getValue() {\r\n String value = null;\r\n Project project = getRuntimeProject();\r\n if (project != null) {\r\n value = project.getProperty(getName());\r\n }\r\n return value;\r\n }", "title": "" }, { "docid": "d7a77b55f64a171275a6197fc2c21a8c", "score": "0.6233966", "text": "private Message getProperty(final TerraHarvestMessage request, final ConfigAdminNamespace message, \n final RemoteChannel channel) throws IOException\n {\n final GetPropertyRequestData propMessage = GetPropertyRequestData.parseFrom(message.getData());\n final String pid = propMessage.getPid();\n final Configuration configuration;\n \n //get or create configuration\n try\n {\n //call to configuration admin to retrieve the configuration for a pid must use\n //the null location in the case that it is retrieving a configuration that has\n //not yet been bound to a service with the corresponding pid. If there happens to\n //be such a configuration, then the call without the null location leads to \n //the configuration being assigned to the calling bundle. In this case,\n //it is assigned to the remote interface. Calling with null avoids this situation.\n configuration = m_ConfigAdmin.getConfiguration(pid, null);\n }\n catch (final IOException exception)\n {\n final String errorDesc = String.format(\"Unable to find a configuration with PID %s.\", pid);\n m_Logging.error(exception, errorDesc);\n final ConfigAdminNamespaceErrorData error = ConfigAdminNamespaceErrorData.newBuilder().\n setError(ConfigAdminErrorCode.ConfigurationPersistentStorageError).\n setErrorDescription(errorDesc + exception.getMessage()).build();\n m_MessageFactory.createConfigAdminResponseMessage(request, \n ConfigAdminMessageType.ConfigAdminNamespaceError, error).queue(channel);\n return propMessage;\n }\n \n final Dictionary<String, Object> dictionary = configuration.getProperties();\n \n Object value = null;\n if (dictionary != null)\n {\n value = dictionary.get(propMessage.getKey());\n }\n if (value == null)\n {\n final String errorString = String.format(\"The key [%s] was not found for configuration with pid %s\", \n propMessage.getKey(), pid);\n m_Logging.error(errorString);\n m_MessageFactory.createBaseErrorMessage(request, ErrorCode.INVALID_VALUE, \n errorString).queue(channel);\n return propMessage;\n }\n final Multitype multitypeValue = SharedMessageUtils.convertObjectToMultitype(value);\n m_MessageFactory.createConfigAdminResponseMessage(request, ConfigAdminMessageType.GetPropertyResponse,\n GetPropertyResponseData.newBuilder().\n setKey(propMessage.getKey()).\n setValue(multitypeValue).\n setPid(pid).build()).queue(channel);\n \n return propMessage;\n }", "title": "" }, { "docid": "cd6297b85a85660961e5f27183e21d11", "score": "0.62318563", "text": "public abstract Object getPropertyValue(Object bean, String propertyName);", "title": "" }, { "docid": "fda2b7d4cc9ff8db20b9eb493098d12e", "score": "0.6228317", "text": "public String getValue() throws ConfigurationException\n {\n if( null != m_value )\n {\n return m_value;\n }\n else\n {\n throw new ConfigurationException( \"No value is associated with the \"\n + \"configuration element \\\"\" + getName()\n + \"\\\" at \" + getLocation() );\n }\n }", "title": "" }, { "docid": "d43221d2365908657f05a9186aad3f36", "score": "0.6218011", "text": "public String getConfigProperty(String property) {\n\t\tString driverPath = properties.getProperty(property);\n\t\tif (driverPath != null)\n\t\t\treturn driverPath;\n\t\telse\n\t\t\tthrow new RuntimeException(\"driverpath not specified in the Configuration.properties file\");\n\t}", "title": "" }, { "docid": "14572b79f2c418cecde9cdedaf6e6ca1", "score": "0.62175554", "text": "public java.lang.String getProperty() {\n java.lang.Object ref = property_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n property_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "5ad2a1abf9564bacfe26fabc79a46b5a", "score": "0.62056834", "text": "public String getValue(String key) {\n\t\treturn prop.getProperty(key);\n\n\t}", "title": "" }, { "docid": "0a4e414cc94011c46b294813e5f236d0", "score": "0.6202963", "text": "public Object getProperty(String name) {\n createPropertySource();\n return properties.getProperty(name);\n }", "title": "" }, { "docid": "46acbda1e562579303f605f814bf39e9", "score": "0.6202501", "text": "@Produces\n @PropertyValue\n public String producePropertyValue(InjectionPoint ip) throws Exception {\n PropertyValue pv = ip.getAnnotated().getAnnotation(PropertyValue.class);\n return properties.getProperty(pv.value(), pv.defaultValue());\n }", "title": "" }, { "docid": "f20675486252ea8a0837a3651722da88", "score": "0.6202172", "text": "public static String getValue(String key) {\r\n return config.getString(key);\r\n }", "title": "" }, { "docid": "2575d94cde340599e23068c6b3d9bb94", "score": "0.6196936", "text": "public String getProperty(String name) {\n \t\tcheckRead();\n \n \t\treturn super.getProperty(name);\n \t}", "title": "" }, { "docid": "1512c4b23de50fe7311af3b02c527ae1", "score": "0.6194584", "text": "private Property getProperty(String key, String value) {\n Property property = new Property();\n property.setKey(key);\n property.setValue(value);\n return property;\n }", "title": "" }, { "docid": "0068c74135d6581ac6d5332c89cee7ea", "score": "0.6187389", "text": "public String getValue() {\n\t\treturn this.getPropertyString(\"value\");\n\t}", "title": "" }, { "docid": "6dc2fc4c1fe63b90d8fb4d547d5b1ebd", "score": "0.6184444", "text": "public String getProperty(String key) {\n return prop.getProperty(key);\n }", "title": "" }, { "docid": "da74e9009889ff6143f35ee1103298ae", "score": "0.6181197", "text": "ConfigInfo getConfig();", "title": "" }, { "docid": "78a95ad33842a42c07447268e1793d71", "score": "0.6172159", "text": "private String getRequiredProperty(ConfigurationProperty property) {\n try {\n return getProperty(property);\n } catch (UndefinedPropertyException e) {\n log.error(\"Can't find a required property. Exiting the app...\");\n log.error(e);\n System.exit(-1);\n return null;\n }\n }", "title": "" }, { "docid": "aea4708a919ef588892cf1ed2f3f833e", "score": "0.61710954", "text": "@Test\n public void using_properties_utility_method(){\n System.out.println(\"ConfigurationReader.getProperty(\\\"browser\\\") = \" + ConfigurationReader.getProperty(\"browser\"));\n System.out.println(\"ConfigurationReader.getProperty(\\\"smartbearUrl\\\") = \" + ConfigurationReader.getProperty(\"smartbearUrl\"));\n }", "title": "" }, { "docid": "63d6a6dd7d6e057652f66d7e66e988fa", "score": "0.6155664", "text": "private static String getServiceProperty(String prop) {\n String value = null;\n\n switch (prop) {\n case \"sessionTime\":\n value = phisConfig.sessionTime();\n break;\n case \"waitingFileTime\":\n value = phisConfig.waitingFileTime();\n break;\n case \"uploadFileServerDirectory\":\n value = storageBasePath;\n break;\n case \"defaultLanguage\":\n value = \"en\";\n break;\n case \"gnpisPublicKeyFileName\":\n value = phisConfig.gnpisPublicKeyFileName();\n break;\n case \"phisPublicKeyFileName\":\n value = phisConfig.phisPublicKeyFileName();\n break;\n case \"pageSizeMax\":\n value = phisConfig.pageSizeMax();\n break;\n default:\n break;\n }\n\n return value;\n }", "title": "" }, { "docid": "b0a758eccfad1e6d749a084343005438", "score": "0.61511254", "text": "public final Object getProperty(final String name) {\r\n return MiniMap.getProperty(properties, name);\r\n }", "title": "" }, { "docid": "3298e4e26f4d9afbef1183e10c11c29b", "score": "0.61473906", "text": "public String getConfig(String key) {\n\t\treturn props.get(key);\n\t}", "title": "" }, { "docid": "befbfe057851c01915b2b1a4f5d933c8", "score": "0.6143196", "text": "public String getProperty(String name) {\n\t\tString returnValue;\n\t\tif (parent != null)\n\t\t\treturnValue = parent.getProperty(name);\n\t\telse\n\t\t\treturnValue = testExecutionManager.properties.getProperty(name);\n\t\tString thisValue = (String) properties.get(name);\n\t\tif (thisValue != null)\n\t\t\treturnValue = thisValue;\n\t\tif (returnValue == null)\n\t\t\treturnValue = \"\";\n\t\tSystem.out.println(\"getProperty name '\" + name + \"' returning '\" + returnValue + \"' from '\" + this.definition.toString());\n\t\treturn returnValue;\n\t}", "title": "" }, { "docid": "8e60b790e302a70fd89a93073120ad5f", "score": "0.6140579", "text": "public Object getProperty(String id) {\n if (propertyMap == null) {\n return null;\n }\n return propertyMap.get(id);\n }", "title": "" }, { "docid": "9d05675ad931ef52a23114b679d5a0ce", "score": "0.6133748", "text": "public FilterProperty getProperty(String name) {\n return properties.get(name);\n }", "title": "" }, { "docid": "dcbf37970d5174bc700fda8190b8a523", "score": "0.61194974", "text": "default Object get(String propertyName) {\n\t\treturn ClassUtil.getProperty(this, propertyName);\n\t}", "title": "" }, { "docid": "4a5833fb33e7f5531bf7d9483cbda8bd", "score": "0.6119058", "text": "@java.lang.Override\n public java.lang.String getProperty() {\n java.lang.Object ref = property_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n property_ = s;\n return s;\n }\n }", "title": "" }, { "docid": "6223c1c6b5e8f1153b4cda1d41db281f", "score": "0.6117104", "text": "public String getProperty(String prop,String dflt)\n{\n if (pref_props.containsKey(prop)) return pref_props.get(prop);\n\n return dflt;\n}", "title": "" }, { "docid": "e85eca18d841a37ca1c6506a00ed548c", "score": "0.61134607", "text": "@Nullable\n public ViewProperty getProperty(String name) {\n return properties.get(name);\n }", "title": "" }, { "docid": "5a091f84c90d80ad3adc8e654450ae3c", "score": "0.6106411", "text": "public Property getProperty(final String propertyName) {\n return knownProperties.get(propertyName);\n }", "title": "" }, { "docid": "37c2c0bb555226a27fc821607a79542f", "score": "0.61062706", "text": "public static String getProperty(String key) {\r\n return properties.getProperty(key);\r\n }", "title": "" }, { "docid": "4413eab3c5c9f407be542c5f845f2b34", "score": "0.61023223", "text": "public Object getProperty(String key) {\n if(this.properties == null)\n return null;\n return this.properties.get(key);\n }", "title": "" }, { "docid": "c374397df75e8edc690a5245c407a7a9", "score": "0.60872823", "text": "public static String get(String key) {\n return properties.getProperty(key);\n }", "title": "" }, { "docid": "4cd1fed7055d179c7bf1da077e3e26db", "score": "0.60847205", "text": "private static String getProperty(TestCaseRunContext context, String propertyName) {\n\t\tTestProperty prop;\n\t\tlogger.logSoapUI(CustomLevel.INFO, \"Get Property : \" + propertyName );\n\t\tString regExpResult;\n\t\t\n\t\tif (propertyName.contains(\"#Project#\")){\n\t\t\tregExpResult = getRegExpResult(\"\\\\#Project\\\\#(.*)\", propertyName);\n\t\t\tprop = context.getTestCase().getTestSuite().getProject().getProperty(regExpResult);\n\t\t\t\n\t\t} else if (propertyName.contains(\"#TestCase#\")){\n\t\t\tregExpResult = getRegExpResult(\"\\\\#TestCase\\\\#(.*)\", propertyName);\n\t\t\tprop = context.getTestCase().getProperty(regExpResult);\n\t\t\t\n\t\t} else if (propertyName.contains(\"#TestSuite#\")){\n\t\t\tregExpResult = getRegExpResult(\"\\\\#TestSuite\\\\#(.*)\", propertyName);\n\t\t\tprop = context.getTestCase().getTestSuite().getProperty(regExpResult);\n\t\t\t\n\t\t}else if (propertyName.contains(\"#\")){\n\t\t\tString step = getRegExpResult(\"(.*)\\\\#.*\", propertyName);\n\t\t\tString property = getRegExpResult(\".*\\\\#(.*)\", propertyName);\n\t\t\tprop= context.getTestCase().getTestStepByName(step).getProperty(property);\n\t\t} else {\n\t\t\tprop= context.getTestCase().getTestStepByName(getStepName(context)).getProperty(propertyName);\n\t\t} ;\n\t\ttry {\n\t\t\tlogger.logSoapUI(CustomLevel.INFO, \"Property : \" + propertyName + \" Value: \" + prop.getValue());\n\t\t} catch (java.lang.NullPointerException e){\n\t\t\treturn propertyName;\n\t\t}\n\t\treturn prop.getValue();\n\t}", "title": "" }, { "docid": "a769f1eb0a671bff1d98f5eb3fd47c4e", "score": "0.6074564", "text": "public String getProperty(String name) throws PropertiesException {\n String valor = (String) prop.get(name);\n if (valor == null) throw new PropertiesException(name);\n return valor;\n }", "title": "" }, { "docid": "985ae41312052bac595d94e7a11ce774", "score": "0.6072912", "text": "public TypedProperties getConfig() {\n\t\treturn config.getConfig();\n\t}", "title": "" } ]
ed5209faf04855a4ee83ea1104db8ef1
Sets the bundle's timetag specified by a double which is seconds relative to start of session. This relative time offset with origin of zero is understood by SuperCollider in NonRealTime mode. (see example in NonRealtimeSynthesis.rtf).
[ { "docid": "3b98b9c2c526cb0f64411c1e8a4b6a46", "score": "0.574418", "text": "public void setTimeTagRelSecs(double when) {\n\t\t// timetag = ((long) when << 32) | (long) ((when % 1.0) * 0x100000000L +\n\t\t// 0.5);\n\t\ttimetag = ((long) when << 32) + (long) ((when % 1.0) * 0x100000000L + 0.5);\n\t}", "title": "" } ]
[ { "docid": "d57a6d1952cb2248434f27ad8172efae", "score": "0.6034674", "text": "public void setTimeTagSamples(long absMillisOffset, long sampleFrames, int sampleRate) {\n\t\tfinal double seconds = (double) sampleFrames / (double) sampleRate + (double) absMillisOffset / 1000;\n\t\ttimetag = (((long) seconds + SECONDS_FROM_1900_TO_1970) << 32) + (long) ((seconds % 1.0) * 0x100000000L + 0.5);\n\t}", "title": "" }, { "docid": "746accdbea470494c90632519b5ddbf8", "score": "0.6013157", "text": "void setStartTime(double startTime);", "title": "" }, { "docid": "73f45d881cd963db09d8808bf71b8af5", "score": "0.5882876", "text": "void setSt(org.openxmlformats.schemas.drawingml.x2006.main.CTAudioCDTime st);", "title": "" }, { "docid": "399250c00992463aee5a641964d0f616", "score": "0.5870608", "text": "public void setT_2(){\n\t\tt_2 = System.nanoTime();\n\t}", "title": "" }, { "docid": "04f1eaf7141574b255916fae40596459", "score": "0.5833712", "text": "public void setTime(long time);", "title": "" }, { "docid": "19341e12cd4c6bd50a1bcd09f4837865", "score": "0.58303124", "text": "private void setTime(long value) {\n \n time_ = value;\n }", "title": "" }, { "docid": "b9a7d1c48496b144ff0c98a27f271d50", "score": "0.58282846", "text": "public void setSecond(int second) {\r\n \r\n this.second = second;\r\n \r\n paintClock(); // Update the clock face with the new time information\r\n \r\n }", "title": "" }, { "docid": "a9927d7c2a1b55c1203e12d771e6ed4e", "score": "0.5768133", "text": "public void setStartSecond(int value) {\n this.startSecond = value;\n }", "title": "" }, { "docid": "cea2cc4f21fa043aa177b4ef0b67c28d", "score": "0.57087845", "text": "public void setTime2(long time) {\n\ttime2 = time;\n }", "title": "" }, { "docid": "5ce5378f2427439d82f4385bb940e9f0", "score": "0.57084924", "text": "void setStartTick(double st);", "title": "" }, { "docid": "812a3a6eb0e8630f22570f13f1dc41aa", "score": "0.5703519", "text": "public void setSecond(T2 second){\n\t\tsecondNum = second;\n\t}", "title": "" }, { "docid": "c3975fae7c481db75526e639a7193f74", "score": "0.5687408", "text": "public void set() {\n beginning = System.nanoTime();\n }", "title": "" }, { "docid": "79871864b73cb0788449304b36412a6c", "score": "0.56863797", "text": "public void setMetre(double timeSig) {\n this.metre = timeSig;\n }", "title": "" }, { "docid": "0aaf054587abdd4f0369879d6ff71a27", "score": "0.5672711", "text": "public void set_time2(long value) {\n setUIntElement(offsetBits_time2(), 32, value);\n }", "title": "" }, { "docid": "d0f79f3b9615b62ba965abc5f703ec1c", "score": "0.5623687", "text": "void setTimeMin(double timeMin);", "title": "" }, { "docid": "2ab4afc001ff270ef8aa97c7f69e8984", "score": "0.5619777", "text": "public void setTime(int time) { this.time = time; }", "title": "" }, { "docid": "0239b93dbd73585913b0a1903733fd3a", "score": "0.56164116", "text": "public void setT_1(){\n\t\tt_1 = System.nanoTime();\n\t}", "title": "" }, { "docid": "3962d97ccf8542a4a3a058f0a7c88bef", "score": "0.5614971", "text": "public void set_time1(long value) {\n setUIntElement(offsetBits_time1(), 32, value);\n }", "title": "" }, { "docid": "cef5f9fff7ea797955e6d7cf162c9687", "score": "0.55803436", "text": "@Override\n public void setStartTimeUs(long startTimeUs) {\n }", "title": "" }, { "docid": "ce2f15e1d4cdfd85cda340cc95ff41fc", "score": "0.556818", "text": "public void setTime(long time){\n\t\tthis.time = time;\n\t\t//Only want seconds\n\t\tMain.time.setText(\"Time: \" + (this.time/1000));\n\t}", "title": "" }, { "docid": "8b9aa1c24a1a84762bb380e75ff57bf8", "score": "0.5519133", "text": "@Override\r\n\tpublic void setStime(long stime) {\r\n\t\tthis.stime = stime;\r\n\t}", "title": "" }, { "docid": "a856153aa0d509b7ddc568bb27de3aa7", "score": "0.5508772", "text": "void xsetStartTime(org.landxml.schema.landXML11.GPSTime startTime);", "title": "" }, { "docid": "00381dd7bce17308f70145e0fc9624e0", "score": "0.5494965", "text": "@Override\r\n\tpublic void setTime(long time) {\r\n\t\tthis.time = time;\r\n\t}", "title": "" }, { "docid": "d5f33ea6c50ab48696db418828af1ff9", "score": "0.5491576", "text": "public void setTime(int t) {\n\ttime = t;\n }", "title": "" }, { "docid": "9fd1443a157922b21c388656a601d5c4", "score": "0.54892355", "text": "public void setTime(int t){\n t*=60;\n time=t;\n }", "title": "" }, { "docid": "60ce2dd9d1cb38d2248a89487d7da28c", "score": "0.5484808", "text": "public void setSeconds(long j) {\n this.seconds_ = j;\n }", "title": "" }, { "docid": "9ce6fbe8bc45a1e6c33a2d194ce856d3", "score": "0.5484001", "text": "public void setCurrentTime(float seconds) {\n/* 512 */ SVGSVGContext ctx = (SVGSVGContext)getSVGContext();\n/* 513 */ ctx.setCurrentTime(seconds);\n/* */ }", "title": "" }, { "docid": "756a868901339656998248c8cc377324", "score": "0.5478081", "text": "public void setTime(final long t) {\r\n time = t;\r\n }", "title": "" }, { "docid": "71b3cdbf10414a637f5ba2b811280bfd", "score": "0.5475891", "text": "public static void setStartTime()\n {\n LOX.setStartTime( null, null );\n }", "title": "" }, { "docid": "26ac619d5df314b354135ee3f57431d5", "score": "0.5467311", "text": "public void setTime(long time) {\n this.time = time;\n }", "title": "" }, { "docid": "7f481e12618aa4bd5142c768d1ee9e7c", "score": "0.5467223", "text": "public void setSecond( int s )\n {\n second = ( ( s >= 0 && s < 60 ) ? s : 0 );\n }", "title": "" }, { "docid": "36fe30287d2317b4dfa21326551d64c0", "score": "0.54644203", "text": "public void setTime(int time){\r\n this.time=time;\r\n }", "title": "" }, { "docid": "27489b06a4e6b6b200a16aa5c18f1f19", "score": "0.5451263", "text": "@Override\r\n public void setTag(double t) {\r\n this.tag = t;\r\n }", "title": "" }, { "docid": "e706bf3462187e9cef44862320461933", "score": "0.54451126", "text": "public void setSecond(Float second) {\n\t\tthis.second = second;\n\t}", "title": "" }, { "docid": "66798b0927b01d65a4a81069be6272e9", "score": "0.5441067", "text": "private void setEventTime(long value) {\n \n eventTime_ = value;\n }", "title": "" }, { "docid": "66798b0927b01d65a4a81069be6272e9", "score": "0.5441067", "text": "private void setEventTime(long value) {\n \n eventTime_ = value;\n }", "title": "" }, { "docid": "ac741698480537951b27a817ddf4d4ff", "score": "0.5432291", "text": "void xsetTimeMin(org.apache.xmlbeans.XmlDouble timeMin);", "title": "" }, { "docid": "b65fd5a85e62f7b9c0fd0729ee4c5c16", "score": "0.539231", "text": "@Override\n public void setTag(double t) {\n this.tag = t;\n\n }", "title": "" }, { "docid": "c5e0286d57ba30c918e414d7a0a7c72c", "score": "0.53912", "text": "public OscBundleComposer(long timetag) {\n\t\tsuper();\n\n\t\tmHeaderByteBuffer = checkBufferSize(mHeaderByteBuffer, 16);\n\t\tmHeaderByteBuffer.put(\"#bundle\\0\".getBytes());\n\t\tmHeaderByteBuffer.putLong(timetag);\n\t}", "title": "" }, { "docid": "6265ac5ebd208c407448c5fea30ea50f", "score": "0.5386894", "text": "public Structure setVariableValueAtTimeByTagForG2(String varTag, double value, String time){\n\t\t \n\t Structure retval = new Structure();\n \t\ttry{\n\t\t\tprocessor.setVariableValueAtTimeByTag(varTag,value,time);\n\t\t retval.setAttributeValue(RETVAL_, new Boolean(\"true\"));\n\t\t} catch (Exception ie){\n \t\t errorOccur(ie.getMessage());\n\t\t\tretval.setAttributeValue(ERROR_, \n\t\t\t\t\t\t new String(ie.getMessage()));\n\t\t\tretval.setAttributeValue(BACKTRACE_, \n\t\t\t\t\t\t new String (DebugUtil.getStackTrace\n\t\t\t\t\t\t\t\t (ie)));\n\t\t}\n\t\treturn retval;\n\n\t}", "title": "" }, { "docid": "0ee526f191c25132c8796453032b5f46", "score": "0.538029", "text": "public void setStartTime(int seconds)\n {\n startTime=DateTime.forInstant((long)seconds*1000, localTimeZone);\n }", "title": "" }, { "docid": "312937f21ab281c93a260123e541b379", "score": "0.53753805", "text": "public void setStartTime(double startTime) {\n this.startTime = startTime;\n updateAnimation();\n }", "title": "" }, { "docid": "b04858056797e8fb46efecb089e5a379", "score": "0.53688985", "text": "public void setStartTime(long startTime) {\n\r\n }", "title": "" }, { "docid": "50cfa5bdeff0b9f546be4dd34469d219", "score": "0.5357425", "text": "public void setTime(final double i) throws GamaRuntimeException {\n\t\tif ( i < 0 ) { throw GamaRuntimeException.error(\"The current time of a simulation cannot be negative\"); }\n\t\ttime = i;\n\t}", "title": "" }, { "docid": "a1ad32b956389ff14e4b398542054c92", "score": "0.53560156", "text": "public void setTime(Time dtVal);", "title": "" }, { "docid": "927173c282ee752eca317ba62cd06ed5", "score": "0.5355069", "text": "private void setMinTime(long value) {\n \n minTime_ = value;\n }", "title": "" }, { "docid": "840a704712c3b2b27bbb9e2719274816", "score": "0.5347495", "text": "public void setTime(Timestamp newVal) {\r\n\t\ttime = newVal;\r\n\t}", "title": "" }, { "docid": "168ab6e1fc09825f8cf20e90d73e0419", "score": "0.53414094", "text": "public OSCBundle(double when) {\n\t\tsuper();\n\t\tsetTimeTagRelSecs(when);\n\t}", "title": "" }, { "docid": "510df811fe3b5d81028cfe3c7defe0c7", "score": "0.53281015", "text": "public void setTime(long time) {\n this.time = time;\n }", "title": "" }, { "docid": "5ed1045b3d698c709efbcd5a4038df33", "score": "0.5325171", "text": "public void addtime() {\n tBuff += tMilliSecond;\n }", "title": "" }, { "docid": "e0a8c1bdc425ef969e2f282bb8577644", "score": "0.5322528", "text": "public static void setTime(Label timeLabel) {\n // <editor-fold defaultstate=\"collapsed\" desc=\"setTime\">\n Utility.timeLabel = timeLabel;\n //</editor-fold>\n }", "title": "" }, { "docid": "e58b067dba2d9bb615d6452e6cb62714", "score": "0.5309356", "text": "private void setTimestamp(long value) {\n \n timestamp_ = value;\n }", "title": "" }, { "docid": "3b7b50c37c29aa4f5bd0a7d1f8ca5eba", "score": "0.5299256", "text": "public void setCurrentTime(long time) {\n currentTime = time;\n }", "title": "" }, { "docid": "ea11c91740b953b7424351656a9beb04", "score": "0.529663", "text": "public void setSTime(Timestamp value) {\r\n setAttributeInternal(STIME, value);\r\n }", "title": "" }, { "docid": "cc0ccd66ec83a16c0679cd40e28c40f2", "score": "0.5295281", "text": "public void setUpdatetime();", "title": "" }, { "docid": "6c547bd583415d5ab6550d3d69c622bf", "score": "0.52923566", "text": "public void set() {\r\n\t\ttime = Time.now();\r\n\t}", "title": "" }, { "docid": "fa40426a81563f90b03c880be94e283b", "score": "0.52902365", "text": "void setTimeSum(double timeSum);", "title": "" }, { "docid": "7c2a5d8342bd95b2cd78a201907201f8", "score": "0.52855355", "text": "void setStart(long start);", "title": "" }, { "docid": "e7487d5d1a9c7fe35dea6861571d065e", "score": "0.5280284", "text": "public void resetSec()\n {\n m_second = 0;\n startTime = System.currentTimeMillis();\n }", "title": "" }, { "docid": "6a73dd9308bcd21b098f3f3d423f2279", "score": "0.5268273", "text": "public void setStartTime(Timestamp value) {\n setAttributeInternal(STARTTIME, value);\n }", "title": "" }, { "docid": "05de77c6ef99e21acb08589c5cf45f7d", "score": "0.52667886", "text": "public static void start_ts(Integer start_ts){\n _zero_plus(start_ts, \"start_ts\");\n }", "title": "" }, { "docid": "fca9dc4c3ef21ae6adbb9a9a8772b305", "score": "0.5263647", "text": "public void setTS(long ts) {\n this.ts = ts;\n }", "title": "" }, { "docid": "6af89fee23038c4a074d33b2e38b28ca", "score": "0.52432215", "text": "public void setTime(long time) {\n\t\tthis.time = time;\n\t}", "title": "" }, { "docid": "6af89fee23038c4a074d33b2e38b28ca", "score": "0.52432215", "text": "public void setTime(long time) {\n\t\tthis.time = time;\n\t}", "title": "" }, { "docid": "1e1b9f1873d07fc943a2e8ec5a2c05d0", "score": "0.5234847", "text": "public void setTime(int time) {\n this.time = time;\n }", "title": "" }, { "docid": "d6d860dd87fdfa2c2acbf69bfb1fad37", "score": "0.5229047", "text": "public static void startTimer(){\n\t\tDate dNow = new Date();\n\t\tlong time = dNow.getTime();\n\t\tstartTime = (time/1000L);\n\t}", "title": "" }, { "docid": "9f113582c27aae89ccf17bfe0a0866f4", "score": "0.5219976", "text": "public Builder setTs(long value) {\n bitField0_ |= 0x00000008;\n ts_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "d7107acee654c1202ea2092f142a7f6c", "score": "0.5216931", "text": "private void setEventTime(long value) {\n \n eventTime_ = value;\n }", "title": "" }, { "docid": "6e33038e90a1664723a3219007e74d0c", "score": "0.52016926", "text": "void setTimer(int value) {\n timer = value;\n }", "title": "" }, { "docid": "b9d0b2273cc99b053ec80e36dd60a45b", "score": "0.51955277", "text": "public void setCurrentTime(int i) {\n this.f120732c.setText(C47071e.m147169a((long) i));\n }", "title": "" }, { "docid": "8cda797fd3f6bfb3b91cc382302e368a", "score": "0.5190281", "text": "public Structure setInputAtTimeByTagForG2(String varTag, double value, String time){\n\t\t \n\t\tStructure retval = new Structure();\n\t\ttry{\n\t\t\tprocessor.setInputAtTimeByTag(varTag,value,time);\n\t\t retval.setAttributeValue(RETVAL_, new Boolean(\"true\"));\n\t\t} catch (Exception ie){\n\t\t\tretval.setAttributeValue(ERROR_, \n\t\t\t\t\t\t new String(ie.getMessage()));\n\t\t\tretval.setAttributeValue(BACKTRACE_, \n\t\t\t\t\t\t new String (DebugUtil.getStackTrace\n\t\t\t\t\t\t\t\t (ie)));\n\t\t}\n\t\treturn retval;\n }", "title": "" }, { "docid": "cb0626beefabddbfea0b778ceb2e5d25", "score": "0.5183273", "text": "public void setReleaseTime(double rel) {\n releaseTime = ((int) (rel * (float) samplingFrequency / (float) 1000));\n releaseIncrement = (float) (1 - (Math.pow(0.01, -1.0 / releaseTime)));\n }", "title": "" }, { "docid": "3101e89312ff2fe284091032963920ab", "score": "0.51652706", "text": "public void setStartTime() {\n m_startTm = m_updateTm = System.currentTimeMillis();\n }", "title": "" }, { "docid": "9fdd932529436c36c076e01b8be65410", "score": "0.5158259", "text": "public long getTimeTag() {\n\t\treturn timetag;\n\t}", "title": "" }, { "docid": "65cf47fb6bd47ee35e308286db0afbed", "score": "0.5149366", "text": "public void setTimestamp(long value) {\n this.timestamp = value;\n }", "title": "" }, { "docid": "cd4522655de3c4eaef9cf6db026722b2", "score": "0.51452464", "text": "protected void startTiming() {\n startTime = System.currentTimeMillis();\n }", "title": "" }, { "docid": "c4473e687d28528655c2fa8e01fe6071", "score": "0.51321286", "text": "public void setTimerStart(Long timerStart) {\n this.timerStart = timerStart;\n }", "title": "" }, { "docid": "4308a19842b0e62dfc8bb1b815843c0e", "score": "0.5125126", "text": "public void setTime(Long time) {\n this.time = time;\n }", "title": "" }, { "docid": "4308a19842b0e62dfc8bb1b815843c0e", "score": "0.5125126", "text": "public void setTime(Long time) {\n this.time = time;\n }", "title": "" }, { "docid": "4308a19842b0e62dfc8bb1b815843c0e", "score": "0.5125126", "text": "public void setTime(Long time) {\n this.time = time;\n }", "title": "" }, { "docid": "a6a512d54063c9308db935ff67143371", "score": "0.5121734", "text": "public abstract void setRTT(long rtt, long rttVar);", "title": "" }, { "docid": "51ba012a1d6dcf090bccbfdd49e5f55e", "score": "0.51210797", "text": "public void setDateTime(Timestamp dtVal);", "title": "" }, { "docid": "4f8a1d2d94a38dcdc4745319116a4535", "score": "0.51168525", "text": "void setStartTime(long startTime)\r\n\t{\r\n\t\tthis.startTime = startTime;\r\n\t}", "title": "" }, { "docid": "df0833ee9d6225ea8f5024f29131f9f7", "score": "0.51129824", "text": "public void setTime(float time) throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\t__io__block.writeFloat(__io__address + 184, time);\n\t\t} else {\n\t\t\t__io__block.writeFloat(__io__address + 160, time);\n\t\t}\n\t}", "title": "" }, { "docid": "4223dbd56e13950eda502c45c095b119", "score": "0.5100336", "text": "public void setTime(int seconds) {\r\n startSpinner.getModel().setValue(convertSecond2Time(seconds));\r\n }", "title": "" }, { "docid": "9e11f719013f46f08ee70d3eff555e1b", "score": "0.509616", "text": "private void setDetails(long t) {\n this.min = t;\n this.ms = this.min;\n this.sec = t;\n }", "title": "" }, { "docid": "e6186219c90fb2b5930126f20d768764", "score": "0.50949043", "text": "@Override\n public void init(Timestamp time) {\n \n }", "title": "" }, { "docid": "339df16fc235a0e2574ae0afbf0273ba", "score": "0.5094721", "text": "public void setTime(long time) {\n elapsedTime = time;\n }", "title": "" }, { "docid": "e927bc19b8e1e36699ea77cf97da9205", "score": "0.5092369", "text": "private void setTimestamp() {\n this.timestamp = new SimpleDateFormat(\"yyyyMMdd.HHmmss\").format(Calendar.getInstance().getTime());\n }", "title": "" }, { "docid": "eaacdd40753fbe43f41d960e350380b3", "score": "0.5091646", "text": "@Basic @Model\r\n\t\tpublic void setTime(double time) {\r\n\t\t this.time = time;\r\n\t\t}", "title": "" }, { "docid": "03009fe43f32fafd34031a384c2179ba", "score": "0.5086176", "text": "public synchronized void set(long instant) {\n this.instant = instant;\n }", "title": "" }, { "docid": "fbaa61d28e3d091c0b6f03768ee2344f", "score": "0.5085392", "text": "public void setTime(int time){\n this.setText(\"\"+time);\n this.time = time;\n }", "title": "" }, { "docid": "c1f553286a70f2ffbea651ddc7e51cae", "score": "0.50759387", "text": "public void setTTLTime(long time, short serialVersion)\n throws RemoteException;", "title": "" }, { "docid": "aaf170af5faca44b2993583ac2c81574", "score": "0.50669044", "text": "public void setTime(int msPerTick);", "title": "" }, { "docid": "c6c9efff873921e2f2d54eed243ae071", "score": "0.506063", "text": "public void setIntegrationTime(byte time) {\n time = (byte) Math.max(1, time);\n if (trace) { System.out.println(\"as7262::setIntegrationTime(\"+ time +\") Enter\"); }\n virtualWriteRegister(AS726X_INT_T, time);\n if (trace) { System.out.println(\"as7262::setIntegrationTime() Exit\"); }\n polling_delay = AS726x_INTEGRATION_TIME_MULT * time / 1000; // milliseconds\n }", "title": "" }, { "docid": "af14e650b87ba0ff7a85f0881f804eda", "score": "0.5058953", "text": "void setStopTime(double stopTime);", "title": "" }, { "docid": "bf5cf582a828bd1497c9a69ba11d2044", "score": "0.5052278", "text": "public void setTimestamp(long value) {\n this.timestamp = value;\n }", "title": "" }, { "docid": "d2f8f3e6a2b9fd61f30b7c8a010e3965", "score": "0.504793", "text": "public void setTime(Date t) {\n slider.setPosition((t.toInstant().getEpochSecond() % 86400) / 86400.0f);\n }", "title": "" }, { "docid": "5596dbea9051bf162d51485913a59a48", "score": "0.5045036", "text": "public void Set(Timestamp val) {\n Set(val,false,false);\n }", "title": "" }, { "docid": "f08d22b11afc4cf9a18a61cbe7260efc", "score": "0.5040093", "text": "void xsetStopTime(org.landxml.schema.landXML11.GPSTime stopTime);", "title": "" } ]
ae92f51e429c1d740345146f208451ea
Simulate a delay in the task. You can toggle a fixed wait time, or utilize a variable wait.
[ { "docid": "000122470df605ea55c52b3f9abda8a6", "score": "0.0", "text": "@Override\n public Integer call() throws Exception {\n long threadId = Thread.currentThread().getId();\n long wait = threadId * 50; //Variable\n //long wait = 500; //Fixed\n System.out.println(\"Thread ID is: \" + threadId + \", Delay is: \" + wait + \"ms\");\n Thread.sleep(wait);\n return new Random().nextInt(1000) + 1;\n }", "title": "" } ]
[ { "docid": "4811f20a2208492dbddcdbe235a3c659", "score": "0.7752658", "text": "public void waitForDelay() {}", "title": "" }, { "docid": "eb4bfd54677623520c6e27e132b503cb", "score": "0.7288045", "text": "public void doDelay(long millis);", "title": "" }, { "docid": "1a32769c089cbd2c27f01f20bae27aaf", "score": "0.7143464", "text": "private void timeDelay()\r\n {\r\n try\r\n {\r\n Thread.sleep(2000);\r\n }\r\n catch(InterruptedException e)\r\n {\r\n System.out.println(\"Interuption occured\");\r\n }\r\n \r\n }", "title": "" }, { "docid": "1b29e12c37bb615047420c5bd8ca1838", "score": "0.68807626", "text": "void sleep(long milliseconds) throws InterruptedException;", "title": "" }, { "docid": "c378f1ab657cd821784dc82c926d007f", "score": "0.681253", "text": "void schedule(Runnable command, long delay, TimeUnit unit);", "title": "" }, { "docid": "5beef706c2aa1cd61849700f64a27b07", "score": "0.6802902", "text": "private void delay(int ms) {\n\t\ttry {\n\t\t\tThread.sleep(ms);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "5a46e981cfa57b76c152d07085d31aab", "score": "0.6736199", "text": "void delay(Runnable callback);", "title": "" }, { "docid": "7ab54086028ee74e1f5770e4e35888ec", "score": "0.67027783", "text": "void mySleep(long deltaT){\n try{\n Thread.sleep(deltaT);\n }\n catch(InterruptedException e){\n }\n }", "title": "" }, { "docid": "b9caa11ebc2e6d7c66cf0bca0b18b54d", "score": "0.6639687", "text": "public void setDelayBetweenInstructions(AbstractMonitoredTest test, int delay);", "title": "" }, { "docid": "1f7189a96324b173cfffa66b6b6ad7e7", "score": "0.6614293", "text": "public void delay(int time) {\n try {\n Thread.sleep(time);\n } catch (InterruptedException ie) {\n //Handle exception\n }\n }", "title": "" }, { "docid": "af6c3ee88b00ea666f8c30ddac9a73ea", "score": "0.65850616", "text": "public void setDelay(Integer delay) {\n this.delay = delay;\n }", "title": "" }, { "docid": "ed4ba1b7fe9d56c5594aa9699143d23c", "score": "0.6580645", "text": "public void setDelay(int delay) {\n this.delay = delay;\n }", "title": "" }, { "docid": "c963368035bc22a5ab2a20479c4c1af6", "score": "0.65578836", "text": "public static void delay(long ms) {\n try {\n Thread.sleep(ms);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "27bc2d0fc8b961ce1e3291dfccbf8778", "score": "0.65246165", "text": "private void delay(long seconds) {\n try {\n Thread.sleep(seconds * 1000);\n } catch (InterruptedException ex6) {\n //Exceptions.printStackTrace(ex);\n }\n }", "title": "" }, { "docid": "e509a2593a589220f944ac7072861fd8", "score": "0.65220994", "text": "public static void sleep() {\n sleep(1);\n }", "title": "" }, { "docid": "8869540c7ef5c2ec39afe75a33342a15", "score": "0.64961964", "text": "public void setDelay(int delay) {\n setOption(\"delay\", delay);\n }", "title": "" }, { "docid": "1e438f1ccedc8dc3e4aab0257aa27f08", "score": "0.6491455", "text": "public void setDelay(java.lang.Integer delay) {\r\n this.delay = delay;\r\n }", "title": "" }, { "docid": "d090a67f6469f30e51d9f40f5158cf15", "score": "0.64122915", "text": "public void execute(long delay, Task task) throws ExecutorServiceException;", "title": "" }, { "docid": "077152362d244b092a5ef9bb7ab9b8d1", "score": "0.64067227", "text": "private static void sleep(long delayMS)\n\t\t{\n\t\ttry\n\t\t\t{\n\t\t\tThread.sleep(delayMS);\n\t\t\t}\n\t\tcatch (InterruptedException e)\n\t\t\t{\n\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "4c62c9218ec108bee06991ad255b0eae", "score": "0.6347349", "text": "private void delayIfNecessary() {\n // cause current method to pause\n // resume until get notified\n if (latch != null) {\n try {\n latch.await();\n return;\n } catch (InterruptedException e) {}\n }\n\n if (getGroupsDelayMs > 0) {\n try {\n Thread.sleep(getGroupsDelayMs);\n } catch (InterruptedException e) {\n throw new RuntimeException(e);\n }\n }\n }", "title": "" }, { "docid": "dfa5ed589f3c133ce9fdb79a7b9e553b", "score": "0.6344987", "text": "private void sleep() {\n try {\n Thread.sleep(17);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "b7a044ff72ee57f02a19c05a96d5d4e6", "score": "0.6337714", "text": "public native int delay();", "title": "" }, { "docid": "6e703c35a3844bc8a6b9d8b758edbe23", "score": "0.63216984", "text": "private void sleep() {\n try {\n Timber.d(\"Start sleep\");\n timeUnit.sleep(timeout);\n Timber.d(\"Stop sleep\");\n } catch (InterruptedException e) {\n Timber.e(\"Interrupted: \" + e);\n }\n }", "title": "" }, { "docid": "b7c14c031cdbe19a7a28f22417c7c869", "score": "0.63101614", "text": "public final void setDelay(long delay) {\n/* 144 */ this.delay = delay;\n/* */ }", "title": "" }, { "docid": "64143542aa087402bf1c8630eead0895", "score": "0.63035965", "text": "public void sleep()\n {\n try {\n Thread.sleep(5);\n } catch (InterruptedException ex) {\n ex.printStackTrace();\n }\n }", "title": "" }, { "docid": "279fb1db0ba7bcf2ad3ebb1795ebb370", "score": "0.6303551", "text": "public void sleep(int milliseconds){\n try {\n Thread.sleep(milliseconds);\n }\n catch (InterruptedException e){}\n }", "title": "" }, { "docid": "673b733838a21862d48dcdf688189cdc", "score": "0.62682825", "text": "public static void mySleep( int milliseconds)\n {\n try\n {\n Thread.sleep(milliseconds);\n }\n catch (InterruptedException ie)\n {\n }\n }", "title": "" }, { "docid": "6a883e4ae97f5f0c6709602218547f8c", "score": "0.6259766", "text": "public void setDelay(int delay) {\n this.delay = delay;\n System.out.println(this + \".delay = \" + delay);\n }", "title": "" }, { "docid": "caab7ed1ecb97dc4885add8c048454d5", "score": "0.6248482", "text": "private void waitSomeTime() {\n MiscUtils.sleepIgnoreException(2000);\n }", "title": "" }, { "docid": "8189a5c4e8a26958e8a596620eed885a", "score": "0.6219443", "text": "public synchronized static void setSpawnDelay(int delay){\n worldMap.updateSpawnDelay(delay);\n }", "title": "" }, { "docid": "2df1b76b3430c4971f82763a3627c58c", "score": "0.61995596", "text": "public void setDelay(int delay) {\n if (delay > 0) {\n this.delay = delay;\n }\n }", "title": "" }, { "docid": "7dd1cb2321cabedde8f3549af97c14d0", "score": "0.61991465", "text": "@Nonnull\n CancellablePromise<?> invokeLater(@Nonnull Runnable task, int delay);", "title": "" }, { "docid": "4ab2ab524bcd72ce8ddbd00758cd3abb", "score": "0.6193571", "text": "public static void sleep_for(int t_) {\n try {\n TimeUnit.MILLISECONDS.sleep(t_);\n //Thread.sleep(t_);\n //TimeUnit.MICROSECONDS.sleep(t_);\n //TimeUnit.SECONDS.sleep(t_);\n }\n catch (InterruptedException ie) {\n // Appareantly exception needs to be catched, in case\n // sleep is interrupted (which it can be... \n // I don't know how, but it can!).\n System.out.printf(\"... you woke me up!\\n\"); \n }\n \n }", "title": "" }, { "docid": "14061390a6a22ca692c9e650c0bee4fe", "score": "0.6179335", "text": "public long nextDelay();", "title": "" }, { "docid": "ed5ee73f790f3b55f461db7916ab01c5", "score": "0.61733246", "text": "public void delay(double t) { // Imitates the Arduino delay function\n runtime.reset();\n while (opModeIsActive() && (runtime.seconds() < t)) {\n telemetry.addData(\"Path\", \"Leg 1: %2.5f S Elapsed\", runtime.seconds());\n telemetry.update();\n }\n }", "title": "" }, { "docid": "4ec4e62896efe169cc6e8a9faa9f4201", "score": "0.6135878", "text": "public void setDelay(float delay) {\n mDelay = delay;\n }", "title": "" }, { "docid": "bffcbf80a6b9ebbb56c6e9098f6c8b86", "score": "0.6132367", "text": "protected void sleep(int milliseconds){\n\t\ttry {\n\t\t\tThread.sleep(milliseconds);\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "cfcd79bf5af6b0f64661f15e035efe1e", "score": "0.6131601", "text": "@Test\n public void testTaskTiming_delayedTask_logsTaskFinished() {\n mTaskQueue.execute(Task.UNKNOWN, TaskType.HEAD_INVALIDATE, this::delayedTask);\n long delayTime = 123L;\n mFakeClock.advance(delayTime);\n\n // Initialize, allowing the delayed task to be run\n mTaskQueue.initialize(this::noOp);\n\n assertThat(mFakeBasicLoggingApi.lastTaskDelay).isEqualTo(delayTime);\n }", "title": "" }, { "docid": "bcb5b1de9f8d0fcc78955012787fdf8b", "score": "0.6129293", "text": "public void doWaiting(float waitDuration){\n\t\tthis.wait = waitDuration;\n\t}", "title": "" }, { "docid": "49fa59deaf1ab688f6ea9ff0993e1518", "score": "0.61254674", "text": "long nextDelayMillis();", "title": "" }, { "docid": "395f5d8b66af2475859f891ac20932d0", "score": "0.612495", "text": "public static void wait(int milliseconds) {\n\t\tlong t0 = System.currentTimeMillis();\n\t\tlong t1;\n\t\tdo { \n\t\t\tt1 = System.currentTimeMillis();\n\t\t}\n\t\twhile (t1 - t0 < milliseconds);\n\t}", "title": "" }, { "docid": "57a2ce77bf3776b701bc2e4d4932ec02", "score": "0.6124553", "text": "private static void sleepForSimTransDelay(CMInfo cmInfo)\n\t{\n\t\tCMConfigurationInfo confInfo = cmInfo.getConfigurationInfo();\n\t\tint nSimTransDelay = confInfo.getSimTransDelay();\n\n\t\tif(nSimTransDelay > 0)\n\t\t{\n\t\t\ttry {\n\t\t\t\tThread.sleep(nSimTransDelay);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\n\t\treturn;\n\t}", "title": "" }, { "docid": "76f8abbcbda9c025ef9090fb90fae4cc", "score": "0.61187404", "text": "protected void setDelay() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b9f5b59402fdfdd338c071076d136bc6", "score": "0.61110675", "text": "public void runActionInShortDelay() {\n\t\tthis.interrupt();\n\t\tthis.timer = Timer.delay(this.shortDelay, this.executor, new Runnable() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tRepeatedExecutor.this.action.run();\n\t\t\t\tRepeatedExecutor.this.resume();\n\t\t\t}\n\t\t});\n\t}", "title": "" }, { "docid": "7871e0333ee61c1d30d93b8c5569c10d", "score": "0.61094886", "text": "private synchronized void doSomethingInteresting(long millis) throws InterruptedException{\n Thread.sleep(millis);\n }", "title": "" }, { "docid": "3342c8599589f78c22a65b66477f8f77", "score": "0.61086553", "text": "public void sleep() {\n\t\tSystem.out.println(\"sleeping....\");\r\n\t}", "title": "" }, { "docid": "9bb37d08b65a2ae9d6d8b57c7dfff2e2", "score": "0.610807", "text": "public void waitTimeDelta() throws EndOfRun{\n\t\tnextTimeDelta();\n\t\tsleep();\n\t}", "title": "" }, { "docid": "2850937b1599dd85cf9ad523f6efb852", "score": "0.61008835", "text": "public static void sleep(int ms) {\n\ttry {\n\t Thread.sleep(ms);\n\t} catch (Exception e) {}\n }", "title": "" }, { "docid": "e6c6ce56224614513a6132b4e3d2b6b5", "score": "0.6084684", "text": "public static void sleepDelay(int length) {\n for (int i = 0; i <= length; i++) {\n sleep();\n }\n }", "title": "" }, { "docid": "be3a3a32db747bdc1331c8dcd39d24d7", "score": "0.6075169", "text": "@Override\n\tpublic void sleep() {\n\t\t\n\t}", "title": "" }, { "docid": "ae5f7ac910f89cfbddeeba4cc434874c", "score": "0.6072002", "text": "public final void sleep() {\n\t\tif (getMilliseconds() > 0) {\n\t\t\ttry {\n\t\t\t\tThread.sleep(getMilliseconds());\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\t// Ignored\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "6f4ab3562e7565daf887f5980a9d1ae1", "score": "0.6071268", "text": "public void sleep(int ms) {\r\n try {\r\n Thread.sleep(ms);\r\n } catch (InterruptedException ex) {\r\n Thread.currentThread().interrupt();\r\n }\r\n }", "title": "" }, { "docid": "e2ca1f9bb43e73b0e76261b15fdc24ac", "score": "0.60672784", "text": "public static void Sleep(int ms)\r\n {\r\n try\r\n {\r\n Thread.sleep(ms);\r\n } catch (InterruptedException ex)\r\n {\r\n }\r\n }", "title": "" }, { "docid": "926d6589f4484f27bd415d468e5b6655", "score": "0.6050276", "text": "void sleep() throws InterruptedException {\n\t\tint animationTime = mainWndCallback.getAnimationSpeed( fState );\n\t\tlong delay = ( long ) ( Math.pow( 2, 10 - animationTime ) - 1 );\n\t\tif( delay > 0 ) Thread.sleep( delay );\n\t}", "title": "" }, { "docid": "0ed6c6300aa8e2bc63d94871bc3d1365", "score": "0.60471", "text": "public static void wait (int ms) {\n try {\n Thread.sleep(ms);\n }\n catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "a1d7b68169ee745c4aa391356cb5ebfb", "score": "0.60400957", "text": "private void sleep(long sleep)\n {\n try\n { \n Thread.sleep( sleep );\n }\n catch ( InterruptedException e )\n {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "3be9ececd27fa828fbdcac05d0438445", "score": "0.6038296", "text": "void schedule(KurentoUaTimerTask task, long delay);", "title": "" }, { "docid": "02abeafaec9c1c2bc04d2183e8defefa", "score": "0.6020782", "text": "private static void sleep() {\n\t\ttry {\n\t\t\tThread.sleep( (int) (((SLEEP_HIGH - SLEEP_LOW) * rand.nextDouble()) + SLEEP_LOW));\n\t\t}\n\t\tcatch (InterruptedException e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t\te.printStackTrace();\n\t\t\tSystem.exit(1);\n\t\t}\n\t}", "title": "" }, { "docid": "5131b2db607525fb66c6f3ab4be5a0fe", "score": "0.6017967", "text": "@Override\r\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\tThread.sleep(1500);\r\n\t\t\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}", "title": "" }, { "docid": "5131b2db607525fb66c6f3ab4be5a0fe", "score": "0.6017967", "text": "@Override\r\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\tThread.sleep(1500);\r\n\t\t\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}", "title": "" }, { "docid": "5131b2db607525fb66c6f3ab4be5a0fe", "score": "0.6017967", "text": "@Override\r\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\tThread.sleep(1500);\r\n\t\t\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}", "title": "" }, { "docid": "5131b2db607525fb66c6f3ab4be5a0fe", "score": "0.6017967", "text": "@Override\r\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\tThread.sleep(1500);\r\n\t\t\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}", "title": "" }, { "docid": "8a190dce6d06656b6b18154e300275ca", "score": "0.60110784", "text": "long getDelay();", "title": "" }, { "docid": "c1c5d050d3ce6709396d3fc0b73a55e4", "score": "0.60077757", "text": "public void smallWait() {\n\t\ttry {\n\t\t\tthis.sleep(Integer.parseInt(properties.getProperty(\"SmallWait\")) * 1000);\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e.toString());\n\t\t}\n\t}", "title": "" }, { "docid": "579373dd4515a7a17e1ff448d9ddd71c", "score": "0.5983447", "text": "public void setDelay(int delay) {\r\n\t\tif (delay < 20000 && delay > 200) {\r\n\t\t\tthis.delay = delay;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "a1e98f35960ef941cca49932e8e4fade", "score": "0.59624916", "text": "protected void randomTime ()\n {\n int time = (int)(Math.random () * 100); \n try \n {\n Thread.sleep(time);\n }\n catch (InterruptedException ex) \n {\n }\n }", "title": "" }, { "docid": "dfe74a82e8a96354bced37b68c192dd6", "score": "0.5961364", "text": "@Override\n protected void sleep() {\n try {\n Thread.sleep(30);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "44a2b070c3474293e2b59f253d5c59d5", "score": "0.59584135", "text": "public void sleep(Integer millis) {\n ++executionCounter;\n dispatcher.schedule(this::run, millis);\n }", "title": "" }, { "docid": "f93b41c392c616bb7f0ec8a3bbfae1c0", "score": "0.5942168", "text": "private static final void msWait(final long ms)\n {\n try\n {\n Thread.sleep(ms);\n }\n catch(InterruptedException ie)\n {;}\n }", "title": "" }, { "docid": "4338aa57cf3885dc956db2e500c75bee", "score": "0.5941957", "text": "public static void sleepThread() {\n try {\n int randomTime = (int)(Math.random() * 1000);\n Thread.sleep(randomTime);\n System.out.println(\"\\n!!!!!!!!!!!!!!!!!!!!!!!!!! \" + Thread.currentThread().getName() + \" thread sleeping \" +\n \"for : \" + randomTime + \" ms !!!!!!!!!!!!!!!!!!!!!!!!!\\n\");\n } catch (InterruptedException e) {\n System.out.println(\"Error occured in \" + Thread.currentThread().getName() + \" thread\");\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "d8f286dd99d0ffafbe88002dac1e552d", "score": "0.59320205", "text": "public void waittest()\r\n {\r\n try \r\n {\r\n Thread.sleep(60*1000);\r\n } catch (InterruptedException ex) \r\n {\r\n System.out.println(\"Error in test sleep thread\" + ex);\r\n }\r\n }", "title": "" }, { "docid": "826af189bd1cc492c065e5ce52fbace8", "score": "0.5928687", "text": "protected <T> Task<T> delayedValue(T value, long time, TimeUnit timeUnit) {\n return _parSeqUnitTestHelper.delayedValue(value, time, timeUnit);\n }", "title": "" }, { "docid": "96695404e339235c4ab2fffe619c3983", "score": "0.5927539", "text": "private synchronized void goToSleep() {\r\n try {\r\n wait();\r\n } catch (InterruptedException e) {\r\n // do nothing\r\n }\r\n }", "title": "" }, { "docid": "d49cd61e8d0188b4705df1ba8d6766c1", "score": "0.59241617", "text": "public void sleep() {\n\t\ttry {\n\t\t\tThread.sleep(SLEEP_TIME_MS);\n\t\t} catch (InterruptedException e) {\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t}", "title": "" }, { "docid": "3b8f36f6b8d554a0ed70db6b9bee3b6d", "score": "0.5920347", "text": "public static void sleep(int x){\n try {\n Thread.sleep(x);\n } catch(InterruptedException e) {\n Thread.currentThread().interrupt();\n }\n }", "title": "" }, { "docid": "1dbe2b208fc25fc8dbdac663f728ec76", "score": "0.5901446", "text": "private void thisWait(long millis)\r\n\t{\r\n\t\ttry \r\n\t\t{\r\n\t\t\tThread.sleep(millis);\r\n\t\t} \r\n\t\tcatch (InterruptedException e) \r\n\t\t{\t\t\t\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t}", "title": "" }, { "docid": "8fb1f3088281ba66e957849b19c51402", "score": "0.59008914", "text": "public void betterWait(double msec) {\n timeMark = runTime.time();\n\n msec /= 1000;\n\n while((runTime.time() < (timeMark + msec)) && opModeIsActive()) {\n telemetry.addData(\"Time: \", runTime.time());\n telemetry.addData(\"Target: \", (timeMark + msec));\n }\n }", "title": "" }, { "docid": "aa7ad149e8dd3bc218774c6e4f925de2", "score": "0.5889546", "text": "private void sleep(int i) {\n try {\n Thread.sleep(i);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "66a4a28be4c03e5fd10e3c41ed0510b6", "score": "0.58876216", "text": "public void sleep() {\n try {\n checkedSleep();\n } catch (InterruptedException e) {\n Thread.currentThread().interrupt();\n\n // This doesn't get done if checkedSleep() throws, so we do it again here.\n lastExecutionTimeNanos = System.nanoTime();\n }\n }", "title": "" }, { "docid": "1091d02015531a29b7830d99fab948be", "score": "0.5879797", "text": "public void schedule(KurentoUaTimerTask task, long delay, long period);", "title": "" }, { "docid": "e36c0d7e4139640745b64f368c86d9d8", "score": "0.5873164", "text": "public static void sleep(long milliseconds) {\n if (milliseconds <= 0) {\n return;\n }\n try {\n Thread.sleep(milliseconds);\n } catch (InterruptedException e) {\n Thread.currentThread().interrupt();\n }\n }", "title": "" }, { "docid": "5888ff55d5faf64464759d128e4debb4", "score": "0.5869553", "text": "void scheduleAndRepeat(Task _task, int _timeout) throws TaskScheduleException;", "title": "" }, { "docid": "f3a66d94fa7fc38ab8768ee36f56a53d", "score": "0.5868325", "text": "@Given(\"^I see loading icon on delay$\")\n\tpublic void i_see_loading_icon_on_delay() throws Throwable {\n\t \n\t}", "title": "" }, { "docid": "6fc5a8c2778428e47a87d118d2ed8bbd", "score": "0.58635604", "text": "private void waitASecond() {\r\n\t\t\t// literally wait a second.\r\n\t\t\ttry {\r\n\t\t\t\tThread.sleep(1000);\r\n\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}", "title": "" }, { "docid": "1deeea6a18c29d71a04186dfa7af7c9a", "score": "0.586201", "text": "private void delayMicroSecond(final long delayTimeMus) {\n long waitUntil = System.nanoTime() + (delayTimeMus * 1000);\n while(waitUntil > System.nanoTime());\n }", "title": "" }, { "docid": "dae24f5e57a7aee3e45f4c75996e2650", "score": "0.5843896", "text": "void setTimeout(int secs);", "title": "" }, { "docid": "f8e31581749b3639aefaf76e3268b2fc", "score": "0.5841347", "text": "protected void record_delay() {\n\t\tthis.mockOperations.add(new MockOperation() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\t// Do nothing\n\t\t\t}\n\t\t});\n\t}", "title": "" }, { "docid": "fb3a4c0e2756c488f67cd9061966dcab", "score": "0.5840877", "text": "TaskBuilder then(Job job, long delay);", "title": "" }, { "docid": "a2163b86ea5b5174ce39d04c2268f2ad", "score": "0.5840218", "text": "public void setDelay(String param1, Integer param2) throws CallError, InterruptedException {\n if (isAsynchronous)\n service.call(\"setDelay\", param1, param2);\n else\n service.call(\"setDelay\", param1, param2).get();\n }", "title": "" }, { "docid": "2563b9c532868a7b9c5de763e53d6322", "score": "0.58375496", "text": "public void sleepFumador() throws InterruptedException {\n\t\twhile (wait) {\n\t\t\tFumador.sleep(500);\n\t\t}\n\t}", "title": "" }, { "docid": "6d2e6037d0df14cef0e9ccf7a9d8d9f9", "score": "0.58229387", "text": "private void sleep(int time) {\n\t\ttry {\n\t\t\tThread.sleep(time);\n\t\t} catch(InterruptedException ex) {\n\t\t\tThread.currentThread().interrupt();\n\t\t}\n\t}", "title": "" }, { "docid": "fdff08369fff6d2fbae570ea86929ee1", "score": "0.5819216", "text": "static void pause(int milliSeconds){\n try{\n TimeUnit.MILLISECONDS.sleep(milliSeconds);\n } catch (InterruptedException e){\n }\n }", "title": "" }, { "docid": "06feac2a8ecd521a1895fb9ccdc70871", "score": "0.58153814", "text": "public static void sleep(long duration) {\r\n\t\ttry {\r\n\t\t\tThread.sleep(duration);\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\tLOGGER.error(\"Could not sleep for [\" + duration + \"]\", e);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "8a612e556cc75b5aeadb423638425263", "score": "0.5815335", "text": "protected void sleep(long millis){\n try{\n Thread.sleep(millis);\n }catch (InterruptedException e){\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "7796faa40281d93ccbe6cdfe667e3225", "score": "0.5814044", "text": "public static void sleep(long time, TimeUnit timeUnit) {\n sleep(timeUnit.toMillis(time));\n }", "title": "" }, { "docid": "23cd18ad47ee86c5898b6155bc980dae", "score": "0.5811005", "text": "public static void waitFor(int seconds){\n try {\n Thread.sleep(seconds*1000);\n }catch (InterruptedException e){\n e.printStackTrace();\n }\n\n }", "title": "" }, { "docid": "8747704fbc275d6f47b3c8b392aac9bc", "score": "0.5808715", "text": "public void sleep() {\r\n\tLib.assertTrue(conditionLock.isHeldByCurrentThread());\r\n\r\n\tboolean intStatus = Machine.interrupt().disable();\r\n\r\n\tconditionLock.release();\r\n\r\n\tKThread thread = KThread.currentThread();\r\n\r\n\twaitQueue.waitForAccess(thread);\r\n\r\n\tKThread.sleep();\r\n\r\n\tconditionLock.acquire();\r\n\r\n\tMachine.interrupt().restore(intStatus);\r\n }", "title": "" }, { "docid": "d1ac662010aae4e09b9ef1dc8801a603", "score": "0.58058614", "text": "@And(\"sleep for \\\"{int}\\\"\")\n public void sleepFor(int arg0) {\n Utils.sleep(arg0);\n }", "title": "" }, { "docid": "0166c9b22c388ccfb622b08d0b687825", "score": "0.57917804", "text": "@SuppressWarnings(\"javadoc\")\n private static void waitSettle(long wait) {\n try {\n if (wait > 0) {\n Thread.sleep(wait);\n }\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "f90527bb06401275a4f551371fddd05f", "score": "0.578417", "text": "TaskBuilder execute(Job job, long delay);", "title": "" }, { "docid": "93fdef0a869b60ad7c5762c17289682d", "score": "0.5783062", "text": "public int getDelay();", "title": "" } ]
5c538fab17a2298e68e7f37ac4b87402
TODO only one for now
[ { "docid": "c534c90b5fbc2575943f5d6abd00f8de", "score": "0.0", "text": "public synchronized List<ServerContext> getAllServerContexts() {\n return activeContext == ServerContext.NO_CONTEXT ? Collections.<ServerContext>emptyList() : Collections.singletonList(activeContext);\n }", "title": "" } ]
[ { "docid": "ccbad2fe39581989696edf7ff479266d", "score": "0.6223845", "text": "private static void somrtinhg() {\n\t\t\r\n\t}", "title": "" }, { "docid": "fd7df110e087032be8c98522c4493f41", "score": "0.5651243", "text": "@Override\n public void otvori() {\n }", "title": "" }, { "docid": "fd7df110e087032be8c98522c4493f41", "score": "0.5651243", "text": "@Override\n public void otvori() {\n }", "title": "" }, { "docid": "06b59299a5db6a0902fdbf88e7826cfa", "score": "0.55713505", "text": "private void naceSer() {\n\n\t}", "title": "" }, { "docid": "176e34d0e98f75196c596e32acb014d3", "score": "0.54615575", "text": "protected Indirect() {/* intentionally empty block */}", "title": "" }, { "docid": "4faa810505ebcb260aff0793654a731e", "score": "0.54088265", "text": "@Override\n\tpublic void refuel() {\n\t\t\n\t}", "title": "" }, { "docid": "646377f9a04958a6eeea1118fddba04e", "score": "0.5343296", "text": "@Override\n\tpublic void refuel() {\n\n\t}", "title": "" }, { "docid": "28237d6ae20e1aa35aaca12e05c950c9", "score": "0.5331477", "text": "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.53198195", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.53198195", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.53198195", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "c63a11bb1bf0acb98a99c66ee94527a7", "score": "0.53189635", "text": "@Override\r\n\tpublic void ispeci() {\n\r\n\t}", "title": "" }, { "docid": "8a51433116320d5ea7de338cae668e7e", "score": "0.5294085", "text": "@Override\n\tpublic void competir() {\n\t\t\n\t}", "title": "" }, { "docid": "9b8d94120800074e25f9674e2e960bd0", "score": "0.5237786", "text": "@Override\n public void curar() {\n\n }", "title": "" }, { "docid": "1f6ca7603428a226b143ebf504f69fdb", "score": "0.5233191", "text": "@Override\n protected void initialize() {\n \n }", "title": "" }, { "docid": "ccde520bca72caa0d77ef1b117291759", "score": "0.52090365", "text": "@Override\r\n\tpublic void osmossis() {\n\r\n\t}", "title": "" }, { "docid": "c04e1693c791e5601b6d72a13641e7b1", "score": "0.519872", "text": "@Override\n\tpublic void angriff() {\n\n\t}", "title": "" }, { "docid": "5f1811a241e41ead4415ec767e77c63d", "score": "0.5176473", "text": "@Override\n\tprotected void init() {\n\n\t}", "title": "" }, { "docid": "fede515c585b365b04aace2b909737cf", "score": "0.5147783", "text": "@Override\r\n\tvoid dibujar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "5d97082ad890b2df7c126438819d2c54", "score": "0.5120785", "text": "private void envejecer() {\n\t\t\n\t}", "title": "" }, { "docid": "b62a7c8e0bb1090171742c543bf4b253", "score": "0.5117037", "text": "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "title": "" }, { "docid": "7f91c82c66ced12c5b193d3c89d68e4c", "score": "0.5109237", "text": "@Override\n\tprotected void init() {\n\t}", "title": "" }, { "docid": "a7a5010b0e36cb73ca054d37f2a5f005", "score": "0.509404", "text": "private static void getResultList() {\n\t\t\r\n\t}", "title": "" }, { "docid": "74a1be816f56189120d6d74f61abd8f9", "score": "0.5087758", "text": "@Override\n\tpublic void apagate() {\n\t\t\n\t}", "title": "" }, { "docid": "16a4669a2213802ac94829fc8d9946ff", "score": "0.5086402", "text": "@Override\n\t\tpublic void init() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "e15b56243a25fbab1517d03c8eaa727d", "score": "0.5082086", "text": "private void wijzigBestellingActie() {\n\t\t\r\n\t}", "title": "" }, { "docid": "51d6a27e1b3f32053452afb911d0803f", "score": "0.5077897", "text": "Inner method();", "title": "" }, { "docid": "2ccd2a90144fab8b5fa71c58ca003352", "score": "0.5053937", "text": "@Override\n\tpublic void falar() {\n\t\t\n\t}", "title": "" }, { "docid": "c13e6a1b7c130afa9fb0f34225bea4ef", "score": "0.5052402", "text": "protected void mo1555b() {\n }", "title": "" }, { "docid": "770d423e40bf5782a700bc181e8b8a1e", "score": "0.50381947", "text": "@Override\n\tvoid init() {\n\t\t\n\t}", "title": "" }, { "docid": "f8978d93b84e5118882a4ff5e000e716", "score": "0.5021528", "text": "private void init() {\n\t\t\n\t}", "title": "" }, { "docid": "27e436f0a0c9200a542c73eabe9c3662", "score": "0.50183773", "text": "private void Met4() {\n\t\t\r\n\t}", "title": "" }, { "docid": "f72f5c52275c8d17a0bba7ae5b78d3f3", "score": "0.5018231", "text": "private static void pickType(){\t\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "cce15f647f795017e06f2ca544477ccd", "score": "0.500684", "text": "@Override\n\tpublic void chamCong() {\n\n\t}", "title": "" }, { "docid": "78dd081191966d140e733a7a020d9c85", "score": "0.49920902", "text": "public void otraFuncion() {\n\t\t\n\t}", "title": "" }, { "docid": "b8693030a2b5a0ed9423a2578e5d2a26", "score": "0.49856043", "text": "@Override\n\tpublic void toto() {\n\t\t\n\t}", "title": "" }, { "docid": "6a22da4c15689c60193a7068bddc0fe7", "score": "0.497339", "text": "private void share() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "b62156d90c00126bae01bbceef3bf1af", "score": "0.49715272", "text": "@Override\n\tpublic void query4() {\n\t}", "title": "" }, { "docid": "892e81ba33fe99f590f49f4fd7ed10a8", "score": "0.49614546", "text": "private void init() {\r\n\t\t\r\n\t}", "title": "" }, { "docid": "588ab475e29950e8a1944c4a28fe2189", "score": "0.49563682", "text": "public void mo7036d() {\n }", "title": "" }, { "docid": "c54df76b32c9ed90efddc6fd149a38c7", "score": "0.4953306", "text": "@Override\n protected void init() {\n }", "title": "" }, { "docid": "b941b399a338e8c204f1063e54a94824", "score": "0.49523643", "text": "public void mo7103g() {\n }", "title": "" }, { "docid": "ebfe1bb4dd1c0618c0fad36d9f7674b4", "score": "0.49500227", "text": "@Override\n protected void initialize() {\n\n }", "title": "" }, { "docid": "dced6a982f3a37b1e1f6c7eae670a213", "score": "0.49299234", "text": "private static void findIndex()\n\t{\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "94b0ced5bfd6c8796dfd708a164694df", "score": "0.49285027", "text": "@Override\n public void desplazarse() {\n }", "title": "" }, { "docid": "e8f618920d16d01b04b8511136f35c64", "score": "0.49230495", "text": "@Override\r\n\tpublic void lookAt() {\n\r\n\t}", "title": "" }, { "docid": "b1e3eb9a5b9dff21ed219e48a8676b34", "score": "0.49194416", "text": "@Override\n public void memoria() {\n \n }", "title": "" }, { "docid": "b1e3eb9a5b9dff21ed219e48a8676b34", "score": "0.49194416", "text": "@Override\n public void memoria() {\n \n }", "title": "" }, { "docid": "c0781256114b6e21545493bb75f18b9d", "score": "0.49113354", "text": "@Override\n\tprotected void sanityCheck() {\n\t\t\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.49018314", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.49018314", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.49018314", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.49018314", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "8289a4573c4cdeab9d77722379a2d454", "score": "0.48960695", "text": "@Override\n\tpublic String whisper() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "9a26c4906f8195084e9ec158504cab47", "score": "0.48946813", "text": "@Override\n public void init() {\n \n }", "title": "" }, { "docid": "bdc1683df7d1d6b2d988cd3acab4903e", "score": "0.4893563", "text": "public void mo5201a() {\n }", "title": "" }, { "docid": "7f6a9aff27131c0f109d080a5160d108", "score": "0.48896575", "text": "private ResultFormater() {\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.48873863", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.48873863", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.48873863", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.48873863", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "3d58a7b34ff7718a3b1945d88236d31b", "score": "0.48867565", "text": "protected boolean method_4161() {\r\n return true;\r\n }", "title": "" }, { "docid": "73d2e78e03547e3a30a40b196bae2c7d", "score": "0.48823678", "text": "@Override\r\n\tpublic void calificar() {\n\r\n\t}", "title": "" }, { "docid": "4a4d6ca4f76cf550f30a1b3469c5c600", "score": "0.48796192", "text": "@Override\n\tpublic void heilen() {\n\n\t}", "title": "" }, { "docid": "07a182d421938d59ecf67839293fe316", "score": "0.48691392", "text": "private void preCreate() {\n\t\t\n\t}", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.48677614", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.48677614", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.48677614", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.48677614", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.48677614", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.48677614", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.48677614", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.48677614", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.48677614", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.48677614", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.48677614", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.48677614", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.48677614", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.48677614", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "6db196fe12df2040e890be66656ff251", "score": "0.48663032", "text": "@Override\n\tprotected void execute() {\n\t\t\n\t}", "title": "" }, { "docid": "6db196fe12df2040e890be66656ff251", "score": "0.48663032", "text": "@Override\n\tprotected void execute() {\n\t\t\n\t}", "title": "" }, { "docid": "09f3b7ea9d423482a8fe18135e82ed27", "score": "0.48630145", "text": "protected abstract String getOtherInfo();", "title": "" }, { "docid": "3207dcaa6322a2a59b6687b951ef91d7", "score": "0.4862907", "text": "@Override\n\tpublic void Damege() {\n\t\t\n\t}", "title": "" }, { "docid": "8ce70d18e04299fa79dc9066550f3a42", "score": "0.48591697", "text": "@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}", "title": "" }, { "docid": "0f6e1929716bfb216fb0d53f4c72c746", "score": "0.4858009", "text": "@Override\n\tpublic void hesapla() {\n\t\t\n\t}", "title": "" }, { "docid": "12f9569d82d3bd3176a7b9ec187addc4", "score": "0.48570222", "text": "@Override\n\tpublic void use() {\n\t}", "title": "" }, { "docid": "c56e7f2e60433364cbe441d06c7ef704", "score": "0.48568082", "text": "public void use() {\n\t}", "title": "" }, { "docid": "c19a49911957739008b73b032429cb01", "score": "0.48549557", "text": "public void initalize() {\n\t\t\r\n\t}", "title": "" }, { "docid": "1949d33b3d219fb2fd4f326e2b150ba0", "score": "0.4851369", "text": "@Override\npublic int geta1() {\n\treturn 0;\n}", "title": "" }, { "docid": "99eba86d5d3283f780cc06ae2ae3b986", "score": "0.48433658", "text": "private ConversionMethods() {\r\n\t\t\r\n\t}", "title": "" }, { "docid": "f2b0e20cc959024f21173c16e77430c4", "score": "0.48387662", "text": "@Override\n\tpublic void deneme() {\n\t\t\n\t}", "title": "" }, { "docid": "1e530a3abecfdbdcf6f7ca4bd7294921", "score": "0.48385715", "text": "@Override\n\tpublic void andar() {\n\t\t\n\t}", "title": "" }, { "docid": "69ba9acc4adefe3a2514c78aaf97317e", "score": "0.4823781", "text": "private CrossOverStrategy() {\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.48226994", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.48226994", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.48226994", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "37d29396b1e130dccecbaa843bd5a915", "score": "0.4819754", "text": "private DODSUtilities() { }", "title": "" }, { "docid": "dbccea21c95a2d676935a3ea758b163e", "score": "0.48166728", "text": "@Override\r\n\tpublic void limpiar() {\n\r\n\t}", "title": "" }, { "docid": "452e0b56ad31e43b2766c1280450d5f9", "score": "0.48117042", "text": "@Override\r\n\tprotected void readImpl()\r\n\t{\r\n\t}", "title": "" }, { "docid": "a7998d90f797991feb14594e625fab5d", "score": "0.48116583", "text": "private void Getdata() {\n\t\t\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.48074973", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" } ]
3d6adda145bd1037aaeedb46487268cb
Set the created by user of the role.
[ { "docid": "5dde980e85924b9aafba651e5c6fe45b", "score": "0.6075955", "text": "public void setCreatedBy(Long createdBy) {\n this.createdBy = createdBy;\n }", "title": "" } ]
[ { "docid": "c29dd15ca5a72b7ebf52599359bcb182", "score": "0.6986845", "text": "void setCreateby(final U createdBy);", "title": "" }, { "docid": "4c11278754985b37e13256d445179aa6", "score": "0.6956685", "text": "public void setCreator(User creator) {\n this.creator = creator;\n }", "title": "" }, { "docid": "54bcc747cd5e92ce7105e19d86a0c86e", "score": "0.68074024", "text": "@Override\r\n\tpublic void setCreatedBy(User u) {\n\t\tthis.createdBy = (FaqUser)u;\t\t\r\n\t}", "title": "" }, { "docid": "c1379a355e8d1560e295f08324bccb00", "score": "0.6776738", "text": "private void setCreateUser(entity.User value) {\n __getInternalInterface().setFieldValue(CREATEUSER_PROP.get(), value);\n }", "title": "" }, { "docid": "a77710771f8a39e47ab287012e526897", "score": "0.6687925", "text": "public void setCreatedByUser(String createdByUser);", "title": "" }, { "docid": "7d3225a1a06c9da962e183e2a7dbd03e", "score": "0.6655616", "text": "public void setCreatedBy(final CreatedBy createdBy);", "title": "" }, { "docid": "9e98efca49559e9ca1f86e3d59af6b1a", "score": "0.66115046", "text": "public void setCreatedByUser(long createdByUser);", "title": "" }, { "docid": "20d809611df5564c815b58c0df73ba36", "score": "0.6536022", "text": "public void setCreatedBy(User createdBy)\n\t{\n\t\t this.addKeyValue(\"Created_By\", createdBy);\n\n\t}", "title": "" }, { "docid": "5205ba84d386ce6d73bd3ac148ea49ef", "score": "0.6532527", "text": "public void setCreateUser(entity.User value) {\n __getInternalInterface().setFieldValue(CREATEUSER_PROP.get(), value);\n }", "title": "" }, { "docid": "57c6c74b73e995e97e0a376e49975633", "score": "0.64859205", "text": "public void setCreatedUser(String createdUser) {\r\n this.createdUser = createdUser;\r\n }", "title": "" }, { "docid": "5b259464419ddea4699810604eafe56f", "score": "0.64771444", "text": "public void setCreatedBy (com.myconnector.domain.UserData createdBy) {\n\t\tthis.createdBy = createdBy;\n\t}", "title": "" }, { "docid": "d8b23bc7d937f81f739e09e62176ce00", "score": "0.64468", "text": "public void setCreatedByUser(\n @Nullable\n final String createdByUser) {\n rememberChangedField(\"CreatedByUser\", this.createdByUser);\n this.createdByUser = createdByUser;\n }", "title": "" }, { "docid": "ab35ba4383f535b81aae6a3ecef14837", "score": "0.6387348", "text": "public void setCreatedBy(com.sforce.soap.enterprise.sobject.User createdBy) {\r\n this.createdBy = createdBy;\r\n }", "title": "" }, { "docid": "2de893f678db67a515c01af9bc407b3a", "score": "0.6369889", "text": "public void setCreatedBy(String v) \n {\n \n if (!ObjectUtils.equals(this.createdBy, v))\n {\n this.createdBy = v;\n setModified(true);\n }\n \n \n }", "title": "" }, { "docid": "2a2709f643202ab316aad026652da692", "score": "0.6368254", "text": "public void setCreateduser(Long createduser) {\n this.createduser = createduser;\n }", "title": "" }, { "docid": "e7dac2ad07dba62b85bc20925359400f", "score": "0.6335631", "text": "public void setCreatedUser(Integer createdUser) {\n\t\tthis.createdUser = createdUser;\n\t}", "title": "" }, { "docid": "c6f423f7a73bfcbd395d18f83413a561", "score": "0.6321783", "text": "public void setCreatedBy(com.sforce.soap.enterprise.sobject.User createdBy) {\n this.createdBy = createdBy;\n }", "title": "" }, { "docid": "178ea82c328a4de66cdd613a2757f705", "score": "0.6258857", "text": "public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }", "title": "" }, { "docid": "178ea82c328a4de66cdd613a2757f705", "score": "0.6258857", "text": "public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }", "title": "" }, { "docid": "178ea82c328a4de66cdd613a2757f705", "score": "0.6258857", "text": "public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }", "title": "" }, { "docid": "178ea82c328a4de66cdd613a2757f705", "score": "0.6258857", "text": "public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }", "title": "" }, { "docid": "178ea82c328a4de66cdd613a2757f705", "score": "0.6258857", "text": "public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }", "title": "" }, { "docid": "178ea82c328a4de66cdd613a2757f705", "score": "0.6258857", "text": "public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }", "title": "" }, { "docid": "178ea82c328a4de66cdd613a2757f705", "score": "0.6258857", "text": "public void setCreatedBy(String value) {\n setAttributeInternal(CREATEDBY, value);\n }", "title": "" }, { "docid": "dbd36e87f1219a5b7893f48c3d329d0d", "score": "0.62583965", "text": "public void setCreatedby( String createdby )\n {\n this.createdby = createdby;\n }", "title": "" }, { "docid": "44e37c6f924c27a27a51bdb6070a0710", "score": "0.6217138", "text": "public void setCreateUser(String newVal) {\n if ((newVal != null && this.createUser != null && (newVal.compareTo(this.createUser) == 0)) || \n (newVal == null && this.createUser == null && createUser_is_initialized)) {\n return; \n } \n this.createUser = newVal; \n\n createUser_is_modified = true; \n createUser_is_initialized = true; \n }", "title": "" }, { "docid": "55071a785723ee9918c04d7ac50143a4", "score": "0.6174222", "text": "public void setCreatedUserId(Integer value) {\n set(4, value);\n }", "title": "" }, { "docid": "f76fc2cca79cbab54eb42e5199ef380b", "score": "0.6169954", "text": "public void setCreateBy (com.redsaga.hibnatesample.step2.User _createBy) {\n\t\tthis._createBy = _createBy;\n\t}", "title": "" }, { "docid": "ae91baf56c5eb1cf05d664a6bc9da104", "score": "0.6158326", "text": "public void assignAuthorisedUser(final boolean val) {\n authorisedUser = val;\n }", "title": "" }, { "docid": "fa159d072ae02ff02875e71992cd130b", "score": "0.61342394", "text": "public void setCreatedBy(String createdBy){\r\n\t\tthis.createdBy = createdBy;\r\n\t}", "title": "" }, { "docid": "21f1a16b1a93431a9b39a094c0b29b9d", "score": "0.61319304", "text": "public void setCreatedBy( Integer createdBy ) {\n this.createdBy = createdBy;\n }", "title": "" }, { "docid": "9c538c2827cc2fcd64c4bb95a9da6c4f", "score": "0.61158085", "text": "public void setCreatedUserId(Integer value) {\n this.createdUserId = value;\n }", "title": "" }, { "docid": "9c538c2827cc2fcd64c4bb95a9da6c4f", "score": "0.61158085", "text": "public void setCreatedUserId(Integer value) {\n this.createdUserId = value;\n }", "title": "" }, { "docid": "b9066cecb68a356ba23a29ff26f411ec", "score": "0.60805327", "text": "public void setCreatedBy(Number value)\n {\n setAttributeInternal(CREATEDBY, value);\n }", "title": "" }, { "docid": "68ed711303dc164a36b5555dced8eaea", "score": "0.60729027", "text": "public Long getCreatedBy() {\n return createdBy;\n }", "title": "" }, { "docid": "68ed711303dc164a36b5555dced8eaea", "score": "0.60729027", "text": "public Long getCreatedBy() {\n return createdBy;\n }", "title": "" }, { "docid": "68ed711303dc164a36b5555dced8eaea", "score": "0.60729027", "text": "public Long getCreatedBy() {\n return createdBy;\n }", "title": "" }, { "docid": "68ed711303dc164a36b5555dced8eaea", "score": "0.60729027", "text": "public Long getCreatedBy() {\n return createdBy;\n }", "title": "" }, { "docid": "598560342ec8845cb03efda3d33c25bc", "score": "0.6069477", "text": "public String getCreatedby() {\n return createdby;\n }", "title": "" }, { "docid": "d094c36da608856fe64ebe3a909549c2", "score": "0.60687685", "text": "public void setCreatorUserId(long creatorUserId) {\n this.creatorUserId = creatorUserId;\n }", "title": "" }, { "docid": "f71dcd0efc82f9c025aff0a82e1fd81b", "score": "0.6064621", "text": "public void setCreateUser(eu.aladdin_project.storagecomponent.CreateUserDocument.CreateUser createUser)\n {\n synchronized (monitor())\n {\n check_orphaned();\n eu.aladdin_project.storagecomponent.CreateUserDocument.CreateUser target = null;\n target = (eu.aladdin_project.storagecomponent.CreateUserDocument.CreateUser)get_store().find_element_user(CREATEUSER$0, 0);\n if (target == null)\n {\n target = (eu.aladdin_project.storagecomponent.CreateUserDocument.CreateUser)get_store().add_element_user(CREATEUSER$0);\n }\n target.set(createUser);\n }\n }", "title": "" }, { "docid": "cb60e15d1c609fd350c563e03feda203", "score": "0.6050424", "text": "public String getCreatedBy() {\r\n return createdBy;\r\n }", "title": "" }, { "docid": "cb60e15d1c609fd350c563e03feda203", "score": "0.6050424", "text": "public String getCreatedBy() {\r\n return createdBy;\r\n }", "title": "" }, { "docid": "cb60e15d1c609fd350c563e03feda203", "score": "0.6050424", "text": "public String getCreatedBy() {\r\n return createdBy;\r\n }", "title": "" }, { "docid": "ea7f202f2046e98177144618a60f6ea4", "score": "0.6043939", "text": "public void setCreateUser(User createUser)\r\n/* */ {\r\n/* 151 */ this.createUser = createUser;\r\n/* */ }", "title": "" }, { "docid": "6cded1300ab1b8da6886f88e3af3b895", "score": "0.60398203", "text": "void setUserCreated(final Long userCreated);", "title": "" }, { "docid": "0bcd7f101e76a12033d5333898a144db", "score": "0.6034229", "text": "public String getCreatedBy() {\n return this.createdBy;\n }", "title": "" }, { "docid": "b8e5deefeaf29354ed680a452811da3a", "score": "0.60300046", "text": "public void setUserCreate(Long userCreate) {\n this.userCreate = userCreate;\n }", "title": "" }, { "docid": "be3eb089a6a4631be93b64fa10728d55", "score": "0.6020459", "text": "@Override\r\n\tpublic void postCreate(User u) {\n\t\tthis.created = LocalDateTime.now();\r\n\t\tthis.createdBy = (FaqUser) u;\r\n\t\t\r\n\t}", "title": "" }, { "docid": "b8a42a8ce6d011c42f7f4212c1c7ccfb", "score": "0.60200953", "text": "public String getCreatedBy(){\r\n\t\treturn createdBy;\r\n\t}", "title": "" }, { "docid": "9d6af412480d9683743d0da19267d522", "score": "0.6016506", "text": "@Override\r\n\tpublic FaqUser getCreatedBy() {\n\t\treturn this.createdBy;\r\n\t}", "title": "" }, { "docid": "43801a62c9c8cf09daa572087d9e2970", "score": "0.6012959", "text": "public String getCreatedBy() {\n return createdBy;\n }", "title": "" }, { "docid": "8b45d55bf020ced9706ef67a1d151a12", "score": "0.600659", "text": "public Long getCreateduser() {\n return createduser;\n }", "title": "" }, { "docid": "f0a2ed4a4254f009806ef803086e2adf", "score": "0.60055315", "text": "public com.sforce.soap.enterprise.sobject.User getCreatedBy() {\r\n return createdBy;\r\n }", "title": "" }, { "docid": "b56335b460d4eca99e74d9f75ad35ecf", "score": "0.600412", "text": "public String createdBy() {\n return this.createdBy;\n }", "title": "" }, { "docid": "82a2ef57c9275028f2b75926d2f22ef2", "score": "0.6000626", "text": "public com.sforce.soap.enterprise.sobject.User getCreatedBy() {\n return createdBy;\n }", "title": "" }, { "docid": "cdee52dd54e7654865c4fce56ae9d0f4", "score": "0.59960294", "text": "public void setCreateUser(Long createUser) {\r\n this.createUser = createUser;\r\n }", "title": "" }, { "docid": "cdee52dd54e7654865c4fce56ae9d0f4", "score": "0.59960294", "text": "public void setCreateUser(Long createUser) {\r\n this.createUser = createUser;\r\n }", "title": "" }, { "docid": "6d65311be3a21fff12ec6e5e8ba8efd3", "score": "0.59921974", "text": "public void setCreatedBy(java.lang.String createdBy) {\r\n this.createdBy = createdBy;\r\n }", "title": "" }, { "docid": "0d9e362b8bda2282c30eba07177668cb", "score": "0.59874094", "text": "void setCreationDate( String username, Date creationDate ) throws UserNotFoundException;", "title": "" }, { "docid": "c689379f31fca0e9c2dd646e2f096462", "score": "0.5987168", "text": "public Long getCreatedBy() {\n\t\treturn createdBy;\n\t}", "title": "" }, { "docid": "e6070e69c22039031bf72177996c7f53", "score": "0.5979676", "text": "public void setCreator(SystemUserBO creator)\n {\n _creator = creator;\n _model.setCreator(creator.getModel());\n }", "title": "" }, { "docid": "b8f8fe2a272ab72b4fe6b2857f12caab", "score": "0.59648204", "text": "public void setCreatedBy(String createdBy) {\n this.createdBy = createdBy;\n }", "title": "" }, { "docid": "b8f8fe2a272ab72b4fe6b2857f12caab", "score": "0.59648204", "text": "public void setCreatedBy(String createdBy) {\n this.createdBy = createdBy;\n }", "title": "" }, { "docid": "f093c16877215ece593c80c78169576d", "score": "0.59587014", "text": "public IBusinessObject setCreator(IUser creator)\n throws ORIOException;", "title": "" }, { "docid": "5b6729d67e9bde6fee645ebf9e56a52d", "score": "0.5958308", "text": "public void setCreatedBy(Long createdBy) {\n\t\tthis.createdBy = createdBy;\n\t}", "title": "" }, { "docid": "548cc983b50c8bcbdc75f1d88192f240", "score": "0.59557176", "text": "public Builder setCreatedBy(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n createdBy_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "687c4cd430f7dd9c60857ee7406c8b85", "score": "0.59527725", "text": "public String getCreatedBy() {\r\n\t\treturn createdBy;\r\n\t}", "title": "" }, { "docid": "cdaf091b8b670987e6199fd2d7e018d4", "score": "0.59485036", "text": "public void setCreatedBy(String createdBy) {\r\n\t\tthis.createdBy = createdBy;\r\n\t}", "title": "" }, { "docid": "5df3a0e1a752da8f54076c3530756684", "score": "0.59483117", "text": "@ApiModelProperty(value = \"Id of the user who created the record.\")\n public Long getCreatedBy() {\n return createdBy;\n }", "title": "" }, { "docid": "0cda2da84d613317e8853dab2881b6e4", "score": "0.5942168", "text": "public String getCreatedUser() {\r\n return this.createdUser;\r\n }", "title": "" }, { "docid": "571c84966e53a5343279656746a6c761", "score": "0.5936911", "text": "public Long getCreateUser() {\r\n return createUser;\r\n }", "title": "" }, { "docid": "571c84966e53a5343279656746a6c761", "score": "0.5936911", "text": "public Long getCreateUser() {\r\n return createUser;\r\n }", "title": "" }, { "docid": "b44d392b3c242c5aeb366f3c89b1fd7a", "score": "0.59308034", "text": "public void createSupplier(User user){\n BCryptPasswordEncoder encoder= new BCryptPasswordEncoder();\n user.setPassword(encoder.encode(user.getPassword()));\n //creating roles\n Role userRole = new Role(\"SUPPLIER\");//we create a role type client\n //a user can then take a list of roles\n List<Role> roles = new ArrayList<>();//list of roles\n roles.add(userRole);//add client role type to the list\n user.setRoles(roles);//set a user to a role type\n userRepository.save(user);//save( save is a crudrepository method) the user to the database.\n }", "title": "" }, { "docid": "542394cbf8508c58cb36381ee009cf5b", "score": "0.5906406", "text": "public void setCreateUser(Integer createUser) {\n this.createUser = createUser;\n }", "title": "" }, { "docid": "542394cbf8508c58cb36381ee009cf5b", "score": "0.5906406", "text": "public void setCreateUser(Integer createUser) {\n this.createUser = createUser;\n }", "title": "" }, { "docid": "23d560d73acf20034e9e89b9cf3a8765", "score": "0.59054756", "text": "public void setCreatedBy(Number value) {\n setAttributeInternal(CREATEDBY, value);\n }", "title": "" }, { "docid": "23d560d73acf20034e9e89b9cf3a8765", "score": "0.59054756", "text": "public void setCreatedBy(Number value) {\n setAttributeInternal(CREATEDBY, value);\n }", "title": "" }, { "docid": "23d560d73acf20034e9e89b9cf3a8765", "score": "0.59054756", "text": "public void setCreatedBy(Number value) {\n setAttributeInternal(CREATEDBY, value);\n }", "title": "" }, { "docid": "23d560d73acf20034e9e89b9cf3a8765", "score": "0.59054756", "text": "public void setCreatedBy(Number value) {\n setAttributeInternal(CREATEDBY, value);\n }", "title": "" }, { "docid": "23d560d73acf20034e9e89b9cf3a8765", "score": "0.59054756", "text": "public void setCreatedBy(Number value) {\n setAttributeInternal(CREATEDBY, value);\n }", "title": "" }, { "docid": "23d560d73acf20034e9e89b9cf3a8765", "score": "0.59054756", "text": "public void setCreatedBy(Number value) {\n setAttributeInternal(CREATEDBY, value);\n }", "title": "" }, { "docid": "23d560d73acf20034e9e89b9cf3a8765", "score": "0.59054756", "text": "public void setCreatedBy(Number value) {\n setAttributeInternal(CREATEDBY, value);\n }", "title": "" }, { "docid": "23d560d73acf20034e9e89b9cf3a8765", "score": "0.59054756", "text": "public void setCreatedBy(Number value) {\n setAttributeInternal(CREATEDBY, value);\n }", "title": "" }, { "docid": "c6f517fec11f561a81c69892e022e85d", "score": "0.5889893", "text": "public void setCreatedby(java.lang.Integer newValue) {\n\tthis.createdby = newValue;\n}", "title": "" }, { "docid": "3054bc04a3972956f9ea0ba82e3c6502", "score": "0.5883869", "text": "public String getCreatedBy() {\n\t\treturn this.createdBy;\n\t}", "title": "" }, { "docid": "9b79d737fe5c4df2b61e11fb8ec6627e", "score": "0.58792865", "text": "public String getCreatedBy() {\n\t\treturn createdBy;\n\t}", "title": "" }, { "docid": "e8c00de12a22305d3f48affb2b22d817", "score": "0.5850333", "text": "public void setCreator(org.semanticwb.model.User value)\r\n {\r\n if(value!=null)\r\n {\r\n getSemanticObject().setObjectProperty(swb_creator, value.getSemanticObject());\r\n }else\r\n {\r\n removeCreator();\r\n }\r\n }", "title": "" }, { "docid": "e8c00de12a22305d3f48affb2b22d817", "score": "0.5850333", "text": "public void setCreator(org.semanticwb.model.User value)\r\n {\r\n if(value!=null)\r\n {\r\n getSemanticObject().setObjectProperty(swb_creator, value.getSemanticObject());\r\n }else\r\n {\r\n removeCreator();\r\n }\r\n }", "title": "" }, { "docid": "e8c00de12a22305d3f48affb2b22d817", "score": "0.5850333", "text": "public void setCreator(org.semanticwb.model.User value)\r\n {\r\n if(value!=null)\r\n {\r\n getSemanticObject().setObjectProperty(swb_creator, value.getSemanticObject());\r\n }else\r\n {\r\n removeCreator();\r\n }\r\n }", "title": "" }, { "docid": "219ecb1f05b481b77f4a17cce0a279dd", "score": "0.58481765", "text": "public void setCreatedUserName(String createdUserName) {\n this.createdUserName = createdUserName;\n }", "title": "" }, { "docid": "1049aa7df6ba4d94a588c06a81f7a4dd", "score": "0.5847174", "text": "public BoxUser.Info getCreatedBy() {\n return this.createdBy;\n }", "title": "" }, { "docid": "e62c8243f99ef50104f55cd5323b3e45", "score": "0.5840817", "text": "public java.lang.String getCreatedBy() {\r\n return createdBy;\r\n }", "title": "" }, { "docid": "a59495555cba943906cde512711e6dfe", "score": "0.5827436", "text": "public void setCreatedBy(String createdBy) {\n\t\tthis.createdBy = createdBy;\n\t}", "title": "" }, { "docid": "f19ad5f2f50af2bc6bdf2dd54f88f866", "score": "0.5807348", "text": "public void setRole(User user, UserRole role) {\n\t user.setRole(role);\n\t}", "title": "" }, { "docid": "c6c6998a986ccb84addb9dbd80c379fb", "score": "0.58062935", "text": "public void setCreatedby(String createdby)\n {\n this.createdby.set(createdby.trim().toUpperCase());\n }", "title": "" }, { "docid": "01359506edd554bfd32827ce145e8c9b", "score": "0.5806092", "text": "public com.myconnector.domain.UserData getCreatedBy () {\n\t\treturn createdBy;\n\t}", "title": "" } ]
ce7fad1fcf18435d5a79ffd03bdbcd7b
repeated .Department department = 3;
[ { "docid": "e28f076d8ef82c844eac40d5aedf44c7", "score": "0.0", "text": "public org.softlang.company.protobuf.CompanyProtos.Department getDepartment(int index) {\n if (departmentBuilder_ == null) {\n return department_.get(index);\n } else {\n return departmentBuilder_.getMessage(index);\n }\n }", "title": "" } ]
[ { "docid": "1dda530009cafe809ed715bf37927c87", "score": "0.5441263", "text": "public void setDepartment(Department department) {\n this.department = department;\n }", "title": "" }, { "docid": "32824382123a75cfe4264166042fc5d0", "score": "0.54251826", "text": "public void setDept(Department department) {\n this.dept = department;\n }", "title": "" }, { "docid": "ccd419da5337e83651feb3124ead643c", "score": "0.5394257", "text": "public void assignDepartment(int empId, String deptName);", "title": "" }, { "docid": "93660aac8a6b2d2ec711b99a72455063", "score": "0.5354421", "text": "org.softlang.company.protobuf.CompanyProtos.Department getDepartment(int index);", "title": "" }, { "docid": "93660aac8a6b2d2ec711b99a72455063", "score": "0.5354421", "text": "org.softlang.company.protobuf.CompanyProtos.Department getDepartment(int index);", "title": "" }, { "docid": "79bacb4ca9fa14bf7fc0bb61b272afda", "score": "0.5336454", "text": "public void setDepartment(String department) {\n this.department = department;\n }", "title": "" }, { "docid": "f64049dff0583490b69fd3ac15f186c9", "score": "0.5286404", "text": "public void setDept(java.lang.String param){\n localDeptTracker = true;\n \n this.localDept=param;\n \n\n }", "title": "" }, { "docid": "f64049dff0583490b69fd3ac15f186c9", "score": "0.5286404", "text": "public void setDept(java.lang.String param){\n localDeptTracker = true;\n \n this.localDept=param;\n \n\n }", "title": "" }, { "docid": "ed6bdc5f10e580d115060da6df0e1bdd", "score": "0.5216728", "text": "public void setDepartment(String department) {\n\t\tthis.department=department;\n\t}", "title": "" }, { "docid": "49fa5b98e64e3d540d0308bdd7ea9267", "score": "0.51619124", "text": "public void setDepartment(Department department) {\n\t\tthis.department = department;\n\t}", "title": "" }, { "docid": "49fa5b98e64e3d540d0308bdd7ea9267", "score": "0.51619124", "text": "public void setDepartment(Department department) {\n\t\tthis.department = department;\n\t}", "title": "" }, { "docid": "801a845b7e99124a7dbedd3e5ab63967", "score": "0.51380163", "text": "public Department GetDepartment()\n\t{\n\t\treturn _Dept;\n\t}", "title": "" }, { "docid": "1e3998cd0e3783be9580b555cd197fde", "score": "0.51024216", "text": "@Override\n\tpublic void addDepartment(String name, String desc) {\n\t\tDepartment department = new Department(name, desc);\n\t\tdepartments[numOfDepartment] = department;\n\t\tnumOfDepartment += 1;\n\t}", "title": "" }, { "docid": "a2e26103cb6f698d272a61a6ba0255e7", "score": "0.5073213", "text": "private String SetDepartment() {\r\n \tSystem.out.println(\"New Worker: \"+getName()+\".Department Codes:\\n\"\r\n \t\r\n \t +\"1 for Sales\\n\"+\"2 for Development\\n\"+\"3 for Accounting\\n\"+\"0 for none\\n\"\r\n \t +\"Enter department code:\");\r\n \t \r\n\t\tScanner i=new Scanner(System.in);\r\n \t\r\n \tint s=i.nextInt();\r\n \t if(s==1){\r\n \t\t this.department=\"sal\";\r\n \t }\r\n \t else if(s==2){\r\n \t\t this.department=\"dev\";\r\n \t }else if(s==3){\r\n \t\t this.department=\"acc\";\r\n \t }else if(s==0){\r\n \t\t this.department=\" \";\r\n \t }\r\n \t\r\n \r\n \t i.close();\r\n \t\r\n\t\treturn this.department;\r\n\t\t}", "title": "" }, { "docid": "aee81ca998a3594e4eb10af44d2a9f09", "score": "0.50316745", "text": "@Override\n public int addDepartment(DepartmentBean departmentbean) {\n return 0;\n }", "title": "" }, { "docid": "9783b3eda9136654850d15b36169c9b9", "score": "0.5006261", "text": "public void setDept(java.lang.Integer dept) {\n this.dept = dept;\n }", "title": "" }, { "docid": "4b8716586a108b2212602b6c91d0dc63", "score": "0.49338493", "text": "int getDeptListCount();", "title": "" }, { "docid": "baa362ad51f7c00716e02d513b7dbb48", "score": "0.4927698", "text": "org.softlang.company.protobuf.CompanyProtos.DepartmentOrBuilder getDepartmentOrBuilder(\n int index);", "title": "" }, { "docid": "baa362ad51f7c00716e02d513b7dbb48", "score": "0.4927698", "text": "org.softlang.company.protobuf.CompanyProtos.DepartmentOrBuilder getDepartmentOrBuilder(\n int index);", "title": "" }, { "docid": "1515c605a3f0e9e40c8ce9b6e642e599", "score": "0.49218553", "text": "public void setDept(String dept) {\r\n this.dept = dept;\r\n }", "title": "" }, { "docid": "1515c605a3f0e9e40c8ce9b6e642e599", "score": "0.49218553", "text": "public void setDept(String dept) {\r\n this.dept = dept;\r\n }", "title": "" }, { "docid": "1515c605a3f0e9e40c8ce9b6e642e599", "score": "0.49218553", "text": "public void setDept(String dept) {\r\n this.dept = dept;\r\n }", "title": "" }, { "docid": "687accf5d09a8c08260379b048105eb9", "score": "0.4918319", "text": "String nameOfDepartment();", "title": "" }, { "docid": "ac34e341ae9b9971c235c6c6e52f10df", "score": "0.49140665", "text": "DepartmentType getDepartment();", "title": "" }, { "docid": "99e444542b96d06ee76c42d7fa21e754", "score": "0.49081838", "text": "public Department (String name)\n {\n this.setDepName(name) ;\n }", "title": "" }, { "docid": "cb2803af32f6dd5116b977f72963bf60", "score": "0.48949268", "text": "public void setDept(Department dept) {\n\t\tthis.dept = dept;\n\t}", "title": "" }, { "docid": "e33cb88cfe8f980df6dd9664eb0e9888", "score": "0.48925692", "text": "com.tenth.space.protobuf.IMBaseDefine.DepartInfo getDeptList(int index);", "title": "" }, { "docid": "fc8bdaa8ed03bbd0bf037b5b40d8015e", "score": "0.4890152", "text": "public int createDepartment(Department department) {\n\t\treturn 0;\r\n\t}", "title": "" }, { "docid": "7652682904f3c2ad2808e1da0e799995", "score": "0.48882785", "text": "@Override\n public int updataDepartment(DepartmentBean departmentbean) {\n return 0;\n }", "title": "" }, { "docid": "a45f5340409986e663c5333c77a4ade0", "score": "0.48863584", "text": "@Override\r\n public void addDepartment(Department department) {\n System.out.println(\"Insert into OracleDepartment values(\"+department.getDepartmentId()+\", \"+department.getDepartmentName()+\");\");\r\n }", "title": "" }, { "docid": "2bb5de4b4041e83cea3bf653aae2c4a3", "score": "0.48860124", "text": "public java.lang.String getDept(){\n return localDept;\n }", "title": "" }, { "docid": "2bb5de4b4041e83cea3bf653aae2c4a3", "score": "0.48860124", "text": "public java.lang.String getDept(){\n return localDept;\n }", "title": "" }, { "docid": "b1838481bf16d9c7e0223d310d23f295", "score": "0.48770288", "text": "Police() {\n\n\tname = \"John Doe\";\n\tage = 40;\n\tphone_number = lastnumber;\n\tlastnumber++;\n\tinBuilding = \"Outside\";\n\tRole = policeRole.Patrol;\n\temployeeID = lastid;\n\tlastid++;\n\t}", "title": "" }, { "docid": "560e26ecae472c2af2deb1c439e9fce7", "score": "0.4863229", "text": "public void SetDepartment(Department dept)\n\t{\n\t\tthis._Dept = dept;\n\t}", "title": "" }, { "docid": "184bc714f9367e643d7ab66ebc6837a0", "score": "0.48564163", "text": "public Department setupEmployees(){\n\n Department department = new Department(\"Marketing\");\n return null;\n\n }", "title": "" }, { "docid": "8bc82bb08d5edd636a91770bea1bd8df", "score": "0.4850152", "text": "int getDepartmentCount();", "title": "" }, { "docid": "8bc82bb08d5edd636a91770bea1bd8df", "score": "0.4850152", "text": "int getDepartmentCount();", "title": "" }, { "docid": "69f9f95a90a98fb6cafd7189c7d11f95", "score": "0.48445213", "text": "public void setDepartment(String newDepartment) {\n\t\tdepartment = newDepartment;\n\t}", "title": "" }, { "docid": "d5b71c4537c74a2403e4e3f5d2480a3d", "score": "0.4842787", "text": "public void addEmployeeToDepartment(Employee employee, Department department);", "title": "" }, { "docid": "8225a5d0886739e727ff0dd05ec9297c", "score": "0.48298928", "text": "public void setDepartmentOrder(Integer departmentOrder) {\r\n this.departmentOrder = departmentOrder;\r\n }", "title": "" }, { "docid": "df42849d294b708c7b1a42952490aa3d", "score": "0.47954127", "text": "public String getDepartment() {\r\n return department;\r\n }", "title": "" }, { "docid": "a0141171b98e9bd1fde64d47c9d7111e", "score": "0.47784546", "text": "public String getDepartment() {\n return department;\n }", "title": "" }, { "docid": "afa591bdb11c2874471f879ee0ce8165", "score": "0.47685263", "text": "public Department(String name) {\n\t\tthis.name = name;\n\t}", "title": "" }, { "docid": "26a2d2ef34c8f9a487c73ba33da0f21a", "score": "0.4760186", "text": "public String getDepartment() {\n return department;\n }", "title": "" }, { "docid": "26a2d2ef34c8f9a487c73ba33da0f21a", "score": "0.4760186", "text": "public String getDepartment() {\n return department;\n }", "title": "" }, { "docid": "384333ba57f0b51393adff3f223317fa", "score": "0.47403696", "text": "public Space get4th(){\n return d;\n }", "title": "" }, { "docid": "e936af18fd5548d282232890e1654318", "score": "0.47371137", "text": "public static void AddSkillSet() {\n\n Scanner in = new Scanner(System.in);\n System.out.println(\"Choose the department\");\n // Displaying all the department names for the user to choose.\n int dept_count = 1;\n for (String dept : map.keySet()) {\n System.out.println(dept_count + \". \" + dept);\n dept_count++;\n }\n\n String department = null;\n int deptChoice = in.nextInt();\n int k = 1;\n for (String dept : map.keySet()) {\n if (k == deptChoice) {\n department = dept;\n break;\n }\n k++;\n }\n\n // Taking input of all the skills to be added to a department.\n System.out.println(\"Enter the skillset to be added to members of \" + department + \" and done after entering\");\n Set<String> skills1 = new HashSet<>();\n String skill1;\n while (!(skill1 = in.next()).equalsIgnoreCase(\"done\")) {\n skills1.add(skill1);\n }\n\n\n System.out.println(\"Adding Skillset to the department-------- \");\n List<IgniteMembers> ignitemembers = map.get(department);\n for (IgniteMembers im : ignitemembers)\n im.getSkillSet().addAll(skills1);\n System.out.println(\"Done Adding Skillset. \");\n\n System.out.println(\"---------------------------------------------\");\n\n }", "title": "" }, { "docid": "3edc4a3428755004695df1c8f1714415", "score": "0.47275287", "text": "@Test\r\n public void testSetDeptName() {\r\n System.out.println(\"setDeptName\");\r\n String _deptName = \"Civil\";\r\n Rules instance = new Rules();\r\n instance.setDeptName(_deptName);\r\n // TODO review the generated test code and remove the default call to fail.\r\n //fail(\"The test case is a prototype.\");\r\n }", "title": "" }, { "docid": "2ecc19df83f052fdbc16ebbf8faa37e4", "score": "0.4708814", "text": "public Person()\n {\n Person.population++;\n }", "title": "" }, { "docid": "cb467e22ec3dc6047c1df793dc76b563", "score": "0.46998557", "text": "public Department() {\n }", "title": "" }, { "docid": "cb467e22ec3dc6047c1df793dc76b563", "score": "0.46998557", "text": "public Department() {\n }", "title": "" }, { "docid": "60ecc0b845c03b7405b31d091fdb456a", "score": "0.46976045", "text": "public ResOrgSpeAssignExample() {\r\n\t\toredCriteria = new ArrayList<Criteria>();\r\n\t}", "title": "" }, { "docid": "a58f70f57e7be5b78c603f75736b2b55", "score": "0.46793842", "text": "public DepartmentEntityExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "title": "" }, { "docid": "beb351c28f481817bc96e51652d67297", "score": "0.46726108", "text": "public static void main(String[] args) {\n\n\n OrganizationComponent university = new University(\"top\", \"top office-dec\");\n\n OrganizationComponent College1 = new College(\"College1\", \"College1-dec\");\n OrganizationComponent College2 = new College(\"College2\", \"College2-dec\");\n\n\n OrganizationComponent Department1 = new Department(\"Department1\", \"Department1-dec\");\n OrganizationComponent Department2 = new Department(\"Department2\", \"Department2-dec\");\n OrganizationComponent Department3 = new Department(\"Department3\", \"Department3-dec\");\n OrganizationComponent Department4 = new Department(\"Department4\", \"Department4-dec\");\n OrganizationComponent Department5 = new Department(\"Department5\", \"Department5-dec\");\n\n College1.add(Department1);\n College1.add(Department3);\n College1.add(Department5);\n\n College2.add(Department2);\n College2.add(Department4);\n\n university.add(College1);\n university.add(College2);\n\n university.print();\n College1.print();\n College2.print();\n\n\n\n }", "title": "" }, { "docid": "f7e145ddc1f5850d4502d6a5d6d2ed62", "score": "0.46703115", "text": "public void incRepeatedTTL3(){\n repeatedTTL3++;\n }", "title": "" }, { "docid": "7bb228fc1b06539545894c2514b597d1", "score": "0.46562576", "text": "public int getDepartmentId() {\n return departmentId;\n }", "title": "" }, { "docid": "dfbe3a601fc0258cb90233c8994bd289", "score": "0.46559042", "text": "public Integer getDepartmentOrder() {\r\n return departmentOrder;\r\n }", "title": "" }, { "docid": "6d4dffe08ce74ae906e6f5356e02110f", "score": "0.4653497", "text": "Department createDepartment();", "title": "" }, { "docid": "902db15252f30820de924fb0b0581f84", "score": "0.46438095", "text": "int insert(TSysDepartment record);", "title": "" }, { "docid": "858603f20637f9070aa1c8b809799075", "score": "0.46385422", "text": "public void from(cn.vertxup.erp.domain.tables.interfaces.IEDept from);", "title": "" }, { "docid": "f9f2183c957d85d4cea1c4907ab1e454", "score": "0.46370807", "text": "public Department(int id, String name) {\n this.id = id;\n this.name = name;\n this.employees = new Employee[10];\n // add your code here\n employeeCount = 0;\n }", "title": "" }, { "docid": "621830bb19f967cf433eae7763d95097", "score": "0.4635976", "text": "@Override\n public void update(Department e) {\n \n }", "title": "" }, { "docid": "160f3c28189ab1c545decff28f67b6d9", "score": "0.4622351", "text": "public Department getDepartment() {\n\t\treturn department;\n\t}", "title": "" }, { "docid": "160f3c28189ab1c545decff28f67b6d9", "score": "0.4622351", "text": "public Department getDepartment() {\n\t\treturn department;\n\t}", "title": "" }, { "docid": "5fa42619ee2c0542dd6a8ca8c3bbf5c5", "score": "0.4621613", "text": "public Person(){\n\t\tcount++; \n\t}", "title": "" }, { "docid": "e9578eaaf15383642685ac69f9d8dc9f", "score": "0.46079615", "text": "public void addFilm(){ numFilm++; }", "title": "" }, { "docid": "333d4552db0f37848d4400af2d4f82ae", "score": "0.4605685", "text": "private Repeat(RepeatType type, int location) {\n this.type = type;\n this.location = location;\n }", "title": "" }, { "docid": "200d25b304e371a77f14917340a203c8", "score": "0.46017432", "text": "int updateDeptByCode(int deptno, String dname);", "title": "" }, { "docid": "59f017afaac48f19b8febab1d734935c", "score": "0.4596852", "text": "public String getReqForDept();", "title": "" }, { "docid": "8fd82be1d6b078b50ffcdd5e7fb3320d", "score": "0.45953327", "text": "public String getDept() {\r\n return dept;\r\n }", "title": "" }, { "docid": "8fd82be1d6b078b50ffcdd5e7fb3320d", "score": "0.45953327", "text": "public String getDept() {\r\n return dept;\r\n }", "title": "" }, { "docid": "8fd82be1d6b078b50ffcdd5e7fb3320d", "score": "0.45953327", "text": "public String getDept() {\r\n return dept;\r\n }", "title": "" }, { "docid": "d4a9a016f0a19ca91765967af073b9d9", "score": "0.4592856", "text": "@Override\n\tpublic Department addOrUpdateDepartment(Department department) {\n\t\treturn departmentDao.addOrUpdateDepartment(department);\n\t}", "title": "" }, { "docid": "622d10220ddc150fe1098ca8fa84eafb", "score": "0.45586511", "text": "dataImport.VardeYtaType addNewVardeYta();", "title": "" }, { "docid": "bd17989138f8f0729b05a97a2c595415", "score": "0.45582366", "text": "private String setdepartment() {\n System.out.print(\"DEPARTMENT CODES; \\n1 for Sales\\n2 for Developement\\n3 for Accounting\\n0 for None\\n Enter your Dept. Code:\");\n Scanner in = new Scanner(System.in);\n int deptCode = in.nextInt();\n if (deptCode == 1) { return \"Sales\"; }\n else if (deptCode == 2) { return \"Dev\"; }\n else if (deptCode == 3) { return \"Acct\"; }\n else { return \" \"; }\n }", "title": "" }, { "docid": "06fc550bba0c8dc27cc912a6e3ed33b2", "score": "0.45502487", "text": "public String getDepartment() {\n\t\treturn this.department;\n\t}", "title": "" }, { "docid": "9256293e9b26f19b807e545015f74bcc", "score": "0.45500383", "text": "public org.softlang.company.protobuf.CompanyProtos.Department.Builder addDepartmentBuilder() {\n return getDepartmentFieldBuilder().addBuilder(\n org.softlang.company.protobuf.CompanyProtos.Department.getDefaultInstance());\n }", "title": "" }, { "docid": "9256293e9b26f19b807e545015f74bcc", "score": "0.45500383", "text": "public org.softlang.company.protobuf.CompanyProtos.Department.Builder addDepartmentBuilder() {\n return getDepartmentFieldBuilder().addBuilder(\n org.softlang.company.protobuf.CompanyProtos.Department.getDefaultInstance());\n }", "title": "" }, { "docid": "6122394ecc429004ffdeb854c46226d0", "score": "0.4549279", "text": "label_declaration_part getLabel_declaration_part();", "title": "" }, { "docid": "15120f3284f12871c7ab302eab85b81c", "score": "0.45487365", "text": "public void met() {\r\n\t\tScopeDemo obj = new ScopeDemo();\r\n\t\t//System.out.println(obj.pri);\r\n\t\tSystem.out.println(obj.nomod);\r\n\t\tSystem.out.println(obj.pro);\r\n\t\tSystem.out.println(obj.pub);\t\r\n\t}", "title": "" }, { "docid": "ed2ae267100adf609988850ecdad2810", "score": "0.45476365", "text": "@Generated(\n value = {\n \"http://www.jooq.org\",\n \"jOOQ version:3.10.8\"\n },\n comments = \"This class is generated by jOOQ\"\n)\n@SuppressWarnings({ \"all\", \"unchecked\", \"rawtypes\" })\npublic interface IEDept extends Serializable {\n\n /**\n * Setter for <code>DB_ETERNAL.E_DEPT.KEY</code>. 「key」- 部门主键\n */\n public IEDept setKey(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.E_DEPT.KEY</code>. 「key」- 部门主键\n */\n public String getKey();\n\n /**\n * Setter for <code>DB_ETERNAL.E_DEPT.NAME</code>. 「name」- 部门名称\n */\n public IEDept setName(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.E_DEPT.NAME</code>. 「name」- 部门名称\n */\n public String getName();\n\n /**\n * Setter for <code>DB_ETERNAL.E_DEPT.CODE</code>. 「code」- 部门编号\n */\n public IEDept setCode(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.E_DEPT.CODE</code>. 「code」- 部门编号\n */\n public String getCode();\n\n /**\n * Setter for <code>DB_ETERNAL.E_DEPT.MANAGER_ID</code>. 「managerId」- 部门经理\n */\n public IEDept setManagerId(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.E_DEPT.MANAGER_ID</code>. 「managerId」- 部门经理\n */\n public String getManagerId();\n\n /**\n * Setter for <code>DB_ETERNAL.E_DEPT.MANAGER_NAME</code>. 「managerName」- 部门名称\n */\n public IEDept setManagerName(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.E_DEPT.MANAGER_NAME</code>. 「managerName」- 部门名称\n */\n public String getManagerName();\n\n /**\n * Setter for <code>DB_ETERNAL.E_DEPT.COMPANY_ID</code>. 「companyId」- 所属公司\n */\n public IEDept setCompanyId(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.E_DEPT.COMPANY_ID</code>. 「companyId」- 所属公司\n */\n public String getCompanyId();\n\n /**\n * Setter for <code>DB_ETERNAL.E_DEPT.DEPT_ID</code>. 「deptId」- 父部门\n */\n public IEDept setDeptId(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.E_DEPT.DEPT_ID</code>. 「deptId」- 父部门\n */\n public String getDeptId();\n\n /**\n * Setter for <code>DB_ETERNAL.E_DEPT.COMMENT</code>. 「comment」- 部门备注\n */\n public IEDept setComment(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.E_DEPT.COMMENT</code>. 「comment」- 部门备注\n */\n public String getComment();\n\n /**\n * Setter for <code>DB_ETERNAL.E_DEPT.METADATA</code>. 「metadata」- 附加配置\n */\n public IEDept setMetadata(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.E_DEPT.METADATA</code>. 「metadata」- 附加配置\n */\n public String getMetadata();\n\n /**\n * Setter for <code>DB_ETERNAL.E_DEPT.ACTIVE</code>. 「active」- 是否启用\n */\n public IEDept setActive(Boolean value);\n\n /**\n * Getter for <code>DB_ETERNAL.E_DEPT.ACTIVE</code>. 「active」- 是否启用\n */\n public Boolean getActive();\n\n /**\n * Setter for <code>DB_ETERNAL.E_DEPT.SIGMA</code>. 「sigma」- 统一标识\n */\n public IEDept setSigma(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.E_DEPT.SIGMA</code>. 「sigma」- 统一标识\n */\n public String getSigma();\n\n /**\n * Setter for <code>DB_ETERNAL.E_DEPT.LANGUAGE</code>. 「language」- 使用的语言\n */\n public IEDept setLanguage(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.E_DEPT.LANGUAGE</code>. 「language」- 使用的语言\n */\n public String getLanguage();\n\n /**\n * Setter for <code>DB_ETERNAL.E_DEPT.CREATED_AT</code>. 「createdAt」- 创建时间\n */\n public IEDept setCreatedAt(LocalDateTime value);\n\n /**\n * Getter for <code>DB_ETERNAL.E_DEPT.CREATED_AT</code>. 「createdAt」- 创建时间\n */\n public LocalDateTime getCreatedAt();\n\n /**\n * Setter for <code>DB_ETERNAL.E_DEPT.CREATED_BY</code>. 「createdBy」- 创建人\n */\n public IEDept setCreatedBy(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.E_DEPT.CREATED_BY</code>. 「createdBy」- 创建人\n */\n public String getCreatedBy();\n\n /**\n * Setter for <code>DB_ETERNAL.E_DEPT.UPDATED_AT</code>. 「updatedAt」- 更新时间\n */\n public IEDept setUpdatedAt(LocalDateTime value);\n\n /**\n * Getter for <code>DB_ETERNAL.E_DEPT.UPDATED_AT</code>. 「updatedAt」- 更新时间\n */\n public LocalDateTime getUpdatedAt();\n\n /**\n * Setter for <code>DB_ETERNAL.E_DEPT.UPDATED_BY</code>. 「updatedBy」- 更新人\n */\n public IEDept setUpdatedBy(String value);\n\n /**\n * Getter for <code>DB_ETERNAL.E_DEPT.UPDATED_BY</code>. 「updatedBy」- 更新人\n */\n public String getUpdatedBy();\n\n // -------------------------------------------------------------------------\n // FROM and INTO\n // -------------------------------------------------------------------------\n\n /**\n * Load data from another generated Record/POJO implementing the common interface IEDept\n */\n public void from(cn.vertxup.erp.domain.tables.interfaces.IEDept from);\n\n /**\n * Copy data into another generated Record/POJO implementing the common interface IEDept\n */\n public <E extends cn.vertxup.erp.domain.tables.interfaces.IEDept> E into(E into);\n\n default IEDept fromJson(io.vertx.core.json.JsonObject json) {\n setKey(json.getString(\"KEY\"));\n setName(json.getString(\"NAME\"));\n setCode(json.getString(\"CODE\"));\n setManagerId(json.getString(\"MANAGER_ID\"));\n setManagerName(json.getString(\"MANAGER_NAME\"));\n setCompanyId(json.getString(\"COMPANY_ID\"));\n setDeptId(json.getString(\"DEPT_ID\"));\n setComment(json.getString(\"COMMENT\"));\n setMetadata(json.getString(\"METADATA\"));\n setActive(json.getBoolean(\"ACTIVE\"));\n setSigma(json.getString(\"SIGMA\"));\n setLanguage(json.getString(\"LANGUAGE\"));\n // Omitting unrecognized type java.time.LocalDateTime for column CREATED_AT!\n setCreatedBy(json.getString(\"CREATED_BY\"));\n // Omitting unrecognized type java.time.LocalDateTime for column UPDATED_AT!\n setUpdatedBy(json.getString(\"UPDATED_BY\"));\n return this;\n }\n\n\n default io.vertx.core.json.JsonObject toJson() {\n io.vertx.core.json.JsonObject json = new io.vertx.core.json.JsonObject();\n json.put(\"KEY\",getKey());\n json.put(\"NAME\",getName());\n json.put(\"CODE\",getCode());\n json.put(\"MANAGER_ID\",getManagerId());\n json.put(\"MANAGER_NAME\",getManagerName());\n json.put(\"COMPANY_ID\",getCompanyId());\n json.put(\"DEPT_ID\",getDeptId());\n json.put(\"COMMENT\",getComment());\n json.put(\"METADATA\",getMetadata());\n json.put(\"ACTIVE\",getActive());\n json.put(\"SIGMA\",getSigma());\n json.put(\"LANGUAGE\",getLanguage());\n // Omitting unrecognized type java.time.LocalDateTime for column CREATED_AT!\n json.put(\"CREATED_BY\",getCreatedBy());\n // Omitting unrecognized type java.time.LocalDateTime for column UPDATED_AT!\n json.put(\"UPDATED_BY\",getUpdatedBy());\n return json;\n }\n\n}", "title": "" }, { "docid": "b61b93f9993e3699b951547ed8c41128", "score": "0.4547515", "text": "public Department() {\n\t\tsuper(org.jooq.examples.sqlserver.adventureworks.humanresources.tables.Department.Department);\n\t}", "title": "" }, { "docid": "894f2166a32769bcb60e6041ae29ef72", "score": "0.4546623", "text": "public interface Pet {\n\n String name = \"\";\n\n void say();\n}", "title": "" }, { "docid": "fd001c23e5c4a3f8e9811168b8d5dc6e", "score": "0.4545558", "text": "public interface DepartmentService {\n}", "title": "" }, { "docid": "57c304bbdbd596dfc6ba9d0ee2b970e1", "score": "0.45447117", "text": "long countByExample(PObjORGExample example);", "title": "" }, { "docid": "7925ebffc8570ef6588066e42c7f2596", "score": "0.45411444", "text": "@Override\r\n\tpublic String getDepartment() {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "26476cb82e760a82ea674e0c49cd763e", "score": "0.4539764", "text": "public MarketingDepartmentComponent(){\r\n this.amsc =new AdvertManagementSystemComponent();\r\n this.ec = new EditingComponent();\r\n if(amsc.getAdvertisers().size()<1){\r\n System.out.println(\"There cannot be less than 1 advertiser\");\r\n }\r\n }", "title": "" }, { "docid": "78d56e40f2058d30f4b79dcd47f6c59b", "score": "0.45394093", "text": "int countByExample(OrganExample example);", "title": "" }, { "docid": "26c564e30cbe668994cd13cbfd337b5c", "score": "0.4538508", "text": "public org.softlang.company.protobuf.CompanyProtos.DepartmentOrBuilder getDepartmentOrBuilder(\n int index) {\n return department_.get(index);\n }", "title": "" }, { "docid": "26c564e30cbe668994cd13cbfd337b5c", "score": "0.4538508", "text": "public org.softlang.company.protobuf.CompanyProtos.DepartmentOrBuilder getDepartmentOrBuilder(\n int index) {\n return department_.get(index);\n }", "title": "" }, { "docid": "a6ff84f6215458a4f5ca61eaf58724f1", "score": "0.4531167", "text": "dataImport.VardeYtaType insertNewVardeYta(int i);", "title": "" }, { "docid": "eb3f81fec0945da169a491cd4b7cdcb2", "score": "0.4531021", "text": "public interface DepartmentsService {\n Departments selectDepartmentById(String id);\n}", "title": "" }, { "docid": "46857f39e002b68e4a049d4836fa5292", "score": "0.4525996", "text": "public interface Part19VariableIds {\n ExpandedNodeId MultiStateDictionaryEntryDiscreteBaseType_ValueAsDictionaryEntries = Part19VariableIdsInit.initMultiStateDictionaryEntryDiscreteBaseType_ValueAsDictionaryEntries();\n\n ExpandedNodeId MultiStateDictionaryEntryDiscreteBaseType_EnumDictionaryEntries = Part19VariableIdsInit.initMultiStateDictionaryEntryDiscreteBaseType_EnumDictionaryEntries();\n\n ExpandedNodeId MultiStateDictionaryEntryDiscreteType_ValueAsDictionaryEntries = Part19VariableIdsInit.initMultiStateDictionaryEntryDiscreteType_ValueAsDictionaryEntries();\n}", "title": "" }, { "docid": "ab70f496f8ebe7c5831eafaa04e3cccd", "score": "0.45105127", "text": "public interface Dessert {\n String description();\n}", "title": "" }, { "docid": "d72cd2470c841af493d7fe8027838b54", "score": "0.45069563", "text": "public Department(String alias) {\n this(DSL.name(alias), DEPARTMENT);\n }", "title": "" }, { "docid": "cb54830abed4dc9f086b19df6de77118", "score": "0.44953886", "text": "public String getDepartment() {\n\t\treturn department;\n\t}", "title": "" }, { "docid": "1af415b3435bc8b30ed9e6ed1fb63444", "score": "0.44825363", "text": "private String setDepartment() {\r\n\t\tSystem.out.println(\"Department code: \\n1 for sale \\n2 for development \\n3 for accounting \\n Enter code for department: \");\r\n\t\tScanner input = new Scanner(System.in);\r\n\t\tint depChoice = input.nextInt();\r\n\t\t \r\n\t\tif( depChoice == 1) {return \"sale\";}\r\n\t\telse if( depChoice == 2){return \"development\";}\r\n\t\telse if( depChoice == 3){return \"account\";}\r\n\t\telse {return \"\";}\r\n\t}", "title": "" }, { "docid": "9b132fc63fa12bef8b1e7cac2535c2b0", "score": "0.44818777", "text": "private String setDepartment() {\n\t System.out.println(\"department codes :\\n1 for sales\\n2 for develpoment\\n3 for accounting\\n enter code: \");\n\t Scanner scn=new Scanner(System.in);\n\t int code=scn.nextInt();\n\t scn.close();\n\t if(code==1) {return \"sales\";}\n\t else if(code==2) {return \"development\";}\n\t else {return \"accounting\";}\n\t \n }", "title": "" }, { "docid": "edbd1ee0769f3456414a0beaca21723e", "score": "0.4481828", "text": "public void setMemberOf(Grouping<Unit> g);", "title": "" }, { "docid": "349eece25111027875ace6592853aad7", "score": "0.4479183", "text": "public int addNewRecord(SysDept bean);", "title": "" }, { "docid": "31289aa936fa64dcc8e78b92229ea591", "score": "0.44733238", "text": "public Department(Name alias) {\n this(alias, DEPARTMENT);\n }", "title": "" } ]
af979b02d3587da5d1fe0972edafdeaa
fetch students from DB having pagination
[ { "docid": "247276400e1557c281407c5cb0dc0b03", "score": "0.7084048", "text": "@CrossOrigin(origins = \"http://localhost:3000\")\n @RequestMapping(value = \"/get\", method = RequestMethod.GET, produces = \"application/json\")\n Page<Student> getStudentsByPagination(@RequestParam(value = \"page\", required = false) int page,\n @RequestParam(value = \"size\", required = false) int size){\n page = page <0 ? PAGINATION_DEFAULT_PAGE : page;\n size = (size <0) ? PAGINATION_DEFAULT_SIZE: size;\n return studentService.findAllByPaging(PageRequest.of(page, size));\n }", "title": "" } ]
[ { "docid": "05880a912e4f074067177719847fab3c", "score": "0.7806152", "text": "Page<Student> findPaginated(int pageNo, int pageSize);", "title": "" }, { "docid": "f7186be0d0ede8a7c157f653cc0c2ec0", "score": "0.7155979", "text": "Page<Student> findAll(Pageable pageable);", "title": "" }, { "docid": "0329b6dc28c58177fbc7b8acf353c199", "score": "0.6976241", "text": "@Override\r\n\tpublic List<Student> findPaginated(int pageNo, int pageSize) {\n\t\tPageable paging= PageRequest.of(pageNo,pageSize);\r\n\t\tPage<Student> pageResult=studentDao.findAll(paging);\r\n\t\treturn pageResult.toList();\r\n\t}", "title": "" }, { "docid": "c1f0fb1befe40cefe513cc30226e5d27", "score": "0.6617693", "text": "@Override\n public Page<Student> findAllStudentsByPage(Pageable pageable) {\n\n return studentRepository.findAll(PageRequest.of(pageable.getPageNumber(), pageable.getPageSize()));\n }", "title": "" }, { "docid": "961bdb7b08af9a1f66f9fc5cb7ffdc2b", "score": "0.6529268", "text": "public List<Student> queryStudentByPager(int beginIndex, int endIndex) {\n\t\treturn this.studentMaper.queryStudentInfoByPager(beginIndex, endIndex);\r\n\t}", "title": "" }, { "docid": "b71cad91d7188b3e0622a69a711202a4", "score": "0.6515524", "text": "List<Student> getAllStudents();", "title": "" }, { "docid": "f4acf4bd9c80157e02bad4e66f041f25", "score": "0.6467192", "text": "public static void main(String[] args) throws SQLException {\n\n StudentService studentService=new StudentServiceImpl();\n PageBean<Student> pageBean = studentService.findStudentByPage(1);\n System.out.println(pageBean.getList());\n System.out.println(pageBean.getTotalSize());\n System.out.println(pageBean.getTotalPage());\n }", "title": "" }, { "docid": "fae387c8e4bb7c05121f089d9588a1f2", "score": "0.6398469", "text": "public List <Student> getAllStudents();", "title": "" }, { "docid": "ec084df00a3109c558bdf4c0f16a1f45", "score": "0.63716555", "text": "Student findWithSectionsBy(int studentNumber);", "title": "" }, { "docid": "7d362534c03bfc9be957b5c4e3b640fa", "score": "0.63661414", "text": "Page<ExamPackage> getPageByUsername(String username, int pageNo, int pageSize);", "title": "" }, { "docid": "10713efb95edcd8bac3d0aee7cee51c8", "score": "0.635803", "text": "public PageList<User> getUserPageList(User user, int pageSize, int pageNum) throws DataAccessException;", "title": "" }, { "docid": "d2e4a649f56f9d4937e899cbe5921ef4", "score": "0.6330946", "text": "@Test\n public void queryByPage() {\n List<Album> albums = albumDao.SelectByPage(1, 5);\n for (Album album : albums) {\n System.out.println(album);\n }\n }", "title": "" }, { "docid": "6102a7beb40079de923420800e5f5cba", "score": "0.62512404", "text": "Page<Examination> getPageByExamPackage(int examPackageID,int pageNo, int pageSize);", "title": "" }, { "docid": "5975de1f94c156d7d042dbea02d3532c", "score": "0.62376493", "text": "Page<Accessprofile> listAllByPage(Pageable pageable);", "title": "" }, { "docid": "de6a3cdbe17650bc9b6a3bf1efb08bb0", "score": "0.61828583", "text": "public ArrayList<Student> retrieveAllCurrent() {\r\n\t\tArrayList<Student> students = new ArrayList<Student>();\r\n\t\tHashMap<String, ArrayList<String>> map = MySQLConnector.executeMySQL(\"select\", \"SELECT * FROM `is480-matching`.users inner join `is480-matching`.students on users.id=students.id WHERE users.type LIKE 'Student';\");\r\n\t\tSet<String> keySet = map.keySet();\r\n\t\tIterator<String> iterator = keySet.iterator();\r\n\t\t\r\n\t\tDate date = new Date();\r\n\t\tCalendar cal = Calendar.getInstance();\r\n\t\tcal.setTime(date);\r\n\t\t\r\n\t\tint currYear = cal.get(cal.YEAR);\r\n\t\tint currMth = cal.get(cal.MONTH);\r\n\t\t\r\n\t\tint year = 0;\r\n\t\t\r\n\t\twhile (iterator.hasNext()){\r\n\t\t\tString key = iterator.next();\r\n\t\t\tArrayList<String> array = map.get(key);\t\r\n\t\t\tint id \t\t\t\t= Integer.parseInt(array.get(0));\r\n\t\t\tString username \t= array.get(1);\r\n\t\t\tString fullName \t= array.get(2);\r\n\t\t\tString contactNum \t= array.get(3);\r\n\t\t\tString email \t\t= array.get(4);\r\n\t\t\tString type\t\t\t= array.get(5);\r\n\t\t\tString secondMajor \t= array.get(7);\r\n\t\t\tint role \t\t\t= Integer.parseInt(array.get(8));\r\n\t\t\tint teamId \t\t\t= Integer.parseInt(array.get(9));\r\n\t\t\tint prefRole \t\t= Integer.parseInt(array.get(10));\r\n\t\t\t\r\n\t\t\ttry{\r\n\t\t\t\tint matricYear = Integer.parseInt(username.substring(username.length() - 4, username.length()));\r\n\t\t\t\t\r\n\t\t\t\tyear = currYear - matricYear;\r\n\t\t\t\t\r\n\t\t\t\tStudent student = new Student(id, username, fullName, contactNum, email, type, secondMajor, role, teamId, prefRole);\r\n\t\t\t\t\r\n\t\t\t\tif(currMth > 8){\r\n\t\t\t\t\tyear++;\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(year == 3 || year == 4){\r\n\t\t\t\t\tstudents.add(student);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}catch(Exception e){}\r\n\t\t}\r\n\t\t\r\n\t\treturn students;\r\n\t}", "title": "" }, { "docid": "771c95bb42bd1103323830b7b657c537", "score": "0.61557597", "text": "void findWithPagination(Pagination<Activity, Assignment> pagination);", "title": "" }, { "docid": "89b5942ca77b9905754c6330fb4442c9", "score": "0.61434275", "text": "List<Registration> allRegUserPagination(long idUser, int currentPage, int elementPerPage);", "title": "" }, { "docid": "0185879d2dbe03ef4b44e4d61cd0372f", "score": "0.6127109", "text": "@Override\n\tpublic List<HashMap<String, Object>> selectStuGradebyclass(StuGrade grade, int page, int pagesize) {\n\t\tDbConnection dbo=null;\n\t\t//List<StuUser> list = new ArrayList<StuUser>();\n\t\tArrayList<HashMap<String, Object>> list =new ArrayList<HashMap<String,Object>>();\n\t\tString sql = \"select ss.subjectname,ss.credit,ss.subjectype,ss.subjectproperty,sg.subjectscore,sg.examtype,sg.examteam,sg.create_time from stugrade sg,stusubject ss where sg.subjectid=ss.id and sg.stuid=? and sg.examteam=? order by sg.create_time desc LIMIT ?,?\";\n\t\tConnection conn = null;\n\t\tPreparedStatement pstmt = null;\n\t\tResultSet rs = null;\n\t\ttry {\n\t\t\tdbo=new DbConnection();\n\t\t\tconn = dbo.getConnection();\n\t\t\tpstmt = DbConnection.getPreparedStatemnt(conn, sql);\n\t\t\tpstmt.setString(1, grade.getStuid());\n\t\t\tpstmt.setString(2, grade.getExamteam());\n\t\t\tpstmt.setInt(3, (page-1)*pagesize);\n\t\t\tpstmt.setInt(4, pagesize);\n\t\t\trs = pstmt.executeQuery();\n\t\t\tResultSetMetaData rsmd = (ResultSetMetaData) rs.getMetaData();\n\t\t\twhile(rs.next()){\n\t\t\t\t//StuUser stu = new StuUser();\n\t\t\t\t/*stu.setId(rs.getString(\"id\"));\n\t\t\t\tstu.setStugrade(rs.getString(\"stugrade\"));\n\t\t\t\tstu.setPassword(rs.getString(\"password\"));\n\t\t\t\tstu.setAge(rs.getString(\"age\"));\n\t\t\t\tstu.setGender(rs.getString(\"gender\"));\n\t\t\t\tstu.setRealname(rs.getString(\"realname\"));\n\t\t\t\tstu.setCreate_time(rs.getString(\"create_time\"));*/\n\t\t\t\tHashMap<String, Object> map = new HashMap<String, Object>();\n\t\t\t\tfor (int i = 1; i <= rsmd.getColumnCount(); i++) {\n\t\t\t\t\tmap.put(rsmd.getColumnName(i), rs.getObject(i));\n\t\t\t\t\tif(rsmd.getColumnName(i).equals(\"create_time\")) {\n\t\t\t\t\tString timeStamp = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\").format(rs.getTimestamp(i));\n\t\t\t\t\tmap.replace(\"create_time\", timeStamp);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tlist.add(map);\n\t\t\t}\n\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t} finally{\n\t\t\tDbConnection.close(conn, pstmt, rs);\n\t\t}\n\t\treturn list;\n\t}", "title": "" }, { "docid": "d3b3932d6fcb5449d635a7d27fd51e23", "score": "0.61257815", "text": "List<StudentRecord> getStudents(String clientId) throws Exception;", "title": "" }, { "docid": "98e6413fd9d2d70a23324956d207db66", "score": "0.61179024", "text": "@RequestMapping(value = \"getRosterStudentsByTeacher.htm\", method = RequestMethod.POST)\n\tpublic final @ResponseBody JQGridJSONModel getRosterStudents(@RequestParam(\"rows\") String limitCountStr,\n\t\t\t@RequestParam(\"page\") String page, @RequestParam(\"sidx\") String sortByColumn,\n\t\t\t@RequestParam(\"sord\") String sortType, @RequestParam(\"testSessionId\") Long testSessionId,\n\t\t\t@RequestParam(\"filters\") String filters, @RequestParam(\"schoolOrgId\") Long schoolOrgId,\n\t\t\t@RequestParam(\"assessmentProgramId\") Long assessmentProgramId) {\n\t\tLOGGER.trace(\"Entering the getRosterStudentsByTeacher page for getting results\");\n\n\t\tInteger currentPage = -1;\n\t\tInteger limitCount = -1;\n\t\tInteger totalCount = -1;\n\t\tJQGridJSONModel jqGridJSONModel = null;\n\t\t// String orderByclause = \"\";\n\t\t// TODO move all 3 steps to a service.\n\t\tUserDetailImpl userDetails = (UserDetailImpl) SecurityContextHolder.getContext().getAuthentication()\n\t\t\t\t.getPrincipal();\n\t\tcurrentPage = Integer.parseInt(page);\n\t\tlimitCount = Integer.parseInt(limitCountStr);\n\t\tMap<String, String> studentRosterCriteriaMap = recordBrowserJsonUtil\n\t\t\t\t.constructRecordBrowserFilterCriteria(filters);\n\t\tint currentSchoolYear = (int) (long) userDetails.getUser().getContractingOrganization().getCurrentSchoolYear();\n\t\t// Temporary fix for\n\t\t/*\n\t\t * if(sortByColumn.equals(\"stateStudentIdentifier\")){ orderByclause =\n\t\t * \"substring(statestudentidentifier, '^[0-9]+')::bigint \"+ sortType +\n\t\t * \", substring(statestudentidentifier, '[^0-9]*$') \"+sortType; }else{\n\t\t * orderByclause = sortByColumn + ParsingConstants.BLANK_SPACE +\n\t\t * sortType; }\n\t\t */\n\n\t\tTimerUtil timerUtil = TimerUtil.getInstance();\n\t\tList<StudentRoster> studentRosters = enrollmentService.getEnrollmentWithRosterAssessmentProgram(userDetails,\n\t\t\t\tpermissionUtil.hasPermission(userDetails.getAuthorities(),\n\t\t\t\t\t\tRestrictedResourceConfiguration.getViewAllRostersPermissionCode()),\n\t\t\t\tsortByColumn, sortType, (currentPage - 1) * limitCount, limitCount, studentRosterCriteriaMap,\n\t\t\t\ttestSessionId, schoolOrgId, null, currentSchoolYear, assessmentProgramId);\n\t\ttimerUtil.resetAndLog(LOGGER, \"Getting student records for test session took \");\n\n\t\ttotalCount = enrollmentService.countEnrollmentWithRosterAssessmentProgram(userDetails,\n\t\t\t\tpermissionUtil.hasPermission(userDetails.getAuthorities(),\n\t\t\t\t\t\tRestrictedResourceConfiguration.getViewAllRostersPermissionCode()),\n\t\t\t\tstudentRosterCriteriaMap, testSessionId, schoolOrgId, null, currentSchoolYear,assessmentProgramId);\n\t\ttimerUtil.resetAndLog(LOGGER, \"Counting student records for test session took \");\n\n\t\tjqGridJSONModel = StudentRosterJsonConverter.convertToStudentRosterJson(studentRosters, totalCount, currentPage,\n\t\t\t\tlimitCount, studentsTestsStatusConfiguration);\n\n\t\tLOGGER.trace(\"Leaving the getRosterStudentsByTeacher page.\");\n\t\treturn jqGridJSONModel;\n\t}", "title": "" }, { "docid": "b22f1453a86849c632b2c92328b09685", "score": "0.6104056", "text": "@GetMapping(path = \"/student\")\n public Set<PlacementViewDto> getRecordsByStudentName(@RequestParam(value = \"studentName\") String studentName, @RequestParam(defaultValue = \"0\") String page) {\n return placementService.getDetailsByStudentName(studentName, page);\n }", "title": "" }, { "docid": "49c601ba1e32232137fbec614c0cd554", "score": "0.6101704", "text": "Page<ExamPackage> getPageByUsername(String username, int pageNo, int pageSize, Sort sort);", "title": "" }, { "docid": "5f314117de89bffe31783c7ca8154979", "score": "0.6095846", "text": "Collection<Section> findByStudentNo(int studentNumber);", "title": "" }, { "docid": "a1b94e2dc3da43de384b9c0578b4c99a", "score": "0.60918057", "text": "@CrossOrigin(origins = \"http://localhost:3000\")\n @RequestMapping(value = \"/getByName\", method = RequestMethod.GET, produces = \"application/json\")\n public Page<Student> getStudentsByFirstLastName(@RequestParam(value = \"fName\", required = false) String firstName,\n @RequestParam(value = \"lName\", required = false) String lastName,\n @RequestParam(\"page\") int page,\n @RequestParam(\"size\") int size\n ){\n page = page <0 ? PAGINATION_DEFAULT_PAGE : page;\n size = (size <0) ? PAGINATION_DEFAULT_SIZE: size;\n return studentService.findStudentByNamePagingCriteria(firstName, lastName, PageRequest.of(page, size));\n }", "title": "" }, { "docid": "1ce5e0c630e1e32303a4ffd197cb13a0", "score": "0.6060017", "text": "List<NominatedStudentDto> showAll();", "title": "" }, { "docid": "81919bd917054922435d5825085d7090", "score": "0.60404193", "text": "@RequestMapping(value = \"/staff/studentlist\")\n\tpublic ModelAndView listStudents(@RequestParam(required = false) Integer page, @RequestParam(required = false) Integer pageSize, HttpSession session) {\n\t\tif (page == null) {\n\t\t\tpage = 0;\n\t\t}\n\t\t\n\t\t// TODO add: limit students by managed campus\n\t\tPagedListHolder<Student> resultList = (PagedListHolder<Student>) session.getAttribute(\"StaffController_studentList\");\n\t\tif (resultList == null) {\n\t\t\tresultList = new PagedListHolder<Student>(userService.getAllStudents());\n\t\t\tsession.setAttribute(\"StaffController_studentList\", resultList);\n\t\t\tif (pageSize == null) {\n\t\t\t\tpageSize = DEFAULT_PAGE_SIZE;\n\t\t\t}\n\t\t}\n\t\tif (pageSize != null) {\n\t\t\tresultList.setPageSize(pageSize);\n\t\t}\n\t\tresultList.setPage(page);\n\t\treturn new ModelAndView(\"staff/studentlist\", \"resultList\", resultList);\n\t}", "title": "" }, { "docid": "e1bc1f0a279fca7aa622926da5a395e7", "score": "0.60396194", "text": "public static List<StudentInfo> searchStudentInfo(String firtname, String lastname) {\r\n \r\n List<StudentInfo> students = new ArrayList<>();\r\n \r\n // declare resultSet\r\n ResultSet rs = null;\r\n \r\n // declare prepared statement\r\n PreparedStatement preparedStatement = null;\r\n \r\n // declare connection\r\n Connection conn = null;\r\n try {\r\n // get connection\r\n conn = DBUtils.getConnection();\r\n\r\n // set prepared statement\r\n preparedStatement = conn\r\n .prepareStatement(\"SELECT instructor.FName, instructor.LName,\" +\r\n \" IF(EXISTS ( SELECT * FROM gra WHERE gra.StudentId = phdstudent.StudentId) , 'GRA', \" +\r\n \" IF(EXISTS ( SELECT * FROM gta WHERE gta.StudentId = phdstudent.StudentId) , 'GTA', \" +\r\n \" IF(EXISTS ( SELECT * FROM scholarshipsupport WHERE scholarshipsupport.StudentId = phdstudent.StudentId) , 'scholarship', \" +\r\n \" IF(EXISTS ( SELECT * FROM selfsupport WHERE selfsupport.StudentId = phdstudent.StudentId) , 'self', ''))\" +\r\n \" )) AS StudentType, \" +\r\n \" milestone.MName, milestonespassed.PassDate\" +\r\n \" FROM phdstudent left join instructor on instructor.InstructorId = phdstudent.Supervisor\"\r\n + \" left join milestonespassed on phdstudent.StudentId = milestonespassed.StudentId\"\r\n + \" left join milestone on milestonespassed.MID = milestone.MID\" +\r\n \" WHERE phdstudent.FName = ? AND phdstudent.LName = ?\");\r\n \r\n // execute query\r\n preparedStatement.setString(1, firtname);\r\n preparedStatement.setString(2, lastname); \r\n\r\n rs = preparedStatement.executeQuery();\r\n \r\n //iterate and create the StudentInfo objects\r\n while (rs.next()) {\r\n \r\n students.add(new StudentInfo(rs.getString(1)+ \" \" + rs.getString(2), rs.getString(3), rs.getString(4), \r\n utils.Utils.toDate(rs.getDate(5))));\r\n\r\n }\r\n }catch(Exception ex){\r\n ex.printStackTrace();\r\n }\r\n finally {\r\n DBUtils.closeResource(conn);\r\n DBUtils.closeResource(preparedStatement);\r\n DBUtils.closeResource(rs);\r\n } \r\n \r\n return students; \r\n }", "title": "" }, { "docid": "acf8ecec261b0d161eaf5622e1c8972e", "score": "0.6038921", "text": "@Override\n\tpublic List<HashMap<String, Object>> selectStuGrade(StuGrade grade,int page, int pagesize) {\n\t\tDbConnection dbo=null;\n\t\t//List<StuUser> list = new ArrayList<StuUser>();\n\t\tArrayList<HashMap<String, Object>> list =new ArrayList<HashMap<String,Object>>();\n\t\tString sql = \"select * from stugrade where stuid=? and examteam=? LIMIT ?,?\";\n\t\tConnection conn = null;\n\t\tPreparedStatement pstmt = null;\n\t\tResultSet rs = null;\n\t\ttry {\n\t\t\tdbo=new DbConnection();\n\t\t\tconn = dbo.getConnection();\n\t\t\tpstmt = DbConnection.getPreparedStatemnt(conn, sql);\n\t\t\tpstmt.setString(1, grade.getStuid());\n\t\t\tpstmt.setString(2, grade.getExamteam());\n\t\t\tpstmt.setInt(3, (page-1)*pagesize);\n\t\t\tpstmt.setInt(4, pagesize);\n\t\t\trs = pstmt.executeQuery();\n\t\t\tResultSetMetaData rsmd = (ResultSetMetaData) rs.getMetaData();\n\t\t\twhile(rs.next()){\n\t\t\t\t//StuUser stu = new StuUser();\n\t\t\t\t/*stu.setId(rs.getString(\"id\"));\n\t\t\t\tstu.setStugrade(rs.getString(\"stugrade\"));\n\t\t\t\tstu.setPassword(rs.getString(\"password\"));\n\t\t\t\tstu.setAge(rs.getString(\"age\"));\n\t\t\t\tstu.setGender(rs.getString(\"gender\"));\n\t\t\t\tstu.setRealname(rs.getString(\"realname\"));\n\t\t\t\tstu.setCreate_time(rs.getString(\"create_time\"));*/\n\t\t\t\tHashMap<String, Object> map = new HashMap<String, Object>();\n\t\t\t\tfor (int i = 1; i <= rsmd.getColumnCount(); i++) {\n\t\t\t\t\tmap.put(rsmd.getColumnName(i), rs.getObject(i));\n\t\t\t\t\tif(rsmd.getColumnName(i).equals(\"create_time\")) {\n\t\t\t\t\tString timeStamp = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\").format(rs.getTimestamp(i));\n\t\t\t\t\tmap.replace(\"create_time\", timeStamp);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tlist.add(map);\n\t\t\t}\n\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t} finally{\n\t\t\tDbConnection.close(conn, pstmt, rs);\n\t\t}\n\t\treturn list;\n\t}", "title": "" }, { "docid": "e773b26c9f0bf4f145ad04491d940695", "score": "0.6035935", "text": "@GetMapping(\"/students\")\n @Timed\n @RegionBasedQuery\n public ResponseEntity<List<StudentVo>> getAllStudents(StudentCriteria criteria, @ApiParam Pageable pageable) {\n log.debug(\"REST request to get Students by criteria: {}\", criteria);\n\n Page<StudentVo> page = studentQueryService.findStudentVosByCriteria(criteria, pageable);\n\n HttpHeaders headers = PaginationUtil.generatePaginationHttpHeaders(page, \"/api/students\");\n return new ResponseEntity<>(page.getContent(), headers, HttpStatus.OK);\n }", "title": "" }, { "docid": "a376d68a3e0fde6af2a6d0df1763553a", "score": "0.6015058", "text": "@PreAuthorize(\"hasAuthority('SECRETARY')\")\n @ModelAttribute\n @GetMapping(\"/allocation/student/documents\")\n public ResponseEntity<Page<StudentDocumentRowModel>> getAllStudentDocuments(@ModelAttribute final StudentDocumentFilter filter) {\n return ResponseEntity.ok(secretaryService.getAllStudentDocuments(filter));\n }", "title": "" }, { "docid": "b8b5030344ab457b453f1988d2b9f00d", "score": "0.5991338", "text": "public PageBean findByPage(int pageno,int size,String studentid) {\n\r\n\t\tPageBean pageBean=new PageBean();\r\n\t\tpageBean.setData(comprehensiveRecordDao.findByPageByStudent(pageno,size,studentid));\r\n\t\tpageBean.setMaxRowCount((int)comprehensiveRecordDao.findCountByPageByStudent(studentid));\r\n\t\tpageBean.setMaxPage((int)(comprehensiveRecordDao.findCountByPageByStudent(studentid)/10)+1);\r\n\t\tpageBean.setCurPage(pageno);\r\n\t\treturn pageBean;\r\n\t}", "title": "" }, { "docid": "6588bbbdde1055ce41a5e71f21259d34", "score": "0.5991147", "text": "@Override\n\t public List<Student> getAllStudent(BigInteger stdId){\n\t \t\n\t\t \n\t \treturn (List<Student>) studentrepo.findAll(); \t\n\t }", "title": "" }, { "docid": "1ea956f440421dc26691f1f2153c36a2", "score": "0.5987635", "text": "List<RiceCooker> getPerPage(long startRow, long maxRows);", "title": "" }, { "docid": "1fbe096708f9917447d1ee21ea9abc43", "score": "0.5983554", "text": "@Override\n public List<ModelPerson> selectpaging(Integer start, Integer end) {\n return null;\n }", "title": "" }, { "docid": "0489cf4073e605013c4b06fa145f7d45", "score": "0.597549", "text": "@Override\r\n\tpublic String paging(String sql) {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "566385cf4c99cd19f143e710560d183c", "score": "0.596772", "text": "@Query(\"from Student\")\n\tList<Student> findAllStudents();", "title": "" }, { "docid": "c45ea7945052cbef6cfe3a17fe8711aa", "score": "0.5951024", "text": "public Page<StudentModel> getAllStudents(final int pageSize, final int pageNumber) {\n var pageReq = PageRequest.of(pageNumber, pageSize);\n return studentRepository.findAll(pageReq).map(this::toStudentModel);\n }", "title": "" }, { "docid": "e205dc0c7fc977fae69ab235c83ce19b", "score": "0.5950837", "text": "@GetMapping(\"/showStudents\")\n public String showStudents(HttpSession session, Model model) {\n //Get a list of students from the controller\n List<Student_gra_84> students = studentDaoImpl.getAllStudents();\n\n\n //Add the results to the model\n model.addAttribute(\"students\", students);\n return \"showStudents\";\n }", "title": "" }, { "docid": "9ec7e5f8dc3bdeef933b129b99c35acd", "score": "0.59437615", "text": "Page<Enrollment> findAll(Pageable pageable);", "title": "" }, { "docid": "f3fd916a422b7ba5899ab02bcddb48c9", "score": "0.5943322", "text": "Page<ExamPackage> searchList(int pageNo, int pageSize, Sort sort);", "title": "" }, { "docid": "0aa7b54f3cd4f6a06944e2d8eee45038", "score": "0.5937971", "text": "@Repository\npublic interface UserMapper extends BaseMapper<User> {\n List<User> findAllStudentPage(Page<User> page);\n}", "title": "" }, { "docid": "2985da0b1775696eaf4881b79b273234", "score": "0.59358984", "text": "@RequestMapping(value=\"/show\",method = RequestMethod.GET)\n\n public List<Student> show_data() \n {\n return srt.findAll();\n }", "title": "" }, { "docid": "12d8be74e82b49333c290a736fca90f8", "score": "0.5932608", "text": "List<MasterZipcode> getByPage(int pageNo);", "title": "" }, { "docid": "23c3717fb5fdf4ad2b62e2cd8d619275", "score": "0.5930855", "text": "@Override\n\tpublic List<Student> getStudents() {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\n\t\t// create a query\n\t\tQuery<Student> query = currentSession.createQuery(\"from Student order by lastName\", Student.class);\n\n\t\t// execute the query and get the results list\n\t\tList<Student> students = query.getResultList();\n\n\t\t// return the results\n\t\treturn students;\n\t}", "title": "" }, { "docid": "53055768a6c0bbead5963f97e7e52653", "score": "0.5925418", "text": "@RequestMapping( value = \"/{id}/student\", method = RequestMethod.GET )\n public Set<StudentDTO> readStudents(@PathVariable(value=\"id\") long id){\n return classService.read(id).getStudents();\n }", "title": "" }, { "docid": "0d978e9938eb4baaf98dee649fea953d", "score": "0.5914308", "text": "List<Student> getStudent();", "title": "" }, { "docid": "7ca852a7a9515d4261b452a9579a879c", "score": "0.5910878", "text": "PageInfo list(Date beginDate, Date endDate, List<Integer> resources, int pageNo, int pageSize);", "title": "" }, { "docid": "dd3e45697cbfb3e75d65c6288de51c70", "score": "0.59096724", "text": "@RequestMapping(method = RequestMethod.GET)\n //function to return all students\n public Collection<Student> getAllStudent() {\n return studentService.getAllStudent();\n\n }", "title": "" }, { "docid": "4d830a4f2d35b5d2e4eb9af363bfece1", "score": "0.59032923", "text": "@Override\n\t//查询所有数据\n\tpublic List<Student> selectStudents() {\n\t\tConnection connection =null;\n\t\tPreparedStatement ps = null;\n\t\tResultSet rs = null;\n\t\tList<Student> sList = new ArrayList<Student>();\n\t\t\n\t\ttry {\n\t\t\tconnection = MySQLConnectUtil.getMySQLConnection();\n\t\t\tps = connection.prepareStatement(QUARYSQL);\n\t\t\trs = ps.executeQuery();\n\t\t\twhile (rs.next()) {\n\t\t\t\tStudent student = new Student();\n\t\t\t\tstudent.setId(rs.getString(\"ID\"));\n\t\t\t\tstudent.setName(rs.getString(\"NAME\"));\n\t\t\t\tstudent.setAge(rs.getInt(\"AGE\"));\n\t\t\t\tsList.add(student);\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}finally {\n\t\t\tMySQLConnectUtil.closeResultset(rs);\n\t\t\tMySQLConnectUtil.closePreparestatement(ps);\n\t\t\tMySQLConnectUtil.closeConnection(connection);\n\t\t}\n\t\treturn sList;\n\t}", "title": "" }, { "docid": "04fc66bf8df052209644c053dfd458c5", "score": "0.5899887", "text": "public interface PageSwapper {\n public List<Student> getPage(int currentPage, int ammountOfRecords);\n public int getAmountOfRecords();\n}", "title": "" }, { "docid": "6b42c67a2feac4475fc6ea41145b36a2", "score": "0.5882514", "text": "public List getStudentList(int startIndex, int endIndex) throws GenericBusinessException {\n if (startIndex < 1) {\n startIndex = 1;\n }\n if ( (endIndex - startIndex) < 0) {\n // Just return an empty list.\n return new ArrayList();\n }\n sust.paperlessexm.hibernatehelper.HibernateQueryHelper hibernateTemplate = new sust.paperlessexm.hibernatehelper.HibernateQueryHelper();\n try {\n String queryString = \"from \" + Student.class.getName() + \" e\";\n // Add a an order by on all primary keys to assure reproducable results.\n String orderByPart = \"\";\n orderByPart += \" order by e.studentId\";\n queryString += orderByPart;\n Query query = hibernateTemplate.createQuery(queryString);\n query.setFirstResult(startIndex - 1);\n query.setMaxResults(endIndex - startIndex + 1);\n List list = hibernateTemplate.list(query);\n return list;\n } finally {\n log.debug(\"finished getStudentList(int startIndex, int endIndex)\");\n }\n }", "title": "" }, { "docid": "202a0e1ef4fc6060cf24caac1b2fb810", "score": "0.58755064", "text": "List<Commodity> selectAll(@Param(\"beginRow\") int beginRow,@Param(\"pageSize\") int pageSize);", "title": "" }, { "docid": "444ad9f77f15a60734e9c51280957568", "score": "0.5867929", "text": "@Override\n public ResultSet getResultsForAllPaged(String onyen, String assignment, String type, String course, String section, String year, String season, int page, int pageSize) throws SQLException {\n StringBuilder statement = new StringBuilder();\n int count = 0;\n statement.append(\"SELECT * FROM (\\n\");\n if (onyen != null && !onyen.isEmpty()) {\n count++;\n statement.append(\"SELECT * FROM result WHERE assignment_submission_id IN (SELECT id FROM assignment_submission WHERE user_uid IN (SELECT uid FROM user WHERE onyen = ?))\");\n }\n if (assignment != null && !assignment.isEmpty()) {\n if (count > 0) {\n statement.append(\"\\nUNION ALL\\n\");\n }\n count++;\n statement.append(\"SELECT * FROM result WHERE assignment_submission_id IN (SELECT id FROM assignment_submission WHERE assignment_catalog_id IN (SELECT id FROM assignment_catalog WHERE name = ?))\");\n }\n if (type != null && !type.isEmpty()) {\n if (count > 0) {\n statement.append(\"\\nUNION ALL\\n\");\n }\n count++;\n statement.append(\"SELECT * FROM result WHERE assignment_submission_id IN (SELECT id FROM assignment_submission WHERE assignment_catalog_id IN (SELECT id FROM assignment_catalog WHERE assignment_type_id IN (SELECT id FROM assignment_type WHERE name = ?)))\");\n }\n if (course != null && !course.isEmpty()) {\n if (count > 0) {\n statement.append(\"\\nUNION ALL\\n\");\n }\n count++;\n statement.append(\"SELECT * FROM result WHERE assignment_submission_id IN (SELECT id FROM assignment_submission WHERE assignment_catalog_id IN (SELECT id FROM assignment_catalog WHERE course_id IN (SELECT id FROM course WHERE name = ?)))\");\n }\n if (section != null && !section.isEmpty()) {\n count++;\n if (count > 0) {\n statement.append(\"\\nUNION ALL\\n\");\n }\n statement.append(\"SELECT * FROM result WHERE assignment_submission_id IN (SELECT id FROM assignment_submission WHERE assignment_catalog_id IN (SELECT id FROM assignment_catalog WHERE course_id IN (SELECT id FROM course WHERE section = ?)))\");\n }\n if (year != null && !year.isEmpty()) {\n if (count > 0) {\n statement.append(\"\\nUNION ALL\\n\");\n }\n count++;\n statement.append(\"SELECT * FROM result WHERE assignment_submission_id IN (SELECT id FROM assignment_submission WHERE assignment_catalog_id IN (SELECT id FROM assignment_catalog WHERE course_id IN (SELECT id FROM course WHERE term_id IN (SELECT id FROM term WHERE year = ?))))\");\n }\n if (season != null && !season.isEmpty()) {\n if (count > 0) {\n statement.append(\"\\nUNION ALL\\n\");\n }\n count++;\n statement.append(\"SELECT * FROM result WHERE assignment_submission_id IN (SELECT id FROM assignment_submission WHERE assignment_catalog_id IN (SELECT id FROM assignment_catalog WHERE course_id IN (SELECT id FROM course WHERE term_id IN (SELECT id FROM term WHERE season = ?))))\");\n }\n if (count > 0) {\n statement.append(\")\\n AS result GROUP BY id HAVING count(*) = \").append(count);\n } else {\n statement.setLength(0);\n statement.append(\"SELECT * FROM result\");\n }\n statement.append(\"\\nORDER BY date DESC\");\n statement.append(\"\\nLIMIT \").append(pageSize);\n if(page > 0) {\n statement.append(\"\\nOFFSET \").append(page * pageSize);\n }\n statement.append(\";\");\n //System.out.println(statement.toString());\n PreparedStatement pstmt = connection.prepareStatement(statement.toString());\n int i = 1;\n if (onyen != null && !onyen.isEmpty()) {\n pstmt.setString(i++, onyen);\n }\n if (assignment != null && !assignment.isEmpty()) {\n pstmt.setString(i++, assignment);\n }\n if (type != null && !type.isEmpty()) {\n pstmt.setString(i++, type);\n }\n if (course != null && !course.isEmpty()) {\n pstmt.setString(i++, course);\n }\n if (section != null && !section.isEmpty()) {\n pstmt.setInt(i++, Integer.parseInt(section));\n }\n if (year != null && !year.isEmpty()) {\n pstmt.setInt(i++, Integer.parseInt(year));\n }\n if (season != null && !season.isEmpty()) {\n pstmt.setString(i, season);\n }\n //System.out.println(pstmt.toString());\n return pstmt.executeQuery();\n }", "title": "" }, { "docid": "15d2777c6ad9564e8dcd9f503d8308a1", "score": "0.58677644", "text": "@GetMapping(\"/student-module-results\")\n @Timed\n public ResponseEntity<List<StudentModuleResult>> getAllStudentModuleResults(@ApiParam Pageable pageable)\n throws URISyntaxException {\n log.debug(\"REST request to get a page of StudentModuleResults\");\n Page<StudentModuleResult> page = studentModuleResultRepository.findAll(pageable);\n HttpHeaders headers = PaginationUtil.generatePaginationHttpHeaders(page, \"/api/student-module-results\");\n return new ResponseEntity<>(page.getContent(), headers, HttpStatus.OK);\n }", "title": "" }, { "docid": "5290ec18728debaac30dff9a642ca4c5", "score": "0.58587134", "text": "public List getStudentList() throws GenericBusinessException {\n sust.paperlessexm.hibernatehelper.HibernateQueryHelper hibernateTemplate = new sust.paperlessexm.hibernatehelper.HibernateQueryHelper();\n try {\n\n String queryString = \"from \" + Student.class.getName() + \" e\";\n // Add a an order by on all primary keys to assure reproducable results.\n String orderByPart = \"\";\n orderByPart += \" order by e.studentId\";\n queryString += orderByPart;\n Query query = hibernateTemplate.createQuery(queryString);\n List list = hibernateTemplate.list(query);\n\n return list;\n } finally {\n log.debug(\"finished getStudentList\");\n }\n }", "title": "" }, { "docid": "c8f332ba4c4e6ea13fbec09af6a62ede", "score": "0.5855911", "text": "public ArrayList<Student> getStudents() {\n\n ArrayList<Student> students = new ArrayList<Student>();\n String query = \"SELECT * FROM student\";\n try{\n result = statement.executeQuery(query);\n while(result.next()) {\n\n String id = Integer.toString(result.getInt(\"student_id\"));\n String firstName = result.getString(\"student_first_name\");\n String lastName = result.getString(\"student_last_name\");\n String degree = result.getString(\"degree\");\n String yearOfStudy = result.getString(\"year_of_study\");\n String outcome = result.getString(\"outcome\");\n students.add(new Student(id, firstName, lastName, degree, yearOfStudy, outcome));\n\n }\n }\n catch (SQLException e){\n\n }\n\n return students;\n }", "title": "" }, { "docid": "0e42631b580da477f3bd9c3a1e39edf2", "score": "0.5855071", "text": "public List<RMap> testGetPagedMapListByBean() throws Exception{\r\n\t\tString sql = \"select * from rexdb_test_student where student_id > #{studentId} and readonly = #{readonly}\";\r\n\t\tStudent student = new Student();\r\n\t\tstudent.setStudentId(10);\r\n\t\tstudent.setReadonly(1);\r\n\t\t\r\n\t\tList<RMap> list = DB.getMapList(sql, student, 5, 10);\r\n\t\tif(list.size() != 10)\r\n\t\t\tthrow new Exception(\"getMapList seems didn't work well.\");\r\n\t\t\r\n\t\treturn list;\r\n\t}", "title": "" }, { "docid": "92602cc428709a9be6f47ee7d69b15ed", "score": "0.5844585", "text": "Student fetchBy(String name);", "title": "" }, { "docid": "b40024c7c3cc9b57a90220af62ad68de", "score": "0.58411616", "text": "public void findallstudentservice() {\n\t\t dao.findallstudent();\r\n\t\t\r\n\t}", "title": "" }, { "docid": "f5698d722fecf234f3b52f401469c7c2", "score": "0.5828619", "text": "@Test\n public void given_devEnvironmentAndListStudent_when_callEndPointShowStudentByPage_then_returnStatus200ListStudentWithByPageAndSize() throws Exception {\n Page<Student> studentPage = new PageImpl<>(STUDENT_LIST);\n when(studentRepo.findAll(any(PageRequest.class))).thenReturn(studentPage);\n\n RequestBuilder request = MockMvcRequestBuilders\n .get(\"/students/paging\")\n .accept(MediaType.APPLICATION_JSON)\n .param(\"page\", \"1 \")\n .param(\"size\", \"4\");\n\n mockMvc.perform(request)\n .andExpect(status().isOk())\n .andExpect(content().json(gson.toJson(studentPage.getContent())))\n .andDo(MockMvcResultHandlers.print())\n .andReturn();\n\n }", "title": "" }, { "docid": "6b232ae04190579bbc0e0cce4b96635e", "score": "0.582813", "text": "@RequestMapping(value=\"/students\", method=RequestMethod.GET) //MediaType.APPLICATION_XML_VALUE\r\n\tpublic List<Student> getStudentsList() {\r\n\t\tArrayList<Student> list = new ArrayList<Student>();\r\n\t\tlist.add(new Student(\"Kaja\", \"Piloun\", \"123465\", 25, null));\r\n\t\tlist.add(new Student(\"Paja\", \"Pilouna\", \"123465\", 25, null));\r\n\t\tlist.add(new Student(\"Vaja\", \"Pilounen\", \"123465\", 25, null));\r\n\t\t\r\n\t\treturn list;\r\n\t}", "title": "" }, { "docid": "ccd352b66d61c5125e57c088ea05d6e9", "score": "0.5827922", "text": "void findWithPagination(Pagination<Task, Project> pagination);", "title": "" }, { "docid": "cc19e1f7e6c14842667939a1b9c2a219", "score": "0.58195364", "text": "public int getRowsPerPage();", "title": "" }, { "docid": "f8cf77c6979790d86ee235ed791eebd3", "score": "0.5798093", "text": "@RequestMapping (\"/members\")\r\n\tpublic String list(@RequestParam(\"page\") int page, Model model) {\n\t\tint pagenumber = page;\r\n\t\tmodel.addAttribute(\"pagenumber\", pagenumber);\r\n\t\t\r\n\t\t//Row count for following calculations\r\n\t\tint maxrows = membersService.getMemberCount();\r\n\t\t\r\n\t\t//Find the Max number of pages and see if an extra page is needed\r\n\t\tif (maxrows >= 7){\r\n\t\t\tint maxpages = maxrows / 7;\r\n\t\t\tint pageTest = maxpages * 7; \r\n\t\t\tint addPage = maxrows - pageTest;\r\n\t\t\tint zero = 0;\r\n\t\t//Add an extra page if TRUE\r\n\t\t\tif (addPage > zero){\r\n\t\t\t\tint extraPage = maxpages + 1;\r\n\t\t\t\tmodel.addAttribute(\"maxpages\", extraPage);\r\n\t\t//Do not add an extra page if FALSE\t\t\r\n\t\t\t}else {\r\n\t\t\t\tmodel.addAttribute(\"maxpages\", maxpages);\r\n\t\t\t}\r\n\t\t//Only one page is needed because at least 7 rows are not available \r\n\t\t}else{\r\n\t\t\tmodel.addAttribute(\"maxpages\", 1);\r\n\t\t }\r\n\t\t//pull the first 7 on page 1\r\n\t\tif (pagenumber <= 1) {\r\n\r\n\t\t\tmodel.addAttribute(\"members\", membersService.getAllMembers(0, 7));\r\n\t\t}else{\r\n\t\t\tint stopSQL = 7; //Offset\r\n\t\t\tint pageNumber = pagenumber - 1; \r\n\t\t\tint startSQL = 7 * pageNumber; //What row should the query start at, e.g. 7 * 2 = 14 (start at row 14 and pull the next 7 rows)\r\n\r\n\t\t\tmodel.addAttribute(\"members\", membersService.getAllMembers(startSQL, stopSQL));\r\n\t\t\t\r\n\t\t}\r\n\r\n\t\t\r\n\t\treturn \"members\";\r\n\t}", "title": "" }, { "docid": "24994205b1244146ceba183a7f608bcf", "score": "0.57878315", "text": "public List<Student> fetch() {\n List<Student> studentList = new ArrayList<>();\n String[] columns = new String[]{DatabaseHelper.ID, DatabaseHelper.STUDENT_NAME, DatabaseHelper.STUDENT_ADDRESS};\n Cursor cursor = sqLiteDatabase.query(DatabaseHelper.TABLE_NAME, columns, null,\n null, null, null, null);\n while (cursor.moveToNext()) {\n Student student = new Student(cursor.getString(cursor.getColumnIndex(DatabaseHelper.STUDENT_NAME)),\n cursor.getString(cursor.getColumnIndex(DatabaseHelper.STUDENT_ADDRESS)),\n cursor.getInt(cursor.getColumnIndex(DatabaseHelper.ID)));\n studentList.add(student);\n }\n return studentList;\n }", "title": "" }, { "docid": "c884768272c7160c98c96ffb9ac52c71", "score": "0.5778349", "text": "public ArrayList<Student> studentList()\n {\n ArrayList<Student> studentList = new ArrayList<>();\n try\n {\n DatabaseConnection databaseConnection = new DatabaseConnection();\n String query = \"select * from student\";\n ResultSet rs = databaseConnection.s.executeQuery(query);\n Student student;\n while(rs.next())\n {\n student = new Student(rs.getInt(\"student_id\"), rs.getString(\"student_name\"), rs.getString(\"batch\"), rs.getString(\"student_username\"), rs.getString(\"student_password\"));\n studentList.add(student);\n }\n }\n catch(Exception e)\n {\n JOptionPane.showMessageDialog(null, e);\n }\n return studentList;\n }", "title": "" }, { "docid": "a947f7c0867a2067bbeb8ebfd10ae331", "score": "0.5757652", "text": "@Override\n\tpublic List<Signuptable> findPage(String where, int startIndex, int pageSize) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "866af563bb4e09810243cbb34cfde1e1", "score": "0.5756932", "text": "public List<User> getStudents(Group currentGroup, String orderby);", "title": "" }, { "docid": "a060ac352e18949ff53d35ea91f07b2f", "score": "0.57521343", "text": "@Override\n\tpublic Iterator<Student> selectAll() {\n\t\tString sql=\"SELECT a.id,a.num,a.name,a.email,a.phone,a.degree,a.project,a.school,b.name,a.is_cap from tc_student as a,tc_school as b where a.school=b.id\";\n\t\tArrayList<Student> arr=new ArrayList<Student>();\n\t\tResultSet rs=mysql.query(sql);\n\t\ttry {\n\t\t\twhile(rs.next())\n\t\t\t{\n\t\t\t\tStudent stu=new Student();\n\t\t\t\tstu.setId(rs.getInt(1));\n\t\t\t\tstu.setNum(rs.getString(2));\n\t\t\t\tstu.setName(rs.getString(3));\n\t\t\t\tstu.setEmail(rs.getString(4));\n\t\t\t\tstu.setPhone(rs.getString(5));\n\t\t\t\tstu.setDegree(rs.getShort(6));\n\t\t\t\tstu.setProject(rs.getInt(7));\n\t\t\t\tstu.setSchool(rs.getInt(8));\n\t\t\t\tstu.setSchoolstring(rs.getString(9));\n\t\t\t\tstu.setIs_cap(rs.getInt(10));\n\t\t\t\tstu.setDegreestring(degreemap[stu.getDegree()]);\n\t\t\t\tarr.add(stu);\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn arr.iterator();\n\t}", "title": "" }, { "docid": "2dd8ca6764088b5ee1bc1d37af3859e0", "score": "0.5751383", "text": "abstract public void showAllStudents();", "title": "" }, { "docid": "dae0426e76e11beb2a5b766a2ceb704b", "score": "0.5750612", "text": "java.util.List<com.demo.springprotobuff.Demoproto.Student> getStudentList();", "title": "" }, { "docid": "3c1960ba16c6f5acab7d00468eec73cd", "score": "0.5743825", "text": "String findConfigInfoAggrByPageFetchRows(int startRow, int pageSize);", "title": "" }, { "docid": "6538b3bfd2096dc53542d8b07cb07239", "score": "0.5742378", "text": "public static void fetchStudent(Session session) {\n\t\tQuery query = session.createQuery(\"from StudentEntity stud where stud.name=:name_to_be_passed_by_user\");\n\t\tquery.setParameter(\"name_to_be_passed_by_user\", \"Ram\");\n\t\tList studentResult = query.list();\n\t\t\n\t\tfor(Iterator iterator= studentResult.iterator();iterator.hasNext();) { \t\n\t\t\tStudentEntity student = (StudentEntity)iterator.next();\n\t\t\t\n\t\t\tSystem.out.println(student);\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "acbbfbec01f3c397af280534295189d1", "score": "0.5741971", "text": "public static List<Student> getAllStudents(){\r\n Student student1 = new Student(\"Dowlath\",2,3.6,\"male\", Arrays.asList(\"Swim\",\"BasketBall\",\"VolleyBall\"),11);\r\n Student student2 = new Student(\"Bhavya\",2,3.8,\"female\",Arrays.asList(\"Swim\",\"Gymnastics\",\"soccer\"),12);\r\n\r\n\r\n /* 3rd Grade Students */\r\n Student student3 = new Student(\"Priya\",3,4.0,\"female\", Arrays.asList(\"Swim\",\"BasketBall\",\"Aerobics\"),10);\r\n Student student4 = new Student(\"Arsh\",3,3.9,\"male\",Arrays.asList(\"Swim\",\"Gymnastics\",\"soccer\"),9);\r\n\r\n\r\n /* 4th Grade Students */\r\n Student student5 = new Student(\"Sowmiya\",4,3.5,\"female\", Arrays.asList(\"Swim\",\"Dancing\",\"FootBall\"),15);\r\n Student student6 = new Student(\"Ariz\",4,3.9,\"male\",Arrays.asList(\"Swim\",\"BasketBall\",\"BaseBall\",\"FootBall\"),14);\r\n\r\n List<Student> students = Arrays.asList(student1,student2,student3,student4,student5,student6);\r\n return students;\r\n }", "title": "" }, { "docid": "77288f9a97fd569ee644f4382c099e6f", "score": "0.57364297", "text": "public List<User> getStudents(Group currentGroup);", "title": "" }, { "docid": "988d662257012ad29402e7f92313853d", "score": "0.5734798", "text": "@Override\n\tpublic PageVo<Student> queryByPage(int page, int count) {\n\t\tPageVo<Student> po = new PageVo<>();\n\t\tint index = 0;\n\t\tif (page > 0) {\n\t\t\tindex = (page - 1) * count;\n\t\t}\n\t\tpo.setData(sDao.queryByPage(index, count));\n\t\tif (po.getData() != null) {\n\t\t\tpo.setCount(sDao.queryCount().intValue());\n\t\t}\n\t\tpo.setCode(0);\n\t\tpo.setMsg(\"OK\");\n\t\treturn po;\n\t}", "title": "" }, { "docid": "245ff95f9544e06e3f4e78a804097730", "score": "0.57257795", "text": "List<CustomerInformation> queryListByCustomer(Integer page, Integer rows, CustomerInformation cust);", "title": "" }, { "docid": "db52e5b6640200b889fc74fd07a9c7fc", "score": "0.5725566", "text": "public List<Timetable> pagging(int pageIndex, int pageSize) throws Exception;", "title": "" }, { "docid": "9d60fb820bab0b38e8e14bb95972e0d3", "score": "0.5724734", "text": "Page<Accessprofile> listWithCriterasByPage(List<SearchCriteria> searchCriterias, Pageable pageable);", "title": "" }, { "docid": "feb6f3f03bc3ca94a213d6ce4ca4eba5", "score": "0.57222295", "text": "private ArrayList<Student> getStudentsFromRS(ResultSet rs) {\t\n\t\t\n\t\tArrayList<Student> someStudents = new ArrayList<Student>();\n\n\t\ttry {\n\t\t\twhile (rs.next()) {\n\t\t\t\tStudent aStudent = new Student();\n\t\t\t\taStudent.setId(rs.getInt(\"id\"));\n\t\t\t\taStudent.setfName(rs.getString(\"first_name\"));\n\t\t\t\taStudent.setlName(rs.getString(\"last_name\"));\n\t\t\t\taStudent.setGpa(rs.getDouble(\"gpa\"));\n\t\t\t\taStudent.setSat(rs.getInt(\"sat\"));\n\t\t\t\taStudent.setMajor(rs.getInt(\"major_id\"));\n\t\t\t\tsomeStudents.add(aStudent);\n\t\t\t}\n\t\t} catch (SQLException ex) {ex.printStackTrace();};\n\t\t\n\t\treturn someStudents.isEmpty() ? null : someStudents;\n\t}", "title": "" }, { "docid": "2dfd03abab7045573789c3e12d990125", "score": "0.5721543", "text": "@GetMapping(\"/students\")\n\tpublic List<Student> getStudents(){\n\t\n\t\treturn theStudents;\n\t}", "title": "" }, { "docid": "a576911a02ce7e87afdb359135a8f400", "score": "0.5713883", "text": "@Override\r\n\tpublic List<TUsers> queryByPage(int page, QueryUser query) {\n\t\t\r\n\t\tint start=(page-1)*contests.PAGECONT+1;\r\n\t\tint end=page*contests.PAGECONT;\r\n\t\tquery.setStart(start);\r\n\t\tquery.setEnd(end);\r\n\t\treturn dao.queryByPage(query);\r\n\t}", "title": "" }, { "docid": "95b2a7edb79c225758f81f482d03f2dc", "score": "0.5700495", "text": "@GetMapping(path = \"/std/all\")\n\tpublic @ResponseBody Iterable<student> getAllStsudents() {\n\t\treturn studentRepo.findAll();\n\n\t}", "title": "" }, { "docid": "d5c203c4aaeee4e7a0f00d7d7bfba346", "score": "0.56936824", "text": "public List<PosPay> listPosPay(PosPay posPay,int firstResult ,int maxResults)throws DataAccessException;", "title": "" }, { "docid": "03fe661237382fb9e9a1dea9d4dd3e99", "score": "0.56935245", "text": "public ResultMap<Association> associations(Pagination pagination);", "title": "" }, { "docid": "5e9f70c3a07bb09cdef828857dfa00f4", "score": "0.5690324", "text": "List<T> findPage(int pageNumber);", "title": "" }, { "docid": "3ac78c1cfc851b1a6113fb21421da877", "score": "0.56740177", "text": "public List<Student> search() {\n \tQuery query = em.createQuery(\"Select e FROM Student e WHERE e.grade > 50.00\");\r\n \tList<Student> result = query.getResultList();\r\n \t\r\n \t \r\n \t// Query for a List of data elements.\r\n// \tQuery query = em.createQuery(\"Select e.firstname FROM Student e\");\r\n// \tList<String> result = query.getResultList();\r\n \t \r\n \t// Query for a List of element arrays.\r\n// \tQuery query = em.createQuery(\"Select e.firstname, e.grade FROM Student e\");\r\n// \tList<Object[]> result = query.getResultList();\r\n \t\r\n\t\t// \tsetFirstResult()\r\n\t\t// \tsetMaxResults()\r\n \t\r\n \treturn result;\r\n }", "title": "" }, { "docid": "fc0c57d5238d2f19e204d19106660b5f", "score": "0.5664351", "text": "public List<Student> getAllStudentData() {\r\n\t\tList<Student> list = new ArrayList<Student>();\r\n\t\ttry {\r\n\t\t\tConnection con = DatabaseUtility.getCon(inputStream);\r\n\t\t\tPreparedStatement ps = con.prepareStatement(\"select * from student\");\r\n\t\t\tResultSet rs = ps.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tStudent stud = new Student();\r\n\r\n\t\t\t\tstud.setRollno(rs.getInt(1));\r\n\t\t\t\tstud.setFname(rs.getString(2));\r\n\t\t\t\tstud.setLname(rs.getString(3));\r\n\t\t\t\tstud.setEmail(rs.getString(4));\r\n\t\t\t\tstud.setGender(rs.getString(5));\r\n\t\t\t\tstud.setDOB(rs.getString(6));\r\n\t\t\t\tstud.setAddress(rs.getString(7));\r\n\t\t\t\tstud.setContact(rs.getString(8));\r\n\r\n\t\t\t\tlist.add(stud);\r\n\t\t\t}\r\n\t\t\tcon.close();\r\n\t\t} catch (Exception ex) {\r\n\t\t\tSystem.out.println(ex);\r\n\t\t}\r\n\r\n\t\treturn list;\r\n\t}", "title": "" }, { "docid": "37666b2109d426d894e89efd6177371c", "score": "0.56632817", "text": "public static ArrayList<Student> getAllStudents() throws SQLException {\n\t\t\r\n\t\tArrayList<Student> students = new ArrayList<Student>();\r\n\t\t\t\t\r\n\t\t\t\tConnection connection = SQLUtil.getConnection();\r\n\t\t\t\tStatement statement = connection.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_UPDATABLE);\r\n\t\t\t\t\r\n\t\t\t\tString sql = \"SELECT * FROM students\";\r\n\t\t\t\t\r\n\t\t\t\tResultSet resultSet = statement.executeQuery(sql);\r\n\t\t\t\t\r\n\t\t\t\tresultSet.first();\r\n\t\t\t\t\r\n\t\t\t\twhile (!resultSet.isAfterLast()) {\r\n\t\t\t\t\tStudent student = new Student(resultSet.getString(\"firstname\"), resultSet.getString(\"lastname\"), resultSet.getString(\"registration_number\"));\r\n\r\n\t\t\t\t\tstudents.add(student);\r\n\t\t\t\t\tresultSet.next();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\treturn students;\r\n\t\t\r\n\t}", "title": "" }, { "docid": "bfd03ee1824861b3de0b43e1aee00e35", "score": "0.566027", "text": "@Test\n public void testFindAllStudents() throws Exception {\n List<Students> list = cs.findAllStudents();\n for (Students stu :\n list) {\n System.out.println(stu);\n }\n }", "title": "" }, { "docid": "44fc8ced4e9f9fd94778d151bad32eb9", "score": "0.5658641", "text": "Page<Research> findAll(Pageable pageable);", "title": "" }, { "docid": "f6eda33ab9cd6adeca0454f0f66d89c5", "score": "0.56565017", "text": "public ArrayList<Student> selectAllStudents() {\n Connection connection = null;\n Statement statement = null;\n ResultSet resultSet = null;\n ArrayList<Student> studentList = new ArrayList<>();\n try {\n Class.forName(Tools.MYSQL_JDBC_DRIVER);\n\n connection = DriverManager.getConnection(Tools.DB_URL, Tools.USERNAME, Tools.PASSWORD);\n\n statement = connection.createStatement();\n\n String query = \"SELECT * FROM STUDENTS;\";\n\n resultSet = statement.executeQuery(query);\n\n while (resultSet.next()) {\n String id = resultSet.getString(\"STUDENT_ID\");\n String lastName = resultSet.getString(\"LAST_NAME\");\n String firstName = resultSet.getString(\"FIRST_NAME\");\n String dob = resultSet.getString(\"DATE_OF_BIRTH\");\n float fees = resultSet.getFloat(\"TUITION_FEES\");\n Student student = new Student(id, firstName, lastName, dob, fees);\n\n studentList.add(student);\n\n }\n\n } catch (ClassNotFoundException | SQLException e) {\n e.printStackTrace();\n } finally {\n if (resultSet != null) {\n try {\n resultSet.close();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }\n\n if (statement != null) {\n try {\n statement.close();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }\n if (connection != null) {\n try {\n connection.close();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }\n }\n return studentList;\n }", "title": "" }, { "docid": "b5f888b79d279e15a9744996fdb0b3b5", "score": "0.56552094", "text": "List<Artist> getPagedList(int page);", "title": "" }, { "docid": "2f54c47b23f2ca3ae8410deca69a44cd", "score": "0.56339014", "text": "@Transactional\n public List<Student> fetch(int page, int limit, String firstName, String lastName, String code,\n String library, String department, List<StudentSort> sortOrders) {\n EntityManager entityManager = entityManagerFactory.createEntityManager();\n entityManager.getTransaction().begin();\n CriteriaBuilder criteriaBuilder = entityManager.getCriteriaBuilder();\n CriteriaQuery<Student> query = criteriaBuilder.createQuery(Student.class);\n Root<Student> root = query.from(Student.class);\n Join<Student, Library> studentLibraryJoin = root.join(\"library\");\n Join<Student, Department> studentDepartmentJoin = root.join(\"department\");\n\n query.select(root);\n\n List<Predicate> predicates = new ArrayList<>();\n if (firstName != null) {\n predicates.add(criteriaBuilder.like(criteriaBuilder.lower(root.get(\"firstName\")), \"%\" + firstName.toLowerCase() + \"%\"));\n }\n if (lastName != null) {\n predicates.add(criteriaBuilder.like(criteriaBuilder.lower(root.get(\"lastName\")), \"%\" + lastName.toLowerCase() + \"%\"));\n }\n if (code != null) {\n predicates.add(criteriaBuilder.equal(root.get(\"code\"), Integer.parseInt(code)));\n }\n if (library != null) {\n predicates.add(criteriaBuilder.like(criteriaBuilder.lower(studentLibraryJoin.get(\"address\")), \"%\" + library.toLowerCase() + \"%\"));\n }\n if (department != null) {\n predicates.add(criteriaBuilder.or(\n criteriaBuilder.like(criteriaBuilder.lower(studentDepartmentJoin.get(\"faculty\")), \"%\" + department.toLowerCase() + \"%\"),\n criteriaBuilder.like(criteriaBuilder.lower(studentDepartmentJoin.get(\"university\")), \"%\" + department.toLowerCase() + \"%\")));\n }\n query.where(criteriaBuilder.and(predicates.toArray(new Predicate[predicates.size()])));\n\n if (!sortOrders.isEmpty()) {\n if (sortOrders.get(0).isDescending()) {\n if (sortOrders.get(0).getPropertyName().equals(\"department\")) {\n query.orderBy(criteriaBuilder.desc(studentDepartmentJoin.get(\"university\")),\n criteriaBuilder.desc(studentDepartmentJoin.get(\"faculty\")));\n }\n else {\n if (sortOrders.get(0).getPropertyName().equals(\"library\")) {\n query.orderBy(criteriaBuilder.desc(studentLibraryJoin.get(\"address\")));\n }\n else query.orderBy(criteriaBuilder.desc(root.get(sortOrders.get(0).getPropertyName())));\n }\n }\n else {\n if (sortOrders.get(0).getPropertyName().equals(\"department\")) {\n query.orderBy(criteriaBuilder.asc(studentDepartmentJoin.get(\"university\")),\n criteriaBuilder.asc(studentDepartmentJoin.get(\"faculty\")));\n }\n else {\n if (sortOrders.get(0).getPropertyName().equals(\"library\")) {\n query.orderBy(criteriaBuilder.asc(studentLibraryJoin.get(\"address\")));\n }\n else query.orderBy(criteriaBuilder.asc(root.get(sortOrders.get(0).getPropertyName())));\n }\n }\n }\n else query.orderBy(criteriaBuilder.asc(root.get(\"id\")));\n\n List<Student> result = entityManager.createQuery(query).setFirstResult(page * limit).setMaxResults(limit).getResultList();\n entityManager.getTransaction().commit();\n entityManager.close();\n //System.out.println(result);\n return result;\n }", "title": "" }, { "docid": "3dbffade10cbdf5934f98da92c0cb772", "score": "0.5629632", "text": "@Override\n\tpublic List<HashMap<String, Object>> selectStuGrade(String type, StuGrade grade, int page, int pagesize) {\n\t\tDbConnection dbo=null;\n\t\t//List<StuUser> list = new ArrayList<StuUser>();\n\t\tArrayList<HashMap<String, Object>> list =new ArrayList<HashMap<String,Object>>();\n\t\tString sql = \"select * from stugrade LIMIT ?,?\";\n\t\tConnection conn = null;\n\t\tPreparedStatement pstmt = null;\n\t\tResultSet rs = null;\n\t\ttry {\n\t\t\tdbo=new DbConnection();\n\t\t\tconn = dbo.getConnection();\n\t\t\tpstmt = DbConnection.getPreparedStatemnt(conn, sql);\n\t\t\tpstmt.setInt(1, (page-1)*pagesize);\n\t\t\tpstmt.setInt(2, pagesize);\n\t\t\trs = pstmt.executeQuery();\n\t\t\tResultSetMetaData rsmd = (ResultSetMetaData) rs.getMetaData();\n\t\t\twhile(rs.next()){\n\t\t\t\t//StuUser stu = new StuUser();\n\t\t\t\t/*stu.setId(rs.getString(\"id\"));\n\t\t\t\tstu.setStugrade(rs.getString(\"stugrade\"));\n\t\t\t\tstu.setPassword(rs.getString(\"password\"));\n\t\t\t\tstu.setAge(rs.getString(\"age\"));\n\t\t\t\tstu.setGender(rs.getString(\"gender\"));\n\t\t\t\tstu.setRealname(rs.getString(\"realname\"));\n\t\t\t\tstu.setCreate_time(rs.getString(\"create_time\"));*/\n\t\t\t\tHashMap<String, Object> map = new HashMap<String, Object>();\n\t\t\t\tfor (int i = 1; i <= rsmd.getColumnCount(); i++) {\n\t\t\t\t\tmap.put(rsmd.getColumnName(i), rs.getObject(i));\n\t\t\t\t\tif(rsmd.getColumnName(i).equals(\"create_time\")) {\n\t\t\t\t\tString timeStamp = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\").format(rs.getTimestamp(i));\n\t\t\t\t\tmap.replace(\"create_time\", timeStamp);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tlist.add(map);\n\t\t\t}\n\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t} finally{\n\t\t\tDbConnection.close(conn, pstmt, rs);\n\t\t}\n\t\treturn list;\n\t}", "title": "" }, { "docid": "691c80e0438609fe80901c1a4696da65", "score": "0.5627877", "text": "Set<String> getUsers(String page);", "title": "" }, { "docid": "b95c3e3871d00597765ad8f3dc4cf8df", "score": "0.5623756", "text": "@Override\n public List<StudentOnYearDTO> studentsBySubject(Long subjectId, Pageable pageable)\n throws SubjectRealizationNotFoundException\n {\n SubjectRealization subjectRealization = this.subjectRealizationRepository\n .findBySubjectId(subjectId)\n .orElseThrow(\n () ->\n new SubjectRealizationNotFoundException(String.format(\"Subject realization with subject id: %s could not be found\", subjectId))\n );\n // holds students\n List<SubjectAttendance> subjectAttendances = this.subjectAttendanceRepository\n .getAllBySubjectRealizationIdAndDeletedFalse(subjectRealization.getId(), pageable);\n\n List<Long> studentIds = new ArrayList<>();\n subjectAttendances.forEach(sA -> studentIds.add(sA.getStudent().getStudentId()));\n\n List<StudentDTO> studentDTOS = this.authService.getAllStudents(jwtUtil.getToken(), studentIds);\n\n List<Long> studentIdsDTO = studentDTOS.stream().mapToLong(StudentDTO::getId).boxed().collect(Collectors.toList());\n List<StudentOnYear> studentOnYears = this.studentOnYearRepository.findAllByStudentIdIn(studentIdsDTO);\n return StudentOnYearMapper.map(studentDTOS, studentOnYears, subjectRealization);\n }", "title": "" }, { "docid": "28041f74987d04293b40db015b26166d", "score": "0.56183887", "text": "com.demo.springprotobuff.Demoproto.Student getStudent(int index);", "title": "" }, { "docid": "15cc3e72bbaf87900ddb6837d61d1a0e", "score": "0.5614164", "text": "@Override\n\t@Transactional\n\tpublic List<Student> getStudents() {\n\t\tAuthentication authentication = SecurityContextHolder.getContext().getAuthentication();\n\t\tString username = authentication.getName();\n\t\tSystem.out.println(\"The username is: \"+username);\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\t\t\n\t\tQuery<Student> query = currentSession.createQuery(\"from Student s where s.username='\"+username+\"'\", Student.class);\n\t\t\n List<Student> students = query.getResultList();\n\t\t\n\t\treturn students;\n\t}", "title": "" }, { "docid": "3cc606f8ce98b0dde5d7188ef9d6370c", "score": "0.5612601", "text": "Page<Accessprofile> listWithCriteraByPage(SearchCriteria searchCriteria, Pageable pageable);", "title": "" } ]
1d702fa9976463eb7062f86f9b17b287
This method was generated by MyBatis Generator. This method sets the value of the database column UNIORDER.AIR_PAX_SEG.TKT_ID
[ { "docid": "82266c983f5162f8b0f3ebf9774ab77d", "score": "0.5459857", "text": "public void setTktId(Long tktId) {\n this.tktId = tktId;\n }", "title": "" } ]
[ { "docid": "482f25118d8ef30d1a37f352f510a1b9", "score": "0.561491", "text": "public void setAD_OrgTrx_ID (int AD_OrgTrx_ID);", "title": "" }, { "docid": "52bc51a4550fc7663390d0d72c760fa4", "score": "0.5519864", "text": "public void setTktNo(String tktNo) {\n this.tktNo = tktNo;\n }", "title": "" }, { "docid": "e694483d51fee17e1dbb2b1958af201b", "score": "0.55037415", "text": "public void setTtId(Integer ttId) {\n this.ttId = ttId;\n }", "title": "" }, { "docid": "6f060b1a39263ae96bb46b7294917f13", "score": "0.5494598", "text": "public void setJP_Line_OrgTrx_ID (int JP_Line_OrgTrx_ID);", "title": "" }, { "docid": "42f1b9ed150e90cc8781e6fb7ef1ca69", "score": "0.52187485", "text": "@Override\r\n\tpublic void setId(ContentPkData t) {\n\t\t\r\n\t}", "title": "" }, { "docid": "9421810a4c2454abf33e41749f9fafa4", "score": "0.52135783", "text": "public Long getTktId() {\n return tktId;\n }", "title": "" }, { "docid": "2eb778b5a136c3a3eb61d14d3a5ec8b7", "score": "0.5193814", "text": "public Integer getTtId() {\n return ttId;\n }", "title": "" }, { "docid": "c72e9622d9e34b71e391d399c008c700", "score": "0.518306", "text": "public void setTaTaskId(Integer taTaskId) {\r\n this.taTaskId = taTaskId;\r\n }", "title": "" }, { "docid": "de01df4d9272f37256b21b4a9cca21b3", "score": "0.5082571", "text": "public void setPMrktId(Number value) {\n\t\tsetNumber(P_MRKT_ID, value);\n\t}", "title": "" }, { "docid": "124ac14b9c6454dd84ac669dccf04916", "score": "0.5077407", "text": "public void setTutoriaPK(TutoriaPK tutoriaPK) {\n this.tutoriaPK = tutoriaPK;\n }", "title": "" }, { "docid": "7c5451979a4f278f938da221efc231c7", "score": "0.50437963", "text": "public void setSysPk(Integer sysPK) {\n\t\tthis.sysPk.set(sysPK);\n\t}", "title": "" }, { "docid": "a6b1345fd2ce913082f37363f8293beb", "score": "0.5024508", "text": "public void setTentativeIdent();", "title": "" }, { "docid": "5eafdcd537531e1e6e8f138ba02c38f7", "score": "0.50099003", "text": "public int getJP_Line_OrgTrx_ID();", "title": "" }, { "docid": "09cecbc825b2aff12ae67f4f73ca8aeb", "score": "0.5001451", "text": "public void setTMDBId(int id){ mTMDBId = id; }", "title": "" }, { "docid": "01fd03177740a7f2e7dd31630abfb147", "score": "0.4967737", "text": "public final void setTreeId(int tid) {\n DataPacker.putIntelShort(tid, m_smbbuf, TID + m_offset);\n }", "title": "" }, { "docid": "61d27aac4626f978b91ec9095b3d0d79", "score": "0.49356022", "text": "@Override\n\tpublic void UpdateTintuc(tintuc tt) {\n\t\tSession session = HibernateUtil.getSessionFactory().getCurrentSession();\n\t\tTransaction tran = session.beginTransaction();\n\t\tlong a = 1;\n\t\ttaikhoan tk = session.get(taikhoan.class, a);\n\t\ttt.setTaikhoan(tk);\n\t\ttt.setIdtintuc(tt.getIdtintuc());\n\t\tsession.update(tt);\n\t tran.commit();\n\t\t\n\t}", "title": "" }, { "docid": "fe047f0a769d779a44f4f8453eb024a9", "score": "0.49207923", "text": "public void setTId (java.lang.Long tId) {\r\n\t\tthis.tId = tId;\r\n\t}", "title": "" }, { "docid": "a4feebd7fb678d96d5f49fc641143e57", "score": "0.49191585", "text": "public void setPKTableName(String pktn) {\r\n this.pkTableName = pktn;\r\n }", "title": "" }, { "docid": "e792dfec6ae97528e98a4bdf684451b8", "score": "0.4867256", "text": "@Override\n public void setTxId(String txId) {\n }", "title": "" }, { "docid": "d9693c8a058bdfe362e03337bbc054b5", "score": "0.48567075", "text": "@ActionTrigger(action=\"KEY_NXTKEY_TRG\")\r\n\t\tpublic void Spaiden_KeyNxtkeyTrg()\r\n\t\t{\r\n\t\t\t\r\n\r\n\t\t\t\tSprteleAdapter sprteleElement = (SprteleAdapter)this.getFormModel().getSprtele().getRowAdapter(true);\r\n\r\n\t\t\t\tif(sprteleElement!=null){\r\n\r\n\t\t\t\tif ( getGlobal(\"NAVIGATE_TO_TAB\").equals(\"TELEPHONE\") )\r\n\t\t\t\t{\r\n\t\t\t\t\t// F2J_TO_COMPLETE : The conversion process could not determine the name of the intended business object. Determine the correct Business Object name and complete the code.\r\n\t\t\t\t\tsetGlobal(\"VALUE\", sprteleElement.getROWID());\r\n\t\t\t\t\tsetGlobal(\"ATYP_CODE\", sprteleElement.getSprteleAtypCode());\r\n\t\t\t\t\tsetGlobal(\"SEQNO\", toStr(sprteleElement.getSprteleAddrSeqno()));\r\n\t\t\t\t\tsetGlobal(\"TELE_CODE\", sprteleElement.getSprteleTeleCode());\r\n\t\t\t\t\tsetGlobal(\"TELE_SEQNO\", toStr(sprteleElement.getSprteleSeqno()));\r\n\t\t\t\t\tsetGlobal(\"PHONE_AREA\", sprteleElement.getSprtelePhoneArea());\r\n\t\t\t\t\tsetGlobal(\"PHONE_NUMBER\", sprteleElement.getSprtelePhoneNumber());\r\n\t\t\t\t\tsetGlobal(\"PHONE_EXT\", sprteleElement.getSprtelePhoneExt());\r\n\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}", "title": "" }, { "docid": "f5bee5ebb37f63d6ae9519c5640ab03e", "score": "0.48439875", "text": "public void setAD_Table_ID (int AD_Table_ID);", "title": "" }, { "docid": "f5bee5ebb37f63d6ae9519c5640ab03e", "score": "0.48439875", "text": "public void setAD_Table_ID (int AD_Table_ID);", "title": "" }, { "docid": "9d2ce2d3e99b404ef0667af6741d32ae", "score": "0.48417473", "text": "public int getAD_OrgTrx_ID();", "title": "" }, { "docid": "0ff51b4822411c4f3e49c124344f18f8", "score": "0.48369515", "text": "@Override\n\tpublic void InsertTintuc(tintuc tt) {\n\t\tSession session = HibernateUtil.getSessionFactory().getCurrentSession();\n\t\tTransaction tran = session.beginTransaction();\n\t\tlong a = 1;\n\t\ttaikhoan tk = session.get(taikhoan.class, a);\n\t\ttt.setTaikhoan(tk);\n\t\tsession.save(tt);\n\t tran.commit();\n\t}", "title": "" }, { "docid": "dc2f1ea04f23a6dd362f24555e4bde75", "score": "0.48233774", "text": "public void setAD_OrgTrx_ID(int AD_OrgTrx_ID) {\n\t\tif (AD_OrgTrx_ID <= 0)\n\t\t\tset_Value(\"AD_OrgTrx_ID\", null);\n\t\telse\n\t\t\tset_Value(\"AD_OrgTrx_ID\", new Integer(AD_OrgTrx_ID));\n\t}", "title": "" }, { "docid": "bd9b00646457e1e5c12df40dea3c38ac", "score": "0.4800597", "text": "public void setTno(Integer tno) {\n this.tno = tno;\n }", "title": "" }, { "docid": "fa363197d8815a370ca2c9f2fab25196", "score": "0.47965807", "text": "@Override\n\tpublic void setTnmp(java.lang.String tnmp) {\n\t\t_pathologyData.setTnmp(tnmp);\n\t}", "title": "" }, { "docid": "42ca70e50a3429f0428cccace1066e7c", "score": "0.47886068", "text": "@ActionTrigger(action=\"KEY-NXTSET\")\r\n\t\tpublic void Spaiden_KeyNxtset()\r\n\t\t{\r\n\t\t\t\r\n\t\t\tgetGFormClass().keyNxtset();\r\n\t\t}", "title": "" }, { "docid": "338eb4304f5a28312db3fffc1e039ddb", "score": "0.47704494", "text": "public void setId(long param){\n \n this.localId=param;\n \n\n }", "title": "" }, { "docid": "f54bebf7d9f49e624f0631458eba7e14", "score": "0.468131", "text": "@Override\n\t\tpublic String getTxId() {\n\t\t\treturn null;\n\t\t}", "title": "" }, { "docid": "9b81186cc59bbf6637a938afcc30e732", "score": "0.46803862", "text": "public void mo28246a(C3443k kVar, T t) throws IOException {\n if (t != null) {\n kVar.mo28266a(this.f8863a, (String) this.f8864b.mo28198a(t), this.f8865c);\n return;\n }\n StringBuilder sb = new StringBuilder();\n sb.append(\"Path parameter \\\"\");\n sb.append(this.f8863a);\n sb.append(\"\\\" value must not be null.\");\n throw new IllegalArgumentException(sb.toString());\n }", "title": "" }, { "docid": "8852165cc4f13531cb8be41e6fe57c65", "score": "0.4666755", "text": "public void setC_Tax_ID (int C_Tax_ID);", "title": "" }, { "docid": "73124367e18d3d6756845c6597ba3c5f", "score": "0.4659252", "text": "public void setIdType( int idType )\n {\n _nIdType = idType;\n }", "title": "" }, { "docid": "2457ea4ef746cdfae55bd95e6a72cead", "score": "0.4655583", "text": "@Override\n\tpublic void setTnmt(java.lang.String tnmt) {\n\t\t_pathologyData.setTnmt(tnmt);\n\t}", "title": "" }, { "docid": "173b55837be53c660f003ce5d646e7dd", "score": "0.46486014", "text": "public void setSettlementNo(Long settlementNo) {\r\n this.settlementNo = settlementNo;\r\n }", "title": "" }, { "docid": "bbafec034d4ca9d6430e60389c118a8e", "score": "0.4646667", "text": "public void setCodigoTIA942(String codigoTIA942) {\n this.codigoTIA942 = codigoTIA942;\n }", "title": "" }, { "docid": "9960c10cc5d923fe99a347f8d8349738", "score": "0.46390247", "text": "public void setTcId(Long tcId) {\n this.tcId = tcId;\n }", "title": "" }, { "docid": "ba5414274d6ea73710e892ec53ef52aa", "score": "0.46270984", "text": "public Tutoria(TutoriaPK tutoriaPK) {\n this.tutoriaPK = tutoriaPK;\n }", "title": "" }, { "docid": "97e45cd0a0d665f2293f837b2e2b10db", "score": "0.46210352", "text": "public String getTktNo() {\n return tktNo;\n }", "title": "" }, { "docid": "7ac935887019efb6be62b9acf71b8cb9", "score": "0.46187502", "text": "public int getAD_OrgTrx_ID() {\n\t\tInteger ii = (Integer) get_Value(\"AD_OrgTrx_ID\");\n\t\tif (ii == null)\n\t\t\treturn 0;\n\t\treturn ii.intValue();\n\t}", "title": "" }, { "docid": "708d6e58e8a998a194c01de6ea064fc6", "score": "0.4618404", "text": "public Long getTcId() {\n return tcId;\n }", "title": "" }, { "docid": "79e061625a80c0f601444990c450ae8d", "score": "0.46159965", "text": "public void setIdtrayecto(int value) {\n this.idtrayecto = value;\n }", "title": "" }, { "docid": "19d2583b094be6c5a9174da81156653f", "score": "0.46094358", "text": "public void setJP_OrgTrx_Value (String JP_OrgTrx_Value);", "title": "" }, { "docid": "fcc00c9619aef6d5d2674136d25ecc4f", "score": "0.4595942", "text": "public void setTeacId(String teacId) {\n this.teacId = teacId == null ? null : teacId.trim();\n }", "title": "" }, { "docid": "ac69f31b2cdbc5a94ea212b40f2a7362", "score": "0.45877534", "text": "public void setIdTecnologiaPai(java.lang.Long idTecnologiaPai) {\n this.idTecnologiaPai = idTecnologiaPai;\n }", "title": "" }, { "docid": "b0f9e1daf550dc6cf99ede3f91cc84ab", "score": "0.45803806", "text": "public void setTuId(Long tuId) {\n this.tuId = tuId;\n }", "title": "" }, { "docid": "471869fb3422842b6b0a9931e0e8601e", "score": "0.4577696", "text": "public int getTMDBId(){ return mTMDBId; }", "title": "" }, { "docid": "b6f4931258f9cb4d33f9353ba4c19325", "score": "0.4568923", "text": "public void setIdTecnologia(long idTecnologia) {\n this.idTecnologia = idTecnologia;\n }", "title": "" }, { "docid": "f3220c4762a3eff7d31b4836667ecae0", "score": "0.4560961", "text": "public Long getTuId() {\n return tuId;\n }", "title": "" }, { "docid": "baa39c46e0fb9325b16805a59e03e295", "score": "0.4556364", "text": "@Override\r\n\tpublic void setPrimaryKey(long primaryKey) {\r\n\t\t_qlvtThongTinHoSoLienVan.setPrimaryKey(primaryKey);\r\n\t}", "title": "" }, { "docid": "c74ae32da882a2fe7d0500aac1e2f69a", "score": "0.45548412", "text": "public void setTfn(int tfn) {\n this.tfn = tfn;\n }", "title": "" }, { "docid": "36116727b87e5dd6f2eabeb26e6708ee", "score": "0.45532265", "text": "public void setIdLecturaMantenimiento(int idLecturaMantenimiento)\r\n/* 129: */ {\r\n/* 130:164 */ this.idLecturaMantenimiento = idLecturaMantenimiento;\r\n/* 131: */ }", "title": "" }, { "docid": "e245f75ad4c1657bb783bb83008e81d1", "score": "0.45497432", "text": "public void setPrimaryKey(long pk);", "title": "" }, { "docid": "1a5ae3bfb1cb5e96b64e109863698427", "score": "0.45365837", "text": "public void setC_BPartner_ID (int C_BPartner_ID)\n{\nset_Value (\"C_BPartner_ID\", new Integer(C_BPartner_ID));\n}", "title": "" }, { "docid": "566f9d0fae5eb646c6ec30187916d459", "score": "0.45293063", "text": "public Integer getTg_id() {\n return tg_id;\n }", "title": "" }, { "docid": "d36cb79668fbfe09eee287898cd39b48", "score": "0.45248234", "text": "public java.lang.Long getTId () {\r\n\t\treturn tId;\r\n\t}", "title": "" }, { "docid": "21a6fc6599ea40b37cb80f708a57b4c8", "score": "0.4518072", "text": "@Override\n\tpublic Integer getId(String temid) {\n\t\tint id=(Integer)selectOne(\"com.jiuyescm.bms.quotation.out.dispatch.mapper.PriceOutDispatchOtherMapper.getId\", temid);\n\t\t\n\t\tSystem.out.println(id);\n\t\treturn id;\n\t}", "title": "" }, { "docid": "f0e42add9c2d746b39e0754f5249e554", "score": "0.45104063", "text": "public int getIDORGTRANSITO() {\r\n return this.IDORGTRANSITO;\r\n }", "title": "" }, { "docid": "39a9ca19f042b606467b76f1e2d0c2ad", "score": "0.45102504", "text": "private void generateTisselKit() {\n\t\tStagingArea staging = index().prepareCommit(MAIN);\n\t\tstaging.stageNew(concept(INGREDIENT4)\n\t\t\t\t\t.parents(SUBSTANCEL)\n\t\t\t\t\t.statedParents(SUBSTANCEL)\n\t\t\t\t\t.build());\n\t\tstaging.stageNew(concept(TISSEL_KIT)\n\t\t\t\t\t.parents(DRUG_ROOTL)\n\t\t\t\t\t.statedParents(DRUG_ROOTL)\n\t\t\t\t\t.build());\n\t\t\n\t\tif (isAxiom()) {\n\t\t\tstaging.stageNew(classAxioms(TISSEL_KIT, \n\t\t\t\tHAS_ACTIVE_INGREDIENT, INGREDIENT4, 0\n\t\t\t).build());\n\t\t} else {\n\t\t\tstaging.stageNew(relationship(TISSEL_KIT, HAS_ACTIVE_INGREDIENT, INGREDIENT4, getCharacteristicType()).relationshipGroup(0).build());\n\t\t}\n\t\t\n\t\tstaging.commit(currentTime(), \"test\", \"Generate TISSEL Kit\");\n\t}", "title": "" }, { "docid": "ec93f7e922a93289e5682b6107b9e913", "score": "0.45013505", "text": "public void setTktSegStatus(String tktSegStatus) {\n this.tktSegStatus = tktSegStatus;\n }", "title": "" }, { "docid": "58d6fbd36047b52ea1bc210d711654f4", "score": "0.4498298", "text": "public void setM_InOutLineConfirm_ID (int M_InOutLineConfirm_ID)\n{\nset_Value (\"M_InOutLineConfirm_ID\", new Integer(M_InOutLineConfirm_ID));\n}", "title": "" }, { "docid": "ef64bdd972e12fa7359990b7124c96d3", "score": "0.44977117", "text": "public String getTeacId() {\n return teacId;\n }", "title": "" }, { "docid": "9a86eeddb804c9e0c4dcbae9d844ae2f", "score": "0.44950235", "text": "public void setTid(Integer tid) {\n this.tid = tid;\n }", "title": "" }, { "docid": "324523d3a199438666ab6a0c10eb5af4", "score": "0.44931823", "text": "public void prepareAneTanId(ActionEvent event) {\n if (this.getSelected() != null && aneTanIdController.getSelected() == null) {\n aneTanIdController.setSelected(this.getSelected().getAneTanId());\n }\n }", "title": "" }, { "docid": "478118ee3168416a56eb103e91454319", "score": "0.44905588", "text": "public void setCTTHJ_CODIGO(String inCtthj_codigo){\n\t\tthis.myCtthj_codigo = inCtthj_codigo;\n\t}", "title": "" }, { "docid": "3b6e344bc81ea06a01c4bd41f0f5026a", "score": "0.44874725", "text": "public void setAircraftID(int aircraftID) {\n this.aircraftID = aircraftID;\n operationsTable.setModel(operationDAO.selectOperationsByAircraft(aircraftID));\n setupOperationsTable();\n }", "title": "" }, { "docid": "22093b9be7ef47feb4fdb089dd7b7d75", "score": "0.4480975", "text": "public void setIdMovimientoCOTI(Integer idMovimientoCOTI) {\r\n\t\tthis.idMovimientoCOTI = idMovimientoCOTI;\r\n\t}", "title": "" }, { "docid": "4d67d2a7a607feaa68958f835099b5a4", "score": "0.44698265", "text": "public void setTid(final int tid) {\n this.tid = tid;\n }", "title": "" }, { "docid": "03bf8edbffb1981c1f864f4206e1429e", "score": "0.44684386", "text": "private void setTypeId(int value) {\n \n typeId_ = value;\n }", "title": "" }, { "docid": "2676dec9902bb47413ec013f7a30ab1d", "score": "0.44623846", "text": "CtSanPham getCTSanPhamTheoId(Integer maCtSP);", "title": "" }, { "docid": "a617ad91546b03aa819d016a73054aa9", "score": "0.44547006", "text": "public void setJP_Line_Project_ID (int JP_Line_Project_ID);", "title": "" }, { "docid": "ab24588863eb2ff15afddc6bcb070b92", "score": "0.44544157", "text": "public String txIdCol() {\n return txIdCol;\n }", "title": "" }, { "docid": "82ecc96847c09fabd96866a34cee6197", "score": "0.44539374", "text": "@Override\n\tpublic void setTnmm(java.lang.String tnmm) {\n\t\t_pathologyData.setTnmm(tnmm);\n\t}", "title": "" }, { "docid": "dbf08aac4ab124031d2e302c7b371fc7", "score": "0.44534585", "text": "public void setIdSucursal(int idSucursal)\r\n/* 105: */ {\r\n/* 106:138 */ this.idSucursal = idSucursal;\r\n/* 107: */ }", "title": "" }, { "docid": "aa0efe4de195b80862a15812e8989f5a", "score": "0.44508862", "text": "protected void setId(InterviewType interviewType, ResultSet rs, int rowNumber) throws SQLException{\n\t\tString id = rs.getString(InterviewTypeTable.COLUMN_ID);\n\t\tif(id == null){\n\t\t\t//do nothing when nothing found in database\n\t\t\treturn;\n\t\t}\n\t\n\t\tinterviewType.setId(id);\n\t}", "title": "" }, { "docid": "027966693bd64cf9e7688634d01514cf", "score": "0.44501835", "text": "public void setIdType(String idType) {\n\t\tthis.idType = idType;\n\t}", "title": "" }, { "docid": "73d45e824283016ff3d9cfbd804c12c1", "score": "0.4448204", "text": "@Override\n\tpublic void setTnmpn(java.lang.String tnmpn) {\n\t\t_pathologyData.setTnmpn(tnmpn);\n\t}", "title": "" }, { "docid": "cda289499d7c22a5f4ffcbc0d788c83d", "score": "0.4444941", "text": "public void setTransactionID(String tid) {\n transactionID = tid;\n }", "title": "" }, { "docid": "efc7db2830f4771ab30eb859f22ff882", "score": "0.44413975", "text": "public void setKt(java.lang.String kt) {\n this.kt = kt;\n }", "title": "" }, { "docid": "b84d5a6b8c7a3b8425a43fb416c81ec2", "score": "0.4441391", "text": "public TaiKhoan getTaiKhoanByID(int maTK);", "title": "" }, { "docid": "e3978093d50faff06802117285c92141", "score": "0.4433815", "text": "public void setPK(IEntityPK pk) {\r\n this.ID = (CarWashConfigPK)pk;\r\n }", "title": "" }, { "docid": "a31fd46067e5cfd34ad785204bc0de7c", "score": "0.44287345", "text": "public void setIdTransaction( Long idTransaction ) {\n this.idTransaction = idTransaction;\n }", "title": "" }, { "docid": "071be3ea3eb505dd0058b065326fccf3", "score": "0.44274917", "text": "public void setIdTipoSoggetto(Integer idTipoSoggetto) {\n\t\tthis.idTipoSoggetto = idTipoSoggetto;\n\t}", "title": "" }, { "docid": "e80de3713ca4d9ef03acb640c946205e", "score": "0.44266272", "text": "@Override\r\n\tpublic void setGtmId(String gtmId) {\n\t\t\r\n\t}", "title": "" }, { "docid": "70c49bf5780f1269a93d70eb9bac131c", "score": "0.4418127", "text": "public static native int msat_term_id(long t);", "title": "" }, { "docid": "d0fb7868adb645c5a7b302c69c4bd7a8", "score": "0.44178027", "text": "public void setIdSucursal(int idSucursal)\r\n/* 104: */ {\r\n/* 105:151 */ this.idSucursal = idSucursal;\r\n/* 106: */ }", "title": "" }, { "docid": "5fc3d8f27d617a80f6cf11519d85da3e", "score": "0.4417791", "text": "public int get_TazGroupId() {\n return getInt(TazGroupId);\n }", "title": "" }, { "docid": "44ec46ca8dfe84fc7bc642637c44598b", "score": "0.44171545", "text": "public void setId(java.lang.String param){\n \n if (param != null){\n //update the setting tracker\n localIdTracker = true;\n } else {\n localIdTracker = true;\n \n }\n \n this.localId=param;\n \n\n }", "title": "" }, { "docid": "3f19b0dbe010f5b5188808a6d49ac6ff", "score": "0.44123417", "text": "@Override\n\tpublic void setTnml(java.lang.String tnml) {\n\t\t_pathologyData.setTnml(tnml);\n\t}", "title": "" }, { "docid": "1243eb5b435cb563d0966c67b778042e", "score": "0.44111392", "text": "public void mo28246a(C3443k kVar, T t) throws IOException {\n if (t != null) {\n kVar.mo28268c(this.f8851a, (String) this.f8852b.mo28198a(t), this.f8853c);\n }\n }", "title": "" }, { "docid": "eabf0d13044e43968cba4addebeb4f96", "score": "0.4410635", "text": "public void setTwinID(int twinID) {\n this.twinID = twinID;\n }", "title": "" }, { "docid": "833e6f8bfea73e7981cf5280048f3209", "score": "0.44047448", "text": "public void setId( int taskID ) {\n\t this.taskID = taskID;\n\t }", "title": "" }, { "docid": "e2916a2a468fac3de292f9948f3c7f15", "score": "0.44021708", "text": "public Integer getTaTaskId() {\r\n return taTaskId;\r\n }", "title": "" }, { "docid": "de5023e48382bac993bff43204f6b550", "score": "0.44005114", "text": "public void setAutoKentekenT(JTextField autoKentekenT) {\n\t\tthis.autoKentekenT = autoKentekenT;\n\t}", "title": "" }, { "docid": "d787a8d859e45a3b412785863900593c", "score": "0.43971446", "text": "void setDbtCdtRptgInd(String data) {\n\t\tm_dbtCdtRptgInd = data;\n\t}", "title": "" }, { "docid": "54a835fdbab7a7aa81b502aa7ca97a7a", "score": "0.43946573", "text": "@Override\r\n\tpublic void setThongtinHoSoId(long thongtinHoSoId) {\r\n\t\t_qlvtThongTinHoSoLienVan.setThongtinHoSoId(thongtinHoSoId);\r\n\t}", "title": "" }, { "docid": "cfdf9b66cc13a84a63533a4f42245485", "score": "0.43900788", "text": "public void setTg_id(Integer tg_id) {\n this.tg_id = tg_id;\n }", "title": "" }, { "docid": "1967d219fe23b5cd154072effd959a13", "score": "0.43852875", "text": "public void setTHUOC_ID( Integer THUOC_ID )\n {\n this.THUOC_ID = THUOC_ID ;\n }", "title": "" }, { "docid": "d2fec02114305a31bb8781faae594f52", "score": "0.4384911", "text": "public void setIdsiguienteparada(int value) {\n this.idsiguienteparada = value;\n }", "title": "" }, { "docid": "1d8514230262507cd2f7d0cd3a219acf", "score": "0.43849066", "text": "@Override\r\n\tpublic void setThongTinXuLyId(int thongTinXuLyId) {\r\n\t\t_qlvtXuLyPhuHieu.setThongTinXuLyId(thongTinXuLyId);\r\n\t}", "title": "" } ]
24ad50f7c3a82cea0d309e40a4ad9273
Iterates through block4 fields and return the first one whose name matches 82J, or null if none is found. The first occurrence of field 82J at MT303 is expected to be the only one.
[ { "docid": "d6d8d045f71aab8b02781dc65a032e97", "score": "0.6041434", "text": "public Field82J getField82J() {\n\t\tif (getSwiftMessage() == null) {\n\t\t\tthrow new IllegalStateException(\"SwiftMessage was not initialized\");\n\t\t}\n\t\tif (getSwiftMessage().getBlock4() == null) {\n\t\t\tlog.info(\"block4 is null\");\n\t\t\treturn null;\n\t\t} else {\n\t\t\tfinal Tag t = getSwiftMessage().getBlock4().getTagByName(\"82J\");\n\t\t\tif (t == null) {\n\t\t\t\tlog.fine(\"field 82J not found\");\n\t\t\t\treturn null;\n\t\t\t} else {\n\t\t\t\treturn new Field82J(t.getValue());\n\t\t\t}\n\t\t}\n\t}", "title": "" } ]
[ { "docid": "bf231a09e9cd9972434d130982f0075b", "score": "0.5917294", "text": "public String getField4() {\n return null;\n }", "title": "" }, { "docid": "22dabe5b7024ed03cb8279f5e9a4b373", "score": "0.5838426", "text": "public field getField(String name) {\n for(int i = 0; i < fieldNum; ++i)\n if(fids[i].fieldName.equals(name))\n return fids[i];\n return null;\n }", "title": "" }, { "docid": "ca11aac0add29709c629b44e93422ebe", "score": "0.5822496", "text": "public Field94A getField94A() {\n\t\tif (getSwiftMessage() == null) {\n\t\t\tthrow new IllegalStateException(\"SwiftMessage was not initialized\");\n\t\t}\n\t\tif (getSwiftMessage().getBlock4() == null) {\n\t\t\tlog.info(\"block4 is null\");\n\t\t\treturn null;\n\t\t} else {\n\t\t\tfinal Tag t = getSwiftMessage().getBlock4().getTagByName(\"94A\");\n\t\t\tif (t == null) {\n\t\t\t\tlog.fine(\"field 94A not found\");\n\t\t\t\treturn null;\n\t\t\t} else {\n\t\t\t\treturn new Field94A(t.getValue());\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "d7865ed1c5271bb2a2c54f07ada396c3", "score": "0.58063614", "text": "public Field23B getField23B() {\n\t\tif (getSwiftMessage() == null) {\n\t\t\tthrow new IllegalStateException(\"SwiftMessage was not initialized\");\n\t\t}\n\t\tif (getSwiftMessage().getBlock4() == null) {\n\t\t\tlog.info(\"block4 is null\");\n\t\t\treturn null;\n\t\t} else {\n\t\t\tfinal Tag t = getSwiftMessage().getBlock4().getTagByName(\"23B\");\n\t\t\tif (t == null) {\n\t\t\t\tlog.fine(\"field 23B not found\");\n\t\t\t\treturn null;\n\t\t\t} else {\n\t\t\t\treturn new Field23B(t.getValue());\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "a63b7f4b3b8b929cdce25f1dbd7b71ed", "score": "0.5799922", "text": "public Field82A getField82A() {\n\t\tif (getSwiftMessage() == null) {\n\t\t\tthrow new IllegalStateException(\"SwiftMessage was not initialized\");\n\t\t}\n\t\tif (getSwiftMessage().getBlock4() == null) {\n\t\t\tlog.info(\"block4 is null\");\n\t\t\treturn null;\n\t\t} else {\n\t\t\tfinal Tag t = getSwiftMessage().getBlock4().getTagByName(\"82A\");\n\t\t\tif (t == null) {\n\t\t\t\tlog.fine(\"field 82A not found\");\n\t\t\t\treturn null;\n\t\t\t} else {\n\t\t\t\treturn new Field82A(t.getValue());\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "9661b542d8968e55951e4929d6b61d62", "score": "0.57625824", "text": "public Field72 getField72() {\n\t\tif (getSwiftMessage() == null) {\n\t\t\tthrow new IllegalStateException(\"SwiftMessage was not initialized\");\n\t\t}\n\t\tif (getSwiftMessage().getBlock4() == null) {\n\t\t\tlog.info(\"block4 is null\");\n\t\t\treturn null;\n\t\t} else {\n\t\t\tfinal Tag t = getSwiftMessage().getBlock4().getTagByName(\"72\");\n\t\t\tif (t == null) {\n\t\t\t\tlog.fine(\"field 72 not found\");\n\t\t\t\treturn null;\n\t\t\t} else {\n\t\t\t\treturn new Field72(t.getValue());\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "09df88c4a1cd97446e6374712259e2d0", "score": "0.572289", "text": "private HeaderField getHeaderField(int byteAddr)\n\t{\n\t\tfor(HeaderField f : HeaderField.values())\n\t\t\tif(f.bitfield == null && version >= f.minVersion && (version <= f.maxVersion || f.maxVersion < 0) && f.addr <= byteAddr && f.addr + f.len > byteAddr)\n\t\t\t\treturn f;\n\t\treturn null;\n\t}", "title": "" }, { "docid": "beed85392a8a1a334aec8ed460422406", "score": "0.56994367", "text": "public Field87J getField87J() {\n\t\tif (getSwiftMessage() == null) {\n\t\t\tthrow new IllegalStateException(\"SwiftMessage was not initialized\");\n\t\t}\n\t\tif (getSwiftMessage().getBlock4() == null) {\n\t\t\tlog.info(\"block4 is null\");\n\t\t\treturn null;\n\t\t} else {\n\t\t\tfinal Tag t = getSwiftMessage().getBlock4().getTagByName(\"87J\");\n\t\t\tif (t == null) {\n\t\t\t\tlog.fine(\"field 87J not found\");\n\t\t\t\treturn null;\n\t\t\t} else {\n\t\t\t\treturn new Field87J(t.getValue());\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "abae52954b1ef1a438c076d4d4a704b0", "score": "0.5629906", "text": "public static Field getMainHeadingField(Record r){\r\n for (Object o : r.getFields()) {\r\n Field fld = (Field) o;\r\n if (fld.getTag() >= 200 && fld.getTag() < 300) {\r\n return fld;\r\n }\r\n } \r\n return null;\r\n }", "title": "" }, { "docid": "028d913726f57b5c489ba9051e200e28", "score": "0.5607608", "text": "public Field39P getField39P() {\n\t\tif (getSwiftMessage() == null) {\n\t\t\tthrow new IllegalStateException(\"SwiftMessage was not initialized\");\n\t\t}\n\t\tif (getSwiftMessage().getBlock4() == null) {\n\t\t\tlog.info(\"block4 is null\");\n\t\t\treturn null;\n\t\t} else {\n\t\t\tfinal Tag t = getSwiftMessage().getBlock4().getTagByName(\"39P\");\n\t\t\tif (t == null) {\n\t\t\t\tlog.fine(\"field 39P not found\");\n\t\t\t\treturn null;\n\t\t\t} else {\n\t\t\t\treturn new Field39P(t.getValue());\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "1ddf4edcd4c2be0ab5fc42a571ac7a29", "score": "0.56056017", "text": "public Field21 getField21() {\n\t\tif (getSwiftMessage() == null) {\n\t\t\tthrow new IllegalStateException(\"SwiftMessage was not initialized\");\n\t\t}\n\t\tif (getSwiftMessage().getBlock4() == null) {\n\t\t\tlog.info(\"block4 is null\");\n\t\t\treturn null;\n\t\t} else {\n\t\t\tfinal Tag t = getSwiftMessage().getBlock4().getTagByName(\"21\");\n\t\t\tif (t == null) {\n\t\t\t\tlog.fine(\"field 21 not found\");\n\t\t\t\treturn null;\n\t\t\t} else {\n\t\t\t\treturn new Field21(t.getValue());\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "b780d06ed0e9694f51dd3abfefc1c1cc", "score": "0.559278", "text": "public Field29A getField29A() {\n\t\tif (getSwiftMessage() == null) {\n\t\t\tthrow new IllegalStateException(\"SwiftMessage was not initialized\");\n\t\t}\n\t\tif (getSwiftMessage().getBlock4() == null) {\n\t\t\tlog.info(\"block4 is null\");\n\t\t\treturn null;\n\t\t} else {\n\t\t\tfinal Tag t = getSwiftMessage().getBlock4().getTagByName(\"29A\");\n\t\t\tif (t == null) {\n\t\t\t\tlog.fine(\"field 29A not found\");\n\t\t\t\treturn null;\n\t\t\t} else {\n\t\t\t\treturn new Field29A(t.getValue());\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "1544b9388d8d28e26385f90315f957b1", "score": "0.5587817", "text": "public Field82D getField82D() {\n\t\tif (getSwiftMessage() == null) {\n\t\t\tthrow new IllegalStateException(\"SwiftMessage was not initialized\");\n\t\t}\n\t\tif (getSwiftMessage().getBlock4() == null) {\n\t\t\tlog.info(\"block4 is null\");\n\t\t\treturn null;\n\t\t} else {\n\t\t\tfinal Tag t = getSwiftMessage().getBlock4().getTagByName(\"82D\");\n\t\t\tif (t == null) {\n\t\t\t\tlog.fine(\"field 82D not found\");\n\t\t\t\treturn null;\n\t\t\t} else {\n\t\t\t\treturn new Field82D(t.getValue());\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "aa3accce5e1c73add13a7e81e8605dcf", "score": "0.5585607", "text": "public Field36 getField36() {\n\t\tif (getSwiftMessage() == null) {\n\t\t\tthrow new IllegalStateException(\"SwiftMessage was not initialized\");\n\t\t}\n\t\tif (getSwiftMessage().getBlock4() == null) {\n\t\t\tlog.info(\"block4 is null\");\n\t\t\treturn null;\n\t\t} else {\n\t\t\tfinal Tag t = getSwiftMessage().getBlock4().getTagByName(\"36\");\n\t\t\tif (t == null) {\n\t\t\t\tlog.fine(\"field 36 not found\");\n\t\t\t\treturn null;\n\t\t\t} else {\n\t\t\t\treturn new Field36(t.getValue());\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "bb5dc3230cc38d9f97f07c6c3a4e5509", "score": "0.5555387", "text": "public Field getField(int index) {\n if (index >= fields.size() || index < 0)\n return null;\n return fields.get(index);\n }", "title": "" }, { "docid": "76a545415c8778c665042a0589d593ba", "score": "0.55426353", "text": "public Field getField(String s)\r\n {\r\n int i;\r\n for (i=0; i<fields.size(); i++)\r\n {\r\n Field field = (Field) fields.elementAt(i);\r\n if (field.name.equalsIgnoreCase(s))\r\n return field;\r\n }\r\n return null;\r\n }", "title": "" }, { "docid": "18184d3f3bf9cf79b04c7dbce7355ed9", "score": "0.55342394", "text": "public Field134 getField134() {\n\t\tfinal Tag t = tag(\"134\");\n\t\tif (t != null) {\n\t\t\treturn new Field134(t.getValue());\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}", "title": "" }, { "docid": "d6f0c192e81a9f7b391748fb632406f8", "score": "0.552871", "text": "public List<Field83J> getField83J() {\n\t\tif (getSwiftMessage() == null) {\n\t\t\tthrow new IllegalStateException(\"SwiftMessage was not initialized\");\n\t\t}\n\t\tif (getSwiftMessage().getBlock4() == null) {\n\t\t\tlog.info(\"block4 is null\");\n\t\t\treturn Collections.emptyList();\n\t\t} else {\n\t\t\tfinal Tag[] tags = getSwiftMessage().getBlock4().getTagsByName(\"83J\");\n\t\t\tfinal List<Field83J> result = new ArrayList<Field83J>();\n\t\t\tfor (int i=0; i<tags.length; i++) {\n\t\t\t\tresult.add(new Field83J(tags[i].getValue()));\n\t\t\t}\n\t\t\treturn result;\n\t\t}\n\t}", "title": "" }, { "docid": "6da3c876303acc9e03927db55aca2a0a", "score": "0.55255145", "text": "public Field29C getField29C() {\n\t\tif (getSwiftMessage() == null) {\n\t\t\tthrow new IllegalStateException(\"SwiftMessage was not initialized\");\n\t\t}\n\t\tif (getSwiftMessage().getBlock4() == null) {\n\t\t\tlog.info(\"block4 is null\");\n\t\t\treturn null;\n\t\t} else {\n\t\t\tfinal Tag t = getSwiftMessage().getBlock4().getTagByName(\"29C\");\n\t\t\tif (t == null) {\n\t\t\t\tlog.fine(\"field 29C not found\");\n\t\t\t\treturn null;\n\t\t\t} else {\n\t\t\t\treturn new Field29C(t.getValue());\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "faaa72e8e1ed1602177439920cb0a499", "score": "0.5481962", "text": "public FieldMember getField(String name) {\n\t\tfor (FieldMember field : fields) {\n\t\t\tif (field.getName().equals(name)) {\n\t\t\t\treturn field;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "bffe0f0b46f64c3f66f0ed9fda10b3f1", "score": "0.5442113", "text": "public FieldDeserializer getFieldDeserializerByHash(long j) {\n for (FieldDeserializer fieldDeserializer : this.sortedFieldDeserializers) {\n if (fieldDeserializer.fieldInfo.nameHashCode == j) {\n return fieldDeserializer;\n }\n }\n return null;\n }", "title": "" }, { "docid": "050714314243111591b6cb39d186ea84", "score": "0.5427665", "text": "public Field getField(String name) {\n for (int i = 0; i < fields.size(); i++) {\n Field field = fields.get(i);\n if (field.getName().equals(name)) {\n return field;\n }\n }\n return null;\n }", "title": "" }, { "docid": "bb19825cf7de22e4be5c5a1d8ad40a0f", "score": "0.54134685", "text": "public List<Field53J> getField53J() {\n\t\tif (getSwiftMessage() == null) {\n\t\t\tthrow new IllegalStateException(\"SwiftMessage was not initialized\");\n\t\t}\n\t\tif (getSwiftMessage().getBlock4() == null) {\n\t\t\tlog.info(\"block4 is null\");\n\t\t\treturn Collections.emptyList();\n\t\t} else {\n\t\t\tfinal Tag[] tags = getSwiftMessage().getBlock4().getTagsByName(\"53J\");\n\t\t\tfinal List<Field53J> result = new ArrayList<Field53J>();\n\t\t\tfor (int i=0; i<tags.length; i++) {\n\t\t\t\tresult.add(new Field53J(tags[i].getValue()));\n\t\t\t}\n\t\t\treturn result;\n\t\t}\n\t}", "title": "" }, { "docid": "0e60c970df697415228bfe3441c85a08", "score": "0.53697944", "text": "public Field22C getField22C() {\n\t\tif (getSwiftMessage() == null) {\n\t\t\tthrow new IllegalStateException(\"SwiftMessage was not initialized\");\n\t\t}\n\t\tif (getSwiftMessage().getBlock4() == null) {\n\t\t\tlog.info(\"block4 is null\");\n\t\t\treturn null;\n\t\t} else {\n\t\t\tfinal Tag t = getSwiftMessage().getBlock4().getTagByName(\"22C\");\n\t\t\tif (t == null) {\n\t\t\t\tlog.fine(\"field 22C not found\");\n\t\t\t\treturn null;\n\t\t\t} else {\n\t\t\t\treturn new Field22C(t.getValue());\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "41dc97f63d4a9cfbc25b723ee482cda5", "score": "0.5331607", "text": "public Field30P getField30P() {\n\t\tif (getSwiftMessage() == null) {\n\t\t\tthrow new IllegalStateException(\"SwiftMessage was not initialized\");\n\t\t}\n\t\tif (getSwiftMessage().getBlock4() == null) {\n\t\t\tlog.info(\"block4 is null\");\n\t\t\treturn null;\n\t\t} else {\n\t\t\tfinal Tag t = getSwiftMessage().getBlock4().getTagByName(\"30P\");\n\t\t\tif (t == null) {\n\t\t\t\tlog.fine(\"field 30P not found\");\n\t\t\t\treturn null;\n\t\t\t} else {\n\t\t\t\treturn new Field30P(t.getValue());\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "9507718c5ed78f778515d709546cce9c", "score": "0.53062874", "text": "public Field22A getField22A() {\n\t\tif (getSwiftMessage() == null) {\n\t\t\tthrow new IllegalStateException(\"SwiftMessage was not initialized\");\n\t\t}\n\t\tif (getSwiftMessage().getBlock4() == null) {\n\t\t\tlog.info(\"block4 is null\");\n\t\t\treturn null;\n\t\t} else {\n\t\t\tfinal Tag t = getSwiftMessage().getBlock4().getTagByName(\"22A\");\n\t\t\tif (t == null) {\n\t\t\t\tlog.fine(\"field 22A not found\");\n\t\t\t\treturn null;\n\t\t\t} else {\n\t\t\t\treturn new Field22A(t.getValue());\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "634ad8982789fa450ec9fdc3bf86a4b3", "score": "0.5305439", "text": "public Field30F getField30F() {\n\t\tif (getSwiftMessage() == null) {\n\t\t\tthrow new IllegalStateException(\"SwiftMessage was not initialized\");\n\t\t}\n\t\tif (getSwiftMessage().getBlock4() == null) {\n\t\t\tlog.info(\"block4 is null\");\n\t\t\treturn null;\n\t\t} else {\n\t\t\tfinal Tag t = getSwiftMessage().getBlock4().getTagByName(\"30F\");\n\t\t\tif (t == null) {\n\t\t\t\tlog.fine(\"field 30F not found\");\n\t\t\t\treturn null;\n\t\t\t} else {\n\t\t\t\treturn new Field30F(t.getValue());\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "471d7bc0ee75229be6f2d72b4d1be5bd", "score": "0.53011566", "text": "Field getField(Identifier pIdentifier);", "title": "" }, { "docid": "52a069a97cc8d52d67e81a8d5581099f", "score": "0.5270249", "text": "public List<Field34B> getField34B() {\n\t\tif (getSwiftMessage() == null) {\n\t\t\tthrow new IllegalStateException(\"SwiftMessage was not initialized\");\n\t\t}\n\t\tif (getSwiftMessage().getBlock4() == null) {\n\t\t\tlog.info(\"block4 is null\");\n\t\t\treturn Collections.emptyList();\n\t\t} else {\n\t\t\tfinal Tag[] tags = getSwiftMessage().getBlock4().getTagsByName(\"34B\");\n\t\t\tfinal List<Field34B> result = new ArrayList<Field34B>();\n\t\t\tfor (int i=0; i<tags.length; i++) {\n\t\t\t\tresult.add(new Field34B(tags[i].getValue()));\n\t\t\t}\n\t\t\treturn result;\n\t\t}\n\t}", "title": "" }, { "docid": "b2195b1a3c80ea8396ddda082444ca31", "score": "0.5260868", "text": "public Field15B getField15B() {\n\t\tif (getSwiftMessage() == null) {\n\t\t\tthrow new IllegalStateException(\"SwiftMessage was not initialized\");\n\t\t}\n\t\tif (getSwiftMessage().getBlock4() == null) {\n\t\t\tlog.info(\"block4 is null\");\n\t\t\treturn null;\n\t\t} else {\n\t\t\tfinal Tag t = getSwiftMessage().getBlock4().getTagByName(\"15B\");\n\t\t\tif (t == null) {\n\t\t\t\tlog.fine(\"field 15B not found\");\n\t\t\t\treturn null;\n\t\t\t} else {\n\t\t\t\treturn new Field15B(t.getValue());\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "7eed6e25ddccbfb54ff639e82da99a33", "score": "0.52346975", "text": "public Field36A getField36A() {\n\t\tif (getSwiftMessage() == null) {\n\t\t\tthrow new IllegalStateException(\"SwiftMessage was not initialized\");\n\t\t}\n\t\tif (getSwiftMessage().getBlock4() == null) {\n\t\t\tlog.info(\"block4 is null\");\n\t\t\treturn null;\n\t\t} else {\n\t\t\tfinal Tag t = getSwiftMessage().getBlock4().getTagByName(\"36A\");\n\t\t\tif (t == null) {\n\t\t\t\tlog.fine(\"field 36A not found\");\n\t\t\t\treturn null;\n\t\t\t} else {\n\t\t\t\treturn new Field36A(t.getValue());\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "f27d9bb28f7ff66f80913b48f3668712", "score": "0.5224398", "text": "public List<Field56J> getField56J() {\n\t\tif (getSwiftMessage() == null) {\n\t\t\tthrow new IllegalStateException(\"SwiftMessage was not initialized\");\n\t\t}\n\t\tif (getSwiftMessage().getBlock4() == null) {\n\t\t\tlog.info(\"block4 is null\");\n\t\t\treturn Collections.emptyList();\n\t\t} else {\n\t\t\tfinal Tag[] tags = getSwiftMessage().getBlock4().getTagsByName(\"56J\");\n\t\t\tfinal List<Field56J> result = new ArrayList<Field56J>();\n\t\t\tfor (int i=0; i<tags.length; i++) {\n\t\t\t\tresult.add(new Field56J(tags[i].getValue()));\n\t\t\t}\n\t\t\treturn result;\n\t\t}\n\t}", "title": "" }, { "docid": "f9f3232d5f92343fd972cb5b814059b5", "score": "0.5223951", "text": "public int findFieldName(String name) {\r\n int col_index = 0;\r\n for (int i = 0; i < reference_list.length; ++i) {\r\n int col = reference_list[i].findFieldName(name);\r\n if (col != -1) {\r\n return col + col_index;\r\n }\r\n col_index += reference_list[i].getColumnCount();\r\n }\r\n return -1;\r\n }", "title": "" }, { "docid": "097f0c92ae92ebd6277b26dbc6202806", "score": "0.521838", "text": "public JavaField getFieldForName(String aName)\n {\n List<JavaField> fields = getDeclaredFields();\n for (JavaField field : fields)\n if (field.getName().equals(aName))\n return field;\n\n // Return\n return null;\n }", "title": "" }, { "docid": "4fa993b20ece88d1f269aec6e368a7a8", "score": "0.51772827", "text": "private ByteOrderMark find() {\n return boms.stream().filter(this::matches).findFirst().orElse(null);\n }", "title": "" }, { "docid": "ce0273775883566569f959ff74cb9266", "score": "0.5171697", "text": "public String getField(int fieldNo) \n { \n if (fieldNo<0 || fieldNo>fields.length) return null;\n return fields[fieldNo]; }", "title": "" }, { "docid": "8d34169fb7353760244ad7024261332c", "score": "0.51524603", "text": "public List<Field57J> getField57J() {\n\t\tif (getSwiftMessage() == null) {\n\t\t\tthrow new IllegalStateException(\"SwiftMessage was not initialized\");\n\t\t}\n\t\tif (getSwiftMessage().getBlock4() == null) {\n\t\t\tlog.info(\"block4 is null\");\n\t\t\treturn Collections.emptyList();\n\t\t} else {\n\t\t\tfinal Tag[] tags = getSwiftMessage().getBlock4().getTagsByName(\"57J\");\n\t\t\tfinal List<Field57J> result = new ArrayList<Field57J>();\n\t\t\tfor (int i=0; i<tags.length; i++) {\n\t\t\t\tresult.add(new Field57J(tags[i].getValue()));\n\t\t\t}\n\t\t\treturn result;\n\t\t}\n\t}", "title": "" }, { "docid": "dd7dbb82976eb6543d93c870c5e22f60", "score": "0.51448494", "text": "java.lang.String getField();", "title": "" }, { "docid": "91c474b3cc20eee5d938c8134fd215e4", "score": "0.51431566", "text": "public Field30X getField30X() {\n\t\tif (getSwiftMessage() == null) {\n\t\t\tthrow new IllegalStateException(\"SwiftMessage was not initialized\");\n\t\t}\n\t\tif (getSwiftMessage().getBlock4() == null) {\n\t\t\tlog.info(\"block4 is null\");\n\t\t\treturn null;\n\t\t} else {\n\t\t\tfinal Tag t = getSwiftMessage().getBlock4().getTagByName(\"30X\");\n\t\t\tif (t == null) {\n\t\t\t\tlog.fine(\"field 30X not found\");\n\t\t\t\treturn null;\n\t\t\t} else {\n\t\t\t\treturn new Field30X(t.getValue());\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "86f7fc4002b6fc2042feac7032210cb0", "score": "0.51384246", "text": "java.lang.String getFieldName(int index);", "title": "" }, { "docid": "2d07959596f960c4a247abafa1a29b60", "score": "0.5133625", "text": "private HeaderField getHeaderField(HeaderField bitfield, int bitAddr)\n\t{\n\t\tfor(HeaderField f : HeaderField.values())\n\t\t\tif(f.bitfield == bitfield && version >= f.minVersion && (version <= f.maxVersion || f.maxVersion < 0) && f.addr == bitAddr)\n\t\t\t\treturn f;\n\t\treturn null;\n\t}", "title": "" }, { "docid": "3819707683a77c2cb1cd63378f280254", "score": "0.5112903", "text": "private String[] getFirstRecord(File file) throws IOException {\n String[] fieldValues = null;\n CSVReader csvr = null;\n try {\n if (file.length() == 0) {\n return null;\n }\n csvr = new CSVReader(new FileReader(file));\n fieldValues = csvr.readNext();\n if (fieldValues == null) {\n return null;\n }\n } catch (FileNotFoundException e) {\n throw new EOFException(\"File not found\");\n } finally {\n if (csvr != null)\n try {\n csvr.close();\n } catch (IOException e) {} // ignore\n }\n\n return fieldValues;\n }", "title": "" }, { "docid": "39f42afc431c1e861a9e5f25f56004cd", "score": "0.51077664", "text": "String getField();", "title": "" }, { "docid": "4610f00aead7d099664163a04b47259c", "score": "0.50937426", "text": "public Field30V getField30V() {\n\t\tif (getSwiftMessage() == null) {\n\t\t\tthrow new IllegalStateException(\"SwiftMessage was not initialized\");\n\t\t}\n\t\tif (getSwiftMessage().getBlock4() == null) {\n\t\t\tlog.info(\"block4 is null\");\n\t\t\treturn null;\n\t\t} else {\n\t\t\tfinal Tag t = getSwiftMessage().getBlock4().getTagByName(\"30V\");\n\t\t\tif (t == null) {\n\t\t\t\tlog.fine(\"field 30V not found\");\n\t\t\t\treturn null;\n\t\t\t} else {\n\t\t\t\treturn new Field30V(t.getValue());\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "e4bb5f574b545469a07be9813a7f9faf", "score": "0.5076675", "text": "public static class_94 method_450(String var0) {\r\n String[] var10000 = class_752.method_4253();\r\n class_94[] var2 = values();\r\n int var3 = var2.length;\r\n String[] var1 = var10000;\r\n int var4 = 0;\r\n\r\n class_94 var6;\r\n while(true) {\r\n if(var4 < var3) {\r\n class_94 var5 = var2[var4];\r\n if(var1 != null) {\r\n var6 = var5;\r\n if(var1 == null) {\r\n break;\r\n }\r\n\r\n if(var5.field_49.equals(var0)) {\r\n return var5;\r\n }\r\n\r\n ++var4;\r\n }\r\n\r\n if(var1 != null) {\r\n continue;\r\n }\r\n }\r\n\r\n var6 = field_45;\r\n break;\r\n }\r\n\r\n return var6;\r\n }", "title": "" }, { "docid": "8cdc50005b3d9c093939a8c9b1eba708", "score": "0.50731415", "text": "default Optional<? extends ZField> field(String name) {\n return Optional.ofNullable(this.fields().get(name));\n }", "title": "" }, { "docid": "b195e9e240847ca3c0be9e557cd20b7d", "score": "0.50714505", "text": "public String mo3275f() {\n String headerFieldKey;\n StringBuffer stringBuffer = new StringBuffer(\"\");\n if (this.f2801a != null) {\n String str = \"\";\n str = \"\";\n int i = 0;\n while (true) {\n headerFieldKey = this.f2801a.getHeaderFieldKey(i);\n if (headerFieldKey == null) {\n headerFieldKey = this.f2801a.getHeaderField(i);\n if (headerFieldKey == null) {\n break;\n }\n if (i > 0) {\n try {\n stringBuffer.append(f2800z[3]);\n } catch (NullPointerException e) {\n throw e;\n }\n }\n stringBuffer.append(headerFieldKey);\n } else {\n String headerField = this.f2801a.getHeaderField(i);\n if (i > 0) {\n try {\n stringBuffer.append(f2800z[3]);\n } catch (NullPointerException e2) {\n throw e2;\n }\n }\n stringBuffer.append(headerFieldKey).append(f2800z[0]).append(headerField);\n }\n i++;\n }\n }\n headerFieldKey = stringBuffer.toString();\n if (!headerFieldKey.startsWith(f2800z[2])) {\n try {\n str = this.f2801a.getHeaderField(null);\n } catch (Exception e3) {\n C0691a.m2857a(f2800z[1], e3);\n str = null;\n }\n if (!C0808l.m4053k(str)) {\n stringBuffer.insert(0, str + f2800z[3]);\n return stringBuffer.toString();\n }\n }\n return headerFieldKey;\n }", "title": "" }, { "docid": "09d84eed3d5bd00823cf66dbec3b76c7", "score": "0.5062807", "text": "public Object getField(int fieldNum) {\r\n\r\n if (updateStatus == NULL_INT_VALUE) return \"\";\r\n\r\n switch (fieldNum) {\r\n case (0) : return Integer.valueOf(tblKey);\r\n case (1) : return details;\r\n case (2) : return foreignName;\r\n default : return \"\";\r\n }\r\n }", "title": "" }, { "docid": "7eb437f3ae63d4c26e279726645f43f2", "score": "0.5060864", "text": "public Field17A getField17A() {\n\t\tif (getSwiftMessage() == null) {\n\t\t\tthrow new IllegalStateException(\"SwiftMessage was not initialized\");\n\t\t}\n\t\tif (getSwiftMessage().getBlock4() == null) {\n\t\t\tlog.info(\"block4 is null\");\n\t\t\treturn null;\n\t\t} else {\n\t\t\tfinal Tag t = getSwiftMessage().getBlock4().getTagByName(\"17A\");\n\t\t\tif (t == null) {\n\t\t\t\tlog.fine(\"field 17A not found\");\n\t\t\t\treturn null;\n\t\t\t} else {\n\t\t\t\treturn new Field17A(t.getValue());\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "8ae823da4f779b7f94973b1179bb1660", "score": "0.5060557", "text": "public Field87A getField87A() {\n\t\tif (getSwiftMessage() == null) {\n\t\t\tthrow new IllegalStateException(\"SwiftMessage was not initialized\");\n\t\t}\n\t\tif (getSwiftMessage().getBlock4() == null) {\n\t\t\tlog.info(\"block4 is null\");\n\t\t\treturn null;\n\t\t} else {\n\t\t\tfinal Tag t = getSwiftMessage().getBlock4().getTagByName(\"87A\");\n\t\t\tif (t == null) {\n\t\t\t\tlog.fine(\"field 87A not found\");\n\t\t\t\treturn null;\n\t\t\t} else {\n\t\t\t\treturn new Field87A(t.getValue());\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "92587b8d94d6d8e68e7122d1fa793777", "score": "0.50307244", "text": "public String nextFieldName()\n/* */ throws IOException\n/* */ {\n/* 708 */ return nextToken() == JsonToken.FIELD_NAME ? getCurrentName() : null;\n/* */ }", "title": "" }, { "docid": "1dbe4d4dffd1efe5406d9f98816885a2", "score": "0.5024962", "text": "public Field20 getField20() {\n\t\tif (getSwiftMessage() == null) {\n\t\t\tthrow new IllegalStateException(\"SwiftMessage was not initialized\");\n\t\t}\n\t\tif (getSwiftMessage().getBlock4() == null) {\n\t\t\tlog.info(\"block4 is null\");\n\t\t\treturn null;\n\t\t} else {\n\t\t\tfinal Tag t = getSwiftMessage().getBlock4().getTagByName(\"20\");\n\t\t\tif (t == null) {\n\t\t\t\tlog.fine(\"field 20 not found\");\n\t\t\t\treturn null;\n\t\t\t} else {\n\t\t\t\treturn new Field20(t.getValue());\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "a903e5150ea730cff88530e25be08e2f", "score": "0.50192153", "text": "String fetchStringField(int fieldNumber);", "title": "" }, { "docid": "000354fea09e8a142fff3d948ed69d43", "score": "0.5016985", "text": "public int findFieldName(Variable v) {\r\n int col_index = 0;\r\n for (int i = 0; i < reference_list.length; ++i) {\r\n int col = reference_list[i].findFieldName(v);\r\n if (col != -1) {\r\n return col + col_index;\r\n }\r\n col_index += reference_list[i].getColumnCount();\r\n }\r\n return -1;\r\n }", "title": "" }, { "docid": "c908e2027bc5998816a6b61c4b4750d0", "score": "0.5016901", "text": "public List<Field83A> getField83A() {\n\t\tif (getSwiftMessage() == null) {\n\t\t\tthrow new IllegalStateException(\"SwiftMessage was not initialized\");\n\t\t}\n\t\tif (getSwiftMessage().getBlock4() == null) {\n\t\t\tlog.info(\"block4 is null\");\n\t\t\treturn Collections.emptyList();\n\t\t} else {\n\t\t\tfinal Tag[] tags = getSwiftMessage().getBlock4().getTagsByName(\"83A\");\n\t\t\tfinal List<Field83A> result = new ArrayList<Field83A>();\n\t\t\tfor (int i=0; i<tags.length; i++) {\n\t\t\t\tresult.add(new Field83A(tags[i].getValue()));\n\t\t\t}\n\t\t\treturn result;\n\t\t}\n\t}", "title": "" }, { "docid": "24466174f175ae84842a3a43f270902b", "score": "0.5001885", "text": "public Field getField( String fieldName ) {\n \n //If the object is null then create it\n Field aField = null;\n if( fieldList != null )\n aField = fieldList.getField(fieldName);\n \n return aField;\n }", "title": "" }, { "docid": "253fe5abd78f11417dd001fad600240e", "score": "0.4976369", "text": "public Field get_public_field(String fieldName) {\n\t\tField[] f = this.c.getFields();\n\t\tfor(int i=0;i<f.length;i++) {\n\t\t\tif(f[i].getName().equals(fieldName)) {\n\t\t\t\treturn f[i];\n\t\t\t}\n\t\t}\n\n\t\treturn null;\n\t}", "title": "" }, { "docid": "9b19f0aaff4a90638c0f7fd9536a5693", "score": "0.49762988", "text": "private static NpdField findField(List<NpdField> fields, String npdId)\n {\n for (NpdField field : fields)\n if (field.getNpdId().equals(npdId))\n return field;\n\n // Not found\n return null;\n }", "title": "" }, { "docid": "b2ff5395bd470b457a6bf822db7fe023", "score": "0.49350756", "text": "public UMLField getField(String name) {\r\n if (name == null) {\r\n return null;\r\n }\r\n\r\n Component[] children = getComponents();\r\n for (int ndx = 0; ndx < children.length; ndx++) {\r\n if (children[ndx] instanceof UMLField) {\r\n UMLField field = (UMLField)children[ndx];\r\n if (name.equals(field.getSummary().getName())) {\r\n return field;\r\n }\r\n }\r\n }\r\n return null; // Not found\r\n }", "title": "" }, { "docid": "e1c1572ed0b72295a6d7150474b0b2fe", "score": "0.49284673", "text": "public List<Field58J> getField58J() {\n\t\tif (getSwiftMessage() == null) {\n\t\t\tthrow new IllegalStateException(\"SwiftMessage was not initialized\");\n\t\t}\n\t\tif (getSwiftMessage().getBlock4() == null) {\n\t\t\tlog.info(\"block4 is null\");\n\t\t\treturn Collections.emptyList();\n\t\t} else {\n\t\t\tfinal Tag[] tags = getSwiftMessage().getBlock4().getTagsByName(\"58J\");\n\t\t\tfinal List<Field58J> result = new ArrayList<Field58J>();\n\t\t\tfor (int i=0; i<tags.length; i++) {\n\t\t\t\tresult.add(new Field58J(tags[i].getValue()));\n\t\t\t}\n\t\t\treturn result;\n\t\t}\n\t}", "title": "" }, { "docid": "4bf63d7496878b10931f0b49d2496601", "score": "0.4910862", "text": "public static MetadataField findField(String key) {\n return fieldMap.get(key.toLowerCase());\n }", "title": "" }, { "docid": "1ea21752a97308a427068b8db1f0ab4a", "score": "0.49067378", "text": "protected T findOneObject(int columnIndex, Field field) throws IOException {\n\t\tField[] found = table.findRecords(field, columnIndex);\n\t\tif (found.length == 0) {\n\t\t\treturn null;\n\t\t}\n\t\tif (found.length != 1) {\n\t\t\tthrow new IllegalStateException(\"More than one match\");\n\t\t}\n\t\treturn getObjectAt(found[0].getLongValue());\n\t}", "title": "" }, { "docid": "4e422dcbc5033c18e0328287faab6347", "score": "0.49052626", "text": "public Field13E getField13E() {\n\t\tif (getSwiftMessage() == null) {\n\t\t\tthrow new IllegalStateException(\"SwiftMessage was not initialized\");\n\t\t}\n\t\tif (getSwiftMessage().getBlock4() == null) {\n\t\t\tlog.info(\"block4 is null\");\n\t\t\treturn null;\n\t\t} else {\n\t\t\tfinal Tag t = getSwiftMessage().getBlock4().getTagByName(\"13E\");\n\t\t\tif (t == null) {\n\t\t\t\tlog.fine(\"field 13E not found\");\n\t\t\t\treturn null;\n\t\t\t} else {\n\t\t\t\treturn new Field13E(t.getValue());\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "eacbcc36e10a8a71d78f77d6648fb9a8", "score": "0.4901931", "text": "default FieldDeclaration getVisibleField(String name) {\n Optional<FieldDeclaration> field = getVisibleFields().stream().filter(f -> f.getName().equals(name)).findFirst();\n if (field.isPresent()) {\n return field.get();\n } else {\n throw new IllegalArgumentException();\n }\n }", "title": "" }, { "docid": "164c512e7ae5e9efd027feb90eb4eb10", "score": "0.48965812", "text": "public FormDataBodyPart getField(String name) {\n FormDataBodyPart result = null;\n for (BodyPart bodyPart : getBodyParts()) {\n if (!(bodyPart instanceof FormDataBodyPart)) {\n continue;\n }\n if (name.equals(((FormDataBodyPart) bodyPart).getName())) {\n result = (FormDataBodyPart) bodyPart;\n }\n }\n return result;\n }", "title": "" }, { "docid": "f236541fee0ddc98f16fdbdea4319214", "score": "0.48808506", "text": "public abstract Field\t\t\t\tgetField(Chunk chunk, FieldType field);", "title": "" }, { "docid": "d431b0bcbb1ea1505a87804e93787f54", "score": "0.4870386", "text": "public C3433a2 mo55450b(String str) {\n LinkedHashMap<String, C3433a2> linkedHashMap = this.f1249k;\n if (linkedHashMap == null || str == null) {\n return null;\n }\n return linkedHashMap.get(str);\n }", "title": "" }, { "docid": "333f4e34903f377022bd2852ded67892", "score": "0.48686016", "text": "public List<Field56A> getField56A() {\n\t\tif (getSwiftMessage() == null) {\n\t\t\tthrow new IllegalStateException(\"SwiftMessage was not initialized\");\n\t\t}\n\t\tif (getSwiftMessage().getBlock4() == null) {\n\t\t\tlog.info(\"block4 is null\");\n\t\t\treturn Collections.emptyList();\n\t\t} else {\n\t\t\tfinal Tag[] tags = getSwiftMessage().getBlock4().getTagsByName(\"56A\");\n\t\t\tfinal List<Field56A> result = new ArrayList<Field56A>();\n\t\t\tfor (int i=0; i<tags.length; i++) {\n\t\t\t\tresult.add(new Field56A(tags[i].getValue()));\n\t\t\t}\n\t\t\treturn result;\n\t\t}\n\t}", "title": "" }, { "docid": "39a381b99ac24e81518e9caf3816b68a", "score": "0.4868074", "text": "Type_1 search_classtype_fields(String id)\n {\n for(int i=0;i<fieldname.size();i++)\n if(id==fieldname.get(i))\n return fieldtypes.get(i);\n \n \n //System.out.println(\"hhh\");\n return null;\n\n\n}", "title": "" }, { "docid": "2d694dff173d08e7632400aaf8048aa0", "score": "0.48657608", "text": "public Field15C getField15C() {\n\t\tif (getSwiftMessage() == null) {\n\t\t\tthrow new IllegalStateException(\"SwiftMessage was not initialized\");\n\t\t}\n\t\tif (getSwiftMessage().getBlock4() == null) {\n\t\t\tlog.info(\"block4 is null\");\n\t\t\treturn null;\n\t\t} else {\n\t\t\tfinal Tag t = getSwiftMessage().getBlock4().getTagByName(\"15C\");\n\t\t\tif (t == null) {\n\t\t\t\tlog.fine(\"field 15C not found\");\n\t\t\t\treturn null;\n\t\t\t} else {\n\t\t\t\treturn new Field15C(t.getValue());\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "bf2fb9d3b9bbb9f7d8065735e40d9838", "score": "0.4862472", "text": "Object fetchObjectField(int fieldNumber);", "title": "" }, { "docid": "78100f2ddd46a563ce269fe34bd9852d", "score": "0.4859866", "text": "public Object getFourth(String name)\n\t{\n\t\tint i;\n\n\t\tfor (i = 0; i < m_first.size(); i++)\n\t\t{\n\t\t\tif (((String)m_first.get(i)).equalsIgnoreCase(name))\n\t\t\t\treturn(m_fourth.get(i));\n\t\t}\n\t\treturn(null);\n\t}", "title": "" }, { "docid": "b40923a740715d2d2184a5d1d8aa69a5", "score": "0.48507103", "text": "public String getSpareField3() {\n return spareField3;\n }", "title": "" }, { "docid": "1137817875aeb01ab37cd07cb654b1a5", "score": "0.48412612", "text": "public class_257 method_161(String var1) {\n var1 = var1.trim();\n Iterator var2 = this.field_57.iterator();\n\n class_257 var3;\n do {\n if (!var2.hasNext()) {\n return null;\n }\n\n var3 = (class_257)var2.next();\n } while(var3.field_2275 == null || !var3.field_2275.equalsIgnoreCase(var1));\n\n return var3;\n }", "title": "" }, { "docid": "b9376cb70690bd3ac37a7e29d5ef7ec7", "score": "0.48395434", "text": "public FieldRef getFieldRef(long token) {\r\n\t\tlong type = (token >> 24) & 0xFFL;\r\n\t\tlong tokrow = (token & 0xFFFFFFL);\r\n\r\n\t\tif (type == tc.Field) {\r\n\t\t\treturn fields[(int) getField(tokrow) - 1];\r\n\t\t} else if (type == tc.MemberRef) {\r\n\t\t\treturn (FieldRef) memberRefs[(int) tokrow - 1];\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "53be752ce9e132f61f82a0860d440039", "score": "0.48336434", "text": "public Field130 getField130() {\n\t\tfinal Tag t = tag(\"130\");\n\t\tif (t != null) {\n\t\t\treturn new Field130(t.getValue());\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}", "title": "" }, { "docid": "ed683be89c2133d553389a5228b05c6e", "score": "0.4831078", "text": "public static AST getField(String fieldName, ClassDecl cd) {\n\n\t\t// YOUR CODE HERE\n\t\treturn null;\n\t}", "title": "" }, { "docid": "10e10638ffd9c78c9788d3c3bf8f21d6", "score": "0.4826362", "text": "public Field getPKField(int no)\r\n {\r\n int i;\r\n for (i=0; i<keys.size(); i++)\r\n {\r\n Key key = (Key) keys.elementAt(i);\r\n if (key.primary != true)\r\n continue;\r\n if (no < key.list.size())\r\n return (Field) key.list.elementAt(no);\r\n break;\r\n }\r\n return null;\r\n }", "title": "" }, { "docid": "5dc5f32bca3da776ac935204e002af2e", "score": "0.48241597", "text": "public Fragment mo4829b(String str) {\n Fragment findFragmentByWho;\n for (Fragment next : this.f2342g.values()) {\n if (next != null && (findFragmentByWho = next.findFragmentByWho(str)) != null) {\n return findFragmentByWho;\n }\n }\n return null;\n }", "title": "" }, { "docid": "7db2777a1030f012199707d0ef6660b6", "score": "0.48183924", "text": "public Field129 getField129() {\n\t\tfinal Tag t = tag(\"129\");\n\t\tif (t != null) {\n\t\t\treturn new Field129(t.getValue());\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}", "title": "" }, { "docid": "2fd1f354f9194df67ba584d10a099096", "score": "0.48179218", "text": "public java.lang.String getCustomField92(){\n return localCustomField92;\n }", "title": "" }, { "docid": "1ad32d813389f63981cfcfa064a77ab5", "score": "0.48167804", "text": "Field getField();", "title": "" }, { "docid": "fb3883e8b2444afcb228733024337faf", "score": "0.48162276", "text": "public Fragment mo4804a(int i) {\n for (int size = this.f2341f.size() - 1; size >= 0; size--) {\n Fragment fragment = this.f2341f.get(size);\n if (fragment != null && fragment.mFragmentId == i) {\n return fragment;\n }\n }\n for (Fragment next : this.f2342g.values()) {\n if (next != null && next.mFragmentId == i) {\n return next;\n }\n }\n return null;\n }", "title": "" }, { "docid": "d1b416bf0e697c38ee3d0278a4d37fe2", "score": "0.4810315", "text": "public List<Field33B> getField33B() {\n\t\tif (getSwiftMessage() == null) {\n\t\t\tthrow new IllegalStateException(\"SwiftMessage was not initialized\");\n\t\t}\n\t\tif (getSwiftMessage().getBlock4() == null) {\n\t\t\tlog.info(\"block4 is null\");\n\t\t\treturn Collections.emptyList();\n\t\t} else {\n\t\t\tfinal Tag[] tags = getSwiftMessage().getBlock4().getTagsByName(\"33B\");\n\t\t\tfinal List<Field33B> result = new ArrayList<Field33B>();\n\t\t\tfor (int i=0; i<tags.length; i++) {\n\t\t\t\tresult.add(new Field33B(tags[i].getValue()));\n\t\t\t}\n\t\t\treturn result;\n\t\t}\n\t}", "title": "" }, { "docid": "2774579450a5f67569ffacdb3cac8083", "score": "0.48070908", "text": "protected String getMultipartField(String name) {\n\n if (getMultipartFields() != null) {\n\n FileItem fileItem = getMultipartFields().get(name);\n\n if (fileItem != null) {\n return fileItem.getString();\n }\n }\n\n return StringPool.BLANK;\n }", "title": "" }, { "docid": "b5f3d8ba9c9d24f4e1466c278698fadd", "score": "0.47979465", "text": "public String getFieldValue(String name) {\r\n\t\tfor (MimeEntity p : parts)\r\n\t\t\tif ((p instanceof PartField) && ((PartField)p).getName().equals(name))\r\n\t\t\t\treturn ((PartField)p).getValue();\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "326cae70ff4e3d1d1163d5193b9d27d1", "score": "0.4793554", "text": "public Optional<String> getFirstValue(String index, String incrementingFieldName) throws IOException {\n final SearchRequest searchRequest = new SearchRequest(index);\n final SearchSourceBuilder searchSourceBuilder = new SearchSourceBuilder();\n searchSourceBuilder\n .query(matchAllQuery())\n .sort(incrementingFieldName, SortOrder.ASC)\n .size(1);\n searchRequest.source(searchSourceBuilder);\n\n SearchResponse searchResponse = retryOnFailure(() -> {\n logger.debug(\"Get first value of field: {} on index: {} - Complete request: {}\", incrementingFieldName, index, searchRequest);\n final SearchResponse response = client.search(searchRequest);\n return response;\n });\n\n final SearchHits hits = searchResponse.getHits();\n if (hits == null || hits.totalHits == 0 || hits.getHits() == null || hits.getHits().length == 0 || !hits.getHits()[0].getSourceAsMap().containsKey(incrementingFieldName)) {\n logger.warn(\"No first value found for field: {} - Complete response: {}\", incrementingFieldName, searchResponse);\n return Optional.empty();\n } else {\n final String firstValue = hits.getHits()[0].getSourceAsMap().get(incrementingFieldName).toString();\n logger.debug(\"First value found for : {} -> {}\", incrementingFieldName, firstValue);\n return Optional.of(firstValue);\n }\n }", "title": "" }, { "docid": "a0d9c140ab19db63c44aad1813ad8ab0", "score": "0.47909012", "text": "public AsteroidField GetField() {\n Logger.logMessage(\"Sun#\" + Integer.toHexString(this.hashCode()) + \".GetField()\");\n Logger.tabcount--;\n return field;\n }", "title": "" }, { "docid": "07eaa2efcdd440a57abafbe95d34b0ea", "score": "0.4788995", "text": "private SolrField getLeadingField(){\n \n if(searchConfigurations.get(IdParam.IDNO).hasConstraint()) return SolrField.idno_led_path;\n if(searchConfigurations.get(IdParam.SERIES).hasConstraint()) return SolrField.series_led_path;\n if(searchConfigurations.get(IdParam.COLLECTION).hasConstraint()) return SolrField.series_led_path;\n if(searchConfigurations.get(IdParam.VOLUME).hasConstraint()) return SolrField.volume_led_path; \n return SolrField.series_led_path;\n \n }", "title": "" }, { "docid": "2ba0cfcf9cf95257273591740cb9fd05", "score": "0.47835633", "text": "public java.lang.Object get(int field$) {\n switch (field$) {\n case 0: return recordNo;\n case 1: return serialNo;\n case 2: return flagNetRoadID;\n case 3: return flagRoadID;\n case 4: return flagID;\n case 5: return obuType;\n case 6: return obuMacID;\n case 7: return obuNum;\n case 8: return payCardID;\n case 9: return payCardType;\n case 10: return iccIssuer;\n case 11: return cpuCardID;\n case 12: return vehicleType;\n case 13: return vehPlate;\n case 14: return vehColor;\n case 15: return opTime;\n case 16: return direction;\n case 17: return vehStatus;\n case 18: return spare1;\n case 19: return spare2;\n case 20: return spare3;\n case 21: return spare4;\n default: throw new org.apache.avro.AvroRuntimeException(\"Bad index\");\n }\n }", "title": "" }, { "docid": "7fca91effc6c195fee379e5a50f3165d", "score": "0.4782672", "text": "public HeaderLine getHeader(String field) {\n if (field != null && field.length() > 0) {\n return header.headerMap.get(field.toLowerCase());\n } else {\n return null;\n }\n }", "title": "" }, { "docid": "12cccf68cab0ca740922b06a8fc968cc", "score": "0.4769016", "text": "public void getBlock92(class_1583 var1) {\r\n super.getBlock92(var1);\r\n String[] var2 = field_2568;\r\n this.field_2560 = aji.method_2416(var1.method_8681(\"blockId\"));\r\n this.field_2561 = var1.method_8681(\"blockData\");\r\n this.field_2562 = var1.method_8681(\"facing\");\r\n this.field_2566 = this.field_2565 = var1.method_8683(\"progress\");\r\n this.field_2563 = var1.method_8690(\"extending\");\r\n }", "title": "" }, { "docid": "94aec9df3c9ef12ae528e66b0f4caf1b", "score": "0.4762545", "text": "@Override\n\tpublic WholeNumber getNumberFromFind(NumberMatch find) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "8aee727d8faf1bd666cc6ed4db74df28", "score": "0.47589076", "text": "public int getMR(){\n try{\n return Integer.parseInt(getSubfieldContent(\"4741\"));\n }catch(Exception e){\n return 0;\n }\n\n }", "title": "" }, { "docid": "6272be0cb58de66680c7958fff0faeee", "score": "0.4756713", "text": "public List<Field57A> getField57A() {\n\t\tif (getSwiftMessage() == null) {\n\t\t\tthrow new IllegalStateException(\"SwiftMessage was not initialized\");\n\t\t}\n\t\tif (getSwiftMessage().getBlock4() == null) {\n\t\t\tlog.info(\"block4 is null\");\n\t\t\treturn Collections.emptyList();\n\t\t} else {\n\t\t\tfinal Tag[] tags = getSwiftMessage().getBlock4().getTagsByName(\"57A\");\n\t\t\tfinal List<Field57A> result = new ArrayList<Field57A>();\n\t\t\tfor (int i=0; i<tags.length; i++) {\n\t\t\t\tresult.add(new Field57A(tags[i].getValue()));\n\t\t\t}\n\t\t\treturn result;\n\t\t}\n\t}", "title": "" }, { "docid": "6524915f5af92963e500cde7d96886f3", "score": "0.47525758", "text": "public static SignatureType resolveJce( String jce )\n\t{\n\t\tfor ( SignatureType signatureType : values() )\n\t\t{\n\t\t\tif ( jce.equals( signatureType.jce() ) )\n\t\t\t{\n\t\t\t\treturn signatureType;\n\t\t\t}\n\t\t}\n\n\t\treturn null;\n\t}", "title": "" }, { "docid": "37bbfe0836716b8d9a834ec39082eea8", "score": "0.4752372", "text": "public java.lang.String getFieldNotFound()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(FIELDNOTFOUND$0, 0);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "title": "" }, { "docid": "bf7dd693e44ccf7895a784896e57f9e4", "score": "0.47523493", "text": "public String mo47657f() {\n if (f31442j == null || this.f31443h == null || !f31442j.mo47644d(this.f31443h)) {\n return null;\n }\n return f31442j.mo47643c(this.f31443h);\n }", "title": "" }, { "docid": "0bdfd5c74ef347f58dcfee780f902325", "score": "0.47514153", "text": "private Element getFurthestBlock(Element formattingElement) {\n\n Element furthestBlock = null;\n\n for (int idx = openElements.size() - 1; idx >= 0; idx--) {\n Element currentOpenElement = openElements.get(idx);\n if (Common.isSpecialCategory(currentOpenElement)) {\n furthestBlock = currentOpenElement;\n }\n\n if (currentOpenElement == formattingElement && furthestBlock != null) {\n return furthestBlock;\n }\n }\n\n return null;\n }", "title": "" }, { "docid": "84bda627329ab32eb3e9a2b99e0b2e72", "score": "0.47497383", "text": "public java.lang.String getCustomField94(){\n return localCustomField94;\n }", "title": "" } ]
55404b5cc4e96dabc48d2f61ad20025c
Calls the render method of all Tiles making up this Board, ending with the highlighted tiles so the highlight borders aren't covered up by other tiles.
[ { "docid": "1e3b25150f3fa5c7c669b7896f236cc5", "score": "0.65257454", "text": "public void render(Graphics2D g2D){\r\n int i;\r\n\r\n for(i = 0; i < tileList.length; i++){\r\n tileList[i].render(g2D);\r\n }\r\n if(lastHighlighted != null) {\r\n\t for(i = 0; i < lastHighlighted.length; i++){\r\n\t \tif(lastHighlighted[i]!=null) {\r\n\t \t\tlastHighlighted[i].render(g2D);\r\n\t \t}\r\n\t }\r\n }\r\n if(lastSelected != null) \r\n \t lastSelected.render(g2D);\r\n }", "title": "" } ]
[ { "docid": "c517002880e31391bedd0673dd34aaf5", "score": "0.66024727", "text": "private void renderInLayer() {\n for (String tileKey:TILE_LAYER) {\n renderTileList(tileMap.get(tileKey));\n }\n }", "title": "" }, { "docid": "2f874bdd10b25b251cd03e7616fdcbb2", "score": "0.6345046", "text": "public void renderTiles(Screen screen){\r\n\r\n\t\tfor(int y = 0; y < height;y++){\r\n\t\t\tfor(int x = 0; x < width;x++){\r\n\t\t\t\tgetTile(x,y).render(screen,this,x<<3,y<<3);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t}", "title": "" }, { "docid": "3ed360a05379ae5ee94343588b6e3faf", "score": "0.63288885", "text": "public void render()\r\n\t{\r\n\t\tbottom.render();\r\n\t\t\r\n\t\tRenderer.addTile(\r\n\t\t\t\tTile.models.get(Tile.TILE_TREE).get(0).vertex_data_array, \r\n\t\t\t\tx + rx, y + ry, 0.0f, \r\n\t\t\t\t0.5f, 0.5f, 1.0f\r\n\t\t\t);\r\n\t\t\r\n\t\tRenderer.addTile(\r\n\t\t\t\tTile.models.get(Tile.TILE_TREE).get(1).vertex_data_array, \r\n\t\t\t\tx + rx, y + ry, 0.9f, \r\n\t\t\t\t0.8f, 0.8f, 0.8f\r\n\t\t\t);\r\n\t}", "title": "" }, { "docid": "28836173d2cb74ef848fc4b5d61277d4", "score": "0.62071687", "text": "public void render(Graphics g){\n int xStart = (int) Math.max(0, handler.getGameCamera().getxOffset() / Tile.TILEWIDTH ); // divide by Tiles to get in Tiles not pixels\n int xEnd = (int) Math.min(handler.getWorld().getWidth(), (handler.getGameCamera().getxOffset() + handler.getWidth()) / Tile.TILEWIDTH + 1);\n int yStart = (int)Math.max(0, handler.getGameCamera().getyOffset() / Tile.TILEHEIGHT);\n int yEnd = (int) Math.min(handler.getWorld().getHeight(), (handler.getGameCamera().getyOffset() + handler.getHeight()) / Tile.TILEHEIGHT + 1);\n\n // Render World Layer\n for(int y = yStart; y < yEnd; y++){\n for(int x = xStart; x < xEnd; x++){\n if(getTile(x,y).getId() == 1403){\n System.out.println(\"0 TILE!!!!!\");\n }\n else {\n getTile(x, y).render(g, (int) (x * Tile.TILEWIDTH - handler.getGameCamera().getxOffset()), (int) (y * Tile.TILEHEIGHT - handler.getGameCamera().getyOffset()));\n getSolidTile(x, y).render(g, (int) (x * Tile.TILEWIDTH - handler.getGameCamera().getxOffset()), (int) (y * Tile.TILEHEIGHT - handler.getGameCamera().getyOffset()));\n }\n }\n }\n\n }", "title": "" }, { "docid": "92464f9d08253cd12127d76e00584684", "score": "0.6102466", "text": "private void drawSelectedTiles(Graphics2D g) {\n if (!selectingTiles) {\n // Make the selected tiles appear to be on a 32 * 32 grid.\n int xAdjusted = (getMousePosition().x / 32 * 32);\n int yAdjusted = (getMousePosition().y / 32 * 32);\n \n for (int y = 0; y < selection.getHeight(); y++) {\n for (int x = 0; x < selection.getWidth(); x++) {\n // Offset the selections position by half its size (selection width and height), so it is centered at the position of the mouse cursor.\n int offsetX = (x - (selection.getWidth() / 2)) * 32;\n int offsetY = (y - (selection.getHeight() / 2)) * 32;\n \n getMapPanelPainter().drawTile(g, xAdjusted + offsetX, yAdjusted + offsetY, selection.getTileSelection()[y][x]);\n }\n }\n \n if (Settings.highlistSelection()) {\n int xPos = xAdjusted;\n int yPos = yAdjusted;\n int sWidth = selection.getWidth() * 32;\n int sHeight = selection.getHeight() * 32;\n \n xPos -= (sWidth / 2);\n yPos -= (sHeight / 2);\n \n if (selection.getWidth() % 2 != 0) {\n xPos += 16;\n }\n \n if (selection.getHeight() % 2 != 0) {\n yPos += 16;\n }\n \n drawSelectionRect(g, xPos, yPos, sWidth, sHeight);\n }\n }\n }", "title": "" }, { "docid": "20bd56af7dba2561231b224646e7eac5", "score": "0.6077571", "text": "@Override\r\n\t\tprotected void render() {\n\t\t\tglRender(new GLRenderable() {\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void render() {\r\n\t\t\t\t\tglBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);\r\n\t\t\t\t\tglDisable(GL_TEXTURE_2D);\r\n\t\t\t\t\tglEnable(GL_BLEND);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\r\n\t\t\tint n = areas.size();\r\n\t\t\tboolean foundHover = false;\r\n\t\t\tfor (int i = n; -- i >= 0; ) {\r\n\t\t\t\tArea area = areas.get(i);\r\n\t\t\t\tboolean hover = false;\r\n\t\t\t\tRectangle r = (Rectangle) area.getBounds();\r\n\t\t\t\tif (r == null) {\r\n\t\t\t\t\tReadablePoint p = area.getPosition();\r\n\t\t\t\t\tSpriteImage si = area.getCurrentImage();\r\n\t\t\t\t\tif (si != null && p != null) {\r\n\t\t\t\t\t\tr = new Rectangle(p.getX(), p.getY(), si.getWidth(), si.getHeight());\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif (!foundHover && r != null) {\r\n\t\t\t\t\tif (r.contains(mouseX, mouseY)) {\r\n\t\t\t\t\t\tfoundHover = true;\r\n\t\t\t\t\t\thover = true;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif (r != null) {\r\n\t\t\t\t\trenderMonkeyedArea(area.getID(), r, hover);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}", "title": "" }, { "docid": "7356f1e29e2281c616b8aeb3d93b1b50", "score": "0.6048739", "text": "public void setTileBackgrounds(){\n\t\t\n\t\t//Sets up the normal board \n\t\tfor(int i = 0; i < tileButtons.length; i++){\n\t\t\tfor(int j = 0; j < tileButtons[i].length; j++){\n\t\t\t\t\n\t\t\t\tif( board.getTile(i,j).isPassable() ){\n\t\t\t\t\ttileButtons[i][j].setBackground( (board.settingUp() ? new Color(150,0,0) : grassColor ) );\n\t\t\t\t} else if( !board.getTile(i,j).isPassable() ){\n\t\t\t\t\ttileButtons[i][j].setBackground( waterColor );\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\t//Highlights working area if setting up\n\t\tif( board.settingUp() ){\n\t\t\t\n\t\t\tif( board.getTurn() ){\n\t\t\t\t//highlights for the Red team\n\t\t\t\tfor(int i = 0; i < 4; i++){\n\t\t\t\t\tfor(int j = 0; j < tileButtons[i].length; j++){\n\t\t\t\t\t\t\n\t\t\t\t\t\ttileButtons[i][j].setBackground( grassColor );\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\t//Highlights for the Blue team\n\t\t\t\tfor(int i = board.getWidth() - 1; i > 5; i--){\n\t\t\t\t\tfor(int j = 0; j < tileButtons[i].length; j++){\n\t\t\t\t\t\t\n\t\t\t\t\t\ttileButtons[i][j].setBackground( grassColor );\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "7ea8d445c3b56cf44f35ed740b539bf3", "score": "0.601985", "text": "public void decorateLevel() {\n\t\tfor(int x = 0; x < width; x++) {\n\t\t\tfor (int y = 0; y < height; y++) {\n\t\t\t\tTile cur = getTileOrNull(x, y);\n\n\t\t\t\tif(cur == null) {\n\t\t\t\t\t// if there is open space next to this, make this a real tile to paint it\n\t\t\t\t\tif(adjacentToOpenSpace(x,y)) {\n\t\t\t\t\t\tcur = Tile.NewSolidTile();\n\t\t\t\t\t\tsetTile(x, y, cur);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif(cur == null) continue;\n\n\t\t\t\t// now pick tile textures\n\t\t\t\tif(wallPainter != null) {\n\t\t\t\t\tString k = Integer.toString(cur.wallTex);\n\t\t\t\t\tif(wallPainter.containsKey(k)) {\n\t\t\t\t\t\tArray<Float> list = wallPainter.get(k);\n\t\t\t\t\t\tfloat f = list.get(Game.rand.nextInt(list.size));\n\t\t\t\t\t\tcur.wallTex = (byte)f;\n\t\t\t\t\t}\n\n\t\t\t\t\tk = Integer.toString(cur.wallBottomTex != null ? cur.wallBottomTex : cur.wallTex);\n\t\t\t\t\tif(wallPainter.containsKey(k)) {\n\t\t\t\t\t\tArray<Float> list = wallPainter.get(k);\n\t\t\t\t\t\tfloat f = list.get(Game.rand.nextInt(list.size));\n\t\t\t\t\t\tcur.wallBottomTex = (byte)f;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tif(genTheme != null) {\n\t\t\t\t\t\tcur.eastTex = genTheme.getWallTexture(cur.getWallTex(TileEdges.East), cur.getWallTexAtlas(TileEdges.East));\n\t\t\t\t\t\tcur.westTex = genTheme.getWallTexture(cur.getWallTex(TileEdges.West), cur.getWallTexAtlas(TileEdges.West));\n\t\t\t\t\t\tcur.northTex = genTheme.getWallTexture(cur.getWallTex(TileEdges.North), cur.getWallTexAtlas(TileEdges.North));\n\t\t\t\t\t\tcur.southTex = genTheme.getWallTexture(cur.getWallTex(TileEdges.South), cur.getWallTexAtlas(TileEdges.South));\n\t\t\t\t\t\tcur.bottomEastTex = genTheme.getWallTexture(cur.getWallBottomTex(TileEdges.East), cur.getWallBottomTexAtlas(TileEdges.East));\n\t\t\t\t\t\tcur.bottomWestTex = genTheme.getWallTexture(cur.getWallBottomTex(TileEdges.West), cur.getWallBottomTexAtlas(TileEdges.West));\n\t\t\t\t\t\tcur.bottomNorthTex = genTheme.getWallTexture(cur.getWallBottomTex(TileEdges.North), cur.getWallBottomTexAtlas(TileEdges.North));\n\t\t\t\t\t\tcur.bottomSouthTex = genTheme.getWallTexture(cur.getWallBottomTex(TileEdges.South), cur.getWallBottomTexAtlas(TileEdges.South));\n\t\t\t\t\t\tcur.wallBottomTex = genTheme.getWallTexture(cur.wallBottomTex != null ? cur.wallBottomTex : cur.wallTex, cur.wallBottomTexAtlas != null ? cur.wallBottomTexAtlas : cur.wallTexAtlas);\n\t\t\t\t\t\tcur.wallTex = genTheme.getWallTexture(cur.wallTex, cur.wallTexAtlas);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif(floorPainter != null) {\n\t\t\t\t\tString k = Integer.toString(cur.floorTex);\n\t\t\t\t\tif(floorPainter.containsKey(k)) {\n\t\t\t\t\t\tArray<Float> list = floorPainter.get(k);\n\t\t\t\t\t\tfloat f = list.get(Game.rand.nextInt(list.size));\n\t\t\t\t\t\tcur.floorTex = (byte)f;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tif(genTheme != null)\n\t\t\t\t\t\tcur.floorTex = genTheme.getFloorTexture(cur.floorTex, cur.floorTexAtlas);\n\t\t\t\t}\n\n\t\t\t\tif(ceilPainter != null) {\n\t\t\t\t\tString k = Integer.toString(cur.ceilTex);\n\t\t\t\t\tif(ceilPainter.containsKey(k)) {\n\t\t\t\t\t\tArray<Float> list = ceilPainter.get(k);\n\t\t\t\t\t\tfloat f = list.get(Game.rand.nextInt(list.size));\n\t\t\t\t\t\tcur.ceilTex = (byte)f;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tif(genTheme != null)\n\t\t\t\t\t\tcur.ceilTex = genTheme.getCeilingTexture(cur.ceilTex, cur.ceilTexAtlas);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t/* SECOND PASS\n\t\t * Place the GenInfo objects.\n\t\t */\n\t\tfor(int x = 0; x < width; x++) {\n\t\t\tfor(int y = 0; y < height; y++) {\n\n\t\t\t\tTile cur = getTileOrNull(x,y);\n\t\t\t\tif(cur == null) continue;\n\n\t\t\t\t// modify how much we generate based on the graphics detail level\n\t\t\t\tfloat graphicsQualitySpawnMod = (1 + Options.instance.graphicsDetailLevel) / 2f;\n\t\t\t\tgraphicsQualitySpawnMod *= (graphicsQualitySpawnMod * 0.5f);\n\n\t\t\t\t// the gen info list spawns entities on tiles with matching textures\n\t\t\t\tif(genTheme != null && genTheme.genInfos != null && cur.CanDecorateHere()) {\n\n\t\t\t\t\tfor(GenInfo info : genTheme.genInfos) {\n\t\t\t\t\t\tif (info.placeInCorner != GenInfo.CornerPlacement.sometimes) {\n\t\t\t\t\t\t\tboolean inCorner = this.isCorner(x, y);\n\n\t\t\t\t\t\t\tif (inCorner && info.placeInCorner == GenInfo.CornerPlacement.never || !inCorner && info.placeInCorner == GenInfo.CornerPlacement.only) {\n\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// Check each neighbor tiles' upper and lower textures for a match\n\t\t\t\t\t\tboolean northWallMatch = false;\n\t\t\t\t\t\tboolean southWallMatch = false;\n\t\t\t\t\t\tboolean eastWallMatch = false;\n\t\t\t\t\t\tboolean westWallMatch = false;\n\n\t\t\t\t\t\tif (info.wallTex != null) {\n\t\t\t\t\t\t\tTile northTile = getNeighbor(x, y, Direction.NORTH);\n\t\t\t\t\t\t\tif (northTile != null) {\n\t\t\t\t\t\t\t\tboolean isWall = (northTile.renderSolid && northTile.blockMotion) || northTile.ceilHeight == northTile.floorHeight;\n\n\t\t\t\t\t\t\t\tif (isWall) {\n\t\t\t\t\t\t\t\t\tbyte northWallTex = northTile.southTex != null ? northTile.southTex : northTile.wallTex;\n\t\t\t\t\t\t\t\t\tbyte northBottomWallTex = northTile.wallTex;\n\t\t\t\t\t\t\t\t\tString northWallAtlas = (northTile.southTex != null && northTile.southTexAtlas != null) ? northTile.southTexAtlas : northTile.wallTexAtlas;\n\t\t\t\t\t\t\t\t\tString northBottomWallAtlas = \"\";\n\n\t\t\t\t\t\t\t\t\tif (northTile.bottomSouthTex != null) {\n\t\t\t\t\t\t\t\t\t\tnorthBottomWallTex = northTile.bottomSouthTex;\n\t\t\t\t\t\t\t\t\t\tnorthBottomWallAtlas = northTile.bottomSouthTexAtlas;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse if (northTile.wallBottomTex != null) {\n\t\t\t\t\t\t\t\t\t\tnorthBottomWallTex = northTile.wallBottomTex;\n\t\t\t\t\t\t\t\t\t\tnorthBottomWallAtlas = northTile.wallBottomTexAtlas;\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\tif ((info.wallTex == null || info.wallTex == northWallTex) && info.textureAtlas != null && info.textureAtlas.equals(northWallAtlas)) {\n\t\t\t\t\t\t\t\t\t\tnorthWallMatch = true;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse if (!northTile.renderSolid && (info.wallTex == null || info.wallTex == northBottomWallTex) && info.textureAtlas != null && info.textureAtlas.equals(northBottomWallAtlas)) {\n\t\t\t\t\t\t\t\t\t\tnorthWallMatch = true;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tTile southTile = getNeighbor(x, y, Direction.SOUTH);\n\t\t\t\t\t\t\tif (southTile != null) {\n\t\t\t\t\t\t\t\tboolean isWall = (southTile.renderSolid && southTile.blockMotion) || southTile.ceilHeight == southTile.floorHeight;\n\n\t\t\t\t\t\t\t\tif (isWall) {\n\t\t\t\t\t\t\t\t\tbyte southWallTex = southTile.northTex != null ? southTile.northTex : southTile.wallTex;\n\t\t\t\t\t\t\t\t\tbyte southBottomWallTex = southTile.wallTex;\n\t\t\t\t\t\t\t\t\tString southWallAtlas = (southTile.northTex != null && southTile.northTexAtlas != null) ? southTile.northTexAtlas : southTile.wallTexAtlas;\n\t\t\t\t\t\t\t\t\tString southBottomWallAtlas = \"\";\n\n\t\t\t\t\t\t\t\t\tif (southTile.bottomNorthTex != null) {\n\t\t\t\t\t\t\t\t\t\tsouthBottomWallTex = southTile.bottomNorthTex;\n\t\t\t\t\t\t\t\t\t\tsouthBottomWallAtlas = southTile.bottomNorthTexAtlas;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse if (southTile.wallBottomTex != null) {\n\t\t\t\t\t\t\t\t\t\tsouthBottomWallTex = southTile.wallBottomTex;\n\t\t\t\t\t\t\t\t\t\tsouthBottomWallAtlas = southTile.wallBottomTexAtlas;\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\tif ((info.wallTex == null || info.wallTex == southWallTex) && info.textureAtlas != null && info.textureAtlas.equals(southWallAtlas)) {\n\t\t\t\t\t\t\t\t\t\tsouthWallMatch = true;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse if (!southTile.renderSolid && (info.wallTex == null || info.wallTex == southBottomWallTex) && info.textureAtlas != null && info.textureAtlas.equals(southBottomWallAtlas)) {\n\t\t\t\t\t\t\t\t\t\tsouthWallMatch = true;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tTile eastTile = getNeighbor(x, y, Direction.EAST);\n\t\t\t\t\t\t\tif (eastTile != null) {\n\t\t\t\t\t\t\t\tboolean isWall = (eastTile.renderSolid && eastTile.blockMotion) || eastTile.ceilHeight == eastTile.floorHeight;\n\n\t\t\t\t\t\t\t\tif (isWall) {\n\t\t\t\t\t\t\t\t\tbyte eastWallTex = eastTile.westTex != null ? eastTile.westTex : eastTile.wallTex;\n\t\t\t\t\t\t\t\t\tbyte eastBottomWallTex = eastTile.wallTex;\n\t\t\t\t\t\t\t\t\tString eastWallAtlas = (eastTile.westTex != null && eastTile.westTexAtlas != null) ? eastTile.westTexAtlas : eastTile.wallTexAtlas;\n\t\t\t\t\t\t\t\t\tString eastBottomWallAtlas = \"\";\n\n\t\t\t\t\t\t\t\t\tif (eastTile.bottomWestTex != null) {\n\t\t\t\t\t\t\t\t\t\teastBottomWallTex = eastTile.bottomWestTex;\n\t\t\t\t\t\t\t\t\t\teastBottomWallAtlas = eastTile.bottomWestTexAtlas;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse if (eastTile.wallBottomTex != null) {\n\t\t\t\t\t\t\t\t\t\teastBottomWallTex = eastTile.wallBottomTex;\n\t\t\t\t\t\t\t\t\t\teastBottomWallAtlas = eastTile.wallTexAtlas;\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\tif ((info.wallTex == null || info.wallTex == eastWallTex) && info.textureAtlas != null && info.textureAtlas.equals(eastWallAtlas)) {\n\t\t\t\t\t\t\t\t\t\teastWallMatch = true;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse if (!eastTile.renderSolid && (info.wallTex == null || info.wallTex == eastBottomWallTex) && info.textureAtlas != null && info.textureAtlas.equals(eastBottomWallAtlas)) {\n\t\t\t\t\t\t\t\t\t\teastWallMatch = true;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tTile westTile = getNeighbor(x, y, Direction.WEST);\n\t\t\t\t\t\t\tif (westTile != null) {\n\t\t\t\t\t\t\t\tboolean isWall = (westTile.renderSolid && westTile.blockMotion) || westTile.ceilHeight == westTile.floorHeight;\n\n\t\t\t\t\t\t\t\tif (isWall) {\n\t\t\t\t\t\t\t\t\tbyte westWallTex = westTile.eastTex != null ? westTile.eastTex : westTile.wallTex;\n\t\t\t\t\t\t\t\t\tbyte westBottomWallTex = westTile.wallTex;\n\t\t\t\t\t\t\t\t\tString westWallAtlas = (westTile.eastTex != null && westTile.eastTexAtlas != null) ? westTile.eastTexAtlas : westTile.wallTexAtlas;\n\t\t\t\t\t\t\t\t\tString westBottomWallAtlas = \"\";\n\n\t\t\t\t\t\t\t\t\tif (westTile.bottomEastTex != null) {\n\t\t\t\t\t\t\t\t\t\twestBottomWallTex = westTile.bottomEastTex;\n\t\t\t\t\t\t\t\t\t\twestBottomWallAtlas = westTile.bottomEastTexAtlas;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse if (westTile.wallBottomTex != null) {\n\t\t\t\t\t\t\t\t\t\twestBottomWallTex = westTile.wallBottomTex;\n\t\t\t\t\t\t\t\t\t\twestBottomWallAtlas = westTile.bottomWestTexAtlas;\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\tif ((info.wallTex == null || info.wallTex == westWallTex) && info.textureAtlas != null && info.textureAtlas.equals(westWallAtlas)) {\n\t\t\t\t\t\t\t\t\t\twestWallMatch = true;\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\tif (!westTile.renderSolid && (info.wallTex == null || info.wallTex == westBottomWallTex) && info.textureAtlas != null && info.textureAtlas.equals(westBottomWallAtlas)) {\n\t\t\t\t\t\t\t\t\t\twestWallMatch = true;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tboolean wallMatch = info.wallTex == null || northWallMatch || southWallMatch || eastWallMatch || westWallMatch;\n\t\t\t\t\t\tboolean ceilmatch = info.ceilTex == null || (cur.ceilTex == info.ceilTex && checkIfTextureAtlasesMatch(cur.ceilTexAtlas, info.textureAtlas));\n\t\t\t\t\t\tboolean floormatch = info.floorTex == null || (cur.floorTex == info.floorTex && checkIfTextureAtlasesMatch(cur.floorTexAtlas, info.textureAtlas));\n\n\t\t\t\t\t\t// don't spawn solid objects on Markers\n\t\t\t\t\t\tboolean canSpawnSolid = true;\n\t\t\t\t\t\tfor(int i = 0; i < editorMarkers.size; i++) {\n\t\t\t\t\t\t\tEditorMarker m = editorMarkers.get(i);\n\t\t\t\t\t\t\tif(m.x == x && m.y == y) {\n\t\t\t\t\t\t\t\tcanSpawnSolid = false;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif( wallMatch && ceilmatch && floormatch && (info.chance >= 1 || (Game.rand.nextFloat() <= info.chance * graphicsQualitySpawnMod)) ) {\n\n\t\t\t\t\t\t\t// add any marker\n\t\t\t\t\t\t\tif(info.marker != null && info.marker != Markers.none) {\n\t\t\t\t\t\t\t\teditorMarkers.add( new EditorMarker(info.marker, x,y) );\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t// copy and place the entity, if one was given\n\t\t\t\t\t\t\tif(info.spawns != null) {\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\tint num = 1;\n\t\t\t\t\t\t\t\t\tif(info.clusterCount > 1) num = Game.rand.nextInt(info.clusterCount) + 1;\n\t\t\t\t\t\t\t\t\tif(info.performanceControlledClustering) num *= Options.instance.gfxQuality;\n\t\t\t\t\t\t\t\t\tfor(int i = 0; i < num; i++) {\n\t\t\t\t\t\t\t\t\t\tArray<Entity> copyList = (Array<Entity>) KryoSerializer.copyObject(info.spawns);\n\n\t\t\t\t\t\t\t\t\t\tfor(Entity copy : copyList) {\n\t\t\t\t\t\t\t\t\t\t\t// might need to skip this.\n\t\t\t\t\t\t\t\t\t\t\tif(!canSpawnSolid) {\n\t\t\t\t\t\t\t\t\t\t\t\tif(copy.isSolid || (copy instanceof Group))\n\t\t\t\t\t\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\tcopy.x = x + 0.5f;\n\t\t\t\t\t\t\t\t\t\t\tcopy.y = y + 0.5f;\n\n\t\t\t\t\t\t\t\t\t\t\tif(info.clusterSpread != 0) {\n\t\t\t\t\t\t\t\t\t\t\t\tcopy.x += (Game.rand.nextFloat() * (info.clusterSpread * 2f)) - info.clusterSpread;\n\t\t\t\t\t\t\t\t\t\t\t\tcopy.y += (Game.rand.nextFloat() * (info.clusterSpread * 2f)) - info.clusterSpread;\n\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\tif (info.attachFloor) {\n\t\t\t\t\t\t\t\t\t\t\t\tcopy.z = cur.getFloorHeight(copy.x, copy.y) + 0.5f;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\t\t\t\tcopy.z += cur.getFloorHeight(copy.x, copy.y) + 0.5f;\n\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\tif(info.attachCeiling) {\n\t\t\t\t\t\t\t\t\t\t\t\tif(copy instanceof Sprite) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tcopy.z = cur.getCeilHeight(copy.x, copy.y) - 0.5f;\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\t\t\t\t\tcopy.z = (cur.getCeilHeight(copy.x, copy.y) + 0.5f) - copy.collision.z;\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\tif(info.attachWall) {\n\t\t\t\t\t\t\t\t\t\t\t\tif (northWallMatch) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tEntity northCopy = (Entity) KryoSerializer.copyObject(copy);\n\t\t\t\t\t\t\t\t\t\t\t\t\tdecorateWallWith(northCopy, Direction.NORTH, false, true, info.wallOffset);\n\t\t\t\t\t\t\t\t\t\t\t\t\tthis.addEntity(northCopy);\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t\tif (southWallMatch) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tEntity southCopy = (Entity) KryoSerializer.copyObject(copy);\n\t\t\t\t\t\t\t\t\t\t\t\t\tdecorateWallWith(southCopy, Direction.SOUTH, false, true, info.wallOffset);\n\t\t\t\t\t\t\t\t\t\t\t\t\tthis.addEntity(southCopy);\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t\tif (eastWallMatch) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tEntity eastCopy = (Entity) KryoSerializer.copyObject(copy);\n\t\t\t\t\t\t\t\t\t\t\t\t\tdecorateWallWith(eastCopy, Direction.EAST, false, true, info.wallOffset);\n\t\t\t\t\t\t\t\t\t\t\t\t\tthis.addEntity(eastCopy);\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t\tif (westWallMatch) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tEntity westCopy = (Entity) KryoSerializer.copyObject(copy);\n\t\t\t\t\t\t\t\t\t\t\t\t\tdecorateWallWith(westCopy, Direction.WEST, false, true, info.wallOffset);\n\t\t\t\t\t\t\t\t\t\t\t\t\tthis.addEntity(westCopy);\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t\t// We've already added a copy, clean this one up\n\t\t\t\t\t\t\t\t\t\t\t\tcopy.isActive = false;\n\t\t\t\t\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\tif(copy instanceof Group) {\n\t\t\t\t\t\t\t\t\t\t\t\tcopy.updateDrawable();\n\t\t\t\t\t\t\t\t\t\t\t\t((Group)copy).updateCollision();\n\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\tif(copy.isSolid || copy instanceof Group) {\n\t\t\t\t\t\t\t\t\t\t\t\tboolean isFree = isFree(copy.x - 0.5f, copy.y - 0.5f, copy.z, copy.collision, copy.stepHeight, copy.floating, null);\n\t\t\t\t\t\t\t\t\t\t\t\tboolean isEntityFree = checkEntityCollision(copy.x - 0.5f, copy.y - 0.5f, copy.z, copy.collision, null) == null;\n\n\t\t\t\t\t\t\t\t\t\t\t\t// Don't spawn this if something is already here!\n\t\t\t\t\t\t\t\t\t\t\t\tif (!isFree || !isEntityFree) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tcopy.isActive = false;\n\t\t\t\t\t\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\tthis.addEntity(copy);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tcatch (Exception ex) {\n\t\t\t\t\t\t\t\t\t//whoah?!\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Might need to repaint this tile\n\t\t\t\toverrideTileTextures(cur);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "af496d626dbd28f12f03c9fd36f26ec9", "score": "0.60087", "text": "private void draw() {\r\n\t\tfor (int i = 0; i < tileCols; i++) {\r\n\t\t\tfor (int j = 0; j < tileRows; j++) {\r\n\t\t\t\ttiles[i][j].tile.drawTo(pixmap, i * TILE_SIZE, j * TILE_SIZE);\r\n\t\t\t}\r\n\t\t}\r\n\t\ttexture = new Texture(pixmap);\r\n\t}", "title": "" }, { "docid": "4d16e37e79057de5069cc23933211724", "score": "0.6006853", "text": "private void renderBorder()\n\t{\n\t\t// A for each loop that renders all of the Pieces of the Border\n\t\t// to the screen.\n\t\tfor (Piece piece : border)\n\t\t{\n\t\t\tpiece.render();\n\t\t}\n\t}", "title": "" }, { "docid": "db9c2ee09d4bfb8a4803b76530fc5bbf", "score": "0.599723", "text": "public void draw( )\r\n {\r\n for( int i = 0; i < 4; i++ )\r\n {\r\n drawTile( i );\r\n }\r\n \r\n }", "title": "" }, { "docid": "10978a0f7936b783189bbc47fa9ee78b", "score": "0.59758544", "text": "private void draw() {\n backgroundGC.clearRect(0, 0, backgroundCanvas.getWidth(), backgroundCanvas.getHeight());\n charGC.clearRect(0, 0, charCanvas.getWidth(), charCanvas.getHeight());\n\n\n for (int i = 0; i < NUMROWS; i++) {\n for (int j = 0; j < NUMCOLS; j++) {\n tiles[i][j].draw(backgroundGC, charGC, game.getPlayer1());\n }\n }\n }", "title": "" }, { "docid": "547729c1bfb09a91b6572955e21c3e21", "score": "0.5967884", "text": "public void display() {\r\n\t\tfor (Tile tile : getTileList()){\r\n\t\t\ttile.display();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "4f806cfa4f3eb6ad588610c01e6a84b6", "score": "0.596455", "text": "private void drawBoard()\n {\n BranchGroup bg2 = new BranchGroup();\n for ( float x = -0.5f; x < 0.5f; x += 0.25f )\n {\n for ( float y = -0.5f; y < 0.5f; y += 0.25f )\n {\n for ( float z = -0.5f; z < 0.5f; z += 0.25f )\n {\n\n Tile3D tile = new Tile3D( x, y, z - 0.1f );\n tile.drawTile( bg2 );\n }\n }\n }\n su.addBranchGraph( bg2 );\n }", "title": "" }, { "docid": "25926b5537e9ecaba2a1ddf53a06a4f3", "score": "0.58947515", "text": "private static void renderTileList(ArrayList<Tile> tileList) {\n \tif (tileList != null) {\n \t\ttileList.forEach(Tile::render);\n \t}\n }", "title": "" }, { "docid": "0b47c6c76c08fed989f2b6cf1dab2a52", "score": "0.58947104", "text": "private void render() {\n\t\tbs = display.getCanvas().getBufferStrategy();\n\t\tif (bs == null) {\n\t\t\tdisplay.getCanvas().createBufferStrategy(3);\n\t\t\treturn;\n\t\t}\n\t\tg = bs.getDrawGraphics();\n\t\tfinal List<Cell> source = world.getGrid();\n\t\tfor (int col = 0; col < width; col++) {\n\t\t\tfor (int row = 0; row < height; row++) {\n\t\t\t\tif (0 < source.get(col + row * width).getAge()) {\n\t\t\t\t\tg.setColor(Color.yellow);\n\t\t\t\t} else {\n\t\t\t\t\tg.setColor(Color.black);\n\t\t\t\t}\n\t\t\t\tg.fillRect(col * scale, row * scale, scale, scale);\n\t\t\t}\n\t\t}\n\t\tbs.show();\n\t\tg.dispose();\n\t}", "title": "" }, { "docid": "1e75970d80766bedb55ae96c8119b6c3", "score": "0.58587706", "text": "private void paintBoard() {\n buildBoard();\n drawSquares();\n drawPieces();\n buildElements();\n currentBoard.printBoard();\n }", "title": "" }, { "docid": "c2f95250e70aa38f1f8bd4bfd6857ccd", "score": "0.58565617", "text": "public void render()\n\t{\n\t\t// Save the current matrix until after the transformations have\n\t\t// been made.\n\t\tGL.pushMatrix();\n\t\t{\n\t\t\t// Translate everything that will be rendered after this call\n\t\t\t// by (x, y) pixels.\n\t\t\tGL.translate(x, y, 0);\n\t\t\tGL.scale(3, 3, 1);\n\t\t\t\n\t\t\tboardImage.render();\n\t\t\t\n\t\t\t// A for each loop that renders all of the Pieces to the screen.\n\t\t\tfor (AbstractPiece piece : pieces)\n\t\t\t{\n\t\t\t\tpiece.render();\n\t\t\t}\n\t\t\t\n\t\t\trenderBorder();\n\t\t}\n\t\t// Return the the previous matrix formation.\n\t\tGL.popMatrix();\n\t}", "title": "" }, { "docid": "09c1e0cb7d5d6dda74f0d4b28a5051c2", "score": "0.5842235", "text": "@Override\r\n\tpublic void render(final Canvas canvas) throws Exception\r\n\t{\n\t\tif (getMaze() == null)\r\n\t\t\treturn;\r\n\t\t\r\n\t\tif (!getMaze().isGenerated())\r\n\t\t{\r\n\t\t\t//if not generated render progress\r\n\t\t\tgetMaze().render(canvas);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tfor (int row = 0; row < getMaze().getRows(); row++)\r\n\t\t\t{\r\n\t\t\t\tfor (int col = 0; col < getMaze().getCols(); col++)\r\n\t\t\t\t{\r\n\t\t\t\t\t//set the location\r\n\t\t\t\t\tsuper.setX(getCoordinateX(col, row));\r\n\t\t\t\t\tsuper.setY(getCoordinateY(col, row));\r\n\r\n\t\t\t\t\t//if the location is not on the screen we won't need to render\r\n\t\t\t\t\tif (getX() + getWidth() < 0 || getX() > GamePanel.WIDTH)\r\n\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\tif (getY() + getHeight() < 0 || getY() > GamePanel.HEIGHT)\r\n\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\r\n\t\t\t\t\t//assign the appropriate animation based on the room\r\n\t\t\t\t\tLabyrinthHelper.assignAnimation(this, getMaze().getRoom(col, row), hasIsometric());\r\n\t\t\t\t\t\r\n\t\t\t\t\t//render the current animation at the current location\r\n\t\t\t\t\tsuper.render(canvas);\r\n\t\t\t\t\t\r\n\t\t\t\t\t//if this is the goal, also render the goal tile \r\n\t\t\t\t\tif (getMaze().getFinishCol() == col && getMaze().getFinishRow() == row)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t//assign the goal key\r\n\t\t\t\t\t\tsuper.getSpritesheet().setKey(hasIsometric() ? TileKey.IsometricGoal : TileKey.TopDownGoal);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//draw it\r\n\t\t\t\t\t\tsuper.render(canvas);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (getMaze().getRoom(col, row).hasVisited())\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t//if we visited this tile, render overlay\r\n\t\t\t\t\t\tsuper.getSpritesheet().setKey(hasIsometric() ? TileKey.IsometricVisited : TileKey.TopDownVisited);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//draw it\r\n\t\t\t\t\t\tsuper.render(canvas);\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}", "title": "" }, { "docid": "255e9c4de65bff78ee9f47364a01530d", "score": "0.5797333", "text": "public static void paint() {\n\t\tgrid.getChildren().clear(); // clean up grid.\n\t\tint temp = 5;\n\t\tfor (int i = 0; i < temp; i ++) {\n\t\t\tfor (int j = 0; j < temp; j ++) {\n grid.add(getIcon(1),i,j);\n }\n\t\t}\n\t}", "title": "" }, { "docid": "37d0b7a4c33b846ce8e0c36f0fc69ade", "score": "0.57784545", "text": "private void render() {\n\n ArrayList<TreeNode> nodes = model.nodeList;\n int row = 0;\n\n int offset = scrollbar.getTopRow();\n logger.debug(\"Render \" + model.nodeList.size() + \" nodes. Visible \" + visibleRows + \". Offset \" + offset);\n\n for(int i=0;i<visibleRows;i++) {\n row = i + offset;\n if(row >= nodes.size()) {\n break;\n }\n if (row == model.getSelectedIndex()) {\n renderSelectionBox(i);\n }\n renderNode(nodes.get(row), i);\n }\n }", "title": "" }, { "docid": "7ff143db1964652a608a457970c378ed", "score": "0.5728896", "text": "public void tileGrid () {\n\n int increment = tileSize;\n for (int x = 0; x < chunkWidth; x += increment) {\n for (int y = 0; y < chunkHeight; y += increment) {\n\n // Check the index in terrain every ten (or whatever value is within increment)\n noFill();\n if (tileMap[x][y] != 'm') {\n if (terrain[x][y] >= treeline) {\n tileMap[x][y] = 't';\n } if (terrain[x][y] >= grass - 1) {\n tileMap[x][y] = 'g';\n } if (terrain[x][y] >= sand - 3) {\n tileMap[x][y] = 's';\n } if (terrain[x][y] >= deepWater - 2) {\n tileMap[x][y] = 'w';\n }\n }\n\n if (!createdSpriteLocations) {\n if (random(0, 10) < 0.3f && terrain[x][y] < deepWater - 10) {\n tileMap[x][y] = 'm';\n }\n if (terrain[x][y] >= treeline) {\n if (random(0, 10) < 5) {\n treeType[x][y] = 1;\n } else {\n treeType[x][y] = 2;\n }\n }\n if (x > chunkWidth - increment*3 && y > chunkHeight/2) {\n createdSpriteLocations = true;\n }\n }\n\n strokeWeight(1);\n noStroke();\n\n int tileX = x * tileSize / increment * blockSize - tileSize;\n int tileY = y * tileSize / increment * blockSize - tileSize;\n int ts = tileSize * blockSize;\n\n if (mouseX > tileX && mouseY > tileY && mouseX < tileX + ts && mouseY < tileY + ts) {\n fill(0, 0, 0, 100);\n hoveredTile = tileMap[x][y];\n } else {\n noFill();\n }\n\n rect(tileX, tileY, ts, ts);\n fill(20, 20, 20, 200);\n textAlign(CENTER, CENTER);\n // text(tileMap[x][y], tileX + ts / 2, tileY + ts / 2);\n if (tileMap[x][y] == 'm') {\n // println(\"called: X: \" + x + \", Y: \" + y);\n image(mountainSprite, tileX, tileY);\n }\n if (tileMap[x][y] == 't') {\n if (treeType[x][y] == 1) {\n image(tree1Sprite, tileX, tileY);\n } else {\n image(tree2Sprite, tileX, tileY);\n }\n }\n }\n }\n}", "title": "" }, { "docid": "3416b0a5b73986297e86a1cc612b623f", "score": "0.5684798", "text": "public void tileInternalFrames() {\n\t\tdesktopScrollpane.tileInternalFrames();\n\t}", "title": "" }, { "docid": "79cb2141d7c9a2d2d9ad5cd648ec913f", "score": "0.5675339", "text": "public void render() {\n renderInLayer();\n }", "title": "" }, { "docid": "79406283cc05f08b6b86fbd83f960b8f", "score": "0.56660366", "text": "private static void updateUnHighlightTiles(int noOfTiles){\n unHighlightedTiles = new HashSet<>();\n for (int i=0; i<noOfTiles ;i++){\n unHighlightedTiles.add(i);\n }\n }", "title": "" }, { "docid": "6fb2c131093de721427eb6ca1bcda58a", "score": "0.5640061", "text": "private void renderGrid(IntRange2D range, GameContainer gc, Graphics gfx)\n \t{\n \t\t\n\t\tgfx.pushTransform();\n\t\t\n \t\tgfx.setColor(Color.black);\n\t\tgfx.setLineWidth(1);\n\t\tgfx.scale(Game.tilesSize, Game.tilesSize);\n\t\t\n\t\tfor(int x = range.minX; x <= range.maxX; x++)\n\t\t\tgfx.drawLine(x, range.minY, x, range.maxY);\n\t\t\n\t\tfor(int y = range.minY; y <= range.maxY; y++)\n\t\t\tgfx.drawLine(range.minX, y, range.maxX, y);\n \t\t\n\t\tgfx.popTransform();\n \t}", "title": "" }, { "docid": "fb2daf877939149dee3246c3dc57df54", "score": "0.5629337", "text": "void highlight() {\n for (int dy = 1; dy < 24; dy++) {\n for (Location l : this.bLocs) { // Keep shifting piece down until one part hits a settled piece or the bottom\n if ((l.y + dy <= 23 && board.get(l.x).get(l.y + dy).settled) || l.y + dy == 24) {\n // We've hit something captain...\n for (Location m : this.bLocs) {\n if (m.y + dy <= 23)\n board.get(m.x).get(m.y + dy - 1).setStroke(this.color);\n else\n board.get(m.x).get(23).setStroke(this.color);\n }\n return;\n }\n }\n }\n }", "title": "" }, { "docid": "6f56db228d19feea84fdb3b473be699e", "score": "0.55934304", "text": "public void HighlightTiles(Token tok, int x, int y){\n\t\t//Clears the background of any selected item\n\t\tclearBoardBackground();\n\t\t\t\n\t\t//Sets the tiles that are passable as passable\n\t\tboard.setTilesPassable(tok, x, y);\n\t\t\n\t\t//Changes the background of all the tiles within range\n\t\tfor(int i = 0; i < tileButtons.length; i++){\n\t\t\tfor(int j = 0; j < tileButtons[i].length; j++){\n\t\t\t\t\n\t\t\t\tif( board.getTile(i,j).isPassable() && board.getTile(i, j).inRange() ){\n\t\t\t\t\ttileButtons[i][j].setBackground( highlightGrassColor );\n\t\t\t\t} \t\t\t\t\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "18120cb711bf57598ef92e1f1778e447", "score": "0.55772126", "text": "public void paint(Graphics g){\r\n\t\t\tif(DEBUG){System.out.println(\"DEBUG: Attempting to draw the board.\");}\r\n\t\t\tsuper.paint(g);\r\n\t\t\tTile[][] tiles = map.getTiles();\r\n\t\t\tfor(int y=0; y<MAP_SIZE;y++){\r\n\t\t\t\tfor(int x=0; x<MAP_SIZE; x++){\r\n\t\t\t\t\tg.drawImage(res.getImg(tiles[x][y].getImgID()), x*TILE_SIZE, y*TILE_SIZE, null);\r\n\t\t\t\t\tif(tiles[x][y].isBlood()){\r\n\t\t\t\t\t\tg.drawImage(res.getImg(\"blood\"), x*TILE_SIZE, y*TILE_SIZE, null);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(tiles[x][y].getInterObj() != null){\r\n\t\t\t\t\t\tg.drawImage(res.getImg(tiles[x][y].getInterObj().getName()), x*TILE_SIZE, y*TILE_SIZE, null);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(tiles[x][y].isDark()){\r\n\t\t\t\t\t\tg.drawImage(res.getImg(\"dark\"), x*TILE_SIZE, y*TILE_SIZE, null);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}", "title": "" }, { "docid": "2329d677cd7c9164def766bfb9895d0d", "score": "0.5527568", "text": "private void renderObjects(Layer layer, int x, int y, int sx, int sy) {\n DrawUtil.setLineWidth(2.0f);\n\n int offsX = x + sx * map.getTileWidth() - x;\n int offsY = sy * map.getTileHeight() - y;\n DrawUtil.translate(-offsX, -offsY);\n\n for (LayerObject object : layer.getObjects()) {\n switch (object.getPrimitive()) {\n case POLYGON:\n if (drawLines) {\n drawPolyLine(object.getPoints(), true);\n }\n break;\n case POLYLINE:\n if (drawLines) {\n drawPolyLine(object.getPoints(), false);\n }\n break;\n case TILE:\n drawTile(object);\n break;\n case RECT:\n if (drawLines) {\n DrawUtil.drawRect(object.getX(), object.getY(), object.getWidth(),\n object.getHeight());\n }\n break;\n case POINT:\n if (drawLines) {\n DrawUtil.drawRect(object.getX() - 1, object.getY() - 1, 2, 2);\n }\n break;\n default:\n throw new AssertionError(object.getPrimitive().name());\n }\n }\n DrawUtil.translate(offsX, offsY);\n }", "title": "" }, { "docid": "50a8db9338da83066986ca2b5185992d", "score": "0.54916334", "text": "public void resetTiles() {\n for (int i = 0; i < gameScreenTiles.length; i++) {\n for (int j = 0; j < gameScreenTiles[i].length; j++) {\n if (gameScreenTiles[i][j] != null) {\n if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.FREE_ACCESSIBLE)\n || gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.FREE_TARGET)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.FREE);\n } else if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.BAR_SEAT_ACCESSIBLE)\n || gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.BAR_SEAT_TARGET)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.BAR_SEAT);\n } else if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.ROULETTE_TARGET)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.ROULETTE);\n } else if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.FIREPLACE_TARGET)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.FIREPLACE);\n } else if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.BAR_TABLE_TARGET)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.BAR_TABLE);\n } else if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.SAFE_TARGET)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.SAFE);\n } else if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.WALL_TARGET)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.WALL);\n } else if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.FREE_BOWLER_BLADE_ACCESSIBLE)\n || gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.FREE_BOWLER_BLADE_TARGET)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.FREE_BOWLER_BLADE);\n } else if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.FREE_DIAMOND_COLLAR_ACCESSIBLE)\n || gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.FREE_DIAMOND_COLLAR_TARGET)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.FREE_DIAMOND_COLLAR);\n } else if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.BAR_TABLE_COCKTAIL_TARGET)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.BAR_TABLE_COCKTAIL);\n } else if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.ALLY_CHARACTER_ACCESSIBLE)\n || gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.ALLY_CHARACTER_TARGET)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.ALLY_CHARACTER);\n } else if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.ENEMY_CHARACTER_ACCESSIBLE)\n || gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.ENEMY_CHARACTER_TARGET)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.ENEMY_CHARACTER);\n } else if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.NEUTRAL_CHARACTER_ACCESSIBLE)\n || gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.NEUTRAL_CHARACTER_TARGET)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.NEUTRAL_CHARACTER);\n } else if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.ALLY_CHARACTER_COCKTAIL_ACCESSIBLE)\n || gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.ALLY_CHARACTER_COCKTAIL_TARGET)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.ALLY_CHARACTER_COCKTAIL);\n } else if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.ENEMY_CHARACTER_COCKTAIL_ACCESSIBLE)\n || gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.ENEMY_CHARACTER_COCKTAIL_TARGET)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.ENEMY_CHARACTER_COCKTAIL);\n } else if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.NEUTRAL_CHARACTER_COCKTAIL_ACCESSIBLE)\n || gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.NEUTRAL_CHARACTER_COCKTAIL_TARGET)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.NEUTRAL_CHARACTER_COCKTAIL);\n } else if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.ACTIVE_CHARACTER_TARGET)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.ACTIVE_CHARACTER);\n }\n }\n }\n }\n }", "title": "" }, { "docid": "c3a9b9c360fda9e08218481c94e91ff3", "score": "0.5484297", "text": "private void paint(){\n int size=board.GRID_SIZE;\n grid=board.getGrid();\n\n txtScore.setText(\"score: \"+this.board.getScore());//update the score\n\n //reset all the rectangles and text after a move\n for(int row=0;row<size;row++){\n for(int col=0;col<size;col++){\n tile = grid[row][col];\n rectangle[row][col].setFill(getColor(tile));\n if(tile==0){\n text[row][col].setText(\"\");\n }else{\n text[row][col].setText(Integer.toString(tile));\n }\n int txt=getSize(tile);\n text[row][col].setFont(Font.font(\"Times New Roman\",FontWeight.BOLD,txt));\n text[row][col].setFill(getTextColor(tile));\n\n }\n }\n\n }", "title": "" }, { "docid": "beffb33071552077a962e2ec29a44701", "score": "0.5479821", "text": "public void render(GraphicsContext gc, GameManager game, Text t) {\n\t\tGameMap temp = (omniDebug ? game.getOmnimap() : game.getPlayers()[0].getKnown());\n\t\t\n\t\tTile[][] terrain = temp.getTerrain();//new Tile[mapRows][mapCols];\n\t\t\n\t\t\n\t\tgc.setFill(Color.BLACK);\n\t\tgc.fillRect(0, 0, canvasDimensionX, canvasDimensionY);\n\t\t\n\t\tfor (int i = 0; i < mapRows; i++) {\n\t\t\tfor (int j = 0; j < mapCols; j++) {\n\t\t\t\tif (terrain[i][j] == Tile.CLEAR) {\n\t\t\t\t\t//Paint one color\n\t\t\t\t\tgc.setFill(Color.LIGHTGREEN);\n\t\t\t\t} else if (terrain[i][j] == Tile.BLOCKED) {\n\t\t\t\t\tgc.setFill(Color.DARKGREY);\n\t\t\t\t} else if (terrain[i][j] == Tile.MINERALS) {\n\t\t\t\t\tgc.setFill(Color.RED);\n\t\t\t\t} else if (terrain[i][j] == Tile.UNKNOWN) {\n\t\t\t\t\tgc.setFill(Color.BLACK);\n\t\t\t\t}\n\t\t\t\tdouble totalScaling = zoom * scalingFactor;\n\t\t\t\tdouble[] screenPos = cellToScreen(i, j);\n\t\t\t\tgc.fillRect(screenPos[0], screenPos[1], totalScaling, totalScaling);\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\t//Draw static units\n\t\tfor (int i = 0; i < mapRows; i++) {\n\t\t\tfor (int j = 0; j < mapCols; j++) {\n\t\t\t\tUnit curStaticUnit = temp.getStaticUnits()[i][j];\n\t\t\t\t\n\t\t\t\tif (curStaticUnit == null) continue;\n\t\t\t\t\n\t\t\t\t//gc.setFill(Color.WHITE);\n\n\t\t\t\tdouble totalScaling = zoom * scalingFactor;\n\t\t\t\tdouble[] screenPos = cellToScreen(i, j);\n\t\t\t\t\n\t\t\t\tif (curStaticUnit == selectedUnit) {\n\t\t\t\t\tgc.setFill(Color.GOLD);\n\t\t\t\t\tgc.fillRect(screenPos[0], screenPos[1], totalScaling, totalScaling);\n\t\t\t\t\t//Highlight selected unit gold\n\t\t\t\t\t\n\t\t\t\t\tupdateOrderList();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//System.out.println(\"drawing img\");\n\t\t\t\tif (curStaticUnit instanceof City) {\n\t\t\t\t\tgc.drawImage(cityImage, screenPos[0], screenPos[1], totalScaling, totalScaling);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (curStaticUnit instanceof Farm) {\n\t\t\t\t\tgc.drawImage(farmImage, screenPos[0], screenPos[1], totalScaling, totalScaling);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (curStaticUnit instanceof Mine) {\n\t\t\t\t\tgc.drawImage(mineImage, screenPos[0], screenPos[1], totalScaling, totalScaling);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (curStaticUnit != selectedUnit) {\n\t\t\t\t\tgc.setFill(PLAYER_COLORS[curStaticUnit.getTeam() % PLAYER_COLORS.length]);\n\t\t\t\t\tgc.fillRect(screenPos[0], screenPos[1], totalScaling, totalScaling);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t//Draw mobile units\n\t\tfor (int i = 0; i < mapRows; i++) {\n\t\t\tfor (int j = 0; j < mapCols; j++) {\n\t\t\t\tUnit curMobileUnit = temp.getMobileUnits()[i][j];\n\t\t\t\t\n\t\t\t\tif (curMobileUnit == null) continue;\n\t\t\t\t\n\t\t\t\t//gc.setFill(Color.WHITE);\n\t\t\t\t\n\t\t\t\tdouble totalScaling = zoom * scalingFactor;\n\t\t\t\t\n\t\t\t\tdouble[] screenPos = cellToScreen(i, j);\n\t\t\t\tif (curMobileUnit == selectedUnit) {\n\t\t\t\t\tgc.setFill(Color.GOLD);\n\t\t\t\t\t//Highlight selected unit gold\n\t\t\t\t\tgc.fillRect(screenPos[0], screenPos[1], totalScaling, totalScaling);\n\t\t\t\t\t\n\t\t\t\t\tupdateOrderList();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tif (curMobileUnit instanceof Worker) {\n\t\t\t\t\tif (!(curMobileUnit != selectedUnit && selectedUnit != null && curMobileUnit.getX() == selectedUnit.getX() && \n\t\t\t\t\t\t\tcurMobileUnit.getY() == selectedUnit.getY())) \n\t\t\t\t\t\tgc.drawImage(hammerImage, screenPos[0], screenPos[1], totalScaling, totalScaling);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (curMobileUnit instanceof Soldier) {\n\t\t\t\t\tif (!(curMobileUnit != selectedUnit && selectedUnit != null && curMobileUnit.getX() == selectedUnit.getX() && \n\t\t\t\t\t\t\tcurMobileUnit.getY() == selectedUnit.getY())) \n\t\t\t\t\t\tgc.drawImage(swordImage, screenPos[0], screenPos[1], totalScaling, totalScaling);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tif (curMobileUnit == selectedUnit) {\n\t\t\t\t\t//Draw orders!\n\t\t\t\t\t\n\t\t\t\t\tQueue<Order> orders = curMobileUnit.getOrders();\n\t\t\t\t\t\n\t\t\t\t\tint lastX = curMobileUnit.getX();\n\t\t\t\t\tint lastY = curMobileUnit.getY();\n\t\t\t\t\t\n\t\t\t\t\tfor (Order o : orders) {\n\t\t\t\t\t\tdouble[] lastScreenPos = cellToScreen(lastX, lastY);\n\t\t\t\t\t\tdouble bigX = lastScreenPos[0] - totalScaling * 0.5;\n\t\t\t\t\t\tdouble bigY = lastScreenPos[1] - totalScaling * 0.5;\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (o instanceof MoveOrder || o instanceof AttackOrder) {\n\t\t\t\t\t\t\tdouble curCenterX = lastScreenPos[0] + totalScaling / 2;\n\t\t\t\t\t\t\tdouble curCenterY = lastScreenPos[1] + totalScaling / 2;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tint nextX = -1;\n\t\t\t\t\t\t\tint nextY = -1;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif (o instanceof MoveOrder) { \n\t\t\t\t\t\t\t\tMoveOrder o2 = (MoveOrder) o;\n\t\t\t\t\t\t\t\tnextX = o2.getTx();\n\t\t\t\t\t\t\t\tnextY = o2.getTy();\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tAttackOrder o2 = (AttackOrder) o;\n\t\t\t\t\t\t\t\tint[] coords = o2.findTarget(selectedUnit);\n\t\t\t\t\t\t\t\tnextX = coords[0];\n\t\t\t\t\t\t\t\tnextY = coords[1];\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tdouble[] nextPos = cellToScreen(nextX, nextY);\n\t\t\t\t\t\t\tdouble nextCenterX = nextPos[0] + totalScaling / 2;\n\t\t\t\t\t\t\tdouble nextCenterY = nextPos[1] + totalScaling / 2;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tdrawArrow(gc, curCenterX, curCenterY, nextCenterX, nextCenterY, \n\t\t\t\t\t\t\t\t\t(o instanceof MoveOrder ? Color.WHITE : Color.RED));\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tlastX = nextX;\n\t\t\t\t\t\t\tlastY = nextY;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tgc.setFill(PLAYER_COLORS[0]);\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (o instanceof BuildCityOrder) {\n\t\t\t\t\t\t\tgc.fillRect(bigX, bigY, 2 * totalScaling, 2 * totalScaling);\n\t\t\t\t\t\t\tgc.drawImage(cityImage, bigX, bigY, 2 * totalScaling, 2 * totalScaling);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (o instanceof BuildFarmOrder) {\n\t\t\t\t\t\t\tgc.fillRect(bigX, bigY, 2 * totalScaling, 2 * totalScaling);\n\t\t\t\t\t\t\tgc.drawImage(farmImage, bigX, bigY, 2 * totalScaling, 2 * totalScaling);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (o instanceof BuildMineOrder) {\n\t\t\t\t\t\t\tgc.fillRect(bigX, bigY, 2 * totalScaling, 2 * totalScaling);\n\t\t\t\t\t\t\tgc.drawImage(mineImage, bigX, bigY, 2 * totalScaling, 2 * totalScaling);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (o instanceof CreateSoldierOrder) {\n\t\t\t\t\t\t\tgc.fillRect(bigX, bigY, 2 * totalScaling, 2 * totalScaling);\n\t\t\t\t\t\t\tgc.drawImage(swordImage, bigX, bigY, 2 * totalScaling, 2 * totalScaling);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (o instanceof CreateWorkerOrder) {\n\t\t\t\t\t\t\tgc.fillRect(bigX, bigY, 2 * totalScaling, 2 * totalScaling);\n\t\t\t\t\t\t\tgc.drawImage(hammerImage, bigX, bigY, 2 * totalScaling, 2 * totalScaling);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (curMobileUnit != selectedUnit) {\n\t\t\t\t\tgc.setFill(PLAYER_COLORS[curMobileUnit.getTeam() % PLAYER_COLORS.length]);\n\t\t\t\t\tgc.fillRect(screenPos[0], screenPos[1], totalScaling, totalScaling);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t//Calculate the expected deltas now\n\t\tResourceDelta thisTurnDelta = game.getPlayers()[0].getExpectedDelta();\n\t\t\n\t\tdouble delf = thisTurnDelta.getFood();\n\t\tdouble delm = thisTurnDelta.getMinerals();\n\t\tdouble delw = thisTurnDelta.getWealth();\n\t\t\n\t\tPlayer us = game.getPlayers()[0];\n\t\tDecimalFormat df = new DecimalFormat(\"#.##\");\n\t\tt.setText(\"Food: \" + df.format(us.getFood()) + \" (\" + (delf > 0 ? \"+\" : \"\") + df.format(delf) + \")\" + '\\n' \n\t\t\t\t+ \"Minerals: \" + df.format(us.getMinerals()) + \" (\" + (delm > 0 ? \"+\" : \"\") + df.format(delm) + \")\" + '\\n' \n\t\t\t\t+ \"Wealth: \" + df.format(us.getWealth()) + \" (\" + (delw > 0 ? \"+\" : \"\") + df.format(delw) + \")\" + '\\n' + \n\t\t\t\t\"Selected unit: \" + (selectedUnit != null ? selectedUnit.toString() + \"\\nTeam: \" + selectedUnit.getTeam() + \", id: \" + selectedUnit.getId(): \"\"));\n\t\t\n\t\t//System.out.println(\"rerender done\");\n\t}", "title": "" }, { "docid": "1e478fd4bcb96bed495e61a206f8e916", "score": "0.5471312", "text": "public void renderUI()\n {\n\tbatch.begin();\n\tif (viewModel.turn() == Piece.RED)\n\t draw(res.redTurn, redTitle);\n\telse\n\t draw(res.whiteTurn, whiteTitle);\n\tbatch.end();\n }", "title": "" }, { "docid": "deb1ffb78b2c8a210439b2cc9e9b754b", "score": "0.54695356", "text": "public void draw() {\n for (State state : stack) {\n state.draw();\n }\n }", "title": "" }, { "docid": "8cf47c8216e147271bdd33322b792fa2", "score": "0.5468988", "text": "public void render(GraphicsContext gc, Viewport viewport, long ms) {\n\t\tif (!renderFlag) {\n\t\t\treturn;\n\t\t}\n\t\t// do some maths\n\t\tthis.viewport = viewport;\n\t\tfloat tileSize = viewport.getTileSideLength();\n\t\tint leftBorder = viewport.getLeftBorder();\n\t\tint topBorder = viewport.getTopBorder();\n\n\t\tint left = (int) Math.floor(viewport.getLeft());\n\t\tint top = (int) Math.floor(viewport.getTop());\n\n\t\tfloat subTileShiftX = (viewport.getLeft() - left) * tileSize;\n\t\tfloat subTileShiftY = (viewport.getTop() - top) * tileSize;\n\n\t\tfloat x = (posX - left) * tileSize + leftBorder - subTileShiftX;\n\t\tfloat y = (posY - top) * tileSize + topBorder - subTileShiftY;\n\n\t\t// Render the sprite\n\t\tif (sprite != null) {\n\t\t\tif (renderFacing > 0) {\n\t\t\t\tgc.drawImage(sprite.getFrame(), x, y, getWidth() * tileSize, getHeight() * tileSize);\n\t\t\t} else {\n\t\t\t\tgc.drawImage(sprite.getFrame(), x + getWidth() * tileSize, y, -getWidth() * tileSize,\n\t\t\t\t\t\tgetHeight() * tileSize);\n\t\t\t}\n\t\t}\n\n\t\t// Render additional sprites\n\t\tif (additionalSprites != null && !additionalSprites.isEmpty()) {\n\t\t\tfor (SpriteRelation sr : additionalSprites.values()) {\n\t\t\t\tif (sr != null) {\n\t\t\t\t\tsr.renderSprite(gc, tileSize, x, y);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Render collision line hitboxes\n\t\tif (world.renderHitboxes()) {\n\t\t\tbounds.render(gc, viewport);\n\t\t\tfor (AABB tile : checkedTiles) {\n\t\t\t\ttile.render(gc, viewport);\n\t\t\t}\n\t\t\tif (hitboxes != null) {\n\t\t\t\tfor (AABB hitbox : hitboxes) {\n\t\t\t\t\thitbox.render(gc, viewport);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "8dd3e1ba138865e9bbfdac08f6548891", "score": "0.54542494", "text": "@Override\r\n\tpublic void setSurroundingTiles() {\r\n\t\tfor (int i = 1; i <= this.range; i++) {\r\n\t\t\t\r\n\t\t\t// x coordinate of the center of the tile above the tile containing\r\n\t\t\t// the bomb\r\n\t\t\tdouble ux = this.bombTile.getX1() + 24;\r\n\t\t\t\r\n\t\t\t// y coordinate of the center of the tile above the tile containing\r\n\t\t\t// the bomb\r\n\t\t\tdouble uy = this.bombTile.getY1() - 24 * i;\r\n\r\n\t\t\t// x coordinate of the center of the tile to the left the tile\r\n\t\t\t// containing the bomb\r\n\t\t\tdouble lx = this.bombTile.getX1() - 24 * i;\r\n\t\t\t\r\n\t\t\t// y coordinate of the center of the tile to the left the tile\r\n\t\t\t// containing the bomb\r\n\t\t\tdouble ly = this.bombTile.getY1() + 24;\r\n\r\n\t\t\t// x coordinate of the center of the tile to the right the tile\r\n\t\t\t// containing the bomb\r\n\t\t\tdouble rx = this.bombTile.getX2() + 24 * i;\r\n\t\t\t\r\n\t\t\t// y coordinate of the center of the tile to the right the tile\r\n\t\t\t// containing the bomb\r\n\t\t\tdouble ry = this.bombTile.getY2() - 24;\r\n\r\n\t\t\t// x coordinate of the center of the tile below the tile containing\r\n\t\t\t// the bomb\r\n\t\t\tdouble dx = this.bombTile.getX1() + 24;\r\n\t\t\t\r\n\t\t\t// y coordinate of the center of the tile below the tile containing\r\n\t\t\t// the bomb\r\n\t\t\tdouble dy = this.bombTile.getY2() + 24 * i;\r\n\r\n\t\t\tTile tileUp = null;\r\n\t\t\tTile tileRight = null;\r\n\t\t\tTile tileLeft = null;\r\n\t\t\tTile tileDown = null;\r\n\r\n\t\t\t// finds the tiles above, below, to the right, and to the left of\r\n\t\t\t// the tile containing the bomb\r\n\t\t\tfor (Tile tile : this.tiles) {\r\n\t\t\t\tif (tile.getX1() <= ux && tile.getX2() >= ux && tile.getY1() <= uy && tile.getY2() >= uy) {\r\n\t\t\t\t\ttileUp = tile;\r\n\t\t\t\t\tthis.surroundingTiles.add(tileUp);\r\n\t\t\t\t} else if (tile.getX1() <= rx && tile.getX2() >= rx && tile.getY1() <= ry && tile.getY2() >= ry) {\r\n\t\t\t\t\ttileRight = tile;\r\n\t\t\t\t\tthis.surroundingTiles.add(tileRight);\r\n\t\t\t\t} else if (tile.getX1() <= lx && tile.getX2() >= lx && tile.getY1() <= ly && tile.getY2() >= ly) {\r\n\t\t\t\t\ttileLeft = tile;\r\n\t\t\t\t\tthis.surroundingTiles.add(tileLeft);\r\n\t\t\t\t} else if (tile.getX1() <= dx && tile.getX2() >= dx && tile.getY1() <= dy && tile.getY2() >= dy) {\r\n\t\t\t\t\ttileDown = tile;\r\n\t\t\t\t\tthis.surroundingTiles.add(tileDown);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "38b04d47023931b993d79ff52e90140b", "score": "0.5445603", "text": "public void draw()\n{\n\t// Draw grid squares\n\tfor (int x = 0; x < 8; x++)\n\t{\n\t\tfor (int y = 0; y < 8; y++)\n\t\t{\n\t\t\tSurface frame = _texture.getFrame(0);\n\t\t\tframe.setX(x * GRID_SIZE);\n\t\t\tframe.setY(y * GRID_SIZE);\n\t\t\tframe.blit(this);\n\t\t}\n\t}\n\n\tVector<Craft>.iterator craft = _base.getCrafts().begin();\n\n\tfor (BaseFacility i: _base.getFacilities())\n\t{\n\t\t// Draw facility shape\n\t\tint num = 0;\n\t\tfor (int y = (i).getY(); y < (i).getY() + (i).getRules().getSize(); y++)\n\t\t{\n\t\t\tfor (int x = (i).getX(); x < (i).getX() + (i).getRules().getSize(); x++)\n\t\t\t{\n\t\t\t\tSurface frame;\n\n\t\t\t\tif ((i).getBuildTime() == 0)\n\t\t\t\t\tframe = _texture.getFrame((i).getRules().getSpriteShape() + num);\n\t\t\t\telse\n\t\t\t\t\tframe = _texture.getFrame((i).getRules().getSpriteShape() + num + 2 + (i).getRules().getSize());\n\n\t\t\t\tframe.setX(x * GRID_SIZE);\n\t\t\t\tframe.setY(y * GRID_SIZE);\n\t\t\t\tframe.blit(this);\n\n\t\t\t\tnum++;\n\t\t\t}\n\t\t}\n\t}\n\n\tfor (BaseFacility i: _base.getFacilities())\n\t{\n\t\t// Draw connectors\n\t\tif ((i).getBuildTime() == 0)\n\t\t{\n\t\t\t// Facilities to the right\n\t\t\tint x = (i).getX() + (i).getRules().getSize();\n\t\t\tif (x < BASE_SIZE)\n\t\t\t{\n\t\t\t\tfor (int y = (i).getY(); y < (i).getY() + (i).getRules().getSize(); y++)\n\t\t\t\t{\n\t\t\t\t\tif (_facilities[x][y] != null && _facilities[x][y].getBuildTime() == 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tSurface frame = _texture.getFrame(7);\n\t\t\t\t\t\tframe.setX(x * GRID_SIZE - GRID_SIZE / 2);\n\t\t\t\t\t\tframe.setY(y * GRID_SIZE);\n\t\t\t\t\t\tframe.blit(this);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Facilities to the bottom\n\t\t\tint y = (i).getY() + (i).getRules().getSize();\n\t\t\tif (y < BASE_SIZE)\n\t\t\t{\n\t\t\t\tfor (int x = (i).getX(); x < (i).getX() + (i).getRules().getSize(); x++)\n\t\t\t\t{\n\t\t\t\t\tif (_facilities[x][y] != null && _facilities[x][y].getBuildTime() == 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tSurface frame = _texture.getFrame(8);\n\t\t\t\t\t\tframe.setX(x * GRID_SIZE);\n\t\t\t\t\t\tframe.setY(y * GRID_SIZE - GRID_SIZE / 2);\n\t\t\t\t\t\tframe.blit(this);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\tfor (BaseFacility i: _base.getFacilities())\n\t{\n\t\t// Draw facility graphic\n\t\tint num = 0;\n\t\tfor (int y = (i).getY(); y < (i).getY() + (i).getRules().getSize(); y++)\n\t\t{\n\t\t\tfor (int x = (i).getX(); x < (i).getX() + (i).getRules().getSize(); x++)\n\t\t\t{\n\t\t\t\tif ((i).getRules().getSize() == 1)\n\t\t\t\t{\n\t\t\t\t\tSurface frame = _texture.getFrame((i).getRules().getSpriteFacility() + num);\n\t\t\t\t\tframe.setX(x * GRID_SIZE);\n\t\t\t\t\tframe.setY(y * GRID_SIZE);\n\t\t\t\t\tframe.blit(this);\n\t\t\t\t}\n\n\t\t\t\tnum++;\n\t\t\t}\n\t\t}\n\n\t\t// Draw crafts\n\t\tif ((i).getBuildTime() == 0 && (i).getRules().getCrafts() > 0 && craft != _base.getCrafts().end())\n\t\t{\n\t\t\tSurface frame = _texture.getFrame((craft).getRules().getSprite() + 33);\n\t\t\tframe.setX((i).getX() * GRID_SIZE + ((i).getRules().getSize() - 1) * GRID_SIZE / 2);\n\t\t\tframe.setY((i).getY() * GRID_SIZE + ((i).getRules().getSize() - 1) * GRID_SIZE / 2);\n\t\t\tframe.blit(this);\n\t\t\t++craft;\n\t\t}\n\n\t\t// Draw time remaining\n\t\tif ((i).getBuildTime() > 0)\n\t\t{\n\t\t\tText text = new Text(GRID_SIZE * (i).getRules().getSize(), 16, 0, 0);\n\t\t\ttext.setPalette(getPalette());\n\t\t\ttext.setFonts(_big, _small);\n\t\t\ttext.setX((i).getX() * GRID_SIZE);\n\t\t\ttext.setY((i).getY() * GRID_SIZE + (GRID_SIZE * (i).getRules().getSize() - 16) / 2);\n\t\t\ttext.setBig();\n\t\t\tStringBuffer ss = new StringBuffer();\n\t\t\tss.append((i).getBuildTime());\n\t\t\ttext.setAlign(TextHAlign.ALIGN_CENTER);\n\t\t\ttext.setColor(Palette.blockOffset(13)+5);\n\t\t\ttext.setText(ss.toString());\n\t\t\ttext.blit(this);\n\t\t}\n\t}\n}", "title": "" }, { "docid": "26a8d4d3ec593102d5ae98b7bed60a2c", "score": "0.54445016", "text": "private void render() {\r\n\r\n\t\t// Use buffered Graphics to avoid any visual stuttering or artifacts\r\n\t\tBufferStrategy bufferStrategy = view.getDisplayWindow().getCanvas().getBufferStrategy();\r\n\t\tif (bufferStrategy == null) {\r\n\t\t\tview.getDisplayWindow().getCanvas().createBufferStrategy(RENDER_BUFFERS);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tGraphics2D g = (Graphics2D) bufferStrategy.getDrawGraphics();\r\n\r\n\t\t// Clear Screen\r\n\t\tg.clearRect(0, 0, view.getWidth(), view.getHeight());\r\n\t\tg.setColor(Color.GRAY);\r\n\t\tg.fillRect(0, 0, view.getWidth(), view.getHeight());\r\n\r\n\t\t// Rendering\r\n\t\tgrid.render(g);\r\n\t\tpathfinding.render(g);\r\n\t\tmodel.render(g);\r\n\r\n\t\tbufferStrategy.show();\r\n\t\tg.dispose();\r\n\t}", "title": "" }, { "docid": "8a718c3d4fdb61d6b631af20a4b48268", "score": "0.54298794", "text": "private void displayBoard(GridPane gBoard)\n {\n for (int r = 0; r < board.getGameBoard().length; r++)\n {\n for (int c = 0; c < board.getGameBoard()[r].length; c++)\n {\n LetterTiles tile = new LetterTiles(board.getGameBoard()[r][c], r * gWidth, c * gHeight, gWidth, gHeight);\n temp[r][c] = tile;\n\n tile.setOnMouseClicked(new EventHandler<MouseEvent>()\n {\n @Override\n public void handle(MouseEvent event)\n {\n tilesToChangeColor.add(tile);\n\n if (!tile.getVisited() && tile.getCounter() == 1)\n {\n wordTocheck += tile.getLetter();\n tile.decrementCounter();\n tile.setFillToRed();\n }\n else\n {\n isVisited.setText(\"Not a valid move\");\n isVisited.setFill(Color.RED);\n }\n tile.setVisited();\n event.consume();\n }\n });\n gBoard.getChildren().add(tile);\n }\n }\n }", "title": "" }, { "docid": "3007dcd99dc6a3ae794030f681f74361", "score": "0.5421263", "text": "public void drawTile( int i )\r\n {\r\n Point ccPoint = currentConfig.get( i );\r\n Point pbCoords = new Point( ccPoint.x + col, ccPoint.y + row );\r\n Point grCoords = new Point( Specs.BOARD_X + pbCoords.x * Specs.TILE_SIZE,\r\n Specs.BOARD_Y + pbCoords.y * Specs.TILE_SIZE );\r\n \r\n tiles.get( i ).setLocation( grCoords );\r\n }", "title": "" }, { "docid": "2739e3584d24e5e2e77d4acea795d979", "score": "0.541539", "text": "@Override\n public void draw(Canvas c) {\n Paint paint = new Paint();\n paint.setColor(Color.BLUE);\n\n //adj = getAdj(tiles);\n\n\n // draws 8bit image of the tile on canvas\n c.drawBitmap(tileImg, tl.getX(), tl.getY(), paint);\n\n // if this needs to be outlined: is an arrow tile, selectable or attackable (TBI)\n if (selectable || arrowTile || occupied || attackable) {\n int xl = tl.getX();\n int xr = br.getX();\n int yt = tl.getY();\n int yb = br.getY();\n\n // if this is an arrow tile, sets outline color to green,\n // else stays blue\n if (arrowTile) {\n paint.setColor(Color.GREEN);\n }\n\n if (occupied) {\n paint.setColor(Color.RED);\n }\n\n if (attackable) {\n paint.setColor(Color.YELLOW);\n }\n\n /*DELETE THIS LATER*/\n if(temp)\n {\n paint.setColor(Color.BLACK);\n }\n\n // initializes rectangles to make up outline\n Rect left = new Rect(xl, yt, xr - 190, yb);\n Rect top = new Rect(xl, yt, xr, yb - 190);\n Rect right = new Rect(xl + 190, yt, xr, yb);\n Rect bottom = new Rect(xl, yt + 190, xr, yb);\n\n // draws rectangles\n c.drawRect(left, paint);\n c.drawRect(top, paint);\n c.drawRect(right, paint);\n c.drawRect(bottom, paint);\n }\n }", "title": "" }, { "docid": "32bef4e272712a02e4a71f139edd9ec1", "score": "0.54060066", "text": "public void draw(Graphics g) {\n\t\tfor (int x = 0; x < tiles.length; x++) {\n\t\t\tfor (int y = 0; y < tiles[0].length; y++) {\n\t\t\t\tif (tiles[x][y].getType() != Tile.Type.EMPTY) //Don't draw empty tiles.\n\t\t\t\t\ttiles[x][y].draw(g);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "08294e6edd2a0fb38b08550352ef868b", "score": "0.54059577", "text": "protected void displayGridToBoard(){\n\t\tGrid grid = mySimulation.getGrid();\n\t\tfor(int r = 0; r < grid.getNumRows(); r++){\n\t\t\tfor(int c = 0; c < grid.getNumCols(); c++){\n\t\t\t\tmyBoard[r][c].setFill(myView.getStateColorMap().get(grid.getCell(r,c).getCurState()));\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "c071d68e932dfe8f8def2c8bd578c2fe", "score": "0.54013085", "text": "public void display() {\r\n\t\taddPaintListener(new PaintListener() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void paintControl(PaintEvent e) {\r\n\t\t\t\te.gc.setForeground(new Color(null, 0, 0, 0));\r\n\t\t\t\te.gc.setBackground(new Color(null, 0, 0, 0));\r\n\r\n\t\t\t\tint width = getSize().x; //width of the widget\r\n\t\t\t\tint height = getSize().y; //height of the widget\r\n\t\t\t\t\r\n\t\t\t\t//the width and height of every cell in the maze\r\n\t\t\t\tint w = width / maze.getCrossSectionByZ(position.getZ()).length;\r\n\t\t\t\tint h = height / maze.getCrossSectionByZ(position.getZ())[0].length;\r\n\r\n\t\t\t\tfor (int i = 0; i < maze.getCrossSectionByZ(position.getZ()).length; i++)\r\n\t\t\t\t\tfor (int j = 0; j < maze.getCrossSectionByZ(position.getZ())[0].length; j++) {\r\n\t\t\t\t\t\tint x = i * w;\r\n\t\t\t\t\t\tint y = j * h;\r\n\t\t\t\t\t\tif (maze.getCrossSectionByZ(position.getZ())[i][j] != 0)\r\n\t\t\t\t\t\t\te.gc.fillRectangle(x, y, w, h);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\tif (position.getZ() == maze.getGoalPosition().getZ()) {\r\n\t\t\t\t\tgoal = new GoalCharacter((maze.getGoalPosition().getX()) * w + 15,\r\n\t\t\t\t\t\t\t(maze.getGoalPosition().getY()) * h + 5, display);\r\n\t\t\t\t\tgoal.paint(e, w - 30, h - 20);\r\n\t\t\t\t}\r\n\t\t\t\tcharacter = new GameCharacter((position.getX() * w) + 5, (position.getY() * h) + 5, display);\r\n\t\t\t\tcharacter.paint(e, w - 10, h - 10);\r\n\r\n\t\t\t\tif (position.equals(maze.getGoalPosition())) {\r\n\r\n\t\t\t\t\tfinish = new FinishGesture(width/4, height/4, display);\r\n\t\t\t\t\tfinish.paint(e, width/2, height/2);\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t}", "title": "" }, { "docid": "a97532bddfcd141bc27eb224ed1437b3", "score": "0.5400801", "text": "public void render(Canvas c) {\n if(c == null){\n return;\n }\n\n Paint paint = new Paint();\n paint.setAntiAlias(true);\n int TILEWIDTH = c.getWidth()/8;\n int TILEHEIGHT = c.getHeight()/5;\n\n //bg\n c.drawColor(CustomColours.light);\n //towers\n for (Tower t:bg.getPlayerTowers()\n ) {\n paint.setColor(CustomColours.dark);\n c.drawRect(t.getX()* TILEWIDTH - (2*TILEWIDTH), t.getY()*TILEHEIGHT,\n t.getX()* TILEWIDTH + TILEWIDTH - (2*TILEWIDTH), t.getY()* TILEHEIGHT+ TILEHEIGHT, paint);\n paint.setColor(t.getColor());\n c.drawCircle(TILEWIDTH/2 + t.getX()* TILEWIDTH - (2*TILEWIDTH), TILEHEIGHT/2 + t.getY()*TILEHEIGHT,\n TILEWIDTH/3, paint);\n }\n\n // START & END\n paint.setColor(CustomColours.red);\n c.drawRect(7* TILEWIDTH, 0*TILEHEIGHT,\n 7* TILEWIDTH + TILEWIDTH, 0* TILEHEIGHT+ TILEHEIGHT, paint);\n\n // drawing player grid\n paint.setColor(CustomColours.dark);\n paint.setStrokeWidth(3);\n for (int i = 0; i <= 10; i++) {\n c.drawLine(bg.getX() + TILEWIDTH*i,bg.getY(),\n bg.getX()+TILEWIDTH*i,bg.getY()+TILEHEIGHT*4,paint);\n }\n for (int i = 0; i <= 4; i++) {\n c.drawLine(bg.getX(),bg.getY() + TILEHEIGHT*i,\n bg.getX()+ TILEWIDTH*10,bg.getY() + TILEHEIGHT*i,paint);\n }\n\n\n //action bar/gui TODO: maybe seperate this into its own class?\n\n paint.setTextSize(c.getHeight()/20);\n\n //btn1\n paint.setColor(CustomColours.yellow2);\n c.drawRect(0, c.getHeight() / 10 * 8, c.getWidth() / 10 * 2, c.getHeight(), paint);\n paint.setColor(CustomColours.dark2);\n c.drawText(\"Confirm\", 10, c.getHeight() / 40 * 37, paint);\n\n //btn2\n paint.setColor(CustomColours.yellow2);\n c.drawRect(c.getWidth() / 10 * 2, c.getHeight() / 10 * 8, c.getWidth() / 10 * 4, c.getHeight(), paint);\n paint.setColor(CustomColours.dark2);\n c.drawText(\"Undo\",10 + c.getWidth() / 10 * 2, c.getHeight() / 40 * 37, paint);\n c.drawLine(c.getWidth()/10*2,c.getHeight()/10*8, c.getWidth()/10*2, c.getHeight(), paint);\n\n //btn3\n paint.setColor(CustomColours.yellow2);\n c.drawRect(c.getWidth() / 10 * 4, c.getHeight() / 10 * 8, c.getWidth() / 10 * 6, c.getHeight(), paint);\n paint.setColor(CustomColours.dark2);\n c.drawText(\"Back\", 10 + c.getWidth() / 10 * 4, c.getHeight() / 40 * 37, paint);\n c.drawLine(c.getWidth()/10*4,c.getHeight()/10*8, c.getWidth()/10*4, c.getHeight(), paint);\n // info text?\n paint.setTextSize(c.getHeight()/30);\n paint.setColor(CustomColours.yellow2);\n c.drawRect(c.getWidth()/10*6, c.getHeight()/10*8, c.getWidth(),c.getHeight(), paint);\n paint.setColor(CustomColours.dark2);\n c.drawText(String.format(\"Gold: %d\", player.getGold()), 10+c.getWidth()/10*6, c.getHeight()/40*35, paint);\n c.drawText(String.format(\"Lives: %d\", player.getHp()), 10+c.getWidth()/10*6, c.getHeight()/40*37, paint);\n c.drawText(String.format(\"Enemy Lives: %d\",bg.getEnemy().getHp()), 10+c.getWidth()/10*6, c.getHeight()/40*39, paint);\n c.drawLine(c.getWidth()/10*6,c.getHeight()/10*8, c.getWidth()/10*6, c.getHeight(), paint);\n //line for top of ui\n paint.setColor(CustomColours.dark2);\n paint.setStrokeWidth(3);\n c.drawLine(0,c.getHeight()/10*8, c.getWidth(),c.getHeight()/10*8, paint);\n //line for right side\n paint.setColor(Color.BLACK);\n c.drawRect(TILEWIDTH*8,0,TILEWIDTH*9,TILEHEIGHT*10, paint);\n }", "title": "" }, { "docid": "344cfa6d810d24440705963d64e74090", "score": "0.5395684", "text": "public void render() {\r\n\t\tCross[] arrOfCrosses = model.getCrosses();\r\n\t\tStreet[] arrOfStreets = model.getStreets();\r\n\t\t\r\n\t\tBufferStrategy bs = frame.getBufferStrategy();\r\n\r\n Graphics g = bs.getDrawGraphics();\r\n \r\n g.setColor(Color.white);\r\n g.fillRect(0, 0, frame.getWidth(), frame.getHeight());\r\n \r\n //Rendering roads:\r\n\t\tfor(int i = 0; i < arrOfCrosses.length; ++i) {\r\n\t\t\tarrOfCrosses[i].renderRoad(g, handler.getX(), handler.getY());\r\n\t\t}\r\n\t\tfor(int i = 0; i < arrOfStreets.length; ++i) {\r\n\t\t\tarrOfStreets[i].renderRoad(g, handler.getX(), handler.getY());\r\n\t\t}\r\n \r\n\t\t//Rendering cars:\r\n\t\tfor(int i = 0; i < arrOfCrosses.length; ++i) {\r\n\t\t\tarrOfCrosses[i].renderCars(g, handler.getX(), handler.getY());\r\n\t\t}\r\n\t\tfor(int i = 0; i < arrOfStreets.length; ++i) {\r\n\t\t\tarrOfStreets[i].renderCars(g, handler.getX(), handler.getY());\r\n\t\t}\r\n\t\t\r\n g.dispose();\r\n bs.show();\r\n\t}", "title": "" }, { "docid": "dceafbad626252d9c813682c62985daf", "score": "0.53836584", "text": "private void paintPuzzle() {\r\n SwingUtilities.invokeLater(() -> {\r\n \tthis.board.removeAll();\r\n \t\r\n \tCollections.sort(tiles);\r\n \t\r\n \ttiles.forEach(tile -> {\r\n \t\tfinal TileButton btn = new TileButton(tile);\r\n this.board.add(btn);\r\n btn.setBorder(BorderFactory.createLineBorder(Color.gray));\r\n btn.addActionListener(actionListener -> {\r\n selectionManager.selectTile(tile, (tile1, tile2) -> {\r\n puzzleActor.tell(new BoardActor.Swap(tile1, tile2));\r\n });\r\n });\r\n \t});\r\n\r\n \tthis.pack();\r\n \tthis.setVisible(true);\r\n checkSolution();\r\n });\r\n }", "title": "" }, { "docid": "61feaa33e26bfe793649040c414e7e8e", "score": "0.53826994", "text": "public static void resetHighlightTile(){\n int index = setNewRandomHighlightTileIndex();\n highlightedTileIndex = index;\n Tile tile = tiles.get(index);\n tile.mToBeHighlighted = true;\n }", "title": "" }, { "docid": "1e783af703fe83193b99f54d41fd6e06", "score": "0.5377718", "text": "private void render(){\n\t\tbs = display.getCanvas().getBufferStrategy();\r\n\t\tif(bs == null){\r\n\t\t\tdisplay.getCanvas().createBufferStrategy(3);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tg = (Graphics2D) bs.getDrawGraphics();\r\n\t\t//Clear Screen\r\n\t\tg.clearRect(0, 0, width, height);\r\n\t\t\r\n\t\t//Draw Here\r\n\t\t\r\n\t\tfor(int i = 0; i<9; i++){\r\n\t\t\tblocks[i].render(g);\r\n\t\t\tblocks2[i].render(g);\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\tt1.render(g);\r\n\t\tt2.render(g);\r\n\t\t\r\n\t\t//End Drawing\r\n\t\t\r\n\t\tbs.show();\r\n\t\tg.dispose();\r\n\t\t\r\n\t}", "title": "" }, { "docid": "b6f3b3feae9c7f3fc665c67e57fc4e86", "score": "0.53773135", "text": "public void render(){\n\n\t\tbackground.drawComponent();\n\t\tdrawHeadings();\n\t\tdrawLabels();\n\t\tdrawSeparators();\n\n\t}", "title": "" }, { "docid": "be6889b8f0cb9d1b5029b62db2c97031", "score": "0.53761744", "text": "void unhighlight() {\n for (int i = 0; i < 8; i++) {\n for (int j = 0; j < 8; j++) {\n squareViews[i][j].unSelect();\n\n\n }\n }\n }", "title": "" }, { "docid": "59e5b9c7a058fb02030421b46a2077fe", "score": "0.53725415", "text": "private void renderTileLayerLine(Layer layer, int x, int y, int sx, int sy,\n int width, int ty) {\n TileInfo[][] tiles = layer.getTiles();\n for (TileSet tileset : map.getTileSets()) {\n int id = tileset.getIndex();\n\n Texture image = null;\n for (int tx = 0; tx < width; tx++) {\n if ((sx + tx < 0) || (sy + ty < 0)) {\n continue;\n }\n if (sx + tx >= map.getWidth() || sy + ty >= map.getHeight()) {\n continue;\n }\n\n TileInfo info = tiles[sx + tx][sy + ty];\n if (info != null && info.tileSetId == id) {\n if (image == null) {\n image = (Texture) tileset.getAttachment();\n }\n\n int sheetX = tileset.getTileX(tiles[sx + tx][sy + ty].localId);\n int sheetY = tileset.getTileY(tiles[sx + tx][sy + ty].localId);\n\n int tileOffsetY = tileset.getTileHeight() - mapTileHeight;\n\n float px = x + (tx * mapTileWidth);\n float py = y + (ty * mapTileHeight) - tileOffsetY;\n \n int coordX = (int) (sheetX * tileset.getTileWidth()); \n coordX += tileset.getTileMargin() + sheetX * tileset.getTileSpacing();\n int coordY = ((int) sheetY * tileset.getTileHeight());\n coordY += tileset.getTileMargin() + sheetY * tileset.getTileSpacing();\n\n DrawUtil.batch.draw(image, px, py,\n tileset.getTileWidth(), tileset.getTileHeight(),\n coordX, coordY,\n tileset.getTileWidth(), tileset.getTileHeight(),\n false, true);\n }\n }\n }\n }", "title": "" }, { "docid": "eda5f422b3e53df9e275a85ce116f32d", "score": "0.53681314", "text": "public void render(float delta) {\r\n\t\tcamera.update();\r\n \r\n\t\t//render by ortho camera coordinates:\r\n\t\tbatch.setProjectionMatrix(camera.combined);\r\n\t\t\r\n\t\t//Draw current grid:\r\n\t\tbatch.begin();\r\n\t\tbatch.draw(fondo, 0, 0, viewportWidth, viewportHeight);\r\n\t\tbatch.draw(heladera, 0, 0, boardWidth, boardHeight);\t\t\r\n\t\tfor (BlockDrawable block : tablero.getAllBlocksToDraw())\r\n\t\t\tblock.draw(batch, boardOffset );\r\n\r\n\t\t\r\n\t\texplosionChecker.checkRowExplosion();\r\n\t\t\r\n\t\tfor (Iterator<PooledEffect> it = effects.iterator(); it.hasNext(); ) {\r\n\t\t\tPooledEffect effect = it.next();\r\n\t\t\tif (effect.isComplete()) {\r\n\t\t\t\tit.remove();\r\n\t\t\t\teffect.free();\r\n\t\t\t}\r\n//\t\t\tif (!effect.isComplete()) {\r\n\t\t\t\teffect.draw(batch, delta);\r\n//\t\t\t\t}\r\n\t\t}\r\n\r\n\t\trenderPreview();\r\n\t\trenderScore(delta);\r\n\t\ttweenManager.update(delta);\r\n\t\trenderScorePopUp();\r\n\t\tbatch.end();\r\n\t\t\r\n\t}", "title": "" }, { "docid": "e9f38ffed3a6ef2f338489f0e901d03f", "score": "0.53596747", "text": "final void paintSlabs(final Graphics2D g, final Layer active_layer, final boolean active, final Rectangle srcRect, final double magnification, final Set<Node> to_paint) {\n \t\t\t// Since this method is called, this node is to be painted and by definition is inside the Set to_paint.\n \t\t\tif (null != children) {\n \t\t\t\tfinal double actZ = active_layer.getZ();\n \t\t\t\tfinal double thisZ = this.la.getZ();\n \t\t\t\t//Which edge color?\n \t\t\t\tColor local_edge_color = Treeline.this.color;\n \t\t\t\tif (active_layer == this.la) {} // default color\n \t\t\t\telse if (actZ > thisZ) {\n \t\t\t\t\tlocal_edge_color = Color.red;\n \t\t\t\t} else if (actZ < thisZ) local_edge_color = Color.blue;\n \n \t\t\t\tfinal float[] fps = new float[children.length + children.length];\n \t\t\t\tfps[0] = this.x;\n \t\t\t\tfps[1] = this.y;\n \t\t\t\tTreeline.this.at.transform(fps, 0, fps, 0, 1);\n \n \t\t\t\t// To screen coords:\n \t\t\t\tfinal int x = (int)((fps[0] - srcRect.x) * magnification);\n \t\t\t\tfinal int y = (int)((fps[1] - srcRect.y) * magnification);\n \n \t\t\t\tsynchronized (this) {\n \t\t\t\t\t// Transform points\n \t\t\t\t\tfor (int i=0, k=0; i<children.length; i++, k+=2) {\n \t\t\t\t\t\tfps[k] = children[i].x;\n \t\t\t\t\t\tfps[k+1] = children[i].y;\n \t\t\t\t\t}\n \t\t\t\t\tTreeline.this.at.transform(fps, 0, fps, 0, children.length);\n \t\t\t\t\t//\n \t\t\t\t\tfor (int i=0, k=0; i<children.length; i++, k+=2) {\n \t\t\t\t\t\tfinal Node child = children[i];\n \t\t\t\t\t\t// To screen coords:\n \t\t\t\t\t\tfinal int chx = (int)((fps[k] - srcRect.x) * magnification);\n \t\t\t\t\t\tfinal int chy = (int)((fps[k+1] - srcRect.y) * magnification);\n \t\t\t\t\t\tif (!to_paint.contains(child)) {\n \t\t\t\t\t\t\t// Paint proximal half edge to the child\n \t\t\t\t\t\t\tg.setColor(local_edge_color);\n \t\t\t\t\t\t\tg.drawLine((int)x, (int)y, (int)(x + (chx - x)/2), (int)(y + (chy - y)/2));\n \t\t\t\t\t\t} else {\n \t\t\t\t\t\t\t// Paint full edge, but perhaps in two halfs of different colors\n \t\t\t\t\t\t\tif ((child.la == this.la && this.la == active_layer)\n \t\t\t\t\t\t\t || (this.la.getZ() < actZ && child.la.getZ() < actZ)\n \t\t\t\t\t\t\t || (this.la.getZ() > actZ && child.la.getZ() > actZ)) {\n \t\t\t\t\t\t\t\t// Full edge in local color\n \t\t\t\t\t\t\t\tg.setColor(local_edge_color);\n \t\t\t\t\t\t\t\tg.drawLine((int)x, (int)y, (int)chx, (int)chy);\n \t\t\t\t\t\t\t} else {\n \t\t\t\t\t\t\t\tif (thisZ < actZ && actZ < child.la.getZ()) {\n \t\t\t\t\t\t\t\t\t// passing by: edge crosses the current layer\n \t\t\t\t\t\t\t\t\t// Draw middle segment in current color\n \t\t\t\t\t\t\t\t\tg.setColor(local_edge_color);\n \t\t\t\t\t\t\t\t\tg.drawLine((int)(x + (chx - x)/4), (int)(y + (chy - y)/4),\n \t\t\t\t\t\t\t\t\t\t (int)(x + 3*(chx - x)/4), (int)(y + 3*(chy - y)/4));\n \t\t\t\t\t\t\t\t} else if (this.la == active_layer) {\n \t\t\t\t\t\t\t\t\t// Proximal half in this color\n \t\t\t\t\t\t\t\t\tg.setColor(local_edge_color);\n \t\t\t\t\t\t\t\t\tg.drawLine((int)x, (int)y, (int)(x + (chx - x)/2), (int)(y + (chy - y)/2));\n \t\t\t\t\t\t\t\t\t// Distal either red or blue:\n \t\t\t\t\t\t\t\t\tColor c = local_edge_color;\n \t\t\t\t\t\t\t\t\t// If other towards higher Z:\n \t\t\t\t\t\t\t\t\tif (actZ < child.la.getZ()) c = Color.blue;\n \t\t\t\t\t\t\t\t\t// If other towards lower Z:\n \t\t\t\t\t\t\t\t\telse if (actZ > child.la.getZ()) c = Color.red;\n \t\t\t\t\t\t\t\t\t//\n \t\t\t\t\t\t\t\t\tg.setColor(c);\n \t\t\t\t\t\t\t\t\tg.drawLine((int)(x + (chx - x)/2), (int)(y + (chy - y)/2), (int)chx, (int)chy);\n \t\t\t\t\t\t\t\t} else if (child.la == active_layer) {\n \t\t\t\t\t\t\t\t\t// Distal half in the Displayable color\n \t\t\t\t\t\t\t\t\tg.setColor(Treeline.this.color);\n \t\t\t\t\t\t\t\t\tg.drawLine((int)(x + (chx - x)/2), (int)(y + (chy - y)/2), (int)chx, (int)chy);\n \t\t\t\t\t\t\t\t\t// Proximal half in either red or blue:\n \t\t\t\t\t\t\t\t\tg.setColor(local_edge_color);\n \t\t\t\t\t\t\t\t\tg.drawLine((int)x, (int)y, (int)(x + (chx - x)/2), (int)(y + (chy - y)/2));\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\tif (active && (active_layer == this.la || active_layer == child.la || (thisZ < actZ && actZ > child.la.getZ()))) {\n \t\t\t\t\t\t\t// Draw confidence half-way through the edge\n \t\t\t\t\t\t\tString s = Integer.toString(confidence[i]&0xff);\n \t\t\t\t\t\t\tDimension dim = Utils.getDimensions(s, g.getFont());\n \t\t\t\t\t\t\tg.setColor(Color.white);\n \t\t\t\t\t\t\tint xc = (int)(x + (chx - x)/2);\n \t\t\t\t\t\t\tint yc = (int)(y + (chy - y)/2); // y + 0.5*chy - 0.5y = (y + chy)/2\n \t\t\t\t\t\t\tg.fillRect(xc, yc, dim.width+2, dim.height+2);\n \t\t\t\t\t\t\tg.setColor(Color.black);\n \t\t\t\t\t\t\tg.drawString(s, xc+1, yc+dim.height+1);\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}", "title": "" }, { "docid": "05c84a534ccda50b42646cf0ed55dfaa", "score": "0.5355233", "text": "private void refreshTiles() {\n removeAllViews();\n\n int dimension = mLastBoardState.getDimension();\n for (int i = 0; i < dimension; i++) {\n for (int j = 0; j < dimension; j++) {\n TileView tileView = mTileViews[i][j];\n if (tileView != null) {\n tileView.setX(getTileXY(j));\n tileView.setY(getTileXY(i));\n addView(tileView);\n }\n }\n }\n }", "title": "" }, { "docid": "85780e705fc4a406557c6a3f9d78a607", "score": "0.5352739", "text": "private void loadTiles(){\r\n\t\tint[] tileColours = this.image.getRGB(0,0, width, height, null, 0 , width);\r\n\t\tfor( int y = 0; y < height; y++){\r\n\t\t\tfor(int x = 0; x < width; x++){\r\n\t\t\t\ttileCheck: for(Tile t : Tile.tiles){\r\n\t\t\t\t\tif(t != null && t.getLevelColour() == tileColours[x + y * width]){\r\n\t\t\t\t\t\tthis.tiles[x+y * width] = t.getId();\r\n\t\t\t\t\t\tbreak tileCheck;\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}", "title": "" }, { "docid": "3c914c7e3a0bf9a5d0e315ef119c4e8d", "score": "0.5345612", "text": "private void renderBoard() {\r\n /* reset all the 2D array elements to ZERO */\r\n for (int k = 0; k < grid.length; k++)\r\n for (int m = 0; m < grid[k].length; m++)\r\n grid[k][m] = 0;\r\n /* fill in the 2D array */\r\n for (int i=0;i < grid.length; i++){\r\n \tfor(int j=0;j< grid[i].length;j++){\r\n \t\tgrid[j][i] = game.getGame()[i][j];\r\n \t}\r\n }\r\n \r\n /* Print the 2D array using dots and numbers */\r\n for (int k = 0; k < grid.length; k++) {\r\n for (int m = 0; m < grid[k].length; m++)\r\n if (grid[k][m] <= 0)\r\n System.out.printf (BLANK_FORMAT, \".\");\r\n else\r\n System.out.printf (NUM_FORMAT, grid[k][m]);\r\n System.out.println();\r\n }\r\n }", "title": "" }, { "docid": "32947187d35ee8f563b2c86087a16bea", "score": "0.5342275", "text": "private void paintCells(Canvas canvas) {\n mCellsPaint.setColor(Color.BLACK);\n\n int cellWidth = mGridSpacing;\n int cellHeight = mGridSpacing;\n\n for (int row = 0; row <= mNumOfRows; row++) {\n for (int col = 0; col <= mNumOfCols; col++) {\n if (isCellColored(row, col)) {\n canvas.drawRect(row * cellWidth, col * cellHeight,\n (row + 1) * cellWidth, (col + 1) * cellHeight,\n mCellsPaint);\n }\n }\n }\n }", "title": "" }, { "docid": "1a5b4695e930736ca918d4da9a12bd9c", "score": "0.5339782", "text": "public void render(Graphics g) {\n\n\t\t// with this variables we now can render using the camera as reference only the\n\t\t// tiles that are in the screen and as we move the player around the map we\n\t\t// render the tiles that are appearing and stop rendering the tiles that are\n\t\t// disappearing\n\n\t\t// the xStart marks where we should start rendering, it's either 0 or the far\n\t\t// right of the screen\n\t\tint xStart = (int) Math.max(0, handler.getGameCamera().getxOffset() / Tile.TILEWIDTH);\n\n\t\t// the xEnd marks where we should stop rendering, it's either width or the or\n\t\t// the far left of the screen\n\t\tint xEnd = (int) Math.min(width,\n\t\t\t\t(handler.getGameCamera().getxOffset() + handler.getWidth()) / Tile.TILEWIDTH + 1);\n\n\t\t// the yStart marks where we should start rendering, it's either 0 or the far\n\t\t// down of the screen\n\t\tint yStart = (int) Math.max(0, handler.getGameCamera().getyOffset() / Tile.TILEHEIGHT);\n\n\t\t// the xEnd marks where we should stop rendering, it's either width or the or\n\t\t// the far up of the screen\n\t\tint yEnd = (int) Math.min(height,\n\t\t\t\t(handler.getGameCamera().getyOffset() + handler.getHeight()) / Tile.TILEHEIGHT + 1);\n\n\t\tfor (int y = yStart; y < yEnd; y++) {\n\t\t\tfor (int x = xStart; x < xEnd; x++) {\n\n\t\t\t\t// where we render the tiles of our world we apply the xOffset and yOffset of\n\t\t\t\t// the camera so we move the tiles in our world accordingly to the movement of\n\t\t\t\t// the camera\n\t\t\t\tgetTile(x, y).render(g, (int) (x * Tile.TILEWIDTH - handler.getGameCamera().getxOffset()),\n\t\t\t\t\t\t(int) (y * Tile.TILEHEIGHT - handler.getGameCamera().getyOffset()));\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "f76e67511f79254b07f343160e447454", "score": "0.5338251", "text": "public void removeAllHighlights() {\n\t\tgetBoard().removeAllHighlights();\n\t}", "title": "" }, { "docid": "57b430b588d428ffebfcf7a31dccf54e", "score": "0.53226393", "text": "private void regenerateTiles() {\n // calculate the tile dimension in pixels\n mTilePadding = (int) getResources().getDimension(R.dimen.tiles_spacing);\n\n mTileSize = (int) (((float) (mBoardWidth - (mLastBoardState.getDimension() + 1) * mTilePadding)) / mLastBoardState.getDimension());\n\n int dimension = mLastBoardState.getDimension();\n mTileViews = new TileView[dimension][dimension];\n mOriginalPositions = new TileView[dimension][dimension];\n\n for (int i = 0; i < dimension; i++) {\n for (int j = 0; j < dimension; j++) {\n\n int index = mLastBoardState.getTiles()[i][j];\n TileView tileView = new TileView(getContext(), mTileSize, index);\n mTileViews[i][j] = tileView;\n mOriginalPositions[i][j] = tileView;\n tileView.setOnTouchListener(new OnTouchListener() {\n @Override\n public boolean onTouch(View v, MotionEvent event) {\n switch (event.getAction()) {\n case MotionEvent.ACTION_DOWN:\n if (v instanceof TileView) {\n TileView tile = (TileView) v;\n handleTileClicked(tile);\n }\n }\n return true;\n }\n });\n }\n\n }\n\n refreshTiles();\n }", "title": "" }, { "docid": "49562a0be24357b419a12b0bb5cd6946", "score": "0.5309711", "text": "private void drawAll() {\n\t\t\tremoveLoadDialog();\n\t\t\tContainer root = myContext.getContainer(\"root\");\n\t\t\tif (root==null && myContext.hasContainers()) {\n\t\t\t\to.addRow(\"\");\n\t\t\t\to.addRedText(\"TEMPLATE ERROR: Cannot find the root container. \\nEach template must have a root! Execution aborted.\");\t\t\t\t\n\t\t\t} else {\n\t\t\t\t//Now all blocks are executed.\n\t\t\t\t//Draw the UI.\n\t\t\t\to.addRow(\"\");\n\t\t\t\to.addYellowText(\"Now Drawing components recursively\");\n\t\t\t\tLog.d(\"vortex\",\"Now Drawing components recursively\");\n\t\t\t\t//Draw all lists first.\n\t\t\t\tfor (WF_Static_List l:myContext.getLists())\n\t\t\t\t\tl.draw();\n\t\t\t\tfor (WF_Table t:myContext.getTables())\n\t\t\t\t\tt.draw();\n\n\t\t\t\tif (root!=null) \n\t\t\t\t\tmyContext.drawRecursively(root);\n\t\t\t\t//open menu if any\n\t\t\t\tif (delayedOnSave!=null) {\n\n Log.d(\"blubb\",\"executing delayed onSave\");\n\t\t\t\t\tmyContext.registerEvent(delayedOnSave);\n delayedOnSave=null;\n\t\t\t\t}\n\t\t\t\tif (myContext.hasMenu()) {\n\t\t\t\t\tLog.d(\"vortex\",\"Drawing menu\");\n\t\t\t\t\tgs.getDrawerMenu().openDrawer();\n\t\t\t\t}\n\n\t\t\t\t//Send event that flow has executed.\n\t\t\t\tLog.d(\"vortex\",\"Registering WF EXECUTION\");\n\t\t\t\tmyContext.registerEvent(new WF_Event_OnFlowExecuted(\"executor\"));\n\t\t\t\tif (root==null) {\n\n\t\t\t\t\tint c = getActivity().getFragmentManager().getBackStackEntryCount();\n\t\t\t\t\tLog.d(\"blax\",\"need to redraw previous fragment if there is one! \"+c);\n\t\t\t\t\tif (c>0) {\n\t\t\t\t\t\tLog.d(\"blax\",\"there is a fragment to redraw. Try broadcast!\");\n Intent intent = new Intent();\n intent.setAction(Executor.REDRAW_PAGE);\n intent.putExtra(\"RedrawAfterExecutingSub\",true);\n\t\t\t\t\t\tgs.sendSyncEvent(intent);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\n\t}", "title": "" }, { "docid": "50e1d97dc05a1a57b565dae663179d67", "score": "0.53045297", "text": "private List<Rectangle> makeColumns()\r\n {\r\n List<Rectangle> list = new ArrayList<>();\r\n for(int x = 0; x < ROWS;x++)\r\n {\r\n for(int y = 0; y< COLUMNS; y++)\r\n {\r\n //highlights the tile that the user is hovering over\r\n Rectangle rect = new Rectangle(TILE_SIZE,TILE_SIZE);\r\n rect.setTranslateX(x*(TILE_SIZE ) );\r\n rect.setTranslateY(y*(TILE_SIZE));\r\n rect.setFill(Color.TRANSPARENT);\r\n rect.setOnMouseEntered(e-> rect.setFill(Color.rgb(200,200,50,0.3)));\r\n rect.setOnMouseExited(e->rect.setFill(Color.TRANSPARENT));\r\n\r\n final int column = x;\r\n final int row = y;\r\n\r\n //when the user clicks, puts an appropriate piece down\r\n rect.setOnMouseClicked(e-> {\r\n Piece piece = null;\r\n\r\n //checks which color piece to put down when the mouse is clicked\r\n if(blackMove) \r\n piece = placePiece(PieceType.BLACK,column-1, row-1); \r\n else\r\n piece = placePiece(PieceType.WHITE,column-1, row-1);\r\n\r\n //checks if either player has won once they play a piece \r\n if(piece!=null)\r\n {\r\n\r\n pieceGroup.getChildren().add(piece);\r\n\r\n if(blackMove)\r\n {\r\n if(testRight(grid,row,PieceType.BLACK)==true)\r\n {\r\n gameOver=true;\r\n if(WinBox.display(PieceType.BLACK)==true)\r\n resetBoard();\r\n\r\n }\r\n else if(testDown(grid,column,PieceType.BLACK)==true)\r\n {\r\n gameOver=true;\r\n if(WinBox.display(PieceType.BLACK)==true)\r\n resetBoard();\r\n\r\n }\r\n else if(testDiagonalLeft(grid,row,column,PieceType.BLACK))\r\n {\r\n gameOver=true;\r\n if(WinBox.display(PieceType.BLACK)==true)\r\n resetBoard();\r\n\r\n }\r\n else if(testDiagonalRight(grid,row,column,PieceType.BLACK))\r\n {\r\n gameOver=true;\r\n if(WinBox.display(PieceType.BLACK)==true)\r\n resetBoard();\r\n\r\n }\r\n\r\n }\r\n else\r\n {\r\n if(testRight(grid,row,PieceType.WHITE)==true)\r\n {\r\n gameOver=true;\r\n if(WinBox.display(PieceType.WHITE)==true)\r\n resetBoard();\r\n\r\n }\r\n else if(testDown(grid,column,PieceType.WHITE)==true)\r\n {\r\n gameOver=true;\r\n if(WinBox.display(PieceType.WHITE)==true)\r\n resetBoard();\r\n\r\n }\r\n else if(testDiagonalLeft(grid,row,column,PieceType.WHITE))\r\n {\r\n gameOver=true;\r\n if(WinBox.display(PieceType.WHITE)==true)\r\n resetBoard();\r\n\r\n }\r\n else if(testDiagonalRight(grid,row,column,PieceType.WHITE))\r\n {\r\n gameOver=true;\r\n if(WinBox.display(PieceType.WHITE)==true)\r\n resetBoard();\r\n\r\n }\r\n\r\n }\r\n //switches color\r\n blackMove=!blackMove;\r\n }\r\n\r\n });\r\n\r\n list.add(rect);\r\n }\r\n }\r\n\r\n return list;\r\n }", "title": "" }, { "docid": "abdae5778f18ddd785e7a2116214522e", "score": "0.530405", "text": "private void previewTiles(boolean isGreenTurn) {\n LinkedList<Shape> greenShapes = boardState.getGreenShapes();\n LinkedList<Shape> redShapes = boardState.getRedShapes();\n\n greenPiecesLeft.setText(greenShapes.size() + \" piece(s) left\"\n + \"\\nScore = \" + boardState.getScore(true));\n redPiecesLeft.setText(redShapes.size() + \" piece(s) left\"\n + \"\\nScore = \" + boardState.getScore(false));\n\n // Show how many pieces a player has left and the current score\n if (isGreenTurn) {\n playerTurn.setTextFill(Color.RED);\n playerTurn.setText(\"Red Player's Turn\");\n if (redHintCount != 0) redHint.setDisable(false);\n greenHint.setDisable(true);\n greenNextTile.setVisible(false);\n redNextTile.setVisible(true);\n } else {\n playerTurn.setTextFill(Color.GREEN);\n playerTurn.setText(\"Green Player's Turn\");\n if (greenHintCount != 0) greenHint.setDisable(false);\n redHint.setDisable(true);\n redNextTile.setVisible(false);\n greenNextTile.setVisible(true);\n }\n \n // Check if we are approaching the end game state, if so translate pieces left labels accordingly\n if (isGreenTurn && greenShapes.isEmpty()) {\n // Green runs out of pieces\n root.getChildren().remove(greenCurrentTile);\n greenPiecesLeft.setTranslateY(45);\n return;\n } else if (redShapes.isEmpty()) {\n // Red runs out of pieces, end of game\n root.getChildren().remove(redCurrentTile);\n redPiecesLeft.setTranslateY(45);\n return;\n }\n\n // We create a new preview cell based on whose turn it is\n if (isGreenTurn) showCurrentTile(greenShapes.getFirst(), true);\n else showCurrentTile(redShapes.getFirst(), false);\n\n // Add next tile to preview or move the `Pieces Left` label\n if (greenShapes.size() == 1 && isGreenTurn) {\n root.getChildren().remove(greenNextTile);\n greenPiecesLeft.setTranslateY(110);\n } else if (redShapes.size() == 1) {\n root.getChildren().remove(redNextTile);\n redPiecesLeft.setTranslateY(110);\n } else {\n // Get the next shape after the current one - i.e. player has picked up current shape\n Shape shape = (isGreenTurn) ? greenShapes.get(1) : redShapes.get(1);\n showNextTile(shape, isGreenTurn);\n }\n }", "title": "" }, { "docid": "09720119aae263729b7d6c6b624cb20f", "score": "0.5290104", "text": "protected void paintComponent(Graphics g) {\n Color lightBrown = new Color(233, 174, 95);\n Color darkBrown = new Color(177, 113, 24);\n //64 tiles\n for (int x = 0; x < 8; x++) {\n for (int y = 0; y < 8; y++) {\n if ((x % 2 == 0 && y % 2 == 0) || (x % 2 != 0 && y % 2 != 0)) {\n g.setColor(lightBrown);\n } else {\n g.setColor(darkBrown);\n }\n g.fillRect(x * Chess.pieceSize, y * Chess.pieceSize, Chess.pieceSize, Chess.pieceSize);\n }\n }\n\n for (int x = 0; x < 8; x++) {\n for (int y = 0; y < 8; y++) {\n if (Chess.position[x][y] != null) {\n\n g.drawImage(Chess.position[x][y].image.getImage(), x * Chess.pieceSize, y * Chess.pieceSize, null);\n }\n\n }\n }\n\n\n //draw a single tile at top left corner\n //use fillRect: needs top left corner, width, height\n //top left: 0,0 width: Chess.piece size\n\n// //black pieces\n//\n// //Knights\n// ImageIcon bKnightIcon = new ImageIcon(\"bknight.gif\");\n// g.drawImage(bKnightIcon.getImage(), Chess.pieceSize, 0,null);\n// g.drawImage(bKnightIcon.getImage(),6*Chess.pieceSize, 0,null);\n//\n// //rooks\n// ImageIcon bRooks = new ImageIcon(\"brook.gif\");\n// g.drawImage(bRooks.getImage(), 0, 0,null);\n// g.drawImage(bRooks.getImage(),7*Chess.pieceSize, 0,null);\n//\n// //bishops\n// ImageIcon bBishops = new ImageIcon(\"bbishop.gif\");\n// g.drawImage(bBishops.getImage(),2*Chess.pieceSize, 0,null);\n// g.drawImage(bBishops.getImage(),5*Chess.pieceSize, 0,null);\n//\n// //bKing\n// ImageIcon bKing = new ImageIcon(\"bking.gif\");\n// g.drawImage(bKing.getImage(),3*Chess.pieceSize, 0,null);\n//\n// //bQueen\n// ImageIcon bQueen = new ImageIcon(\"bqueen.gif\");\n// g.drawImage(bQueen.getImage(),4*Chess.pieceSize, 0,null);\n//\n// //8 bpawns\n// for (int i = 0; i < 8; i++)\n// {\n// ImageIcon bPawn = new ImageIcon(\"bpawn.gif\");\n// g.drawImage(bPawn.getImage(),i*Chess.pieceSize, Chess.pieceSize,null);\n//\n// }\n//\n//\n// //white pieces\n//\n// //wRooks\n// ImageIcon image = new ImageIcon(\"wrook.gif\");\n// g.drawImage(image.getImage(), 0,7*44,null);\n// g.drawImage(image.getImage(),7*44,7*44,null);\n//\n// //wKnights\n// ImageIcon wKnight = new ImageIcon(\"wknight.gif\");\n// g.drawImage(wKnight.getImage(), Chess.pieceSize,7*Chess.pieceSize,null);\n// g.drawImage(wKnight.getImage(),6*Chess.pieceSize,7*Chess.pieceSize,null);\n//\n// //wBishops\n// ImageIcon wBishops = new ImageIcon(\"wbishop.gif\");\n// g.drawImage(wBishops.getImage(),2*Chess.pieceSize,7*Chess.pieceSize,null);\n// g.drawImage(wBishops.getImage(),5*Chess.pieceSize,7*Chess.pieceSize,null);\n//\n// //wKing\n// ImageIcon wKing = new ImageIcon(\"wking.gif\");\n// g.drawImage(wKing.getImage(),3*Chess.pieceSize,7*Chess.pieceSize,null);\n//\n// //wQueen\n// ImageIcon wQueen = new ImageIcon(\"wqueen.gif\");\n// g.drawImage(wQueen.getImage(),4*Chess.pieceSize,7*Chess.pieceSize,null);\n//\n// //8 wPawns\n// for (int i = 0; i < 8; i++)\n// {\n// ImageIcon wPawn = new ImageIcon(\"wpawn.gif\");\n// g.drawImage(wPawn.getImage(),i*Chess.pieceSize,6*Chess.pieceSize,null);\n//\n// }\n\n }", "title": "" }, { "docid": "46e42f137d371ecbd723054133410280", "score": "0.52836835", "text": "public void initializeGameScreenTiles() {\n FieldStateEnum[][] map = gameHandler.level;\n gameScreenTiles = new GameScreenTile[map[0].length][map.length];\n for (int j = 0; j < gameScreenTiles.length; j++) {\n for (int i = 0; i < gameScreenTiles[j].length; i++) {\n GameScreenTile tile = new GameScreenTile(GameScreenTileStateEnum.FREE);\n tile.setFoggy(false);\n tile.setGadget(null);\n tile.setCharacter(null);\n if (map[i][j].equals(FieldStateEnum.WALL)) {\n tile.setTileState(GameScreenTileStateEnum.WALL);\n } else if (map[i][j].equals(FieldStateEnum.BAR_TABLE)) {\n tile.setTileState(GameScreenTileStateEnum.BAR_TABLE);\n } else if (map[i][j].equals(FieldStateEnum.BAR_SEAT)) {\n tile.setTileState(GameScreenTileStateEnum.BAR_SEAT);\n } else if (map[i][j].equals(FieldStateEnum.FIREPLACE)) {\n tile.setTileState(GameScreenTileStateEnum.FIREPLACE);\n } else if (map[i][j].equals(FieldStateEnum.ROULETTE_TABLE)) {\n tile.setTileState(GameScreenTileStateEnum.ROULETTE);\n tile.setInverted(false);\n tile.setDestroyed(false);\n } else if (map[i][j].equals(FieldStateEnum.SAFE)) {\n tile.setTileState(GameScreenTileStateEnum.SAFE);\n }\n gameScreenTiles[j][i] = tile;\n }\n }\n }", "title": "" }, { "docid": "f69e80f1842d0d106f572c61e77ca837", "score": "0.5264839", "text": "private void initTiles() { \r\n for(int i=0;i<lengthfield;i++){\r\n for(int j=0;j<NUMBERTILES[i];j++){\r\n tiles[i][j]=new TileDrawer();\r\n tiles[i][j].setX(beginX+xBeginRow[i]+xBetween2Tiles*scale*j);\r\n tiles[i][j].setY(beginY+yBeginRow[i]+yBetween2Tiles*scale*j); \r\n }\r\n }\r\n }", "title": "" }, { "docid": "d1acb71be4f6988a154fb55f902217e5", "score": "0.5263187", "text": "private void doTileProcessing() {\n FileChannelJDKBugWorkAround.doBugWorkAround();\n \n // Generate the list of tiles that will be processed\n final List<Tile> tiles = new ArrayList<Tile>();\n for (final Integer tileNumber : this.tiles) {\n tiles.add(new Tile(tileNumber));\n }\n \n final TileReadAggregator tileReadAggregator = new TileReadAggregator(tiles);\n tileReadAggregator.submit();\n try {\n tileReadAggregator.awaitWorkComplete();\n } catch (InterruptedException e) {\n log.error(e, \"Failure encountered in worker thread; attempting to shut down remaining worker threads and terminate ...\");\n tileReadAggregator.shutdown();\n throw new PicardException(\"Failure encountered in worker thread; see log for details.\");\n }\n }", "title": "" }, { "docid": "f4b2d66b6545460949b4ffcce7e60e60", "score": "0.52541876", "text": "private void updateScreen(){\n //Iterates over board and updates the screen\n for (int y = 0; y < height; y++) {\n for (int x = 0; x < width; x++) {\n\n if(cursorX == x && cursorY == y) {\n if (grid.getGrid()[x][y].getAlive()) {\n panel.write(\"#\", x, y, Color.blue, Color.RED);\n } else {\n panel.write(\"#\", x, y, Color.cyan,Color.red);\n }\n }else{\n if (grid.getGrid()[x][y].getAlive()) {\n panel.write(\"#\", x, y, Color.blue);\n } else {\n panel.write(\"#\", x, y, Color.cyan);\n }\n }\n }\n }\n panel.updateUI();\n }", "title": "" }, { "docid": "d12b490ecf44409358363893f31eee14", "score": "0.5245674", "text": "public void draw() {\r\n\t\tfor(int i = 0; i<height; i++) {\r\n\t\t\tfor(int j = 0; j<width; j++) {\r\n\t\t\t\tcolorMatrix(i, j);\r\n\t\t\t\tDrawing.graphics.setColor(Color.black);\r\n\t\t\t\tDrawing.graphics.drawRect(j*this.size, i*this.size, this.size, this.size);\r\n\t\t\t}\r\n\t\t}\r\n\t\tDrawing.paint(); \r\n\t}", "title": "" }, { "docid": "35702edc3af5e1f01d444292ab8b4319", "score": "0.5243636", "text": "private final void paintTile(int tilex, int tiley) {\n\t\tShapeFrame shape = getShape(tilex, tiley);\n\t\tif (shape != null && !shape.isRle()) {\t\t// Only do flat tiles.\n\t\t\tbyte src[] = shape.getData();\n\t\t\tbyte flats[] = renderedFlats.get();\n\t\t\tint from = 0, to = tilex*EConst.c_tilesize + \n\t\t\t\t\t\t\t tiley*EConst.c_tilesize*EConst.c_chunksize;\n\t\t\tfor (int y = 0; y < EConst.c_tilesize; ++y) {\n\t\t\t\tSystem.arraycopy(src, from, flats, to, EConst.c_tilesize);\n\t\t\t\tfrom += EConst.c_tilesize;\n\t\t\t\tto += EConst.c_chunksize;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "600e1f6d5fab06447791272a60e48365", "score": "0.52431947", "text": "public void renderGround(IntRange2D range, GameContainer gc, Graphics gfx)\n \t{\n \t\tgfx.setColor(Color.white);\n \t\tint x, y;\n \t\t\n \t\tfor(y = range.minY; y <= range.maxY; y++)\n \t\t{\n \t\t\tfor(x = range.minX; x <= range.maxX; x++)\n \t\t\t{\n \t\t\t\tif(contains(x, y))\n \t\t\t\t\tgetCellExisting(x, y).renderGround(x, y, gfx);\n \t\t\t}\n \t\t}\n \t\t\n \t\tif(renderGrid)\n\t\t\trenderGrid(range, gc, gfx);\n \t}", "title": "" }, { "docid": "f4aca1dba5261e77e51e56a17b97dece", "score": "0.5232857", "text": "Queue<TileCoordinate> explodedTiles(Tile tile, int color, int currentRow, int currentColumn, int totalRows, int totalColumns) {\n tile.color = color;\n tile.numOrbs++;\n Queue<TileCoordinate> tilesToBeClicked = new LinkedList<TileCoordinate>();\n if (tile.numOrbs >= tile.threshold) {\n tile.explode = true;\n tile.color = Tile.EMPTY;\n tile.numOrbs = tile.numOrbs % tile.threshold;\n\n if (leftTileExists(currentRow, currentColumn, totalRows, totalColumns)) {\n int leftColumn = currentColumn - 1;\n// Tile leftTile = chainreaction.tiles[currentRow][leftColumn];\n TileCoordinate leftTile = new TileCoordinate(currentRow, leftColumn);\n tilesToBeClicked.add(leftTile);\n// tileClicked(leftTile, color, currentRow, leftColumn, totalRows, totalColumns);\n }\n if (topTileExists(currentRow, currentColumn, totalRows, totalColumns)) {\n int topRow = currentRow - 1;\n// Tile topTile = chainreaction.tiles[topRow][currentColumn];\n TileCoordinate topTile = new TileCoordinate(topRow, currentColumn);\n tilesToBeClicked.add(topTile);\n// tileClicked(topTile, color, topRow, currentColumn, totalRows, totalColumns);\n }\n if (rightTileExists(currentRow, currentColumn, totalRows, totalColumns)) {\n int rightColumn = currentColumn + 1;\n// Tile rightTile = chainreaction.tiles[currentRow][rightColumn];\n TileCoordinate rightTile = new TileCoordinate(currentRow, rightColumn);\n tilesToBeClicked.add(rightTile);\n// tileClicked(rightTile, color, currentRow, rightColumn, totalRows, totalColumns);\n }\n if (bottomTileExists(currentRow, currentColumn, totalRows, totalColumns)) {\n int bottomRow = currentRow + 1;\n// Tile bottomTile = chainreaction.tiles[bottomRow][currentColumn];\n TileCoordinate bottomTile = new TileCoordinate(bottomRow, currentColumn);\n tilesToBeClicked.add(bottomTile);\n// tileClicked(bottomTile, color, bottomRow, currentColumn, totalRows, totalColumns);\n }\n }\n return tilesToBeClicked;\n }", "title": "" }, { "docid": "1ce3a77894b878f51ad7d21a318bcc4a", "score": "0.52320224", "text": "private void highlightLegals(Board board) {\n if(highlightLegalMoves) {\n for (Move move : pieceLegalMoves(board)) {\n if (move.getDestinationCoordinate() == this.tileId) {\n try {\n add(new JLabel(new ImageIcon(ImageIO.read(new File(\"QChess/other/green_dot.png\")))));\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n }\n }", "title": "" }, { "docid": "694b36fad88205ef25e3fcba78eae1dc", "score": "0.5231005", "text": "private void renderBoard(SinglyNode<Box> currentBox, int length, Graphics g) {\n for (int i = 0; i < length; i++) {\n currentBox.getData().render(g);\n currentBox = (SinglyNode<Box>) currentBox.getNext();\n }\n }", "title": "" }, { "docid": "8714ae9447c469957c6de7be286ed6e4", "score": "0.5228438", "text": "public void updateDisplay()\n\t{\n\t\t//Step 3\n\t\t//Hint - use a nested for loop\n\t\tfor(int rows = 0; rows < grid.length; rows++)\n\t\t{\n\t\t\tfor(int cols = 0; cols < grid[0].length; cols++)\n\t\t\t{\n\t\t\t\t//empty is black\n\t\t\t\tcolorElement(rows, cols, EMPTY, Color.black);\n\t\t\t\tcolorElement(rows, cols, METAL, Color.LIGHT_GRAY);\n\t\t\t\tcolorElement(rows, cols, SAND, Color.yellow);\n\t\t\t\tcolorElement(rows, cols, WATER, Color.blue);\n\t\t\t\tcolorElement(rows, cols, ACIDGAS, Color.green);\n\t\t\t\tcolorElement(rows, cols, SALT, Color.white);\n\t\t\t\tcolorElement(rows, cols, SWATER, Color.cyan);\n\t\t\t\tcolorElement(rows, cols, STONE, Color.GRAY);\n\t\t\t\tcolorElement(rows, cols, RUST, Color.red);\n\n\n\t\t\t}\n\n\t\t}\n\n\t}", "title": "" }, { "docid": "70999cdc691e2c3af33e4f83454380df", "score": "0.5217149", "text": "public void paintBoxes(){\n for (int i = 0; i < correctPosition; i++) resultBoxesMap.get(i).setBackgroundColor(Color.parseColor(\"#000000\"));\n\n\n //painting white, if its the case\n for (int i = correctPosition; i < correctPosition+correctColor; i++)resultBoxesMap.get(i).setBackgroundColor(Color.parseColor(\"#FFFFFF\"));\n }", "title": "" }, { "docid": "2b5197c5531026902aa2fd0b20ebc17e", "score": "0.5210654", "text": "@Override\n\tpublic void render() {\n\t\tui.displayMap();\t\t\n\t}", "title": "" }, { "docid": "e2589d3e7a344d8a3380830daa81e0e6", "score": "0.52102685", "text": "public WebImage[][] renderToTiles(MasterImage master, int tiled_width,\n int tiled_height) {\n int rows = tiled_height / tileSize();\n\n if ((tiled_height % tileSize()) != 0) {\n rows++;\n }\n\n int cols = tiled_width / tileSize();\n\n if ((tiled_width % tileSize()) != 0) {\n cols++;\n }\n\n WebImage[][] tiles = new WebImage[rows][cols];\n\n int master_tile_size = (master.width() * tileSize()) / tiled_width;\n // Window.alert(\"master tile size \" + master_tile_size);\n // Window.alert(\"master dim \" + master.width() + \",\" + master.height());\n\n for (int row = 0, master_tile_top = 0; row < rows; row++, master_tile_top += master_tile_size) {\n for (int col = 0, master_tile_left = 0; col < cols; col++, master_tile_left += master_tile_size) {\n int tile_width, master_tile_right;\n\n if (col == cols - 1) {\n tile_width = tiled_width - (col * tileSize());\n master_tile_right = master.width();\n } else {\n tile_width = tileSize();\n master_tile_right = master_tile_left + master_tile_size;\n }\n\n int tile_height, master_tile_bottom;\n\n if (row == rows - 1) {\n tile_height = tiled_height - (row * tileSize());\n master_tile_bottom = master.height();\n } else {\n tile_height = tileSize();\n master_tile_bottom = master_tile_top + master_tile_size;\n }\n\n // Window.alert(\"tile dimensions \" + tile_width + \"x\"\n // + tile_height + \" \" + \" master left,top,right,bottom \"\n // + master_tile_left + \",\" + master_tile_top + \",\"\n // + master_tile_right + \",\" + master_tile_bottom);\n\n // if (master_tile_right - master_tile_left < 0\n // || master_tile_bottom - master_tile_top < 0) {\n // Window.alert(\"error \" + master.id()\n // + \" master left,top,right,bottom \"\n // + master_tile_left + \",\" + master_tile_top + \",\"\n // + master_tile_right + \",\" + master_tile_bottom);\n // }\n\n WebImage tile = render(master, tile_width, tile_height,\n master_tile_left, master_tile_top, master_tile_right,\n master_tile_bottom);\n\n tiles[row][col] = tile;\n }\n }\n\n return tiles;\n }", "title": "" }, { "docid": "8301134414125148b33b305fb0dcc8ee", "score": "0.52095133", "text": "@Override\n protected void onDraw(Canvas canvas) {\n super.onDraw(canvas);\n mGrid.draw(canvas);\n for(Block block : mBlocks){\n block.draw(canvas, 0, 0, mGrid.getCellSize());\n }\n }", "title": "" }, { "docid": "9ec70e77d9cb52f8f8e0f14502bd7391", "score": "0.51990783", "text": "public static void renderGrid(GridPiece[][] grid, float gridWidth, float gridHeight, RBG rbg, Symbols s) throws InterruptedException {\n\n\t\tglBegin(GL_QUADS);\n\n\t\tgridWidth -= 0.0025f;\n\t\tgridHeight -= 0.0025f;\n\t\t\n\t\tfor (int row = 0; row < grid.length; row++) {\n\t\t\tfor (int col = 0; col < grid[row].length; col++) {\n\t\t\t\tGridPiece piece = grid[row][col];\n\n\t\t\t\tif (piece.getOccupied() && (piece.getComponent() != null)) {\n\t\t\t\t\tSymbols symbol;\n\n\t\t\t\t\tif (piece.getComponent() instanceof Button) {\n\t\t\t\t\t\tButton btn = (Button) piece.getComponent();\n\t\t\t\t\t\tsymbol = btn.getSymbol();\n\t\t\t\t\t}\n\t\t\t\t\telse if (piece.getComponent() instanceof Pedestrian) {\n\n\t\t\t\t\t\tTimeUnit.MILLISECONDS.sleep(50);\n\t\t\t\t\t\tsymbol = Symbols.S_PEDESTRIAN;\n\t\t\t\t\t\tPedestrian ped = (Pedestrian) piece.getComponent();\n\t\t\t\t\t\tif (ped.getNext_move() != null) {\n\t\t\t\t\t\t\trenderPedestrian(ped);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tSystem.out.println(\"Piece Class: \" + piece.getComponent());\n\t\t\t\t\t\tthrow new NullPointerException(\"Piece is NULL when drawing\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif (symbol.equals(Symbols.S_TRACK))\n\t\t\t\t\t\tglColor4f(0.4f, 0.6f, 0.0f, 0.0f);\n\t\t\t\t\telse if (symbol.equals(Symbols.S_CART))\n\t\t\t\t\t\tglColor4f(0.4f, 0.4f, 1.0f, 0);\n\t\t\t\t\telse if (symbol.equals(Symbols.S_GUARD_RAIL))\n\t\t\t\t\t\tglColor4f(1.0f, 0.6f, 0.6f, 0);\n\t\t\t\t\telse if (symbol.equals(Symbols.S_PEDESTRIAN))\n\t\t\t\t\t\tglColor4f(0.8f, 0.4f, 0.6f, 0.0f);\n\n\t\t\t\t\tglVertex2f(piece.getX_pos() - gridWidth / 2, piece.getY_pos() - gridHeight / 2);\n\t\t\t\t\tglVertex2f(piece.getX_pos() - gridWidth / 2, piece.getY_pos() + gridHeight / 2);\n\t\t\t\t\tglVertex2f(piece.getX_pos() + gridWidth / 2, piece.getY_pos() + gridHeight / 2);\n\t\t\t\t\tglVertex2f(piece.getX_pos() + gridWidth / 2, piece.getY_pos() - gridHeight / 2);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t/*\n\t\t\t\t * glColor4f: Setting the colors for each of the points glVertex2f: Drawing each\n\t\t\t\t * vertex of the quad, and at the end, is filled in\n\t\t\t\t */\n\t\t\t\tglColor4f(rbg.getR(), rbg.getB(), rbg.getG(), rbg.getAlpha());\n\t\t\t\tglVertex2f(piece.getX_pos() - gridWidth / 2, piece.getY_pos() - gridHeight / 2);\n\t\t\t\tglColor4f(rbg.getR(), rbg.getB(), rbg.getG(), rbg.getAlpha());\n\t\t\t\tglVertex2f(piece.getX_pos() - gridWidth / 2, piece.getY_pos() + gridHeight / 2);\n\t\t\t\tglColor4f(rbg.getR(), rbg.getB(), rbg.getG(), rbg.getAlpha());\n\t\t\t\tglVertex2f(piece.getX_pos() + gridWidth / 2, piece.getY_pos() + gridHeight / 2);\n\t\t\t\tglColor4f(rbg.getR(), rbg.getB(), rbg.getG(), rbg.getAlpha());\n\t\t\t\tglVertex2f(piece.getX_pos() + gridWidth / 2, piece.getY_pos() - gridHeight / 2);\n\t\t\t}\n\t\t}\n\n\t\tif (s.equals(Symbols.SIM)) {\n\t\t\tfor (int i = 0; i < struct_trace.size(); i++) {\n\t\t\t\tGridPiece piece = struct_trace.get(i);\n\n\t\t\t\tglColor4f(0.25f, 0.9f, 0.2f, 0.0f);\n\t\t\t\tglVertex2f(piece.getX_pos() - gridWidth / 2, piece.getY_pos() - gridHeight / 2);\n\t\t\t\tglVertex2f(piece.getX_pos() - gridWidth / 2, piece.getY_pos() + gridHeight / 2);\n\t\t\t\tglVertex2f(piece.getX_pos() + gridWidth / 2, piece.getY_pos() + gridHeight / 2);\n\t\t\t\tglVertex2f(piece.getX_pos() + gridWidth / 2, piece.getY_pos() - gridHeight / 2);\n\t\t\t}\n\t\t}\n\t\tglEnd();\n\t}", "title": "" }, { "docid": "32e36c17a29c2bc0574ccddad50c535c", "score": "0.5197548", "text": "private void resetTiles()\n {\n for (LetterTiles t : tilesToChangeColor)\n {\n t.setNotVisited();\n t.setFillToBlue();\n t.setCounter();\n }\n }", "title": "" }, { "docid": "cadccc3518080e4029f0bd26b3943add", "score": "0.51960886", "text": "public void setTargetTiles() {\n resetTiles();\n int x = character.coordinates.getX();\n int y = character.coordinates.getY();\n Point pos = character.coordinates;\n if (character.getAp() >= 1 && activeGadget != null && !(gameScreenTiles[x][y].isFoggy())) {\n if (activeGadget.equals(GadgetEnum.JETPACK)) {\n for (int i = 0; i < gameScreenTiles.length; i++) {\n for (int j = 0; j < gameScreenTiles[i].length; j++) {\n if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.FREE)) {\n if (!(gameScreenTiles[i][j].hasCharacter()) && !(gameScreenTiles[i][j].hasGadget())) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.FREE_TARGET);\n }\n }\n }\n }\n } else if (activeGadget.equals(GadgetEnum.WIRETAP_WITH_EARPLUGS)) {\n for (int i = 0; i < gameScreenTiles.length; i++) {\n for (int j = 0; j < gameScreenTiles[i].length; j++) {\n Point target = new Point(i, j);\n if (distanceOfPoints(pos, target) == 1) {\n if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.ENEMY_CHARACTER)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.ENEMY_CHARACTER_TARGET);\n } else if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.ENEMY_CHARACTER_COCKTAIL)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.ENEMY_CHARACTER_COCKTAIL_TARGET);\n } else if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.NEUTRAL_CHARACTER)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.NEUTRAL_CHARACTER_TARGET);\n } else if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.NEUTRAL_CHARACTER_COCKTAIL)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.NEUTRAL_CHARACTER_COCKTAIL_TARGET);\n }\n }\n }\n }\n } else if (activeGadget.equals(GadgetEnum.HAIRDRYER)) {\n for (int i = 0; i < gameScreenTiles.length; i++) {\n for (int j = 0; j < gameScreenTiles[i].length; j++) {\n Point target = new Point(i, j);\n if (distanceOfPoints(pos, target) <= 1) {//darf auch auf sich selbst angewendet werden\n if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.ACTIVE_CHARACTER)\n && gameScreenTiles[i][j].hasCharacter()\n && gameScreenTiles[i][j].getCharacter().getProperties().contains(PropertyEnum.CLAMMY_CLOTHES)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.ACTIVE_CHARACTER_TARGET);\n } else if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.ACTIVE_CHARACTER_COCKTAIL)\n && gameScreenTiles[i][j].hasCharacter()\n && gameScreenTiles[i][j].getCharacter().getProperties().contains(PropertyEnum.CLAMMY_CLOTHES)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.ACTIVE_CHARACTER_COCKTAIL_TARGET);\n } else if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.ALLY_CHARACTER)\n && gameScreenTiles[i][j].hasCharacter()\n && gameScreenTiles[i][j].getCharacter().getProperties().contains(PropertyEnum.CLAMMY_CLOTHES)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.ALLY_CHARACTER_TARGET);\n } else if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.ALLY_CHARACTER_COCKTAIL)\n && gameScreenTiles[i][j].hasCharacter()\n && gameScreenTiles[i][j].getCharacter().getProperties().contains(PropertyEnum.CLAMMY_CLOTHES)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.ALLY_CHARACTER_COCKTAIL_TARGET);\n } else if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.ENEMY_CHARACTER)\n && gameScreenTiles[i][j].hasCharacter()\n && gameScreenTiles[i][j].getCharacter().getProperties().contains(PropertyEnum.CLAMMY_CLOTHES)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.ENEMY_CHARACTER_TARGET);\n } else if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.ENEMY_CHARACTER_COCKTAIL)\n && gameScreenTiles[i][j].hasCharacter()\n && gameScreenTiles[i][j].getCharacter().getProperties().contains(PropertyEnum.CLAMMY_CLOTHES)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.ENEMY_CHARACTER_COCKTAIL_TARGET);\n } else if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.NEUTRAL_CHARACTER)\n && gameScreenTiles[i][j].hasCharacter()\n && gameScreenTiles[i][j].getCharacter().getProperties().contains(PropertyEnum.CLAMMY_CLOTHES)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.NEUTRAL_CHARACTER_TARGET);\n } else if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.NEUTRAL_CHARACTER_COCKTAIL)\n && gameScreenTiles[i][j].hasCharacter()\n && gameScreenTiles[i][j].getCharacter().getProperties().contains(PropertyEnum.CLAMMY_CLOTHES)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.NEUTRAL_CHARACTER_COCKTAIL_TARGET);\n }\n }\n }\n }\n } else if (activeGadget.equals(GadgetEnum.TECHNICOLOUR_PRISM)) {\n for (int i = 0; i < gameScreenTiles.length; i++) {\n for (int j = 0; j < gameScreenTiles[i].length; j++) {\n Point target = new Point(i, j);\n if (distanceOfPoints(pos, target) == 1) {\n if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.ROULETTE)\n && !gameScreenTiles[i][j].isDestroyed()) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.ROULETTE_TARGET);\n }\n }\n }\n }\n } else if (activeGadget.equals(GadgetEnum.POISON_PILLS)) {\n for (int i = 0; i < gameScreenTiles.length; i++) {\n for (int j = 0; j < gameScreenTiles[i].length; j++) {\n Point target = new Point(i, j);\n if (distanceOfPoints(pos, target) == 1) {\n if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.ALLY_CHARACTER_COCKTAIL)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.ALLY_CHARACTER_COCKTAIL_TARGET);\n } else if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.ENEMY_CHARACTER_COCKTAIL)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.ENEMY_CHARACTER_COCKTAIL_TARGET);\n } else if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.NEUTRAL_CHARACTER_COCKTAIL)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.NEUTRAL_CHARACTER_COCKTAIL_TARGET);\n } else if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.BAR_TABLE_COCKTAIL)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.BAR_TABLE_COCKTAIL_TARGET);\n }\n }\n }\n }\n } else if (activeGadget.equals(GadgetEnum.GAS_GLOSS)) {\n for (int i = 0; i < gameScreenTiles.length; i++) {\n for (int j = 0; j < gameScreenTiles[i].length; j++) {\n Point target = new Point(i, j);\n if (distanceOfPoints(pos, target) == 1) {\n if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.ALLY_CHARACTER)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.ALLY_CHARACTER_TARGET);\n } else if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.ALLY_CHARACTER_COCKTAIL)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.ALLY_CHARACTER_COCKTAIL_TARGET);\n } else if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.ENEMY_CHARACTER)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.ENEMY_CHARACTER_TARGET);\n } else if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.ENEMY_CHARACTER_COCKTAIL)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.ENEMY_CHARACTER_COCKTAIL_TARGET);\n } else if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.NEUTRAL_CHARACTER)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.NEUTRAL_CHARACTER_TARGET);\n } else if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.NEUTRAL_CHARACTER_COCKTAIL)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.NEUTRAL_CHARACTER_COCKTAIL_TARGET);\n }\n }\n }\n }\n } else if (activeGadget.equals(GadgetEnum.CHICKEN_FEED)) {\n for (int i = 0; i < gameScreenTiles.length; i++) {\n for (int j = 0; j < gameScreenTiles[i].length; j++) {\n Point target = new Point(i, j);\n if (distanceOfPoints(pos, target) == 1) {\n if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.ALLY_CHARACTER)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.ALLY_CHARACTER_TARGET);\n } else if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.ALLY_CHARACTER_COCKTAIL)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.ALLY_CHARACTER_COCKTAIL_TARGET);\n } else if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.ENEMY_CHARACTER)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.ENEMY_CHARACTER_TARGET);\n } else if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.ENEMY_CHARACTER_COCKTAIL)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.ENEMY_CHARACTER_COCKTAIL_TARGET);\n } else if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.NEUTRAL_CHARACTER)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.NEUTRAL_CHARACTER_TARGET);\n } else if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.NEUTRAL_CHARACTER_COCKTAIL)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.NEUTRAL_CHARACTER_COCKTAIL_TARGET);\n }\n }\n }\n }\n } else if (activeGadget.equals(GadgetEnum.NUGGET)) {\n for (int i = 0; i < gameScreenTiles.length; i++) {\n for (int j = 0; j < gameScreenTiles[i].length; j++) {\n Point target = new Point(i, j);\n if (distanceOfPoints(pos, target) == 1) {\n if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.ENEMY_CHARACTER)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.ENEMY_CHARACTER_TARGET);\n } else if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.ENEMY_CHARACTER_COCKTAIL)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.ENEMY_CHARACTER_COCKTAIL_TARGET);\n } else if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.NEUTRAL_CHARACTER)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.NEUTRAL_CHARACTER_TARGET);\n } else if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.NEUTRAL_CHARACTER_COCKTAIL)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.NEUTRAL_CHARACTER_COCKTAIL_TARGET);\n }\n }\n }\n }\n } else if (activeGadget.equals(GadgetEnum.MIRROR_OF_WILDERNESS)) {\n for (int i = 0; i < gameScreenTiles.length; i++) {\n for (int j = 0; j < gameScreenTiles[i].length; j++) {\n Point target = new Point(i, j);\n if (distanceOfPoints(pos, target) == 1) {\n if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.ALLY_CHARACTER)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.ALLY_CHARACTER_TARGET);\n } else if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.ALLY_CHARACTER_COCKTAIL)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.ALLY_CHARACTER_COCKTAIL_TARGET);\n } else if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.ENEMY_CHARACTER)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.ENEMY_CHARACTER_TARGET);\n } else if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.ENEMY_CHARACTER_COCKTAIL)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.ENEMY_CHARACTER_COCKTAIL_TARGET);\n } else if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.NEUTRAL_CHARACTER)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.NEUTRAL_CHARACTER_TARGET);\n } else if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.NEUTRAL_CHARACTER_COCKTAIL)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.NEUTRAL_CHARACTER_COCKTAIL_TARGET);\n }\n }\n }\n }\n } else if (activeGadget.equals(GadgetEnum.MOLEDIE)) {\n for (int i = 0; i < gameScreenTiles.length; i++) {\n for (int j = 0; j < gameScreenTiles[i].length; j++) {\n Point target = new Point(i, j);\n if (distanceOfPoints(pos, target) <= gameHandler.settings.getRange(GadgetEnum.MOLEDIE)\n && isInSight(pos, target, false)\n && !(i == x && j == y)) {\n if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.FREE)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.FREE_TARGET);\n } else if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.BAR_SEAT)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.BAR_SEAT_TARGET);\n } else if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.BAR_TABLE)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.BAR_TABLE_TARGET);\n } else if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.SAFE)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.SAFE_TARGET);\n } else if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.FIREPLACE)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.FIREPLACE_TARGET);\n } else if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.ROULETTE)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.ROULETTE_TARGET);\n } else if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.FREE_BOWLER_BLADE)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.FREE_BOWLER_BLADE_TARGET);\n } else if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.FREE_DIAMOND_COLLAR)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.FREE_DIAMOND_COLLAR_TARGET);\n } else if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.BAR_TABLE_COCKTAIL)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.BAR_TABLE_COCKTAIL_TARGET);\n } else if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.ALLY_CHARACTER)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.ALLY_CHARACTER_TARGET);\n } else if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.ENEMY_CHARACTER)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.ENEMY_CHARACTER_TARGET);\n } else if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.NEUTRAL_CHARACTER)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.NEUTRAL_CHARACTER_TARGET);\n } else if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.ALLY_CHARACTER_COCKTAIL)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.ALLY_CHARACTER_COCKTAIL_TARGET);\n } else if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.ENEMY_CHARACTER_COCKTAIL)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.ENEMY_CHARACTER_COCKTAIL_TARGET);\n } else if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.NEUTRAL_CHARACTER_COCKTAIL)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.NEUTRAL_CHARACTER_COCKTAIL_TARGET);\n }\n }\n }\n }\n } else if (activeGadget.equals(GadgetEnum.BOWLER_BLADE)) {\n for (int i = 0; i < gameScreenTiles.length; i++) {\n for (int j = 0; j < gameScreenTiles[i].length; j++) {\n if (!(i == x && j == y)) {\n Point target = new Point(i, j);\n if (isInSight(pos, target, true)\n && distanceOfPoints(pos, target) <= gameHandler.settings.getRange(GadgetEnum.BOWLER_BLADE)) {\n if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.ALLY_CHARACTER)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.ALLY_CHARACTER_TARGET);\n } else if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.ENEMY_CHARACTER)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.ENEMY_CHARACTER_TARGET);\n } else if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.NEUTRAL_CHARACTER)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.NEUTRAL_CHARACTER_TARGET);\n } else if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.ALLY_CHARACTER_COCKTAIL)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.ALLY_CHARACTER_COCKTAIL_TARGET);\n } else if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.ENEMY_CHARACTER_COCKTAIL)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.ENEMY_CHARACTER_COCKTAIL_TARGET);\n } else if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.NEUTRAL_CHARACTER_COCKTAIL)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.NEUTRAL_CHARACTER_COCKTAIL_TARGET);\n }\n }\n }\n }\n }\n } else if (activeGadget.equals(GadgetEnum.LASER_COMPACT)) {\n for (int i = 0; i < gameScreenTiles.length; i++) {\n for (int j = 0; j < gameScreenTiles[i].length; j++) {\n if (!(i == x && j == y)) {\n Point target = new Point(i, j);\n if (isInSight(pos, target, false)) {\n if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.BAR_TABLE_COCKTAIL)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.BAR_TABLE_COCKTAIL_TARGET);\n } else if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.ALLY_CHARACTER_COCKTAIL)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.ALLY_CHARACTER_COCKTAIL_TARGET);\n } else if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.ENEMY_CHARACTER_COCKTAIL)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.ENEMY_CHARACTER_COCKTAIL_TARGET);\n } else if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.NEUTRAL_CHARACTER_COCKTAIL)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.NEUTRAL_CHARACTER_COCKTAIL_TARGET);\n }\n }\n }\n }\n }\n } else if (activeGadget.equals(GadgetEnum.ROCKET_PEN)) {\n for (int i = 0; i < gameScreenTiles.length; i++) {\n for (int j = 0; j < gameScreenTiles[i].length; j++) {\n if (!(i == x && j == y)) {\n Point target = new Point(i, j);\n if (isInSight(pos, target, false)) {\n if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.FREE)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.FREE_TARGET);\n } else if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.BAR_SEAT)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.BAR_SEAT_TARGET);\n } else if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.BAR_TABLE)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.BAR_TABLE_TARGET);\n } else if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.SAFE)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.SAFE_TARGET);\n } else if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.FIREPLACE)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.FIREPLACE_TARGET);\n } else if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.ROULETTE)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.ROULETTE_TARGET);\n } else if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.WALL)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.WALL_TARGET);\n } else if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.FREE_BOWLER_BLADE)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.FREE_BOWLER_BLADE_TARGET);\n } else if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.FREE_DIAMOND_COLLAR)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.FREE_DIAMOND_COLLAR_TARGET);\n } else if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.BAR_TABLE_COCKTAIL)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.BAR_TABLE_COCKTAIL_TARGET);\n } else if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.ALLY_CHARACTER)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.ALLY_CHARACTER_TARGET);\n } else if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.ENEMY_CHARACTER)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.ENEMY_CHARACTER_TARGET);\n } else if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.NEUTRAL_CHARACTER)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.NEUTRAL_CHARACTER_TARGET);\n } else if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.ALLY_CHARACTER_COCKTAIL)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.ALLY_CHARACTER_COCKTAIL_TARGET);\n } else if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.ENEMY_CHARACTER_COCKTAIL)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.ENEMY_CHARACTER_COCKTAIL_TARGET);\n } else if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.NEUTRAL_CHARACTER_COCKTAIL)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.NEUTRAL_CHARACTER_COCKTAIL_TARGET);\n }\n }\n }\n }\n }\n } else if (activeGadget.equals(GadgetEnum.MOTHBALL_POUCH)) {\n for (int i = 0; i < gameScreenTiles.length; i++) {\n for (int j = 0; j < gameScreenTiles[i].length; j++) {\n Point target = new Point(i, j);\n if (distanceOfPoints(pos, target) <= gameHandler.settings.getRange(GadgetEnum.MOTHBALL_POUCH)\n && isInSight(pos, target, false)) {\n if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.FIREPLACE)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.FIREPLACE_TARGET);\n }\n }\n }\n }\n } else if (activeGadget.equals(GadgetEnum.FOG_TIN)) {\n for (int i = 0; i < gameScreenTiles.length; i++) {\n for (int j = 0; j < gameScreenTiles[i].length; j++) {\n Point target = new Point(i, j);\n if (distanceOfPoints(pos, target) <= gameHandler.settings.getRange(GadgetEnum.FOG_TIN)\n && isInSight(pos, target, false)) {\n if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.FREE)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.FREE_TARGET);\n } else if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.BAR_SEAT)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.BAR_SEAT_TARGET);\n } else if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.BAR_TABLE)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.BAR_TABLE_TARGET);\n } else if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.SAFE)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.SAFE_TARGET);\n } else if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.FIREPLACE)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.FIREPLACE_TARGET);\n } else if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.ROULETTE)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.ROULETTE_TARGET);\n } else if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.FREE_BOWLER_BLADE)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.FREE_BOWLER_BLADE_TARGET);\n } else if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.FREE_DIAMOND_COLLAR)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.FREE_DIAMOND_COLLAR_TARGET);\n } else if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.BAR_TABLE_COCKTAIL)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.BAR_TABLE_COCKTAIL_TARGET);\n } else if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.ALLY_CHARACTER)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.ALLY_CHARACTER_TARGET);\n } else if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.ENEMY_CHARACTER)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.ENEMY_CHARACTER_TARGET);\n } else if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.NEUTRAL_CHARACTER)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.NEUTRAL_CHARACTER_TARGET);\n } else if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.ALLY_CHARACTER_COCKTAIL)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.ALLY_CHARACTER_COCKTAIL_TARGET);\n } else if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.ENEMY_CHARACTER_COCKTAIL)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.ENEMY_CHARACTER_COCKTAIL_TARGET);\n } else if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.NEUTRAL_CHARACTER_COCKTAIL)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.NEUTRAL_CHARACTER_COCKTAIL_TARGET);\n }\n }\n }\n }\n } else if (activeGadget.equals(GadgetEnum.GRAPPLE)) {\n for (int i = 0; i < gameScreenTiles.length; i++) {\n for (int j = 0; j < gameScreenTiles[i].length; j++) {\n Point target = new Point(i, j);\n if (distanceOfPoints(pos, target) <= gameHandler.settings.getRange(GadgetEnum.GRAPPLE)\n && isInSight(pos, target, false)) {\n if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.FREE_BOWLER_BLADE)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.FREE_BOWLER_BLADE_TARGET);\n } else if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.FREE_DIAMOND_COLLAR)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.FREE_DIAMOND_COLLAR_TARGET);\n } else if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.BAR_TABLE_COCKTAIL)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.BAR_TABLE_COCKTAIL_TARGET);\n }\n }\n }\n }\n } else if (activeGadget.equals(GadgetEnum.COCKTAIL)) {\n for (int i = 0; i < gameScreenTiles.length; i++) {\n for (int j = 0; j < gameScreenTiles[i].length; j++) {\n Point target = new Point(i, j);\n if (distanceOfPoints(pos, target) <= 1) {\n //Markierung des eigenen Feldes erlaubt das Schluerfen des Cocktails\n if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.ACTIVE_CHARACTER_COCKTAIL)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.ACTIVE_CHARACTER_COCKTAIL_TARGET);\n } else if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.ALLY_CHARACTER)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.ALLY_CHARACTER_TARGET);\n } else if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.ENEMY_CHARACTER)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.ENEMY_CHARACTER_TARGET);\n } else if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.NEUTRAL_CHARACTER)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.NEUTRAL_CHARACTER_TARGET);\n } else if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.ALLY_CHARACTER_COCKTAIL)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.ALLY_CHARACTER_COCKTAIL_TARGET);\n } else if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.ENEMY_CHARACTER_COCKTAIL)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.ENEMY_CHARACTER_COCKTAIL_TARGET);\n } else if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.NEUTRAL_CHARACTER_COCKTAIL)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.NEUTRAL_CHARACTER_COCKTAIL_TARGET);\n }\n }\n }\n }\n }\n } else if (character.getAp() >= 1 && selectedAction != null && !(gameScreenTiles[x][y].isFoggy())) {\n if (selectedAction.equals(PropertyEnum.BANG_AND_BURN)) {\n for (int i = 0; i < gameScreenTiles.length; i++) {\n for (int j = 0; j < gameScreenTiles[i].length; j++) {\n Point target = new Point(i, j);\n if (distanceOfPoints(pos, target) == 1) {\n if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.ROULETTE)\n && !gameScreenTiles[i][j].isDestroyed()) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.ROULETTE_TARGET);\n }\n }\n }\n }\n } else if (selectedAction.equals(PropertyEnum.OBSERVATION)) {\n for (int i = 0; i < gameScreenTiles.length; i++) {\n for (int j = 0; j < gameScreenTiles[i].length; j++) {\n Point target = new Point(i, j);\n if (isInSight(pos, target, false)) {\n if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.ENEMY_CHARACTER)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.ENEMY_CHARACTER_TARGET);\n } else if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.ENEMY_CHARACTER_COCKTAIL)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.ENEMY_CHARACTER_COCKTAIL_TARGET);\n } else if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.NEUTRAL_CHARACTER)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.NEUTRAL_CHARACTER_TARGET);\n } else if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.NEUTRAL_CHARACTER_COCKTAIL)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.NEUTRAL_CHARACTER_COCKTAIL_TARGET);\n }\n }\n }\n }\n }\n } else if (spyActionSelected && character.getAp() >= 1 && !(gameScreenTiles[x][y].isFoggy())) {\n for (int i = 0; i < gameScreenTiles.length; i++) {\n for (int j = 0; j < gameScreenTiles[i].length; j++) {\n if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.ENEMY_CHARACTER)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.ENEMY_CHARACTER_TARGET);\n } else if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.ENEMY_CHARACTER_COCKTAIL)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.ENEMY_CHARACTER_COCKTAIL_TARGET);\n } else if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.NEUTRAL_CHARACTER)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.NEUTRAL_CHARACTER_TARGET);\n } else if (gameScreenTiles[i][j].getTileState().equals(GameScreenTileStateEnum.NEUTRAL_CHARACTER_COCKTAIL)) {\n gameScreenTiles[i][j].setTileState(GameScreenTileStateEnum.NEUTRAL_CHARACTER_COCKTAIL_TARGET);\n }\n }\n }\n }\n gameHandler.boardUpdated.set(true);\n }", "title": "" }, { "docid": "466c1324977831ebe7f4cad1f2a486d6", "score": "0.519075", "text": "public Board() {\n setLayout(new GridLayout(8,8));\n clickPoint = new Point(-1, -1);\n tileListener = new tileHandler();\n \n for(int i=0; i<8; i++) {\n for(int j=0; j<8; j++) {\n tiles[i][j] = new Tile(j, i); \n tiles[i][j].addActionListener(tileListener);\n if((i+j)%2 !=0)\n tiles[i][j].setBackground(Color.white);\n else\n tiles[i][j].setBackground(Color.black);\n this.add(tiles[i][j]);\n }\n }\n }", "title": "" }, { "docid": "5d6f5a8d8379814742605d1349d47dd1", "score": "0.5181999", "text": "private void updateGUIBoard() {\n\n // Loop through the new updated grid and update the whole game\n for (int index = 0;\n index < Math.pow(board.GRID_SIZE, 2); index++) {\n\n // Remove all children from the pane (one at a time)\n pane.getChildren().remove(tiles.get(index));\n pane.getChildren().remove(tileTexts.get(index));\n\n // Get the value of the tile from the grid array\n int tileVal = board.getGrid()\n [index % board.GRID_SIZE][index / board.GRID_SIZE];\n\n // If the tile has a corresponding grid value, change the\n // tile's text and color depending on the value\n if (tileVal > 0) {\n tileTexts.get(index).setText(tileVal + \"\");\n\n // Update tile's color\n Color colorToFill = GameConstants.getNewTileColor(tileVal);\n tiles.get(index).setFill(colorToFill);\n\n // Update the color and font size of the new tile texts\n if (tileVal < 8) {\n tileTexts.get(index).setFill(\n GameConstants.COLOR_VALUE_DARK);\n tileTexts.get(index).setFont(\n GameConstants.LOW_VALUE_FONT);\n } else {\n tileTexts.get(index).setFill(\n GameConstants.COLOR_VALUE_LIGHT);\n if (tileVal < 1024) {\n tileTexts.get(index).setFont(\n GameConstants.MID_VALUE_FONT);\n } else {\n tileTexts.get(index).setFont(\n GameConstants.HIGH_VALUE_FONT);\n }\n }\n } // Otherwise, just give it the default color\n else {\n tiles.get(index).setFill(GameConstants.COLOR_EMPTY);\n tileTexts.get(index).setText(\"\");\n }\n\n // Add the newly updated tiles and its correponding value\n pane.add(tiles.get(index),\n index % board.GRID_SIZE, index / board.GRID_SIZE + 1);\n pane.add(tileTexts.get(index),\n index % board.GRID_SIZE, index / board.GRID_SIZE + 1);\n \n // String info for tile\n String info = board.getNewTiles()[index % board.GRID_SIZE][index / board.GRID_SIZE];\n if (info != null) {\n switch (info) {\n case \"new\":\n controlZoomInOutAnimation(tiles.get(index), false);\n controlZoomInOutAnimation(tileTexts.get(index), false);\n break;\n case \"merge\":\n controlZoomInOutAnimation(tiles.get(index), true);\n controlZoomInOutAnimation(tileTexts.get(index), true);\n break;\n }\n }\n \n GridPane.setHalignment(tileTexts.get(index), HPos.CENTER);\n scoreText.setText(\"Score: \" + board.getScore());\n } \n }", "title": "" }, { "docid": "6c1e1573a497484881034fd2319c0e53", "score": "0.5181947", "text": "public void render(int x, int y, Screen screen) {\n\t\tscreen.renderTile(x << 4, y << 4, this);\n\t}", "title": "" }, { "docid": "a580d7ab0ada934312e7d788cc788cca", "score": "0.5177517", "text": "private void paintBoard() {\r\n\t\tboard = new BufferedImage(DEFAULT_WIDTH, DEFAULT_HEIGHT,\r\n\t\t\t\tBufferedImage.TYPE_INT_RGB);\r\n\t\tGraphics g = board.getGraphics();\r\n\t\tg.setColor(Constants.BOARD_COLOR_1);\r\n\t\tg.fillRect(0, 0, DEFAULT_WIDTH, DEFAULT_HEIGHT);\r\n\t\tg.setColor(Constants.BOARD_COLOR_2);\r\n\t\tfor (int row = 0; row < Constants.ROWS; row++) {\r\n\t\t\tfor (int col = 0; col < Constants.COLS; col++) {\r\n\t\t\t\tif (isBlackCell(row, col))\r\n\t\t\t\t\tg.fillRect(col * DEFAULT_CELL_WIDTH, row\r\n\t\t\t\t\t\t\t* DEFAULT_CELL_HEIGHT, DEFAULT_CELL_WIDTH,\r\n\t\t\t\t\t\t\tDEFAULT_CELL_HEIGHT);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "2e665841a4787499e07f0e6cb753b945", "score": "0.5174717", "text": "public void render(Graphics graphics, int xOffset, int yOffset) { //Draws the map using the array above. Its indexes are the position (inverted), and the values indicate what tile it is\n for (int i = 0; i < map[0].length; i++) {\n for (int j = 0; j < map.length; j++) {\n graphics.drawImage(tiles.get(map[j][i]).getImage(), (i*Main.TILESIZE) + xOffset, (j*Main.TILESIZE) + yOffset, Main.TILESIZE, Main.TILESIZE, null);\n }\n }\n }", "title": "" }, { "docid": "059190ceaec8f3fac28d91b96e0897fd", "score": "0.51723266", "text": "private void unhighlight() {\n\t\tfor(Point<HexNode<Piece>> p : app.getBoard().getPoints()) {\n\t\t\tif(p.getKey().getKey() != null) p.getKey().getKey().highlight(false);\n\t\t\tpossibleMoves.clear();\n\t\t}\n\t}", "title": "" }, { "docid": "450de9bf19b1910fb03a32008e4ca26b", "score": "0.5171119", "text": "public void render() {\n display.render(state, settings.isDebugMode());\n }", "title": "" }, { "docid": "8f7e09ae43c47b902969f0f6f3122d1e", "score": "0.5163164", "text": "private void rebuildObjects() {\n\t\tfinal Scene scene = client.getScene();\n\t\tfinal Tile[][][] tiles = scene.getTiles();\n\n\t\tfor (int plane = 0; plane < tiles.length; plane++) {\n\t\t\tfor (int x = 0; x < tiles[plane].length; x++) {\n\t\t\t\tfor (int y = 0; y < tiles[plane][x].length; y++) {\n\t\t\t\t\tfinal Tile currentTile = tiles[plane][x][y];\n\t\t\t\t\tif (currentTile == null) {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\t// look for a matching Ground Object on that tile:\n\t\t\t\t\tfinal GroundObject groundObj = currentTile.getGroundObject();\n\t\t\t\t\tif (groundObj == null) {\n\t\t\t\t\t\t// have we hidden something that shouldn't be hidden any more?\n\t\t\t\t\t\t// look through `this.hiddenObjects` for this tile, and potentially restore:\n\t\t\t\t\t\tif (this.hiddenObjects.containsKey(currentTile.getWorldLocation())) {\n\t\t\t\t\t\t\tGroundObject oHidden = this.hiddenObjects.get(currentTile.getWorldLocation());\n\t\t\t\t\t\t\tif (!getGroundObjects().contains(oHidden.getId())) {\n\t\t\t\t\t\t\t\tcurrentTile.setGroundObject(oHidden);\n\t\t\t\t\t\t\t\tthis.hiddenObjects.remove(currentTile.getWorldLocation());\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tif (config.getHideAll()) {\n\t\t\t\t\t\thideGroundObjectOnTile(currentTile, currentTile.getGroundObject());\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// tile has a ground object, so maybe add it to the hide list\n\t\t\t\t\t\tfor (Integer hideObjID : getGroundObjects()) {\n\t\t\t\t\t\t\tif (groundObj.getId() == hideObjID) {\n\t\t\t\t\t\t\t\thideGroundObjectOnTile(currentTile, groundObj);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "245ee4c1cc713ad1e72c1919f06c300b", "score": "0.5161103", "text": "public void updateBoard(){\r\n\t\tfor (int row = 0; row < MainActivity.NUM_ROWS; row++){\r\n\t\t\tfor (int col = 0; col < MainActivity.NUM_COLS; col++){\r\n\t\t\t\tif (board[row][col] == null){ // blank space\r\n\t\t\t\t\tif ((row + col) % 2 == 0){ // white space\r\n\t\t\t\t\t\ttiles[row][col].setImageResource(R.drawable.blank_white);\r\n\t\t\t\t\t}else{ //black space\r\n\t\t\t\t\t\ttiles[row][col].setImageResource(R.drawable.blank_black);\r\n\t\t\t\t\t}\r\n\t\t\t\t}else{ // not a blank space\r\n\t\t\t\t\tPiece piece = board[row][col];\r\n\t\t\t\t\tint pngId = R.drawable.blank_black; // initialized to a valid value\r\n\t\t\t\t\t\r\n\t\t\t\t\tif (piece.getType() == Type.PAWN){\r\n\t\t\t\t\t\tpngId = R.drawable.white_pawn_white;\r\n\t\t\t\t\t}else if (piece.getType() == Type.BISHOP){\r\n\t\t\t\t\t\tpngId = R.drawable.white_bishop_white;\r\n\t\t\t\t\t}else if (piece.getType() == Type.KNIGHT){\r\n\t\t\t\t\t\tpngId = R.drawable.white_knight_white;\r\n\t\t\t\t\t}else if (piece.getType() == Type.ROOK){\r\n\t\t\t\t\t\tpngId = R.drawable.white_rook_white;\r\n\t\t\t\t\t}else if (piece.getType() == Type.QUEEN){\r\n\t\t\t\t\t\tpngId = R.drawable.white_queen_white;\r\n\t\t\t\t\t}else if (piece.getType() == Type.KING){\r\n\t\t\t\t\t\tpngId = R.drawable.white_king_white;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif ((row + col) % 2 == 1){ // black background\r\n\t\t\t\t\t\tpngId -= 1; // based on enumeration of image resources\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (piece.getColor() == Color.BLACK){\r\n\t\t\t\t\t\tpngId -= imgResourceEnum; // based on enumeration of image resources\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tif (tiles[row][col] != null){\r\n\t\t\t\t\t\ttiles[row][col].setImageResource(pngId);\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// this has to go before the red, or else greenTile and redTile may hold the same reference\r\n\t\t// and the tile will not be red as required\r\n\t\tif (greenTile != null){\r\n\t\t\tgreenTile.clearColorFilter();\r\n\t\t}\r\n\t\t\r\n\t\t// I guess this is where we check for checkmates...\r\n\t\tif (whiteKing.isInCheck()){\r\n\t\t\tredTile = tiles[whiteKing.getRow()][whiteKing.getCol()];\r\n\t\t\tredTile.setColorFilter(android.graphics.Color.RED, Mode.MULTIPLY);\r\n\t\t\tif (whiteKing.isCheckMate()){\r\n\t\t\t\t// end game\r\n\t\t\t\t// create a pop up dialog\r\n\t\t\t\twinner(blackKing);\r\n\t\t\t}\r\n\t\t}else if (blackKing.isInCheck()){\r\n\t\t\tredTile = tiles[blackKing.getRow()][blackKing.getCol()];\r\n\t\t\tredTile.setColorFilter(android.graphics.Color.RED, Mode.MULTIPLY);\r\n\t\t\tLog.e(\"wtf\", \"Black king should be red\");\r\n\t\t\tif (blackKing.isCheckMate()){\r\n\t\t\t\t// end game\r\n\t\t\t\twinner(whiteKing);\r\n\t\t\t}\r\n\t\t}else{ // neither of them are in check\r\n\t\t\tif (redTile != null){\r\n\t\t\t\tredTile.clearColorFilter();\r\n\t\t\t}\r\n\t\t}\t\r\n\t\t\r\n\r\n\t}", "title": "" }, { "docid": "ef37a127aed64b172251d144805c212d", "score": "0.5156443", "text": "public void render(){\n BufferStrategy bs = this.getBufferStrategy();\n if(bs == null){\n createBufferStrategy(3);\n return;\n }\n try{\n Graphics g = bs.getDrawGraphics();\n //Rendering the game\n g.drawImage(background,0,0,1366, 768, this);\n renderTurtles(g);\n renderWoods(g);\n\t\tg.drawImage(frogSelectedSprite, rana.getX(), rana.getY(), this);\n\t\tg.setColor(Color.BLUE);\n\t\t//g.fillRect(rana.getX(), rana.getY(), 40, 31);\n\t\trenderCars(g);\n\t\trenderLlegada(g);\n\t\trenderVidas(g);\n\t\trenderTime(g);\n\t\trenderScore(g);\n\t\t\n\t\t/*try{\n Thread.sleep(20);\n }catch(Exception e){\n e.printStackTrace();\n }*/\n //End rendering the game\n g.dispose();\n bs.show();\n }\n catch(java.lang.IllegalStateException e){}\n }", "title": "" }, { "docid": "88940de69a89446374c7d0a15c64dd36", "score": "0.5149267", "text": "@Override\r\n public void render(GameContainer container, StateBasedGame game, Graphics g) throws SlickException {\r\n board.render(g, BOARD_XOFFSET, BOARD_YOFFSET);\r\n // g.drawString(\"Hello, Mazebuilder! [Gameplay]\", 50, 100);\r\n g.setColor(Color.white);\r\n\r\n postRender(container, game, g);\r\n }", "title": "" }, { "docid": "e8e367dd74c346d4d768e58da0102e3d", "score": "0.51488763", "text": "@Override\n\tpublic void draw(GL2 gl)\n\t{\n\t\t//Draw trunk\n\t\tHelpers.setColor(gl, trunkColor);\n\t\tHelpers.drawTriangleStrip(gl, trunkTriangleStrip);\n\t\tHelpers.setColor(gl, Color.BLACK);\n\t\tHelpers.drawLineLoop(gl, trunkOutline);\n\t\t\n\t\tfor (BasicBranch branch: branches)\n\t\t\tbranch.draw(gl);\t\t\n\t}", "title": "" }, { "docid": "14ccc6d0c19504b5b2cb04c30b82d790", "score": "0.5138539", "text": "private void draw() {\n GraphicsContext g = canvas.getGraphicsContext2D();\n g.setFill(Color.rgb(230,255,230)); // light green\n g.fillRect(0,0,canvas.getWidth(),canvas.getHeight());\n g.setLineWidth(2);\n g.setStroke(Color.BLACK);\n for ( SquareData squareData: squares ) {\n g.setFill( squareData.color );\n g.fillRect( squareData.x - 50, squareData.y - 50, 100, 100);\n g.strokeRect( squareData.x - 50, squareData.y - 50, 100, 100);\n }\n }", "title": "" }, { "docid": "50f7115441717830950b4e6711e25ab4", "score": "0.51280564", "text": "public void updateMap() {\n FieldMap fieldMap = state.getMap();\n Field[][] map = fieldMap.getMap();\n for (int j = 0; j < gameScreenTiles.length; j++) {\n for (int i = 0; i < gameScreenTiles[j].length; i++) {\n GameScreenTile tile = new GameScreenTile(GameScreenTileStateEnum.FREE);\n tile.setFoggy(map[i][j].isFoggy());\n tile.setGadget(map[i][j].getGadget());\n Set<Character> characters = state.getCharacters();\n Iterator itr = characters.iterator();\n while (itr.hasNext()) {\n Character character = (Character) itr.next();\n if (character.coordinates.getX() == j && character.coordinates.getY() == i) {\n tile.setCharacter(character);\n }\n }\n if (tile.hasCharacter()) {\n if (tile.getCharacter().characterId.equals(activeCharacter)) {\n if (tile.getCharacter().hasCocktail()) {\n tile.setTileState(GameScreenTileStateEnum.ACTIVE_CHARACTER_COCKTAIL);\n } else {\n tile.setTileState(GameScreenTileStateEnum.ACTIVE_CHARACTER);\n }\n }\n if (gameHandler.allyCharacters != null && gameHandler.allyCharacters.contains(tile.getCharacter().characterId)) {\n if (tile.getCharacter().hasCocktail()) {\n tile.setTileState(GameScreenTileStateEnum.ALLY_CHARACTER_COCKTAIL);\n } else {\n tile.setTileState(GameScreenTileStateEnum.ALLY_CHARACTER);\n }\n } else if (gameHandler.enemyCharacters != null && gameHandler.enemyCharacters.contains(tile.getCharacter().characterId)) {\n if (tile.getCharacter().hasCocktail()) {\n tile.setTileState(GameScreenTileStateEnum.ENEMY_CHARACTER_COCKTAIL);\n } else {\n tile.setTileState(GameScreenTileStateEnum.ENEMY_CHARACTER);\n }\n } else {\n if (tile.getCharacter().hasCocktail()) {\n tile.setTileState(GameScreenTileStateEnum.NEUTRAL_CHARACTER_COCKTAIL);\n } else {\n tile.setTileState(GameScreenTileStateEnum.NEUTRAL_CHARACTER);\n }\n }\n } else if (i == state.getCatCoordinates().getY() && j == state.getCatCoordinates().getX()) {\n tile.setTileState(GameScreenTileStateEnum.CAT);\n } else if (map[i][j].getState().equals(FieldStateEnum.BAR_SEAT)) {\n tile.setTileState(GameScreenTileStateEnum.BAR_SEAT);\n } else if (map[i][j].getState().equals(FieldStateEnum.BAR_TABLE)) {\n if (tile.hasGadget() && tile.getGadget().gadget.equals(GadgetEnum.COCKTAIL)) {\n tile.setTileState(GameScreenTileStateEnum.BAR_TABLE_COCKTAIL);\n } else {\n tile.setTileState(GameScreenTileStateEnum.BAR_TABLE);\n }\n } else if (map[i][j].getState().equals(FieldStateEnum.ROULETTE_TABLE)) {\n tile.setTileState(GameScreenTileStateEnum.ROULETTE);\n tile.setDestroyed(map[i][j].isDestroyed());\n tile.setInverted(map[i][j].isInverted());\n tile.setChipAmount(map[i][j].getChipAmount());\n } else if (map[i][j].getState().equals(FieldStateEnum.SAFE)) {\n tile.setTileState(GameScreenTileStateEnum.SAFE);\n tile.setSafeIndex(map[i][j].getSafeIndex());\n } else if (map[i][j].getState().equals(FieldStateEnum.WALL)) {\n tile.setTileState(GameScreenTileStateEnum.WALL);\n } else if (map[i][j].getState().equals(FieldStateEnum.FIREPLACE)) {\n tile.setTileState(GameScreenTileStateEnum.FIREPLACE);\n } else if (map[i][j].getState().equals(FieldStateEnum.FREE)) {\n if (tile.hasGadget()) {\n if (tile.getGadget().gadget.equals(GadgetEnum.BOWLER_BLADE)) {\n tile.setTileState(GameScreenTileStateEnum.FREE_BOWLER_BLADE);\n } else if (tile.getGadget().gadget.equals(GadgetEnum.DIAMOND_COLLAR)) {\n tile.setTileState(GameScreenTileStateEnum.FREE_DIAMOND_COLLAR);\n }\n }\n }\n gameScreenTiles[j][i] = tile;\n }\n }\n }", "title": "" }, { "docid": "fe28b78d1e5ac5293d6c86cade21a46d", "score": "0.51265794", "text": "public void show() {\n\t\tfor(int i=0; i<4; i++) {\n\t\t\t_board.paintBlock(_currentX[i], _currentY[i], Color.GRAY);\n\t\t}\n\t}", "title": "" }, { "docid": "4fa4e96d13d8694ef1e48b69790fd4d9", "score": "0.5126052", "text": "private void render() {\n menuPrincipal.setBackground(getBackground());\n this.titleJeu.setFont(getFontTitle());\n this.titleJeu.setForeground(getColorTitle());\n\n for (int i = 0; i < listeBoutton.size(); i++) {\n if (i == menuSelected % listeBoutton.size()) {\n selectedButton(listeBoutton.get(i));\n } else {\n unselectedButton(listeBoutton.get(i));\n }\n }\n }", "title": "" } ]
0f197c9a33550003e75843615b2c13c7
Gets the "CodModVenta" element
[ { "docid": "6a86bb91b81764df5e5d04e75601ab73", "score": "0.7620217", "text": "int getCodModVenta();", "title": "" } ]
[ { "docid": "3373d0e4054f3f92c76abd77aef09d18", "score": "0.8301315", "text": "cl.sii.siiDte.DTEDefType.Documento.Encabezado.Transporte.Aduana.CodModVenta xgetCodModVenta();", "title": "" }, { "docid": "62c7c4bf10dd5b03a98c1170f655f0b6", "score": "0.81746924", "text": "cl.sii.siiDte.DTEDefType.Exportaciones.Encabezado.Transporte.Aduana.CodModVenta xgetCodModVenta();", "title": "" }, { "docid": "ed80dbc362bb2876bd6d391760cb9fce", "score": "0.665559", "text": "cl.sii.siiDte.DTEDefType.Exportaciones.Encabezado.Transporte.Aduana.CodClauVenta xgetCodClauVenta();", "title": "" }, { "docid": "e858ac23ebc09d44ccdd19bf0021591d", "score": "0.66534245", "text": "void xsetCodModVenta(cl.sii.siiDte.DTEDefType.Exportaciones.Encabezado.Transporte.Aduana.CodModVenta codModVenta);", "title": "" }, { "docid": "98e04e60f51797823ad73ebfe929f5d2", "score": "0.66307676", "text": "void xsetCodModVenta(cl.sii.siiDte.DTEDefType.Documento.Encabezado.Transporte.Aduana.CodModVenta codModVenta);", "title": "" }, { "docid": "ee568ece65bd3f3661471fd2f1169172", "score": "0.6602731", "text": "cl.sii.siiDte.DTEDefType.Documento.Encabezado.Transporte.Aduana.CodClauVenta xgetCodClauVenta();", "title": "" }, { "docid": "5c76fd6866fd530e7c1fc4f6caf314c6", "score": "0.64486223", "text": "public String getCOD_MOD() {\n return COD_MOD;\n }", "title": "" }, { "docid": "5c76fd6866fd530e7c1fc4f6caf314c6", "score": "0.64486223", "text": "public String getCOD_MOD() {\n return COD_MOD;\n }", "title": "" }, { "docid": "4655a22c130cdc91b53cc7629fcbb3d2", "score": "0.6337449", "text": "public int getCodigoVenta() {\r\n return codigoVenta;\r\n }", "title": "" }, { "docid": "185be99d328ac256841620f298181a66", "score": "0.6235108", "text": "void setCodModVenta(int codModVenta);", "title": "" }, { "docid": "185be99d328ac256841620f298181a66", "score": "0.6235108", "text": "void setCodModVenta(int codModVenta);", "title": "" }, { "docid": "0e988da5709b7f88a33b7c564a7f30a4", "score": "0.6212591", "text": "int getCodClauVenta();", "title": "" }, { "docid": "0e988da5709b7f88a33b7c564a7f30a4", "score": "0.6212591", "text": "int getCodClauVenta();", "title": "" }, { "docid": "fc4cd8198b2aecd3fd9e2c4980eddcdd", "score": "0.61315334", "text": "int getCodUnidPesoNeto();", "title": "" }, { "docid": "fc4cd8198b2aecd3fd9e2c4980eddcdd", "score": "0.61315334", "text": "int getCodUnidPesoNeto();", "title": "" }, { "docid": "a6ae40a3673dcb206cb1ac422b09b861", "score": "0.6105925", "text": "public String obtenerVenta(){\n cambioDolar = new TipoCambio();\n return String.valueOf(cambioDolar.getVenta());\n }", "title": "" }, { "docid": "9fd72c1ce7aee9ab605081b7f4d5dc4a", "score": "0.6100201", "text": "cl.sii.siiDte.DTEDefType.Exportaciones.Encabezado.Transporte.Aduana.CodUnidMedTara xgetCodUnidMedTara();", "title": "" }, { "docid": "b248a98dcc7a85c6c5d4ca4ee1b2758a", "score": "0.6043411", "text": "int getCodUnidMedTara();", "title": "" }, { "docid": "b248a98dcc7a85c6c5d4ca4ee1b2758a", "score": "0.6043411", "text": "int getCodUnidMedTara();", "title": "" }, { "docid": "1f6caa11e7133ba5938fac7ce5d3f5de", "score": "0.60382056", "text": "cl.sii.siiDte.DTEDefType.Exportaciones.Encabezado.Transporte.Aduana.CodUnidPesoNeto xgetCodUnidPesoNeto();", "title": "" }, { "docid": "9ace1075650632db3723da7a0b3a494c", "score": "0.60151035", "text": "cl.sii.siiDte.DTEDefType.Documento.Encabezado.Transporte.Aduana.CodPtoDesemb xgetCodPtoDesemb();", "title": "" }, { "docid": "5bdabf5f97811c72254a37b5c749fefb", "score": "0.60004497", "text": "public java.lang.String getCodigo_rango();", "title": "" }, { "docid": "0d52fd084f4962037642841456e82b97", "score": "0.59953076", "text": "cl.sii.siiDte.DTEDefType.Exportaciones.Encabezado.Transporte.Aduana.CodPtoDesemb xgetCodPtoDesemb();", "title": "" }, { "docid": "42fc8e594fa48724372b015483f3b95a", "score": "0.5934321", "text": "cl.sii.siiDte.DTEDefType.Exportaciones.Encabezado.Transporte.Aduana.TipoBultos.CodTpoBultos xgetCodTpoBultos();", "title": "" }, { "docid": "59c73f063dbc84b92e0d98d61ae6c7cf", "score": "0.59210366", "text": "int getCodUnidPesoBruto();", "title": "" }, { "docid": "59c73f063dbc84b92e0d98d61ae6c7cf", "score": "0.59210366", "text": "int getCodUnidPesoBruto();", "title": "" }, { "docid": "15031db71af6955f3f8968b21d224c45", "score": "0.59022045", "text": "public java.lang.String getCod_pra_ave_cd();", "title": "" }, { "docid": "5718872189de1240f8a3f3a319fccf11", "score": "0.5899768", "text": "cl.sii.siiDte.DTEDefType.Documento.Encabezado.Transporte.Aduana.CodUnidMedTara xgetCodUnidMedTara();", "title": "" }, { "docid": "7fab11eb3320f9165d3971572a1b64ee", "score": "0.5899037", "text": "public java.lang.Long getCod_pro_ser_cd();", "title": "" }, { "docid": "e686563637ae324223b36331df752e2a", "score": "0.5892149", "text": "public String getNumVenta()\r\n\t{\r\n\t\treturn numVenta;\r\n\t}", "title": "" }, { "docid": "d3dd169deb264b5f4e54f6cf57d1f3df", "score": "0.5892006", "text": "cl.sii.siiDte.DTEDefType.Documento.Encabezado.Transporte.Aduana.CodUnidPesoNeto xgetCodUnidPesoNeto();", "title": "" }, { "docid": "5193fcc43aed2b255fe3fcf29afb8f0d", "score": "0.5875397", "text": "cl.sii.siiDte.DTEDefType.Exportaciones.Encabezado.Transporte.Aduana.CodPaisRecep xgetCodPaisRecep();", "title": "" }, { "docid": "96eacc605af7a2e0ba228d17d04ffe2e", "score": "0.5869814", "text": "public Integer getVen_Codigo() {\r\n return Ven_Codigo;\r\n }", "title": "" }, { "docid": "9783c5de189a1884418d7b08507ef057", "score": "0.5863746", "text": "public java.lang.Long getCod_ave_mas_cd();", "title": "" }, { "docid": "17455fc9099f806ea3a13e975828d460", "score": "0.58547705", "text": "cl.sii.siiDte.DTEDefType.Exportaciones.Encabezado.Transporte.Aduana.CodUnidPesoBruto xgetCodUnidPesoBruto();", "title": "" }, { "docid": "87c0bbfb32f0a9ef3c4b6d29c0d58adc", "score": "0.5847346", "text": "cl.sii.siiDte.DTEDefType.Documento.Encabezado.IdDoc.IndNoRebaja xgetIndNoRebaja();", "title": "" }, { "docid": "17d15487406e1cfe51d3b32cca0edf2a", "score": "0.58455837", "text": "cl.sii.siiDte.DTEDefType.Documento.Encabezado.Transporte.Aduana.TipoBultos.CodTpoBultos xgetCodTpoBultos();", "title": "" }, { "docid": "54d7cc1a9ed095d97bea7babbc754668", "score": "0.5825612", "text": "public java.lang.String getCodigo_pcom();", "title": "" }, { "docid": "d05496cc9e9e8b03ab2282b6a9c75497", "score": "0.58118516", "text": "cl.sii.siiDte.DTEDefType.Documento.Encabezado.Transporte.Aduana.CodPaisRecep xgetCodPaisRecep();", "title": "" }, { "docid": "6b39ecacbbfcc664aeb29365ab60b6b7", "score": "0.57887506", "text": "java.lang.String getVlrCodigo();", "title": "" }, { "docid": "6b39ecacbbfcc664aeb29365ab60b6b7", "score": "0.578863", "text": "java.lang.String getVlrCodigo();", "title": "" }, { "docid": "6b39ecacbbfcc664aeb29365ab60b6b7", "score": "0.578863", "text": "java.lang.String getVlrCodigo();", "title": "" }, { "docid": "136c4d676bd30ec1a45879c43ca5c9cc", "score": "0.57565665", "text": "cl.sii.siiDte.ComunaType xgetCmnaRecep();", "title": "" }, { "docid": "136c4d676bd30ec1a45879c43ca5c9cc", "score": "0.5756198", "text": "cl.sii.siiDte.ComunaType xgetCmnaRecep();", "title": "" }, { "docid": "136c4d676bd30ec1a45879c43ca5c9cc", "score": "0.5756198", "text": "cl.sii.siiDte.ComunaType xgetCmnaRecep();", "title": "" }, { "docid": "d975e3f475f5b5502a1ef8be83d6acae", "score": "0.5750206", "text": "public BigDecimal getnCodcarga() {\n return nCodcarga;\n }", "title": "" }, { "docid": "7c69cb97f079be4b913afe078a711c18", "score": "0.5750055", "text": "public java.lang.String getCod_est_ave_cd();", "title": "" }, { "docid": "cb64b04863213adb87fc9b835e8b7131", "score": "0.5740977", "text": "cl.sii.siiDte.DTEDefType.Liquidacion.Detalle.Subcantidad.SubCod xgetSubCod();", "title": "" }, { "docid": "f093e4a3762a327d6620b7797c4bef92", "score": "0.5712442", "text": "public int getVencimento()\n {\n return vencimento;\n }", "title": "" }, { "docid": "c09e09f1eb5f46c98977821fa5b192ea", "score": "0.5707608", "text": "public int getCodigo(){ //criando um método para mostrar a varivel codigo do tipo int, abrindo com a chave\n return codigo; // retorna o valor do vetor\n }", "title": "" }, { "docid": "e4f222bc7d4934676a452be3da272f37", "score": "0.5704008", "text": "cl.sii.siiDte.DTEDefType.Documento.Detalle.Subcantidad.SubCod xgetSubCod();", "title": "" }, { "docid": "e467115f31596754579b724041aa6166", "score": "0.5689362", "text": "cl.sii.siiDte.DTEDefType.Documento.Encabezado.Transporte.Aduana.CodUnidPesoBruto xgetCodUnidPesoBruto();", "title": "" }, { "docid": "13ddf6f0c3e7736122661650ec1be039", "score": "0.5687808", "text": "public String getCRCPJ_NUMERO_CUENTA(){\n\t\treturn this.myCrcpj_numero_cuenta;\n\t}", "title": "" }, { "docid": "2ce3be2b66699e5705fa497d56b3279e", "score": "0.5678654", "text": "public java.lang.String getCod_apt_ave_cd();", "title": "" }, { "docid": "f985fe58c6091fb4875914ab4486bdf2", "score": "0.5673248", "text": "String getCodigo();", "title": "" }, { "docid": "9a1ba0a510c3cefb07ea5fcb06207994", "score": "0.5668667", "text": "java.lang.String getTpoCodigo();", "title": "" }, { "docid": "9a1ba0a510c3cefb07ea5fcb06207994", "score": "0.5668002", "text": "java.lang.String getTpoCodigo();", "title": "" }, { "docid": "9a1ba0a510c3cefb07ea5fcb06207994", "score": "0.5668002", "text": "java.lang.String getTpoCodigo();", "title": "" }, { "docid": "5d5e5f3f1f88efc082307346a9a8bfc3", "score": "0.56566614", "text": "int getCodPaisRecep();", "title": "" }, { "docid": "5d5e5f3f1f88efc082307346a9a8bfc3", "score": "0.56566614", "text": "int getCodPaisRecep();", "title": "" }, { "docid": "8c8d0355ad427390798435fef6d00363", "score": "0.56472933", "text": "cl.sii.siiDte.DTEDefType.Exportaciones.Encabezado.Emisor.CodAdicSucur xgetCodAdicSucur();", "title": "" }, { "docid": "8db3802db46a1796c8757c3b0ba29517", "score": "0.56361866", "text": "void unsetCodModVenta();", "title": "" }, { "docid": "9cacb889d08a1ed1aafbcfb5be0d6703", "score": "0.56361526", "text": "cl.sii.siiDte.ComunaType xgetCmnaOrigen();", "title": "" }, { "docid": "9cacb889d08a1ed1aafbcfb5be0d6703", "score": "0.56361526", "text": "cl.sii.siiDte.ComunaType xgetCmnaOrigen();", "title": "" }, { "docid": "9cacb889d08a1ed1aafbcfb5be0d6703", "score": "0.56361526", "text": "cl.sii.siiDte.ComunaType xgetCmnaOrigen();", "title": "" }, { "docid": "a904c975fbeb4703195b9581091eb42a", "score": "0.5635487", "text": "public java.lang.String getMot_ave_mas_cd();", "title": "" }, { "docid": "8db3802db46a1796c8757c3b0ba29517", "score": "0.5634529", "text": "void unsetCodModVenta();", "title": "" }, { "docid": "0a0fe615d8d6092863372e5549052663", "score": "0.562392", "text": "public int getCompetencia() {\r\n return competencia;\r\n }", "title": "" }, { "docid": "6b5f82cc079be23d72b3cbbfc15ea291", "score": "0.56126606", "text": "public String getCod() {\r\n return cod;\r\n }", "title": "" }, { "docid": "46f3e39c932f38bf3ee78793e5e04269", "score": "0.56102973", "text": "public java.lang.String getCatCodigoElemento () {\n\t\treturn catCodigoElemento;\n\t}", "title": "" }, { "docid": "c8c6b1dbb3ab80c9129a7d74e7879859", "score": "0.55826926", "text": "public String darIdSeleccionado()\r\n\t{\r\n\t\tif (tree == null || raizJtree == null || tree.getSelectionPath() == null)\r\n\t\t{\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t\tString vista = (String) cbVerComo.getSelectedItem();\r\n\t\tNodoAlmacen seleccionado = (NodoAlmacen) listNodos.getSelectedValue();\r\n\t\tif (vista.equals(VER_ARBOL))\r\n\t\t{\r\n\t\t\tDefaultMutableTreeNode treeNode = (DefaultMutableTreeNode) tree.getSelectionPath().getLastPathComponent();\r\n\t\t\treturn ((NodoAlmacen) treeNode.getUserObject()).darIdentificador();\r\n\t\t}\r\n\r\n\t\treturn seleccionado.darIdentificador();\r\n\t}", "title": "" }, { "docid": "599670cb89e4dab693a5d1e402b5b554", "score": "0.55798566", "text": "public String getCodigo() {\n return codigo;\n }", "title": "" }, { "docid": "e273f0b2ad958f0392388f17f800a4be", "score": "0.5558051", "text": "public void setCOD_MOD(String COD_MOD) {\n this.COD_MOD = COD_MOD;\n }", "title": "" }, { "docid": "e273f0b2ad958f0392388f17f800a4be", "score": "0.5558051", "text": "public void setCOD_MOD(String COD_MOD) {\n this.COD_MOD = COD_MOD;\n }", "title": "" }, { "docid": "cae5d90991bda3dd0d2aa44c15c0834b", "score": "0.55468136", "text": "cl.sii.siiDte.DTEDefType.Exportaciones.Detalle.Subcantidad.SubCod xgetSubCod();", "title": "" }, { "docid": "37e127e4d1770244bb62d111b6e24fd2", "score": "0.5535174", "text": "public int getCodigo() {\n return codigo;\n }", "title": "" }, { "docid": "37e127e4d1770244bb62d111b6e24fd2", "score": "0.5535174", "text": "public int getCodigo() {\n return codigo;\n }", "title": "" }, { "docid": "b0d5a9fb4e47719f756a9b71682c74bf", "score": "0.55344206", "text": "public String getCRCOM_CODIGO(){\n\t\treturn this.myCrcom_codigo;\n\t}", "title": "" }, { "docid": "1e3a3f9eea7323646362910a0957e925", "score": "0.5520965", "text": "int getCodPtoDesemb();", "title": "" }, { "docid": "1e3a3f9eea7323646362910a0957e925", "score": "0.5520965", "text": "int getCodPtoDesemb();", "title": "" }, { "docid": "6a8133e54da2425b73b2641d7be19403", "score": "0.5518127", "text": "public void setCodigoVenta(int codigoVenta) {\r\n this.codigoVenta = codigoVenta;\r\n }", "title": "" }, { "docid": "68d8cb1ae37dc619ff5c57f78baba591", "score": "0.5516352", "text": "java.math.BigInteger getIndNoRebaja();", "title": "" }, { "docid": "9ad9b1d00e1e322225f433c6bb899dc6", "score": "0.5512974", "text": "public ID getCodatID() {\n return id;\n }", "title": "" }, { "docid": "c57354830f54723c884fdb46c7528981", "score": "0.55041397", "text": "cl.sii.siiDte.MontoType xgetValComNeto();", "title": "" }, { "docid": "c57354830f54723c884fdb46c7528981", "score": "0.5504038", "text": "cl.sii.siiDte.MontoType xgetValComNeto();", "title": "" }, { "docid": "8b68df5cdfb27e2d71d86dc4b77d50e0", "score": "0.5495006", "text": "cl.sii.siiDte.DTEDefType.Documento.Encabezado.Transporte.Aduana.CodViaTransp xgetCodViaTransp();", "title": "" }, { "docid": "0565daa3dad14da6038ad8b0c363ad1b", "score": "0.54888934", "text": "public java.lang.String getUsr_ult_mod_no();", "title": "" }, { "docid": "fdfc646e74f4421d2a7a5cd4057c0784", "score": "0.54807216", "text": "cl.sii.siiDte.DTEDefType.Documento.Encabezado.OtraMoneda getOtraMoneda();", "title": "" }, { "docid": "5bf39e4b3f51a1ee0bb87c9b07bfe043", "score": "0.54638827", "text": "public String getCodigo() {\r\n\r\n\t\treturn codigo;\r\n\t}", "title": "" }, { "docid": "5554a5a86a9039f99e2171853ba05e2c", "score": "0.5461627", "text": "public String getCod() {\r\n\t\treturn cod;\r\n\t}", "title": "" }, { "docid": "555842dd8d3e98397972200a8dbdec59", "score": "0.54605895", "text": "public int getMotivoId() {\r\n return idMotivo;\r\n }", "title": "" }, { "docid": "d2c8dba6990df6b813f30f4f10997fba", "score": "0.5458466", "text": "public int getCodigo() {\r\n\t\treturn codigo;\r\n\t}", "title": "" }, { "docid": "d2c8dba6990df6b813f30f4f10997fba", "score": "0.5458466", "text": "public int getCodigo() {\r\n\t\treturn codigo;\r\n\t}", "title": "" }, { "docid": "ab07e3a45c0bbd7357cf3b635c7c3c44", "score": "0.54541004", "text": "public int getEtatVente() {\n\t\treturn etatVente;\n\t}", "title": "" }, { "docid": "36a36c8b113cdb12195cbdd23ee1c542", "score": "0.54533434", "text": "int getCodTpoBultos();", "title": "" }, { "docid": "36a36c8b113cdb12195cbdd23ee1c542", "score": "0.54533434", "text": "int getCodTpoBultos();", "title": "" }, { "docid": "82ae8b483a254f1607d767cf7eb4580b", "score": "0.5450423", "text": "public java.math.BigDecimal getCod_cliente() {\r\n\t\treturn cod_cliente;\r\n\t}", "title": "" }, { "docid": "a1e404243367d09eb11c1fbe4eb5fc6e", "score": "0.54462093", "text": "int getAnoModelo();", "title": "" }, { "docid": "4f3d1975e49a663b3f694f0f01bcfc8c", "score": "0.54438436", "text": "public String getCodigo() {\n\t\treturn codigo;\n\t}", "title": "" } ]
1c079bb73aabdad7d03395002e8382d7
Used to validate a three marble move
[ { "docid": "3e1788d3770a61a259111438ddf65de2", "score": "0.62987715", "text": "public boolean isValidMove(String pos1, String pos2, String pos3, int direction, Marble m) {\n\t\treturn makeMove(pos1, pos2, pos3, direction, m);\n\t}", "title": "" } ]
[ { "docid": "f08cac72301a4f1532a2354b558df3ff", "score": "0.6330147", "text": "@Test\n public void testValidMove() {\n \n // 1 space\n int newX = 0;\n int newY = 2;\n boolean expResult = true;\n boolean result = pawn.validMove(newX, newY);\n assertEquals(expResult, result);\n // 2 spaces\n newX = 0;\n newY = 3;\n expResult = true;\n result = pawn.validMove(newX, newY);\n assertEquals(expResult, result);\n // illegal 2 space\n pawn.y = 3;\n newX = 0;\n newY = 5;\n expResult = false;\n result = pawn.validMove(newX, newY);\n assertEquals(expResult, result);\n // illegal horizontal\n newX = 1;\n newY = 3;\n expResult = false;\n result = pawn.validMove(newX, newY);\n assertEquals(expResult, result);\n }", "title": "" }, { "docid": "e3cbe259a56749fa13274433504b0050", "score": "0.61432046", "text": "@Override\n public boolean validateMove(Player player, int oldX, int oldY, int newX, int newY) {\n System.out.println(\"Wszedł w validateMove z: \" + player.getNick() + \" \" +\n oldX + \" \" + oldY + \" \" + newX + \" \" + newY);\n\n if(!player.equals(players[currentPlayer])) {\n System.out.println(\"Zły gracz rusza\");\n return false;\n }\n\n Field [][] fields = getBoardFields();\n\n if(!player.equals(fields[oldX][oldY].getPlayer())) {\n // player must play only with its own pawns\n System.out.println(\"Gracz rusza nie swój pionek\");\n return false;\n }\n if(fields[newX][newY].getPlayer() != null) { // destination field must be empty\n System.out.println(\"Pole zajęte\");\n return false;\n }\n\n Field [] neighbours = fields[oldX][oldY].getNeighbours();\n\n if(newX == originalX && newY == originalY) {\n System.out.println(\"Poprawne cofnięcie z pola sąsiadującego\");\n setDefaults();\n return true;\n }\n\n if(allowFurtherMove) {\n if(!player.equals(lastPlayer)) {\n originalX = oldX;\n originalY = oldY;\n for (Field neighbour : neighbours) { // simple move validation\n if (fields[newX][newY].equals(neighbour)) {\n System.out.println(\"Poprawne pole sasiadujące\");\n lastPlayer = player;\n allowFurtherMove = false;\n return true;\n }\n }\n }\n\n for(int i = 0; i < neighbours.length; ++i) { // jump move validation\n if((neighbours[i] != null) &&\n (neighbours[i].getPlayer() != null)) {\n Field nextField = neighbours[i].getNeighbours()[i];\n if(nextField != null) {\n if(getBoardFields()[newX][newY].equals(nextField)) {\n System.out.println(\"Poprawny skok\");\n lastPlayer = player;\n return true;\n }\n }\n }\n }\n }\n\n System.out.println(\"Niepoprawny ruch\");\n return false;\n }", "title": "" }, { "docid": "ab50a541f416c3b0a74a6ed458369d29", "score": "0.60100335", "text": "@Override\n public void onValidate(State state) {\n Action actionExecutedInPrevious = state.actionThatLedToThisState;\n State previous = state.parent;\n State.PlayerState active = state.activePlayerState();\n\n while (previous != null && previous.turn == state.turn) {\n if (active.player.equals(previous.activePlayerState().player)\n && actionExecutedInPrevious instanceof Untap) {\n errors.add(String.format(\"%s already untapped their cards this turn\", active));\n }\n\n actionExecutedInPrevious = previous.actionThatLedToThisState;\n previous = previous.parent;\n }\n }", "title": "" }, { "docid": "74982b17fa798e326bf5e087ee7d28e9", "score": "0.59924763", "text": "@Test\n\tpublic void testInvalidMoveAdvisor() {\n\t\tassertEquals(MoveResult.ILLEGAL, game.makeMove(makeCoordinate(1, 2), makeCoordinate(1, 1)));\n\t\tassertTrue(game.getMoveMessage().length() >= 1);\n\t\tassertEquals(MoveResult.ILLEGAL, game.makeMove(makeCoordinate(1, 2), makeCoordinate(2, 2)));\n\t\tassertTrue(game.getMoveMessage().length() >= 1);\n\t\tassertEquals(MoveResult.ILLEGAL, game.makeMove(makeCoordinate(1, 2), makeCoordinate(2, 4)));\n\t\tassertTrue(game.getMoveMessage().length() >= 1);\n\t\t\n\t\tassertEquals(MoveResult.OK, game.makeMove(makeCoordinate(1, 2), makeCoordinate(2, 1))); // RED turn - valid move\n\t\tassertTrue(game.getMoveMessage().length() == 0);\n\t\t\n\t\t// BLACK turn - try to move not following the rule for Advisor\n\t\tassertEquals(MoveResult.ILLEGAL, game.makeMove(makeCoordinate(1, 2), makeCoordinate(1, 3)));\n\t\tassertTrue(game.getMoveMessage().length() >= 1);\n\t\tassertEquals(MoveResult.ILLEGAL, game.makeMove(makeCoordinate(1, 2), makeCoordinate(3, 2)));\n\t\tassertTrue(game.getMoveMessage().length() >= 1);\n\t\tassertEquals(MoveResult.ILLEGAL, game.makeMove(makeCoordinate(1, 2), makeCoordinate(2, 4)));\n\t\tassertTrue(game.getMoveMessage().length() >= 1);\n\t\t\n\t\tassertEquals(MoveResult.OK, game.makeMove(makeCoordinate(1, 2), makeCoordinate(2, 1))); // BLACK turn - valid move\n\t\tassertTrue(game.getMoveMessage().length() == 0);\n\t\tassertEquals(MoveResult.OK, game.makeMove(makeCoordinate(2, 1), makeCoordinate(1, 2))); // RED turn - valid move\n\t\tassertTrue(game.getMoveMessage().length() == 0);\n\t\tassertEquals(MoveResult.OK, game.makeMove(makeCoordinate(2, 1), makeCoordinate(1, 2))); // BLACK turn - valid move\n\t\tassertTrue(game.getMoveMessage().length() == 0);\n\t\t\n\t\t// RED turn - try to take piece of same color\n\t\tassertEquals(MoveResult.ILLEGAL, game.makeMove(makeCoordinate(1, 2), makeCoordinate(2, 3)));\n\t\tassertTrue(game.getMoveMessage().length() >= 1);\n\t\t\n\t\tassertEquals(MoveResult.OK, game.makeMove(makeCoordinate(1, 2), makeCoordinate(2, 1))); // RED turn - valid move\n\t\tassertTrue(game.getMoveMessage().length() == 0);\n\t\t\n\t\t// BLACK turn - try to take piece of same color\n\t\tassertEquals(MoveResult.ILLEGAL, game.makeMove(makeCoordinate(1, 2), makeCoordinate(2, 3)));\n\t\tassertTrue(game.getMoveMessage().length() >= 1);\n\t}", "title": "" }, { "docid": "f132108351477db9331e6924595ce4fa", "score": "0.59876734", "text": "@Test\n public void generateValidPawnMoves_threeDirectionsFree() {\n setUpBoard(QuoridorSettings.defaultTwoPlayer().toBuilder().setBoardSize(3));\n board.movePawn(Player.PLAYER2, Square.at('a', 1));\n board.movePawn(Player.PLAYER1, Square.at('c', 2));\n Set<Move> moves = governor.generateValidPawnMoves(Player.PLAYER1);\n assertThat(moves)\n .containsExactly(\n Move.pawnMove(Player.PLAYER1, Square.at('c', 1)),\n Move.pawnMove(Player.PLAYER1, Square.at('c', 3)),\n Move.pawnMove(Player.PLAYER1, Square.at('b', 2)));\n }", "title": "" }, { "docid": "dc1cbdfa12d2db94174652b4a0c24ab9", "score": "0.59723186", "text": "protected void validateMove(GameState state, MoveSubmission move) {\n // Ensure that coordinates are within expected bounds:\n if ( move.getType() == MoveType.PLAY ) {\n int x = move.getPlayStart().getX();\n int y = move.getPlayStart().getY();\n\n if (x < 0 || x >= WordsWithFriendsBoard.DIMENSIONS || y < 0 || y >= WordsWithFriendsBoard.DIMENSIONS) {\n throw new MoveValidationException(\"Coordinates not within expected bounds. Must be in the interval \"\n + \"(0,\" + WordsWithFriendsBoard.DIMENSIONS + \"). Got: \" + move.getPlayStart());\n }\n }\n\n // Ensure that the tiles played are in the user's rack.\n if ( move.getType() == MoveType.PLAY || move.getType() == MoveType.SWAP ) {\n List<Tile> available = state.getRacks().get(state.getMeta().getCurrentMoveUserId());\n Set<Integer> playedTileIds = Sets.newHashSet();\n Set<Integer> availableTileIds = Sets.newHashSet();\n\n for (Tile tile : move.getTilesPlayed()) {\n playedTileIds.add(tile.getValue());\n }\n for (Tile tile : available) {\n availableTileIds.add(tile.getValue());\n }\n\n if ( !Sets.difference(playedTileIds, availableTileIds).isEmpty()) {\n throw new MoveValidationException(\"Tried to play move including tiles that aren't in current player's rack. \"\n + \"Played tiles: \" + move.getTilesPlayed() + \" // available: \" + available);\n }\n }\n }", "title": "" }, { "docid": "e8d02edb8c0d4f35839e785b94a6ad11", "score": "0.5943235", "text": "@Override\r\n\tpublic boolean isMoveValid(Game g, Location from, Location to) {\n\t\tif (to == Location.B_BAR || to == Location.R_BAR){\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\t//given the available rolls it will never be possible for a player to bear off in this version\r\n\t\t//so only ensure that the player cannot do it, since they will always have checkers stopping them from bearing off\r\n\t\tif (to == Location.B_BEAR_OFF || to == Location.R_BEAR_OFF){\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\tboolean performCapture = false;\r\n\t\tswitch (g.getColor(from)){\r\n\t\tcase BLACK:\r\n\t\t\tif (g.getCount(Location.B_BAR) > 0 && from != Location.B_BAR){\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\t//Black pieces move from low # locations to high #, so the to cannot be smaller than from\r\n\t\t\tif (Location.distance(from, to) <= 0){\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\t//Black pieces cannot move to a RED controlled location\r\n\t\t\tif (g.getColor(to) == Color.RED){\r\n\t\t\t\tif (g.getCount(to) > 1){\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}else if(g.getCount(to) == 1){\r\n\t\t\t\t\tperformCapture = true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\t\tcase RED:\r\n\t\t\tif (g.getCount(Location.R_BAR) > 0 && from != Location.R_BAR){\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\t//Red pieces move from high # locations to low #, so the to cannot be larger than from\r\n\t\t\tif (Location.distance(from, to) >= 0){\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\t//Red pieces cannot move to a BLACK controlled location\r\n\t\t\tif (g.getColor(to) == Color.BLACK){\r\n\t\t\t\tif (g.getCount(to) > 1){\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}else if(g.getCount(to) == 1){\r\n\t\t\t\t\tperformCapture = true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//Only movements relating to an available dice roll can be used\r\n\t\tint distTravelled = Math.abs(Location.distance(from, to));\r\n\t\tboolean valid = false;\r\n\t\tfor (int d : g.diceValuesLeft()){\r\n\t\t\tif (d == distTravelled){\r\n\t\t\t\tvalid = true;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (!valid){\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\t/**Everything below this point affects the state of the game**/\r\n\t\tif (performCapture){\r\n\t\t\tswitch(g.getColor(to)){\r\n\t\t\tcase BLACK:\r\n\t\t\t\tg.move(to, Location.B_BAR);\r\n\t\t\t\tbreak;\r\n\t\t\tcase RED:\r\n\t\t\t\tg.move(to, Location.R_BAR);\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "d71d412c9809edea999a837251250bb9", "score": "0.59425235", "text": "public boolean isValid() {\n return points.size() > 1 && moveSum == 6;\n }", "title": "" }, { "docid": "5b9e12e1021510682973ded187e5ad49", "score": "0.5941064", "text": "public boolean isMoveValid(int r, int c, ArrayList<int[]> previousMoves) {\n\t\tif(!board[r][c].isOpen()) {\n\t\t\tJOptionPane.showMessageDialog(null, \"That space is not open, please choose another space to place your tile.\");\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t//This is the first move\n\t\tif(previousMoves.isEmpty()) {\n\t\t\t\n\t\t\t//Star is open, the tile must be placed on the star\n\t\t\tif(board[7][7].isOpen() && (r != 7 || c != 7)) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"The first tile must be placed on the star. Try row 8 and column 8.\");\n\t\t\t\treturn false;\n\t\t\t} \n\t\t\t\n\t\t\t//If star isn't open, tile placed must be next to another tile on first move\n\t\t\tif(!board[7][7].isOpen()) {\n\t\t\t\t\n\t\t\t\tif(!nextToTile(r, c)) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t} else if (previousMoves.size() == 1) { //This is the second move\n\t\t\t\n\t\t\tint[] firstMove = previousMoves.get(0);\n\t\t\t\n\t\t\t//Tile must be placed on the same row or same column as the first tile placed\n\t\t\tif(r != firstMove[0] && c != firstMove[1] ){\n\t\t\t\tJOptionPane.showMessageDialog(null, \"The second tile must be placed on the same row OR on the same column as the first tile\");\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\t\n\t\t\t//Tile must be placed next to another tile\n\t\t\tif(!nextToTile(r, c)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\t\n\t\t} else if (previousMoves.size() > 1) {\n\t\t\t\n\t\t\tint[] firstMove = previousMoves.get(0);\n\t\t\tint[] secondMove = previousMoves.get(1);\n\n\t\t\t//If the first and second move have the same row, the word is horizontal and the row must be the same\n\t\t\tif(firstMove[0] == secondMove[0] && r != firstMove[0]) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"You're playing a word horizontally. The row must be the same as the previous moves\");\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\t\n\t\t\t//If the first and second move have the same column, the word is vertical and the row must be the same\n\t\t\tif(firstMove[1] == secondMove[1] && c != firstMove[1]) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"You're playing a word vertically. The column must be the same as the previous moves\");\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\t\n\t\t\t//Tile must be placed next to another tile\n\t\t\tif(!nextToTile(r , c)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "title": "" }, { "docid": "da18b2b67d59ced0e60163575f5e5978", "score": "0.59399533", "text": "public boolean isLegal(Action action) {\n int carNum = Integer.parseInt(action.toString().split(\"-\")[0]); //Get the car number that has been set in the (action).java file\n int moveNum = Integer.parseInt(action.toString().split(\"-\")[2]); //Get the moves total number that has been set in the (action).java file\n\n Car currentCar = cars.get(carNum); //Set the car being checked from carNum setup above\n int row = currentCar.getRow(); //Set the row number to be the current cars one\n int col = currentCar.getCol(); //Set the column number to be the current cars one\n int length = currentCar.getLength(); //Set the length number to be the current cars one\n boolean vert = currentCar.isVertical(); //Set if the current car is vertical or not\n \n if(action instanceof MoveLeft){ \n /*\n 1. If the car is vertical, return false\n 2. If the column number - the moves total number is less than 0 (check if the move makes the car go out of boundary)\n 3. If the move collides into another car on the grid\n */ \n if (vert == true || col - moveNum < 0 || occupiedPositions[row][col-moveNum] == true){\n return false;\n }\n return true; //Returns true if all of the above passes\n }\n\n /* \n Changed the boundary being checked to be the total number of columns instead of 0 as the car is moving right\n */\n if(action instanceof MoveRight){\n if (vert == true || col + length + moveNum > nrCols || occupiedPositions[row][col + length + moveNum -1] == true){\n return false;\n }\n return true;\n \n }\n\n /*\n For up and down movements, check if the car isn't vertical \n */\n if(action instanceof MoveUp){\n if (vert == false || row - moveNum < 0 || occupiedPositions[row - moveNum][col] == true){\n return false;\n }\n return true;\n }\n\n /* \n Changed the boundary being checked to be the total number of columns instead of 0 as the car is moving down\n */\n if(action instanceof MoveDown){\n if (vert == false || row + length + moveNum > nrRows || occupiedPositions[row + length + moveNum -1][col] == true){\n return false;\n }\n return true;\n }\n\n return false;\n }", "title": "" }, { "docid": "270f76ed857e9acf5a48547fed85610d", "score": "0.5918219", "text": "@Test (expected=IllegalArgumentException.class)\n\tpublic void checkError(){\n\t\tg1.getCoinPosition(2);\n\t\tg2.getCoinPosition(13);\n g13.getCoinPosition(2);\n g7.move(3,7);\n g6.move(2,2);\n g6.move(20,2);\n g6.move(4,0);\n g3.move(1,1);\n g8.move(30,1);\n g5.move(3,3);\n g6.move(2,6);\n g7.move(1,5);\n g6.move(1,1);\n g7.move(1,1);\n g11.move(2,3);\n g12.move(3,4);\n\n\t}", "title": "" }, { "docid": "329f85898748d8a2beefca8629e5789c", "score": "0.5904112", "text": "@Test\n\tpublic void testValidMoveAdvisor() {\n\t\tassertEquals(MoveResult.OK, game.makeMove(makeCoordinate(1, 2), makeCoordinate(2, 1)));\n\t\t// Move diag. up and left - BLACK\n\t\tassertEquals(MoveResult.OK, game.makeMove(makeCoordinate(1, 2), makeCoordinate(2, 1)));\n\t\t\n\t\t// Move diag. up and right - RED\n\t\tassertEquals(MoveResult.OK, game.makeMove(makeCoordinate(2, 1), makeCoordinate(3, 2)));\n\t\t// Move diag. up and right - BLACK\n\t\tassertEquals(MoveResult.OK, game.makeMove(makeCoordinate(2, 1), makeCoordinate(3, 2)));\n\t\t\n\t\t// Move diag. down and left - RED\n\t\tassertEquals(MoveResult.OK, game.makeMove(makeCoordinate(3, 2), makeCoordinate(2, 1)));\n\t\t// Move diag. down and left - BLACK\n\t\tassertEquals(MoveResult.OK, game.makeMove(makeCoordinate(3, 2), makeCoordinate(2, 1)));\n\t\t\n\t\t// Move diag. down and right - RED\n\t\tassertEquals(MoveResult.OK, game.makeMove(makeCoordinate(2, 1), makeCoordinate(1, 2)));\n\t\t// Move diag. down and right - BLACK\n\t\tassertEquals(MoveResult.OK, game.makeMove(makeCoordinate(2, 1), makeCoordinate(1, 2)));\n\t\t\n\t\tassertEquals(MoveResult.OK, game.makeMove(makeCoordinate(1, 2), makeCoordinate(2, 1)));\n\t\tassertEquals(MoveResult.OK, game.makeMove(makeCoordinate(1, 2), makeCoordinate(2, 1)));\n\t\tassertEquals(MoveResult.OK, game.makeMove(makeCoordinate(2, 1), makeCoordinate(3, 2)));\n\t\tassertEquals(MoveResult.OK, game.makeMove(makeCoordinate(2, 1), makeCoordinate(3, 2)));\n\t\t\n\t\t// Take another piece - RED\n\t\tassertEquals(MoveResult.OK, game.makeMove(makeCoordinate(3, 2), makeCoordinate(4, 3)));\n\t\t\n\t\t// Take another piece - BLACK\n\t\tassertEquals(MoveResult.OK, game.makeMove(makeCoordinate(3, 2), makeCoordinate(4, 3)));\n\t}", "title": "" }, { "docid": "d493a9130505bf467f0baf45ee082839", "score": "0.59013104", "text": "@Test\n void shouldReturnMeldForAcesAround() {\n validateMeldAround(Ace, 10, 100, 150, 200);\n }", "title": "" }, { "docid": "8254ccf2a6eab411e7e5358a2e376412", "score": "0.59008175", "text": "public boolean validateMove(GoBoard board, int color, int x, int y) throws InvalidMoveException;", "title": "" }, { "docid": "173f2269248b264883cc16a26bd73626", "score": "0.58971465", "text": "public boolean validMove(Move move){\n Position start = move.getStart();\n Position end = move.getEnd();\n\n ArrayList<Position> goodMoves = validMoves(move);\n ArrayList<Position> forceMoves = new ArrayList<>();\n\n //check if must choose piece capture jump.\n for (Position check : goodMoves) {\n if (Math.abs(start.getCell() - check.getCell()) == 2) {\n forceMoves.add(check);\n }\n }\n\n if (forceMoves.size() != 0) {\n goodMoves = forceMoves;\n moveAllowed = true;\n }\n\n for(Position check : goodMoves){\n //Position check = goodMoves.get(i);\n if (end.getRow() == check.getRow() && end.getCell() == check.getCell() && moveAllowed) {\n moveAllowed = false;\n return true;\n }\n } return false;\n }", "title": "" }, { "docid": "a9be1616e0b3e206c5c1dbad0727bba1", "score": "0.5889433", "text": "public boolean isValid3D(int tileLevel, int x, int y) {\n boolean valid = false;\n if (tileLevel == pieceLevel) {\n valid = isValid(x, y);\n }\n if (firstMove) {\n if (tileLevel == 2 && (pieceLevel == 1 || pieceLevel == 3)) {\n if (pieceColour.equals(\"black\")) {\n if ((y == getLocationY() + 1 || y == getLocationY() + 2) \n && (x == getLocationX() + 8 \n || x == getLocationX() - 8)) {\n valid = true;\n pieceLevel = tileLevel;\n }\n } else {\n if ((y == getLocationY() - 1 || y == getLocationY() - 2)\n && (x == getLocationX() + 8 \n || x == getLocationX() - 8)) {\n valid = true;\n pieceLevel = tileLevel;\n }\n }\n }\n } else {\n if (tileLevel == 1 && pieceLevel == 2) {\n if (pieceColour.equals(\"black\")) {\n if (y == getLocationY() + 1 && (x == getLocationX() - 8)) {\n valid = true;\n pieceLevel = tileLevel;\n }\n } else {\n if (y == getLocationY() - 1 && (x == getLocationX() - 8)) {\n valid = true;\n pieceLevel = tileLevel;\n }\n }\n }\n if (tileLevel == 3 && pieceLevel == 2) {\n pieceLevel = tileLevel;\n if (pieceColour.equals(\"black\")) {\n if (y == getLocationY() + 1 && x == getLocationX() + 8) {\n valid = true;\n }\n } else {\n if (y == getLocationY() - 1 && x == getLocationX() + 8) {\n valid = true;\n }\n }\n }\n }\n return valid;\n }", "title": "" }, { "docid": "6b916f587bcf057862e0a56f56f5e467", "score": "0.5871863", "text": "public boolean isValidMove(Move move, Player player) {\n\t\tint playerColor = ((MachinePlayer) player).PlayerColor();\n\t\tboolean result = true;\n\t\t\n\t\tswitch(move.moveKind) {\n\t\tcase 1:\t\t// if moveKind == ADD\n\t\t\tint addx1 = move.x1;\n\t\t\tint addy1 = move.y1;\n\t\t\tPair xcoordy1 = new Pair(addx1, addy1, playerColor);\n\t\t\t// if the move is both at a valid coordinate and satisfies the fourth rule,\n\t\t\t// return true, false otherwise.\n\t\t\treturn ((isValidCoordinate(xcoordy1)) && satisfiesFourthRule(xcoordy1));\n\t\t\t\n\t\tcase 2:\t\t// if moveKind == STEP\n\t\t\tint newx = move.x1;\n\t\t\tint oldx = move.x2;\n\t\t\tint newy = move.y1;\n\t\t\tint oldy = move.y2;\n\t\t\t//Pair xcoordy2 = new Pair(stepx2, stepy2, playerColor);\n\t\t\t// First set the old coordinates to EMPTY to see if placing the step piece\n\t\t\t// into the new coordinates would be valid.\n\t\t\tPair newCoord = new Pair(newx, newy, playerColor);\n\t\t\tif (GameBoard[oldx][oldy] == playerColor && newx != oldx && newy != oldy) {\n\t\t\t\t// the old coordinate actually belongs to the player\n\t\t\t\t// the old and new coordinates are different\n\t\t\t\tGameBoard[oldx][oldy] = EMPTY;\n\t\t\t\tif (isValidCoordinate(newCoord) && satisfiesFourthRule(newCoord)) {\n\t\t\t\t\t// the new coordinates are both valid and satisfy the fourth rule\n\t\t\t\t\t// reset the original coordinates and return true\n\t\t\t\t\tGameBoard[oldx][oldy] = playerColor;\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t// otherwise undo the move and return false\n\t\t\t\t\tGameBoard[oldx][oldy] = playerColor;\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\t\n\t\tdefault:\t\t// if moveKind == QUIT\n\t\t\tbreak;\t// move on\n\t\t}\n\t\t\n\t\treturn result;\n\t}", "title": "" }, { "docid": "3d6086d19f5f82d7180f5fe0f9e2b02c", "score": "0.5869372", "text": "@Test\n\tpublic void testInvalidMoveChariot() {\n\t\tassertEquals(MoveResult.ILLEGAL, game.makeMove(makeCoordinate(1, 1), makeCoordinate(1, 2)));\n\t\tassertTrue(game.getMoveMessage().length() >= 1);\n\t\t// RED turn - try to move to destination that has obstacle in between (horizontal)\n\t\tassertEquals(MoveResult.ILLEGAL, game.makeMove(makeCoordinate(1, 1), makeCoordinate(1, 3)));\n\t\tassertTrue(game.getMoveMessage().length() >= 1);\n\t\t// RED turn - same source and destination coordination (no movement)\n\t\tassertEquals(MoveResult.ILLEGAL, game.makeMove(makeCoordinate(1, 1), makeCoordinate(1, 1)));\n\t\tassertTrue(game.getMoveMessage().length() >= 1);\n\t\t// RED turn - try to move not following the rule for Chariot\n\t\tassertEquals(MoveResult.ILLEGAL, game.makeMove(makeCoordinate(1, 1), makeCoordinate(3, 2)));\n\t\tassertTrue(game.getMoveMessage().length() >= 1);\n\t\t\n\t\tassertEquals(MoveResult.OK, game.makeMove(makeCoordinate(1, 1), makeCoordinate(3, 1))); // RED turn - valid move\n\t\tassertTrue(game.getMoveMessage().length() == 0);\n\t\t\n\t\t// BLACK turn - try to take piece of same color\n\t\tassertEquals(MoveResult.ILLEGAL, game.makeMove(makeCoordinate(1, 1), makeCoordinate(1, 2)));\n\t\tassertTrue(game.getMoveMessage().length() >= 1);\n\t\t// BLACK turn - try to move to destination that has obstacle in between (horizontal)\n\t\tassertEquals(MoveResult.ILLEGAL, game.makeMove(makeCoordinate(1, 1), makeCoordinate(1, 3)));\n\t\tassertTrue(game.getMoveMessage().length() >= 1);\n\t\t// BLACK turn - same source and destination coordination (no movement)\n\t\tassertEquals(MoveResult.ILLEGAL, game.makeMove(makeCoordinate(1, 1), makeCoordinate(1, 1)));\n\t\tassertTrue(game.getMoveMessage().length() >= 1);\n\t\t// BLACK turn - try to move not following the rule for Chariot\n\t\tassertEquals(MoveResult.ILLEGAL, game.makeMove(makeCoordinate(1, 1), makeCoordinate(2, 4)));\n\t\tassertTrue(game.getMoveMessage().length() >= 1);\n\t\t\n\t\tassertEquals(MoveResult.OK, game.makeMove(makeCoordinate(1, 1), makeCoordinate(4, 1))); // BLACK turn - valid move\n\t\tassertTrue(game.getMoveMessage().length() == 0);\n\t\tassertEquals(MoveResult.OK, game.makeMove(makeCoordinate(3, 1), makeCoordinate(3, 5))); // RED turn - valid move\n\t\tassertTrue(game.getMoveMessage().length() == 0);\n\t\t\n\t\t// BLACK turn - try to move to destination that has obstacle in between (vertical)\n\t\tassertEquals(MoveResult.ILLEGAL, game.makeMove(makeCoordinate(4, 1), makeCoordinate(2, 1)));\n\t\tassertTrue(game.getMoveMessage().length() >= 1);\n\t\t\n\t\tassertEquals(MoveResult.OK, game.makeMove(makeCoordinate(4, 1), makeCoordinate(4, 2))); // BLACK turn - valid move\n\t\tassertTrue(game.getMoveMessage().length() == 0);\n\t\tassertEquals(MoveResult.OK, game.makeMove(makeCoordinate(3, 5), makeCoordinate(3, 3))); // RED turn - valid move\n\t\tassertTrue(game.getMoveMessage().length() == 0);\n\t\tassertEquals(MoveResult.OK, game.makeMove(makeCoordinate(4, 2), makeCoordinate(4, 1))); // BLACK turn - valid move\n\t\tassertTrue(game.getMoveMessage().length() == 0);\n\t\t\n\t\t// RED turn - try to move to destination that has obstacle in between (vertical)\n\t\tassertEquals(MoveResult.ILLEGAL, game.makeMove(makeCoordinate(3, 3), makeCoordinate(1, 3)));\n\t\tassertTrue(game.getMoveMessage().length() >= 1);\n\t}", "title": "" }, { "docid": "45f738ec5e3ba45353e014ef76b76d79", "score": "0.58606744", "text": "public boolean validate(String move) {\n return true; //not yet implemented\n }", "title": "" }, { "docid": "41f908f019a3da8b8734f6da758635cc", "score": "0.5859632", "text": "boolean hasValidMove() {\n\n\t\treturn upMoveValid || rightMoveValid || downMoveValid || leftMoveValid;\n\n\t}", "title": "" }, { "docid": "dc8fe2d851d86d589929ff72b8383d04", "score": "0.5852896", "text": "private boolean validMove(int xi, int yi, int xf, int yf) {\n if ((pieceSelected.isKing()) == false) { //given piece is not a king\n if(pArray[xf][yf] == null) { //moving to space\n if (!(xi == xf)) {\n if((Math.abs(yf-yi) == 1) && (Math.abs(xf-xi) == 1)) { //moving one space\n \n if (((yf-yi) <= 0) && (playerTurnFire == true)) { //cannot move behind in y or sideways\n return false;\n } else if (((yf-yi) >= 0) && (playerTurnFire == false)) {\n return false;\n } else {\n return true;\n }\n \n } else if ((Math.abs(yf-yi) == 2) && (Math.abs(xf-xi) == 2)) { //moving two spaces\n \n if(pArray[Math.abs((xf+xi)/2)][Math.abs(yf+yi)/2].side() != pieceSelected.side()) {//for piece capturing\n \n if (((yf-yi) <= 0) && (playerTurnFire == true)) { //cannot move behind in y or sideways\n return false;\n } else if (((yf-yi) >= 0) && (playerTurnFire == false)) {\n return false;\n } else {\n return true;\n }\n } else\n return false;\n \n } else //may not move more than two spaces;\n return false;\n } else //no moving in a straight line\n return false;\n \n } else //invalid move of piece to piece or piece to other\n return false;\n \n } else if((pieceSelected.isKing()) == true) {\n if(pArray[xf][yf] == null) { //moving to space\n if (!((xi == xf) || (yi == yf))) {\n if((Math.abs(yf-yi) == 1) && (Math.abs(xf-xi) == 1)) { //moving one space\n return true; \n } else if ((Math.abs(yf-yi) == 2) && (Math.abs(xf-xi) == 2)) { //moving two spaces\n \n if(pArray[Math.abs((xf+xi)/2)][Math.abs(yf+yi)/2].side() != pieceSelected.side()) {//for piece capturing\n return true;\n } else\n return false;\n \n } else //may not move more than two spaces;\n return false;\n } else //no moving in a straight line\n return false;\n \n } else //invalid move of piece to piece or piece to other\n return false;\n } else \n return false;\n \n }", "title": "" }, { "docid": "61eced27af38156e04662c3ee1c0d9dd", "score": "0.58510154", "text": "protected boolean basicLegalityCheck() {\r\n\t\t/* Check that attempted move is within bounds */\r\n\t\tif (!(x2>-1 && x2<8 && y2>-1 && y2<8)) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\t\r\n\t\t/* Check that a piece is selected */\r\n\t\tif (Board.currentBoard[y][x] == ' ') {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\t/* Check that target location isn't occupuied */\r\n\t\tif (Board.currentBoard[y2][x2] != ' ') {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\t/* Check that piece to transform is team's turn */\r\n\t\tif (Game.getTurn() != team) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\treturn true;\r\n\t}", "title": "" }, { "docid": "bd2ccb0b999408775ee93393a2159292", "score": "0.5834061", "text": "@Test\n public void testInsertValidMoveIn3x3Cell() throws Exception {\n final String result = SudokuStatus.VALID_MOVE_SUDOKU_NOT_COMPLETE;\n\n // insert valid value at first 3x3 cell\n Assert.assertEquals(result, this.sudokuService.insertValuesOnSudokuPuzzle(0, 0, 7, SudokuGrid.GRID_PROD));\n Assert.assertEquals(result, this.sudokuService.insertValuesOnSudokuPuzzle(0, 1, 9, SudokuGrid.GRID_PROD));\n\n // insert valid value at middle 3x3 cell\n Assert.assertEquals(result, this.sudokuService.insertValuesOnSudokuPuzzle(3, 3, 8, SudokuGrid.GRID_PROD));\n Assert.assertEquals(result, this.sudokuService.insertValuesOnSudokuPuzzle(5, 5, 3, SudokuGrid.GRID_PROD));\n\n // insert valid value at last 3x3 cell\n Assert.assertEquals(result, this.sudokuService.insertValuesOnSudokuPuzzle(8, 8, 3, SudokuGrid.GRID_PROD));\n Assert.assertEquals(result, this.sudokuService.insertValuesOnSudokuPuzzle(6, 6, 6, SudokuGrid.GRID_PROD));\n }", "title": "" }, { "docid": "5551ed91c52692a6c650d2ed49fe8413", "score": "0.58277625", "text": "@Override\n public boolean validate() {\n Player localPlayer = Players.getLocal();\n\n return Varps.get(bonCooksAssistant.cooksAssistantVarp) == 1\n && (bonCooksAssistant.lumbridgeKitchen.contains(localPlayer.getPosition()) || bonCooksAssistant.lumbridgeCellar.contains(localPlayer.getPosition()))\n && (Inventory.getCount(false, \"Pot\") < 1 || Inventory.getCount(false, \"Bucket\") < 1)\n && (!Inventory.contains(\"Egg\") && !Inventory.contains(\"Bucket of milk\") && !Inventory.contains(\"Pot of flour\"))\n && !Dialog.isOpen();\n }", "title": "" }, { "docid": "61036247ef242b008f5d82c57f5a3510", "score": "0.58257675", "text": "@Override\r\n public boolean legalMove(Move m, Board B) {\r\n //cant move into check\r\n\r\n if(((B.boardArray[m.getX2()][m.getY2()] == null) || !(B.boardArray[m.getX2()][m.getY2()].getColor().equals(B.boardArray[m.getX1()][m.getY1()].getColor())))){\r\n if(Math.abs((m.getX2() - m.getX1())) == 1 && (m.getY2() - m.getY1()) == 0){ // change one in x direction\r\n return true;\r\n }\r\n else if(Math.abs((m.getY2() - m.getY1())) == 1 && (m.getX2() - m.getX1()) == 0){ // change one in y direction\r\n return true;\r\n }\r\n else if((Math.abs((m.getY2() - m.getY1())) == 1 && Math.abs(m.getX2() - m.getX1()) == 1)){ // change 1 in each direction\r\n return true;\r\n }\r\n }\r\n if((m.getX1() - m.getX2() == 0) && Math.abs(m.getY2()-m.getY1()) == 2 && B.boardArray[m.getX1()][m.getY1()].getCount() == -1){ //castling\r\n\r\n int direction = (m.getY2() > m.getY1()) ? 1 : -1;//right or left castle\r\n\r\n int rookPosition = direction == 1 ? 7 : 0; // right or left rook\r\n\r\n if(B.boardArray[m.getX1()][rookPosition] != null && B.boardArray[m.getX1()][rookPosition].getCount() != -1) //check if rook is untouched\r\n return false;\r\n\r\n\r\n int a = m.getY1();\r\n String color = (B.boardArray[m.getX1()][m.getY1()].getColor().equals(\"white\")) ? \"black\" : \"white\";\r\n // Check c = new Check();\r\n while(a != m.getY2()){ //only check if any spot beside starting is null\r\n if(Check.reachable(color, m.getX1(), a, B) || (B.boardArray[m.getX1()][a] != null && a != m.getY1())){ // if in check or piece in between\r\n return false;\r\n }\r\n a += direction;\r\n }\r\n //if nothing in way then return true\r\n //B.boardArray[m.getX1()][rookPosition] = null;\r\n //B.boardArray[m.getX1()][m.getY1() + (direction * -1)] = new Rook(B.boardArray[m.getX1()][m.getY1()].getColor(),B.gameCounter);\r\n\r\n return true;\r\n\r\n }\r\n return false;\r\n }", "title": "" }, { "docid": "11bc2b9efe4d25f56deae2e6c1bc6141", "score": "0.58176804", "text": "public boolean validMove(GameTile tile){\n\t\t//TODO\n\t\treturn true;\n\t}", "title": "" }, { "docid": "e5bc0d3b543344fecb5c9ddce2be1306", "score": "0.5815715", "text": "private boolean check3()\n {\n if((Integer.parseInt(input.substring(0,1))) *\n (Integer.parseInt(input.substring(5,6))) *\n (Integer.parseInt(input.substring(10,11))) != 24)\n {\n valid = false;\n }\n \n return valid;\n }", "title": "" }, { "docid": "a86aeaa3b6c54c2af17fcfdc3318e7e7", "score": "0.5811803", "text": "public boolean doValidate()\n\t{\n\t\t//return this.c.isPartOne() && !this.hasPreMoves() \n\t\t//\t&& this.players.size() == 1;\n\t\t\n\t\treturn this.c.isPartOne();\n\t}", "title": "" }, { "docid": "215a8e9ecaac64bc2cd079b75e480ad0", "score": "0.5775156", "text": "public void testIfValidMove(TurnState state, char move) {\n Location curLoc = state.getLocation();\n Location nextLoc = new Location(curLoc);\n switch (move) {\n case 'N':\n nextLoc.add(-1, 0);\n break;\n case 'S':\n nextLoc.add(1, 0);\n break;\n case 'W':\n nextLoc.add(0, -1);\n break;\n case 'E':\n nextLoc.add(0, 1);\n break;\n }\n if ((nextLoc.getX() < 0)\n || (nextLoc.getY() < 0)\n || (nextLoc.getX() >= height)\n || (nextLoc.getY() >= width)) {\n return;\n }\n // 0. test if the location is valid regarding rocks.\n int linearPos = nextLoc.getLinear();\n int nbRocks = state.getRocks()[linearPos];\n if (nbRocks != 0) {\n return;\n }\n\n // 0bis. check there is enough dynamite.\n // 1. test if there is no explosion harmful\n // 2. if no problem, add the move with the score updated.\n\n TurnState stateAfter = new TurnState(state);\n stateAfter.setLocation(nextLoc);\n int goldToDig = stateAfter.getGold()[nextLoc.getLinear()];\n if (goldToDig > 0) {\n stateAfter.setScore(stateAfter.getScore() + goldToDig);\n stateAfter.getGold()[nextLoc.getLinear()] = 0;\n }\n addMove(state, move, stateAfter);\n }", "title": "" }, { "docid": "cd2c368890f9b19d002f057e93bbc986", "score": "0.57729346", "text": "@Test\n public void isValidWallMove_sameAlreadyPresent_invalid() {\n setUpBoard(QuoridorSettings.defaultTwoPlayer().toBuilder().setBoardSize(3).setWallLength(1));\n board.movePawn(Player.PLAYER2, Square.at('b', 1));\n board.movePawn(Player.PLAYER1, Square.at('b', 3));\n board.placeWall(Wall.horizontal('c', 2).withLength(1), Player.PLAYER1);\n boolean valid =\n governor.isValidWallMove(\n Move.wallMove(Player.PLAYER2, Wall.horizontal('c', 2).withLength(1)));\n assertThat(valid).isFalse();\n }", "title": "" }, { "docid": "b5f55a809a0f2ec5aef62c85d83b6d93", "score": "0.57648057", "text": "public boolean checkValid() {\n\t\t// Check if the meld is too small\n\t\tif (meldTiles.size() < 3) {\n\t\t\treturn false;\n\t\t}\n\t\t// Check if it is either a valid group or run\n\t\telse if(!this.checkGroup() && !this.checkRun()){\n\t\t\treturn false;\n\t\t}\n\t\telse {\n\t\t\treturn true;\n\t\t}\n\t}", "title": "" }, { "docid": "1e5b04283dadb1c38040b11443e61736", "score": "0.575687", "text": "@Override\r\n public boolean validateInput(AnimationPropertiesContainer props,\r\n\t Hashtable<String, Object> primitives)\r\n\t throws IllegalArgumentException {\r\n \t\r\n \t// Fetch user input data\r\n \tint[][] inputData = (int[][]) primitives.get(\"inputData\");\r\n \tint numTeams = inputData[0].length;\r\n \tint numGames = inputData.length - 1;\r\n \t\r\n \t// Check whether No. of teams >= 2 and No. of matches is >= 1:\r\n \tif (numTeams < 2) \r\n \t\tthrow new IllegalArgumentException(errorText[0]);\r\n \tif (numGames < 1) \r\n \t\tthrow new IllegalArgumentException(errorText[1]);\r\n \t\r\n \t// Check whether match values are only 0, 1 or 2:\r\n \tfor (int i = 1; i < inputData.length; i++) {\r\n \t\tfor (int j = 0; j < inputData[i].length; j++) {\r\n \t\t\tif (inputData[i][j] < 0 || inputData[i][j] > 2)\r\n \t\t\t\tthrow new IllegalArgumentException(errorText[2]);\r\n \t\t\t\r\n \t\t}\r\n \t}\r\n \t\r\n \t// Check whether the input matrix doesn't contain negative integers:\r\n \tfor (int i = 0; i < inputData.length; i++) {\r\n \t\tfor (int j = 0; j < inputData[i].length; j++) {\r\n \t\t\tif (inputData[i][j] < 0)\r\n \t\t\t\tthrow new IllegalArgumentException(errorText[3]);\r\n \t\t}\r\n \t}\r\n \t\r\n \t// Check whether each match has exactly two competing teams:\r\n \tint count = 0;\r\n \tfor (int i = 1; i < inputData.length; i++) {\r\n \t\tcount = 0;\r\n \t\tfor (int j = 0; j < inputData[i].length; j++) {\r\n \t\t\tif (inputData[i][j] > 0) count++;\r\n \t\t}\r\n \t\tif (count != 2)\r\n\t\t\t\tthrow new IllegalArgumentException(errorText[4]+i+\"_\"+count);\r\n \t}\r\n \t\r\n \t// No illegal arguments detected:\r\n \treturn true;\r\n }", "title": "" }, { "docid": "1baec06c00bcc66b14f80ced974e89ad", "score": "0.5734194", "text": "public static void AmyTest(String[] args) {\n\n\t\t// isValidCoordinate //\n/*\n\t\tSystem.out.println(\"Testing : isValidCoordinate(Move move, Player player), isValidMove(Move move, Player player), getValidMoves(Player player) \");\n\n\t\tSystem.out.println(\"\\nTest Cases for - CORNERS\");\n\t\tBoard cornerBoard = new Board();\n\t\tcornerBoard.GameBoard = new int[8][8];\n\n\t\tMachinePlayer cWhite = new MachinePlayer(1);\n\t\tMachinePlayer cBlack = new MachinePlayer(0);\n\n\t\tMove cWadd = new Move(0, 0); //white\n\t\tMove cWstep = new Move(1, 1, 7, 7); //white\n\t\tMove cBadd = new Move(0, 7); //black\n\t\tMove cBstep = new Move(7, 0, 1, 2); //black\n\t\tSystem.out.println(\"\\n\tTesting isValidCoordinate for corners\");\n\t\tSystem.out.println(\"(0, 0) is not a valid coordinate, should be false: \" \n\t\t\t\t+ cornerBoard.isValidCoordinate(0, 0, 1));\n\t\tSystem.out.println(\"(7, 0) is not a valid coordinate, should be false: \" \n\t\t\t\t+ cornerBoard.isValidCoordinate(7, 0, -1));\n\t\tSystem.out.println(\"(7, 7) is not a valid coordinate, should be false: \" \n\t\t\t\t+ cornerBoard.isValidCoordinate(7, 7, -1));\n\t\tSystem.out.println(\"(0, 7) is not a valid coordinate, should be false: \" \n\t\t\t\t+ cornerBoard.isValidCoordinate(0, 7, 1));\n\n\t\tSystem.out.println(\"\\n\tTesting isValidMove for corners\");\n\t\tSystem.out.println(\"Cannot add white piece to (0, 0), cWadd is not a valid move, should be false: \"\n\t\t\t\t//+ cornerBoard.isValidMove(cWadd, cWhite.PlayerColor()));\n\t\t\t\t+ cornerBoard.isValidMove(cWadd, cWhite));\n\t\tSystem.out.println(\"Cannot move white piece (1, 1) to (7, 7), cWstep is not a valid move, should be false: \"\n\t\t\t\t//+ cornerBoard.isValidMove(cWstep, cWhite.PlayerColor()));\n\t\t\t\t+ cornerBoard.isValidMove(cWstep, cWhite));\n\t\tSystem.out.println(\"Cannot add black piece to (0, 7), cBadd is not a valid move, should be false: \"\n\t\t\t\t//+ cornerBoard.isValidMove(cBadd, cBlack.PlayerColor()));\n\t\t\t\t+ cornerBoard.isValidMove(cBadd, cBlack));\n\t\tSystem.out.println(\"Cannot move black piece (7, 0) to (1, 2), cBstep is not a valid move, should be false: \"\n\t\t\t\t//+ cornerBoard.isValidMove(cBstep, cBlack.PlayerColor()) + \" but we assume that this never happens because add move\" +\n\t\t\t\t+ cornerBoard.isValidMove(cBstep, cBlack) + \" but we assume that this never happens because add move\" +\n\t\t\" can never place a piece on a corner\");\n\n\t\t//paint(cornerBoard);\n\n\t\tSystem.out.println(\"\\nTest Cases for - GOALS\");\n\t\tBoard goalBoard = new Board();\n\t\tgoalBoard.GameBoard = new int[8][8];\n\n\t\tMachinePlayer gWhite = new MachinePlayer(1);\n\t\tMachinePlayer gBlack = new MachinePlayer(0);\n\n\t\tMove gWadd = new Move(4, 0); //white\n\t\tMove gWstep = new Move(2, 7, 0, 5); //white\n\t\tMove gBadd = new Move(4, 7); //black\n\t\tMove gBstep = new Move(2, 2, 0, 1); //black\n\t\tSystem.out.println(\"\\n\tTesting isValidCoordinate for goals\");\n\t\tSystem.out.println(\"White cannot be placed on (4, 0), should be false: \" \n\t\t\t\t+ goalBoard.isValidCoordinate(4, 0, 1));\n\t\tSystem.out.println(\"White cannot be placed on (2, 7), should be false: \" \n\t\t\t\t+ goalBoard.isValidCoordinate(2, 7, 1));\n\t\tSystem.out.println(\"Black cannot be placed on (0, 3), should be false: \" \n\t\t\t\t+ goalBoard.isValidCoordinate(0, 3, -1));\n\t\tSystem.out.println(\"Black cannot be placed on (7, 1), should be false: \" \n\t\t\t\t+ goalBoard.isValidCoordinate(7, 1, -1));\n\n\t\tSystem.out.println(\"\\n\tTesting isValidMove for goals\");\n\t\tSystem.out.println(\"Cannot add white piece to black goal (4, 0), gWadd is not a valid move, should be false: \"\n\t\t\t\t//+ goalBoard.isValidMove(gWadd, gWhite.PlayerColor()));\n\t\t\t\t+ goalBoard.isValidMove(gWadd, gWhite));\n\t\tSystem.out.println(\"Cannot move white piece (2, 7) black goal to (0, 5) white goal, gWstep is not a valid move, should be false: \"\n\t\t\t\t//+ goalBoard.isValidMove(gWstep, gWhite.PlayerColor()) + \" but we assume that this never happens because add move\" +\n\t\t\t\t+ goalBoard.isValidMove(gWstep, gWhite) + \" but we assume that this never happens because add move\" +\n\t\t\" can never place a white piece in a black goal\");\n\t\tSystem.out.println(\"Can add black piece to (4, 7) black goal, gBadd is a valid move, should be true: \"\n\t\t\t\t//+ goalBoard.isValidMove(gBadd, gBlack.PlayerColor()));\n\t\t\t\t+ goalBoard.isValidMove(gBadd, gBlack));\n\t\tSystem.out.println(\"Cannot move black piece (2, 2) to (0, 1) white goal, gBstep is not a valid move, should be false: \"\n\t\t\t\t//+ goalBoard.isValidMove(gBstep, gBlack.PlayerColor()));\n\t\t\t\t+ goalBoard.isValidMove(gBstep, gBlack));\n\n\t\t//paint(goalBoard);\n\n\t\tSystem.out.println(\"\\nTest Cases for - EMPTY\");\n\t\tBoard emptyBoard = new Board();\n\t\temptyBoard.GameBoard = new int[8][8];\n\n\t\t// setting up emptyBoard \n\t\temptyBoard.GameBoard[1][1] = 1;\n\t\temptyBoard.GameBoard[2][2] = -1;\n\n\t\tMachinePlayer eWhite = new MachinePlayer(1);\n\t\tMachinePlayer eBlack = new MachinePlayer(0);\n\n\t\tMove eWadd = new Move(1, 1); //white\n\t\tMove eWstep = new Move(1, 1, 2, 2); //white\n\t\tMove eBadd = new Move(2, 3); //black\n\t\tMove eBstep = new Move(2, 2, 1, 1); //black\n\t\tSystem.out.println(\"\\n\tTesting isValidCoordinate for goals\");\n\t\tSystem.out.println(\"White cannot be placed on (1, 1), its already taken, should be false: \" \n\t\t\t\t+ emptyBoard.isValidCoordinate(1, 1, 1));\n\t\tSystem.out.println(\"White can be placed on (2, 5), not taken, should be true: \" \n\t\t\t\t+ emptyBoard.isValidCoordinate(2, 5, 1));\n\t\tSystem.out.println(\"Black cannot be placed on (2, 2), its already taken, should be false: \" \n\t\t\t\t+ emptyBoard.isValidCoordinate(2, 2, -1));\n\t\tSystem.out.println(\"Black can be placed on (5, 5), not taken, should be true: \" \n\t\t\t\t+ emptyBoard.isValidCoordinate(5, 5, -1));\n\n\t\tSystem.out.println(\"\\n\tTesting isValidMove for empty/not empty\");\n\t\tSystem.out.println(\"Cannot put white piece on (1, 1), square already taken, should be false: \"\n\t\t\t\t//+ emptyBoard.isValidMove(eWadd, eWhite.PlayerColor()));\n\t\t\t\t+ emptyBoard.isValidMove(eWadd, eWhite));\n\t\tSystem.out.println(\"Cannot move white piece (1, 1) to (2, 2), (2, 2) is already taken, should be false: \"\n\t\t\t\t//+ emptyBoard.isValidMove(eWstep, eWhite.PlayerColor()));\n\t\t\t\t+ emptyBoard.isValidMove(eWstep, eWhite));\n\t\tSystem.out.println(\"Can add black piece to (2, 3), square is empty, should be true: \"\n\t\t\t\t//+ emptyBoard.isValidMove(eBadd, eBlack.PlayerColor()));\n\t\t\t\t+ emptyBoard.isValidMove(eBadd, eBlack));\n\t\tSystem.out.println(\"Cannot move black piece (2, 2) to (1, 1), (1, 1) is already taken, should be false: \"\n\t\t\t\t//+ emptyBoard.isValidMove(eBstep, eBlack.PlayerColor()));\n\t\t\t\t+ emptyBoard.isValidMove(eBstep, eBlack));\n\n\t\t// satisfiesFourthRule(Pair pair) //\n\n\t\tSystem.out.println(\"\\nTest Cases for - FOURTH RULE\");\n\t\tBoard fourthBoard = new Board();\n\t\tfourthBoard.GameBoard = new int[8][8];\n\n\t\t// setting up fourthBoard\n\t\tfourthBoard.GameBoard[1][1] = BLACK;\n\t\tfourthBoard.GameBoard[2][2] = BLACK;\n\n\t\tfourthBoard.GameBoard[5][1] = BLACK;\n\t\tfourthBoard.GameBoard[5][2] = WHITE;\n\n\t\tfourthBoard.GameBoard[1][3] = WHITE;\n\t\tfourthBoard.GameBoard[2][3] = WHITE;\n\n\t\tfourthBoard.GameBoard[3][4] = BLACK;\n\t\tfourthBoard.GameBoard[5][4] = BLACK;\n\t\tfourthBoard.GameBoard[4][6] = BLACK;\n\t\tfourthBoard.GameBoard[6][7] = BLACK;\n\n\t\tMachinePlayer fWhite = new MachinePlayer(1);\n\t\tMachinePlayer fBlack = new MachinePlayer(0);\n\n\t\tMove fBstep1 = new Move(1, 1, 3, 3); // black false\n\t\tMove fBstep2 = new Move(1, 1, 3, 1); // black true\n\t\tMove fBstep3 = new Move(4, 6, 5, 6); //black true\n\t\tMove fBstep4 = new Move(4, 6, 4, 5); //black false\n\t\tMove fBstep5 = new Move(5, 1, 2, 7); //black true\n\n\t\tMove fBadd1 = new Move(3, 1); //black false\n\t\tMove fBadd2 = new Move(3, 3); //black false\n\t\tMove fBadd3 = new Move(2, 5); //black true\n\t\tMove fBadd4 = new Move(5, 6); //black false\n\t\tMove fBadd5 = new Move(6, 6); //black true\n\t\tMove fBadd6 = new Move(0, 0); //black true\n\n\t\tMove fWadd1 = new Move(5, 6); //white true\n\t\tMove fWadd2 = new Move(3, 3); //white false\n\n\t\tPair pair1 = new Pair(3, 3, BLACK);\n\t\tPair pair2 = new Pair(3, 3, WHITE);\n\n\t\tSystem.out.println(\"\\n\tTesting isValidMove for allAdjacentPieces\");\n\t\tSystem.out.println(\"pieces adjacent to (3, 3) should be 2: \" + fourthBoard.allAdjacentPieces(pair1));\n\t\tSystem.out.println(\"pieces adjacent to (3, 3) should be 2: \" + fourthBoard.allAdjacentPieces(pair2));\n\n\t\tSystem.out.println(\"\\n\tTesting isValidMove for fourth rule\");\n\t\tSystem.out.println(\"Cannot move black piece (1, 1) to (3, 3), 3-piece connection, should be false: \"\n\t\t\t\t+ fourthBoard.isValidMove(fBstep1, fBlack.PlayerColor()));\n\t\tSystem.out.println(\"Can move black piece (1, 1) to (3, 1), 2-piece connection, should be true: \"\n\t\t\t\t+ fourthBoard.isValidMove(fBstep2, fBlack.PlayerColor()));\n\t\tSystem.out.println(\"Can move black piece (4, 6) to (5, 6), 2-piece connection, should be true: \"\n\t\t\t\t+ fourthBoard.isValidMove(fBstep3, fBlack.PlayerColor()));\n\t\tSystem.out.println(\"Cannot move black piece (4, 6) to (4, 5), 3-piece connection, should be false: \"\n\t\t\t\t+ fourthBoard.isValidMove(fBstep4, fBlack.PlayerColor()));\n\t\tSystem.out.println(\"Can move black piece (5, 1) to (2, 7), 1-piece connection, should be true: \"\n\t\t\t\t+ fourthBoard.isValidMove(fBstep5, fBlack.PlayerColor()));\n\n\t\tSystem.out.println(\"Cannot place black piece on (3, 1), 3-piece connection, should be false: \"\n\t\t\t\t+ fourthBoard.isValidMove(fBadd1, fBlack.PlayerColor()));\n\t\tSystem.out.println(\"Cannot place black piece on (3, 3), 4-piece connection, should be false: \"\n\t\t\t\t+ fourthBoard.isValidMove(fBadd2, fBlack.PlayerColor()));\n\t\tSystem.out.println(\"Can place black piece on (2, 5), 2-piece connection, should be true: \"\n\t\t\t\t+ fourthBoard.isValidMove(fBadd3, fBlack.PlayerColor()));\n\t\tSystem.out.println(\"Cannot place black piece on (5, 6), 3-piece connection, should be false: \"\n\t\t\t\t+ fourthBoard.isValidMove(fBadd4, fBlack.PlayerColor()));\n\t\tSystem.out.println(\"Can place black piece on (6, 6), 2-piece connection, should be true: \"\n\t\t\t\t+ fourthBoard.isValidMove(fBadd5, fBlack.PlayerColor()));\n\n\t\tSystem.out.println(\"Can place white piece on (5, 6), 1-piece connection, should be true: \"\n\t\t\t\t+ fourthBoard.isValidMove(fWadd1, fWhite.PlayerColor()));\n\t\tSystem.out.println(\"Can place white piece on (3, 3), 3-piece connection, should be false: \"\n\t\t\t\t+ fourthBoard.isValidMove(fWadd2, fWhite.PlayerColor()));\n\t\tSystem.out.println(\"Can place black piece on (0, 0), 1-piece connection, should be false: \"\n\t\t\t\t+ fourthBoard.isValidMove(fBadd6, fBlack.PlayerColor()));\n\n\t\t// getValidMoves(Player player) //\n\n\t\tSystem.out.println(fourthBoard.getValidMoves(fBlack.PlayerColor()));\n\t}\n\n\n\t\n\tpublic static void AmyEvalFnTest(String[] args) {\n\t\tBoard g1 = new Board(); // yes, there are two possible networks\n\t\tg1.GameBoard[2][0] = BLACK;\n\t\tg1.GameBoard[6][0] = BLACK;\n\t\tg1.GameBoard[4][2] = BLACK;\n\t\tg1.GameBoard[1][3] = BLACK;\n\t\tg1.GameBoard[3][3] = BLACK;\n\t\tg1.GameBoard[2][5] = BLACK;\n\t\tg1.GameBoard[3][5] = BLACK;\n\t\tg1.GameBoard[5][5] = BLACK;\n\t\tg1.GameBoard[6][5] = BLACK;\n\t\tg1.GameBoard[5][7] = BLACK;\n\n\t\tBoard g2 = new Board(); //yes, white piece only blocks one network\n\t\tg2.GameBoard[2][0] = BLACK;\n\t\tg2.GameBoard[6][0] = BLACK;\n\t\tg2.GameBoard[4][2] = BLACK;\n\t\tg2.GameBoard[1][3] = BLACK;\n\t\tg2.GameBoard[3][3] = BLACK;\n\t\tg2.GameBoard[2][5] = BLACK;\n\t\tg2.GameBoard[3][5] = BLACK;\n\t\tg2.GameBoard[5][5] = BLACK;\n\t\tg2.GameBoard[6][5] = BLACK;\n\t\tg2.GameBoard[5][7] = BLACK;\n\t\tg2.GameBoard[3][4] = WHITE;\n\n\t\tBoard g3 = new Board(); // no network, white pieces block both networks\n\t\tg3.GameBoard[2][0] = BLACK;\n\t\tg3.GameBoard[6][0] = BLACK;\n\t\tg3.GameBoard[4][2] = BLACK;\n\t\tg3.GameBoard[1][3] = BLACK;\n\t\tg3.GameBoard[3][3] = BLACK;\n\t\tg3.GameBoard[2][5] = BLACK;\n\t\tg3.GameBoard[3][5] = BLACK;\n\t\tg3.GameBoard[5][5] = BLACK;\n\t\tg3.GameBoard[6][5] = BLACK;\n\t\tg3.GameBoard[5][7] = BLACK;\n\t\tg3.GameBoard[3][4] = WHITE;\n\t\tg3.GameBoard[4][4] = WHITE;\n\n\t\tBoard g4 = new Board(); // no, uses 3 pieces in goals\n\t\tg4.GameBoard[6][0] = BLACK;\n\t\tg4.GameBoard[2][0] = BLACK;\n\t\tg4.GameBoard[4][2] = BLACK;\n\t\tg4.GameBoard[3][3] = BLACK;\n\t\tg4.GameBoard[3][5] = BLACK;\n\t\tg4.GameBoard[5][7] = BLACK;\n\n\t\tBoard g5 = new Board(); // no, uses 3 pieces in goals\n\t\tg5.GameBoard[2][0] = BLACK;\n\t\tg5.GameBoard[4][2] = BLACK;\n\t\tg5.GameBoard[6][0] = BLACK;\n\t\tg5.GameBoard[6][5] = BLACK;\n\t\tg5.GameBoard[5][5] = BLACK;\n\t\tg5.GameBoard[5][7] = BLACK;\n\n\t\tBoard g6 = new Board(); // no, network cannot pass through the same chip twice\n\t\tg6.GameBoard[2][0] = BLACK;\n\t\tg6.GameBoard[2][5] = BLACK;\n\t\tg6.GameBoard[3][5] = BLACK;\n\t\tg6.GameBoard[3][3] = BLACK;\n\t\tg6.GameBoard[5][5] = BLACK;\n\t\tg6.GameBoard[3][5] = BLACK;\n\t\tg6.GameBoard[5][7] = BLACK;\n\n\t\tBoard g7 = new Board(); // no, network cannot pass through a chip without turning a corner\n\t\tg7.GameBoard[6][0] = BLACK;\n\t\tg7.GameBoard[4][2] = BLACK;\n\t\tg7.GameBoard[3][3] = BLACK;\n\t\tg7.GameBoard[3][5] = BLACK;\n\t\tg7.GameBoard[2][5] = BLACK;\n\t\tg7.GameBoard[2][7] = BLACK;\n*/\n\t}", "title": "" }, { "docid": "b71e9f471588b90ec60b46ffac591ed2", "score": "0.57273614", "text": "boolean isValidMoveLocation(IHantoGameState state, HantoCoordinate location);", "title": "" }, { "docid": "c44c1ad38bef76c7c35f40187f961c03", "score": "0.5721806", "text": "@Test\n\tpublic void testInvalidMoveSoldier() {\n\t\tassertEquals(MoveResult.ILLEGAL, game.makeMove(makeCoordinate(2, 3), makeCoordinate(2, 4)));\n\t\tassertTrue(game.getMoveMessage().length() >= 1);\n\t\tassertEquals(MoveResult.ILLEGAL, game.makeMove(makeCoordinate(2, 3), makeCoordinate(3, 4)));\n\t\tassertTrue(game.getMoveMessage().length() >= 1);\n\t\tassertEquals(MoveResult.ILLEGAL, game.makeMove(makeCoordinate(2, 3), makeCoordinate(1, 3)));\n\t\tassertTrue(game.getMoveMessage().length() >= 1);\n\t\t\n\t\tassertEquals(MoveResult.OK, game.makeMove(makeCoordinate(1, 1), makeCoordinate(3, 1))); // RED turn - valid move\n\t\tassertTrue(game.getMoveMessage().length() == 0);\n\t\t\n\t\t// BLACK turn - try to move not following the rule for Soldier\n\t\tassertEquals(MoveResult.ILLEGAL, game.makeMove(makeCoordinate(2, 3), makeCoordinate(2, 2)));\n\t\tassertTrue(game.getMoveMessage().length() >= 1);\n\t\tassertEquals(MoveResult.ILLEGAL, game.makeMove(makeCoordinate(2, 3), makeCoordinate(3, 2)));\n\t\tassertTrue(game.getMoveMessage().length() >= 1);\n\t\tassertEquals(MoveResult.ILLEGAL, game.makeMove(makeCoordinate(2, 3), makeCoordinate(1, 3)));\n\t\tassertTrue(game.getMoveMessage().length() >= 1);\n\t\t\n\t\tassertEquals(MoveResult.OK, game.makeMove(makeCoordinate(1, 1), makeCoordinate(3, 1))); // BLACK turn - valid move\n\t\tassertTrue(game.getMoveMessage().length() == 0);\n\t\tassertEquals(MoveResult.OK, game.makeMove(makeCoordinate(3, 1), makeCoordinate(3, 3))); // RED turn - valid move\n\t\tassertTrue(game.getMoveMessage().length() == 0);\n\t\tassertEquals(MoveResult.OK, game.makeMove(makeCoordinate(3, 1), makeCoordinate(3, 2))); // BLACK turn - valid move\n\t\tassertTrue(game.getMoveMessage().length() == 0);\n\t\t\n\t\t// RED turn - try to take piece of same color\n\t\tassertEquals(MoveResult.ILLEGAL, game.makeMove(makeCoordinate(2, 3), makeCoordinate(3, 3)));\n\t\tassertTrue(game.getMoveMessage().length() >= 1);\n\t\t\n\t\tassertEquals(MoveResult.OK, game.makeMove(makeCoordinate(3, 3), makeCoordinate(3, 1))); // RED turn - valid move\n\t\tassertTrue(game.getMoveMessage().length() == 0);\n\t\tassertEquals(MoveResult.OK, game.makeMove(makeCoordinate(3, 2), makeCoordinate(3, 3))); // BLACK turn - valid move\n\t\tassertTrue(game.getMoveMessage().length() == 0);\n\t\tassertEquals(MoveResult.OK, game.makeMove(makeCoordinate(3, 1), makeCoordinate(1, 1))); // RED turn - valid move\n\t\tassertTrue(game.getMoveMessage().length() == 0);\n\t\t\n\t\t// BLACK turn - try to take piece of same color\n\t\tassertEquals(MoveResult.ILLEGAL, game.makeMove(makeCoordinate(2, 3), makeCoordinate(3, 3)));\n\t\tassertTrue(game.getMoveMessage().length() >= 1);\n\t}", "title": "" }, { "docid": "f3759c4022c852642ea4b9d68395bc4c", "score": "0.57150775", "text": "public boolean isLegalMove(Move m, int player) {\n\t\tif(m.moveKind == Move.QUIT){ //Always a valid move\n\t\t\treturn true;\n\t\t} else if(m.moveKind == Move.STEP){\n\t\t\tif((player == BLACK && black.getSize() < 10)\n\t\t\t\t|| (player == WHITE && white.getSize() < 10)){\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tif(this.board[m.x2][m.y2].type() != player){ //Piece to be moved is not there or is opponent's\t\n\t\t\t\treturn false;\n\t\t\t} else {\n\t\t\t\tBoard test = this.duplicate();\n\t\t\t\ttest.board[m.x2][m.y2].remove();\n\t\t\t\tif(test.isValidLocation(m.x1, m.y1, player)){\n\t\t\t\t\treturn true;\n\t\t\t\t} else{\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t} else if(m.moveKind == Move.ADD) {\n\t\t\tif((player == BLACK && black.getSize() >= 10)\n\t\t\t\t|| (player == WHITE && white.getSize() >= 10)){\t\t\t\t\n\t\t\t\treturn false;\n\t\t\t}\t\t\t\n\t\t\treturn isValidLocation(m.x1, m.y1, player);\n\t\t} else { //Move type not recognized\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "4ded84fd76db44df25af0dd6be870728", "score": "0.57003313", "text": "@Test\n public void testInsertInValidMoveIn3x3Cell() throws Exception {\n final String result = SudokuStatus.INVALID_MOVE_SUDOKU_NOT_COMPLETE;\n\n // insert invalid value at first 3x3 cell\n Assert.assertEquals(result, this.sudokuService.insertValuesOnSudokuPuzzle(0, 1, 5, SudokuGrid.GRID_PROD));\n\n // insert invalid value at middle 3x3 cell\n Assert.assertEquals(result, this.sudokuService.insertValuesOnSudokuPuzzle(4, 3, 2, SudokuGrid.GRID_PROD));\n\n // insert invalid value at last 3x3 cell\n Assert.assertEquals(result, this.sudokuService.insertValuesOnSudokuPuzzle(7, 7, 5, SudokuGrid.GRID_PROD));\n }", "title": "" }, { "docid": "b7fefbdf195b48c83f1242adc62322cf", "score": "0.5696329", "text": "@Override\r\n\tpublic boolean isValidMove(int finalX, int finalY) {\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "ab883cf4e4048bf7dec8f03def058d3a", "score": "0.56933564", "text": "@Test\n\tpublic void testInvalidMoveGeneral() {\n\t\tassertEquals(MoveResult.ILLEGAL, game.makeMove(makeCoordinate(1, 3), makeCoordinate(1, 2)));\n\t\tassertTrue(game.getMoveMessage().length() >= 1);\n\t\tassertEquals(MoveResult.ILLEGAL, game.makeMove(makeCoordinate(1, 3), makeCoordinate(1, 4)));\n\t\tassertTrue(game.getMoveMessage().length() >= 1);\n\t\t\n\t\tassertEquals(MoveResult.OK, game.makeMove(makeCoordinate(2, 3), makeCoordinate(3, 3))); // RED turn - valid move\n\t\tassertTrue(game.getMoveMessage().length() == 0);\n\t\t\n\t\t// BLACK turn - try to take piece of same color\n\t\tassertEquals(MoveResult.ILLEGAL, game.makeMove(makeCoordinate(1, 3), makeCoordinate(1, 2)));\n\t\tassertTrue(game.getMoveMessage().length() >= 1);\n\t\tassertEquals(MoveResult.ILLEGAL, game.makeMove(makeCoordinate(1, 3), makeCoordinate(1, 4)));\n\t\tassertTrue(game.getMoveMessage().length() >= 1);\n\t\t\n\t\tassertEquals(MoveResult.OK, game.makeMove(makeCoordinate(2, 3), makeCoordinate(3, 3))); // BLACK turn - valid move\n\t\tassertTrue(game.getMoveMessage().length() == 0);\n\t\tassertEquals(MoveResult.OK, game.makeMove(makeCoordinate(1, 2), makeCoordinate(2, 1))); // RED turn - valid move\n\t\tassertTrue(game.getMoveMessage().length() == 0);\n\t\tassertEquals(MoveResult.OK, game.makeMove(makeCoordinate(1, 2), makeCoordinate(2, 1))); // BLACK turn - valid move\n\t\tassertTrue(game.getMoveMessage().length() == 0);\n\t\tassertEquals(MoveResult.OK, game.makeMove(makeCoordinate(1, 4), makeCoordinate(2, 5))); // RED turn - valid move\n\t\tassertTrue(game.getMoveMessage().length() == 0);\n\t\tassertEquals(MoveResult.OK, game.makeMove(makeCoordinate(1, 4), makeCoordinate(2, 5))); // BLACK turn - valid move\n\t\tassertTrue(game.getMoveMessage().length() == 0);\n\t\t\n\t\t// RED turn - try to move not following the rule for General\n\t\tassertEquals(MoveResult.ILLEGAL, game.makeMove(makeCoordinate(1, 3), makeCoordinate(2, 3)));\n\t\tassertTrue(game.getMoveMessage().length() >= 1);\n\t\tassertEquals(MoveResult.ILLEGAL, game.makeMove(makeCoordinate(1, 3), makeCoordinate(2, 2)));\n\t\tassertTrue(game.getMoveMessage().length() >= 1);\n\t\tassertEquals(MoveResult.ILLEGAL, game.makeMove(makeCoordinate(1, 3), makeCoordinate(2, 4)));\n\t\tassertTrue(game.getMoveMessage().length() >= 1);\n\t\t\n\t\tassertEquals(MoveResult.OK, game.makeMove(makeCoordinate(1, 3), makeCoordinate(1, 2))); // RED turn - valid move\n\t\tassertTrue(game.getMoveMessage().length() == 0);\n\t\t\n\t\t// BLACK turn - try to move not following the rule for General\n\t\tassertEquals(MoveResult.ILLEGAL, game.makeMove(makeCoordinate(1, 3), makeCoordinate(2, 3)));\n\t\tassertTrue(game.getMoveMessage().length() >= 1);\n\t\tassertEquals(MoveResult.ILLEGAL, game.makeMove(makeCoordinate(1, 3), makeCoordinate(2, 2)));\n\t\tassertTrue(game.getMoveMessage().length() >= 1);\n\t\tassertEquals(MoveResult.ILLEGAL, game.makeMove(makeCoordinate(1, 3), makeCoordinate(2, 4)));\n\t\tassertTrue(game.getMoveMessage().length() >= 1);\n\t\t\n\t\tassertEquals(MoveResult.OK, game.makeMove(makeCoordinate(1, 3), makeCoordinate(1, 2))); // BLACK turn - valid move\n\t\tassertTrue(game.getMoveMessage().length() == 0);\n\t\tassertEquals(MoveResult.OK, game.makeMove(makeCoordinate(2, 1), makeCoordinate(3, 2))); // RED turn - valid move\n\t\tassertTrue(game.getMoveMessage().length() == 0);\n\t\tassertEquals(MoveResult.OK, game.makeMove(makeCoordinate(2, 1), makeCoordinate(3, 2))); // BLACK turn - valid move\n\t\tassertTrue(game.getMoveMessage().length() == 0);\n\t\tassertEquals(MoveResult.OK, game.makeMove(makeCoordinate(1, 1), makeCoordinate(2, 1))); // RED turn - valid move\n\t\tassertTrue(game.getMoveMessage().length() == 0);\n\t\tassertEquals(MoveResult.OK, game.makeMove(makeCoordinate(1, 1), makeCoordinate(2, 1))); // BLACK turn - valid move\n\t\tassertTrue(game.getMoveMessage().length() == 0);\n\t\t\n\t\t// RED turn - try to move outside of specified zone (between 12 and 14)\n\t\tassertEquals(MoveResult.ILLEGAL, game.makeMove(makeCoordinate(1, 2), makeCoordinate(1, 1)));\n\t\tassertTrue(game.getMoveMessage().length() >= 1);\n\t\t\n\t\tassertEquals(MoveResult.OK, game.makeMove(makeCoordinate(1, 2), makeCoordinate(1, 3))); // RED turn - valid move\n\t\tassertTrue(game.getMoveMessage().length() == 0);\n\t\t\n\t\t// BLACK turn - try to move outside of specified zone (between 12 and 14)\n\t\tassertEquals(MoveResult.ILLEGAL, game.makeMove(makeCoordinate(1, 2), makeCoordinate(1, 1)));\n\t\tassertTrue(game.getMoveMessage().length() >= 1);\n\t}", "title": "" }, { "docid": "3ee4328901f982488eeb1cd43cb94860", "score": "0.5689032", "text": "private ArrayList<Position> validMoves(Move move) {\n\n // get the start position of the move\n ArrayList<Position> goodMoves = new ArrayList<>();\n Position start = move.getStart();\n Row startRow = gameBoard[start.getRow()];\n Space startSpace = startRow.row[start.getCell()];\n\n // get info on piece that moved\n Piece piece = startSpace.getPiece();\n\n // for a normal piece\n if (piece.getType() == Piece.Type.SINGLE){ //check spaces in front\n Position possibility1 = new Position(start.getRow()-1, start.getCell()+1);\n Position possibility2 = new Position(start.getRow()-1, start.getCell()-1);\n\n // check if space up right is available\n if(possibility1.getCell()<8) {\n Position goodMove = validMovesHelper(move, possibility1, \"UR\");\n if(goodMove != null) { //if move valid\n goodMoves.add(goodMove);\n }\n }\n // check if space up left is available\n if(possibility2.getCell()>=0) {\n Position goodMove = validMovesHelper(move, possibility2, \"UL\");\n if(goodMove != null) {\n goodMoves.add(goodMove);\n }\n }\n }\n\n // for a king piece\n if (piece.getType() == Piece.Type.KING){ //check spaces around\n Position possibility1 = new Position(start.getRow()-1, start.getCell()+1);\n Position possibility2 = new Position(start.getRow()-1, start.getCell()-1);\n Position possibility3 = new Position(start.getRow()+1, start.getCell()-1);\n Position possibility4 = new Position(start.getRow()+1, start.getCell()+1);\n\n // check if space up right is available\n if(possibility1.getCell() < 8 && possibility1.getRow() >= 0) {\n Position goodMove = validMovesHelper(move, possibility1, \"UR\");\n if(goodMove != null) {\n goodMoves.add(goodMove);\n }\n }\n // check if space up left is available\n if(possibility2.getCell() >= 0 && possibility2.getRow() >= 0) {\n Position goodMove = validMovesHelper(move, possibility2, \"UL\");\n if(goodMove != null) {\n goodMoves.add(goodMove);\n }\n }\n\n // check if space down left is available\n if(possibility3.getCell() >= 0 && possibility3.getRow() < 8) {\n Position goodMove = validMovesHelper(move, possibility3, \"DL\");\n if(goodMove != null) {\n goodMoves.add(goodMove);\n }\n }\n\n // check if space down right is available\n if(possibility4.getCell() < 8 && possibility4.getRow() < 8) {\n Position goodMove = validMovesHelper(move, possibility4, \"DR\");\n if(goodMove != null) {\n goodMoves.add(goodMove);\n }\n }\n }\n // return the moves that are possible\n return goodMoves;\n }", "title": "" }, { "docid": "43ec77d3490760c30598966cff141e8b", "score": "0.5684398", "text": "@Test\n\tpublic void testValidMoveGeneral() {\n\t\tassertEquals(MoveResult.OK, game.makeMove(makeCoordinate(1, 2), makeCoordinate(2, 1)));\n\t\tassertEquals(MoveResult.OK, game.makeMove(makeCoordinate(1, 2), makeCoordinate(2, 1)));\n\t\tassertEquals(MoveResult.OK, game.makeMove(makeCoordinate(1, 4), makeCoordinate(2, 5)));\n\t\tassertEquals(MoveResult.OK, game.makeMove(makeCoordinate(1, 4), makeCoordinate(2, 5)));\n\t\t\n\t\t// Move horizontally\n\t\tassertEquals(MoveResult.OK, game.makeMove(makeCoordinate(1, 3), makeCoordinate(1, 2))); // RED\n\t\tassertEquals(MoveResult.OK, game.makeMove(makeCoordinate(1, 3), makeCoordinate(1, 2))); // BLACK\n\t\tassertEquals(MoveResult.OK, game.makeMove(makeCoordinate(1, 2), makeCoordinate(1, 3))); // RED\n\t\tassertEquals(MoveResult.OK, game.makeMove(makeCoordinate(1, 2), makeCoordinate(1, 3))); // BLACK\n\t\tassertEquals(MoveResult.OK, game.makeMove(makeCoordinate(1, 3), makeCoordinate(1, 4))); // RED\n\t\tassertEquals(MoveResult.OK, game.makeMove(makeCoordinate(1, 3), makeCoordinate(1, 4))); // BLACK\n\t\tassertEquals(MoveResult.OK, game.makeMove(makeCoordinate(1, 4), makeCoordinate(1, 3))); // RED\n\t\tassertEquals(MoveResult.OK, game.makeMove(makeCoordinate(1, 4), makeCoordinate(1, 3))); // BLACK\n\t}", "title": "" }, { "docid": "b24dd2f68feb4742c7a8701b6195a25d", "score": "0.5683545", "text": "void checkMoveIsLegal(VerifyMove verifyMove) {\n List<Operation> expectedOperations = getExpectedOperations(verifyMove);\n List<Operation> lastMove = verifyMove.getLastMove();\n check(expectedOperations.equals(lastMove), expectedOperations, lastMove);\n \n if (verifyMove.getLastState().isEmpty()) { // Check that the first move is by the red player\n check(verifyMove.getLastMovePlayerId().equals(verifyMove.getPlayerIds().get(0)));\n }\n }", "title": "" }, { "docid": "c804e9df2ee19cf7ac3141d56014b583", "score": "0.5676512", "text": "private Position validMovesHelper(Move move, Position possibility, String direction){\n\n // get the values for the move move\n Position start = move.getStart();\n Row startRow = gameBoard[start.getRow()];\n Space startSpace = startRow.row[start.getCell()];\n\n // get the values for the possible move\n Row possibilityRow = gameBoard[possibility.getRow()];\n Space possibilitySpace = possibilityRow.row[possibility.getCell()];\n\n // if the possible space has a piece\n if (possibilitySpace.getPiece() != null) {\n // if the color of the pieces are different\n if (possibilitySpace.getPiece().getColor() != startSpace.getPiece().getColor()) {\n Position possibility3 = null;\n switch (direction) {\n // check if the jump is possible for up right space\n case \"UR\":\n if (possibility.getCell() < 7 && possibility.getRow() >= 1) {\n possibility3 = new Position(possibility.getRow() - 1, possibility.getCell() + 1);\n }\n break;\n // check if the jump is possible for up left space\n case \"UL\":\n if (possibility.getCell() >= 1 && possibility.getRow() >= 1) {\n possibility3 = new Position(possibility.getRow() - 1, possibility.getCell() - 1);\n }\n break;\n // check if the jump is possible for down left space\n case \"DL\":\n if (possibility.getCell() >= 1 && possibility.getRow() < 7) {\n possibility3 = new Position(possibility.getRow() + 1, possibility.getCell() - 1);\n }\n break;\n // check if the jump is possible for down right space\n case \"DR\":\n if (possibility.getCell() < 7 && possibility.getRow() < 7) {\n possibility3 = new Position(possibility.getRow() + 1, possibility.getCell() + 1);\n }\n break;\n }\n // if none of the jumps are valid\n if (possibility3 == null) {\n return null;\n }\n\n //get the values for the possible jump\n Row possibility3Row = gameBoard[possibility3.getRow()];\n Space possibility3Space = possibility3Row.row[possibility3.getCell()];\n\n // checks if a piece is in the possible space\n if (possibility3Space.getPiece() == null) { return possibility3; }\n else { return null; }\n }\n else { return null; }\n } else{\n if (!moveAllowed) { return null; }\n else { return possibility; }\n }\n }", "title": "" }, { "docid": "cac6189a4f6dde40e664390082666a67", "score": "0.566534", "text": "public boolean isValid() {\r\n\t\treturn (this.size() == 3 && (this.getCard(1).getRank() == this.getCard(2).getRank()) && (this.getCard(0).getRank() == this.getCard(1).getRank())) ;\r\n\t}", "title": "" }, { "docid": "37ddb63035c2d46d39e309da73ca1e42", "score": "0.5658172", "text": "@Override\n public boolean isValidMove(int vertical, int horizontal) {\n \n /*create Bishop object and the Rook object containg the exact same \n information as the current Queen object*/\n Bishop b = new Bishop(super.b, super.colour, super.vertical,\n super.horizontal);\n Rook r = new Rook(super.b, super.colour, super.vertical,\n super.horizontal);\n\n //checks if the move is the valid move of either Bishop or Rook\n if (r.isValidMove(vertical, horizontal)\n || b.isValidMove(vertical, horizontal)) {\n return true;\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "9a37df7ed116bab41f3ebd9dd51aa19a", "score": "0.5651625", "text": "private boolean playerMadeMove(Location from, Location to)\r\n {\n\r\n int fromX = from.mX;\r\n int fromY = from.mY;\r\n\r\n int toX = to.mX;\r\n int toY = to.mY;\r\n\r\n boolean moved = false;\r\n\r\n if (mPlayerMoves == null)\r\n {\r\n return false;\r\n }\r\n\r\n for(Location l : mPlayerMoves)\r\n {\r\n\r\n if(l.mX == toX && l.mY == toY)\r\n {\r\n\r\n byte pc = mCurrentScenario[fromX][fromY];\r\n byte attacker = (byte)(abs(pc)/pc);\r\n switch (pc)\r\n {\r\n case PAWN:\r\n if(toY == 0)\r\n {\r\n pawnPromotion = true;\r\n pawnColumn = new byte[9];\r\n mCurrentScenario[fromX][fromY] = BLANK;\r\n System.arraycopy(mCurrentScenario[fromX], 0, pawnColumn, 0, 8);\r\n mCurrentScenario[fromX][0] = KNIGHT;\r\n mCurrentScenario[fromX][1] = BISHOP;\r\n mCurrentScenario[fromX][2] = ROOK;\r\n mCurrentScenario[fromX][3] = QUEEN;\r\n mGameBoard.updateBoard(mCurrentScenario);\r\n pawnColumn[8] = (byte)toX;\r\n for(int i = 0; i < 4; i++)\r\n {\r\n mGameBoard.getBoard()[fromX][i].setBackground(GREEN);\r\n }\r\n\r\n return false;\r\n }\r\n break;\r\n\r\n case KING:\r\n if(abs(toX-fromX) == 2)\r\n {\r\n // mCurrentScenario = Castle(fromX, fromY, toX, toY, mCurrentScenario);\r\n // // mPlayerMoves.clear();\r\n // // mGameBoard.updateBoard(mCurrentScenario);\r\n // // //start my move\r\n // // myTurn();\r\n // // return true;\r\n }else{\r\n mCurrentScenario[8][(attacker+1)/2] = 1;\r\n }\r\n break;\r\n\r\n case ROOK:\r\n if(mCurrentScenario[8][(attacker+1)/2] % 3 != 0 && fromX == 0)//left Rook hasn't moved && is moving now\r\n {\r\n mCurrentScenario[8][(attacker+1)/2] *= 3;//moved\r\n System.out.println(TAG + \"playerMadeMove: LR\" + attacker);\r\n }else if(mCurrentScenario[8][(attacker+1)/2] % 5 != 0 && fromX == 7)//R hasn't moved && is moving now\r\n {\r\n mCurrentScenario[8][(attacker+1)/2] *= 5;//moved\r\n System.out.println(TAG + \"playerMadeMove: RR\" + attacker);\r\n }\r\n break;\r\n }\r\n mHistory.add(mScenarioHandler.getNew(mCurrentScenario));\r\n mCurrentScenario = mScenarioHandler.movePiece(fromX, fromY, toX, toY, mCurrentScenario);\r\n\r\n moved = true;\r\n break;\r\n\r\n }\r\n }\r\n\r\n if (moved)\r\n {\r\n mPlayerMoves.clear();\r\n mGameBoard.updateBoard(mCurrentScenario);\r\n\r\n //start my move\r\n myTurn();\r\n return true;\r\n }\r\n\r\n\r\n ////System.out.println(TAG + \"the move: player's \" + pc.getType().toString() + \" from (\"\r\n // + fromX + \", \" + fromY + \") to (\" + toX + \", \" + toY + \")\" + \" is not a valid move!\" );\r\n mPlayerMoves.clear();\r\n return false;\r\n }", "title": "" }, { "docid": "a2cfc695a6c31d194a77df5eec3ec0b0", "score": "0.5646715", "text": "@Override\n void calculatePossibleMoves() {\n deleteMoveList();\n\n //CHECK ONE CELL ABOVE IF IT´S INSIDE THE PLAY AREA\n move(0, -1);\n\n //CHECK ONE CELL TO THE RIGHT IF IT´S INSIDE THE PLAY AREA\n move(1, 0);\n\n //CHECK ONE CELL UNDER IF IT´S INSIDE THE PLAY AREA\n move(0, 1);\n\n //CHECK ONE CELL TO THE LEFT IF IT´S INSIDE THE PLAY AREA\n move(-1, 0);\n\n }", "title": "" }, { "docid": "0d42e8402a86d8d2ff61617dd35f5dbe", "score": "0.56461746", "text": "@Test\n\tpublic void walkTest3() {\n\t\tassertEquals(JunitTester.isWalkLegalTest(capBoardRed, 0, 1, 1, 2), 1);\n\t}", "title": "" }, { "docid": "2284630c29e0ed7d99d5d4bc18f4dc3c", "score": "0.5645528", "text": "private boolean isValidMove(int x, int y, int newX, int newY) {\n return 0 <= x && x < board.length \n && 0 <= y && y < board[x].length\n && 0 <= newX && newX < board.length \n && 0 <= newY && newY < board[newX].length\n && board[newX][newY] == EMPTY\n && board[(x + newX) / 2][(y + newY) / 2] == OCCUPIED\n && board[x][y] == OCCUPIED;\n \n }", "title": "" }, { "docid": "a63deb2d0d4d4f78083c0889ceb19691", "score": "0.56364435", "text": "@Override\n\tpublic boolean validMove ( int x, int y, int color ) {\n\t\t\tif (x >= 0 && x < gameBoard_.BOARD_SIZE &&\n\t\t\t\t\ty >= 0 && y < gameBoard_.BOARD_SIZE\n\t\t\t\t\t&& gameBoard_.check(0,x,y)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\telse { return false;} //if we reach this else, the move is invalid. \n\t\t}", "title": "" }, { "docid": "4b6e41ef62342f8d6362f597a17f3446", "score": "0.5629148", "text": "public void checkValidMoves(int roll){\n\t\tSquare curSquare = getCurrentActor().getSquare();\n\t\tint coordinates[] = getSquareCoordinates(curSquare);\n\t\tvalidMoves = pathFinder.checkValidMove(roll, curSquare, coordinates);\n\t}", "title": "" }, { "docid": "dea92544b21cb2aff39d0017b71c12ed", "score": "0.5617214", "text": "@Test\r\n\tvoid tooManysteps() {\n\t\tBoard board = new Board(25, 24, names, weapons, rooms);\r\n\t\tUser user = new User(board.getCharacterPieces().get(0)); // this gives us miss scarlett just -1 from piece id\r\n\t\tint numSteps = 2; //this is what they rolled on dice\r\n\t\tString userInput = \"N5\";\r\n\t\tCustomMove customMove;\r\n\t\t\r\n\t\t\r\n\t\tcustomMove = new CustomMove(user, numSteps, userInput); // this is correct syntax so should be accepted\t\t\r\n\t\t\r\n\t\t\r\n\t\tassertFalse(board.execute(customMove)); //this is a valid move so should return true;\r\n\t\t//board.printBoard();\r\n\t}", "title": "" }, { "docid": "f5771345b1c9765529746eff4100f00b", "score": "0.5606859", "text": "@Test\n public void testPerformIllegalMoveWithStapleUpperWillBeStillBeThere(){\n master.performMove(new Move(1,0,0,1),1);\n master.performMove(new Move(0,0,0,2),1);\n master.performMove(new Move(0,1,0,3),1);\n master.performMove(new Move(1,5,0,3),2);\n\n Point testPoint = new Point(0,3);\n assertFalse(master.board.isStillPlaceOnField(testPoint));\n assertEquals(2,master.board.whichTeamIsOnTop(testPoint));\n\n //illegal Move from team One\n master.performMove(new Move(-1,-1,-1,-1),1);\n\n assertTrue(master.board.isStillPlaceOnField(testPoint));\n assertEquals(2,master.board.whichTeamIsOnTop(testPoint));\n assertFalse(master.board.isExitingField(new Point(1,0)));\n assertFalse(master.board.isExitingField(new Point(2,0)));\n assertFalse(master.board.isExitingField(new Point(3,0)));\n assertFalse(master.board.isExitingField(new Point(4,0)));\n\n assertEquals(2,master.roundMeter.getValue());\n master.nextPlayer();\n assertEquals(3,master.roundMeter.getValue());\n master.nextPlayer();\n assertEquals(2,master.roundMeter.getValue());\n }", "title": "" }, { "docid": "0bb5c79c4b0d2c8bc2cf5c5305272731", "score": "0.56040084", "text": "@Override\n public void validate() throws WrongStateException {\n \tfor (int index = 0; index < filteredStateCodes.length; index++) {\n if (filteredStateCodes[index].length() < 2 || filteredStateCodes[index].length() > 3)\n throw new WrongStateException(\"Codice dello stato non valido, ammessi solo valori alfanumerici di 2 o 3 caratteri!\");\n \t}\n }", "title": "" }, { "docid": "116dcf06ef1891746f96650098defca1", "score": "0.56024265", "text": "private boolean validMove(int xi, int yi, int xf, int yf){\n if (pieces[xi][yi].isKing()){\n return (xi - xf == 1 && yi - yf == -1) || (xi - xf == -1 && yi - yf == -1) || (xi - xf == 1 && yi - yf == 1) || \n (xi - xf == -1 && yi - yf == 1);\n }\n else{\n if (currentTurn == 0){\n return ((xi - xf == 1 && yi - yf == -1) || (xi - xf == -1 && yi - yf == -1));\n }\n if (currentTurn == 1){\n return (xi - xf == 1 && yi - yf == 1) || (xi - xf == -1 && yi - yf == 1);\n }\n }\n return false;\n }", "title": "" }, { "docid": "37cb4f3e55816e283958135d6d2a53e0", "score": "0.5593551", "text": "public boolean validateMove(Player player, String move) {\n\t\t// Verify that the input is of the expected format\n\t\t/*if(!validateInput(move)) {\n\t\t\tlogger.info(\"Move \" + move + \" has an invalid format\");\n\t\t\t// If it fails, don't need to broadcast as it was just a user typo\n\t\t\treturn false;\n\t\t}*/\n\n\t\t// If a player enters 'Done', they've decided to end their turn\n\t\tif(move.trim().equalsIgnoreCase(DONE_STR)) {\n\t\t\t// Increment the move count for this player \n\t\t\tplayer.setNumMoves(player.getNumMoves() + 1);\n\t\t\t// Broadcast this move\n\t\t\tbroadcastMove(player, END_TURN_STR);\n\t\t\t// Always a valid move\n\t\t\treturn true;\n\t\t}\n\n\t\t// Options for moving:\n\t\t//\t1. Move through one of the doors to the hallway (if it is not blocked). \n\t\t//\t2. Take a secret passage to a diagonally opposite room (if there is one) and make a\n\t\t//\tsuggestion.\n\t\t// \t3. If you are in a hallway, you must move to one of the two rooms accessible from that hallway and make a suggestion.\n\t\t//\t4. If you were moved to the room by another player making a suggestion, you may, if\n\t\t//\tyou wish, stay in that room and make a suggestion. Otherwise you may move\n\t\t//\tthrough a doorway or take a secret passage as described above.\n\t\t// Other rules:\n\t\t// \t1. If all of the exits are blocked (i.e., there are people in all of the hallways) and you are not in\n\t\t//\tone of the corner rooms (with a secret passage), and you weren’t moved to the room by\n\t\t//\tanother player making a suggestion, you lose your turn (except for maybe making an\n\t\t//\taccusation).\n\t\t// \t2. Whenever a suggestion is made, the room must be the room the one making the suggestion\n\t\t//\tis currently in. The suspect in the suggestion is moved to the room in the suggestion. \n\n\t\tif(move.startsWith(Move.MOVE_STR)) {\n\t\t\t// Split the move string by the separator and extract the values\n\t\t\tString[] values = move.split(Move.MOVE_SEP);\n\t\t\tString endLoc = values[1];\n\t\t\tint endLocX = Integer.parseInt(endLoc.split(\",\")[0]);\n\t\t\tint endLocY = Integer.parseInt(endLoc.split(\",\")[1]);\n\t\t\tlogger.info(\"Move: \" + move);\n\t\t\tlogger.info(\"endLocX: \" + endLocX);\n\t\t\tlogger.info(\"endLocY: \" + endLocY);\n\t\t\t\n\t\t\tif(endLocX > 4 || endLocX < 0 || endLocY > 4 || endLocY < 0) {\n\t\t\t\tlogger.info(\"Player \" + player.getCharacterName().getCharacterName() + \"'s move attempt went out of bounds. Invalid move.\");\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tBoardLocationEntity destLocEntity = board[endLocX][endLocY];\n\t\t\tlogger.info(\"destLocEntity: \" + destLocEntity.getName());\n\n\t\t\tlogger.info(\"Received movement: \" + move + \" from player \" + player.getCharacterName());\n\t\t\t/*\n\t\t\t * First, get the current location of this player, which will be the most important info\n\t\t\t * when determining if the given move is valid.\n\t\t\t */\n\t\t\tLocation currentLoc = player.getLocation();\n\t\t\tint currentX = currentLoc.getX();\n\t\t\tint currentY = currentLoc.getY();\n\t\t\tBoardLocationEntity currentLocEntity = board[currentX][currentY];\n\n\t\t\t/*\n\t\t\t * NOTE: If the currentLocEntity object is an instance of a Room, we can now check whether\n\t\t\t * it contains a secret passageway.\n\t\t\t * This code here is for example purposes only - will need to check whether a room contains \n\t\t\t * a secret passageway if a player attempts to make a diagonal move from one of the corner rooms.\n\t\t\t */\n\t\t\tif(currentLocEntity instanceof Room) {\n\t\t\t\tRoom room = (Room) currentLocEntity;\n\t\t\t\tboolean hasSecretPassage = room.hasSecretPassage();\n\t\t\t\tif(hasSecretPassage) {\n\t\t\t\t\tlogger.info(room.getName() + \" has a secret passage\");\n\t\t\t\t} else {\n\t\t\t\t\tlogger.info(room.getName() + \" doesn't have a secret passage\");\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tlogger.info(currentLocEntity + \" is not an instance of Room\");\n\t\t\t}\n\n\t\t\t/*\n\t\t\t * If this is the player's first move, it must be to the hallway adjacent to their home square\n\t\t\t */\n\t\t\tif(player.getNumMoves() == 0) {\n\t\t\t\t// If the end location isn't a hallway and they're not currently in a hallway, it's an invalid move\n\t\t\t\tif(!(destLocEntity instanceof Hallway) && !(currentLocEntity instanceof Hallway)) {\n\t\t\t\t\tlogger.info(\"Player \" + player.getCharacterName().getCharacterName() + \"'s first move attempt was not to a hallway. Invalid move.\");\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t/*\n\t\t\t * Test to see if a move goes out of bounds\n\t\t\t */\n\n\n\t\t\t/*\n\t\t\t * Test to see if the move goes into an invalid location \n\t\t\t */\n\t\t\tif(destLocEntity instanceof InvalidLocation) {\n\t\t\t\tlogger.info(\"Player \" + player.getCharacterName().getCharacterName() + \"'s move attempt went to an invalid location. Invalid move.\");\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\t/*\n\t\t\t * If the attempted move is to a hallway, the hallway cannot be occupied. General hallway check logic:\n\t\t\t */\n\t\t\tif(destLocEntity instanceof Hallway) {\n\t\t\t\tHallway hallway = (Hallway) destLocEntity;\n\t\t\t\t// If the hallway is occupied, the player can't move there\n\t\t\t\tif(hallway.isOccupied()) {\n\t\t\t\t\tlogger.info(\"Player \" + player.getCharacterName().getCharacterName() + \" attempted to move to a non-empty hallway.\");\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\n\t\t\t\t// If the hallway isn't occupied, it must be adjacent to the player's current location\n\t\t\t\tboolean isAdjacent = checkHallwayAdjacency(currentLoc, new Location(endLocX, endLocY));\n\t\t\t\tif(!isAdjacent) {\n\t\t\t\t\tlogger.info(\"Player \" + player.getCharacterName().getCharacterName() + \" attempted to move to a non-adjacent hallway.\");\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Increment the number of moves this player has made. This is necessary to ensure certain rules are enforced\n\t\t\tplayer.setNumMoves(player.getNumMoves() + 1);\n\n\t\t\t// Broadcast the move so each client can update their boards\n\t\t\tSystem.out.println(\"BEFORE\");\n\t\t\tbroadcastNewLocation(player, destLocEntity);\n\t\t\tSystem.out.println(\"AFTER\");\n\n\t\t\t// Update the Player's location\n\t\t\tplayer.setLocation(new Location(endLocX, endLocY));\n\n\t\t\t// The move was valid\n\t\t\treturn true;\n\t\t} else if(move.startsWith(Move.ACCUS_STR)) {\n\t\t\t// Split the move string by the separator and extract the values\n\t\t\tString[] values = move.split(Move.MOVE_SEP);\n\t\t\tString accusationCharacter = values[1];\n\t\t\tString accusationRoom = values[2];\n\t\t\tString accusationWeapon = values[3];\n\n\t\t\tlogger.info(\"Received accusation: \" + move + \" from player \" + player.getCharacterName());\n\n\t\t\t// Check the accuracy of the accusation\n\t\t\tString gameSolutionChar = gameSolution.getCharacterName().toString();\n\t\t\tString gameSolutionRoom = gameSolution.getRoomName().getRoomName();\n\t\t\tString gameSolutionWeap = gameSolution.getWeaponType().getWeapon();\n\t\t\tif(gameSolutionChar.equals(accusationCharacter) && gameSolutionRoom.equals(accusationRoom) && \n\t\t\t\t\tgameSolutionWeap.equals(accusationWeapon)) {\n\t\t\t\treturn true;\n\t\t\t} else {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t} else if(move.startsWith(Move.SUGGEST_STR)) {\n\t\t\t// Split the move string by the separator and extract the values\n\t\t\tString[] values = move.split(Move.MOVE_SEP);\n\t\t\tString character = values[1];\n\t\t\tString room = values[2];\n\t\t\tString weapon = values[3];\n\n\t\t\t// Save the suggestion parameters\n\t\t\trecentSuggestionChar = character;\n\t\t\trecentSuggestionRoom = room;\n\t\t\trecentSuggestionWeap = weapon;\n\n\t\t\tlogger.info(\"Received suggestion: \" + move + \" from player \" + player.getCharacterName());\n\t\t\tlogger.info(\"Character: \" + character);\n\t\t\tlogger.info(\"Room: \" + room);\n\t\t\tlogger.info(\"Weapon: \" + weapon);\n\n\t\t\t// The character who was suggested must be moved to the room that was suggested\n\t\t\t// Find the BoardLocationEntity on the board that corresponds to this room\n\t\t\tBoardLocationEntity suggestedRoomEntity = null;\n\t\t\tfor(int row = 0; row < BOARD_HEIGHT; row++) {\n\t\t\t\tfor(int col = 0; col < BOARD_WIDTH; col++) {\n\t\t\t\t\tBoardLocationEntity entity = board[row][col];\n\t\t\t\t\tif(entity.getName().equals(room)) {\n\t\t\t\t\t\tsuggestedRoomEntity = entity;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// If we didn't find the room, there was a typo in the input\n\t\t\tif(suggestedRoomEntity == null) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\t// Broadcast the new location of the character that was suggested so clients can update their boards\n\t\t\tbroadcastNewLocation(character, suggestedRoomEntity);\n\n\t\t\t// Turn on \"disprove suggestion\" mode, passing references to this game and the player who made the suggestion\n\t\t\tTurnEnforcement.turnOnDisproveSuggestionMode(this, player);\n\n\t\t\t// Send the static TurnEnforcement class a list of players that might need to disprove the suggestion\n\t\t\tArrayList<String> playersToDisprove = new ArrayList<>();\n\t\t\tfor(Player p : players) {\n\t\t\t\t// Everyone other than the player who made the suggestion may be asked to disprove it\n\t\t\t\tif(!p.getAbbreviation().equals(player.getAbbreviation())) {\n\t\t\t\t\tif(p.isActive()) {\n\t\t\t\t\t\tplayersToDisprove.add(p.getAbbreviation());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tTurnEnforcement.setPlayersToDisprove(playersToDisprove);\n\n\t\t\t// Broadcast the first player who should make a suggestion\n\t\t\tbroadcastDisproveSuggestion(playersToDisprove.get(0), move);\n\n\t\t\treturn true;\n\t\t} else if(move.startsWith(Move.DISPROVE_SUGGEST)) {\n\t\t\t// Split the move string by the separator and extract the values\n\t\t\tString[] values = move.split(Move.MOVE_SEP);\n\t\t\tString card = values[1];\n\n\t\t\tlogger.info(\"Received a disprove suggestion attempt \" + move + \" from player \" + player.getCharacterName());\n\t\t\tlogger.info(\"Card used to disprove: \" + card);\n\t\t} else {\n\t\t\tlogger.error(\"Didn't recognize the move \" + move + \" from \" + player.getCharacterName());\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}", "title": "" }, { "docid": "ae790a044d0ef4edf61051dd09e03ce9", "score": "0.5588644", "text": "boolean valid_move(int x_dest, int y_dest) {\n if (x_dest < 0 || x_dest > 8\n || y_dest < 0 || y_dest > 9) {\n return false;\n } else {\n\n if (y_dest == y) {\n for (int spots_x = Math.max(x_dest, x); spots_x < Math.max(x_dest, x); spots_x++) {\n // check if there are pieces in between on each spot\n if (g.is_occupied(spots_x, y) != \"free\") {\n return false;\n }\n }\n return true;\n } else if (x_dest == x) {\n for (int spots_y = Math.max(y_dest, y); spots_y < Math.max(y_dest, y); spots_y++) {\n // check if there are pieces in between on each spot\n if (g.is_occupied(x, spots_y) != \"free\") {\n return false;\n }\n }\n return true;\n } else {\n return false;\n }\n }\n }", "title": "" }, { "docid": "a673e359ed0b237dfb0c21ff33ccde19", "score": "0.5581274", "text": "@Test\n void shouldReturnMeldForJacksAround() {\n validateMeldAround(Jack, 4, 40, 60, 80);\n }", "title": "" }, { "docid": "cbb0c23e6d82b5f5336a41f07c991445", "score": "0.5579838", "text": "public boolean isValidMove(int x, int y){\n if((x >= 8) || (x < 0) || (y < 0) || (y >= 8)) { // if the coordinate is out of bound\n return false;\n } else if(board[x][y].getIsBombed()==true){ // if the coordinate has been used already\n System.out.println(\"The coordinate has been tried.\");\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "d302dfdaa68aaa70af7587c692f68243", "score": "0.55769086", "text": "private boolean isValidMove(int row, int col){\n\t\t//Move The Character to the space passed in if valid\n\t\tif (row <= maze.length - 1 && col <= maze[row].length - 1 && maze[row][col].getMapItem() == ' '){\n\t\t\tmaze[currentRow][currentCol].setMapItem('\\u0020');//Space\n\t\t\tmaze[currentRow][currentCol].setGoal(false);\n\n\t\t\tmaze[row][col].setMapItem('5');//Hero Char\t\n\t\t\tmaze[row][col].setGoal(true);\n\t\t\tSystem.out.println(\"Play new pos \" + maze[row][col]);\n\n\t\t\treturn true;\n\t\t}else{\t\t\t\n\t\t\tchar item = maze[row][col].getMapItem();\n\t\t\t//Pick up the Item if valid\n\t\t\tcheckItemFound(item, row, col);\t\t\t\n\t\t\treturn false; //Can't move\n\t\t}\n\t}", "title": "" }, { "docid": "b710ad1abfb5c19bc7e03556e5c8d370", "score": "0.5575089", "text": "boolean isValidMove(Position newPosition){\n if(newPosition.column == this.column || newPosition.row == this.row)\r\n return true;\r\n else\r\n return false;\r\n }", "title": "" }, { "docid": "6b6a94e180bfeef53bd1ae5ee41fa0c8", "score": "0.5571394", "text": "public boolean isValid() {\n // 17 clues need atleast for a unique solution\n if (clues < 17){\n return false;\n }else{\n if(validateBoard()){\n return true;\n }\n return false;\n }\n }", "title": "" }, { "docid": "d49103d40f27656c3925b368cc3b084b", "score": "0.55687284", "text": "private void checkRep() {\n assert board != null;\n assert jumps != null;\n assert steps != null;\n assert turn != null;\n\n // non-constant tests\n if (DEBUG) {\n // no non-king reds in blacks final row\n for (int i = 0; i < H_WIDTH; i++) {\n if (hasPieceAt(i + 1) && board[i].color == Color.RED)\n assert board[i].isKing;\n }\n\n // no non-king blacks in reds final row\n for (int i = getNumOfPlaces() - H_WIDTH; i < getNumOfPlaces(); i++) {\n if (hasPieceAt(i + 1) && board[i].color == Color.BLACK)\n assert board[i].isKing;\n }\n\n // moves seem correct\n for (Move move : getLegalMoves()) {\n assert board[move.getStart()] != null;\n assert board[move.getStart()].color == this.turn;\n assert board[move.getEnd()] == null;\n assert Math.abs(move.getStart() - move.getEnd()) <= WIDTH + 1;\n }\n }\n }", "title": "" }, { "docid": "af9c45a1f9dd81951d0de0d1d6072eee", "score": "0.5568418", "text": "public boolean validate(){\n if(this.n <= 0 || this.start == null || this.goal == null){\n return false;\n }else{\n // Validate the start and goal states.\n if(!start.isValid(n) || !goal.isValid(n)){\n return false;\n }\n }\n return true;\n }", "title": "" }, { "docid": "679eaa305f495eed102571ddd8eafa6c", "score": "0.5567247", "text": "@Test\n void shouldReturnMeldForKingsAround() {\n validateMeldAround(King, 8, 80, 120, 160);\n }", "title": "" }, { "docid": "9695ff7e5852ac14a3d0995f11edf9db", "score": "0.556548", "text": "public boolean isValidMove(Move m) {\n\t\tfor (Move move : possibleMoves) {\n\t\t\tif (m.equals(move))\n\t\t\t\treturn true;\n\t\t}\n\t\talertUser(\"Invalid move\");\n\t\treturn false;\n\t}", "title": "" }, { "docid": "2876bcc5f200bf697e8122a698df8ade", "score": "0.55526876", "text": "private boolean isMate(){\n return !(state.getPieces(currentPlayer.getColor()).stream().anyMatch(piece -> { //all pieces of current player\n ArrayList<Integer> moves = piece.getValidMoves();\n return (moves.stream().anyMatch(i -> { // validating all moves for a piece\n if(validateMove(new Move(piece.getPos(), i), currentPlayer)) {\n return true;\n }\n return false;\n }));\n }));\n }", "title": "" }, { "docid": "25f15d324cef909e7fad4a97b0dd20e7", "score": "0.5547614", "text": "public boolean checkmate() {\r\n\t\tif (!isInCheck(hasMove)) return false;\t\t\r\n\t\treturn !legalMoveExists();\r\n\t}", "title": "" }, { "docid": "2b66ecdf5f0a68b656a495a66cad13a7", "score": "0.554367", "text": "private void validate ()\n throws ValidationException {\n\n /*\n * Make sure we have all the pieces.\n */\n if (masterCuts == null) {\n\n final String MISSING_MASTER = \"The master key is missing.\";\n logger.error(MISSING_MASTER);\n throw new ValidationException(MISSING_MASTER);\n }\n else if (progressionSteps == null) {\n\n final String MISSING_PROGRESSION_STEPS = \"The progression steps are missing.\";\n logger.error(MISSING_PROGRESSION_STEPS);\n throw new ValidationException(MISSING_PROGRESSION_STEPS);\n }\n else if (progressionSequence == null) {\n\n final String MISSING_PROGRESSION_SEQUENCE = \"The progression sequence is missing.\";\n logger.error(MISSING_PROGRESSION_SEQUENCE);\n throw new ValidationException(MISSING_PROGRESSION_SEQUENCE);\n }\n\n /*\n * The MACS must be within range.\n */\n if (!validateMACS(macs)) {\n\n StringBuilder sb = new StringBuilder();\n sb.append(\"The MACS is out of range (\");\n sb.append(macs);\n sb.append(\") [\");\n sb.append(TotalPositionProgressionCriteria.MACS_MIN);\n sb.append(\", \");\n sb.append(TotalPositionProgressionCriteria.MACS_MAX);\n sb.append(\"].\");\n String errorMessage = sb.toString();\n logger.error(errorMessage);\n\n throw new ValidationException(errorMessage);\n }\n\n /*\n * The master key cuts must be within range.\n */\n if (!validateCutCount(masterCuts.length)) {\n\n StringBuilder sb = new StringBuilder();\n sb.append(\"The master key has an invalid number of cuts (\");\n sb.append(masterCuts.length);\n sb.append(\") [\");\n sb.append(TotalPositionProgressionCriteria.CUT_COUNT_MIN);\n sb.append(\", \");\n sb.append(TotalPositionProgressionCriteria.CUT_COUNT_MAX);\n sb.append(\"].\");\n String errorMessage = sb.toString();\n logger.error(errorMessage);\n\n throw new ValidationException(errorMessage);\n }\n\n /*\n * The starting depth must be within range.\n */\n if (!validateStartingDepth(startingDepth)) {\n\n StringBuilder sb = new StringBuilder();\n sb.append(\"The starting depth is out of range (\");\n sb.append(startingDepth);\n sb.append(\") [\");\n sb.append(TotalPositionProgressionCriteria.STARTING_DEPTH_MIN);\n sb.append(\", \");\n sb.append(TotalPositionProgressionCriteria.STARTING_DEPTH_MAX);\n sb.append(\"].\");\n String errorMessage = sb.toString();\n logger.error(errorMessage);\n\n throw new ValidationException(errorMessage);\n }\n\n /*\n * All the configs must have the same number of cuts.\n */\n for (int[] row : progressionSteps) {\n if (row.length != masterCuts.length) {\n\n StringBuilder sb = new StringBuilder();\n sb.append(\"The progression steps do not have the same number of cuts as the master key (\");\n sb.append(row.length);\n sb.append(\", \");\n sb.append(masterCuts.length);\n sb.append(\").\");\n String errorMessage = sb.toString();\n logger.error(errorMessage);\n throw new ValidationException(errorMessage);\n }\n }\n if (progressionSequence.length != masterCuts.length) {\n\n StringBuilder sb = new StringBuilder();\n sb.append(\"The progression sequence does not have the same number of cuts as the master key (\");\n sb.append(progressionSequence.length);\n sb.append(\", \");\n sb.append(masterCuts.length);\n sb.append(\").\");\n String errorMessage = sb.toString();\n logger.error(errorMessage);\n throw new ValidationException(errorMessage);\n }\n\n /*\n * The master key must not have any negative depths.\n */\n for (int col = 0; col < masterCuts.length; col++) {\n if (masterCuts[col] < 0) {\n\n StringBuilder sb = new StringBuilder();\n sb.append(\"The master key contains a negative depth (cut=\");\n sb.append(col);\n sb.append(\", depth=\");\n sb.append(masterCuts[col]);\n sb.append(\").\");\n String errorMessage = sb.toString();\n logger.error(errorMessage);\n throw new ValidationException(errorMessage);\n }\n }\n\n /*\n * Make sure that the progression steps do not contain any of the master key depths in the same column.\n */\n for (int col = 0; col < progressionSteps[0].length; col++) {\n\n // Count the number of times the progression step depth matches the master key depth.\n for (int row = 0; row < progressionSteps.length; row++) {\n\n // The progression step depth matches the master key depth, so bump the match count.\n if (progressionSteps[row][col] == masterCuts[col]) {\n\n StringBuilder sb = new StringBuilder();\n sb.append(\"The progression steps contain a master key depth (cut=\");\n sb.append(col);\n sb.append(\", step=\");\n sb.append(row);\n sb.append(\", depth=\");\n sb.append(progressionSteps[row][col]);\n sb.append(\").\");\n String errorMessage = sb.toString();\n logger.error(errorMessage);\n throw new ValidationException(errorMessage);\n }\n\n // Compare this row's depth to the previous rows' depths.\n for (int r2 = 0; r2 < row; r2++) {\n if (progressionSteps[r2][col] == progressionSteps[row][col]) {\n\n StringBuilder sb = new StringBuilder();\n sb.append(\"The progression steps contain duplicate depths (cut=\");\n sb.append(col);\n sb.append(\", step=\");\n sb.append(row);\n sb.append(\", depth=\");\n sb.append(progressionSteps[row][col]);\n sb.append(\").\");\n String errorMessage = sb.toString();\n logger.error(errorMessage);\n throw new ValidationException(errorMessage);\n }\n }\n }\n }\n\n /*\n * The progression sequence must contain exactly every position between 1 and the number of cuts.\n */\n for (int col = 0; col < progressionSequence.length; col++) {\n\n // The position is invalid.\n if ((progressionSequence[col] < 1) || (progressionSequence[col] > progressionSequence.length)) {\n\n StringBuilder sb = new StringBuilder();\n sb.append(\"The progression sequence contains an invalid position (cut=\");\n sb.append(col);\n sb.append(\", position=\");\n sb.append(progressionSequence[col]);\n sb.append(\").\");\n String errorMessage = sb.toString();\n logger.error(errorMessage);\n throw new ValidationException(errorMessage);\n }\n\n // The position is valid.\n else {\n\n // Loop through all previous positions, looking for a duplicate.\n for (int c2 = 0; c2 < col; c2++) {\n if (progressionSequence[col] == progressionSequence[c2]) {\n\n StringBuilder sb = new StringBuilder();\n sb.append(\"The progression sequence position is duplicated (cut=\");\n sb.append(col);\n sb.append(\", position=\");\n sb.append(progressionSequence[col]);\n sb.append(\").\");\n String errorMessage = sb.toString();\n logger.error(errorMessage);\n throw new ValidationException(errorMessage);\n }\n }\n }\n }\n }", "title": "" }, { "docid": "ccc77af6be7c6e89d4bc887729eac621", "score": "0.5538085", "text": "@Test\n\tpublic void testNorthStep() {\n\t\tboolean ret_val;\n\t\tret_val = CoffeeMaker2.move_north(3, 6);\n\t\tassertEquals(true, ret_val);\n\t}", "title": "" }, { "docid": "3062c99467aa7537b58ad0c4142c11b3", "score": "0.5537727", "text": "public static boolean isValidMove(String direction) {\n if (direction.equals(\"up\")){\n if (xY - 1 < 0) {\n return false;\n }\n return true;\n } else if(direction.equals(\"down\")){\n if (xY + 1 > 3) {\n return false;\n }\n return true;\n } else if (direction.equals(\"left\")){\n if (xX - 1 < 0) {\n return false;\n }\n return true;\n } else if (direction.equals(\"right\")){\n if (xX + 1 > 3) {\n return false;\n }\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "9ca58846af553dd6790e12613e955633", "score": "0.55369586", "text": "public boolean validateTournamentConditions(String command) {\n\t\t\n\t\tif(!(command.contains(\"-p\")&&command.contains(\"-m\")&&command.contains(\"-g\")&&command.contains(\"-d\"))) {\n\t\t\tphaseView.displayMessage(\"Tournament Command lacks 1 or more params\");\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif(!validateMapCommand(command)) return false;\n\t\t\n\t\tif(!validatePlayerCommand(command)) return false;\n\t\t\n\t\tif(!validateNumGames(command)) return false;\n\t\t\n\t\tif(!validateNumTurns(command)) return false;\n\t\t\n\t\t\n\t\t//Initialise Remaining variables before launching tournament\n\t\tplayerService.setBoolTournamentMode(true);\t\t\n\t\t\n\t\tthis.playerService.setTournamentController(this);\n\t\t\n\t\t\n\t\treturn true;\n\t}", "title": "" }, { "docid": "7f5ebfcb7c70dc67c0554f2d70ea1b8c", "score": "0.5534919", "text": "private boolean validMove(int currentX, int currentY, int x, int y) {\n if (!enableMultiCapture) {\n if (pieceAt(currentX, currentY).isKing() == false) {\n if (pieceAt(currentX, currentY).side() == 0) {\n if (currentX+2 == x && currentY+2 == y) {\n if (pieceAt(currentX + 1, currentY + 1) != null && pieceAt(currentX + 1, currentY + 1).side() != currentPlayer ) {\n enableMultiCapture = true;\n return true;\n }\n }\n if (currentX-2 == x && currentY+2 == y) {\n if (pieceAt(currentX - 1, currentY + 1) != null && pieceAt(currentX - 1, currentY + 1).side() != currentPlayer) {\n enableMultiCapture = true;\n return true;\n }\n } \n if ((currentX+1 == x && currentY+1 == y) || (currentX-1 == x && currentY+1 == y)) {\n return true;\n }\n if (pieceAt(x, y) != null) {\n return false; \n }\n }\n if (pieceAt(currentX, currentY).side() == 1) {\n if (currentX+2 == x && currentY-2 == y) {\n if (pieceAt(currentX + 1, currentY - 1) != null && pieceAt(currentX + 1, currentY - 1).side() != currentPlayer) {\n enableMultiCapture = true;\n return true;\n }\n }\n if (currentX-2 == x && currentY-2 == y) {\n if (pieceAt(currentX - 1, currentY - 1) != null && pieceAt(currentX - 1, currentY - 1).side() != currentPlayer) {\n enableMultiCapture = true;\n return true;\n }\n }\n if ((currentX-1 == x && currentY-1 == y) || (currentX+1 == x && currentY-1 == y)) {\n return true;\n }\n if (pieceAt(x, y) != null) {\n return false; \n }\n }\n }\n // for pieces that are kings\n if (pieceAt(currentX, currentY).isKing()) { \n if (currentX+2 == x && currentY+2 == y) {\n if (pieceAt(currentX + 1, currentY + 1) != null && pieceAt(currentX + 1, currentY + 1).side() != currentPlayer ) {\n enableMultiCapture = true;\n return true;\n }\n }\n if (currentX-2 == x && currentY+2 == y) {\n if (pieceAt(currentX - 1, currentY + 1) != null && pieceAt(currentX - 1, currentY + 1).side() != currentPlayer) {\n enableMultiCapture = true;\n return true;\n }\n } \n if ((currentX+1 == x && currentY+1 == y) || (currentX-1 == x && currentY+1 == y)) {\n return true;\n }\n if (pieceAt(x, y) != null) {\n return false; \n }\n if (currentX+2 == x && currentY-2 == y) {\n if (pieceAt(currentX + 1, currentY - 1) != null && pieceAt(currentX + 1, currentY - 1).side() != currentPlayer) {\n enableMultiCapture = true;\n return true;\n }\n }\n if (currentX-2 == x && currentY-2 == y) {\n if (pieceAt(currentX - 1, currentY - 1) != null && pieceAt(currentX - 1, currentY - 1).side() != currentPlayer) {\n enableMultiCapture = true;\n return true;\n }\n }\n if ((currentX-1 == x && currentY-1 == y) || (currentX+1 == x && currentY-1 == y)) {\n return true;\n }\n if (pieceAt(x, y) != null) {\n return false; \n }\n }\n\n return false;\n\n\n }\n\n\n if (enableMultiCapture) {\n \n if (pieceAt(currentX, currentY).isKing() == false) {\n if (pieceAt(currentX, currentY).side() == 0) {\n if (currentX+2 == x && currentY+2 == y) {\n if (pieceAt(currentX + 1, currentY + 1) != null && pieceAt(currentX + 1, currentY + 1).side() != currentPlayer ) {\n pieceAt(currentX, currentY).doneCapturing();\n return true;\n }\n }\n if (currentX-2 == x && currentY+2 == y) {\n if (pieceAt(currentX - 1, currentY + 1) != null && pieceAt(currentX - 1, currentY + 1).side() != currentPlayer) {\n pieceAt(currentX, currentY).doneCapturing();\n return true;\n }\n } \n \n if (pieceAt(x, y) != null) {\n return false; \n }\n }\n if (pieceAt(currentX, currentY).side() == 1) {\n if (currentX+2 == x && currentY-2 == y) {\n if (pieceAt(currentX + 1, currentY - 1) != null && pieceAt(currentX + 1, currentY - 1).side() != currentPlayer) {\n pieceAt(currentX, currentY).doneCapturing();\n return true;\n }\n }\n if (currentX-2 == x && currentY-2 == y) {\n if (pieceAt(currentX - 1, currentY - 1) != null && pieceAt(currentX - 1, currentY - 1).side() != currentPlayer) {\n pieceAt(currentX, currentY).doneCapturing();\n return true;\n }\n }\n \n if (pieceAt(x, y) != null) {\n return false; \n }\n }\n return false;\n }\n // for pieces that are kings\n if (pieceAt(currentX, currentY).isKing()) { \n if (currentX+2 == x && currentY+2 == y) {\n if (pieceAt(currentX + 1, currentY + 1) != null && pieceAt(currentX + 1, currentY + 1).side() != currentPlayer ) {\n pieceAt(currentX, currentY).doneCapturing();\n return true;\n }\n }\n if (currentX-2 == x && currentY+2 == y) {\n if (pieceAt(currentX - 1, currentY + 1) != null && pieceAt(currentX - 1, currentY + 1).side() != currentPlayer) {\n pieceAt(currentX, currentY).doneCapturing();\n return true;\n }\n } \n \n if (pieceAt(x, y) != null) {\n return false; \n }\n if (currentX+2 == x && currentY-2 == y) {\n if (pieceAt(currentX + 1, currentY - 1) != null && pieceAt(currentX + 1, currentY - 1).side() != currentPlayer) {\n pieceAt(currentX, currentY).doneCapturing();\n return true;\n }\n }\n if (currentX-2 == x && currentY-2 == y) {\n if (pieceAt(currentX - 1, currentY - 1) != null && pieceAt(currentX - 1, currentY - 1).side() != currentPlayer) {\n pieceAt(currentX, currentY).doneCapturing();\n return true;\n }\n }\n \n if (pieceAt(x, y) != null) {\n return false; \n }\n }\n enableMultiCapture = false;\n return false; \n \n }\n\n return false; \n }", "title": "" }, { "docid": "e45ebaa0981a5d5ea83643a97c3abdd5", "score": "0.55252606", "text": "private boolean invalidMove(){\n for(int i =-1; i<=1;i++){\n for(int j =-1;j<=1;j++){\n if(getOneObjectAtOffset(i*width/2, j*height/2, Obstacle.class)!=null){\n return true;\n } \n } \n }\n return false;\n }", "title": "" }, { "docid": "ebd3db06c3f097724c5b9daf85b9a2f1", "score": "0.552217", "text": "@Test\n\tpublic void testVerticalShipInMiddle() {\n\t\tmyIntelligentDecisionMaker = new DecisionMaker(AILevel.INTELLIGENT_MODE, null);\n\t\t\n\t\tHashMap<String, Vector<Point>> map = new HashMap<>();\n\t\tmap.put(\"Submarine\", new Vector<Point>());\n\t\tmap.get(\"Submarine\").add(new Point(6,3));\n\t\tmap.get(\"Submarine\").add(new Point(6,4));\n\t\tmyIntelligentDecisionMaker.setHashMap(map);\n\t\t\n\t\tboolean valid;\n\t\tif(myIntelligentDecisionMaker.nextMove().equals(new Point(6,2)) || \n\t\t\t\tmyIntelligentDecisionMaker.nextMove().equals(new Point(6,5))) {\n\t\t\tvalid = true;\n\t\t}\n\t\telse {\n\t\t\tvalid = false;\n\t\t}\n\t\tassertTrue(\"Next guess should be above or below\", valid);\n\t}", "title": "" }, { "docid": "0862140714d31c6f4a65b94f1b355e26", "score": "0.55199", "text": "private static boolean GetUserInput()\r\n {\r\n int oldRow;\r\n int oldColumn;\r\n int newRow;\r\n int newColumn;\r\n int moveType;\r\n int rowChange;\r\n int columnChange;\r\n int direction = 0;\r\n\r\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\r\n\r\n try\r\n {\r\n System.out.println(\"Row of the stone you want to move:\");\r\n oldRow = Integer.parseInt(reader.readLine());\r\n System.out.println(\"Column of the stone you want to move:\");\r\n oldColumn = Integer.parseInt(reader.readLine());\r\n System.out.println(\"Row you want to move the stone to:\");\r\n newRow = Integer.parseInt(reader.readLine());\r\n System.out.println(\"Column you want to move the stone to:\");\r\n newColumn = Integer.parseInt(reader.readLine());\r\n System.out.println(\"Type of your move (0: Forward Attack, 1: Reverse Attack, 2: Move without an attack\");\r\n moveType = Integer.parseInt(reader.readLine());\r\n }\r\n catch(NumberFormatException | IOException e)\r\n {\r\n System.out.println(\"Wrong input, please only type in numbers\");\r\n return false;\r\n }\r\n\r\n rowChange = newRow - oldRow;\r\n columnChange = newColumn - oldColumn;\r\n\r\n if(rowChange == -1 && columnChange == 0) direction=1;\r\n else if(rowChange == -1 && columnChange == 1) direction=2;\r\n else if(rowChange == 0 && columnChange == 1) direction=3;\r\n else if(rowChange == 1 && columnChange == 1) direction=4;\r\n else if(rowChange == 1 && columnChange == 0) direction=5;\r\n else if(rowChange == 1 && columnChange == -1) direction=6;\r\n else if(rowChange == 0 && columnChange == -1) direction=7;\r\n else if(rowChange == -1 && columnChange == -1) direction=8;\r\n\r\n Move userMove = new Move(oldRow,oldColumn,direction);\r\n Attack userAttack = new Attack(oldRow,oldColumn,direction,moveType);\r\n\r\n\r\n // if(CheckIfInList(2,3,3)){ //give user input\r\n // System.out.println(\"Valid input\");\r\n // }else System.out.println(\"Invalid input\");\r\n\r\n if(!possibleAttack.isEmpty() && possibleAttack.contains(userAttack)){\r\n userInput[0] = oldRow;\r\n userInput[1] = oldColumn;\r\n userInput[2] = newRow;\r\n userInput[3] = newColumn;\r\n userInput[4] = moveType;\r\n userInput[5] = direction;\r\n System.out.println(\"The chosen move is possible.\");\r\n return true;\r\n }else if(possibleAttack.isEmpty() && possibleMoves.contains(userMove))\r\n {\r\n userInput[0] = oldRow;\r\n userInput[1] = oldColumn;\r\n userInput[2] = newRow;\r\n userInput[3] = newColumn;\r\n userInput[4] = moveType;\r\n userInput[5] = direction;\r\n System.out.println(\"The chosen move is possible.\");\r\n return true;\r\n }\r\n\r\n System.out.println(\"The chosen move is not possible.\");\r\n return false;\r\n\r\n\r\n }", "title": "" }, { "docid": "a5482771fc30fdc8cfe8035124fc3bfc", "score": "0.55150396", "text": "public static int validateCommand(String commandToCheck){\n\n int validateResult = constants.VALID_SUCCESSFUL;\n int i=0, j=0;\n String inputShape = \"\";\n\n\n String[] stringElements = commandToCheck.split(constants.DELIMETER);\n ArrayList<Integer> intElements = new ArrayList<Integer>();\n inputShape = stringElements[0];\n for (j = 1; j < stringElements.length ; ++j){\n intElements.add(Integer.parseInt(stringElements[j]));\n }\n\n switch (inputShape) {\n\n case \"R\":\n case \"r\":\n\n //rectangle checks: number of string sides is correct, and the length of the sides is as per the assignment request\n if (intElements.size() != 2) validateResult = constants.VALID_ERROR_WRONG_NO_SIDES;\n for (i = 0; i < intElements.size(); i++) \n if (intElements.get(i) < constants.RECTANGLE_MIN_SIDE_SIZE || intElements.get(i) > constants.RECTANGLE_MAX_SIDE_SIZE) \n validateResult = constants.VALID_ERROR_SIDE_SIZE;\n\n break;\n\n case \"T\":\n case \"t\":\n\n //triangle checks: number of string sides is correct, and the length of the sides is as per the assignment request\n //also checks whether the given sizes can actualy form a triangle\n if (intElements.size() != 3) validateResult = constants.VALID_ERROR_WRONG_NO_SIDES;\n for (i = 0; i < intElements.size(); i++)\n if (intElements.get(i) < constants.TRIANGLE_MIN_SIDE_SIZE || intElements.get(i) > constants.TRIANGLE_MAX_SIDE_SIZE) \n validateResult = constants.VALID_ERROR_SIDE_SIZE;\n if (intElements.get(0) >= intElements.get(1) + intElements.get(2)) validateResult = constants.VALID_ERROR_NOT_TRIANGLE;\n if (intElements.get(1) >= intElements.get(0) + intElements.get(2)) validateResult = constants.VALID_ERROR_NOT_TRIANGLE;\n if (intElements.get(2) >= intElements.get(0) + intElements.get(1)) validateResult = constants.VALID_ERROR_NOT_TRIANGLE;\n\n break;\n\n default:\n\n //shape unrecognised\n validateResult = constants.VALID_ERROR_COMMAND_UNRECOGNISED;\n\n break;\n\n }\n\n return(validateResult);\n }", "title": "" }, { "docid": "29c948b095325409767a21da30e87fe4", "score": "0.5514512", "text": "@Override\r\n public boolean validMove(int x, int y, boolean check, boolean color) {\r\n int validX = Math.abs(xPosition - x);\r\n int validY = Math.abs(yPosition - y);\r\n if(Board.turn() == this.color) {\r\n if(check) {\r\n if (this.color != color)\r\n return ((validX==1 && validY==2) || (validX==2 && validY==1) ? true : false);\r\n return false;\r\n }\r\n return ((validX==1 && validY==2) || (validX==2 && validY==1) ? true : false);\r\n }\r\n return false;\r\n }", "title": "" }, { "docid": "3a16c0680897dfe6fd9f515246780540", "score": "0.5510285", "text": "public void testMakeMove() {\n System.out.println(\"makeMove\");\n new ResizeBoardAction(model, frame, 5, 5).actionPerformed(null);\n model.cheatLayout();\n model.makeMove(0, 0, false, false); // Wrong guess\n assertEquals(Direction.SOUTH_EAST, model.getHint());\n assertEquals(Hurkle.EMPTY_CLEAR, (Hurkle) model.getValueAt(0, 0));\n assertEquals(1, model.getPlayerGuesses());\n assertEquals(false, model.getIllegalMove());\n model.makeMove(0, 0, false, false); // Illegal guess\n assertEquals(true, model.getIllegalMove());\n model.makeMove(1, 1, false, false); // Correct guess\n assertEquals(true, model.getPlayerWon());\n assertEquals(Hurkle.HURKLE, (Hurkle) model.getValueAt(1, 1));\n for (int row = 0; row < model.getRowCount(); row++)\n {\n // Loop through every column\n for (int col = 0; col < model.getColumnCount(); col++)\n {\n Hurkle hurkl = (Hurkle) model.getValueAt(row, col);\n if (row == 1 && col == 1) {\n assertEquals(Hurkle.HURKLE, model.getValueAt(row, col));\n }\n else {\n assertEquals(Hurkle.EMPTY_CLEAR, model.getValueAt(row, col));\n }\n }\n }\n }", "title": "" }, { "docid": "89059131917cbdb349eb75c3ce941359", "score": "0.5507983", "text": "public boolean isValidMove(int x, int y, int getX, int getY) {\n // TODO Auto-generated method stub\n return false;\n }", "title": "" }, { "docid": "331051b62ae1c7302271dd7af9c00248", "score": "0.55015373", "text": "private boolean sameLastThreeMoves(int index){\r\n\t\tif (moveHistory.size() > 12){\r\n\t\t\tMove move1 = moveHistory.get(index);\r\n\t\t\tfor (int i = index - 4; i >= index - 8; i -= 4){\r\n\t\t\t\tif (!move1.equals(moveHistory.get(i))){\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tMove move2 = moveHistory.get(index - 2);\r\n\t\t\tfor (int i = index - 6; i >= index - 10; i -= 4){\r\n\t\t\t\tif (!move2.equals(moveHistory.get(i))){\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\t\r\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "0fafad43f517ec173d4e0e658e8de466", "score": "0.5493577", "text": "private boolean validInput(int x, int y, Player playerToPlace) {\n if (x >= map.getROW() || x < 0 || y >= map.getCOLUMN() || y < 0 || map.getBoard()[x][y] != ' ')\n return false;\n\n char colorToCheck;\n if (playerToPlace.getColor() == 'W')\n colorToCheck = 'B';\n else\n colorToCheck = 'W';\n int i = x - 1;\n while (i > 0 && map.getBoard()[i][y] == colorToCheck) {\n i--;\n if (map.getBoard()[i][y] == playerToPlace.getColor())\n return true;\n }\n int j = y - 1;\n while (j > 0 && map.getBoard()[x][j] == colorToCheck) {\n j--;\n if (map.getBoard()[x][j] == playerToPlace.getColor())\n return true;\n }\n i = x + 1;\n while (i < map.getROW() - 1 && map.getBoard()[i][y] == colorToCheck) {\n i++;\n if (map.getBoard()[i][y] == playerToPlace.getColor())\n return true;\n\n }\n j = y + 1;\n while (j < map.getCOLUMN() - 1 && map.getBoard()[x][j] == colorToCheck) {\n j++;\n if (map.getBoard()[x][j] == playerToPlace.getColor())\n return true;\n }\n i = x + 1;\n j = y + 1;\n while (j < map.getCOLUMN() - 1 && i < map.getROW() - 1 && map.getBoard()[i][j] == colorToCheck) {\n j++;\n i++;\n if (map.getBoard()[i][j] == playerToPlace.getColor())\n return true;\n\n }\n i = x - 1;\n j = y - 1;\n while (j > 0 && i > 0 && map.getBoard()[i][j] == colorToCheck) {\n j--;\n i--;\n if (map.getBoard()[i][j] == playerToPlace.getColor())\n return true;\n\n }\n i = x - 1;\n j = y + 1;\n while (j < map.getCOLUMN() - 1 && i > 0 && map.getBoard()[i][j] == colorToCheck) {\n j++;\n i--;\n if (map.getBoard()[i][j] == playerToPlace.getColor())\n return true;\n }\n i = x + 1;\n j = y - 1;\n while (j > 0 && i < map.getROW() - 1 && map.getBoard()[i][j] == colorToCheck) {\n j--;\n i++;\n if (map.getBoard()[i][j] == playerToPlace.getColor())\n return true;\n\n }\n return false;\n }", "title": "" }, { "docid": "2b1c36f439bc054024bd088bfad2138d", "score": "0.54841465", "text": "@Test\n public void testPerformIllegalMoveWithStapleLowerWillBeRemoved(){\n master.performMove(new Move(1,0,0,1),1);\n master.performMove(new Move(0,0,0,2),1);\n master.performMove(new Move(0,1,0,3),1);\n master.performMove(new Move(1,5,0,3),2);\n\n Point testPoint = new Point(0,3);\n assertFalse(master.board.isStillPlaceOnField(testPoint));\n assertEquals(2,master.board.whichTeamIsOnTop(testPoint));\n\n //illegal Move from team One\n master.performMove(new Move(-1,-1,-1,-1),1);\n\n assertTrue(master.board.isStillPlaceOnField(testPoint));\n assertEquals(2,master.board.whichTeamIsOnTop(testPoint));\n assertEquals(2,master.roundMeter.getValue());\n }", "title": "" }, { "docid": "cdc3053f4153704101d916096eab247f", "score": "0.54826874", "text": "public static boolean isMoveSequenceValid(String setup, String moveSequence) {\n\n // FIXME Task 6: determine whether a placement sequence is valid\n // check if the length of the set up = 36\n //needs to call isMoveLegal function\n // this function checks the isMoveLegal function multiple times\n // check if the next move is in the same column/row as the previous one\n //if one move passes, the current move for the next move will be the move which passed the is current location\n String placement = setup;\n String[] ar = placementArray(placement);\n ArrayList<String> board = new ArrayList<>();\n char location = ' '; //initialise\n char kingdom = ' '; // initialise\n String zhang_location = \"\";\n int row_index = row.length; // inisitialise to 6\n int col_index = column.length; // initialise to 6\n String new_character = \"\";\n String new_location = \"\";\n\n for (int i = 0; i < moveSequence.length(); i++) {\n ArrayList<String> array = new ArrayList<>();\n for (int j = 0; j < placement.length(); j = j + 3) {\n array.add(placement.substring(j, j + 3));\n }\n location = moveSequence.charAt(i);\n\n if (!(isMoveLegal(placement, location)))\n return false; // if the move isn't legal then return false\n\n for (String elem : array) { //extract out the zhangyi location\n if (elem.charAt(0) == 'z' && elem.charAt(1) == '9')\n zhang_location = elem;\n }\n placement = placement.replace(zhang_location, \"\"); //update zhangyi location after every move\n for (String elem : array) { // put zhang yi at his next position\n if (elem.charAt(2) == location) {\n kingdom = elem.charAt(0);\n new_character = elem;\n }\n }\n new_location = \"z9\" + location;\n placement = placement.replace(new_character, new_location); //update new placement string\n for (int m = 0; m < row.length; m++) {\n for (int n = 0; n < row[m].length; n++) {\n if (zhang_location.charAt(2) == row[m][n])\n row_index = m;\n }\n }\n for (int m = 0; m < column.length; m++) {\n for (int n = 0; n < column[m].length; n++) {\n if (zhang_location.charAt(2) == column[m][n])\n col_index = m;\n }\n }\n String mid = \"\";\n ArrayList<String> remove_elem = new ArrayList<>();\n if (sameRow(location, row_index)) {\n int ri1 = row_str[row_index].indexOf(zhang_location.charAt(2));\n int ri2 = row_str[row_index].indexOf(location);\n if (ri1 > ri2)\n mid = row_str[row_index].substring(ri2 + 1, ri1);\n else\n mid = row_str[row_index].substring(ri1 + 1, ri2);\n for (int m = 0; m < mid.length(); m++) {\n for (String elem : array) {\n if (elem.charAt(2) == mid.charAt(m) && elem.charAt(0) == kingdom)\n remove_elem.add(elem);\n }\n }\n for (String elem : remove_elem) {\n placement = placement.replace(elem, \"\");\n }\n } else if (sameColumn(location, col_index)) {\n int ci1 = col_str[col_index].indexOf(zhang_location.charAt(2));\n int ci2 = col_str[col_index].indexOf(location);\n if (ci1 > ci2)\n mid = col_str[col_index].substring(ci2 + 1, ci1);\n else\n mid = col_str[col_index].substring(ci1 + 1, ci2);\n for (int m = 0; m < mid.length(); m++) {\n for (String elem : array) {\n if (elem.charAt(2) == mid.charAt(m) && elem.charAt(0) == kingdom)\n remove_elem.add(elem);\n }\n }\n for (String elem : remove_elem) {\n placement = placement.replace(elem, \"\");\n }\n }\n }\n return true;\n }", "title": "" }, { "docid": "87ac75c4c8eee2bafd881add29721e08", "score": "0.5474423", "text": "public boolean validPos(String [] input, Triangle [] board, List<Integer> possibleMoves) {\n int char1 = Integer.parseInt(input[0]);\n int char2 = Integer.parseInt(input[1]);\n\n int num = char2 - char1;\n int num2 = char1 - char2;\n\n if (char1 >= 13 && char2 >= 13) {\n num = char1 - char2;\n num2 = char2 - char1;\n }\n\n //Moving normally along a side\n if (!possibleMoves.contains(num) && ((char1 > 12 && char2 > 12) || (char2 < 13 && char1 < 13) ))\n return false;\n \n //Moving from bottom to top\n if ((char1 <= 12 && char2 >= 13) && (!possibleMoves.contains(acrossBoard(char1, char2)) || char1 < 6 || char2 < 18))\n return false;\n \n //Moving from top to bottom\n if ((char2 <= 12 && char1 >= 13) && (!possibleMoves.contains(acrossBoard(char1, char2)) || char1 > 19 || char2 > 7))\n return false;\n\n //If moving to a position with 2 or more opponent \n if (board[char2 - 1].getOpposite(side) >= 2 || board[char1 - 1].getSame(side) <= 0)\n return false;\n\n //Valid move\n return true;\n }", "title": "" }, { "docid": "e39000cc632cc489f2810191851082d6", "score": "0.5472674", "text": "public int check(final GameStateModule state, int x0, int y0, int x1, int y1, int x2, int y2, int x3, int y3) {\n if (x1>=state.getWidth() || x2>= state.getWidth() || x3>=state.getWidth()||\n y1>=state.getHeight() || y2>= state.getHeight() || y3>=state.getHeight()) {\n return 0;\n }\n\n int num_each = (1 << (3 * state.getAt(x0, y0)))\n + (1 << (3 * state.getAt(x1, y1)))\n + (1 << (3 * state.getAt(x2, y2)))\n + (1 << (3 * state.getAt(x3, y3)));\n\n int num_empty = num_each & 0x7;\n int num_p1 = (num_each >> 3) & 0x7;\n int num_p2 = (num_each >> 6) & 0x7;\n //assume i am 1 and the opponent is 2 for right now\n int my_turn = (player == 1) ? 1 : -1;\n// int my_turn = 1;\n if (num_empty == 4) {\n return 0;\n } else if (num_p1 > 0 && num_p2 > 0) {\n return 0;\n } else if (num_p1==1 && num_empty ==3) {\n return 1 * my_turn;\n } else if (num_p1==2 && num_empty ==2) {\n return 10 * my_turn;\n } else if (num_p1==3 && num_empty ==1) {\n// return state.getActivePlayer() == 1 ? 1000 : 100;\n return 100 * my_turn;\n } else if (num_p1==4) {\n return 1000000000 / state.getCoins() * my_turn;\n } else if (num_p2 ==1 && num_empty ==3) {\n return -1 * my_turn;\n } else if (num_p2 ==2 && num_empty ==2) {\n return -10 * my_turn;\n } else if (num_p2==3 && num_empty ==1) {\n// return state.getActivePlayer() == 1 ? -100 : -1000;\n return -100 * my_turn;\n } else if (num_p2 == 4) {\n return -1000000000 / state.getCoins() * my_turn;\n }\n return 0;\n }", "title": "" }, { "docid": "a771feb878956b280936e7b0027f799d", "score": "0.54715765", "text": "private boolean findValidate(){\n currScore = 0;\n int mainWordScore=0,secWordScore=0,finScore=0;\n if (!centerFilled){\n return false;\n }\n //are new tiles in one line?\n int dir = inOneLine();\n if (dir==0){\n return false;\n }\n //Adjecency \n System.out.println(\"moveNum=\" + moveNum);\n System.out.println(checkAdj());\n if (moveNum>1 && !(checkAdj())){\n return false;\n }\n //are the contiguous? consider old tiles as well.\n if (dir==1 || dir==2){\n mainWordScore = mainWordScore(dir);\n if (mainWordScore==-1){\n return false;\n }\n secWordScore = secWordScore(dir);\n if (secWordScore==-1){\n return false;\n }\n //dispTempBoard();\n }\n else if (dir==3){\n if (moveNum==1){\n return false;\n }\n secWordScore = singLetterScore();\n if (secWordScore==-1){\n return false;\n }\n }\n else{\n return false;\n }\n finScore = mainWordScore + secWordScore;\n System.out.println(\"final score: \" + finScore);\n currScore = finScore;\n return true;\n }", "title": "" }, { "docid": "d929ebff0047a751ac431db1c48e048f", "score": "0.54674417", "text": "public void endPieceCheck() {\n\n\t\tconfirmMove = false;\n\n\t\tif (player == 'w' && grid[choice1 - 2][choice2 - 1] == 'b') { // up\n\t\t\tfor (int i = choice1 - 1; i > 0; i--) {\n\t\t\t\tif (grid[i][choice2 - 1] == 'w') {\n\t\t\t\t\tconfirmMove = true;\n\t\t\t\t\tbreak;\n\t\t\t\t} else {\n\t\t\t\t\tif (grid[i - 1][choice2 - 1] == '.') {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (player == 'w' && grid[choice1][choice2 - 1] == 'b') { // down\n\t\t\tfor (int i = choice1 - 1; i < 8; i++) {\n\t\t\t\tif (grid[i][choice2 - 1] == 'w') {\n\t\t\t\t\tconfirmMove = true;\n\t\t\t\t\tbreak;\n\t\t\t\t} else {\n\t\t\t\t\tif (grid[i + 1][choice2 - 1] == '.') {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (player == 'w' && grid[choice1 - 1][choice2 - 2] == 'b') { // left\n\t\t\tfor (int i = choice2 - 1; i > 0; i--) {\n\t\t\t\tif (grid[choice1 - 1][i] == 'w') {\n\t\t\t\t\tconfirmMove = true;\n\t\t\t\t\tbreak;\n\t\t\t\t} else {\n\t\t\t\t\tif (grid[choice1 - 1][i - 1] == '.') {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (player == 'w' && grid[choice1 - 1][choice2] == 'b') { // right\n\t\t\tfor (int i = choice2 - 1; i < 8; i++) {\n\t\t\t\tif (grid[choice1 - 1][i] == 'w') {\n\t\t\t\t\tconfirmMove = true;\n\t\t\t\t\tbreak;\n\t\t\t\t} else {\n\t\t\t\t\tif (grid[choice1 - 1][i + 1] == '.') {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (player == 'b' && grid[choice1 - 2][choice2 - 1] == 'w') { // up\n\t\t\tfor (int i = choice1 - 1; i > 0; i--) {\n\t\t\t\tif (grid[i][choice2 - 1] == 'b') {\n\t\t\t\t\tconfirmMove = true;\n\t\t\t\t\tbreak;\n\t\t\t\t} else {\n\t\t\t\t\tif (grid[i - 1][choice2 - 1] == '.') {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (player == 'b' && grid[choice1][choice2 - 1] == 'w') { // down\n\t\t\tfor (int i = choice1 - 1; i < 8; i++) {\n\t\t\t\tif (grid[i][choice2 - 1] == 'b') {\n\t\t\t\t\tconfirmMove = true;\n\t\t\t\t\tbreak;\n\t\t\t\t} else {\n\t\t\t\t\tif (grid[i + 1][choice2 - 1] == '.') {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (player == 'b' && grid[choice1 - 1][choice2 - 2] == 'w') { // left\n\t\t\tfor (int i = choice2 - 1; i > 0; i--) {\n\t\t\t\tif (grid[choice1 - 1][i] == 'b') {\n\t\t\t\t\tconfirmMove = true;\n\t\t\t\t\tbreak;\n\t\t\t\t} else {\n\t\t\t\t\tif (grid[choice1 - 1][i - 1] == '.') {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (player == 'b' && grid[choice1 - 1][choice2] == 'w') { // right\n\t\t\tfor (int i = choice2 - 1; i < 8; i++) {\n\t\t\t\tif (grid[choice1 - 1][i] == 'b') {\n\t\t\t\t\tconfirmMove = true;\n\t\t\t\t\tbreak;\n\t\t\t\t} else {\n\t\t\t\t\tif (grid[choice1 - 1][i + 1] == '.') {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (player == 'b' && confirmMove == false) {\n\t\t\tif (grid[choice1 - 2][choice2 - 2] == 'b') {\n\t\t\t\tSystem.out.println(\"nope\");\n\t\t\t\tchooseMove();\n\t\t\t}\n\t\t\twhile (choice1 > 0 && choice2 > 0) {\n\t\t\t\tif (grid[choice1 - 2][choice2 - 2] == 'b') { // up-left\n\t\t\t\t\tconfirmMove = true;\n\t\t\t\t\tbreak;\n\t\t\t\t} else {\n\t\t\t\t\tif (grid[choice1 - 2][choice2 - 2] == '.') {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tchoice1--;\n\t\t\t\t\tchoice2--;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (player == 'b' && confirmMove == false) {\n\t\t\tif (grid[choice1 - 2][choice2] == 'b') {\n\t\t\t\tSystem.out.println(\"nope\");\n\t\t\t\tchooseMove();\n\t\t\t}\n\t\t\twhile (choice1 > 0 && choice2 < 8) {\n\t\t\t\tif (grid[choice1 - 2][choice2] == 'b') { // up-right\n\t\t\t\t\tconfirmMove = true;\n\t\t\t\t\tbreak;\n\t\t\t\t} else {\n\t\t\t\t\tif (grid[choice1 - 2][choice2] == '.') {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tchoice1--;\n\t\t\t\t\tchoice2++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (player == 'b' && confirmMove == false) {\n\t\t\tif (grid[choice1][choice2 - 2] == 'b') {\n\t\t\t\tSystem.out.println(\"nope\");\n\t\t\t\tchooseMove();\n\t\t\t}\n\t\t\twhile (choice1 < 8 && choice2 > 0) {\n\t\t\t\tif (grid[choice1][choice2 - 2] == 'b') { // down-left\n\t\t\t\t\tconfirmMove = true;\n\t\t\t\t\tbreak;\n\t\t\t\t} else {\n\t\t\t\t\tif (grid[choice1][choice2 - 2] == '.') {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tchoice1++;\n\t\t\t\t\tchoice2--;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (player == 'b' && confirmMove == false) {\n\t\t\tif (grid[choice1][choice2] == 'b') {\n\t\t\t\tSystem.out.println(\"nope\");\n\t\t\t\tchooseMove();\n\t\t\t}\n\t\t\twhile (choice1 < 8 && choice2 < 8) {\n\t\t\t\tif (grid[choice1][choice2] == 'b') { // down - right\n\t\t\t\t\tconfirmMove = true;\n\t\t\t\t\tbreak;\n\t\t\t\t} else {\n\t\t\t\t\tif (grid[choice1][choice2] == '.') {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tchoice1++;\n\t\t\t\t\tchoice2++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (player == 'w' && confirmMove == false) {\n\t\t\tif (grid[choice1 - 2][choice2 - 2] == 'w') {\n\t\t\t\tSystem.out.println(\"nope\");\n\t\t\t\tchooseMove();\n\t\t\t}\n\t\t\twhile (choice1 > 0 && choice2 > 0) {\n\t\t\t\tif (grid[choice1 - 2][choice2 - 2] == 'w') { // up-left\n\t\t\t\t\tconfirmMove = true;\n\t\t\t\t\tbreak;\n\t\t\t\t} else {\n\t\t\t\t\tif (grid[choice1 - 2][choice2 - 2] == '.') {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tchoice1--;\n\t\t\t\t\tchoice2--;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (player == 'w' && confirmMove == false) {\n\t\t\tif (grid[choice1 - 2][choice2] == 'w') {\n\t\t\t\tSystem.out.println(\"nope\");\n\t\t\t\tchooseMove();\n\t\t\t}\n\t\t\twhile (choice1 > 0 && choice2 < 8) {\n\t\t\t\tif (grid[choice1 - 2][choice2] == 'w') { // up-right\n\t\t\t\t\tconfirmMove = true;\n\t\t\t\t\tbreak;\n\t\t\t\t} else {\n\t\t\t\t\tif (grid[choice1 - 2][choice2] == '.') {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tchoice1--;\n\t\t\t\t\tchoice2++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (player == 'w' && confirmMove == false) {\n\t\t\tif (grid[choice1][choice2 - 2] == 'w') {\n\t\t\t\tSystem.out.println(\"nope\");\n\t\t\t\tchooseMove();\n\t\t\t}\n\t\t\twhile (choice1 < 8 && choice2 > 0) {\n\t\t\t\tif (grid[choice1][choice2 - 2] == 'w') { // down-left\n\t\t\t\t\tconfirmMove = true;\n\t\t\t\t\tbreak;\n\t\t\t\t} else {\n\t\t\t\t\tif (grid[choice1][choice2 - 2] == '.') {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tchoice1++;\n\t\t\t\t\tchoice2--;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (player == 'w' && confirmMove == false) {\n\t\t\tif (grid[choice1][choice2] == 'w') {\n\t\t\t\tSystem.out.println(\"nope\");\n\t\t\t\tchooseMove();\n\t\t\t}\n\t\t\twhile (choice1 < 8 && choice2 < 8) {\n\t\t\t\tif (grid[choice1][choice2] == 'w') { // down - right\n\t\t\t\t\tconfirmMove = true;\n\t\t\t\t\tbreak;\n\t\t\t\t} else {\n\t\t\t\t\tif (grid[choice1][choice2] == '.') {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tchoice1++;\n\t\t\t\t\tchoice2++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "9bf2b2e22d4d925c670e1a05cf1d8527", "score": "0.5465077", "text": "public static void nudgeR3(){\r\n //machine.NudgeReel3();\r\n machine.execute(\"NUDGE_REEL3\");\r\n machine.calculateWinSpins();\r\n \r\n if(!startFeat){\r\n machine.calculateCashWin();\r\n }\r\n }", "title": "" }, { "docid": "27e9869daae46ffb608bfa3190b66ffe", "score": "0.54628813", "text": "public static boolean isValidMove(Movable m, String direction) {\n int x = m.getX();\n int y = m.getY();\n\n switch (direction) {\n case \"top\":\n x--;\n break;\n case \"bottom\":\n x++;\n break;\n case \"left\":\n y--;\n break;\n case \"right\":\n y++;\n break;\n default:\n return false;\n }\n\n if ((x >= 0 && x < LENGHT_X) && (y >= 0 && y < LENGHT_Y)) {\n return true;\n }\n\n return false;\n }", "title": "" }, { "docid": "015d7036992e2413f3ba457baf5f68e7", "score": "0.54628", "text": "private boolean isValidLocation(int x, int y, int color){\n\t\tif( (color == BLACK && (x == 0 || x == SIZE-1))\n\t\t ||(color == WHITE && (y == 0 || y == SIZE-1))){ //Rules 1 and 2\n\t\t\treturn false;\n\t\t} else if(!board[x][y].isEmpty()) { //Rule 3\n\t\t\treturn false;\n\t\t} else {\n\t\t\treturn !isRule4Violation(x, y, color); //Valid if rule 4 is not violated\n\t\t}\n\t}", "title": "" }, { "docid": "ee958b3e4b23ae7b731e67766da20b54", "score": "0.5461497", "text": "public void validate() throws RemoteException \n\t{\n\t\tclient++;\n\t\t\n\t\tif(client==2)\n\t\t{\n\t\t\ttheGame();\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "0e06110b03dba56c669de83989a2181f", "score": "0.54551584", "text": "public void consistencyCheck(GoBoardPosition pos) {\n board_.getGroups().confirmNoEmptyStrings();\n confirmStonesInValidGroups();\n board_.getGroups().confirmAllStonesInUniqueGroups();\n try {\n confirmAllStonesInGroupsClaimed(board_.getGroups());\n } catch (AssertionError e) {\n GameContext.log(0, \"The move was :\" + pos);\n throw e;\n }\n }", "title": "" }, { "docid": "f360540ade1975d5cd76087b409474b4", "score": "0.54510874", "text": "boolean attempt(MovableShape tetromino, Grid grid, Controller controller);", "title": "" }, { "docid": "9719cc0f90592ff8c4ee26a9d2726fcb", "score": "0.5449463", "text": "@Test\n\tpublic void testBlockedNorth() {\n\t\tboolean ret_val;\n\t\tret_val = CoffeeMaker2.move_north(5, 6);\n\t\tassertEquals(false, ret_val);\n\t}", "title": "" }, { "docid": "b9c39d976d7ccabcdfbc30d915f07ad6", "score": "0.54426855", "text": "@Test\n\tpublic void testHorizontalShipInMiddle() {\n\t\tmyIntelligentDecisionMaker = new DecisionMaker(AILevel.INTELLIGENT_MODE, null);\n\t\t\n\t\tHashMap<String, Vector<Point>> map = new HashMap<>();\n\t\tmap.put(\"Submarine\", new Vector<Point>());\n\t\tmap.get(\"Submarine\").add(new Point(3,6));\n\t\tmap.get(\"Submarine\").add(new Point(4,6));\n\t\tmyIntelligentDecisionMaker.setHashMap(map);\n\t\t\n\t\tboolean valid;\n\t\tif(myIntelligentDecisionMaker.nextMove().equals(new Point(2,6)) || \n\t\t\t\tmyIntelligentDecisionMaker.nextMove().equals(new Point(5,6))) {\n\t\t\tvalid = true;\n\t\t}\n\t\telse {\n\t\t\tvalid = false;\n\t\t}\n\t\tassertTrue(\"Next guess should be left or right\", valid);\n\t}", "title": "" }, { "docid": "0cb349cf0e55b7345e8553892b5e6f9e", "score": "0.54392236", "text": "@Test\n public void beforeFirstPlayerFinalFrenzyMoveTest() {\n controller.getGameManager().setPlayerTurn(1);\n player3.setPosition(map[0][0]);\n controller.getGameManager().newRound();\n roundManager = controller.getGameManager().getCurrentRound();\n Assert.assertEquals(player3, roundManager.getCurrentPlayer());\n Assert.assertFalse(controller.getGameManager().isFirsPlayerPlayed());\n Assert.assertTrue(controller.getGameManager().isFinalFrenzyPhase());\n Event requestMessage = hashMap.get(player3.getUsername()).getToRemoteView();\n Assert.assertTrue(((ActionRequestEvent) requestMessage).getUsableActions()[0]);\n Assert.assertTrue(((ActionRequestEvent) requestMessage).getUsableActions()[1]);\n Assert.assertTrue(((ActionRequestEvent) requestMessage).getUsableActions()[2]);\n ViewControllerEvent choiceMessage = new ActionChoiceEvent(player3.getUsername(), 1);\n choiceMessage.performAction(controller);\n requestMessage = hashMap.get(player3.getUsername()).getToRemoteView();\n Assert.assertEquals(11, ((PositionMoveRequestEvent) requestMessage).getPossibleSquareX().length);\n int[] expectedX = new int[]{0, 0, 0, 1, 1, 1, 2, 0, 1, 2, 2};\n int[] expectedY = new int[]{0, 1, 2, 0, 1, 3, 0, 3, 2, 1, 2};\n TestPattern.checkSquares(expectedX, expectedY, ((PositionMoveRequestEvent) requestMessage).getPossibleSquareX(), ((PositionMoveRequestEvent) requestMessage).getPossibleSquareY());\n choiceMessage = new MoveChoiceEvent(player3.getUsername(), 2, 2);\n choiceMessage.performAction(controller);\n Assert.assertEquals(map[2][2], player3.getPosition());\n Assert.assertEquals(4, controller.getGameManager().getCurrentRound().getPhase());\n }", "title": "" }, { "docid": "a955790cc9aa8a93e7d388f87b2896e1", "score": "0.54375416", "text": "private boolean validMove(int xi, int yi, int xf, int yf) {\n\t\tif (pieces[xi][yi].isFire() == false) {\n\t\t\t\tif (pieces[xi][yi].isKing()) { /*additional valid moves available if a king */\n\t\t\t\t\tif ( ((xi == xf + 1 && yi == yf + 1) || (xi == xf - 1 && yi == yf + 1) || (xi == xf + 1 && yi == yf - 1) || (xi == xf - 1 && yi == yf - 1)) && !piece_selected.hasCaptured()) { /* */\n\t\t\t\t\t\tif (pieces[xf][yf] == null) {\n\t\t\t\t\t\t\treturn true; /* viable move for a water piece king to move in all four directions if the square is empty */\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\treturn false;\n\n\t\t\t\t\t}\n\t\t\t\t\telse if ((xi == xf + 2 && yi == yf + 2)) { \n\t\t\t\t\t\tif ((pieces[xf][yf] == null && pieces[xi - 1][yi - 1] != null && pieces[xi - 1][yi -1].isFire())){\n\t\t\t\t\t\t\treturn true; \n\t\t\t\t\t\t}\n\t\t\t\t\t\t\treturn false;\t\t \n\t\t\t\t\t}\n\n\t\t\t\t\telse if ((xi == xf - 2 && yi == yf + 2)) {\n\t\t\t\t\t\tif ((pieces[xf][yf] == null) && pieces[xi + 1][yi - 1] != null && pieces[xi + 1][yi - 1].isFire()) {\n\t\t\t\t\t\t\treturn true; \n\t\t\t\t\t\t}\n\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t\telse if ((xi == xf + 2 && yi == yf - 2)) { \n\t\t\t\t\t\tif ((pieces[xf][yf] == null && pieces[xi - 1][yi + 1] != null && pieces[xi - 1][yi + 1].isFire())){\n\t\t\t\t\t\t\treturn true; \n\t\t\t\t\t\t}\n\t\t\t\t\t\t\treturn false;\t\t \n\t\t\t\t\t}\n\n\t\t\t\t\telse if ((xi == xf - 2 && yi == yf - 2)) {\n\t\t\t\t\t\tif ((pieces[xf][yf] == null) && pieces[xi + 1][yi + 1] != null && pieces[xi + 1][yi + 1].isFire()) {\n\t\t\t\t\t\t\treturn true; /* viable move for a water piece to take a piece to its right */\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\n\n\n\t\t\t\t\t/* ***********/\n\t\t\t\t}\t\n\n\t\t\t\telse if (((xi == xf + 1 && yi == yf + 1) || (xi == xf - 1 && yi == yf + 1)) && !piece_selected.hasCaptured()) { /* */\n\t\t\t\t\tif (pieces[xf][yf] == null) {\n\t\t\t\t\t\treturn true; /* viable move for a water piece and the square is empty */\n\t\t\t\t\t}\n\t\t\t\t\treturn false;\n\n\t\t\t\t}\n\t\t\t\telse if ((xi == xf + 2 && yi == yf + 2)) { \n\t\t\t\t\tif ((pieces[xf][yf] == null && pieces[xi - 1][yi - 1] != null && pieces[xi - 1][yi -1].isFire())){\n\t\t\t\t\t\treturn true; /*viable move for a water piece to take a piece to its left */\n\t\t\t\t\t}\n\t\t\t\t\treturn false;\t\t \n\t\t\t\t}\n\n\t\t\t\telse if ((xi == xf - 2 && yi == yf + 2)) {\n\t\t\t\t\tif ((pieces[xf][yf] == null) && pieces[xi + 1][yi - 1] != null && pieces[xi + 1][yi - 1].isFire()) {\n\t\t\t\t\t\treturn true; /* viable move for a water piece to take a piece to its right */\n\t\t\t\t\t}\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\telse {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t}\n\t\t/* Valid moves if the piece is a fire piece */\n\t\telse {\n\t\t\tif (pieces[xi][yi].isKing()) {\n\t\t\t\tif (((xi == xf + 1 && yi == yf + 1) || (xi == xf - 1 && yi == yf + 1) || (xi == xf + 1 && yi == yf - 1) || (xi == xf - 1 && yi == yf - 1)) && !piece_selected.hasCaptured() ) { /* */\n\t\t\t\t\tif (pieces[xf][yf] == null) {\n\t\t\t\t\t\treturn true; /* viable move for a fire piece and the square is empty */\n\t\t\t\t\t}\n\t\t\t\t\treturn false;\n\n\t\t\t\t}\n\t\t\t\telse if ((xi == xf + 2 && yi == yf + 2)) { \n\t\t\t\t\tif ((pieces[xf][yf] == null && pieces[xi - 1][yi - 1] != null && !pieces[xi - 1][yi -1].isFire())){\n\t\t\t\t\t\treturn true; /*viable move for a fire piece to take a piece to its left */\n\t\t\t\t\t}\n\t\t\t\t\treturn false;\t\t \n\t\t\t\t}\n\n\t\t\t\telse if ((xi == xf - 2 && yi == yf + 2)) {\n\t\t\t\t\tif ((pieces[xf][yf] == null) && pieces[xi + 1][yi - 1] != null && !pieces[xi + 1][yi - 1].isFire()) {\n\t\t\t\t\t\treturn true; /* viable move for a fire piece to take a piece to its right */\n\t\t\t\t\t}\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\n\t\t\t\telse if ((xi == xf + 2 && yi == yf - 2)) { \n\t\t\t\t\tif ((pieces[xf][yf] == null && pieces[xi - 1][yi + 1] != null && !pieces[xi - 1][yi + 1].isFire())){\n\t\t\t\t\t\treturn true; /*viable move for a water piece to take a piece to its left */\n\t\t\t\t\t}\n\t\t\t\t\t\treturn false;\t\t \n\t\t\t\t\t}\n\n\t\t\t\telse if ((xi == xf - 2 && yi == yf - 2)) {\n\t\t\t\t\tif ((pieces[xf][yf] == null) && pieces[xi + 1][yi + 1] != null && !pieces[xi + 1][yi + 1].isFire()) {\n\t\t\t\t\t\treturn true; /* viable move for a water piece to take a piece to its right */\n\t\t\t\t\t}\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t}\n\t\t\telse if (((xi == xf + 1 && yi == yf - 1) || (xi == xf - 1 && yi == yf - 1)) && !piece_selected.hasCaptured()) { /* */\n\t\t\t\tif (pieces[xf][yf] == null) {\n\t\t\t\t\treturn true; /* viable move for a fire piece and the square is empty */\n\t\t\t\t}\n\t\t\t\t\treturn false;\n\n\t\t\t}\n\t\t\telse if ((xi == xf + 2 && yi == yf - 2)) { \n\t\t\t\tif ((pieces[xf][yf] == null && pieces[xi - 1][yi + 1] != null && !pieces[xi - 1][yi + 1].isFire())){\n\t\t\t\t\treturn true; /*viable move for a fire piece to take a piece to its left */\n\t\t\t\t}\n\t\t\t\treturn false;\t\t \n\t\t\t}\n\n\t\t\telse if ((xi == xf - 2 && yi == yf - 2)) {\n\t\t\t\tif ((pieces[xf][yf] == null) && pieces[xi + 1][yi + 1] != null && !pieces[xi + 1][yi + 1].isFire()) {\n\t\t\t\t\treturn true; /* viable move for a fire piece to take a piece to its right */\n\t\t\t\t}\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\t\n\n\t\t\telse {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t/*WHY DO I NEED THIS */\n\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "b8bc81d3540642a7e2925cc78d6a3f18", "score": "0.5437101", "text": "public boolean Validate(returnObject item, DraughtsState state){\n DraughtsState clonedState = state.clone();\n for(Move move: item.moves){\n if(move != null){\n clonedState.doMove(move);\n }\n }\n return evaluate(clonedState) == item.score;\n }", "title": "" }, { "docid": "ba2c2ef1c89ef309188a4860538a8d4e", "score": "0.54361737", "text": "public boolean isValid() {\n\t\tthis.sort();\n\t\tif (this.size() != 3) {\n\t\t\treturn false;\n\t\t}\n\t\tif (this.getCard(0).getRank() == this.getCard(1).getRank() && this.getCard(1).getRank() == this.getCard(2).getRank()) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "title": "" } ]
bdad13327751a56fe925b49755d10bb9
Writes text as HTML in the log window.
[ { "docid": "f0a6d89238bef6d510200fe79f00172f", "score": "0.69813615", "text": "public static native void logWriteHtml(String html) /*-{\n $wnd.GLog.write(html);\n }-*/;", "title": "" } ]
[ { "docid": "5168ddc203bdfd324f163bdfeb75a71b", "score": "0.66998935", "text": "static public void enableHtml() throws IOException {\n // create an HTML formatter\n Logger logger = Logger.getLogger(\"\");\n FileHandler fileHTML = new FileHandler(\"Logging.html\");\n\n HtmlFormatter formatterHTML = new HtmlFormatter();\n fileHTML.setFormatter(formatterHTML);\n logger.addHandler(fileHTML);\n }", "title": "" }, { "docid": "ca5c69f5b8e40b011925a935d7a13d11", "score": "0.6192496", "text": "public void writeText(String text) {\r\n\t\tlogger.warn(\"writeText is only available with seleniumRobot grid\");\r\n\t}", "title": "" }, { "docid": "4c3ce507bcae4fb1f2d35a3f1f49f877", "score": "0.61419654", "text": "public synchronized void appendHTML(String html) {\r\n // mStartUp deals with a problem writing HTML before the window is\r\n // displayed.\r\n if (mStartUp != null)\r\n mStartUp.add(html);\r\n else\r\n try {\r\n\r\n final HTMLDocument doc = (HTMLDocument) getTextPane_Log().getDocument();\r\n // Find the document body and insert just before this...\r\n javax.swing.text.Element body = null;\r\n {\r\n javax.swing.text.Element root = doc.getDefaultRootElement();\r\n for (int i = 0; i < root.getElementCount(); i++) {\r\n javax.swing.text.Element element = root.getElement(i);\r\n if (element.getAttributes().getAttribute(StyleConstants.NameAttribute) == HTML.Tag.BODY) {\r\n body = element;\r\n break;\r\n }\r\n }\r\n assert body != null;\r\n }\r\n if (mSessionStarted != null) {\r\n final Preferences userPref = Preferences.userNodeForPackage(MainFrame.class);\r\n final boolean trixy = !DTSA2.getRevision(DTSA2.class).equals(userPref.get(PREVIOUS_TRIXY_VERSION, \"none\"));\r\n final boolean epq = !DTSA2.getRevision(EPQException.class).equals(userPref.get(PREVIOUS_EPQ_VERSION, \"none\"));\r\n if (trixy || epq) {\r\n final HTMLList list = new HTMLList();\r\n list.setHeader(\"Software update notification\");\r\n if (trixy)\r\n list.add(\"DTSA2 updated to revision \" + DTSA2.getRevision(DTSA2.class) + \".\");\r\n if (epq)\r\n list.add(\"The EPQ library updated to revision \" + DTSA2.getRevision(EPQException.class) + \".\");\r\n doc.insertBeforeEnd(body, list.toString());\r\n userPref.put(PREVIOUS_TRIXY_VERSION, DTSA2.getRevision(DTSA2.class));\r\n userPref.put(PREVIOUS_EPQ_VERSION, DTSA2.getRevision(EPQException.class));\r\n }\r\n mSessionStarted = null;\r\n }\r\n final String mark = \"<A NAME=\\\"ITEM_\" + Long.toHexString(++mLastMark) + \"\\\" />\\n\";\r\n doc.insertBeforeEnd(body, mark + html);\r\n // Write the result to disk\r\n final EditorKit hek = getTextPane_Log().getEditorKit();\r\n try (final Writer out = new OutputStreamWriter(new FileOutputStream(DTSA2.getReport().getFile()),\r\n java.nio.charset.Charset.forName(\"ISO-8859-1\"))) {\r\n hek.write(out, doc, 0, doc.getLength());\r\n }\r\n scrollToLastHTMLMark();\r\n\r\n } catch (final Exception e) {\r\n e.printStackTrace();\r\n }\r\n }", "title": "" }, { "docid": "bc3f8bd7a4942a0288911c4255a3bcd9", "score": "0.60190374", "text": "public static synchronized void message(String text) {\n\t\tlogStrings[next] = \"<tr>\"\n\t\t\t\t\t\t\t+ \"<td width=\\\"150\\\" valign=\\\"top\\\">\"+logTime()+\"</td>\"\n\t\t\t\t\t\t\t+ \"<td>\"+text+\"</td>\"\n\t\t\t\t\t\t\t+ \"</tr>\";\n\t\tnext = (next + 1) % logSize;\n\t\tsize = (size < logSize) ? size+1 : logSize;\n\t}", "title": "" }, { "docid": "2003dc96989b0b08416c4eeeaf5cb447", "score": "0.59245366", "text": "public abstract void emitHTML(String s);", "title": "" }, { "docid": "564b253ea7bb81fe77a94190791b6d41", "score": "0.5918952", "text": "public void println(String text)\n {\n log.append(text + \"\\n\");\n log.setCaretPosition(log.getDocument().getLength());\n }", "title": "" }, { "docid": "4fdf4152ed84a7a1739340b2387e7a6b", "score": "0.58818096", "text": "public void println(String text)\n {\n textLog.append(text + \"\\n\");\n textLog.setCaretPosition(textLog.getDocument().getLength());\n }", "title": "" }, { "docid": "035d1de161a5caeef7278b15b7bfc8b7", "score": "0.5869994", "text": "public void write(String text) {\n\t\tSystem.out.println(text);\n\t}", "title": "" }, { "docid": "c989c9e90d1306cc1077a5c533e22995", "score": "0.58606976", "text": "public void write(String text) {\r\n\t\tSystem.out.println(text);\r\n\t\t\r\n\t}", "title": "" }, { "docid": "c073e21c7f807986bb8c06b54aa3e8b7", "score": "0.5858263", "text": "private void printHtml()\r\n {\r\n out.println(this.html.getHtmlAnswer());\r\n }", "title": "" }, { "docid": "a62048ef7f3b8e3005e640c55b6ca7bd", "score": "0.5794857", "text": "public void addTextInWriteArea(String text){\n JEditorPane editorPane = this.writeMessagePanel.getEditorPane();\n\n editorPane.setText(editorPane.getText() + text);\n }", "title": "" }, { "docid": "e0aa45520bf6638dca66b25389b11319", "score": "0.578919", "text": "public void print(String text)\n {\n log.append(text);\n log.setCaretPosition(log.getDocument().getLength());\n }", "title": "" }, { "docid": "fcce6b7fc89eb65c67797a4dda2519ea", "score": "0.5740233", "text": "public void print(String text)\n {\n textLog.append(text);\n textLog.setCaretPosition(textLog.getDocument().getLength());\n }", "title": "" }, { "docid": "f01e4997b165888d157b82627a2debcb", "score": "0.57151866", "text": "private void printLog(String text)\n\t{\n\t\tAppUtils.printLog(LOG_FILE_NAME, text);\n\t}", "title": "" }, { "docid": "622aa4fa3f71a08b12f0e22ef422357f", "score": "0.57019854", "text": "private static void writeEscapedHTML(String text, Writer out) throws IOException\n {\n for(int i = 0; i < text.length(); i++)\n {\n char ch = text.charAt(i);\n switch(ch)\n {\n case '<':\n out.write(\"&lt;\");\n break;\n\n case '>':\n out.write(\"&gt;\");\n break;\n\n case '&':\n out.write(\"&amp;\");\n break;\n\n case '\"':\n out.write(\"&quot;\");\n break;\n\n default:\n out.write(ch);\n break;\n }\n }\n }", "title": "" }, { "docid": "12f2fa3e9d036fedf43926deb5a77734", "score": "0.567955", "text": "void writeText(String text);", "title": "" }, { "docid": "d2c3418dcf2aea032358456476d3ed66", "score": "0.5658227", "text": "void log(String str) {\n logText.append(\"\\n>> \" + str);\n }", "title": "" }, { "docid": "dc654e77d87f3dcda03515bf5c9b19be", "score": "0.5624325", "text": "public void addText(String t){\r\n\t\tlogs.append(\"\\n\"+t);\r\n\t}", "title": "" }, { "docid": "1a3c287ca1b6c0ed5b28011ef3fdf39e", "score": "0.5613054", "text": "private void writeWinMessage() {\n\t\tDropShadow ds = new DropShadow();\n\t\tds.setOffsetY(12.0f);\n\t\tds.setColor(Color.color(0.4f, 0.4f, 0.4f));\n\n\t\twinText = new Text();\n\t\twinText.setEffect(ds);\n\t\twinText.setX(80.0f);\n\t\twinText.setY(300.0f);\n\t\twinText.setFill(Color.RED);\n\t\twinText.setText(\"Congratulations!\");\n\t\twinText.setFont(Font.font(\"Serif\", 68));\n\t\troot.getChildren().add(winText);\n\t\twinText.setVisible(false);\n\t}", "title": "" }, { "docid": "da004f6ffafe221b1032a940ff13de70", "score": "0.55677134", "text": "private void log(){\n String text = \"fractal triangle\";\n Logging newLog = new Logging();\n newLog.writeLog(text);\n }", "title": "" }, { "docid": "0da878aa0e5b3daa60cea93528feb5db", "score": "0.5561291", "text": "public static void log(String s) {\n textArea.append(\"[\" + new SimpleDateFormat(\"HH:mm:ss\").format(Calendar.getInstance().getTime()) + \"] \" + s + System.getProperty(\"line.separator\"));\n textArea.scrollRectToVisible(new Rectangle(0, textArea.getHeight() - 2, 1, 1));\n System.out.println(s);\n }", "title": "" }, { "docid": "a9c6f0c946edf1e29695e87b986f72d9", "score": "0.5544405", "text": "private void appendText(final String text, final Color color) {\n final Document doc = outputLog.getStyledDocument();\n final Style style = outputLog.addStyle(null, null);\n StyleConstants.setForeground(style, color);\n try {\n doc.insertString(doc.getLength(), text, style);\n } catch (BadLocationException e) {\n e.printStackTrace();\n } \n }", "title": "" }, { "docid": "4daebcd7bb3c6a75d3f6e7264a64bd49", "score": "0.55206794", "text": "static public void writeToLog( String message ) { System.out.println( \"gridworld: \" + message ); }", "title": "" }, { "docid": "6fc9e961fdb9de08639d2c4b92799b95", "score": "0.54673976", "text": "public void writeText(String writeText) {\n this.writeText = writeText;\n }", "title": "" }, { "docid": "56734b1c35ae38966ab85fbd6373fb5f", "score": "0.5459545", "text": "public static void writeToLog(String text) {\n writeLogFile(JIPSConstants.JIPS_LOG_FILE, text);\n }", "title": "" }, { "docid": "c45a349bce54a6b6133f665e8fc98904", "score": "0.54578453", "text": "@Override\n public void publish(LogRecord record)\n {\n super.publish(record);\n flush();\n \n if (textArea != null)\n {\n textArea.append(record.getMessage());\n }\n }", "title": "" }, { "docid": "9a1591781526b997dc0451027fb59ec1", "score": "0.54507387", "text": "@Override\n public void log(Object o) {\n txtLog.append(o.toString() + \"\\n\");\n if (o instanceof Exception) {\n txtLog.append(((Exception) o).getMessage());\n }\n txtLog.setCaretPosition(txtLog.getDocument().getLength());\n if (TillServer.server != null) {\n if (o instanceof Exception) {\n TillServer.server.sendData(null, JConnData.create(\"LOG\").addParam(\"MESSAGE\", ((Exception) o).getMessage()));\n } else {\n TillServer.server.sendData(null, JConnData.create(\"LOG\").addParam(\"MESSAGE\", o.toString()));\n }\n }\n }", "title": "" }, { "docid": "0a6f85b639b94c68cce7704b62c2f6ee", "score": "0.544582", "text": "public void Log(String str) {\n TextArea.append(str + \"\\n\");\n TextArea.validate();\n }", "title": "" }, { "docid": "c10bef86094e423d14b13cd2fb1cbbfe", "score": "0.54106164", "text": "private void writeHtmlToFile(String title, String html) throws IOException {\n fileName = title\n .replaceAll(\"[,'’]\", \"\")\n .replace(\" \", \"-\");\n\n String fileLocation = \"src/serverClientInteraction/texts/\" + fileName + \".html\";\n\n Path path = Paths.get(fileLocation);\n try (BufferedWriter writer = Files.newBufferedWriter(path, Charset.forName(\"utf-8\"))) {\n writer.write(html);\n }\n }", "title": "" }, { "docid": "5fcb759c2195754110cc3c25d6cd633c", "score": "0.5405379", "text": "public void run(){\n\t\t\t\t\tchatWindow.append(text);\r\n\t\t\t\t}", "title": "" }, { "docid": "6f1b2b2e3126961cf5871276ceb72f89", "score": "0.5403707", "text": "private static void output(String text, String title) {\n JOptionPane.showMessageDialog(\n null, \n text, \n title, \n JOptionPane.PLAIN_MESSAGE);\n }", "title": "" }, { "docid": "6f44d54745364a0b7bbaf83cbdb73521", "score": "0.53940153", "text": "private WriteText() {\r\n\t}", "title": "" }, { "docid": "6a05b65d9d31d21270fefa24f2f2ff3d", "score": "0.53808445", "text": "public void displayTextToConsole() {\n System.out.println(text);\n }", "title": "" }, { "docid": "efbde991b8d291725e46b9ec82189e4e", "score": "0.53718174", "text": "public static void out(String text) {\n System.out.println(text);\n }", "title": "" }, { "docid": "c79f74f59d297cbe197c3aeac6967194", "score": "0.5359131", "text": "private void writeLog(String message) {\n log.appendText(message + \"\\n\");\n }", "title": "" }, { "docid": "4c38bcf690b80bf3baecb1d8f007bc5c", "score": "0.5358725", "text": "public void printToConsole (final String text) {\n SwingUtilities.invokeLater (new Runnable () {\n public void run () {\n if (text.startsWith (\"[Internal debug-agent exception\")) { // NOI18N\n internalErrorReported = true;\n return;\n }\n if (internalErrorReported && (text.equals (\"\\r\\n\")||text.equals (\"\\n\"))) { // NOI18N\n internalErrorReported = false;\n return;\n }\n internalErrorReported = false;\n debugger.print (text, debugger.STD_OUT);\n } // run ()\n }); // invokeLater\n }", "title": "" }, { "docid": "43d4f2c2966d9103aaabdc6e74c3a115", "score": "0.5354501", "text": "synchronized void log(int id, Color color, String x)\r\n {\r\n if (myJFrame != null)\r\n { \r\n MyJTextPane area = (MyJTextPane)get(id);\r\n if (area == null)\r\n {\r\n area = new MyJTextPane();\r\n put(id, area);\r\n MyJScrollPane scrollPane = new MyJScrollPane(id, area); \r\n MyJLayeredPane layeredPane = (MyJLayeredPane)myJFrame.getLayeredPane();\r\n layeredPane.addInLayer(scrollPane);\r\n } \r\n area.append(color, x); \r\n //area.append(color, (System.currentTimeMillis()/1000%1000)+\" \"+text); \r\n }\r\n else\r\n {\r\n if (color.equals(Color.BLACK))\r\n {\r\n System.out.println(x); \r\n }\r\n else\r\n {\r\n System.err.println(x);\r\n }\r\n }\r\n }", "title": "" }, { "docid": "f9aece40d74563e1cf248419e9155fd7", "score": "0.5326533", "text": "private void insertLogFileContent() {\n StringBuilder log = new StringBuilder();\n String lineBreak = System.getProperty(\"line.separator\");\n\n try {\n BufferedReader br = new BufferedReader(new FileReader(logFile));\n String line;\n while ((line = br.readLine()) != null) {\n log.append(line).append(lineBreak);\n }\n br.close();\n } catch (FileNotFoundException e) {\n log.append(toolName).append(\".log not found.\");\n e.printStackTrace();\n } catch (IOException e) {\n log.append(\"An error occurred while reading resources/\").append(toolName).append(\".log.\");\n e.printStackTrace();\n }\n\n logTxt.setText(log.toString());\n logTxt.setCaretPosition(0);\n }", "title": "" }, { "docid": "9343b2ce3f094609bf3cabf2bef3d53d", "score": "0.5307391", "text": "void writelog(String message) {\n Chat_Area.append(message+\"\\n\");\n }", "title": "" }, { "docid": "5329d763ff4360bc5e534227f6648c01", "score": "0.5304437", "text": "private static void printHTML()\r\n {\r\n \tString fillingHTML;\r\n \t\r\n \tfillingHTML = \"<!DOCTYPE html>\\r\\n\" + \r\n \t\t\t\"<html>\\r\\n\" + \r\n \t\t\t\"<head>\\r\\n\" + \r\n \t\t\t\"<style>\\r\\n\" +\r\n \t\t\t\"table{width: 25%;}\\r\\n\" +\r\n \t\t\t\"table, tr, th{border:1px solid;}\\r\\n\" +\r\n \t\t\t\"</style>\\r\\n\" +\r\n \t\t\t\"<title>Writing in an HTML file</title>\\r\\n\" + \r\n \t\t\t\"</head>\\r\\n\" + \r\n \t\t\t\"<body>\\r\\n\" + \r\n \t\t\t\"<table>\\r\\n\" +\r\n \t\t\t\"<tr>\\r\\n\" + \"<th><i>Name</i></th>\\r\\n\" + \"<th><i>BirthDate</i></th>\\r\\n\" + \"</tr>\\r\\n\";\r\n \t\r\n \tListIterator<Table> iter = table.listIterator();\r\n \twhile(iter.hasNext())\r\n \t{\r\n \t\tTable current = iter.next();\r\n \t\tString date2 = newDate.format(current.getDate());\r\n \t\tSystem.out.printf(\"%-25s %s\\n\",current.getName(), date2);\r\n \t\tfillingHTML += \"<tr>\\r\\n\" +\r\n \t\t\t\t\"<th>\" + current.getName() + \"</th>\\r\\n\" +\r\n \t\t\t\t\"<th>\" + date2 + \"</th>\\r\\n\" + \"</tr>\\r\\n\";\r\n \t}\r\n \tfillingHTML += \"</table>\\r\\n\" + \"</body>\\r\\n\" + \"</html>\\r\\n\";\r\n \twriter.print(fillingHTML);\r\n \twriter.close();\r\n }", "title": "" }, { "docid": "fdef9cadabff39c57184683addcb2371", "score": "0.5300807", "text": "protected void sendPlainText(String message) throws IOException\r\n {\r\n HttpServletResponse response = getViewContext().getResponse();\r\n response.setContentType(\"text/plain\");\r\n\r\n try (PrintWriter out = response.getWriter())\r\n {\r\n out.print(message);\r\n }\r\n\r\n response.flushBuffer();\r\n }", "title": "" }, { "docid": "3abd213e77e69e47f5c5b32ccd54ce65", "score": "0.52954394", "text": "public static final String formatAsHtml(Throwable t) {\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n PrintWriter pw = new PrintWriter(new OutputStreamWriter(baos));\n t.printStackTrace(pw);\n pw.flush();\n String stack = baos.toString();\n stack = stack.replace(\"<\", \"&lt;\");\n stack = stack.replace(\">\", \"&gt;\");\n return \"<pre>\\n\" + stack + \"\\n</pre>\\n\";\n }", "title": "" }, { "docid": "1c076b677502302b3c5f1e76620947dc", "score": "0.5279733", "text": "public static void printText() {\n }", "title": "" }, { "docid": "ad1cf99ada5a68c23519a6ebd07b3a37", "score": "0.5269867", "text": "@Override\r\n protected XMLWriter createXMLWriter() throws Exception {\r\n return new HTMLWriter(System.out);\r\n }", "title": "" }, { "docid": "015f7de3b849c85cb84e1ba1c4d86301", "score": "0.52617824", "text": "public void writeError(String text) {\n this.error.setText(text);\n }", "title": "" }, { "docid": "0d714ca7a9599fbff38a58dcf7a334ac", "score": "0.52581877", "text": "public void SetConsoleLogMessage() {\n\t\tconsolePanelTextArea.setText(\"Show Errors Here!\");\n\t}", "title": "" }, { "docid": "f16c8054ffac178c8a1c1143551d323e", "score": "0.52537465", "text": "protected abstract String postHTML();", "title": "" }, { "docid": "b4119d5cf34961463299ce7798213a07", "score": "0.5246763", "text": "public static native void logWrite(String message) /*-{\n $wnd.GLog.write(message);\n }-*/;", "title": "" }, { "docid": "f6c66ff321f9dad202d6111de48c7e54", "score": "0.52457345", "text": "@Override\r\n\tpublic void viewChatLog(String 날짜, String 채팅방명) {\n\t\t\r\n\t}", "title": "" }, { "docid": "fdf2a2464e21c9b4e62425c23915f1b2", "score": "0.52352744", "text": "public void htmllog(String strStepName,String strDescription,Status strStatus, WebDriver browser)\n\t\t\t{\n\t\t\t\t \n\t\t\t\t if (strStatus.equals(Status.PASS))\n\t\t\t\t {\n\t\t\t\t\tPass++;\n\t\t\t\t\tupdateResult(true);\n\t\t\t\t }\n\t\t\t\t \n\t\t\t\t if (strStatus.equals(Status.FAIL))\n\t\t\t\t {\n\t\t\t\t\t updateResult(false);\n\t\t\t\t\tFail++;\n\t\t\t\t\tFinalTC_Status = \"FAIL\";\n\t\t\t\t\t//String testCaseNameAlone = TestCaseHtmlfile.substring(TestCaseHtmlfile.lastIndexOf(\"\\\\\"),TestCaseHtmlfile.length()-1);\n\t\t\t\t\tscreenshotName = \"Screenshot\";\n\t\t\t\t\t//ScreenShotPath = DriverScript.ScreenshotsPath+ \"\\\\\"+screenshotName;\n\t\t\t\t\tScreenShotPath1 = ScreenShotPath+ \"\\\\\"+screenshotName;\n\t\t\t\t\t//ScreenShotPath1 = screenshotName;\n\t\t\t\t\t\n\t\t\t\t\t//Util.takeScreenShot(ScreenShotPath1);\n\t\t\t\t\t\n\t\t\t\t\tUtil.takeFailureScreenShot(ScreenShotPath1, browser);\n\t\t\t\t\tinc++;\n\t\t\t\t\t\n\t\t\t\t }\n\t\t\t\t BufferedWriter bw = null;\n\t\t\t\t String row = null;\n\t\t\t try {\n\t\t\t bw = new BufferedWriter(new FileWriter(TestCaseHtmlfile, true));\n\t\t\t // row = \"<tr><td>\"+DriverScript.iteration+\"</td><td>\"+DriverScript.subiteration+\"</td><td>\"+strStepName+\"</td><td>\"+strDescription+\"</td><td>\"+strStatus+\"</td><td>\"+Util.getcurrentdate(\"H:mm:ss\")+\"</td></tr>\";\n\t\t\t \n\t\t\t row = \"<tr><td>\"+stepNo+\"</td><td>\"+strStepName+\"</td><td>\"+strDescription+\"</td><td>\";\n\t\t\t stepNo++;\n\t\t \t if (strStatus.equals(Status.FAIL))\n\t\t \t {\n\t\t \t\t// int i = DriverScript.subiteration -1; \n\t\t \t\t //+ DriverScript.testcase +\" \"+DriverScript.iteration+\" \"+i+(inc-1)+\".jpg\" \n\t\t \t\t row+=\"<a href='.\\\\Screenshots\\\\\"+screenshotName+\"'\"+\"target=\" + \"about_blank\" + \"><font color = red><B>\"+strStatus+\"</B></font>\";\n\t\t \t } \n\t\t \t else if (strStatus.equals(Status.PASS))\n\t\t \t {\n\t\t \t\t row+=\"<font color = green><B>\"+strStatus+\"</B></font>\";\n\t\t \t\t \n\t\t \t }\n\t\t \t else\n\t\t \t {\n\t\t \t\t row+=\"<b>\"+strStatus+\"</b>\";\n\t\t \t }\n\t\t \t row+=\"</td><td>\"+Util.getCurrentDatenTime(\"H:mm:ss\")+\"</td></tr>\";\n\t\t\t bw.write(row);\n\t\t\t bw.newLine();\n\t\t\t \n\t\t\t }\n\t\t\t catch (Exception e)\n\t\t\t {\n\t\t\t \t \n\t\t\t }\n\t\t\t finally\n\t\t\t {\n\t\t\t \t try\n\t\t\t \t {\n\t\t\t \t\t bw.close();\n\t\t\t \t }\n\t\t\t \t catch (Exception e)\n\t\t\t \t {\n\t\t\t \t\t \n\t\t\t \t }\n\t\t\t }\n\n\t\t\t}", "title": "" }, { "docid": "8c744e4f001407d024cf81545d8869aa", "score": "0.5220798", "text": "public void writeLog(String logText){\n\t\tlogger.info(\" TASK=WRITING_LOG STATUS=STARTING\");\n\t\t\n\t\t\n\t\t\n\t\tString toWrite = getRunInfo() + \"-----FULL LOG-----\\n\" + logText;\n\t\ttoWrite = Main.trimLongString(toWrite);\n\t\tString logObject = (String) props.get(\"log_object_name__c\");\n\t\tif (logObject == null || logObject.equals(\"\") ){\n\t\t\tlogger.info(\" TASK=WRITING_LOG STATUS=SKIPPING\");\n\t\t\treturn;\n\t\t}\n\t\t\n\t\ttry{\n\t\t\tPreparedStatement writePS = conn.prepareStatement(INSERT_LOG_SQL);\n\t\t\twritePS.setString(1, toWrite);\n\t\t\tint numInserted = writePS.executeUpdate();\n\t\t\tif(numInserted == 1){\n\t\t\t\tlogger.debug(\" TASK=WRITING_LOG SUCCESS=TRUE\");\n\t\t\t}else{\n\t\t\t\tlogger.error(\" TASK=WRITING_LOG SUCCESS=FALSE\");\n\t\t\t}\n\t\t\twritePS.close();\n\t\t}catch(SQLException ex){\n\t\t\tlogger.error( \" TASK=WRITING_LOG STATUS=EXCEPTION\",ex);\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "a7c9eefdec7cac545861d6a0beb169bb", "score": "0.52186453", "text": "static void writeConsole(String message){\n try {\n bw.write(message + \"\\n\");\n bw.flush();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "90ba8281a513779c8c08c661923752d7", "score": "0.52178526", "text": "public void writeToLCD(String text) {\n\t\tLCD.setText(text);\n\t}", "title": "" }, { "docid": "9f466ea1b2903587b351e4d847380d63", "score": "0.5216305", "text": "public void log() {\n root.log(\"\");\n\n wordToNode.forEach((w, n) -> LOGGER.info(\"{} : {} \", w.getCoveredText(), n.toString()));\n }", "title": "" }, { "docid": "db6deede271c300c44d6e520c59b8415", "score": "0.52147794", "text": "private void logTime() {\n StringBuilder sb = new StringBuilder(logsLabel.getValue());\n sb.append(\"<b>\").append(new Date().toString()).append(\"</b><br/>\");\n logsLabel.setValue(sb.toString());\n }", "title": "" }, { "docid": "b763679f4ee7e45650193ac542be026f", "score": "0.52118814", "text": "private static void output(String text) {\n JOptionPane.showMessageDialog(\n null, \n text, \n \"\", \n JOptionPane.PLAIN_MESSAGE);\n }", "title": "" }, { "docid": "d5c0e1aac011e2d3d0e30f0efadf74ae", "score": "0.5200263", "text": "public static void WriteLog( String strMessage )\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tboolean blnDisplay = true;\r\n\t\t\t\r\n\t\t\tWriteLog( strMessage, blnDisplay );\r\n\t\t}\r\n\t\tcatch( Exception excError )\r\n\t\t{\r\n\t\t\t// Display Error Message\r\n\t\t\texcError.printStackTrace( );\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "9cd8f5d9e51c233876000e2341c016b3", "score": "0.5194374", "text": "public static void textUI() {\n\n System.out.print(\n \"Hello from\" + \"\\n\" + LOGO + DIVIDER\n + \"Hello! I'm Duke\" + \"\\n\" + \" \"\n + \"What can I do for you?\" +\n DIVIDER);\n }", "title": "" }, { "docid": "92dcbc526f95bc8197e7ac8c4f00153a", "score": "0.5183017", "text": "public static void setup(String txtOutputAddress,String htmlOutputAddress,Level visible) throws IOException {\n Logger logger = Logger.getLogger(\"\");\n\n logger.setLevel(visible);\n fileTxt = new FileHandler(txtOutputAddress);\n fileHTML = new FileHandler(htmlOutputAddress);\n\n // create txt Formatter\n formatterTxt = new SimpleFormatter();\n fileTxt.setFormatter(formatterTxt);\n logger.addHandler(fileTxt);\n\n // create HTML Formatter\n formatterHTML = new HTMLFormatter();\n fileHTML.setFormatter(formatterHTML);\n logger.addHandler(fileHTML);\n }", "title": "" }, { "docid": "fdd4e967dd3b8c098a4b863f537250b3", "score": "0.5182526", "text": "public static native void logWrite(String message, String color) /*-{\n $wnd.GLog.write(message, color);\n }-*/;", "title": "" }, { "docid": "1e073f7fbdebd38ff8be312362fbeb15", "score": "0.51797986", "text": "public void loggerMessage(String text) {\r\n\t\tLOGGER.info(text);\r\n\t}", "title": "" }, { "docid": "c800caa37c4590140644460a1073fe62", "score": "0.5177392", "text": "public void log(final String s) {\r\n\t\ttry {\r\n\t\t\tEventQueue.invokeLater(new Runnable() {\r\n\t\t\t\tpublic void run() {\r\n\t\t\t\t\tarea.append(s + \"\\n\");\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t} catch (Exception e) {\r\n\t log(e.getMessage());\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "6c047174114a445f36130ad267726008", "score": "0.5166056", "text": "public void write( int selector, String text );", "title": "" }, { "docid": "b5b3dbb7b8911f4788370430c7cda9c0", "score": "0.51570016", "text": "protected void send(String text) {\n out.printf(\"%s\\r\\n\", text);\n }", "title": "" }, { "docid": "c6ebc563fdecd2b04b1d21e378f13567", "score": "0.5155379", "text": "@Override\n\tpublic void writeLog() {\n\n\t}", "title": "" }, { "docid": "ff99e28568074cca4ecab3cc54138b12", "score": "0.51540387", "text": "public void addLogText(String s) {\n log.append(s + \"\\n\\n\");\n }", "title": "" }, { "docid": "582d2a7e9a049f6d834e5c5201e40785", "score": "0.5142172", "text": "public static void writeToScreen(String message){\n\t\tLCD.clearDisplay();\n\t\tLCD.drawString(message, 0, 0);\n\t\tLCD.refresh();\n\t}", "title": "" }, { "docid": "ea8af1d885dc13bc2a883f797a486606", "score": "0.5136109", "text": "public static native void logWriteUrl(String url) /*-{\n $wnd.GLog.write(url);\n }-*/;", "title": "" }, { "docid": "4bd314ff55e078461f3199922e50acde", "score": "0.5125427", "text": "void write(String text) throws Exception;", "title": "" }, { "docid": "950cdb316a26b7e5d451b2b800afe064", "score": "0.5124267", "text": "void write (PrintWriter w) {\n\t\tString cleanText = text.replace('\\n',' ').replace('\"',' ');\n\t\tcleanText = AceEntityMention.addXmlEscapes(cleanText);\n\t\tw.println (\" <name NAME=\\\"\" + cleanText + \"\\\">\");\n\t\tAceEntityMention.writeCharseq (w, extent, text);\n\t\tw.println (\" </name>\");\n\t}", "title": "" }, { "docid": "e4a8d133526f356e12b86cbc5e088c73", "score": "0.5124024", "text": "public void log(String str)\n\t{\n\t\tthis.area.append(this.getTimestamp() + str + \"\\n\");\n\t}", "title": "" }, { "docid": "15c8bc40f36b1072fa1bec53e9a27d2f", "score": "0.51203364", "text": "@Override\n public void writeString(String name, String text) {\n System.out.println(name + \": \" + text);\n if(!usernameList.contains(name)) {\n usernameList.add(name);\n }\n int index = usernameList.indexOf(name);\n String colorCode = \"\";\n if(index < colors.length) {\n colorCode = colors[index];\n }\n else{\n Random randomGenerator = new Random();\n index = randomGenerator.nextInt(colors.length);\n colorCode = colors[index];\n }\n messageText+=(\"<font color=\"+colorCode+\">\" + name + \": \" + \"</font>\" + text + \"\\n<br>\");\n chatMessageBox.setText(messageText);\n }", "title": "" }, { "docid": "50f8ef69a0dc36c1b01db20d140fdb70", "score": "0.51100236", "text": "@Override public void println() {\n\n\t\tmessageArea.writeInformationMessage(System.getProperty(\"line.separator\"));\n\t}", "title": "" }, { "docid": "96abc90891fbfbf3e427819c96da07af", "score": "0.5103103", "text": "public void logw(String s) {\n String name = getName();\n Rlog.w(name, \"[Mtk] \" + s);\n }", "title": "" }, { "docid": "a786cc8c56a025bc8506fb44793c26f6", "score": "0.5095809", "text": "private static void output(String text, String title, Font font, \n Color background, Color foreground, String imageName) {\n // create a graphics object to display the graphical things\n JTextArea area = new JTextArea();\n // assign the font and colors to the area\n area.setFont(font);\n area.setBackground(background);\n area.setForeground(foreground);\n area.setText(text);\n // create a \"icon\" for the picture\n Icon picture = new ImageIcon(imageName);\n // pass the area and the picture to the dialog\n JOptionPane.showMessageDialog(null,area,title,\n JOptionPane.PLAIN_MESSAGE,picture); \n }", "title": "" }, { "docid": "d95d13d913c2d0ddc78247823094b426", "score": "0.5094135", "text": "public static synchronized String getLog() {\n\t\treturn \"<table>\" + getText() + \"</table>\";\n\t}", "title": "" }, { "docid": "361923024994ea20350ef8906f2fb07e", "score": "0.50936955", "text": "private ReportDialog(Window window,String html) {\n super(window); \n initComponents();\n\n setIcon(UniIcon.FOR_ACTION__O_SYSTEMU);\n \n //TRANS _UPS-FORM\n setTitle(Localizer.tr(\"About system\"));\n HTML = html;\n textPanel.setText(HTML);\n \n textPanel.setCaretPosition(0);\n \n UniIcon.FOR_BUTTON__TISK.setToButton(btn_Print);\n \n }", "title": "" }, { "docid": "5c319cd3bf20c68db01afd85cf2d94fa", "score": "0.5082612", "text": "public void setText(String text) {\r\n\tif (isInEditionMode()) {\r\n\t editor.setHTML(text);\r\n\t} else {\r\n\t viewer.setHTML(text);\r\n\t}\r\n }", "title": "" }, { "docid": "42b7a3868120ea1cd93e89f3b0cf6b6a", "score": "0.5075961", "text": "public static void logw(String message) {\n if (LOG_ENABLED) {\n Log.w(getTag(), message);\n }\n }", "title": "" }, { "docid": "fd14f5681301106afe2d087ef6909741", "score": "0.50503373", "text": "public static String getHtmlText(String text) {\r\n String htmlText = \"\";\r\n char textChar[] = text.toCharArray();\r\n \r\n for(int i=0; i<textChar.length; i++) {\r\n int ascii = textChar[i];\r\n if(ascii == 13) {\r\n htmlText += \"<br />\";\r\n }\r\n else {\r\n htmlText += textChar[i];\r\n }\r\n }\r\n \r\n return htmlText;\r\n }", "title": "" }, { "docid": "f08ae74892a903bef62c72733cab07d8", "score": "0.5036056", "text": "private static void addTextToToastLog( Type type, final int conf, final String text )\n {\n final Context context = getContext(conf);\n\n // Log displayed on the screen\n if ( context != null )\n {\n // http://stackoverflow.com/questions/18280012/how-to-replace-the-system-out-with-toasts-inside-a-thread/18280318#18280318\n // http://stackoverflow.com/a/16886486\n /*\n * activity.runOnUiThread(new Runnable()\n * \t\t{\n * \t\tpublic void run()\n * \t\t\t{\n * \t\t\tToast.makeText(activity, \"Hello\", Toast.LENGTH_SHORT).show();\n * \t\t\t}\n * \t\t});\n */\n\n new Handler( Looper.getMainLooper() ).post( new Runnable()\n {\n @Override\n public void run()\n {\n Toast.makeText( context, text, Toast.LENGTH_SHORT).show();\n }\n });\n\n // Toast.makeText( context[0], text, Toast.LENGTH_SHORT ).show();\n }\n }", "title": "" }, { "docid": "429b3fa628edfd1253548e58bbbef976", "score": "0.502196", "text": "public String toHTML();", "title": "" }, { "docid": "1d5e183124aa89508a19d79b13d32e5c", "score": "0.501474", "text": "public void writeLine(String text, Object... params)\r\n {\r\n log.info(ConsoleColor.RESET + String.format(text, params));\r\n }", "title": "" }, { "docid": "ecded3197da1419ed005111520175580", "score": "0.50142765", "text": "public void setStdout(String stdoutContent) {\n if(getView() == null) {\n LogUtils.logError(\"View was null when calling setStdout! Not setting anything.\");\n return;\n }\n TextView stdout = getView().findViewById(R.id.playgroundStdout);\n String formattedStdout = formatter.formatWhitespaces(stdoutContent);\n stdout.setText(Html.fromHtml(formattedStdout, Html.FROM_HTML_MODE_COMPACT));\n }", "title": "" }, { "docid": "be43244c950d11ead170a70ccf79253a", "score": "0.50117815", "text": "public static void setup(String txtOutputAddress,String htmlOutputAddress) throws IOException {\n Logger logger = Logger.getLogger(\"\");\n\n logger.setLevel(Level.INFO);\n fileTxt = new FileHandler(txtOutputAddress);\n fileHTML = new FileHandler(htmlOutputAddress);\n\n // create txt Formatter\n formatterTxt = new SimpleFormatter();\n fileTxt.setFormatter(formatterTxt);\n logger.addHandler(fileTxt);\n\n // create HTML Formatter\n formatterHTML = new HTMLFormatter();\n fileHTML.setFormatter(formatterHTML);\n logger.addHandler(fileHTML);\n }", "title": "" }, { "docid": "686f3365a17b8de08eab0c2016c5295b", "score": "0.5011338", "text": "public static void WriteLog( String strMessage, boolean blnDisplay )\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tBufferedWriter buwLogFile = null;\r\n\t\t\tString astrMessageLines[] = null;\r\n\t\t\tint intIndex = 0;\r\n\t\t\t\r\n\t\t\t// yyyy/mm/dd\r\n\t\t\tSimpleDateFormat sdfYearMonthDayTime = new SimpleDateFormat( \"yyyy/MM/dd hh:mm:ss\" );\r\n\t\t\t\r\n\t\t\tString strNow = sdfYearMonthDayTime.format( new Date( ) );\r\n\t\t\t\r\n\t\t\t// Display the error message?\r\n\t\t\tif( blnDisplay == true )\r\n\t\t\t{\r\n\t\t\t\t// No, warn the user\r\n\t\t\t\tJOptionPane.showMessageDialog( null, strMessage, \"WriteLog\", JOptionPane.OK_OPTION );\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// Append a date/time stamp\r\n\t\t\tstrMessage = strNow + \" - \" + strMessage + \"\\n\";\r\n\t\t\t\r\n\t\t\t// Get a log file\r\n\t\t\tbuwLogFile = GetLogFile( );\r\n\t\t\t\r\n\t \t// Is the file OK?\t\r\n\t\t\tif( buwLogFile != null )\r\n\t\t\t{\r\n\t\t\t\t// Yes, so log message( use newline function to ensure cross-platform compatibility )\r\n\t\t\t\tastrMessageLines = strMessage.split( \"\\n\" );\r\n\t\t\t\tfor( intIndex = 0; intIndex < astrMessageLines.length; intIndex++ )\r\n\t\t\t\t{\r\n\t\t\t\t\tbuwLogFile.write( astrMessageLines[ intIndex ] );\r\n\t\t\t\t\tbuwLogFile.newLine( );\r\n\t\t\t\t}\r\n\t\t\t\t// Flush buffer\r\n\t\t\t\tbuwLogFile.flush( );\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch( Exception excError )\r\n\t\t{\r\n\t\t\t// Display Error Message\r\n\t\t\texcError.printStackTrace( );\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "ffa22cbb7e017f9c45cc3ac47bda84bf", "score": "0.500734", "text": "public void sendPrintout() {\n PrinterJob job = PrinterJob.getPrinterJob();\n\n PrintableText printobj = new PrintableText(content.toString());\n\n job.setPrintable(printobj);\n\n if (job.printDialog()) {\n try {\n job.print();\n } catch (PrinterException e) {\n e.printStackTrace();\n }\n }\n }", "title": "" }, { "docid": "244a3b1adaef8335f62e89e977951a50", "score": "0.5006144", "text": "public void println(String text) {\n int indent = currentIndent;\n if (indent < 0) {\n indent = 0;\n }\n writer.println(Indent.indent(indent) + text);\n }", "title": "" }, { "docid": "90784a6595877c00d7509aabd6935d25", "score": "0.49904722", "text": "@SuppressWarnings(\"unchecked\")\n\n // this method is basically a macro of the steps needed to print messages to the textbox\n void text(String message) {\n textArea.insert(message + \"\\n\", WIDTH);\n }", "title": "" }, { "docid": "1fa9224f8537af52cb7f4c8afd18ecee", "score": "0.49892336", "text": "public static String reportLog(String message) {\r\n if (DEBUG) {\r\n Reporter.setEscapeHtml(false);\r\n Date date = new Date();\r\n log.info(\"-- \" + message);\r\n Reporter.log(dateFormat.format(date) + \" /\" + \" \" + message);\r\n }\r\n return message;\r\n }", "title": "" }, { "docid": "4462ec03586f4195c4b73bdbc6a971e2", "score": "0.49869215", "text": "public void format(Writer w, ResultSet resultSet)\n { \n PrintWriter pw = new PrintWriter(w) ;\n write(pw, resultSet) ;\n pw.flush() ;\n }", "title": "" }, { "docid": "d2d1fe06279f9a7e0db0dbdf099b1ef3", "score": "0.49824598", "text": "public void WriteMessage( String message )\n {\n Calendar TimeStamp = Calendar.getInstance();\n SimpleDateFormat TimeStampFormat = new SimpleDateFormat(\"yyyy MM dd::hh:mm:ss:SSS\");\n\n String TimeString = TimeStampFormat.format(TimeStamp.getTime());\n\n MessageArea.append( TimeString + \":: \" + message + \"\\n\");\n\n MessageArea.setCaretPosition( MessageArea.getDocument().getLength() );\n\n }", "title": "" }, { "docid": "78c293df38d45da0350da46fe90bfbba", "score": "0.49813956", "text": "public void write( String s )\n throws IOException\n {\n log.info( \"\\n\" + s ); \n }", "title": "" }, { "docid": "d705424947b4699d872d6564cbc5e446", "score": "0.49813315", "text": "@Override\n\tpublic void doTag() throws JspException, IOException {\n\t\ttry {\n\t\t\tthis.getJspContext().getOut().println(buildHtml(basePath, selfUriName, currentUri));\n\t\t} catch (IOException e) {\n\t\t\tthrow new JspException(e);\n\t\t}\n\t}", "title": "" }, { "docid": "8c336403d08feb5304c212ea4f758dba", "score": "0.49807617", "text": "protected void write(String log) {\n try (PrintWriter pw = new PrintWriter(fileLog)) {\n pw.print(log);\n pw.flush();\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "d1b124f721cd50c0565c0e99b90a2031", "score": "0.49756575", "text": "public void output() {\n\t\tSystem.out.printf(\"Date of review: %s\\n\", date);\n\t\tSystem.out.printf(\"Name: %s\\n\", name);\n\t\tSystem.out.printf(\"Review Rating: %.2f\\n\", rating);\n\t\tSystem.out.printf(\"Title: %s\\n\", title);\n\t\tSystem.out.printf(\"Body: %s\\n\\n\", body);\n\t}", "title": "" }, { "docid": "a111a396e295cfd648115603ac1fb489", "score": "0.49725342", "text": "public static String escapeHtml(CharSequence text) {\n StringBuilder out = new StringBuilder();\n withinStyle(out, text, 0, text.length());\n return out.toString();\n }", "title": "" }, { "docid": "e2887c4576ab54e6bb2ff4b226d65b70", "score": "0.4972024", "text": "void _log (int logLevel, String message) {\n if (logLevel > this.logLevel)\n return;\n \n message = dateFormatter.format(System.currentTimeMillis()) + \" >> \" + message;\n \n if (logWriter != null) {\n logWriter.write(message);\n logWriter.flush();\n }\n System.out.print(message);\n }", "title": "" }, { "docid": "efdbfd38e437c6046b78c129f96464c0", "score": "0.49716315", "text": "public void printToLog(StringBuffer msg);", "title": "" }, { "docid": "e7a7a0636ea559d2c516710270671300", "score": "0.4969091", "text": "@Override\n\tpublic void text() {\n\t\tSystem.out.println(\"채점을 합니다\");\n\t}", "title": "" } ]
063ecb8e17396442a0e4e6ac43e05370
Console cons = System.console(); String pas = cons.readLine("Password: "); System.out.println(pas);
[ { "docid": "8440b19fad8c034799cb6dabfb8d45b7", "score": "0.0", "text": "public static void main(String[] args) {\n\n\n System.out.println(\"Write, please, width: \");\n Scanner scanner = new Scanner(System.in);\n int width = scanner.nextInt();\n\n System.out.println(\"Write, please, height: \");\n int heigth = scanner.nextInt();\n\n System.out.println(\"Thx, you've entered width: \" + width + \" and height: \" +heigth);\n System.out.println(\"Result of task a: \");\n int i;\n int j;\n//--------------------------------------------------------------\n for (i = 0; i<heigth; i++) {\n for (j = 0; j<width; j++) {\n if (i == 0 || i == heigth -1){\n System.out.print(\"*\");\n } else if (j == 0 || j == width -1) {\n System.out.print(\"*\");\n } else {\n System.out.print(\" \");\n }\n }\n System.out.println();\n }\n// -----------------------------------------\n System.out.println(\"Result of task b: \");\n for (i = 0; i < heigth; i++) {\n for (j = 0; j < width; j++) {\n if(i==0 || j==0 || i==heigth-1 || j ==width-1){\n System.out.print(\"*\");\n }\n else\n if(Math.abs(i-j*(double)(heigth-1)/(width-1))<0.40 || Math.abs(j-i*(double)(width-1)/(heigth-1))<0.40) {\n System.out.print(\"*\");\n }\n else if (Math.abs(i-(width-1 - j)*(double)(heigth-1)/(width-1))<0.40 || Math.abs(j-(heigth-1 - i)*(double)(width-1)/(heigth-1))<0.40){\n System.out.print(\"*\");\n } else\n {\n System.out.print(\" \");\n }\n }\n System.out.println();\n }\n// -------------------------------------\n System.out.println(\"Result of task c: \");\n for (i = 0; i < heigth; i++) {\n\n for (j = 0; j < width; j++) {\n\n if ((i+j) % 2 == 0 ) {\n System.out.print(\"*\");\n } else\n {\n System.out.print(\" \");\n }\n }\n System.out.println();\n }\n }", "title": "" } ]
[ { "docid": "33bf2074f825abe6b74c2796e1219894", "score": "0.8221429", "text": "public static void main(String[]args)\r\n {\n\t Console cons=System.console();\r\n\t String username=cons.readLine(\"lisi\");\r\n\t if(username==null)\r\n\t \r\n\t {\r\n\t\t System.out.println(\"username is not found!\");\r\n\t }\r\n\t \r\n\t char []passwd=cons.readPassword(\"Password: \");\r\n\t //display output on console\r\n\t System.out.println(\"Hello \"+username+\"your password is: \"+passwd);\r\n }", "title": "" }, { "docid": "7a2ca8bb1d892c11fbbbd17f8143bf94", "score": "0.7656247", "text": "public String getPasswordInput(){\r\n\t\tString password = null;\r\n\t\ttry {\r\n\t\t\tConsole console = System.console();\r\n\t\t\tchar[] input = console.readPassword();\r\n\t\t\tpassword = String.copyValueOf(input);\r\n\t\t} catch (Exception e){\r\n\t\t\tScanner sc = new Scanner(System.in);\r\n\t\t\tpassword = sc.nextLine();\r\n\t\t}\r\n\t\treturn password;\r\n\t}", "title": "" }, { "docid": "6f31094bde01328cce47a3c4405ccea8", "score": "0.744216", "text": "public static void main(String[] args) {\n\t\tConsole cons=System.console();\n\t\tString username=cons.readLine(\"user name:\");\n\t\tchar []password=cons.readPassword(\"Password:\");\n\t}", "title": "" }, { "docid": "64ee74aa641a8611d76bce30446832d3", "score": "0.70680976", "text": "private String password(){\n Scanner sc = new Scanner(System.in);\n System.out.println(\"Veuillez votre mot de passe :\");\n String password = sc.nextLine();\n sc.close();\n return password;\n }", "title": "" }, { "docid": "491596c6a09f804760c56f8a6ed14a70", "score": "0.6990728", "text": "public String promptPassword(String msg) {\n if (!jlineInit()) {\n java.io.Console console = System.console();\n if (console == null)\n return promptStdIn(msg);\n char[] pass = console.readPassword(msg);\n if (pass == null)\n return null;\n return new String(pass);\n }\n\n // use reflection to call JLine ConsoleReader.readLine\n try {\n return (String) jline.getClass().getMethod(\"readLine\", new Class[] { String.class, Character.class })\n .invoke(jline, new Object[] { msg, Character.valueOf('#') });\n } catch (Exception e) {\n throw Err.make(e);\n }\n }", "title": "" }, { "docid": "70941102c87af5dbc2f7ffa5ec888b7f", "score": "0.6893505", "text": "public String getPassword(){\n String password;\n Scanner sc = new Scanner(System.in);\n this.printOut(\"Please enter password\");\n password = sc.nextLine(); // get password user typed in\n return password;\n }", "title": "" }, { "docid": "3ab95731ddd9f0e1809109cfdeb5197e", "score": "0.670199", "text": "private static void getUserInput() {\n readInputFromConsole();\n }", "title": "" }, { "docid": "8e51cf49e7c90393a6045649b29b127d", "score": "0.6618421", "text": "public String promptAndRead(String s) throws Exception {\r\n\t\tSystem.out.print(s);\r\n\t\tSystem.out.flush();\r\n\r\n\t\tBufferedReader br;\r\n\t\tbr = new BufferedReader(new InputStreamReader(System.in));\r\n\r\n\t\tString line;\r\n\t\tline = br.readLine();\r\n\t\treturn line;\r\n\t}", "title": "" }, { "docid": "a9096410e390f0df079dfbff462db835", "score": "0.6424491", "text": "String promptPassword( String title );", "title": "" }, { "docid": "b0c9050694a76844e7c0ea863b4d8d30", "score": "0.638489", "text": "private char[] readPassword(String description, boolean echoInput) {\n getConsole().print(description + \": \");\n return getConsole().readPassword(echoInput);\n }", "title": "" }, { "docid": "d3f00fca5120f2d72686c92c00ea8ce4", "score": "0.6357669", "text": "static String getUserInput() {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString s = null;\n\t\ttry {\n\t\t\ts = br.readLine();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn s;\n\t}", "title": "" }, { "docid": "257d75ed109caaf960ca490f921a73ca", "score": "0.6347823", "text": "private void getUserInput() {\n try {\n userInput = sysIn.readLine();\n } catch (IOException e) {\n consoleError = true;\n }\n }", "title": "" }, { "docid": "0b028c2ca4dd939183c315009aefd135", "score": "0.6335192", "text": "public static String read_command()\n {\n Scanner reader = new Scanner(System.in);\n return reader.nextLine();\n }", "title": "" }, { "docid": "faf98fed0c4c224d51102567957adf22", "score": "0.63274693", "text": "public String readCommand() {\n Scanner sc = new Scanner(System.in);\n String str = sc.nextLine();\n return str;\n }", "title": "" }, { "docid": "e621df2b2b10ece8f44c35bdf0dfc4e7", "score": "0.63107395", "text": "private String readLine() {\n\t\tString sRet = \"syn\";\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\ttry {\n\t\t\tsRet = br.readLine();\n\t\t\t//br.close();\n\t\t} catch (IOException exc) {\n\t\t\tSystem.out.println(\"cot:\" + exc);\n\t\t}\n\t\treturn sRet.toUpperCase();\n\t}", "title": "" }, { "docid": "da1abbd1f5dbc84b4d0077afe07dc183", "score": "0.62644804", "text": "public static String getString() throws IOException\n {\n InputStreamReader input = new InputStreamReader(System.in);\n BufferedReader b = new BufferedReader(input);\n String str = b.readLine();//reading the string from console\n return str;\n }", "title": "" }, { "docid": "b7e0d7a5a035da526301cd26a281c317", "score": "0.625969", "text": "String enterPassword(String password);", "title": "" }, { "docid": "8155ba943b53547473eb4478d1f1681c", "score": "0.6229804", "text": "static String input(String prompt) {\n String inputLine = \"\";\n System.out.print(prompt);\n try {\n java.io.InputStreamReader sys = new java.io.InputStreamReader(System.in);\n java.io.BufferedReader inBuffer = new java.io.BufferedReader(sys);\n inputLine = inBuffer.readLine();\n } catch (Exception e) {\n String err = e.toString();\n System.out.println(err);\n }\n return inputLine;\n }", "title": "" }, { "docid": "96e2715731a354aba0c468664eb0338f", "score": "0.61435103", "text": "String promptForPassword(final String prompt);", "title": "" }, { "docid": "88f304daa6cab7abf29dd463cbe5fbdf", "score": "0.6125932", "text": "public void waitForEnterInput(){\n System.out.println(\"Press Enter to continue...\");\n System.console().readPassword(); //Hides any characters that the user may type before pressing Enter\n\n }", "title": "" }, { "docid": "7bbbd716179a82a6a2a9c4ff3a1b748c", "score": "0.60579115", "text": "private static void printCommandPrompt() {\r\n System.out.print(\"\\nECSClient> \");\r\n }", "title": "" }, { "docid": "d182daff0cfa4466ed38238ad5ee6dd6", "score": "0.6056588", "text": "static String readEntry(String prompt) {\n try {\n StringBuffer buffer = new StringBuffer();\n System.out.print(prompt);\n System.out.flush();\n int c = System.in.read();\n while(c != '\\n' && c != -1) {\n buffer.append((char)c);\n c = System.in.read();\n }\n return buffer.toString().trim();\n } catch (IOException e) {\n return \"\";\n }\n }", "title": "" }, { "docid": "ef0e2420254862af64f3560e7393933c", "score": "0.60028094", "text": "public static void main(String[] args) {\n\n Console console = System.console();\n\n if (console == null) {\n System.err.println(\"No hay consola.\");\n System.exit(1);\n }\n\n String nombre = console.readLine(\"%s\", \"Escribe tu nombre: \");\n\n System.out.println(\"Hola \" + nombre);\n }", "title": "" }, { "docid": "c0a6c501ce67097b7fbcbd49ea183b50", "score": "0.59890854", "text": "public static String readLine() {\n InputStreamReader inStream = new InputStreamReader(System.in);\n BufferedReader reader = new BufferedReader(inStream);\n String line = \"\";\n try {\n line = reader.readLine();\n } catch (IOException ex) {\n // This should never happen\n Display.printLine(ex.getMessage() + \"\\n Im sorry this should not happen.\");\n }\n return line;\n }", "title": "" }, { "docid": "8f95b45b873ec6850dab2a7bf9a4e489", "score": "0.5979579", "text": "protected String getInputFromConsole() {\r\n command = input.nextLine();\r\n return command;\r\n }", "title": "" }, { "docid": "f9df375c857b3b9a9169bda6c1ac5954", "score": "0.5875208", "text": "public static String readLine()\n { int ch;\n String line = \"\";\n boolean done = false;\n while (!done)\n { try\n { ch = System.in.read();\n if (ch < 0 || (char)ch == '\\n')\n done = true;\n else if ((char)ch != '\\r')\n line = line + (char) ch;\n }\n catch(IOException e)\n { done = true;\n }\n }\n return line;\n }", "title": "" }, { "docid": "a954209b1015e8cc210afd8a1e431fa8", "score": "0.586521", "text": "private String getPassword(String[] args) throws IOException {\r\n String password;\r\n if( options.getBoolean(\"nopass\", false) ) {\r\n password = \"\";\r\n }\r\n else if(args.length > 1) {\r\n password = args[1]; // always after username if present\r\n if( password == null || password.isEmpty() ) {\r\n throw new IllegalArgumentException(\"Password is empty\");\r\n }\r\n if( password.startsWith(\"env:\") && password.length() > 4 ) {\r\n String variableName = password.substring(4);\r\n password = System.getenv(variableName);\r\n if( password == null || password.isEmpty() ) {\r\n throw new IllegalArgumentException(String.format(\"Environment variable %s does not contain a password\", variableName));\r\n }\r\n }\r\n }\r\n else {\r\n password = Input.getConfirmedPasswordWithPrompt(String.format(\"Choose a password for %s\",args[0])); // throws IOException, or always returns value or expression\r\n if( password == null || password.isEmpty() ) {\r\n throw new IllegalArgumentException(\"Input password is empty\");\r\n }\r\n }\r\n return password;\r\n }", "title": "" }, { "docid": "e8498a4a8c8bd74945c757faec81e750", "score": "0.5848396", "text": "public static void main(String[] args) {\n String input = \"\";\r\n System.out.println(\"Welcome To FYP Management System\\nEnter username and pass now !\");\r\n \r\n // input = new Scanner(System.in).nextLine();\r\n\r\n System.out.print(\"Condition:\\n\");\r\n System.out.println(\"Running.....:\");\r\n\r\n }", "title": "" }, { "docid": "3b557e4e410fa4f85bed12cd6a4c77b9", "score": "0.5814308", "text": "String readString(String prompt);", "title": "" }, { "docid": "6440677a7f57e9265c823b0cb3284992", "score": "0.5793728", "text": "private String[] promptUserAndPass()\n\t{\n\t\tString[] result = new String[2];\n\t\tresult[0] = scanString(\"Enter your E-Mail:\");\n\t\tresult[1] = scanString(\"Enter your password:\");\n\t\treturn result;\n\t}", "title": "" }, { "docid": "354c8f678513d305825c527ce695026a", "score": "0.57855", "text": "public static String getUserInput(String msg){\n System.out.print(msg);\n Scanner scan = new Scanner(System.in);\n return scan.nextLine();\n }", "title": "" }, { "docid": "5c3e17d2d3b7b9810ec0749bcef4ef3c", "score": "0.5781575", "text": "private static String readString6(String prompt) {\n Console console = System.console();\n if (console == null) {\n throw new IllegalStateException(\"不能使用控制台\");\n }\n return console.readLine(prompt);\n }", "title": "" }, { "docid": "31a7bd1bbe41565b3c245d20358d6ccb", "score": "0.5781007", "text": "String getPassword();", "title": "" }, { "docid": "31a7bd1bbe41565b3c245d20358d6ccb", "score": "0.5781007", "text": "String getPassword();", "title": "" }, { "docid": "31a7bd1bbe41565b3c245d20358d6ccb", "score": "0.5781007", "text": "String getPassword();", "title": "" }, { "docid": "31a7bd1bbe41565b3c245d20358d6ccb", "score": "0.5781007", "text": "String getPassword();", "title": "" }, { "docid": "31a7bd1bbe41565b3c245d20358d6ccb", "score": "0.5781007", "text": "String getPassword();", "title": "" }, { "docid": "31a7bd1bbe41565b3c245d20358d6ccb", "score": "0.5781007", "text": "String getPassword();", "title": "" }, { "docid": "4d9f5b9dd694ad50625bdf281da44ffb", "score": "0.5778645", "text": "String readString() {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\r\n try {\r\n return br.readLine();\r\n } catch (IOException ex) {\r\n return \"\";\r\n }\r\n }", "title": "" }, { "docid": "4831771983101f1a1ead03b2b043f084", "score": "0.57643956", "text": "public static void main(String[] args) {\n\t\tSystem.out.println(\"Enter a Password\");\r\n\t\t//Assign new scanner input to be entered as an integer\r\n\t\tString input = new Scanner(System.in).nextLine();\r\n\t\t//if input meets requirements(below) print a successful entry(\"is valid\")\r\n\t\tif(isValid(input)) {\r\n\t\t\tSystem.out.println(input + \" is valid\");\r\n\t\t}\r\n\t\t//if input does not meet requirements(below) print an unsuccessful entry(\"is invalid\")\r\n\t\telse {\r\n\t\t\tSystem.out.println(input + \" is invalid\");\r\n\t\t}\r\n\r\n\t}", "title": "" }, { "docid": "e71fef355208afcc6d1d39b8ff0262f1", "score": "0.57612437", "text": "public String getMotd() {\n/* 1844 */ return this.console.getMotd();\n/* */ }", "title": "" }, { "docid": "f78ad944e27eeea101bea41b0d0e96c6", "score": "0.57592535", "text": "public String getCommand() {\n Scanner sc = new Scanner(System.in);\n return sc.nextLine();\n }", "title": "" }, { "docid": "f0e34365c70240f1f789a1d34bd19b44", "score": "0.5758261", "text": "public ClientTUI() {\n\t\tconsole = new PrintWriter(System.out, true);\n\t\tin = new BufferedReader(new InputStreamReader(System.in));\n\t}", "title": "" }, { "docid": "8fe75a876571093ded5ac64188b7ca0e", "score": "0.57417446", "text": "public static void main( String[] args) {\n\t\ttry {\r\n\t\t\tint aByte = System.in.read();\r\n\t\t\r\n\t\r\n\t\t\t// Lectura de hasta 10 bytes\r\n\t\t\tbyte [] buffer = new byte[10];\r\n\t\t\tSystem.in.read(buffer);\r\n\t\t\tSystem.out.println(buffer.toString());\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "eded44ee572057e995e83430408b1142", "score": "0.574157", "text": "public String prompt(String msg) {\n if (!jlineInit()) {\n java.io.Console console = System.console();\n if (console == null)\n return promptStdIn(msg);\n return console.readLine(msg);\n }\n\n // use reflection to call JLine ConsoleReader.readLine\n try {\n return (String) jline.getClass().getMethod(\"readLine\", new Class[] { String.class }).invoke(jline,\n new Object[] { msg });\n } catch (Exception e) {\n throw Err.make(e);\n }\n }", "title": "" }, { "docid": "2a8cd0ca729d2d07ccefb2676b1de79b", "score": "0.5733881", "text": "String promptPassword( String title, int maxSize );", "title": "" }, { "docid": "eafd92e722fbf0b9e2b36b87c5659023", "score": "0.5733849", "text": "public String getPassword();", "title": "" }, { "docid": "aa8795f80bf50126837b09f24a651f14", "score": "0.5731663", "text": "public static void main(String[] args) throws IOException {\n//\t\tInputStream input = TuentiPassword.class.getResourceAsStream(\"input.txt\");\n//\t\tInputStreamReader inputStreamReader = new InputStreamReader(input);\n\t\tInputStreamReader inputStreamReader = new InputStreamReader(System.in);\n\t\tBufferedReader bufferReader = new BufferedReader(inputStreamReader);\n\t\tList<String> passwordPieces = new ArrayList<String>();\n\t\tString linea = bufferReader.readLine();\n\t\twhile (linea !=null){\n\t\t\tpasswordPieces.add(linea);\n\t\t\tlinea = bufferReader.readLine();\n\t\t}\n\t\tString partial = \"\";\n\t\tList<String> passwords = new ArrayList<String>();\n\t\tTuentiPassword.breakPassword (partial, passwordPieces, 0, 0, passwords); \n\t\tCollections.sort(passwords);\n\t\tfor (int j = 0; j < passwords.size(); j++) {\n\t\t\tSystem.out.println (passwords.get(j));\n\t\t}\n\t\tinputStreamReader.close();\n\t}", "title": "" }, { "docid": "7ecde97d3a52265c27a66105dc63b7ba", "score": "0.57098216", "text": "public static void main(String[] args) throws IOException {\n //Create a BufferedReader using System.in\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n System.out.print(\"Enter any message: \");\n String msg=br.readLine();\n String encryptedMsg=encryptString(msg,16,3);\n System.out.println(\"Encrypted Message: \"+encryptedMsg);\n String decryptedMsg=decryptString(encryptedMsg,16);\n System.out.print(\"Decrypted Message: \"+decryptedMsg);\n }", "title": "" }, { "docid": "aec58dd22e0e966e108681122887ef17", "score": "0.5664288", "text": "public static void runInConsole() {\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tSystem.out.println(\"Welcome to the chatbot! You can query me for information about COVID-19 in Hawaii,\"\n\t\t\t\t+ \"or type \\\"help\\\" for help with my interface.\");\n\t\twhile(true) {\n\t\t\tString input;\n\t\t\ttry {\n\t\t\t\tinput = reader.readLine();\n\t\t\t} catch (IOException e) {\n\t\t\t\tinput = \"invalid input\";\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tSystem.out.println(Chatbot (input));\n\t\t\t\n\t\t}\n\t}", "title": "" }, { "docid": "25811ce1df52bb033745601c17c79539", "score": "0.566356", "text": "public void printPasswordMessage(int ind) {\n switch (ind){\n case 1:\n System.out.println(\"Enter your password\");\n break;\n case 2:\n System.out.println(\"Enter a password\");\n break;\n }\n }", "title": "" }, { "docid": "480e9208151991a1ade05f9ded32ca60", "score": "0.5658249", "text": "java.lang.String getPassword();", "title": "" }, { "docid": "480e9208151991a1ade05f9ded32ca60", "score": "0.5658249", "text": "java.lang.String getPassword();", "title": "" }, { "docid": "480e9208151991a1ade05f9ded32ca60", "score": "0.5658249", "text": "java.lang.String getPassword();", "title": "" }, { "docid": "480e9208151991a1ade05f9ded32ca60", "score": "0.5658249", "text": "java.lang.String getPassword();", "title": "" }, { "docid": "480e9208151991a1ade05f9ded32ca60", "score": "0.5658249", "text": "java.lang.String getPassword();", "title": "" }, { "docid": "480e9208151991a1ade05f9ded32ca60", "score": "0.5658249", "text": "java.lang.String getPassword();", "title": "" }, { "docid": "480e9208151991a1ade05f9ded32ca60", "score": "0.5658249", "text": "java.lang.String getPassword();", "title": "" }, { "docid": "480e9208151991a1ade05f9ded32ca60", "score": "0.5658249", "text": "java.lang.String getPassword();", "title": "" }, { "docid": "65abe0179520c83a851bd893f035a0d8", "score": "0.5655572", "text": "public String Enter_Username() {\r\n\t Scanner User_1 = new Scanner(System.in);\r\n\t String Username = User_1.nextLine();\r\n\t return Username;\r\n }", "title": "" }, { "docid": "86026172b8945f6c68d49e16fd7e5860", "score": "0.5654477", "text": "public static String ReadLine(String prompt) throws IOException{\n\t\tSystem.out.print(prompt);\n\t\tBufferedReader userInput = new BufferedReader(new InputStreamReader(System.in));\n\t\treturn userInput.readLine();\n\t\t\n\t}", "title": "" }, { "docid": "1d08d63b8a4cac9af8477ee6af15e714", "score": "0.56431127", "text": "interface Parser {\r\n /**\r\n * Gathers input from user until a full command has been entered.\r\n *\r\n * @return Cmd object constructed from character input.\r\n */\r\n Cmd next();\r\n\r\n /**\r\n * Gathers input from user without displaying it to the console.\r\n *\r\n * @return Input string from the console.\r\n */\r\n String getPasswordSafe();\r\n}", "title": "" }, { "docid": "7b243344657494c8068eae0bc1761e1f", "score": "0.56387347", "text": "private static String readLine(String str) {\n\t\tSystem.out.print(str);\n\t\tstr = input.nextLine();\n\t\treturn str;\n\t}", "title": "" }, { "docid": "7b6e34da9dab9747cda0361afa43eb64", "score": "0.5637773", "text": "private String getLine(final BufferedReader br) throws IOException {\n System.out.print(m_prompt);\n return br.readLine();\n }", "title": "" }, { "docid": "5988dd82e6c4f3ce91fd5b6502308dd1", "score": "0.5615683", "text": "public static void main(String[] args) {\n\t\tint ch;\r\n\t\tInputStreamReader ir = new InputStreamReader(System.in); //바이트단위로 읽은 데이터를 문자로 변환\r\n\t\tBufferedReader br = new BufferedReader(ir); //스트림에 버퍼 장착\r\n\t\ttry {\r\n\t\t\twhile((ch=br.read()) != '\\n') {\r\n\t\t\t\tSystem.out.print((char) ch);\r\n\t\t\t}\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "e650c76846a53405956dbb3b83958efa", "score": "0.5596521", "text": "public static String readString() {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\r\n try {\r\n return br.readLine();\r\n } catch (IOException ex) {\r\n return \"\";\r\n }\r\n }", "title": "" }, { "docid": "e453d03a696418d72626dfe964f95915", "score": "0.557907", "text": "public String readLine() {\n\t\ttry {\n\t\t\treturn consoleReader.readLine();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "1e4318127d516c61904df7e4aa2a2193", "score": "0.5573433", "text": "public static void main(String[] args) {\n\t\tConsole console = System.console();\n\t\tif (console == null) {\n\t\t\tSystem.err.println(\"Cannot retrieve console object - are you running your application from IDE? exiting..\");\n\t\t\tSystem.exit(-1);\n\t\t}\n\t\t// read a line and print it through printf\n\t\tconsole.printf(console.readLine());\n\t}", "title": "" }, { "docid": "2cafbc40a73f53fc3d7bd425b5e2bda4", "score": "0.5567434", "text": "private static void readInputUsingISReader() {\n\t\t// read from console\n\t\tint readData = 0;\n\t\ttry {\n\t\t\t// read() will returns you the ascii code of that character\n\t\t\twhile ((readData = inputStreamReader.read()) != 0) {\n\t\t\t\tSystem.out.println(readData);\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "5acf7f9ae3b448dccd8fef8be6acafa0", "score": "0.55673695", "text": "private DukeConsoleIO() {\n this.scanner = new Scanner(System.in);\n }", "title": "" }, { "docid": "416aeb9446f96eba0ac0bfe7a65b959f", "score": "0.55648816", "text": "@Override\n\tpublic void InputFromConsole() {\n\n\t}", "title": "" }, { "docid": "3173fa5074b127c97f0b7ceb60ce7940", "score": "0.55647826", "text": "public java.lang.String getPassword(){\n return localPassword;\n }", "title": "" }, { "docid": "dcd09b5917d125c52fd29a7a76319215", "score": "0.5537803", "text": "public static String readString(String label) {\n\t\tString ret = null;\n\t\tBufferedReader stdin = new BufferedReader(new InputStreamReader(\n\t\t\t\tSystem.in));\n\n\t\ttry {\n\t\t\tSystem.out.print(label + \": \");\n\t\t\tret = stdin.readLine();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn ret;\n\t}", "title": "" }, { "docid": "73b69453f8043221bfba89251fba79fc", "score": "0.55338156", "text": "public static String getUserInput(String message) {\n System.out.println(message);\n Scanner scanner2 = new Scanner(System.in);\n return scanner2.nextLine();\n }", "title": "" }, { "docid": "e0900127880addaf0b725ef102b2c258", "score": "0.55332476", "text": "GetLineStdIn createGetLineStdIn();", "title": "" }, { "docid": "057d5a8f9d4f96bb333fa4e2f827d367", "score": "0.55315447", "text": "public static void main()\n {\n String username = JOptionPane.showInputDialog(\"Plese enter your username:\");\n \n if(username.equals(\"MickeyMouse\"))\n {\n String password = JOptionPane.showInputDialog(\"Please enter your password:\");\n \n if(password.equals(\"mickey123\"))\n {\n System.out.println(\"Access Granted. \" + \"Welcome.\");\n }\n )\n}\n \n \n else\n {\n System.out.println(\"Access Denied.\");\n }\n \n \n \n \n}", "title": "" }, { "docid": "2c9df42bc180d0d116958c2228f30d7e", "score": "0.5526345", "text": "String readCommand(String userInput);", "title": "" }, { "docid": "4d434aebf17b165e2197837062ca5df8", "score": "0.55200434", "text": "public String readNextCommand() {\n \tSystem.out.print(\">>\");\n \tScanner sc = new Scanner(System.in);\n \tString input_command = sc.nextLine();\n \treturn input_command;\n }", "title": "" }, { "docid": "02cd30142b2255d5aaa79b02d8bc0e7b", "score": "0.55083144", "text": "static String getInput(){\n\t\tScanner input = new Scanner(System.in);\n\t\tString result = input.next();\n\t\tinput.close();\n\t\treturn result;\n\t}", "title": "" }, { "docid": "c0b893fca6d277e231688771c4f2d989", "score": "0.55029637", "text": "public String getPassword(){\n int lengthLow = 10;\n int lengthHigh = 30;\n\n Scanner sc = new Scanner(System.in);\n textPresenter.printNormalText(\"Please enter your password: \");\n String password = sc.nextLine().trim();\n\n // Check length\n boolean isLengthValid = password.length() >= lengthLow && password.length() <= lengthHigh;\n while (!isLengthValid) {\n textPresenter.printErrorText(\"The password should be \"+lengthLow+\"-\"+lengthHigh+\" characters long.\");\n textPresenter.printNormalText(\"Please enter your password: \");\n password = sc.nextLine().trim();\n isLengthValid = password.length() >= lengthLow && password.length() <= lengthHigh;\n }\n\n return password;\n }", "title": "" }, { "docid": "210a85a57a42afcd527e1e71ea7d1a61", "score": "0.5483806", "text": "public static void main(String[] args) {\n Scanner input = new Scanner(System.in);\n String s = input.next();\n input.close();\n \n // Create the MD5 and print it out\n try {\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n byte[] password = md.digest(s.getBytes());\n \n for (byte bChar : password){\n System.out.printf(\"%02x\", bChar);\n }\n } catch (NoSuchAlgorithmException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n \n }", "title": "" }, { "docid": "2132b7cc2accaf0e749d8a6443b762e8", "score": "0.54783165", "text": "public static void main(String[] args) {\n\t\tInputStream input = System.in;\n\t\t\n\t\tScanner scanner = new Scanner(System.in);\n\t\t\n\t\tSystem.out.print(\"¼ýÀÚÀÔ·Â>> \");\n\t\tString strInput = scanner.nextLine();\n\t\tSystem.out.println(strInput);\n\n\t\t\n\t}", "title": "" }, { "docid": "d82e8656043ccd68bcb5cc118786303e", "score": "0.5476234", "text": "public static String getString(String prompt) {\n\t\tSystem.out.println(prompt + \": \");\n\t\treturn console.nextLine();\n\t}", "title": "" }, { "docid": "b3d08a978251daeb5dd867dd271ded42", "score": "0.5473642", "text": "String readString(String promptToPrint) {\r\n\t\tString s;\r\n\t\tdo {\r\n\t\t\tSystem.out.println(promptToPrint);\r\n\t\t\ts = sc.next();\r\n\t\t} while (s.equals(\"\"));\r\n\t\treturn s;\r\n\t}", "title": "" }, { "docid": "9e43e21514f2f97f8733e23a4c194244", "score": "0.5472996", "text": "public static native synchronized String promptc( StringBuffer prmptStr,int lenout,StringBuffer buffer );", "title": "" }, { "docid": "784ccf01c32753be1b61c26316ba9913", "score": "0.5467843", "text": "public static String readLn() throws IOException\n {\n InputStreamReader flujo = new InputStreamReader(System.in);\n BufferedReader teclado = new BufferedReader(flujo);\n\n return teclado.readLine();\n }", "title": "" }, { "docid": "603c8e7f8732d09b4374295c04a40f3b", "score": "0.54604405", "text": "public InitConsoleView()\n {\n scan = new Scanner(System.in);\n }", "title": "" }, { "docid": "78b8b9188a572e066fafb7cc331516f3", "score": "0.5430025", "text": "public static void main(String[] args) {\n\t\tString pass = JOptionPane.showInputDialog(\"Introduccce tu contraseña\");\r\n\t\t\r\n\t\tint tope = 5;\r\n\t\t\r\n\t\tfor(int i= 0; i<pass.length();i++) {\r\n\t\t\t//System.out.println(i);\r\n\t\t\tint arroba = 0;\r\n\t\t\tif(pass.charAt(i)==0)arroba++;\t\r\n\t}\r\n\t\t\r\n\t\t\r\n\t\tif (arroba == 1) {\r\n\t\t\tSystem.out.println(pass);\r\n\t\t}else {\r\n\t\t\tSystem.out.println(\"Error en el sistema\");\r\n\t\t}\r\n\r\n}", "title": "" }, { "docid": "93602f4dc85454a66fb94d08cce6704e", "score": "0.54086655", "text": "public void launchConsole();", "title": "" }, { "docid": "a860860c64b0ad1bf339b1f2ae27f7dc", "score": "0.5404499", "text": "public String getPassword(){\n return getPasswordInput(tfPasswordLogin);\n }", "title": "" }, { "docid": "6643704a12e593d19a6d2cf900aae5d0", "score": "0.53970826", "text": "public Console(){\n\t}", "title": "" }, { "docid": "db16d92b66ecd4bd1db870ad7246dad5", "score": "0.5394458", "text": "public static String ctiString(){ //throws IOException\n \tString radek; // Načtený řádek\n \tBufferedReader stdin = new BufferedReader(new InputStreamReader(System.in));\n \ttry {\n \t\treturn radek = stdin.readLine();\n \t}\n \tcatch(Exception e){\n \t\tSystem.err.println(\"chyba v retezci\");\n \t\treturn \"\";\n \t}\n }", "title": "" }, { "docid": "a6a7f34549e09dad66d60d575e7f1a53", "score": "0.5390133", "text": "protected String readLine() throws IOException, PowershellException {\r\n \tStringBuffer sb = new StringBuffer();\r\n \tboolean cr = false;\r\n \tint ch = -1;\r\n \twhile((ch = stdout.read()) != -1) {\r\n \t switch(ch) {\r\n \t case '\\r':\r\n \t\tcr = true;\r\n \t\tif (stdout.markSupported() && stdout.available() > 0) {\r\n \t\t stdout.mark(1);\r\n \t\t switch(stdout.read()) {\r\n \t\t case '\\n':\r\n \t\t\treturn sb.toString();\r\n \t\t default:\r\n \t\t\tstdout.reset();\r\n \t\t\tbreak;\r\n \t\t }\r\n \t\t}\r\n \t\tbreak;\r\n \r\n \t case '\\n':\r\n \t\treturn sb.toString();\r\n \r\n \t default:\r\n \t\tif (cr) {\r\n \t\t cr = false;\r\n \t\t sb.append((char)('\\r' & 0xFF));\r\n \t\t}\r\n \t\tsb.append((char)(ch & 0xFF));\r\n \t }\r\n\t if (hasError()) {\r\n\t\tthrow new PowershellException(getError());\r\n\t }\r\n \t if (stdout.available() == 0 && isPrompt(sb.toString())) {\r\n \t\tprompt = sb.toString();\r\n \t\treturn null;\r\n \t }\r\n \t}\r\n \treturn null;\r\n }", "title": "" }, { "docid": "8c3b8632f1d02fec7ddb095169a5252b", "score": "0.5382574", "text": "private String leerComando(){\t\n\t\tSystem.out.print(\"Comando >\");\n\t\treturn this.entrada.nextLine();\n\t}", "title": "" }, { "docid": "d03a66841102907eaae68636411e6875", "score": "0.53782606", "text": "public ConsoleInput(final String userInput) {\n super();\n System.setIn(new ByteArrayInputStream(userInput.getBytes()));\n this.scanner = new Scanner(System.in);\n }", "title": "" }, { "docid": "93b2462867151dd38d8263ff4735b784", "score": "0.5376411", "text": "public Console() {\n\t\tsuper();\n\t}", "title": "" }, { "docid": "951bdd98f6057e7b5ae65023cf83dfc8", "score": "0.5375467", "text": "public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n // Mensaje para el usuario\n System.out.print(\"Ingrese su nombre: \");\n // Leemos un valor entero por teclado\n String nom = scanner.nextLine();\n\n // Mostramos un mensaje y luego el valor leido\n System.out.println(\"Hola mundo \" + nom);\n }", "title": "" }, { "docid": "8d3947129fc6145e4814255d600439ac", "score": "0.5374314", "text": "public static String readStandardInput() throws IOException {\n\t BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t \n\t StringBuilder builder = new StringBuilder();\n\t \n\t String s;\n\t while ((s = in.readLine()) != null && s.length() != 0) { // read until end or empty line\n\t \t// reading this way strips empty lines, but they are not needed anyway\n\t \tbuilder.append(s);\n\t }\n\t\n\t\treturn builder.toString(); \n\t}", "title": "" }, { "docid": "42017ab5ef2aacc72b827895ab86af0b", "score": "0.5371681", "text": "String prompt( String title );", "title": "" }, { "docid": "28d3c140cfcee3887b46b98e9e4c9ad7", "score": "0.5369375", "text": "public String getUsername(){\n String userName;\n Scanner sc = new Scanner(System.in);\n this.printOut(\"Please enter user name\");\n userName = sc.nextLine(); // get username user typed in\n return userName;\n\n }", "title": "" }, { "docid": "55c41f23c4d50ccfcb3a960afee83741", "score": "0.5355594", "text": "@Test\n\tpublic void testPassword() {\n\t\tSystem.out.println(\"Password = \" + password);\n\t\tAssert.assertEquals(\"test\", password);\n\t}", "title": "" } ]
26d213fdf28fe20603740492a636727e
Created by Mohamed on 01/01/2017.
[ { "docid": "a34ad6734978413a9acd33669a88b08d", "score": "0.0", "text": "public interface UserRepository extends JpaRepository<User,Long> {\n public User findByEmail(String email);\n}", "title": "" } ]
[ { "docid": "da34ed11fe7c5649b3cd0bdad6dca5df", "score": "0.6065924", "text": "@Override\n\t\tpublic void 비행() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "93de84d0e77a5e19e12e7d0655c39af3", "score": "0.60274595", "text": "@Override\n\tpublic void agit() {\n\t\t\n\t}", "title": "" }, { "docid": "f8d94fd3a365ff0f8b293a42b581cc33", "score": "0.59761333", "text": "@Override\r\n public void caminar() {\r\n }", "title": "" }, { "docid": "b256767990570c27f4f2479e85bd7f03", "score": "0.595836", "text": "@Override\r\n\tpublic void otkazi() {\n\t\t\r\n\t}", "title": "" }, { "docid": "80d20df1cc75d8fa96c12c49a757fc43", "score": "0.5778148", "text": "@Override\n\tprotected void getExras() {\n\t\t\n\t}", "title": "" }, { "docid": "7c4f2f94b290de5507eb56a649c4fab9", "score": "0.5771166", "text": "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "title": "" }, { "docid": "fea7a2b12d2393c5b331cdd73164085e", "score": "0.57585126", "text": "private static void problem11() {\n\t\t\n\t}", "title": "" }, { "docid": "66f76462eb0121053379289c39650179", "score": "0.57312536", "text": "public void mo19333b() {\n }", "title": "" }, { "docid": "2dcda7054abb2ac593302e39a2284f12", "score": "0.57029253", "text": "@Override\n\tprotected void getExras() {\n\n\t}", "title": "" }, { "docid": "a6d5e265e03a79f850dd1be9a101beda", "score": "0.5695983", "text": "private Lab7() {\n\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.56931406", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.56931406", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "20ba7c324016889deaaae5c114e65849", "score": "0.5687375", "text": "private Leargas() {}", "title": "" }, { "docid": "53576e5215aac73f0d0dbfbe35a1f844", "score": "0.56277484", "text": "private void generar() {\n\n\t\t\t\n\t\t\n\t}", "title": "" }, { "docid": "99cfe01c5035e9a9ca6dafada0e4a005", "score": "0.5617627", "text": "@Override\r\n\tpublic void caminar() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t\r\n\t}", "title": "" }, { "docid": "0a93ae79a871bc2bb8787223c8b043a4", "score": "0.5607117", "text": "@Override\n\tpublic void interogare() {\n\t\t\n\t}", "title": "" }, { "docid": "2104f557428f6e269f61b8f05a73cc43", "score": "0.5598562", "text": "@Override\n\tpublic void repare() {\n\t\t\n\t}", "title": "" }, { "docid": "9da42c54ca8fb8825afce96ad2d2781c", "score": "0.55938804", "text": "@Override\r\n\tpublic void comenzar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "16c30d73c1df796c0e31e93eb0f6e02e", "score": "0.5589091", "text": "@Override\r\n\tpublic void atacar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "d18a5453cb937c44d51c46c967f1f4f6", "score": "0.5578936", "text": "protected void method_3848() {}", "title": "" }, { "docid": "c60781d66bd146683572dce40076140d", "score": "0.55770516", "text": "private LIDAR() \n\t\t{\n\n\t\t}", "title": "" }, { "docid": "3138943fc1f99b10746b6218fb0522fe", "score": "0.55741274", "text": "@Override\n public int order() {\n return 1;\n }", "title": "" }, { "docid": "5477922fce309be487fa552d27c3bf32", "score": "0.5564312", "text": "public void mo7873a() {\n }", "title": "" }, { "docid": "b7d3c2b49702a5ed673b243bf8d2b7c0", "score": "0.55582005", "text": "@Override\n\tprotected void funcionario() {\n\t\t\n\t}", "title": "" }, { "docid": "770d423e40bf5782a700bc181e8b8a1e", "score": "0.55469686", "text": "@Override\n\tvoid init() {\n\t\t\n\t}", "title": "" }, { "docid": "770d423e40bf5782a700bc181e8b8a1e", "score": "0.55469686", "text": "@Override\n\tvoid init() {\n\t\t\n\t}", "title": "" }, { "docid": "2e18c1d20c67735ba2db1c70042e02d7", "score": "0.5545397", "text": "@Override\r\n\tpublic void embalar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "ebfe1bb4dd1c0618c0fad36d9f7674b4", "score": "0.5505102", "text": "@Override\n protected void initialize() {\n\n }", "title": "" }, { "docid": "7f91c82c66ced12c5b193d3c89d68e4c", "score": "0.54883975", "text": "@Override\n\tprotected void init() {\n\t}", "title": "" }, { "docid": "7f91c82c66ced12c5b193d3c89d68e4c", "score": "0.54883975", "text": "@Override\n\tprotected void init() {\n\t}", "title": "" }, { "docid": "262d3719ddc4c741b6344af053ea7e1d", "score": "0.54794985", "text": "protected Armaduras() {\r\n\t}", "title": "" }, { "docid": "7aa6963c647c1b2028e2058b152485e1", "score": "0.5464223", "text": "@Override\n\tpublic void generate() {\n\t\t\n\t}", "title": "" }, { "docid": "7aa6963c647c1b2028e2058b152485e1", "score": "0.5464223", "text": "@Override\n\tpublic void generate() {\n\t\t\n\t}", "title": "" }, { "docid": "da5f753a7cd33da8d5581d14337c059f", "score": "0.5453344", "text": "@Override\n\tpublic void tauchen() {\n\t\t\n\t}", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.5431416", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.5431416", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.5431416", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.5431416", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.5431416", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.5431416", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.5431416", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.5431416", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.5431416", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "87929e8b046b6fb5c754312beec7ed1c", "score": "0.5431416", "text": "@Override\n protected void initialize() {\n }", "title": "" }, { "docid": "038aba0c2804848e5fbdbafd6a794e97", "score": "0.54268557", "text": "@Override\r\n\tpublic void genererFacture() {\n\t\t\r\n\t}", "title": "" }, { "docid": "ad9858643cb51c92112f1a2ed05ea34e", "score": "0.54099965", "text": "public void mo7876d() {\n }", "title": "" }, { "docid": "63d27d2836275ed0fc981c7cfae8e737", "score": "0.54088074", "text": "@Override\n\tprotected void init(){\n\t}", "title": "" }, { "docid": "12cb886ceb5e3e8b5a540a316317c996", "score": "0.54039943", "text": "private void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "21e83e0c6fdd60581bc05b6e8f682d1e", "score": "0.540224", "text": "public void mo7875c() {\n }", "title": "" }, { "docid": "e1acf779eed19e5945aa3f4b1a8866d3", "score": "0.5395023", "text": "@Override\n protected void initialize() {\n \n }", "title": "" }, { "docid": "97c456611a497fb152db478124462615", "score": "0.5387561", "text": "public void mo7874b() {\n }", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5382951", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5382951", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5382951", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5382951", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5382951", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5382951", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5382951", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5382951", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5382951", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5382951", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.5374768", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.5367842", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "d8765338c4395319771d8f7e99ea5835", "score": "0.5363007", "text": "private Object FeriasForm() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "title": "" }, { "docid": "245d456bd452632b9011d99d807c8ae1", "score": "0.53628665", "text": "void mo2956b() {\n }", "title": "" }, { "docid": "f93772ae3050679cb5cad45b34d90052", "score": "0.5345831", "text": "public void mo36368c() {\n }", "title": "" }, { "docid": "29cde3f10dab87cebafdd9412ef4b29f", "score": "0.5342165", "text": "@Override\r\n\tpublic void embala() {\n\t\t\r\n\t}", "title": "" }, { "docid": "9a24e5d0f4ac819783f304f960235d1d", "score": "0.53248477", "text": "public void mo119745c() {\n }", "title": "" }, { "docid": "ea7ddcd90291cdb35eea8803cea0c883", "score": "0.5323077", "text": "private Solution() {\n\t\t//not called\n\t}", "title": "" }, { "docid": "fd329397142825dab1d796112f827f9d", "score": "0.5316716", "text": "@Override\n\tpublic void look() {\n\t\t\n\t}", "title": "" }, { "docid": "ecd084bf055d602fdedf08fab1e19a33", "score": "0.5315396", "text": "@Override\n\tvoid emi() {\n\t\t\n\t}", "title": "" }, { "docid": "ecd084bf055d602fdedf08fab1e19a33", "score": "0.5315396", "text": "@Override\n\tvoid emi() {\n\t\t\n\t}", "title": "" }, { "docid": "ecd084bf055d602fdedf08fab1e19a33", "score": "0.5315396", "text": "@Override\n\tvoid emi() {\n\t\t\n\t}", "title": "" }, { "docid": "83c17378086426b4324c4ea8c160e29d", "score": "0.53000045", "text": "@Override\r\n\tpublic void provjeri() {\n\r\n\t}", "title": "" }, { "docid": "70d974abd496677a87c8807bf56e0a5b", "score": "0.52896345", "text": "@Override\n public void desenhar() {\n \n }", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.528627", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.528627", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.528627", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.528627", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.5283201", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.5283201", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.5283201", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.5283201", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.5283201", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.5283201", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.5283201", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.5283201", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.5283201", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "00e85c74b7a2bd9703ca05c9d1932cd4", "score": "0.527736", "text": "public void mo19267d() {\n }", "title": "" }, { "docid": "39c15addb7f9cae9284ae4af01c5a911", "score": "0.5266012", "text": "@Override\r\n\tpublic void cortar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b78de853138b4d1a9183420c6cd735cc", "score": "0.5263864", "text": "@Override\n public void init() {\n\n }", "title": "" }, { "docid": "289f89533edfafac14fcf50ce6d1dcfb", "score": "0.52566576", "text": "@Override\n\t\t\t\t\tpublic void accionSi() {\n\n\t\t\t\t\t}", "title": "" }, { "docid": "57dab2b5051a2a184d855564327c4b1a", "score": "0.52560586", "text": "@Override\n\tpublic void init() \n\t{\n\n\t}", "title": "" }, { "docid": "f5091ad8f2cca4236ffa040015941638", "score": "0.5252091", "text": "public void mo119748e() {\n }", "title": "" }, { "docid": "c5648e3463d069bbd00252aa57baecf9", "score": "0.5252045", "text": "@Override\r\n\r\n\t\t\tpublic void init() {\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.5246367", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.5246367", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.5246367", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.5246367", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.5246367", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "40937a60cffa53f5427349d7051a634b", "score": "0.5246116", "text": "public void m37578d() {\n }", "title": "" } ]
979214ed2b4e7444f085b611a19b3215
Optional. The lowest budget option. optional .google.ads.googleads.v14.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption low = 1 [(.google.api.field_behavior) = OPTIONAL];
[ { "docid": "fabdf5ea114cdd7b56e7d18194b0e4fb", "score": "0.86947024", "text": "@java.lang.Override\n public com.google.ads.googleads.v14.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOptionOrBuilder getLowOrBuilder() {\n return low_ == null ? com.google.ads.googleads.v14.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption.getDefaultInstance() : low_;\n }", "title": "" } ]
[ { "docid": "a3f377571b3b53b5d4345efdbf82eac8", "score": "0.8846157", "text": "@java.lang.Override\n public com.google.ads.googleads.v14.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption getLow() {\n return low_ == null ? com.google.ads.googleads.v14.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption.getDefaultInstance() : low_;\n }", "title": "" }, { "docid": "1a362302598b4a1cf8db3acd6abf93f9", "score": "0.8686535", "text": "public com.google.ads.googleads.v14.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption getLow() {\n if (lowBuilder_ == null) {\n return low_ == null ? com.google.ads.googleads.v14.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption.getDefaultInstance() : low_;\n } else {\n return lowBuilder_.getMessage();\n }\n }", "title": "" }, { "docid": "a7a6d02188f7d7d216f34d0a17726054", "score": "0.849703", "text": "public com.google.ads.googleads.v14.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOptionOrBuilder getLowOrBuilder() {\n if (lowBuilder_ != null) {\n return lowBuilder_.getMessageOrBuilder();\n } else {\n return low_ == null ?\n com.google.ads.googleads.v14.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption.getDefaultInstance() : low_;\n }\n }", "title": "" }, { "docid": "dcd5834efa83f3e3715fc9daed6734a1", "score": "0.81099814", "text": "public Builder setLow(com.google.ads.googleads.v14.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption value) {\n if (lowBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n low_ = value;\n } else {\n lowBuilder_.setMessage(value);\n }\n bitField0_ |= 0x00000001;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "e14d0105c7a4d206ddcc1a54845280e1", "score": "0.76254994", "text": "public Builder mergeLow(com.google.ads.googleads.v14.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption value) {\n if (lowBuilder_ == null) {\n if (((bitField0_ & 0x00000001) != 0) &&\n low_ != null &&\n low_ != com.google.ads.googleads.v14.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption.getDefaultInstance()) {\n getLowBuilder().mergeFrom(value);\n } else {\n low_ = value;\n }\n } else {\n lowBuilder_.mergeFrom(value);\n }\n bitField0_ |= 0x00000001;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "e2fb80dcd0dc97453f0ee4995d618bfd", "score": "0.7585948", "text": "private com.google.protobuf.SingleFieldBuilderV3<\n com.google.ads.googleads.v14.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption, com.google.ads.googleads.v14.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption.Builder, com.google.ads.googleads.v14.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOptionOrBuilder> \n getLowFieldBuilder() {\n if (lowBuilder_ == null) {\n lowBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n com.google.ads.googleads.v14.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption, com.google.ads.googleads.v14.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption.Builder, com.google.ads.googleads.v14.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOptionOrBuilder>(\n getLow(),\n getParentForChildren(),\n isClean());\n low_ = null;\n }\n return lowBuilder_;\n }", "title": "" }, { "docid": "e8c0a730fcdeb9bc9d452fd9ac6df43a", "score": "0.7201402", "text": "public com.google.ads.googleads.v14.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption.Builder getLowBuilder() {\n bitField0_ |= 0x00000001;\n onChanged();\n return getLowFieldBuilder().getBuilder();\n }", "title": "" }, { "docid": "36e35e6837ce6a048d58f2d41a0b75fb", "score": "0.70626867", "text": "@java.lang.Override\n public com.google.ads.googleads.v14.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption getHigh() {\n return high_ == null ? com.google.ads.googleads.v14.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption.getDefaultInstance() : high_;\n }", "title": "" }, { "docid": "08556def43c58d34fc5736df8e1eae9c", "score": "0.6958401", "text": "public com.google.ads.googleads.v14.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption getHigh() {\n if (highBuilder_ == null) {\n return high_ == null ? com.google.ads.googleads.v14.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption.getDefaultInstance() : high_;\n } else {\n return highBuilder_.getMessage();\n }\n }", "title": "" }, { "docid": "bcccc12e97d80d3e518fe770d996fb2b", "score": "0.67858285", "text": "@java.lang.Override\n public com.google.ads.googleads.v14.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOptionOrBuilder getHighOrBuilder() {\n return high_ == null ? com.google.ads.googleads.v14.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption.getDefaultInstance() : high_;\n }", "title": "" }, { "docid": "6e56da909099dcc31567443aadc96fab", "score": "0.6638572", "text": "public com.google.ads.googleads.v14.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOptionOrBuilder getHighOrBuilder() {\n if (highBuilder_ != null) {\n return highBuilder_.getMessageOrBuilder();\n } else {\n return high_ == null ?\n com.google.ads.googleads.v14.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption.getDefaultInstance() : high_;\n }\n }", "title": "" }, { "docid": "8d63ea71928bd15fc8fd9969d1850f9f", "score": "0.6588427", "text": "public Builder setLow(\n com.google.ads.googleads.v14.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption.Builder builderForValue) {\n if (lowBuilder_ == null) {\n low_ = builderForValue.build();\n } else {\n lowBuilder_.setMessage(builderForValue.build());\n }\n bitField0_ |= 0x00000001;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "370df3a8c2a46c0e7ae7f9782e370cb8", "score": "0.6585566", "text": "public Builder setHigh(com.google.ads.googleads.v14.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption value) {\n if (highBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n high_ = value;\n } else {\n highBuilder_.setMessage(value);\n }\n bitField0_ |= 0x00000004;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "4bdd4cf595f627d05896deadb7ceff30", "score": "0.626753", "text": "@java.lang.Override\n public com.google.ads.googleads.v14.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption getRecommended() {\n return recommended_ == null ? com.google.ads.googleads.v14.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption.getDefaultInstance() : recommended_;\n }", "title": "" }, { "docid": "11d7842cb2496a55fddd05537d22ec90", "score": "0.62469244", "text": "public Builder mergeHigh(com.google.ads.googleads.v14.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption value) {\n if (highBuilder_ == null) {\n if (((bitField0_ & 0x00000004) != 0) &&\n high_ != null &&\n high_ != com.google.ads.googleads.v14.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption.getDefaultInstance()) {\n getHighBuilder().mergeFrom(value);\n } else {\n high_ = value;\n }\n } else {\n highBuilder_.mergeFrom(value);\n }\n bitField0_ |= 0x00000004;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "a71dfbf1fce8079a7828933892ab31eb", "score": "0.6239189", "text": "public com.google.ads.googleads.v14.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption getRecommended() {\n if (recommendedBuilder_ == null) {\n return recommended_ == null ? com.google.ads.googleads.v14.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption.getDefaultInstance() : recommended_;\n } else {\n return recommendedBuilder_.getMessage();\n }\n }", "title": "" }, { "docid": "bde39273782d1dbb24438507d766e452", "score": "0.61037356", "text": "public com.google.ads.googleads.v14.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption.Builder getHighBuilder() {\n bitField0_ |= 0x00000004;\n onChanged();\n return getHighFieldBuilder().getBuilder();\n }", "title": "" }, { "docid": "73ab12b9fa7cbcf68c8fa49e5a51b31c", "score": "0.60041785", "text": "private com.google.protobuf.SingleFieldBuilderV3<\n com.google.ads.googleads.v14.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption, com.google.ads.googleads.v14.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption.Builder, com.google.ads.googleads.v14.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOptionOrBuilder> \n getHighFieldBuilder() {\n if (highBuilder_ == null) {\n highBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n com.google.ads.googleads.v14.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption, com.google.ads.googleads.v14.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption.Builder, com.google.ads.googleads.v14.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOptionOrBuilder>(\n getHigh(),\n getParentForChildren(),\n isClean());\n high_ = null;\n }\n return highBuilder_;\n }", "title": "" }, { "docid": "347ca8aa6565c2393e1a5bf7c2cbae37", "score": "0.5954333", "text": "public Builder setRecommended(com.google.ads.googleads.v14.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption value) {\n if (recommendedBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n recommended_ = value;\n } else {\n recommendedBuilder_.setMessage(value);\n }\n bitField0_ |= 0x00000002;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "f713df3feb5f4fdbd85f0b8120a2b3ac", "score": "0.58761203", "text": "@java.lang.Override\n public com.google.ads.googleads.v14.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOptionOrBuilder getRecommendedOrBuilder() {\n return recommended_ == null ? com.google.ads.googleads.v14.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption.getDefaultInstance() : recommended_;\n }", "title": "" }, { "docid": "81e3f25966f36edc002f10d49a266813", "score": "0.58622974", "text": "public Integer getBestLow() {\n return this.bestLow;\n }", "title": "" }, { "docid": "934729529c2a3c2f8d77dd98a19f8cfc", "score": "0.5769955", "text": "public com.google.ads.googleads.v14.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOptionOrBuilder getRecommendedOrBuilder() {\n if (recommendedBuilder_ != null) {\n return recommendedBuilder_.getMessageOrBuilder();\n } else {\n return recommended_ == null ?\n com.google.ads.googleads.v14.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption.getDefaultInstance() : recommended_;\n }\n }", "title": "" }, { "docid": "7d469bd9c851de3a992eaad121f157fe", "score": "0.56784236", "text": "public Builder mergeRecommended(com.google.ads.googleads.v14.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption value) {\n if (recommendedBuilder_ == null) {\n if (((bitField0_ & 0x00000002) != 0) &&\n recommended_ != null &&\n recommended_ != com.google.ads.googleads.v14.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption.getDefaultInstance()) {\n getRecommendedBuilder().mergeFrom(value);\n } else {\n recommended_ = value;\n }\n } else {\n recommendedBuilder_.mergeFrom(value);\n }\n bitField0_ |= 0x00000002;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "0a119032139b41465d393b1b6ec3664d", "score": "0.5483568", "text": "public com.google.ads.googleads.v14.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption.Builder getRecommendedBuilder() {\n bitField0_ |= 0x00000002;\n onChanged();\n return getRecommendedFieldBuilder().getBuilder();\n }", "title": "" }, { "docid": "e52ffa9ac01d30b0161ad099b5fdaf06", "score": "0.53865695", "text": "@Override\n public double getMinLowEstimation() {\n return 0;\n }", "title": "" }, { "docid": "b3cc0bcd72b8a019ac23e2850899ee50", "score": "0.5328254", "text": "public void setLow(Double low) {\n this.low = low;\n }", "title": "" }, { "docid": "e51c72b3da5102651fe83771c8170a16", "score": "0.5323458", "text": "private com.google.protobuf.SingleFieldBuilderV3<\n com.google.ads.googleads.v14.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption, com.google.ads.googleads.v14.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption.Builder, com.google.ads.googleads.v14.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOptionOrBuilder> \n getRecommendedFieldBuilder() {\n if (recommendedBuilder_ == null) {\n recommendedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n com.google.ads.googleads.v14.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption, com.google.ads.googleads.v14.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption.Builder, com.google.ads.googleads.v14.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOptionOrBuilder>(\n getRecommended(),\n getParentForChildren(),\n isClean());\n recommended_ = null;\n }\n return recommendedBuilder_;\n }", "title": "" }, { "docid": "73e7a286d9748e585666f05e883601de", "score": "0.5256927", "text": "private Ask getLowestAsk(String stock) {\r\n// ReadLock readLock = lock.readLock();\r\n// readLock.lock();\r\n \r\n Ask lowestAsk = new Ask(null, Integer.MAX_VALUE, null);\r\n for (int i = 0; i < unfulfilledAsks.size(); i++) {\r\n Ask ask = unfulfilledAsks.get(i);\r\n if (ask.getStock().equals(stock) && ask.getPrice() <= lowestAsk.getPrice()) {\r\n // if there are 2 asks of the same ask amount, the earlier one is considered the highest ask\r\n if (ask.getPrice() == lowestAsk.getPrice()) {\r\n // compare dates\r\n if (ask.getDate().getTime() < lowestAsk.getDate().getTime()) {\r\n lowestAsk = ask;\r\n }\r\n } else {\r\n lowestAsk = ask;\r\n }\r\n }\r\n }\r\n if (lowestAsk.getUserId() == null) {\r\n return null; // there's no unfulfilled asks at all!\r\n }\r\n// readLock.unlock();\r\n return lowestAsk;\r\n }", "title": "" }, { "docid": "3b126b8f20f345d7309642f12a9fd24b", "score": "0.5236177", "text": "public double cheapestPrice(){\n\t\tdouble min=prices.get(0);\r\n\t\tfor(int i=0; i<prices.size(); i++)\r\n\t\t{\r\n\t\t\tif(prices.get(i)<min)\r\n\t\t\t\tmin=prices.get(i);\r\n\t\t}\r\n\t\t\r\n\t\treturn min;\r\n\t}", "title": "" }, { "docid": "6396e974ee572c93fdd9f93548197a55", "score": "0.51502866", "text": "public Builder setHigh(\n com.google.ads.googleads.v14.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption.Builder builderForValue) {\n if (highBuilder_ == null) {\n high_ = builderForValue.build();\n } else {\n highBuilder_.setMessage(builderForValue.build());\n }\n bitField0_ |= 0x00000004;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "14ead030dcf39c6cd306c0c85ba69d58", "score": "0.5146183", "text": "public int getMinimumBid() {\n return minimumBid;\n }", "title": "" }, { "docid": "c409b0e1a25ae1fa068e3a65c64a1734", "score": "0.514006", "text": "public void setMinPrice(float minPrice) {\n this.minPrice = minPrice;\n }", "title": "" }, { "docid": "5829ac0d47baf66f0b9bc733441af19e", "score": "0.51267934", "text": "public static double getLow(ArrayList<Double> set){\r\n\t\tdouble retVal = set.get(0);\r\n\t\tfor(int i = 0; i < set.size(); i++){\r\n\t\t\tretVal = Math.min(retVal, set.get(i));\r\n\t\t}\r\n\t\treturn retVal;\r\n\t}", "title": "" }, { "docid": "070f3b122b38272b37bb93f9407829fd", "score": "0.51150745", "text": "public Double getLow() {\n return low;\n }", "title": "" }, { "docid": "0efb7d671f5d7f7ad723942a0e3b58ad", "score": "0.51080793", "text": "Facet getMinInclusive();", "title": "" }, { "docid": "d9e136e789284a4b5a5c3f2551a925b8", "score": "0.5104774", "text": "public String getLowPrice() {\n\t\treturn lowPrice;\n\t}", "title": "" }, { "docid": "d8415eb31422943ac83c7c61f87225a7", "score": "0.5089418", "text": "public float getMinPrice() {\n return minPrice;\n }", "title": "" }, { "docid": "145a335b771a8f5d34e914ec23c88c06", "score": "0.50823295", "text": "@Override\r\n\tpublic double getMinimumPrice() {\r\n\t\treturn minimumPrice;\r\n\t}", "title": "" }, { "docid": "6c515a6cc8cf94e6ab87bd6fd07ce085", "score": "0.5052958", "text": "public void setMinPrice(Double minPrice) {\n\t\tthis.minPrice = minPrice;\n\t}", "title": "" }, { "docid": "a61773ddc3729e13c19f583698a05e3a", "score": "0.5048513", "text": "public void setMinValue(int min) {\n minValue = min;\n }", "title": "" }, { "docid": "374fe0f4d60ea6f9cef65fe7d455063d", "score": "0.501681", "text": "public float getMinValue() {\n return _minShow;\n }", "title": "" }, { "docid": "0d236be1f403420ba060b4ef40d918ff", "score": "0.5014969", "text": "public void selectHighToLowFromShortByFilter() {\n selectFromDropdownByText(_selectFilterPriceHighToLow, \"Price: High to Low\");\n }", "title": "" }, { "docid": "f49ab19ac4f60ce0276c3a6f4330580a", "score": "0.5012056", "text": "public Number getAutoRangeMinimum() {\r\n return this.autoRangeMinimum;\r\n }", "title": "" }, { "docid": "9f54b4019dd6d11a4a4ca75deb7925e1", "score": "0.49776626", "text": "public float getDesiredMinIncome()\n {\n return _desiredMinIncome;\n }", "title": "" }, { "docid": "bb655c0e404e7b00c06aad8b23491b9a", "score": "0.49590334", "text": "private SuggestSmartCampaignBudgetOptionsResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "title": "" }, { "docid": "1497aa60208f187371ff83a54a164b81", "score": "0.49544662", "text": "public void setLowPrice(String lowPrice) {\n\t\tthis.lowPrice = lowPrice == null ? null : lowPrice.trim();\n\t}", "title": "" }, { "docid": "2b4fa2a73843e705a33b2f403c23f6fc", "score": "0.49450502", "text": "public int getDefaultMin() {\r\n return defaultMin;\r\n }", "title": "" }, { "docid": "a35e6bf2a24393fcea7859873300b1fe", "score": "0.49403113", "text": "@MavlinkFieldInfo(\n position = 8,\n unitSize = 4,\n description = \"OSD parameter minimum value.\"\n )\n public final Builder minValue(float minValue) {\n this.minValue = minValue;\n return this;\n }", "title": "" }, { "docid": "7933dfffa30c05afe534ee5274b8b4e7", "score": "0.49378723", "text": "YoDouble getYoEffortLimitLower();", "title": "" }, { "docid": "a6cb81312c6871b180da15ec7899cf31", "score": "0.4932664", "text": "public void setMin(int min) {\r\n this.min = min;\r\n }", "title": "" }, { "docid": "04169f7510a4ccf017ea6766f04864da", "score": "0.49322438", "text": "public Double getMinPrice() {\n\t\treturn this.minPrice;\n\t}", "title": "" }, { "docid": "d7cc8ee3d68aad9b09e8c40a230992be", "score": "0.49254024", "text": "public int minimum() {\n return Integer.class.cast(get(\"minimum\"));\n }", "title": "" }, { "docid": "c275724b7f78c86bd8c08f611f9812fa", "score": "0.49181116", "text": "public int getMinValue() {\n return minValue;\n }", "title": "" }, { "docid": "cbc1937224165a5a2538764317c3cc13", "score": "0.4913973", "text": "public int getDamageMin() {\n\t\treturn damageMin;\n\t}", "title": "" }, { "docid": "ff59d5a4418544e15becce3b9b60fdde", "score": "0.49076793", "text": "public double getScaleHintMin() throws IOException, AutomationException {\n\t\treturn 0;\r\n\t}", "title": "" }, { "docid": "67be498c4cc132f477afca9edf142f87", "score": "0.4906551", "text": "private com.google.protobuf.SingleFieldBuilderV3<\n com.obctech.growbe.proto.serre.SerreData.SensorAir, com.obctech.growbe.proto.serre.SerreData.SensorAir.Builder, com.obctech.growbe.proto.serre.SerreData.SensorAirOrBuilder> \n getLowValueFieldBuilder() {\n if (lowValueBuilder_ == null) {\n lowValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n com.obctech.growbe.proto.serre.SerreData.SensorAir, com.obctech.growbe.proto.serre.SerreData.SensorAir.Builder, com.obctech.growbe.proto.serre.SerreData.SensorAirOrBuilder>(\n getLowValue(),\n getParentForChildren(),\n isClean());\n lowValue_ = null;\n }\n return lowValueBuilder_;\n }", "title": "" }, { "docid": "2b007ae66f7188c226946b9fb22791df", "score": "0.48926052", "text": "public void setActualLow(final double theActualLow) {\n this.actualLow = theActualLow;\n }", "title": "" }, { "docid": "59237146319a240d0ce6c423b5dbd372", "score": "0.48758593", "text": "public void setDesiredMinIncome(float i)\n {\n _desiredMinIncome = i;\n }", "title": "" }, { "docid": "8652c6d346b8069b441b3e3562fa533a", "score": "0.48624605", "text": "public float getMinValue() {\n return minValue;\n }", "title": "" }, { "docid": "8652c6d346b8069b441b3e3562fa533a", "score": "0.48624605", "text": "public float getMinValue() {\n return minValue;\n }", "title": "" }, { "docid": "064ef38ded57b5581f280c8a8db82f5b", "score": "0.48570403", "text": "private com.google.protobuf.SingleFieldBuilderV3<\n com.obctech.growbe.proto.serre.SerreData.SensorWater, com.obctech.growbe.proto.serre.SerreData.SensorWater.Builder, com.obctech.growbe.proto.serre.SerreData.SensorWaterOrBuilder> \n getLowValueFieldBuilder() {\n if (lowValueBuilder_ == null) {\n lowValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n com.obctech.growbe.proto.serre.SerreData.SensorWater, com.obctech.growbe.proto.serre.SerreData.SensorWater.Builder, com.obctech.growbe.proto.serre.SerreData.SensorWaterOrBuilder>(\n getLowValue(),\n getParentForChildren(),\n isClean());\n lowValue_ = null;\n }\n return lowValueBuilder_;\n }", "title": "" }, { "docid": "9aa0372087da2461959c5ca2f2b68da3", "score": "0.48494866", "text": "@Override\r\n\tpublic Question findMin() {\n return null;\r\n\t}", "title": "" }, { "docid": "ad8e42cfd39fd54391272168af6d20c9", "score": "0.48440412", "text": "public Builder clearLow() {\n bitField0_ = (bitField0_ & ~0x00000001);\n low_ = null;\n if (lowBuilder_ != null) {\n lowBuilder_.dispose();\n lowBuilder_ = null;\n }\n onChanged();\n return this;\n }", "title": "" }, { "docid": "527c556bd082c3531320dc47e71cc864", "score": "0.48418477", "text": "public void setMinimumIgnoreB(float min) {\r\n ignoreMinB = min;\r\n }", "title": "" }, { "docid": "c9695b2d29d042a164ad931849c7c673", "score": "0.48398924", "text": "public float getMin() { return Min; }", "title": "" }, { "docid": "fef800af4d2d2db39b06379f830d837b", "score": "0.48393655", "text": "public double low() {\n return lowBound;\n }", "title": "" }, { "docid": "089ab5c8ddafa122c894ddf262245567", "score": "0.4823165", "text": "public abstract float getMin();", "title": "" }, { "docid": "e4586aa6852fae8b440a2d76a1a5ac8f", "score": "0.4820112", "text": "public int getLow() {\n\t\treturn light.getLow();\n\t}", "title": "" }, { "docid": "3d4050000e9a6d927e891d67eb10c4d6", "score": "0.48095423", "text": "@ApiModelProperty(value = \"This minimum value encountered while producing this aggregate data point. If this is a cross-time aggregate then this is the minimum value encountered during the aggregation period. If this is a cross-entity aggregate then this is the minimum value encountered across all entities. If this is a cross-time, cross-entity aggregate, then this is the minimum value for any entity across the aggregation period.\")\n\n @Valid\n\n public BigDecimal getMin() {\n return min;\n }", "title": "" }, { "docid": "ef9beb2999210a9476356f140596b0b6", "score": "0.48086149", "text": "private Point minimum(ArrayList<Point> openSet) {\n\t\tPoint min = openSet.get(0);\n\t\tfor (Point point : openSet) {\n\t\t\tif (totalCostMap[point.x][point.y] < totalCostMap[min.x][min.y] ) {\n\t\t\t\tmin = new Point(min.x, min.y);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn min;\n\t}", "title": "" }, { "docid": "f3073c5abe20293cb9ca5f91004ee8d9", "score": "0.480104", "text": "public double getMin();", "title": "" }, { "docid": "bc0d94390e824caa5b67c91126b7bc41", "score": "0.47983685", "text": "public int getMinValue() {\n\t\treturn minValue;\n\t}", "title": "" }, { "docid": "8155c0f370014befad87215a25f4a405", "score": "0.47921833", "text": "public int getMin() {\n return min_;\n }", "title": "" }, { "docid": "8c6569b89a92d4fbeecd60e47ab6c69c", "score": "0.4789153", "text": "public Double lowerLimit() {\n return data.getJsonNumber(FhirPropertyNames.PROPERTY_LOWER_LIMIT).doubleValue();\n }", "title": "" }, { "docid": "9ab3041fb87e658a8b7ceb66f7bd9299", "score": "0.47828758", "text": "public int getMinValue(){\r\n int minValue = Integer.MAX_VALUE;\r\n for(String s: thisData[1].split(\",\"))\r\n if(Integer.parseInt(s)<minValue)\r\n minValue = Integer.parseInt(s);\r\n return minValue;\r\n }", "title": "" }, { "docid": "5479f7e9dac474072b388a9709887d17", "score": "0.47757283", "text": "public Integer getMinimumAmount() {\n return minimumAmount;\n }", "title": "" }, { "docid": "f3dfec3677b37041af49cbfe69e2e863", "score": "0.47686523", "text": "public IntValueProviderBuilder<Builder> min() {\n return min;\n }", "title": "" }, { "docid": "b5bba4bc344758d4f5932a5733aabc4d", "score": "0.4767969", "text": "int getMinVlaueValue();", "title": "" }, { "docid": "f331418dfa2d5889e6dd620cfccdc11c", "score": "0.4767964", "text": "@Operation(summary=\"Get Minimum price for an item to be eligible for new eBay shipping program.\")\n\t@GetMapping(value=\"/getminimumprice\",produces=MediaType.TEXT_HTML_VALUE)\n\t@ResponseBody\n\t@ExternalDocumentation(description = \"Get Minimum price for an item to be eligible for new eBay shipping program\")\n\t@HomeExerciseTrace\n\tpublic ResponseEntity<String> getMinimumPrice() throws HomeExerciseApplicationException\n\t{\n\t\treturn ResponseEntity.ok(\"Minumum price for an item to be qualified for new eBay shipping program is \"+Currency.getInstance(Locale.US).getSymbol(Locale.US)+\"\"+ priceRepository.findAll().get(0).getMinPrice());\n\t}", "title": "" }, { "docid": "22741a4fe565fe5e503c806c54c670e6", "score": "0.4767636", "text": "@Test\n\tvoid lower_budget() {\n\t\tAddress a = new Address(\"Korveeestraat\",299,\"2628DM\",\"Delft\");\n\t\tHouse h = new House(a , 5 , 1000);\n\t\t\n\t\tassertFalse(h.costsAtMost(500));\t\n\t}", "title": "" }, { "docid": "1be7adb459f0ed635da593e35977835a", "score": "0.47636524", "text": "public int getMin() {\n return min_;\n }", "title": "" }, { "docid": "6867794bd09b419bfb32ce728faf5640", "score": "0.47616914", "text": "public int getLowerBoundPrice() {\r\n return lowerBoundPrice;\r\n }", "title": "" }, { "docid": "b84925c541270ec91f38fa1a6ecc4161", "score": "0.47586626", "text": "public DataType getMinimum()\n {\n return this.minimum;\n }", "title": "" }, { "docid": "65d6d35087c181f325360172320032f8", "score": "0.47570953", "text": "public java.math.BigDecimal getMinMoneyLoad () {\n\t\treturn minMoneyLoad;\n\t}", "title": "" }, { "docid": "4d5c65b7b7f7f7e2446d787779f2d0b4", "score": "0.47566226", "text": "public void setMin(Integer min) {\n this.min = min;\n }", "title": "" }, { "docid": "48fb388552180c487c119e2032825831", "score": "0.47538415", "text": "public void setLowerLimit( double lowerLimit ) {\n this.lowerLimit = lowerLimit;\n }", "title": "" }, { "docid": "cb3bd00851752d56fbef543e40a5d688", "score": "0.47452953", "text": "public float getMin() {\n\t\treturn min;\n\t}", "title": "" }, { "docid": "bf16a839f7848b4cb3886a51032e4de8", "score": "0.47444522", "text": "public int getMinimumDelay()\r\n\t{\r\n\t\treturn PerformanceInfo.getLowestCommonBoundEntry(m_cascade.getId()).getBestBound(\r\n\t\t\t\tPerformanceEntry.DELAY);\r\n\t}", "title": "" }, { "docid": "ae9761d4a7655d8d935a270575178bcb", "score": "0.47435004", "text": "public double getMin() {\r\n\t\treturn minValue;\r\n\t}", "title": "" }, { "docid": "05296b99c8206cf307694a07ede8580f", "score": "0.47302666", "text": "static int getLowestCost(List<Card> cards) {\n int cost = 100;\n for (Card c : cards) {\n if (c.cost < cost && !c.isBusy) cost = c.cost;\n }\n return cost;\n }", "title": "" }, { "docid": "18b55ceea34f5d8c7ed360dead5086ff", "score": "0.47301513", "text": "public double min();", "title": "" }, { "docid": "68b1504e7a66e4a10c57c1bd5e6f93da", "score": "0.47207937", "text": "public Builder setRecommended(\n com.google.ads.googleads.v14.services.SuggestSmartCampaignBudgetOptionsResponse.BudgetOption.Builder builderForValue) {\n if (recommendedBuilder_ == null) {\n recommended_ = builderForValue.build();\n } else {\n recommendedBuilder_.setMessage(builderForValue.build());\n }\n bitField0_ |= 0x00000002;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "de52dc77d41380e7f121dd3f619f96b6", "score": "0.47186407", "text": "public Integer getMin() {\n return min;\n }", "title": "" }, { "docid": "b16488866a99093d72b99c02bc27a31d", "score": "0.47184476", "text": "public Builder setLowPriority(boolean value) {\n bitField0_ |= 0x00000002;\n lowPriority_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "9866a5af1865a8a19d8decb23ceec22b", "score": "0.4718061", "text": "public int getMin() { return min; }", "title": "" }, { "docid": "20ebbba6aa2d73e8689badfa4966f939", "score": "0.47168234", "text": "PolicyCreateBuilder minStep(int minStep);", "title": "" }, { "docid": "6f75d28ff5c1d8ea48af8c2631da4898", "score": "0.4715128", "text": "public String murderRateLow(){\r\n // set lowest murder rate and year to default value,\r\n // then check if there is a year that has a lower murder rate\r\n String murderYearLow = \"\" + year[0];\r\n double lowestMurderRate = murderRate[0];\r\n for (int i=0; i<year.length; i++){\r\n double temp = murderRate[i];\r\n if (temp <= lowestMurderRate){\r\n murderYearLow = \"\" + year[i] + \" - murder rate: \" + murderRate[i] + \"%\";\r\n }\r\n } // end of loop\r\n return murderYearLow;\r\n }", "title": "" }, { "docid": "bc43529125885c9b7cb37dd48c703116", "score": "0.4713595", "text": "public double getMin() {\n return min;\n }", "title": "" }, { "docid": "02ce33b9e1777c2993178f9889e1b6e3", "score": "0.47128344", "text": "public void testAssertStepBidMinimumPrice() {\n try {\n double price = Price.fromPriceIndex(MARKET_BASIS, 0).getPriceValue();\n\n Bid bid = createBid(power1, power2, Price.fromPriceIndex(MARKET_BASIS, 0));\n BidAnalyzer.assertStepBid(bid, power1, power2, price);\n fail(\"Expected Exception\");\n } catch (AssertionFailedError e) {\n }\n }", "title": "" }, { "docid": "09d1fb6bb7cf16cd859a89b3f5aea893", "score": "0.47126964", "text": "public com.obctech.growbe.proto.serre.SerreData.SensorWater.Builder getLowValueBuilder() {\n \n onChanged();\n return getLowValueFieldBuilder().getBuilder();\n }", "title": "" } ]
0f7b413145bc7651de4a53c97bcc6a17
Set the views. This is dependent on order and generally pretty icky.
[ { "docid": "5b0ef39eb1e3705b94adafdf6baa05fb", "score": "0.68646055", "text": "@Override\n public void setViews(List<TextView> views) {\n setHorizontalSetpointAngleView(views.get(0));\n setHorizontalAngleView(views.get(1));\n setHorizontalHighCalibrationView(views.get(2));\n setHorizontalLowCalibrationView(views.get(3));\n setVerticalSetpointAngleView(views.get(4));\n setVerticalAngleView(views.get(5));\n setVerticalHighCalibrationView(views.get(6));\n setVerticalLowCalibrationView(views.get(7));\n }", "title": "" } ]
[ { "docid": "a787f8fb3970a5ca8ed8d2d753866b88", "score": "0.7527343", "text": "private void setupViews() {\r\n\r\n\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "ce84a1fecdc299565104366a6b13fff2", "score": "0.7484396", "text": "protected void setUpViews() {}", "title": "" }, { "docid": "aac1712da7b92973738acc6b9a9f4bdc", "score": "0.6930062", "text": "public void setViews(List<WorldView> l) {\n _views = l;\n }", "title": "" }, { "docid": "592f3a9be55d4761c98d680212b6465d", "score": "0.6881238", "text": "public void views(View... views) {\r\n\t\tviews(views != null ? Arrays.asList(views) : Collections.emptyList());\r\n\t}", "title": "" }, { "docid": "2a4dab1e86cc9a35b26d5c69e01a86de", "score": "0.6729551", "text": "public void InitViews() {\n }", "title": "" }, { "docid": "027e51bc2d9b336d4660a23c2674428e", "score": "0.67004323", "text": "public void updateViews() {\n\t\tfor (View view : views) {\n\t\t\tview.update(this);\n\t\t}\n\t}", "title": "" }, { "docid": "a1dcb061b3ad75f0b57cb5b877df06b4", "score": "0.6632955", "text": "public void setViewHandles() {\r\n\t\tthis.empView.getBackButton().setOnAction(event -> {\r\n\t\t\tthis.primaryView.setDefaultSecondaryView();\r\n\t\t});\r\n\t\t\r\n\t\tthis.empView.getNameButton().setOnAction(event -> {\r\n\t\t\tthis.sortByName();\r\n\t\t\tthis.setViewerForm();\r\n\t\t});\r\n\t\t\r\n\t\tthis.empView.getHireDateButton().setOnAction(event -> {\r\n\t\t\tthis.sortByDate();\r\n\t\t\tthis.setViewerForm();\r\n\t\t});\r\n\t\t\r\n\t\tthis.empView.getDepartmentButton().setOnAction(event -> {\r\n\t\t\tthis.sortByDepartment();;\r\n\t\t\tthis.setViewerForm();\r\n\t\t});\r\n\t\t\r\n\t\tthis.empView.getPositionButton().setOnAction(event -> {\r\n\t\t\tthis.sortByPosition();\r\n\t\t\tthis.setViewerForm();\r\n\t\t});\r\n\t\t\r\n\t\tthis.empView.getTrainingHoursButton().setOnAction(event -> {\r\n\t\t\tthis.sortByTrainingHours();\r\n\t\t\tthis.setViewerForm();\r\n\t\t});\r\n\t\t\r\n\t\tthis.empView.getUpdateButton().setOnAction(event -> {\r\n\t\t\tthis.empView.setUpdateTextFields(this.manager.getDeptList());\r\n\t\t\tthis.empView.getButtonGroup().stream()\r\n\t\t\t\t\t\t.forEach( button -> {\r\n\t\t\t\t\t\t\tbutton.setDisable(true);\r\n\t\t\t});\r\n\t\t});\r\n\t\t\r\n\t\tthis.empView.getUpdateAllButton().setOnAction(event -> { \r\n\t\t\tthis.getUpdatedEmployeeInfo();\r\n\t\t\tthis.empView.getButtonGroup().stream()\r\n\t\t\t\t\t\t.forEach(button-> {\r\n\t\t\t\t\t\t\tbutton.setDisable(false);\r\n\t\t\t\t\t\t});\r\n\t\t\tthis.empView.uncheckBoxes();\r\n\t\t\tthis.showForm();\r\n\t\t});\r\n\t\t\r\n\t\treturn;\r\n\t}", "title": "" }, { "docid": "99501d64e20380367a1025656b853b60", "score": "0.6543659", "text": "public void setView(Object view) {\n\t\tthis.view = view;\n\t\tthis.handleConfig(\"view\", view);\n\t}", "title": "" }, { "docid": "83638b79a402dc1c49507421a9167de4", "score": "0.6529625", "text": "private void setupView(){\n // set up which view to show\n if(_currentUser == User.BUYER){\n setContentView(R.layout.product_details_buyer);\n }\n else if(_currentUser == User.SELLER) {\n setContentView(R.layout.product_details_seller);\n }\n\n // set up button listeners first.\n setUpListeners();\n }", "title": "" }, { "docid": "b7f95f9eaf0ad445845852de81eb4336", "score": "0.6501823", "text": "private void setupView() {\n }", "title": "" }, { "docid": "2bbe4d933ef310fc724a8df15f72446b", "score": "0.6441405", "text": "public void updateViews(){\r\n\t\tviews+=1;\r\n\t\t\r\n\t}", "title": "" }, { "docid": "bc32b064e6207ca0ae3d45449ca5bc16", "score": "0.64066637", "text": "private void init_views(View view) {\n }", "title": "" }, { "docid": "82457c371aab6a6d742ce742950a26cf", "score": "0.64059806", "text": "void setView(T view);", "title": "" }, { "docid": "9ca350bb802de3caf940993842fe9651", "score": "0.6382933", "text": "protected abstract void setupView();", "title": "" }, { "docid": "24c4f6a7e3e736f0ae0b75d7533d3ce0", "score": "0.6322466", "text": "private void updateViews()\n {\n for (SimulatorView view : views) {\n view.showStatus(step, field);\n }\n }", "title": "" }, { "docid": "f9feae75141f421519f20074b26df82d", "score": "0.63182914", "text": "private void setupViews() {\n\t\tsuper.setContentView(R.layout.actitvity_title);\n\t\tt_title = (TextView) findViewById(R.id.text_title); \n back = (ImageView) findViewById(R.id.button_back);\n other = (ImageView) findViewById(R.id.button_other);\n mContentLayout = (FrameLayout) findViewById(R.id.layout_content);\n\t}", "title": "" }, { "docid": "183f1e61f73598c155d65f8f7508e363", "score": "0.6299386", "text": "void setupView();", "title": "" }, { "docid": "1d1aa9e500a5e22018e0034b660e9ef1", "score": "0.6284941", "text": "@Override\n\tpublic void initViews() {\n\t\tbtn_tj = getView(R.id.btn_tj);\n\t\tback = getView(R.id.back);\n\t\tmyLV = getView(R.id.lv);\n\t\tsl = getView(R.id.sl);\n//\t\tmy_code = getView(R.id.my_code);\n\t\thdgz = getView(R.id.hdgz);\n\t}", "title": "" }, { "docid": "122b3eed7d5e4722bbfb13d8c806ce3a", "score": "0.62699044", "text": "protected abstract void initViews();", "title": "" }, { "docid": "b12e6d7ec7b54c55dcfb6dabcaedb205", "score": "0.6265335", "text": "public void setUserViews(com.booktera.data.CommonModels_Models_EntityFramework.UserView[] userViews) {\n this.userViews = userViews;\n }", "title": "" }, { "docid": "97910d82d6ad3c0762851cbe25af5e99", "score": "0.62612915", "text": "private void setViews() {\n Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);\n setSupportActionBar(toolbar);\n\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);\n ActionBarDrawerToggle toggle = new ActionBarDrawerToggle(\n this, drawer, toolbar, R.string.navigation_drawer_open, R.string.navigation_drawer_close);\n\n\n drawer.addDrawerListener(toggle);\n toggle.syncState();\n\n NavigationView navigationView = (NavigationView) findViewById(R.id.nav_view);\n navigationView.setNavigationItemSelectedListener(this);\n\n // Now we setup the TabHost and its tabs\n TabHost host = (TabHost) findViewById(R.id.tabhost);\n host.setup();\n\n //Tab recent\n TabHost.TabSpec spec = host.newTabSpec(getResources().getString(R.string.tab_recent_title));\n spec.setContent(R.id.tab_recent);\n spec.setIndicator(getResources().getString(R.string.tab_recent_title));\n host.addTab(spec);\n\n //Tab favorite\n spec = host.newTabSpec(getResources().getString(R.string.tab_favorite_title));\n spec.setContent(R.id.tab_favorite);\n spec.setIndicator(getResources().getString(R.string.tab_favorite_title));\n host.addTab(spec);\n host.setOnTabChangedListener(new AnimatedTabHostListener(this, host));\n\n //Tab all\n spec = host.newTabSpec(getResources().getString(R.string.tab_all_title));\n spec.setContent(R.id.tab_all);\n spec.setIndicator(getResources().getString(R.string.tab_all_title));\n host.addTab(spec);\n\n // Then, we are linking our views with the layout\n pbLoading = (ProgressBar) findViewById(R.id.pb_loading);\n rvAllGames = (RecyclerView) findViewById(R.id.rv_all_games);\n rvRecentGames = (RecyclerView) findViewById(R.id.rv_recent_games);\n rvFavoriteGames = (RecyclerView) findViewById(R.id.rv_favorite_games);\n rvAllGames = (RecyclerView) findViewById(R.id.rv_all_games);\n coordinatorLayout = (CoordinatorLayout) findViewById(R.id.coordinator);\n\n View hView = navigationView.getHeaderView(0);\n ivProfile = (ImageView) hView.findViewById(R.id.nav_iv_profile);\n tvAccountName = (TextView) hView.findViewById(R.id.nav_tv_account_name);\n tvNumberOfGames = (TextView) hView.findViewById(R.id.nav_tv_nb_games);\n tvTotalTimePlayed = (TextView) hView.findViewById(R.id.nav_tv_nb_hours_played);\n tvTotalPricePerHour = (TextView) hView.findViewById(R.id.nav_tv_price_per_hour);\n tvMoneySpent = (TextView) hView.findViewById(R.id.nav_tv_money_spent);\n\n }", "title": "" }, { "docid": "e4f3bcef4376b219a806f3f408332982", "score": "0.6246382", "text": "public void setViews(String[] strings){\n this.pathView.setText(strings[0]);\n// if (path == null) this.path=\"./\";\n// else this.path = path;\n// beforeChanging = {this.pathView, author, title, rating, genre, time, place, shortComment, imagePath};\n\n this.authorView.setText(strings[1]);\n this.titleView.setText(strings[2]);\n if (!strings[3].equals(\"\")){\n this.ratingView.setRating(Float.parseFloat(strings[3]));\n }\n this.genreView.setText(strings[4]);\n this.timeView.setText(strings[5]);\n this.placeView.setText(strings[6]);\n this.shortCommentView.setText(strings[7]);\n//// File file = new File(imagePath);\n// if (!imagePath.equals(\"\")){\n// this.coverView.setImageBitmap(BitmapFactory.decodeFile(strings[8]));\n// this.imagePath = imagePath;\n// }\n if (!strings[8].equals(\"\")){\n this.coverView.setImageBitmap(BitmapFactory.decodeFile(strings[8]));\n this.imagePath = imagePath;\n }\n }", "title": "" }, { "docid": "eb84b25fa86596a4566970a19882c00c", "score": "0.62458277", "text": "public abstract void setView();", "title": "" }, { "docid": "bea29a76366591dbb35491713511b55b", "score": "0.6238954", "text": "@Override\n protected void setUpViews() {\n\n initHideMoreMenuData();\n ViewGroup contentFrame = (ViewGroup) findViewById(R.id.content_frame);\n mAttentionPresenter = new AttentionDataPresenter();\n mAttentionPresenter.attachView(mAttentionView);\n mScannerView = new ZBarScannerView(this) {\n\n @Override\n protected IViewFinder createViewFinderView(Context context) {\n return new CustomViewFinderView(context);\n }\n };\n contentFrame.addView(mScannerView);\n }", "title": "" }, { "docid": "237938e521570063ec420879cac2bcb8", "score": "0.6236268", "text": "public void setView(String view) {\n\t\tthis.view = view;\n\t}", "title": "" }, { "docid": "bdc626d92d63a774efa15c20b22bfeaa", "score": "0.62361395", "text": "protected void initViews(){\n Log.d(TAG, \"initViews\");\n initToolBar();\n initDrawer();\n initThumbnailsView();\n initSwipeRefreshLayout();\n }", "title": "" }, { "docid": "a31dff2bb6659604bb7a4f7a45030337", "score": "0.6225133", "text": "@SuppressWarnings(\"unused\")\n\t@PostConstruct\n\tprivate void createViews() {\n\t\tthreadSequenceService.set(sequenceService);\n\t\tthreadAddressService.set(addressService);\n\t\tthreadSupplierService.set(supplierService);\n\t\tthreadSupplierTypeService.set(supplierTypeService);\n\t\tthreadSupplierGroupService.set(supplierGroupService);\n\t\tthreadSupplierKnowledgeService.set(supplierKnowledgeService);\t\t\n\t\t\n\t\t// add all views controlled by SliderView Component\n\t\tsupplierView = new SupplierView(context, this);\n\t\tsliderView.addView(supplierView);\n\t\tviews.put(0, supplierView);\n\t\t\n\t}", "title": "" }, { "docid": "6cc024c79a679bd0de923c6beb5779a6", "score": "0.6222125", "text": "private void initPrefViews() {\n\n initFoodTypesView();\n initRatingsView();\n initDistancesView();\n initPriceRangesView();\n initIsOpenNowView();\n activateActivityButtons();\n }", "title": "" }, { "docid": "b81441e33cc4fe770ebe32d3c052305f", "score": "0.6158348", "text": "private void initViews() {\n textViewName = findViewById(R.id.textViewName);\n recyclerViewUsers = findViewById(R.id.recyclerViewUsers);\n btnLogout = findViewById(R.id.btn_logout);\n btnEdit = findViewById(R.id.btn_edit);\n btnChangePassword = findViewById(R.id.btn_change_password);\n //make talk don't move to toolbar\n ViewCompat.setImportantForAccessibility(getWindow().findViewById(R.id.tvToolbar),\n ViewCompat.IMPORTANT_FOR_ACCESSIBILITY_NO);\n }", "title": "" }, { "docid": "e80af0a1be1ac8d2f15ab9792bf3fa89", "score": "0.6153688", "text": "void setViews() {\n mNameEditText = findViewById(R.id.edit_pet_name);\n mBreedEditText = findViewById(R.id.edit_pet_breed);\n mWeightEditText = findViewById(R.id.edit_pet_weight);\n mGenderSpinner = findViewById(R.id.spinner_gender);\n mImageView = findViewById(R.id.pet_image);\n }", "title": "" }, { "docid": "90c75bd2849ddb7fae6daca95f90119d", "score": "0.61472034", "text": "private void setView(final IView view) {\n\t\tthis.view = view;\n\t}", "title": "" }, { "docid": "b6d7d5241894b59381b95f650457529d", "score": "0.6101626", "text": "private void initViews(View view) {\n Toolbar tbToolbar = view.findViewById(R.id.tb_toolbar);\n view.findViewById(R.id.iv_toolbar_left).setVisibility(View.GONE);\n view.findViewById(R.id.tv_last_seen).setVisibility(View.GONE);\n ((HomeActivity) mActivity).setSupportActionBar(tbToolbar);\n TextView tvTitle = view.findViewById(R.id.tv_title);\n tvTitle.setText(getResources().getString(R.string.chat_text));\n ImageView ivToolbarRight = view.findViewById(R.id.iv_toolbar_right);\n ivToolbarRight.setImageResource(R.drawable.ic_chat_edit);\n tvDontSee = view.findViewById(R.id.tv_dont_see);\n ivAddFriendIcon = view.findViewById(R.id.iv_add_friend);\n btnAddFriend = view.findViewById(R.id.b_add_friend);\n rvChatList = view.findViewById(R.id.rv_chat_list);\n rvChatList.setLayoutManager(new LinearLayoutManager(mActivity));\n\n }", "title": "" }, { "docid": "0890cddeae82fa225f67e80f22992bd3", "score": "0.60637015", "text": "private void initializeViews() {\n TextView dateView = findViewById(R.id.date);\n TextView listNameView = findViewById(R.id.listName);\n TextView voterView = findViewById(R.id.voters);\n\n // Set date\n dateView.setText(Buddy.formatResultDate(result.getDate()));\n\n // Set list name\n listNameView.setText(activity.getString(R.string.resultList, result.getListName()));\n\n // Set voters names\n voterView.setText(activity.getString(R.string.resultVoters, result.getVoters()));\n }", "title": "" }, { "docid": "19613de24cb4fe96a4e9196c37cd0cdb", "score": "0.60509366", "text": "private void setupViews() {\n listView = findViewById(R.id.list_view_data);\n }", "title": "" }, { "docid": "af52a07e55594d9c87ec3159ee3c457d", "score": "0.60492486", "text": "@Override\n public void setUpViews(View contentView) {\n tvSao = (TextView) contentView.findViewById(R.id.tv_sao);\n tvYao = (TextView) contentView.findViewById(R.id.tv_yaoq);\n tvTx = (TextView) contentView.findViewById(R.id.tv_tx);\n }", "title": "" }, { "docid": "dd2351ac2be94aaac32b771c9e799d69", "score": "0.6039039", "text": "private void loadAllViews() {\n Arrays.stream(Objects.requireNonNull(\n new File(getClass().getResource(\"/application/views/\").getFile()).listFiles()))\n .forEach(file ->\n ViewHandler.getInstance().put(file.getName().replaceAll(\".fxml\", \"\"), this.fileToView(file))\n );\n }", "title": "" }, { "docid": "4614b1a36c2de821767f994da4aeca6a", "score": "0.6032429", "text": "public void setView(View view) {\n this.view = view;\n }", "title": "" }, { "docid": "19600ecc51f48d343fdecbaedc22ec60", "score": "0.6031235", "text": "private void initView() {\n initBlocksView();\n initRecordsView();\n updateEnemyView();\n updateCharacterView();\n }", "title": "" }, { "docid": "2180537d29b6d6065f85c05c588668e2", "score": "0.60079986", "text": "void setViewDefinitions(List<CQLDefinition> viewDefinitions);", "title": "" }, { "docid": "7b0d7de0d5d497aa9a3f1be5f1e5a6ca", "score": "0.60035926", "text": "public void setView(IView view) {\r\n\t\tthis.view = view;\r\n\t}", "title": "" }, { "docid": "149fa8d7a8bef525377d9df855c3e1d8", "score": "0.5983247", "text": "private void initView() {\n\n\t}", "title": "" }, { "docid": "7fee4bc2bb06f63e78fddb8d1a7c43f4", "score": "0.5981748", "text": "public void setView(Register view){\t\t\r\n\t\tthis.view = view;\r\n\t}", "title": "" }, { "docid": "2d2f6dd9a5a4bb514baf6e4ff02a3e5d", "score": "0.5942711", "text": "public void setView(TUIView nview){\n\t\tview = nview;\n\t}", "title": "" }, { "docid": "84bf5a7899936c922ad5c77c363a5e85", "score": "0.5928108", "text": "private void initView() {\n\t}", "title": "" }, { "docid": "816b92091ad35edcc9c8d25ad10ef6fb", "score": "0.5898689", "text": "public void setViewStyle(){\n //Set view's params.\n LinearLayout.LayoutParams layoutParams = new android.widget.LinearLayout.LayoutParams(\n AppSetting.getDeviceScreenWidth()/3 - MARGIN_WIDTH * 2, //The width according the margin.\n AppSetting.getDeviceScreenWidth()/3);\n layoutParams.setMargins(MARGIN_WIDTH, 0, MARGIN_WIDTH, 0); //Set left and right margin.\n setLayoutParams(layoutParams); //Apply the LayoutParams to this view.\n }", "title": "" }, { "docid": "5156eb048c3b8bf5d2a120e117bdc60a", "score": "0.5884206", "text": "private void initViews() {\n\t\ttitle = (TextView) this.findViewById(R.id.temp_title);\r\n\t\tcontent = (TextView) this.findViewById(R.id.temp_text);\r\n\t}", "title": "" }, { "docid": "4d005f19c4461f4cb389e782ea623912", "score": "0.58447355", "text": "public void setView(GestVendasViewI view){this.view = view;}", "title": "" }, { "docid": "98b7a0ae9c975ee2dcc4097e488696f0", "score": "0.5838215", "text": "protected abstract void initViewsAndEvents();", "title": "" }, { "docid": "515d1744f6687a8570e73091ccb2476e", "score": "0.58358157", "text": "@Test\n public void testOverrideView() {\n // Create view\n final View view = new View();\n view.setPartitions(\"\");\n view.setTopic(\"MyTopic\");\n view.setResultsPerPartition(10);\n\n // Create consume request\n final ConsumeRequest consumeRequest = new ConsumeRequest();\n consumeRequest.setPartitions(\"2,3\");\n consumeRequest.setResultsPerPartition(100);\n\n // Create instance & override\n final ViewCustomizer viewCustomizer = new ViewCustomizer(view, consumeRequest);\n viewCustomizer.overrideViewSettings();\n\n assertEquals(\"Should have 100 results per partition\", 100, (int) view.getResultsPerPartition());\n assertEquals(\"should have partitions 2 and 3\", \"2,3\", view.getPartitions());\n assertEquals(\"should have partitions 2 and 3\", 2, view.getPartitionsAsSet().size());\n assertTrue(\"should have partitions 2 and 3\", view.getPartitionsAsSet().contains(2));\n assertTrue(\"should have partitions 2 and 3\", view.getPartitionsAsSet().contains(3));\n }", "title": "" }, { "docid": "fac38e70e8c85b20ad8778897598f7b0", "score": "0.5832505", "text": "public void switchView(){\n\n clearActivityLists();\n\n if(team.equals(\"Alle Teams\")) {\n\n for (Team theTeams : department.getTeam()) {\n Collection<Task> allActivitiesOfThisUser = null;\n for (User teamMember : theTeams.getTeamMember()) {\n allActivitiesOfThisUser = taskService.loadTaskByUser(teamMember);\n }\n this.allActivities.addAll(allActivitiesOfThisUser);\n }\n\n }else{\n Team selectedTeam = teamService.findTeamByTeamName(team);\n\n for (User teamMember : selectedTeam.getTeamMember()) {\n this.allActivities = taskService.loadTaskByUser(teamMember);\n }\n }\n\n determineActivities(allActivities);\n\n generateHashMapPercent(monthlyActivities);\n\n allActivities.clear();\n\n }", "title": "" }, { "docid": "678403f0486ba9516adae74340f3d0d8", "score": "0.58270943", "text": "void setDataViews(DataView[] dvs) {\r\n\t\tthis.dataViews = new CaseInsensitiveLinkedMap<DataViewInfoImpl>();\r\n\t\tDataViewInfoImpl dvinfo;\r\n\t\tDataView dv;\r\n\t\tfor(int i = 0; i < dvs.length; i++) {\r\n\t\t\tdv = dvs[i];\r\n\t\t\tdvinfo = new DataViewInfoImpl(messageRepository, dv, model);\r\n\t\t\tthis.dataViews.put(\r\n\t\t\t\t\tdv.getName(), dvinfo);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "25a8b61fcd51cb68f89c40d64931928e", "score": "0.58123666", "text": "private void initViews() {\n initTitleView();\n mHideBtn.setOnClickListener(this);\n mSelectAllBtn.setOnClickListener(this);\n //mShowHideBtn.setOnClickListener(this);\n //mCenterTitleText.setText(\"相册\");\n list = new ArrayList<String>();\n initTileBar(false);\n }", "title": "" }, { "docid": "96de14acc2ec94846509ade2418ff3b9", "score": "0.580518", "text": "private void setViewOptions() {\n String userval = mSharedPreference.getKeyUsername();\n if (userval.equalsIgnoreCase(\"installer\")) {\n mDdrsview.setVisibility(View.GONE);\n matpcview.setVisibility(View.GONE);\n mSpatialview.setVisibility(View.GONE);\n mMcsIndexRow.setVisibility(View.GONE);\n mMinMcsIndexRow.setVisibility(View.GONE);\n mMaxMcsIndexRow.setVisibility(View.GONE);\n mTxPowerRow.setVisibility(View.GONE);\n }\n }", "title": "" }, { "docid": "e86f3a945853d5f1683a2c1e59c877c7", "score": "0.5797415", "text": "@Override\n protected void createViews() {\n\n if (preferences.contains(\"BackgroundColor\")) {\n int backgroundColor = preferences.getInteger(\"BackgroundColor\", Color.BLACK);\n // Background of activity:\n appView.getView().setBackgroundColor(backgroundColor);\n }\n\n appView.getView().requestFocusFromTouch();\n }", "title": "" }, { "docid": "15a5c47fbafb60fb1d037f5607b3b961", "score": "0.5796184", "text": "private void initView()\r\n\t{\n\t\t;\r\n\t}", "title": "" }, { "docid": "83cd89a23486ea71dd33e07a5b840511", "score": "0.5785697", "text": "private void initializeViews() {\n\n setSupportActionBar(toolbar);\n if (getSupportActionBar() != null) {\n getSupportActionBar().setDisplayShowTitleEnabled(false);\n getSupportActionBar().setDisplayHomeAsUpEnabled(true);\n getSupportActionBar().setHomeAsUpIndicator(R.drawable.back_white_btn);\n }\n\n tv_title.setText(title);\n tv_title.setTypeface(appTypeFace.getPro_narMedium());\n iv_search.setVisibility(View.GONE);\n tv_newpass_msg.setTypeface(appTypeFace.getPro_News());\n tv_new_pass.setTypeface(appTypeFace.getPro_News());\n tv_reenter_pass.setTypeface(appTypeFace.getPro_News());\n tv_continue.setTypeface(appTypeFace.getPro_narMedium());\n et_new_pass.setTypeface(appTypeFace.getPro_News());\n et_reenter_pass.setTypeface(appTypeFace.getPro_News());\n\n userId = getIntent().getStringExtra(USER_ID);\n\n }", "title": "" }, { "docid": "4d4ba02414666a2adff1374557c84668", "score": "0.57809377", "text": "private void setupViews() {\n\t\tetQuery = (EditText) findViewById(R.id.editText10);\n\t\tgvResults = (GridView) findViewById(R.id.gridView1);\n\t\tbtnSearch = (Button) findViewById(R.id.Search);\n\t\tloadmore = (Button) findViewById(R.id.load);\n\t}", "title": "" }, { "docid": "2879660f9955f0f09fdc636a0206491d", "score": "0.5774852", "text": "public Views() {\n this(DSL.name(\"VIEWS\"), null);\n }", "title": "" }, { "docid": "28b57657037e6d3c39fdd775bff8304e", "score": "0.57713574", "text": "public void setView(ViewScreen view) {\n\t\tthis.view = view;\n\t}", "title": "" }, { "docid": "f6306e5c4c5dbd134726cd6bf89ea340", "score": "0.57587904", "text": "private void setAppearance(View view, int HSEViewType) throws IllegalArgumentException\n {\n int drawableID;\n int backgroundColor = R.color.typical_item;\n switch (HSEViewType)\n {\n case ScreenTypes.INNER_WEB_PAGE:\n drawableID = R.drawable.section1;\n backgroundColor = R.color.web_item;\n break;\n case ScreenTypes.WEB_PAGE:\n drawableID = R.drawable.section2;\n backgroundColor = R.color.web_item;\n break;\n case ScreenTypes.FILE:\n drawableID = R.drawable.section3;\n backgroundColor = R.color.file_item;\n break;\n case ScreenTypes.HTML_CONTENT:\n drawableID = R.drawable.section4;\n break;\n case ScreenTypes.FACEBOOK:\n drawableID = R.drawable.section5;\n backgroundColor = R.color.facebook_item;\n break;\n case ScreenTypes.VK_PUBLIC_PAGE_WALL:\n drawableID = R.drawable.section6;\n backgroundColor = R.color.vk_item;\n break;\n case ScreenTypes.VK_FORUM:\n drawableID = R.drawable.section6;\n backgroundColor = R.color.vk_item;\n break;\n case ScreenTypes.RSS_WRAPPER:\n drawableID = R.drawable.section8;\n backgroundColor = R.color.rss_item;\n break;\n case ScreenTypes.EVENTS:\n drawableID = R.drawable.section9;\n backgroundColor = R.color.event_item;\n break;\n case ScreenTypes.CONTAINER_SCREEN:\n drawableID = R.drawable.section10;\n break;\n case ScreenTypes.MAP:\n drawableID = R.drawable.section13;\n break;\n default:\n return;\n }\n Resources resources = getActivity().getResources();\n Drawable image = resources.getDrawable(drawableID);\n ((ImageView) view.findViewById(R.id.item_image_id)).setImageDrawable(image);\n (view.findViewById(R.id.item_content)).setBackgroundColor(resources.getColor(backgroundColor));\n }", "title": "" }, { "docid": "89880ab8a65df8dcef03c26b3b798064", "score": "0.5756994", "text": "public void setViewConfig(Object viewConfig) {\n\t\tthis.viewConfig = viewConfig;\n\t\tthis.handleConfig(\"viewConfig\", viewConfig);\n\t}", "title": "" }, { "docid": "54b073ab256da67f72f410b9a175d0c2", "score": "0.5751211", "text": "public void setView(Table view){\r\n this.view = view;\r\n }", "title": "" }, { "docid": "6d68e7bd1733be9b0076f32ba0496df4", "score": "0.5749141", "text": "public void setView(String net) {\n\t\tview.clearNet();\n\t\tHashSet<Edge> edges = nets.get(net);\n\t\tfor (Edge e:edges) view.addEdge(e);\n\t\tview.updateNet();\n\t}", "title": "" }, { "docid": "b65350d214ad8a42ee2c6c57187da766", "score": "0.57487714", "text": "public void refreshViews() {\n // Refresh login view\n this.getMainController().getApplication().getLoginController().refresh();\n // Refresh sign up view\n this.getMainController().getApplication().getSignUpController().refresh();\n // Refresh music info view (it refresh comment music info view)\n this.getMainController().getCurrentMusicInfoController().refresh();\n }", "title": "" }, { "docid": "5c1efc2745c58689652b6f82f8b5cafc", "score": "0.5747054", "text": "private void initViews() {\n backIV = findViewById(R.id.ase_back_iv);\n doneIV = findViewById(R.id.ase_done_iv);\n addImage1FL = findViewById(R.id.ase_add_image1_fl);\n addImage1IV = findViewById(R.id.ase_add_image1_iv);\n addImage1TV = findViewById(R.id.ase_add_image1_tv);\n locationTV = findViewById(R.id.ase_location_tv);\n// conditionRG = findViewById(R.id.ase_condition_rg);\n titleET = findViewById(R.id.ase_item_title_et);\n url = findViewById(R.id.url);\n\n }", "title": "" }, { "docid": "62eb4511659a12498645d73e7ae8d6b0", "score": "0.5746314", "text": "private void initViews() {\n\t\tView view = this.getView();\r\n\t\tsetWidthHeight(view);\r\n\t\thistoryList = (ListView) view.findViewById(R.id.historyList);\r\n\t\tdata = GetDataFromSQL.getSession(context);\r\n\t\tadapter = new HistoryAdapter(context, data);\r\n\t\thistoryList.setAdapter(adapter);\r\n\r\n\t\thistoryList.setOnItemClickListener(new OnItemClickListener() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View view, int position, long id) {\r\n\t\t\t\tGlobal.sessionId = String.valueOf(data.get(position).SessionId);\r\n\t\t\t\tActivityTabBar.getInstance().selectTab(\"Statistics\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tcontent_menu_btn.setOnClickListener(new OnClickListener() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tgotoActivitySessionList();\r\n\t\t\t}\r\n\t\t});\r\n\t}", "title": "" }, { "docid": "9726772fa0d369a6e75fd7f45fdb4bfb", "score": "0.5745697", "text": "private void initViews() {\n progressBarCircle = (ProgressBar) getView().findViewById(R.id.progressBarCircle);\n editTextMinute = (EditText) getView().findViewById(R.id.editTextMinute);\n textViewTime = (TextView) getView().findViewById(R.id.textViewTime);\n imageViewReset = (ImageView) getView().findViewById(R.id.imageViewReset);\n imageViewStartStop = (ImageView) getView().findViewById(R.id.imageViewStartStop);\n }", "title": "" }, { "docid": "5b17ba99b475570746dfe2b90097eff3", "score": "0.5744546", "text": "public void setView(View view) {\n\t\tleftClickImage(view.file);\n\t}", "title": "" }, { "docid": "c04f04927ee129fbe67c9de39b221431", "score": "0.5734108", "text": "@Override\n public void setView() {\n \n gl.glEnable(GL_LIGHTING);\n gl.glEnable(GL_LIGHT0);\n gl.glEnable(GL_LIGHT1);\n // Select part of window.\n gl.glViewport(0, 0, gs.w, gs.h);\n gl.glGetIntegerv(GL_VIEWPORT, viewP);\n // Set projection matrix.\n gl.glMatrixMode(GL_PROJECTION);\n gl.glLoadIdentity();\n \n // Set the perspective.\n glu.gluPerspective(45, (float)gs.w / (float)gs.h, 0.1*gs.vDist, 100*gs.vDist);\n \n gl.glGetFloatv(GL_PROJECTION_MATRIX, projM);\n\n // Set camera.\n\n gl.glMatrixMode(GL_MODELVIEW);\n \n gl.glLoadIdentity();\n \n camera.update(gs, robots[0]);\n \n // Update the view according to the camera mode and robot of interest.\n // For camera modes 1 to 4, determine which robot to focus on.\n \n //camera.update(gs, robots[gs.]);\n \n glu.gluLookAt(camera.eye.x(), camera.eye.y(), camera.eye.z(),\n camera.center.x(), camera.center.y(), camera.center.z(),\n camera.up.x(), camera.up.y(), camera.up.z());\n \n \n gl.glGetFloatv(GL_MODELVIEW_MATRIX, viewM);\n }", "title": "" }, { "docid": "850894a8e0aa860f746a2642c1a733c9", "score": "0.5730085", "text": "private void initViews() {\n mFab = findViewById(R.id.fab_add);\n mTvEmpty = findViewById(R.id.tv_empty_view);\n mIvEmpty = findViewById(R.id.iv_empty_view);\n mListView = findViewById(R.id.lv_list);\n mEmptyView = findViewById(R.id.empty_view);\n }", "title": "" }, { "docid": "3756ca6b8e3d921c3a0981b84e28dc17", "score": "0.5729238", "text": "private void initViews() {\n floatingActionButton = findViewById(R.id.floating_action_button);\n toolbar = findViewById(R.id.toolbar);\n recyclerView = findViewById(R.id.recycler_view);\n }", "title": "" }, { "docid": "b713bd5ee20692a4f5bdbed73b2092ff", "score": "0.5716104", "text": "@Override\n\tprotected void setUpView(View rootView){\n\n\t}", "title": "" }, { "docid": "89f440a0f2f45156446d5d1c4e93b6f0", "score": "0.5710817", "text": "public void notifyViews(){\n for(View view : views){\n view.update(this);\n }\n }", "title": "" }, { "docid": "bce19f5ace9093482495d67bc6d20d39", "score": "0.5692874", "text": "@Override\r\n\tprotected void initView() {\n\t\t\r\n\t}", "title": "" }, { "docid": "0f42a1e292dfd266e1c4bbae18462402", "score": "0.5691731", "text": "private void bindViews() {\n //Init activity's main layout\n setContentView(R.layout.activity_main);\n\n //Find root coordinator layout\n clParent = findViewById(R.id.cl_parent);\n\n //Init toolbar\n Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);\n setSupportActionBar(toolbar);\n\n //Init calendar & agenda related views\n initCalendarViews();\n initAgendaViews();\n initMonthPickerViews();\n\n //Scroll to today's date\n scrollAgendaToDate(\n new Date()\n );\n\n //Init add button\n fab = (FloatingActionButton) findViewById(R.id.fab);\n }", "title": "" }, { "docid": "d194926beb8004923041642d89490827", "score": "0.5689274", "text": "private void initViews() {\n mEditTextTitle = findViewById(R.id.section_enter_title_ET);\n mEditTextNumBars = findViewById(R.id.editTextNumBars);\n mEditTextSectionDescription = findViewById(R.id.editTextSectionDescription);\n\n mButtonDoneSection = findViewById(R.id.buttonDoneSection);\n mButtonDoneSection.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n onSaveButtonClicked();\n }\n });\n mButtonColor = findViewById(R.id.buttonColor);\n mButtonColor.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n onColorButtonClicked();\n }\n });\n }", "title": "" }, { "docid": "29d2eaf075dcf57ac2f645dd35909e9f", "score": "0.568165", "text": "private void setupViews() {\n boolean beggnsWithYear = false;\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR2) {\n final String bestDateTimePattern = DateFormat.getBestDateTimePattern(mCurrentLocale, \"yMMMd\");\n final int[] viewIndices = CalendarUtils.getMonthDayYearIndexes(bestDateTimePattern);\n beggnsWithYear = viewIndices[CalendarUtils.YEAR_INDEX] == 0;\n }\n\n // Position Day and Month views within the MonthAndDay view.\n mMonthAndYearLayout.removeAllViews();\n if (beggnsWithYear) {\n mMonthAndYearLayout.addView(mHeaderYearTextView);\n mMonthAndYearLayout.addView(mHeaderMonthTextView);\n } else {\n mMonthAndYearLayout.addView(mHeaderMonthTextView);\n mMonthAndYearLayout.addView(mHeaderYearTextView);\n }\n }", "title": "" }, { "docid": "d568e5cf31802a9070a74705418a452b", "score": "0.5675999", "text": "private void initOutputViews(View rootView){\n\t\tfindAndSetText(rootView, \n\t\t\t\tR.id.careerstack_careerItem_text_jobTitle, mCareerItem.getTitle());\n\t\t\n\t\tfindAndSetText(rootView, \n\t\t\t\tR.id.careerstack_careerItem_text_companyLocationEtc, mCareerItem.getCompanyLocationEtc());\n\t\t\n\t\tinitTags(rootView);\n\t\tinitJobDescription(rootView);\n\t\t\n\t\tfindAndSetText(rootView, \n\t\t\t\tR.id.careerstack_careerItem_text_publishDate,\n\t\t\t\tString.format(getString(R.string.careerstack_formatString_publishDate),\n\t\t\t\t\t\tUtility.getRelativeTime(getActivity(), mCareerItem.getPublishDate())\n\t\t\t\t));\n\t\tfindAndSetText(rootView, \n\t\t\t\tR.id.careerstack_careerItem_text_updateDate,\n\t\t\t\tString.format(getString(R.string.careerstack_formatString_updateDate),\n\t\t\t\t\t\tUtility.getPreciseDate(mCareerItem.getUpdateDate())\n\t\t\t\t));\n\t}", "title": "" }, { "docid": "8f389fb6aeebf9ca021ee17e4fcb411a", "score": "0.56749964", "text": "private void initView() {\n }", "title": "" }, { "docid": "d38e89dc0fb97b17ca96bd11a95375de", "score": "0.566481", "text": "private void initViews() {\n\n toolbarWishListFragment = view.findViewById(R.id.toolbarWishListFragment);\n\n linearLayoutWishListFragmentEmpty = view.findViewById(R.id.linearLayoutWishListFragmentEmpty);\n linearLayoutWishListFragment = view.findViewById(R.id.linearLayoutWishListFragment);\n\n buttonContinueShopping = view.findViewById(R.id.buttonContinueShopping);\n\n circleProgressBarLayout = view.findViewById(R.id.circleProgressBarLayout);\n circleProgressBar = view.findViewById(R.id.circleProgressBar);\n recyclerViewShowWishListItems = view.findViewById(R.id.recyclerViewShowWishListItems);\n }", "title": "" }, { "docid": "c3e81a4cb0391c603d633157a4c1ffbe", "score": "0.56537485", "text": "private void setUpMVP() {\n Presenter mPresenter = new Presenter(this);\n Model mModel = new Model(mPresenter);\n mPresenter.setModel(mModel);\n viewOperationsToPresenter = mPresenter;\n }", "title": "" }, { "docid": "dff6376d265b45660412672e534ec3dd", "score": "0.5648978", "text": "protected final void setUpView() {\n // set Toolbar\n setSupportActionBar(mToolbar);\n getSupportActionBar().setDisplayHomeAsUpEnabled(true);\n }", "title": "" }, { "docid": "5f7352615daec31ccc982728e7e23fed", "score": "0.5646643", "text": "@Override\n\t\tpublic void populateViewerSets() {\n\n\t\t}", "title": "" }, { "docid": "8a5c253bcfb4d199ab9966c3103843b1", "score": "0.5644224", "text": "private void setUpViews() {\n\t\tmainActivity = (MainActivity) getParent();\n\t\tfavouritesListView = (ListView) findViewById(R.id.favourites_list_view);\n\t\tcolorAdapter = new ColorAdapter(this, R.layout.color, mainActivity.getFavouriteColorLst());\n\t\tfavouritesListView.setAdapter(colorAdapter);\n\t\tfavouritesListView.setEmptyView(findViewById(R.id.favourites_list_empty));\n\t\tfavouritesListView.setOnItemLongClickListener(new OnItemLongClickListener() {\n\t\t\tpublic boolean onItemLongClick(AdapterView<?> parent, View view, int position, long id) {\n\t\t\t\tselectedColor = colorAdapter.getItem(position);\n\t\t\t\tshowDialog(DELETE_DIALOG_ID);\n\t\t\t\treturn true;\n\t\t\t}\n\t\t});\n\t\tfavouritesListView.setOnItemClickListener(new OnItemClickListener() {\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\t\t\t\t((MainActivity)getParent()).editColor(colorAdapter.getItem(position).getHex());\n\t\t\t}\n\t\t});\n\t}", "title": "" }, { "docid": "91c1d7fabb31675526ba3f84fe047632", "score": "0.56413037", "text": "private void InitViews() {\n\t\tactionleft = (ImageView) findViewById(R.id.actionleft);\n\t\tactionleft.setOnClickListener(this);\n\t\trightText = (TextView) findViewById(R.id.rightText);\n\t\trightText.setOnClickListener(this);\n\t\trecLeft = (RadioButton) findViewById(R.id.recleft);\n\t\trecRight = (RadioButton) findViewById(R.id.recright);\n\t\trightText.setOnClickListener(this);\n\t\tchoose = (LinearLayout) findViewById(R.id.choose);\n\t\tchange = (RadioGroup) findViewById(R.id.change);\n\t\tchange.setOnCheckedChangeListener(onCheckedChangeListener);\n\t\tif (recLeft.isChecked()) {\n\t\t\tFragment frg = new recommendFragment();\n\t\t\tgetSupportFragmentManager().beginTransaction()\n\t\t\t\t\t.replace(R.id.choose, frg).commitAllowingStateLoss();\n\t\t} else if (recRight.isChecked()) {\n\t\t\tFragment frg = new SearchFragment();\n\t\t\tgetSupportFragmentManager().beginTransaction()\n\t\t\t\t\t.replace(R.id.choose, frg).commitAllowingStateLoss();\n\t\t}\n\t}", "title": "" }, { "docid": "14b0ba1bc66f907f13d83f81805a264b", "score": "0.56395143", "text": "public void setView(ViewShop v) {\n\t\tthis.view = v;\r\n\t}", "title": "" }, { "docid": "12e2dcd13a7b6d2607ff39502a5aab49", "score": "0.56373775", "text": "private void setDataOnView() {\n }", "title": "" }, { "docid": "81e49a74f458e5fb0d40fb2e589ed4a1", "score": "0.5611978", "text": "public void setNumberOfviews(int numberOfviews) {\n this.numberOfviews = numberOfviews;\n }", "title": "" }, { "docid": "3754dfe80071fbfcbcbebbf6750a2380", "score": "0.560679", "text": "private void bindViews() {\n if (mAirWaste == null || mViewRoot == null) {\n return;\n }\n\n addVisibilityDialog();\n bindSingleDependencyViews();\n bindDualDependencyViews();\n bindSimpleNoDependencyTextViews();\n }", "title": "" }, { "docid": "3eb731797d639596553f7a7cf6a3006e", "score": "0.5591899", "text": "private void initView() {\n mToolbar = findViewById(R.id.toolbar);\n mDrawerLayout = findViewById(R.id.drawer_layout);\n mNavigationView = findViewById(R.id.nav_view);\n }", "title": "" }, { "docid": "4db8d38f4155c4f07ec0d49dd7e236a6", "score": "0.5588645", "text": "private void setViewsAndListeners() {\n // Set views\n mFavoriteImageView = findViewById(R.id.favorite_toolbar);\n ImageView mBackImageView = findViewById(R.id.back_toolbar);\n TextView mSaveTextView = findViewById(R.id.save_toolbar);\n mTitleEditText = findViewById(R.id.title_write_activity);\n mDescriptionEditText = findViewById(R.id.description_write_activity);\n\n // Set tag\n mFavoriteImageView.setTag(R.drawable.favorite_icon_unfilled);\n\n // Set toolbar\n Toolbar toolbar = findViewById(R.id.toolbar_write_activity);\n setSupportActionBar(toolbar);\n\n // Set listeners\n mFavoriteImageView.setOnClickListener(this::setFavorite);\n mSaveTextView.setOnClickListener(v -> saveNote());\n mBackImageView.setOnClickListener(v -> finish());\n }", "title": "" }, { "docid": "ff14ed97bb4f2cdaccbc5663fb1534b3", "score": "0.55846244", "text": "public static void toggleView(RemoteViews views, int count, int view) {\n Log.i(\"togling view for\", \" for: \" + view);\n views.setImageViewResource(view, getView(count, view));\n }", "title": "" }, { "docid": "cc348f2e9a34afa02812a41eebec35bf", "score": "0.55815417", "text": "@Override\n protected void findViews() {\n orderNumberText = (TextView) contentView.findViewById(R.id.order_detail_number);\n orderStateText = (TextView) contentView.findViewById(R.id.order_detail_state);\n orderDateText = (TextView) contentView.findViewById(R.id.order_detail_date);\n orderDateText = (TextView) contentView.findViewById(R.id.order_detail_date);\n moneyText = (TextView) contentView.findViewById(R.id.order_detail_total_money);\n typeTextView = (TextView) contentView.findViewById(R.id.list_order_type);\n accountTextView = (TextView) contentView.findViewById(R.id.list_order_account);\n detailTextView = (TextView) contentView.findViewById(R.id.list_order_detail);\n payButton = (TextView) contentView.findViewById(R.id.order_detail_action_pay);\n initViews();\n registerViews();\n }", "title": "" }, { "docid": "2ed860da2acb9df4d1b08a0a4eff979a", "score": "0.557309", "text": "private void changeView(int i) {\n\t\tdataBox.setText(this.data[i] + \" \" + this.units);\n\t\tviewLabel.setText(Widget.views[i]);\n\n\t}", "title": "" }, { "docid": "bcfeace267c3c942fbac6a1cbf406ad6", "score": "0.5572567", "text": "@Override\n\tpublic void InitView() {\n\t\t\n\t}", "title": "" }, { "docid": "7743057b51cc6be57747b06b092cd78e", "score": "0.557104", "text": "private void iniView(Context context) {\n\t\tView.inflate(context, R.layout.ui_setting_click, this);\r\n\t\ttv_desc = (TextView) this.findViewById(R.id.tv_desc);\r\n\t\tiv_back=(ImageView) this.findViewById(R.id.iv_right);\r\n\t}", "title": "" }, { "docid": "6289d08375808ab9a6331c022dacabc1", "score": "0.55702734", "text": "protected void initViews() {\n\t\trl_user = (RelativeLayout) findViewById(R.id.rl_user);\n\t\tmLoginButton = (Button) findViewById(R.id.login);\n\t\tmRegisterButton = (Button) findViewById(R.id.register);\n\t\tmAccount = (EditText) findViewById(R.id.account);\n\t\tmPassword = (EditText) findViewById(R.id.password);\n\t\tmAccount.requestFocus();\n\n\t}", "title": "" }, { "docid": "cda744170aa87edd4e1b84084fd26670", "score": "0.5563554", "text": "public void changeView() {\r\n\t\tgetContentPane().removeAll();\r\n\t\tsetUpBattle();\r\n\t\trepaint();\r\n\t\trevalidate();\r\n\t}", "title": "" }, { "docid": "4c6ff7ce49b54b8ab0d3bef58bc471ab", "score": "0.556354", "text": "protected void changecontentview(int n) {\n\t\tswitch (n) {\n\n\t\tcase 0:\n\t\t\tsetContentView(R.layout.friends);\n\t\t\tbreak;\n\n\t\tcase 1:\n\t\t\tsetContentView(R.layout.lover);\n\t\t\tbreak;\n\n\t\tcase 2:\n\t\t\tsetContentView(R.layout.affection);\n\t\t\tbreak;\n\t\tcase 3:\n\t\t\tsetContentView(R.layout.marriage);\n\n\t\t\tbreak;\n\t\tcase 4:\n\t\t\tsetContentView(R.layout.enemey);\n\t\t\tbreak;\n\n\t\tcase 5:\n\t\t\tsetContentView(R.layout.sister);\n\t\t\tbreak;\n\t\t}\n\t}", "title": "" }, { "docid": "c75b096d248e491be9baffc8ab98d5cc", "score": "0.5561819", "text": "private void initViews() {\n\n toolbarFragmentCart = view.findViewById(R.id.toolbarFragmentCart);\n\n linearLayoutCart = view.findViewById(R.id.linearLayoutCart);\n linearLayoutCartEmpty = view.findViewById(R.id.linearLayoutCartEmpty);\n recyclerView = view.findViewById(R.id.recyclerViewShowCartItems);\n\n circleProgressBarLayout = view.findViewById(R.id.circleProgressBarLayout);\n circleProgressBar = view.findViewById(R.id.circleProgressBar);\n\n textViewItemCount = view.findViewById(R.id.textViewItemCount);\n textViewTotalAmount = view.findViewById(R.id.textViewTotalAmount);\n textViewTotalAmountPayable = view.findViewById(R.id.textViewTotalAmountPayable);\n\n buttonTotalAmount = view.findViewById(R.id.buttonTotalAmount);\n buttonShopNow = view.findViewById(R.id.buttonShopNow);\n buttonContinueBuy = view.findViewById(R.id.buttonContinueBuy);\n }", "title": "" } ]
a9daed60140dc52b2e66042433ad505e
Updates the hash associated with the passed AccountHolder ID's
[ { "docid": "efebe6661b951588cd5e355d8db02d71", "score": "0.6795112", "text": "public void updateHash(String acctHoldId, String newHash) {\n\t\tif (hashes.keySet().contains(acctHoldId)) {\n\t\t\thashes.put(acctHoldId, newHash);\n\t\t} else {\n\t\t\tLogger.getInstance().logError(\"Unknown Account Holder written to user \" + name + \": \" + acctHoldId);\n\t\t}\n\t}", "title": "" } ]
[ { "docid": "ba152000937f2a9089ae93715f65529c", "score": "0.5605803", "text": "public void updateAccount(Account account);", "title": "" }, { "docid": "944df6bd86a443991d05dc072bc99dac", "score": "0.5315443", "text": "protected void addToHash(Hasher hash) {\n }", "title": "" }, { "docid": "f135e25282bf5e13da9cfea59bcd8897", "score": "0.5315054", "text": "public abstract void setUserAccountId(Account.Id id);", "title": "" }, { "docid": "799373417e8057aaa96361ed03585f92", "score": "0.527233", "text": "void updateOpportunityAccountId(Long id, AccountIdDTO accountIdDTO);", "title": "" }, { "docid": "05ff334a465f630a09cf3e023e708b40", "score": "0.52649736", "text": "private static synchronized void updateHashOfLastUsedConfig(String recSlotConfig, String recConfig, String bundleConfig) {\n hashOfLastUsedRecSlotConfig = DigestUtils.sha256Hex(recSlotConfig);\n hashOfLastUsedRecConfig = DigestUtils.sha256Hex(recConfig);\n hashOfLastUsedBundleConfig = DigestUtils.sha256Hex(bundleConfig);\n }", "title": "" }, { "docid": "2e6b8dc27ef11eb2d6e4097682399257", "score": "0.5139974", "text": "private void rehash( ) {\r\n}", "title": "" }, { "docid": "b2d4a7bbbc65d32a960c254a44bd189b", "score": "0.5138254", "text": "public void updateBillingAccount(Record inputRecord);", "title": "" }, { "docid": "90a55cd7bf751223995f71af2d9d19aa", "score": "0.51064444", "text": "public void setUserHash() {\n String toBeHashed = firstName + lastName + username;\n userHash = toBeHashed;\n try {\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n byte[] hashed = md.digest(toBeHashed.getBytes());\n\n StringBuilder hexString = new StringBuilder();\n\n for (int i = 0; i < hashed.length; i++) {\n String hex = Integer.toHexString(0xFF & hashed[i]);\n if (hex.length() == 1) {\n hexString.append('0');\n }\n hexString.append(hex);\n }\n userHash = hexString.toString();\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n userHash = toBeHashed;\n }\n }", "title": "" }, { "docid": "752ccc9ffe1d3ab4697d09bbc22746bf", "score": "0.50559473", "text": "public void adaptHashedWithUpdate(final BigInteger oldHash) {\n if (!bulkInsert || autoCommit) {\n switch (hashType) {\n case ROLLING:\n rollingUpdate(oldHash);\n break;\n case POSTORDER:\n postorderAdd();\n break;\n case NONE:\n default:\n }\n }\n }", "title": "" }, { "docid": "dbd4a1e35b6a80a6a32f76fc65e6a32c", "score": "0.50104785", "text": "void updateStripeTransaction( int id, String paymentStatus, String authStatus, String authStatusDetail, String chargeId, String cardType, String last4Digits );", "title": "" }, { "docid": "f8407eec7ac2497a1bfc01cf3a797e3e", "score": "0.4997347", "text": "public void updateItemDetails(int accountID, ItemDetail accountDetails) {\n RuntimeExceptionDao<ItemDetail, Integer> accountREDao = accountDB.getAccountREDao();\n UpdateBuilder<ItemDetail, Integer> updateBuilder = accountREDao.updateBuilder();\n try {\n updateBuilder.where().eq(\"id\", accountID);\n updateBuilder.updateColumnValue(\"name\", accountDetails.getAPL883().getDescription());\n updateBuilder.updateColumnValue(\"price\", accountDetails.getAPL883().getPrice());\n updateBuilder.update();\n Log.d(TAG, \"updateAccountDetails: \");\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "20949f0a106255ab12e2ffa9865dfe61", "score": "0.49968648", "text": "@Override\r\n\tpublic void updateAccountById(AccountBean account) {\n\t\tgetSession().update(account);\r\n\t}", "title": "" }, { "docid": "54f63c0a05cfdb215473f8facedff126", "score": "0.496631", "text": "private void ensureUpToDateHash() {\r\n\t\tif (dirtyBits) {\r\n\t\t\tupdateHash();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "e1b9700a3fa9e60c154258edba1c4e4a", "score": "0.49589673", "text": "private void setHash(){\n\t\thash= (int) (Math.random()*10);\n\t}", "title": "" }, { "docid": "7f77244d8ad6ad1d31d84ffbee36772d", "score": "0.49582", "text": "int updateLeanById(EntityWrapper wrappedInst) throws UnifyException;", "title": "" }, { "docid": "051ab8fbc1a502fdddba225a10db5721", "score": "0.49370626", "text": "@Override\n\tpublic byte[] getHash(byte[] needHashBytes) {\n\t\tmd.update(needHashBytes);\n\t\treturn md.digest();\n\t}", "title": "" }, { "docid": "5d1dd363887494ae1ac2e9d611dcdd1d", "score": "0.4906861", "text": "int updateByPrimaryKey(SscfDiffAccounts record);", "title": "" }, { "docid": "78f913bb5ea882037d2cf01248b6678e", "score": "0.49045074", "text": "public int hashCode()\n {\n return super.hashCode() + (int) getHolderId() + getMemberId();\n }", "title": "" }, { "docid": "e36a2cf9d83466838a7c92770630cef8", "score": "0.49007007", "text": "public void setHolderId(long lHolderId)\n {\n __m_HolderId = lHolderId;\n }", "title": "" }, { "docid": "c6ecd039f94c337ed930630ae9d75da3", "score": "0.48996574", "text": "public void setAccountHolder(String accountHolder) {\n\t\tthis.accountHolder = accountHolder;\n\t}", "title": "" }, { "docid": "eb695425940e9d6e5e9263815a380fe5", "score": "0.48849732", "text": "@Override\n\tpublic void updateBankById(Bank Bank) {\n\t\t\n\t}", "title": "" }, { "docid": "04815eba8c9dcf6daee16511ebde538f", "score": "0.48627895", "text": "private void buildSHA256(String deviceID) {\n byte[] hashVal;\n int slot = calculateSlot(deviceID);\n\n synchronized (md[slot]) {\n hashVal = md[slot].digest(deviceID.getBytes());\n md[slot].reset();\n }\n\n l1 = toLong(hashVal, 0);\n l2 = toLong(hashVal, 8);\n l3 = toLong(hashVal, 16);\n l4 = toLong(hashVal, 24);\n }", "title": "" }, { "docid": "a71cddacbc1a61ef8e7e96d07052c4a6", "score": "0.48556575", "text": "protected void generateHashCode() {\r\n hashCode = id.hashCode();\r\n }", "title": "" }, { "docid": "ad16038419c0c8a50151a33edb494b96", "score": "0.48442784", "text": "public static void main(String[] args) {\n\t HashMap<Account, String> map = new HashMap<Account, String>();\r\n\t \r\n\t //Create key 1\r\n\t Account a1 = new Account(1);\r\n\t a1.setHolderName(\"A_ONE\");\r\n\t //Create key 2\r\n\t Account a2 = new Account(2);\r\n\t a2.setHolderName(\"A_TWO\");\r\n\t \r\n\t //Put mutable key and value in map\r\n\t map.put(a1, a1.getHolderName());\r\n\t map.put(a2, a2.getHolderName());\r\n\t \r\n\t //Change the keys state so hash map should be calculated again\r\n\t a1.setHolderName(\"Defaulter\");\r\n\t a2.setHolderName(\"Bankrupt\");\r\n\t \r\n\t //Success !! We are able to get back the values\r\n\t System.out.println(map.get(a1)); //Prints A_ONE\r\n\t System.out.println(map.get(a2)); //Prints A_TWO\r\n\t \r\n\t //Try with newly created key with same account number\r\n\t Account a3 = new Account(1);\r\n\t a3.setHolderName(\"A_THREE\");\r\n\t \r\n\t //Success !! We are still able to get back the value for account number 1\r\n\t System.out.println(map.get(a3)); //Prints A_ONE\r\n\t }", "title": "" }, { "docid": "e70b2ef4f66f2a6caa886fbeeb9a257f", "score": "0.4828485", "text": "private void updateBankItems()\n\t{\n\t\tfinal ItemContainer c = client.getItemContainer(InventoryID.BANK);\n\t\tif (c == null)\n\t\t{\n\t\t\treturn;\n\t\t}\n\n\t\tfinal Item[] widgetItems = c.getItems();\n\t\tif (widgetItems == null || widgetItems.length == 0)\n\t\t{\n\t\t\treturn;\n\t\t}\n\n\t\tfinal Map<Integer, Integer> m = new HashMap<>();\n\t\tfor (Item widgetItem : widgetItems)\n\t\t{\n\t\t\tm.put(widgetItem.getId(), widgetItem.getQuantity());\n\t\t}\n\n\t\tfinal int curHash = m.hashCode();\n\t\tif (bankHash != curHash)\n\t\t{\n\t\t\tbankHash = curHash;\n\t\t\tSwingUtilities.invokeLater(() -> bankedUiPanel.setBankMap(m));\n\t\t}\n\t}", "title": "" }, { "docid": "afe68f469707bb0a56a70bcd9010136c", "score": "0.4794393", "text": "void updateById(long id, Map<String, Object> giftCertificateUpdateInfo);", "title": "" }, { "docid": "6d02b337ea78ff880bf48b38bc07ea6d", "score": "0.47914734", "text": "public void update (Long id) {\n\t}", "title": "" }, { "docid": "9e48bbb9b2ab668266215dc16ba645e8", "score": "0.47388202", "text": "@Override\n\tpublic Mono<Account> update(Account account, String id) {\n\t\treturn repository.save(account);\n\t}", "title": "" }, { "docid": "ab2f5cfa6d9b3a57f7023b6162ea5d17", "score": "0.47233614", "text": "@Override\n public void updateSigner(ContractRecord cd) {\n\n }", "title": "" }, { "docid": "306c6f3e3e993e117e12f7ca05e77ef0", "score": "0.47224212", "text": "private void registerHash() {\n\t\tString hash = Secure.getString(this.getContentResolver(),\n\t\t\t\tSecure.ANDROID_ID);\n\t\tif (hash == null || hash == \"\") {\n\t\t\thash = Long.toHexString(UUID.randomUUID().getLeastSignificantBits());\n\t\t}\n\n\t\tSharedPreferences preference = PreferenceManager\n\t\t\t\t.getDefaultSharedPreferences(this);\n\t\tString stored = preference.getString(\n\t\t\t\tUtil.SHARED_PREFERENCE_INSTNCE_HASH_CODE_KEY, \"\");\n\n\t\t/*\n\t\t * Write only once in the first start of the application.\n\t\t */\n\t\tif (stored.equals(\"\") == true) {\n\t\t\tSharedPreferences.Editor editor = preference.edit();\n\t\t\teditor.putString(Util.SHARED_PREFERENCE_INSTNCE_HASH_CODE_KEY, hash);\n\t\t\teditor.commit();\n\t\t}\n\t}", "title": "" }, { "docid": "5db3dd04644667b6bf615951b5ea166c", "score": "0.47064433", "text": "@Override\n public void UpdateUserIdPicAndBankPic(UserBussinessInfo bussinessInfo) throws LTException {\n UserUpdateInfoLog log = new UserUpdateInfoLog();\n log.setUserId(bussinessInfo.getUserId().toString());\n log.setDevice_model(bussinessInfo.getDeviceModel());\n log.setIp(bussinessInfo.getIp());\n userviceBussiness.updateUserIdPicAndBankPic(bussinessInfo, log);\n }", "title": "" }, { "docid": "e4c327ccfadd76884874aea0504d5763", "score": "0.46929675", "text": "public void updateBalance(String id, BalanceDTO balanceDTO) {\n\n Money balance = new Money(balanceDTO.getAmount(), balanceDTO.getCurrency());\n Optional<Account> account = accountRepository.findById(Long.valueOf(id));\n\n if (account.isPresent()) {\n try {\n account.get().setBalance(balance);\n accountRepository.save(account.get());\n } catch (IllegalArgumentException e) {\n throw new ResponseStatusException(HttpStatus.BAD_REQUEST, \"Select a correct balance\");\n }\n } else {\n throw new ResponseStatusException(HttpStatus.NOT_FOUND, \"Account with id \" + id + \"not found\");\n }\n }", "title": "" }, { "docid": "73d73f1a724f7a4f07f1c4b594d588f0", "score": "0.46798825", "text": "private void generateHash() {\n \t\tfinal long millis = System.currentTimeMillis();\n \t\tthis.hash = super.hashCode();\n \t\tthis.hash *= millis;\n \t\t// 36 bit limit\n \t\tthis.hash = this.hash & (MAX_HASH);\n \t\tencode64();\n \t}", "title": "" }, { "docid": "f5b06f9f2d1d788436bf67c3a2a1955d", "score": "0.46692976", "text": "private MessageDigestHasher update(int bytes) {\n try {\n update(scratch.array(), 0, bytes);\n } finally {\n scratch.clear();\n }\n return this;\n }", "title": "" }, { "docid": "07cd5061e0db8245f69df395a80304d5", "score": "0.46656403", "text": "private void setId(int aId) {\n \tthis.accountId = aId;\n }", "title": "" }, { "docid": "3dae0604d007801b473f3e369b148201", "score": "0.46623108", "text": "private void updateAllAccountList(){\r\n String name = account.getUsername();\r\n for (Account acc : allAccounts) {\r\n if (acc.getUsername().equals(name)) {\r\n allAccounts.remove(acc);\r\n break;\r\n }\r\n }\r\n allAccounts.add(account);\r\n }", "title": "" }, { "docid": "2f4953e8edba429f2cc7ec4e5e9417ea", "score": "0.46614027", "text": "public void updateBallID(CricketBall cricketBall) {\n ContentValues cv = new ContentValues();\n cv.put(\"ballCountInOver\", cricketBall.getBallCountInOver());\n cv.put(\"inningOverCount\", cricketBall.getInningOverCount());\n cv.put(\"runScored\", cricketBall.getRunScored());\n cv.put(\"extraRuns\", cricketBall.getExtraRuns());\n\n cv.put(\"isFour\", cricketBall.isFour());\n cv.put(\"isSix\", cricketBall.isSix());\n cv.put(\"runScoredOnNoBall\", cricketBall.getRunScoredOnNoBall());\n cv.put(\"isNoBall\", cricketBall.isNoBall());\n\n cv.put(\"isWideBall\", cricketBall.isWideBall());\n cv.put(\"runScoredOnWideball\", cricketBall.getRunScoredOnWideball());\n cv.put(\"isBye\", cricketBall.isBye());\n cv.put(\"runScoredOnBye\", cricketBall.getRunScoredOnBye());\n\n cv.put(\"isLegBye\", cricketBall.isLegBye());\n cv.put(\"runScoredOnLegBye\", cricketBall.getRunScoredOnLegBye());\n cv.put(\"isWicket\", cricketBall.isWicket());\n cv.put(\"wicketType\", cricketBall.getWicketType());\n\n cv.put(\"comments\", cricketBall.getComments());\n cv.put(\"batsmanId\", cricketBall.getBatsmanId());\n cv.put(\"bowlerId\", cricketBall.getBowlerId());\n cv.put(\"inningId\", cricketBall.getInningId());\n\n cv.put(\"overId\", cricketBall.getOverId());\n cv.put(\"matchId\", cricketBall.getMatchId());\n\n if (cricketBall.getCaughtById() != null && !cricketBall.getCaughtById().isEmpty()) {\n cv.put(\"caughtById\", cricketBall.getCaughtById());\n }\n if (cricketBall.getRunOutById() != null && !cricketBall.getRunOutById().isEmpty()) {\n cv.put(\"runOutById\", cricketBall.getRunOutById());\n }\n if (cricketBall.getStumpedById() != null && !cricketBall.getStumpedById().isEmpty()) {\n cv.put(\"stumpedById\", cricketBall.getStumpedById());\n }\n if (cricketBall.getOutBatsmanId() != null && !cricketBall.getOutBatsmanId().isEmpty()) {\n cv.put(\"outBatsmanId\", cricketBall.getOutBatsmanId());\n }\n if (cricketBall.getId() > 0) {\n cv.put(\"id\", cricketBall.getId());\n cv.put(\"syncStatus\", \"0\");\n }\n db.update(\"cricket_balls\", cv, \"localId =\" + cricketBall.getId() + \"\", null);\n }", "title": "" }, { "docid": "32200d59def2f69971430c9bfaf4248a", "score": "0.46575493", "text": "private void setHashCode() /*const*/{\n\t\t\thash = (0x333333 * 37 + length) * 37 + next.hashCode();\n\t\t\tif (hasValue) {\n\t\t\t\thash = hash * 37 + value;\n\t\t\t}\n\t\t\tfor (int i = stringOffset, limit = stringOffset + length; i < limit; ++i) {\n\t\t\t\thash = hash * 37 + strings.charAt(i);\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "58eef37687d41c9ae18924699b40aedf", "score": "0.46523798", "text": "public void update(int id) {\n //\n }", "title": "" }, { "docid": "369edc002d40da08f863a4f92d974ac1", "score": "0.46384323", "text": "static int rehash(int h) {\n // Spread bits to regularize both segment and index locations,\n // using variant of single-word Wang/Jenkins hash.\n // TODO(kevinb): use Hashing/move this to Hashing?\n h += (h << 15) ^ 0xffffcd7d;\n h ^= (h >>> 10);\n h += (h << 3);\n h ^= (h >>> 6);\n h += (h << 2) + (h << 14);\n return h ^ (h >>> 16);\n }", "title": "" }, { "docid": "7f352991df5f22f90705c8852b8f475c", "score": "0.4635326", "text": "void testUpdateById();", "title": "" }, { "docid": "c3e5ab01986e90d1f4f272954fe53381", "score": "0.4634419", "text": "int updateByPrimaryKey(AccountPartialReconcileEntity record);", "title": "" }, { "docid": "31a25c766a92eca9273b324c6a3e5dac", "score": "0.4626198", "text": "@Override\n\tpublic int hashCode() {\n\t\tfinal int prime = 31;\n\t\tint result = 1;\n\t\tlong temp;\n\t\ttemp = Double.doubleToLongBits(accountBalance);\n\t\tresult = prime * result + (int) (temp ^ (temp >>> 32));\n\t\tresult = prime * result + accountNumber;\n\t\tresult = prime * result + accountTypeID;\n\t\tresult = prime * result + ((accountTypeName == null) ? 0 : accountTypeName.hashCode());\n\t\tresult = prime * result + status;\n\t\tresult = prime * result + ((statusName == null) ? 0 : statusName.hashCode());\n\t\treturn result;\n\t}", "title": "" }, { "docid": "32855c14c1010d94c8818d6f2838b8c0", "score": "0.46251908", "text": "MessageDigestHasher putInt(int i) {\n scratch.putInt(i);\n return update(Integer.SIZE / Byte.SIZE);\n }", "title": "" }, { "docid": "0167ac6d4bdbafa3ceaa701c84760504", "score": "0.4621052", "text": "int updateByPrimaryKeyWithBLOBs(HktUsers record);", "title": "" }, { "docid": "9bbfde051b8ac8968e5f06d1ff1d3169", "score": "0.46193948", "text": "int updateByPrimaryKey(Account record);", "title": "" }, { "docid": "c53308ab73b3e4ec5591b041b5a47180", "score": "0.46141008", "text": "NativeLong C_DigestUpdate(NativeLong hSession, ByteBuffer pPart, NativeLong ulPartLen);", "title": "" }, { "docid": "02f38d7d31e65a055f2b4c7956033547", "score": "0.46134025", "text": "public void updatePassword(int userId, String encodedPassword);", "title": "" }, { "docid": "107384cfc67a622272bef4e62bf5d72a", "score": "0.46081197", "text": "public void transferMoneyThirdParty(String hashedKey, String value, Long accountId, String secretKey) {\n // Transform input values\n Money valueAsMoney = new Money(BigDecimal.valueOf(Long.parseLong(value)));\n BigDecimal amount = valueAsMoney.getAmount();\n\n // Get username from sender\n Authentication authentication = SecurityContextHolder.getContext().getAuthentication();\n String currentUser = authentication.getName();\n Optional<User> optionalUser = userRepository.findByUsername(currentUser);\n Optional<ThirdParty> optionalThirdPartyUser = thirdPartyRepository.findById(optionalUser.get().getId());\n\n // Check hashed key\n String correctHashedKey = optionalThirdPartyUser.get().getHashedKey();\n if(!correctHashedKey.equals(hashedKey)) return;\n\n // Determine recipient account and update it\n // Case if it's a checking account\n if(checkingRepository.findById(accountId).isPresent()) {\n Checking recipientChecking = checkingRepository.findById(accountId).get();\n String correctSecretKey = recipientChecking.getSecretKey();\n // Check if correct secret key was provided\n if(correctSecretKey.equals(secretKey)) {\n BigDecimal recipientBalance = recipientChecking.getBalance().add(amount);\n checkingService.updateBalance(recipientChecking.getId(), recipientBalance);\n // Add the transaction\n Transaction transaction = new Transaction(TransactionType.MONEY_TRANSFER, AccountType.THIRD_PARTY, optionalThirdPartyUser.get().getId(),\n AccountType.CHECKING, recipientChecking.getId(), valueAsMoney, LocalDateTime.now());\n transactionRepository.save(transaction);\n } else {\n throw new ResponseStatusException(HttpStatus.FORBIDDEN);\n }\n }\n\n // Case if it's a savings account\n if(savingsRepository.findById(accountId).isPresent()) {\n Savings recipientSavings = savingsRepository.findById(accountId).get();\n String correctSecretKey = recipientSavings.getSecretKey();\n // Check if correct secret key was provided\n if(correctSecretKey.equals(secretKey)) {\n BigDecimal recipientBalance = recipientSavings.getBalance().add(amount);\n savingsService.updateBalance(recipientSavings.getId(), recipientBalance);\n // Add the transaction\n Transaction transaction = new Transaction(TransactionType.MONEY_TRANSFER, AccountType.THIRD_PARTY, optionalThirdPartyUser.get().getId(),\n AccountType.SAVINGS, recipientSavings.getId(), valueAsMoney, LocalDateTime.now());\n transactionRepository.save(transaction);\n } else {\n throw new ResponseStatusException(HttpStatus.FORBIDDEN);\n }\n }\n\n // Case if it's a credit card account\n if(creditCardRepository.findById(accountId).isPresent()) {\n CreditCard recipientSavings = creditCardRepository.findById(accountId).get();\n // Update recipient account\n BigDecimal recipientBalance = recipientSavings.getBalance().add(amount);\n creditCardService.updateBalance(recipientSavings.getId(), recipientBalance);\n // Add the transaction\n Transaction transaction = new Transaction(TransactionType.MONEY_TRANSFER, AccountType.THIRD_PARTY, optionalThirdPartyUser.get().getId(),\n AccountType.CREDITCARD, recipientSavings.getId(), valueAsMoney, LocalDateTime.now());\n transactionRepository.save(transaction);\n }\n\n // Case if it's a third party account\n if(thirdPartyRepository.findById(accountId).isPresent()) {\n ThirdParty recipientThirdParty = thirdPartyRepository.findById(accountId).get();\n\n // Add the transaction\n Transaction transaction = new Transaction(TransactionType.MONEY_TRANSFER, AccountType.THIRD_PARTY, optionalThirdPartyUser.get().getId(),\n AccountType.THIRD_PARTY, recipientThirdParty.getId(), valueAsMoney, LocalDateTime.now());\n transactionRepository.save(transaction);\n }\n }", "title": "" }, { "docid": "a81e6cbad6a768435a229181a2e9b466", "score": "0.46025756", "text": "public void update(Account member) {\n\t\t\n\t}", "title": "" }, { "docid": "3f6206dbce107d495dccb5ff708b3915", "score": "0.45826563", "text": "public void updateAccount(UpdateAccountView updateAccount) {\n }", "title": "" }, { "docid": "7488be4c20a915c1676868538deee19f", "score": "0.45805922", "text": "@SuppressWarnings(\"unchecked\")\n public static Map updateExistingGlAccount(DispatchContext dctx, Map context) {\n Delegator delegator = dctx.getDelegator();\n LocalDispatcher dispatcher = dctx.getDispatcher();\n String glAccountClassTypeKey = (String) context.get(\"glAccountClassTypeKey\");\n context.remove(\"glAccountClassTypeKey\");\n \n try {\n // extract glAccountClassId and glAccountTypeId from GlAccountClassType\n GenericValue gv = delegator.findByPrimaryKeyCache(\"GlAccountClassTypeMap\", UtilMisc.toMap(\"glAccountClassTypeKey\", glAccountClassTypeKey));\n \n String glAccountTypeId = gv.getString(\"glAccountTypeId\");\n String glAccountClassId = gv.getString(\"glAccountClassId\");\n \n context.put(\"glAccountTypeId\", glAccountTypeId);\n context.put(\"glAccountClassId\", glAccountClassId);\n \n // forward to the original updateGlAccount service\n return dispatcher.runSync(\"updateGlAccount\", context, -1, false);\n } catch (GenericEntityException e) {\n return ServiceUtil.returnError(\"Could not update the Gl Account (\" + e.getMessage() + \").\");\n } catch (GenericServiceException e) {\n return ServiceUtil.returnError(\"Could not update the Gl Account (\" + e.getMessage() + \").\");\n }\n }", "title": "" }, { "docid": "026b912a2003388b182d8c3a260fc519", "score": "0.45747936", "text": "private static int hash(int h) {\r\n // Spread bits to regularize both segment and index locations,\r\n // using variant of single-word Wang/Jenkins hash.\r\n h += (h << 15) ^ 0xffffcd7d;\r\n h ^= (h >>> 10);\r\n h += (h << 3);\r\n h ^= (h >>> 6);\r\n h += (h << 2) + (h << 14);\r\n return h ^ (h >>> 16);\r\n }", "title": "" }, { "docid": "ab59f699bac554a39c3ff9678ac7a28f", "score": "0.45677263", "text": "int updateByPrimaryKey(TbBorrowWithBLOBs record);", "title": "" }, { "docid": "ccc8d044e44c6bbeee3285356186d689", "score": "0.45572296", "text": "public void updateTrackingID() {\n }", "title": "" }, { "docid": "df9d95b67fd187a0ab8b917683ccf827", "score": "0.45570382", "text": "public static synchronized Record setHashId(Record record) {\n try {\n String toHash = record.getField(HistorianChunkCollectionFieldsVersionEVOA0.CHUNK_VALUE).asString() +\n record.getField(HistorianChunkCollectionFieldsVersionEVOA0.NAME).asString() +\n record.getField(HistorianChunkCollectionFieldsVersionEVOA0.CHUNK_START).asLong();\n\n String sha256hex = Hashing.sha256()\n .hashString(toHash, StandardCharsets.UTF_8)\n .toString();\n\n record.setId(sha256hex);\n } catch (Exception ex) {\n // do nothing\n }\n\n return record;\n }", "title": "" }, { "docid": "e5495647d1f67b50b88ff0a195f99e18", "score": "0.45484942", "text": "private int callPythonHash() {\n return Long.hashCode(this.pyObject.hash());\n }", "title": "" }, { "docid": "a2c64b2b7595bb1ad0505db28a4a8c86", "score": "0.45391217", "text": "int updateByPrimaryKey(UsrAccount record);", "title": "" }, { "docid": "bdf1c9838e2e25aa0675700f5795dda9", "score": "0.45306", "text": "@Test\r\n public void testUpdateAccount() {\r\n System.out.println(\"updateAccount\");\r\n \r\n Account account1 = newAccount(\"Test Account 1\",\"This is a test account 1\",date(\"2015-05-05\"),\"CZK\"); \r\n Account account2 = newAccount(\"Test Account 2\",\"This is a test account 2\",date(\"2015-05-06\"),\"EUR\"); \r\n manager.createAccount(account1);\r\n manager.createAccount(account2);\r\n Long accountId = account1.getId();\r\n \r\n account1.setName(\"Bank\");\r\n account1.setDescription(\"Description\");\r\n account1.setCurrency(\"USD\");\r\n manager.updateAccount(account1);\r\n account1 = manager.getAccountById(accountId);\r\n assertEquals(\"Bank\", account1.getName());\r\n assertEquals(\"Description\", account1.getDescription());\r\n assertEquals(\"USD\", account1.getCurrency());\r\n \r\n assertDeepEquals(account2, manager.getAccountById(account2.getId()));\r\n \r\n manager.deleteAccount(account1.getId());\r\n manager.deleteAccount(account2.getId());\r\n }", "title": "" }, { "docid": "7649210f53508f7bd2388f9823dc971b", "score": "0.4529703", "text": "int updateByPrimaryKeyWithBLOBs(AppVistorUser record);", "title": "" }, { "docid": "7b5c2bdbc2981180bc567d2edf8d53ac", "score": "0.45209464", "text": "public void set(int hash, @NotNull K key, @NotNull V value, @Nullable ObjectEntry<K, V> next) {\n this.value = value;\n this.next = next;\n this.key = key;\n this.hash = hash;\n }", "title": "" }, { "docid": "65b13470e8616f3452e1adba88dcda53", "score": "0.45163232", "text": "void onProfileDataUpdated(String accountId);", "title": "" }, { "docid": "5401f9363344db4f54424e0e978c6df1", "score": "0.45162106", "text": "private String calculateHash() {\n sequence++;\n return StringUtil.hashString(\n StringUtil.getStringFromKey(sender) +\n StringUtil.getStringFromKey(recepient) +\n Float.toString(value) + sequence\n );\n }", "title": "" }, { "docid": "27359ea7b5c5a6fb5cf1f1a57c76e526", "score": "0.45080924", "text": "private void setTransactionHash(QldbHash hash) {\n txnHash = hash;\n }", "title": "" }, { "docid": "87c274094940702a1845e6cb0409745b", "score": "0.45045012", "text": "@PUT\n @Path(\"/{id}\")\n public Response update(@NotNull @PathParam(\"id\") long id,Contract contract);", "title": "" }, { "docid": "4ba7aa03f95d9046bd54a591ad36e276", "score": "0.45013952", "text": "public boolean updateAccount(SavingsAccount account){\n CloseableHttpClient httpClient = HttpClients.createDefault();\n HttpPut httpPutReq = new HttpPut(baseUri + \"/api/Accounts/\" + account.getAccountNumber());\n try {\n StringEntity entity = new StringEntity(account.toStringJson());\n httpPutReq.setEntity(entity);\n httpPutReq.setHeader(\"content-type\", \"application/json\");\n httpPutReq.setHeader(\"charset\", \"utf-8\");\n } catch (Exception e) {\n e.printStackTrace();\n }\n return execute(httpClient, httpPutReq);\n }", "title": "" }, { "docid": "223dae332b82f7247e7c0fd2ec85dd62", "score": "0.45003745", "text": "public void setID(String acctId) \n {\n \n id = acctId;\n\n }", "title": "" }, { "docid": "72ebb84e2c30c4bdbc1a0622614a296e", "score": "0.44998607", "text": "@PutMapping(\"/useraccount/{id}\")\n\tpublic MyUserAccounts updateUserAccount(@PathVariable(value = \"id\") String UserId\n\t\t\t, @Valid MyUserAccounts userDetails){\n\t\tMyUserAccounts myUserAccounts = userAccountRepository.findById(UserId)\n\t\t\t\t.orElseThrow(() -> new ResourceNotFoundException(\"User\", \"Id\", UserId));\n\t\t\n\t\tmyUserAccounts.setEmail(userDetails.getEmail()); \n\t\tmyUserAccounts.setFirst_name(userDetails.getFirst_name()); \n\t\tmyUserAccounts.setLast_name(userDetails.getLast_name()); \n\t\tmyUserAccounts.setUser_name(userDetails.getUser_name());\n\t\tmyUserAccounts.setPassword(userDetails.getPassword());\n\t\t\n\t\t\n\t\tMyUserAccounts updateUser = userAccountRepository.save(myUserAccounts);\n\t\t\n\t\treturn updateUser;\n\t}", "title": "" }, { "docid": "246bd8a410abd3298d68a86ff01292d2", "score": "0.44920895", "text": "public void update(Account account) {\n\t\tAccount a = accountDao.findById(account.getId()); \n\t\t//encrypt the password\n\t\taccount.setPassword(a.getPassword());\n\t\t//update account in DB\n\t\taccountDao.update(account);\n\t}", "title": "" }, { "docid": "545637ab0309d115a4b95ef7bbabb899", "score": "0.44861773", "text": "int updateByIdVersion(EntityWrapper wrappedInst) throws UnifyException;", "title": "" }, { "docid": "6eb0f3472527f27ca91c885eaf6e5ff7", "score": "0.44861048", "text": "public void update(byte[] bArr) {\n this.md5.update(bArr);\n }", "title": "" }, { "docid": "3e77e048dcd14c694ed673064fb5df7e", "score": "0.4484753", "text": "@Update({\n \"update account\",\n \"set balance = #{balance,jdbcType=REAL},\",\n \"name = #{name,jdbcType=VARCHAR}\",\n \"where id = #{id,jdbcType=INTEGER}\"\n })\n int updateByPrimaryKey(Account record);", "title": "" }, { "docid": "292c301cc87a8071ffd395e1a0e1d147", "score": "0.44841075", "text": "public void updateMaskedWallet(MaskedWallet maskedWallet) {\n try {\n this.awl.updateMaskedWallet(maskedWallet);\n } catch (RemoteException e) {\n throw new RuntimeException(e);\n }\n }", "title": "" }, { "docid": "782cbd50e7edf4543871d3ee4d10a706", "score": "0.4483811", "text": "int getHash();", "title": "" }, { "docid": "12578314ced9ba0aaaa6d19368bc8352", "score": "0.4473666", "text": "void updateUser(User user, byte[] avatar, String filename);", "title": "" }, { "docid": "47937431903c25cdac0e35fb9b7f671b", "score": "0.44716588", "text": "private void notifyObservers(String id, String password){\n for(ObserverCredentials ob : observers){\n ob.updateCredentials(id, password);\n }\n }", "title": "" }, { "docid": "73b6ada145959c566b7897a668aa58d4", "score": "0.44667053", "text": "public void updateRecord(RID rid, byte[] newRecord) {\n //PUT YOUR CODE HERE\n }", "title": "" }, { "docid": "1dfb578c62aad5130ce76d994dfe61fd", "score": "0.4466424", "text": "int updateByPrimaryKey(FiFundAccount record);", "title": "" }, { "docid": "3ad82c4bdb50608d120dae104fb7163b", "score": "0.44617555", "text": "int updateLean(EntityWrapper wrappedInst) throws UnifyException;", "title": "" }, { "docid": "a845bfa065df1604d2b6f2374be866e3", "score": "0.44608137", "text": "java.lang.String getHash();", "title": "" }, { "docid": "a845bfa065df1604d2b6f2374be866e3", "score": "0.44608137", "text": "java.lang.String getHash();", "title": "" }, { "docid": "a845bfa065df1604d2b6f2374be866e3", "score": "0.44608137", "text": "java.lang.String getHash();", "title": "" }, { "docid": "a845bfa065df1604d2b6f2374be866e3", "score": "0.44608137", "text": "java.lang.String getHash();", "title": "" }, { "docid": "a845bfa065df1604d2b6f2374be866e3", "score": "0.44607666", "text": "java.lang.String getHash();", "title": "" }, { "docid": "48673e5cea8c5ca47920f2adfb9f873e", "score": "0.4452806", "text": "int updateByPrimaryKey(BusAccountManage record);", "title": "" }, { "docid": "27e5eb52c2ccbb92bce18ded594597ef", "score": "0.44500604", "text": "BytesHashCode hash() {\n checkNotDone();\n done = true;\n return (bytes == digest.getDigestLength())\n ? new BytesHashCode(digest.digest())\n : new BytesHashCode(Arrays.copyOf(digest.digest(), bytes));\n }", "title": "" }, { "docid": "ebd127f3e271010d95e2dde04a7f97d9", "score": "0.44480816", "text": "public void updateCreditCardInterest (String id, LocalDate updateDate) {\n\n BigDecimal interestRateDivided = creditCardRepository.findById(Long.valueOf(id)).get().getInterestRate().\n divide(new BigDecimal(\"12\"), RoundingMode.UNNECESSARY);\n\n BigDecimal interestRate = interestRateDivided.add(new BigDecimal(\"1\"));\n BigDecimal newBalanceAmount =\n creditCardRepository.findById(Long.valueOf(id)).get().getBalance().getAmount()\n .multiply(interestRate);\n\n Money newBalance = new Money(newBalanceAmount);\n\n CreditCard creditCard = creditCardRepository.findById(Long.valueOf(id)).get();\n creditCard.setBalance(newBalance);\n creditCard.setUpdateDate(updateDate);\n creditCardRepository.save(creditCard);\n\n }", "title": "" }, { "docid": "840d8f75aa99d1b53ee89861f4a541f0", "score": "0.4447834", "text": "@Override\r\n\tpublic boolean update(AccountBean _account) {\n\t\tMap<String, AccountBean> map = FileStoreHolder.getAccountRecords();\r\n\t\tif (map.containsKey(_account.getAccount())) {\r\n\t\t\tmap.put(_account.getAccount(), _account);\r\n\t\t\t// write to file\r\n\t\t\tFileStoreHolder.flushAccountRecords();\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "e8cdbd83470fdc52fbf26e185e28c9b8", "score": "0.44434294", "text": "public boolean updatePasshash(User user, String passhash, String salt);", "title": "" }, { "docid": "600d057c6c2561f02c213b598ccb16ff", "score": "0.44414356", "text": "void finalizeHollowAccountAsContract(@NonNull AccountID hollowAccountId, long initialNonce);", "title": "" }, { "docid": "3733c9a4e9f3701665c7bb034463612e", "score": "0.4438689", "text": "public void setHandByID(int id, Hand hand)\n {\n Card[] PlayerHand = hand.getPlayerHand();\n int[] handVal = new int[2];\n\n // Each card is encoded into the server as a single number,\n // where the number = suit * 13 + rank\n for(int i = 0; i < 2; i++)\n {\n handVal[i] = PlayerHand[i].getSuit() * 13 + PlayerHand[i].getRank();\n }\n\n // Uploads to the server the state of my hand\n serverCall task = new serverCall();\n try\n {\n task.execute(\"http://custom-env.hsqkmufkrn.us-west-1.elasticbeanstalk.com/scripts/poker/setCards.php\",\n \"PlayerID\", Integer.toString(id), \"Card1\", Integer.toString(handVal[0]), \"Card2\", Integer.toString(handVal[1])).get();\n\n } catch (InterruptedException e) {\n e.printStackTrace();\n } catch (ExecutionException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "bee125b68e09d6e4b7c84fcebaefc195", "score": "0.4438509", "text": "@Override\n\tpublic void updateAccount(Account oldAccount, Account newAccount) {\n\n\t}", "title": "" }, { "docid": "98f4ec8c575da4fe752cbc66276019ac", "score": "0.4438132", "text": "int updateByPrimaryKey(AcTeamAccountBill record);", "title": "" }, { "docid": "4164602f21c0c098392efbdae80c87ca", "score": "0.44348764", "text": "public void updateIdentify(Pair<String, List<Identify>> pair) {\n String key = makeIdentifyKey(pair.getKey());\n redisHelper.set(key, pair.getValue());\n }", "title": "" }, { "docid": "ad5de0e9c68f203b6cd904167ee27e83", "score": "0.44314003", "text": "public void updateMember(Member member, long id);", "title": "" }, { "docid": "b1cdee2d3e8d0b8e1d75b6659ec784b6", "score": "0.44311222", "text": "private void processAndHashFileContents(File hashFile, File dataDir) throws IOException {\n if (hashFile.exists()) {\n throw new IllegalArgumentException(\"HashFile can not exist. See: \" + hashFile.getPath());\n }\n\n FileWriter fw = new FileWriter(hashFile, true);\n\n processAndHashFileContents(fw, dataDir, \"\");\n\n fw.close();\n }", "title": "" }, { "docid": "2017060981bb4ccc809c0972ddaef946", "score": "0.44298637", "text": "public void putStorage(final AccountID id, final UInt256 key, final UInt256 value) {\n final var contractKey = ContractKey.from(id, key);\n final var contractValue = virtualValueFrom(value);\n final var kvCountImpact =\n incorporateKvImpact(contractKey, contractValue, updatedKeys, removedKeys, newMappings, storage.get());\n if (kvCountImpact != 0) {\n usageChanges.computeIfAbsent(id.getAccountNum(), usageInfoLookup).updatePendingBy(kvCountImpact);\n totalKvPairs += kvCountImpact;\n }\n }", "title": "" }, { "docid": "1200903294520c971eacca5b33632325", "score": "0.44270656", "text": "MessageDigestHasher putLong(long l) {\n scratch.putLong(l);\n return update(Long.SIZE / Byte.SIZE);\n }", "title": "" }, { "docid": "462dd32d00244dc3655d4a7806468fe7", "score": "0.44248566", "text": "@Override\n\tpublic void updateInfo(GameObjectID id, HashMap<String, Integer> newInfo)\n\t\t\tthrows MahyariseExceptionBase {\n\t\t\n\t}", "title": "" }, { "docid": "8e584c77c16a73d4c1ce0985efbb6eb9", "score": "0.44236988", "text": "public static void addAccounts(int accID, Employee employee) {\n boolean key = accountList.containsKey(accID);\n if(!key) {\n accountList.put(accID, employee);\n }\n\n }", "title": "" } ]
a8847422c238ddf2759e34335f7940e0
set the cost of missclassifications
[ { "docid": "c6ebbe03d4d8a6aae633c6488d43ebb1", "score": "0.58668005", "text": "void setCosts(double Cmaj, double Cmin)\n {\n this.CostMaj = Cmaj;\n this.CostMin = Cmin;\n }", "title": "" } ]
[ { "docid": "2c8684d565224671ad8f53f6770a6aae", "score": "0.6640961", "text": "@Override\n public void setCost(double d) {\n\n }", "title": "" }, { "docid": "2c8684d565224671ad8f53f6770a6aae", "score": "0.6640961", "text": "@Override\n public void setCost(double d) {\n\n }", "title": "" }, { "docid": "857037105fe564027a0e50fdeac88e6c", "score": "0.6409493", "text": "public abstract void setInitialCost(double cost);", "title": "" }, { "docid": "521d01566f76f083c43ff9c3ff093fbd", "score": "0.6317413", "text": "public void setCost(double cost) {\n this.cost = cost;\n\n }", "title": "" }, { "docid": "3f9744481c31f0255223e6aac0d0e7ea", "score": "0.62706393", "text": "public void setCost(float theCost){\n this.cost = theCost;\n }", "title": "" }, { "docid": "90dacff5fff55317949d38bd0a03601d", "score": "0.6268599", "text": "@Override\r\n\tpublic double cost() {\n\t\treturn 0;\r\n\t}", "title": "" }, { "docid": "f7ca0d09a052b5753ddf11a46dc1e577", "score": "0.62060666", "text": "public void setCost(double cost) {\n this.cost = cost;\n }", "title": "" }, { "docid": "f7ca0d09a052b5753ddf11a46dc1e577", "score": "0.62060666", "text": "public void setCost(double cost) {\n this.cost = cost;\n }", "title": "" }, { "docid": "e0c524823e116cedf6b9f0ac1141f542", "score": "0.61938053", "text": "public void setCost(double c)\r\n\t{\r\n\t\tthis.cost = c;\r\n\t}", "title": "" }, { "docid": "feadf3edb08ac2caa8a895f79ae7b412", "score": "0.61853784", "text": "public void setCost(double value) {\n this.cost = value;\n }", "title": "" }, { "docid": "81cc2974071cd525904498f46e856ceb", "score": "0.61715525", "text": "public CostReduction() {\n\t\tmAttribute = BonusAttributeType.ST;\n\t\tmPercentage = 40;\n\t}", "title": "" }, { "docid": "024b6ff9c80077cba7d7e12fd8d8c1c4", "score": "0.609289", "text": "@Override\r\n\tpublic void CostCalculation() {\n\t\t\r\n\t}", "title": "" }, { "docid": "e3e55857edef53b5ba1ba8aab1f7eb83", "score": "0.60785395", "text": "public void setCost(){\n\t\tcost = (int) (cost*getOreBuff()*getFoodBuff()*getEnergyBuff());\n\t}", "title": "" }, { "docid": "e2a01e73d6f30280a08852cac83333ed", "score": "0.6069483", "text": "public void setCosts(double c){\r\n\t\tthis.costs = c;\r\n\t}", "title": "" }, { "docid": "ee7e8f5c42c4deef81aad7fbadbd8a1f", "score": "0.6051949", "text": "public void setCost(int cost) {\r\n this.cost = cost;\r\n }", "title": "" }, { "docid": "8a84369ac889d253ac702343f85f83fc", "score": "0.60494584", "text": "@Override\n\tpublic double getCost() {\n\t\treturn 0.5;\n\t}", "title": "" }, { "docid": "fccc98ad7265a26c4921e6dac48218d6", "score": "0.60431457", "text": "@Override\n\tpublic long calculateCost() {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "f1e198f6c87987d887ff6d32bd114f67", "score": "0.60140926", "text": "public void setCost(final double c)\n {\n this.cost = c;\n }", "title": "" }, { "docid": "b69e7d104bcb95e53acfd93afb47e850", "score": "0.60093236", "text": "public void setCost(double cost) {\n\t\tthis.cost = cost;\n\t}", "title": "" }, { "docid": "b69e7d104bcb95e53acfd93afb47e850", "score": "0.60093236", "text": "public void setCost(double cost) {\n\t\tthis.cost = cost;\n\t}", "title": "" }, { "docid": "0e750fada6f0e58374c3094a5da60e94", "score": "0.5998637", "text": "public void setCost(int cost) {\n this.cost = cost;\n }", "title": "" }, { "docid": "0e750fada6f0e58374c3094a5da60e94", "score": "0.5998637", "text": "public void setCost(int cost) {\n this.cost = cost;\n }", "title": "" }, { "docid": "42a43ec2cc4fc32c1f910fcf2d8a8c14", "score": "0.5993439", "text": "@Override\n public double cost() {\n return 5000.0;\n }", "title": "" }, { "docid": "a1a63c80ec89c4f761ffac41e55e87d0", "score": "0.59471655", "text": "@Override\n public int getCost() {\n\treturn 0;\n }", "title": "" }, { "docid": "a1a63c80ec89c4f761ffac41e55e87d0", "score": "0.59471655", "text": "@Override\n public int getCost() {\n\treturn 0;\n }", "title": "" }, { "docid": "5c7d6f2d63014d336b136506be4c4028", "score": "0.59407324", "text": "@Override\r\n\tpublic float getCost() {\n\t\treturn 0.25f;\r\n\t}", "title": "" }, { "docid": "662f485adfe5a5015399d8acd0405e60", "score": "0.59298396", "text": "public void setCost(int c) {\n\t\tcost = c;\n\t}", "title": "" }, { "docid": "230e44ac54b134ddf3e351c54bdf59b6", "score": "0.5917145", "text": "public void setCost() {\n double amount = 0.0;\n for(Item item: items){\n amount += item.getPrice();\n }\n this.cost = amount;\n }", "title": "" }, { "docid": "47550824fe9fedc8a4df42a99dea3c9c", "score": "0.5910339", "text": "@Test\r\n public void testSetCost() {\r\n System.out.println(\"setCost\");\r\n double cost = 0.0;\r\n LabTest instance = new LabTest();\r\n instance.setCost(cost);\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }", "title": "" }, { "docid": "294fffb839682941f0c9f1f366bef070", "score": "0.5894935", "text": "@Override\r\n public double getCost() {\r\n return 10000.00;\r\n }", "title": "" }, { "docid": "6306977c5250139e4b7ed76fdd48b983", "score": "0.58719426", "text": "@Override\n public double getCost(){\n \n return 3.00;\n }", "title": "" }, { "docid": "7363c22c84a0b6ca73423342174bbd25", "score": "0.5863893", "text": "@Override\n\tpublic double cost(){\n\t\treturn 2.99;\n\t}", "title": "" }, { "docid": "8cb4ee7d584588f117123eff12f5084e", "score": "0.58100224", "text": "@Override\n public Double getCost() {\n return new Double(0);\n }", "title": "" }, { "docid": "32c6f03915b892deecb1d809112e1f9d", "score": "0.5792854", "text": "public void unsetBreakdownCost()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(BREAKDOWNCOST$0, 0);\r\n }\r\n }", "title": "" }, { "docid": "8834fac1e6ddcc0a10a4b0632b981ac7", "score": "0.57890177", "text": "@Override\r\n public double getCost() {\n return super.getCost() + 0.5;\r\n }", "title": "" }, { "docid": "73c520b18a3cf9c0786a411532b80ee4", "score": "0.57491654", "text": "public void setCost(int cost) {\n\t\tthis.cost = cost;\n\t}", "title": "" }, { "docid": "73c520b18a3cf9c0786a411532b80ee4", "score": "0.57491654", "text": "public void setCost(int cost) {\n\t\tthis.cost = cost;\n\t}", "title": "" }, { "docid": "8a7ee4c9bd9d712e3ae48e269bad5fa6", "score": "0.57115626", "text": "@Override\n\tpublic void insertCost(Cell cellat, double g) {\n\t\tcellat.gCost = g;\n\t\tcellat.hCost = 0;\n\t\tcellat.fCost = g;\n\t}", "title": "" }, { "docid": "0386b027101af495c17ce129038cfdfd", "score": "0.56904554", "text": "public void setCostAmount(double tmp) {\n this.costAmount = tmp;\n }", "title": "" }, { "docid": "6eddbc3df706b0185a23b5f499056d6e", "score": "0.56857085", "text": "@Override\n\tpublic Double cost() {\n\t\treturn 100.00;\n\t}", "title": "" }, { "docid": "8aee9cd184bc671b37572fcc64ae830d", "score": "0.5677066", "text": "@Override\n\tpublic int cost() {\n\t\treturn 21;\n\t}", "title": "" }, { "docid": "4f13c22e41f85b92bc6218e82b30cd8d", "score": "0.5639734", "text": "public void setCost (java.lang.Double cost) {\n\t\tthis.cost = cost;\n\t}", "title": "" }, { "docid": "d7897f0ead0f20f2b45093a4186ec437", "score": "0.56302977", "text": "@Override\n\tpublic double cost() {\n\t\treturn 450000;\n\t}", "title": "" }, { "docid": "e40589480c0f7a17ced09b1bbbc2402e", "score": "0.5630145", "text": "public void setCosts(Map<String, BigDecimal> costs) {\r\n/* 112 */ this.costs = costs;\r\n/* 113 */ }", "title": "" }, { "docid": "6acb92a4e7779e8e18441ae18796ddaa", "score": "0.5624119", "text": "public void setCost(Cost cost) {\n\t\tthis.cost = cost;\n\t}", "title": "" }, { "docid": "5c37a8adcd3237af52b0344d732865ee", "score": "0.56198406", "text": "public void setCost(int inCost)\n {\n\tif(validateInt(inCost))\n {\n\t cost = inCost; \n }\n }", "title": "" }, { "docid": "3f20193f2ee2cb3275bc9813abbce1e0", "score": "0.55991", "text": "@Override\n\tpublic void setThreshold(double thresholdCost) {\n\t\tthis.thresholdCost = thresholdCost;\n\t\tthis.updateVisibility();\n\t}", "title": "" }, { "docid": "b072e24725873823ad539b16957e3a3b", "score": "0.5588512", "text": "@Test\n public void test15() throws Throwable {\n CostSensitiveClassifier costSensitiveClassifier0 = new CostSensitiveClassifier();\n assertEquals(1, costSensitiveClassifier0.MATRIX_ON_DEMAND);\n assertEquals(2, costSensitiveClassifier0.MATRIX_SUPPLIED);\n assertNotNull(costSensitiveClassifier0);\n assertEquals(\"Sets whether the minimum expected cost criteria will be used. If this is false, the training data will be reweighted according to the costs assigned to each class. If true, the minimum expected cost criteria will be used.\", costSensitiveClassifier0.minimizeExpectedCostTipText());\n assertFalse(costSensitiveClassifier0.getMinimizeExpectedCost());\n assertEquals(\"Sets the cost matrix explicitly. This matrix is used if the costMatrixSource property is set to \\\"Supplied\\\".\", costSensitiveClassifier0.costMatrixTipText());\n assertEquals(\"A metaclassifier that makes its base classifier cost-sensitive. Two methods can be used to introduce cost-sensitivity: reweighting training instances according to the total cost assigned to each class; or predicting the class with minimum expected misclassification cost (rather than the most likely class). Performance can often be improved by using a Bagged classifier to improve the probability estimates of the base classifier.\", costSensitiveClassifier0.globalInfo());\n assertEquals(\"The base classifier to be used.\", costSensitiveClassifier0.classifierTipText());\n assertEquals(\"Sets the directory where cost files are loaded from. This option is used when the costMatrixSource is set to \\\"On Demand\\\".\", costSensitiveClassifier0.onDemandDirectoryTipText());\n assertFalse(costSensitiveClassifier0.getDebug());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", costSensitiveClassifier0.debugTipText());\n assertEquals(1, costSensitiveClassifier0.getSeed());\n assertEquals(0, costSensitiveClassifier0.graphType());\n assertEquals(\"The random number seed to be used.\", costSensitiveClassifier0.seedTipText());\n \n String string0 = Evaluation.makeOptionString(costSensitiveClassifier0, true);\n assertEquals(1, costSensitiveClassifier0.MATRIX_ON_DEMAND);\n assertEquals(2, costSensitiveClassifier0.MATRIX_SUPPLIED);\n assertNotNull(string0);\n assertEquals(\"Sets whether the minimum expected cost criteria will be used. If this is false, the training data will be reweighted according to the costs assigned to each class. If true, the minimum expected cost criteria will be used.\", costSensitiveClassifier0.minimizeExpectedCostTipText());\n assertFalse(costSensitiveClassifier0.getMinimizeExpectedCost());\n assertEquals(\"Sets the cost matrix explicitly. This matrix is used if the costMatrixSource property is set to \\\"Supplied\\\".\", costSensitiveClassifier0.costMatrixTipText());\n assertEquals(\"A metaclassifier that makes its base classifier cost-sensitive. Two methods can be used to introduce cost-sensitivity: reweighting training instances according to the total cost assigned to each class; or predicting the class with minimum expected misclassification cost (rather than the most likely class). Performance can often be improved by using a Bagged classifier to improve the probability estimates of the base classifier.\", costSensitiveClassifier0.globalInfo());\n assertEquals(\"The base classifier to be used.\", costSensitiveClassifier0.classifierTipText());\n assertEquals(\"Sets the directory where cost files are loaded from. This option is used when the costMatrixSource is set to \\\"On Demand\\\".\", costSensitiveClassifier0.onDemandDirectoryTipText());\n assertFalse(costSensitiveClassifier0.getDebug());\n assertEquals(\"If set to true, classifier may output additional info to the console.\", costSensitiveClassifier0.debugTipText());\n assertEquals(1, costSensitiveClassifier0.getSeed());\n assertEquals(0, costSensitiveClassifier0.graphType());\n assertEquals(\"The random number seed to be used.\", costSensitiveClassifier0.seedTipText());\n assertEquals(\"\\n\\nGeneral options:\\n\\n-h or -help\\n\\tOutput help information.\\n-synopsis or -info\\n\\tOutput synopsis for classifier (use in conjunction with -h)\\n-t <name of training file>\\n\\tSets training file.\\n-T <name of test file>\\n\\tSets test file. If missing, a cross-validation will be performed\\n\\ton the training data.\\n-c <class index>\\n\\tSets index of class attribute (default: last).\\n-x <number of folds>\\n\\tSets number of folds for cross-validation (default: 10).\\n-no-cv\\n\\tDo not perform any cross validation.\\n-split-percentage <percentage>\\n\\tSets the percentage for the train/test set split, e.g., 66.\\n-preserve-order\\n\\tPreserves the order in the percentage split.\\n-s <random number seed>\\n\\tSets random number seed for cross-validation or percentage split\\n\\t(default: 1).\\n-m <name of file with cost matrix>\\n\\tSets file with cost matrix.\\n-l <name of input file>\\n\\tSets model input file. In case the filename ends with '.xml',\\n\\ta PMML file is loaded or, if that fails, options are loaded\\n\\tfrom the XML file.\\n-d <name of output file>\\n\\tSets model output file. In case the filename ends with '.xml',\\n\\tonly the options are saved to the XML file, not the model.\\n-v\\n\\tOutputs no statistics for training data.\\n-o\\n\\tOutputs statistics only, not the classifier.\\n-i\\n\\tOutputs detailed information-retrieval statistics for each class.\\n-k\\n\\tOutputs information-theoretic statistics.\\n-classifications \\\"weka.classifiers.evaluation.output.prediction.AbstractOutput + options\\\"\\n\\tUses the specified class for generating the classification output.\\n\\tE.g.: weka.classifiers.evaluation.output.prediction.PlainText\\n-p range\\n\\tOutputs predictions for test instances (or the train instances if\\n\\tno test instances provided and -no-cv is used), along with the \\n\\tattributes in the specified range (and nothing else). \\n\\tUse '-p 0' if no attributes are desired.\\n\\tDeprecated: use \\\"-classifications ...\\\" instead.\\n-distribution\\n\\tOutputs the distribution instead of only the prediction\\n\\tin conjunction with the '-p' option (only nominal classes).\\n\\tDeprecated: use \\\"-classifications ...\\\" instead.\\n-r\\n\\tOnly outputs cumulative margin distribution.\\n-g\\n\\tOnly outputs the graph representation of the classifier.\\n-xml filename | xml-string\\n\\tRetrieves the options from the XML-data instead of the command line.\\n-threshold-file <file>\\n\\tThe file to save the threshold data to.\\n\\tThe format is determined by the extensions, e.g., '.arff' for ARFF \\n\\tformat or '.csv' for CSV.\\n-threshold-label <label>\\n\\tThe class label to determine the threshold data for\\n\\t(default is the first label)\\n\\nOptions specific to weka.classifiers.meta.CostSensitiveClassifier:\\n\\n-M\\n\\tMinimize expected misclassification cost. Default is to\\n\\treweight training instances according to costs per class\\n-C <cost file name>\\n\\tFile name of a cost matrix to use. If this is not supplied,\\n\\ta cost matrix will be loaded on demand. The name of the\\n\\ton-demand file is the relation name of the training data\\n\\tplus \\\".cost\\\", and the path to the on-demand file is\\n\\tspecified with the -N option.\\n-N <directory>\\n\\tName of a directory to search for cost files when loading\\n\\tcosts on demand (default current directory).\\n-cost-matrix <matrix>\\n\\tThe cost matrix in Matlab single line format.\\n-S <num>\\n\\tRandom number seed.\\n\\t(default 1)\\n-D\\n\\tIf set, classifier is run in debug mode and\\n\\tmay output additional info to the console\\n-W\\n\\tFull name of base classifier.\\n\\t(default: weka.classifiers.rules.ZeroR)\\n\\nOptions specific to classifier weka.classifiers.rules.ZeroR:\\n\\n-D\\n\\tIf set, classifier is run in debug mode and\\n\\tmay output additional info to the console\\n\\nSynopsis for weka.classifiers.meta.CostSensitiveClassifier:\\n\\nA metaclassifier that makes its base classifier cost-sensitive. Two methods can be used to introduce cost-sensitivity: reweighting training instances according to the total cost assigned to each class; or predicting the class with minimum expected misclassification cost (rather than the most likely class). Performance can often be improved by using a Bagged classifier to improve the probability estimates of the base classifier.\", string0);\n }", "title": "" }, { "docid": "2591854a331554b5ca17fe033be50139", "score": "0.5552203", "text": "@Override\r\n\tpublic double getCost ( ) {\r\n\t\treturn 25.0;\r\n\t}", "title": "" }, { "docid": "0ccbde515dc4b2b07c2918c300939f9a", "score": "0.552963", "text": "public void updateCost(int penalty) {\r\n this.cost += penalty;\r\n }", "title": "" }, { "docid": "2f80da075965da544e4d9ddceeee679b", "score": "0.55218816", "text": "@Override\n\tpublic int getcost() {\n\t\treturn 25000;\n\t}", "title": "" }, { "docid": "e14b866f590c112a38b6154f0e413bb6", "score": "0.55167836", "text": "private void setMissCount(int i) {\n\t\tif (i != 0)\r\n\t\t\tmissCount = missCount + 1;\r\n\r\n\t}", "title": "" }, { "docid": "82e342a00e966f9c117c1f469e9cb6a6", "score": "0.5512363", "text": "public void setMissReq(int missReq) {\n\t\tthis.missReq = missReq;\n\t}", "title": "" }, { "docid": "a3cab816710364cc1ea42d8db76b4ff0", "score": "0.5509702", "text": "public void setMissReqScore(String missReqScore) {\n\t\tthis.missReqScore = missReqScore;\n\t}", "title": "" }, { "docid": "a01eccd6f87c8949ab5c822b87659e37", "score": "0.55030483", "text": "public void setCost(double cost2) {\n\t\tCost = cost2;\n\t}", "title": "" }, { "docid": "b856386ac1c4637badf59f50b7dc9024", "score": "0.54612136", "text": "public void calculateCost(){\r\n this.totalCost = process.getTotalCost();\r\n }", "title": "" }, { "docid": "ace6731333d15a4e0365be0dc3df7058", "score": "0.5450573", "text": "public long getCost() {\n\t\treturn 0;\r\n\t}", "title": "" }, { "docid": "18d85ebe5f8aedce5d41c5d36f6d26a1", "score": "0.54425627", "text": "public Builder clearCost() {\n bitField0_ = (bitField0_ & ~0x00000010);\n cost_ = 0;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "2acac898df25ae1627cb11d26cb4d5e0", "score": "0.54405177", "text": "public void setTotalCost(double totalCost)\n {\n this.totalCost = totalCost;\n }", "title": "" }, { "docid": "4769fc497a17427b03a2293df4a29c03", "score": "0.5426359", "text": "public void setCost(int[][] cost) {\r\n this.cost = cost;\r\n }", "title": "" }, { "docid": "d2ea5ee2701ecc6ef85db61bbd704be5", "score": "0.5409226", "text": "public Builder clearCost() {\n bitField0_ = (bitField0_ & ~0x00000004);\n cost_ = 0;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "1cbaefea5e9c4fcc55d653e03c6022ac", "score": "0.5407522", "text": "public void setEconomicCost(double ec);", "title": "" }, { "docid": "443fe1875aac2d0a0df84cac31fb0710", "score": "0.5389369", "text": "public abstract double getInitialCost();", "title": "" }, { "docid": "6088c3500b498aca59db8e074c6e1b72", "score": "0.53795433", "text": "public void xsetFailureRate(org.apache.xmlbeans.XmlString failureRate)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlString target = null;\r\n target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(FAILURERATE$48);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(FAILURERATE$48);\r\n }\r\n target.set(failureRate);\r\n }\r\n }", "title": "" }, { "docid": "14c78cd3918393919fc86fec0d33d239", "score": "0.53740436", "text": "public void applyPenalty();", "title": "" }, { "docid": "d2c818b76058fc4f5461acd5ad9ade78", "score": "0.53714615", "text": "public void setCostPerSec(double costPerSec) {\n this.costPerSec = costPerSec;\n }", "title": "" }, { "docid": "56a49c6eb0d1835a12219fea5135b0d5", "score": "0.53693557", "text": "@Override\n\tpublic void setFreedomeness(double free) {\n\t\tthis.N = free;\n\t}", "title": "" }, { "docid": "f356c6537262371fc64063fa5db4c674", "score": "0.53647816", "text": "@Override\n\tpublic int getcost() {\n\t\treturn 90000;\n\t}", "title": "" }, { "docid": "92f39e6046baa4a6fe18ae65f061e111", "score": "0.5361088", "text": "private void loadRequirementCostEstimates(Scanner scanner, Project project) throws Exception\n\t{\n\t\tString line = nextLine(scanner);\n\t\tint numberOfRequirements = Integer.parseInt(line);\n\t\t\n\t\tif (numberOfRequirements != project.getRequirementCount())\n\t\t\taddError(\"Requirements count different from instance on risk file\");\n\n\t\tfor (int i = 0; i < numberOfRequirements; i++)\n\t\t{\n\t\t\tline = nextLine(scanner);\n\t\t\tString[] tokens = line.split(\" \");\n\t\t\t\n\t\t\tif (tokens.length != 3)\n\t\t\t\taddError(\"Invalid number of columns on requirement estimates\");\n\t\t\t\n\t\t\tint expectedCost = Integer.parseInt(tokens[0]);\n\t\t\tdouble minimumCost = Double.parseDouble(tokens[1]);\n\t\t\tdouble maximumCost = Double.parseDouble(tokens[2]);\n\t\t\t\n\t\t\tif (expectedCost != project.getRequirementCost(i))\n\t\t\t\taddError(\"Invalid expected cost for requirement #\" + (i+1));\n\t\t\t\t\n\t\t\tproject.setRequirementCostEstimates(i, minimumCost, maximumCost);\n\t\t}\n\t}", "title": "" }, { "docid": "164d839d63097f723ed0cc25e0d46e30", "score": "0.5360661", "text": "private void overallCrossvalidation() {\r\n\r\n\t\ttry {\r\n\t\t\tRandom rand = new Random(seed);\r\n\t\t\tInstances randData = new Instances(originalDataSet);\r\n\t\t\trandData.randomize(rand);\r\n\t\t\trandData.stratify(numFolds);\r\n\r\n\t\t\tdouble tp = 0;\r\n\t\t\tdouble tn = 0;\r\n\t\t\tdouble fp = 0;\r\n\t\t\tdouble fn = 0;\r\n\t\t\t\r\n\t\t\tMap<UsabilityRatingReason, Integer> falsePositives = new HashMap<UsabilityRatingReason, Integer>();\r\n\t\t\tfor (UsabilityRatingReason r : this.reasonClassifiers.keySet())\r\n\t\t\t\tfalsePositives.put(r, 0);\r\n\t\t\t\r\n\t\t\tList<String> columnNames = getColumnNames();\r\n\t\t\tMap<String, Map<String, Double>> overallResultMap = new HashMap<String, Map<String, Double>>();\r\n\t\t\t\r\n\t\t\tfor (int i = 0; i < numFolds; i++) {\r\n\t\t\t\tInstances train = randData.trainCV(numFolds, i);\r\n\t\t\t\tInstances originalTest = randData.testCV(numFolds, i);\r\n\t\t\t\tthis.reasonFilter.setInputFormat(originalTest);\r\n\t\t\t\tInstances test = Filter.useFilter(originalTest, this.reasonFilter);\r\n\t\t\t\t\r\n\t\t\t\t// prepare the training data for each classifier\r\n\t\t\t\tMap<UsabilityRatingReason, Instances> classifierInstances = new HashMap<UsabilityRatingReason, Instances>();\r\n\t\t\t\tfor (UsabilityRatingReason r : this.reasonClassifiers.keySet()) {\r\n\t\t\t\t\tclassifierInstances.put(r, new Instances(train, 0));\r\n\t\t\t\t}\r\n\t\t\t\tfor (Instance instance : train) {\r\n\t\t\t\t\tfor (UsabilityRatingReason r : classifierInstances.keySet()) {\r\n\t\t\t\t\t\tif (instance.classValue() == this.positiveClassIdx || instance.value(train.attribute(Util.ATTRIBUTE_REASON + r.toString())) == this.positiveClassIdx) {\r\n\t\t\t\t\t\t\tUsabilityRatingReason toAdd = (r.equals(UsabilityRatingReason.MISSING_LOCATION)) ? UsabilityRatingReason.MISSING_OBJECT : r;\r\n\t\t\t\t\t\t\tclassifierInstances.get(toAdd).add(instance);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tList<Classifier> hardFilteringClassifiers = new ArrayList<Classifier>();\r\n\t\t\t\t\r\n\t\t\t\t// now train each classifier with its specified filter\r\n\t\t\t\tfor (Map.Entry<UsabilityRatingReason, Classifier> entry : this.reasonClassifiers.entrySet()) {\r\n\t\t\t\t\tUsabilityRatingReason r = entry.getKey();\r\n\t\t\t\t\tClassifier c;\r\n\t\t\t\t\tif (this.useCostSensitiveWrapper) {\r\n\t\t\t\t\t\tMetaCost outer = (MetaCost) AbstractClassifier.makeCopy(this.costSensitiveWrapper);\r\n\t\t\t\t\t\tif (this.useIndividualCostMatrices) {\r\n\t\t\t\t\t\t\tString matrix;\r\n\t\t\t\t\t\t\tswitch (r) {\r\n\t\t\t\t\t\t\tcase MISSING_SUBJECT:\r\n\t\t\t\t\t\t\tcase BROKEN_CONSTITUENT:\r\n\t\t\t\t\t\t\tcase WRONG_PARSE:\r\n\t\t\t\t\t\t\t\tmatrix = \"[0.0 2.0; 1.0 0.0]\";\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\tcase NO_EVENT:\r\n\t\t\t\t\t\t\tcase KEYWORD_ENTITY_CATEGORIZATION:\r\n\t\t\t\t\t\t\tcase MISSING_OBJECT:\r\n\t\t\t\t\t\t\tcase OTHER_ENTITY_CATEGORIZATION:\r\n\t\t\t\t\t\t\t\tmatrix = \"[0.0 4.0; 1.0 0.0]\";\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\tcase OVERLAPPING_CONSTITUENTS:\r\n\t\t\t\t\t\t\tcase EVENT_MERGE:\r\n\t\t\t\t\t\t\tcase KEYWORD_REGEX_MISMATCH:\r\n\t\t\t\t\t\t\t\tmatrix = \"[0.0 1.0; 1.0 0.0]\";\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\tdefault:\r\n\t\t\t\t\t\t\t\tmatrix = \"[0.0 1.0; 1.0 0.0]\";\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tString[] array = {\"-cost-matrix\", matrix};\r\n\t\t\t\t\t\t\touter.setOptions(array);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tClassifier inner = AbstractClassifier.makeCopy(entry.getValue());\r\n\t\t\t\t\t\touter.setClassifier(inner);\r\n\t\t\t\t\t\tc = outer;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tc = AbstractClassifier.makeCopy(entry.getValue());\r\n\t\t\t\t\t}\r\n\t\t\t\t\tInstances classifierTrain = classifierInstances.get(r);\r\n\t\t\t\t\tthis.reasonFilter.setInputFormat(classifierTrain);\r\n\t\t\t\t\tInstances filtered = Filter.useFilter(classifierTrain, this.reasonFilter);\r\n\t\t\t\t\tc.buildClassifier(filtered);\r\n\t\t\t\t\thardFilteringClassifiers.add(c);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t// and manually test w/o the voting stuff but with a hard AND\r\n\t\t\t\tfor (int j = 0; j < test.numInstances(); j++) { //Instance instance : originalTest) {\r\n\t\t\t\t\tInstance instance = test.get(j);\r\n\t\t\t\t\tInstance rawInstance = originalTest.get(j);\r\n\t\t\t\t\t\r\n\t\t\t\t\tboolean isPositiveExample = (instance.classValue() == this.positiveClassIdx);\r\n\t\t\t\t\tboolean isClassifiedPositive = true;\r\n\t\t\t\t\t\r\n\t\t\t\t\tfor (Classifier c : hardFilteringClassifiers) {\r\n\t\t\t\t\t\tdouble prediction = c.classifyInstance(instance);\r\n\t\t\t\t\t\tisClassifiedPositive = isClassifiedPositive && (prediction == this.positiveClassIdx);\r\n\t\t\t\t\t\tif (!isClassifiedPositive)\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (isPositiveExample) {\r\n\t\t\t\t\t\tif (isClassifiedPositive)\r\n\t\t\t\t\t\t\ttp++;\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\tfn++;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tif (isClassifiedPositive) {\r\n\t\t\t\t\t\t\tfp++;\r\n\t\t\t\t\t\t\tif (outputMisclassifiedReasons) {\r\n\t\t\t\t\t\t\t\tfor (UsabilityRatingReason r : falsePositives.keySet()) {\r\n\t\t\t\t\t\t\t\t\tif (rawInstance.value(train.attribute(Util.ATTRIBUTE_REASON + r.toString())) == this.positiveClassIdx)\r\n\t\t\t\t\t\t\t\t\t\tfalsePositives.put(r, falsePositives.get(r) + 1);\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\r\n\t\t\t\t\t\t\ttn++;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tMap<String, Double> filterMap = getClassifierMap(tp, fn, fp, tn);\r\n\t\t\t\r\n\t\t\toverallResultMap.put(\"hardFilter\", filterMap);\r\n\t\t\t\r\n\t\t\tif (log.isInfoEnabled()) {\r\n\t\t\t\tlog.info(\"FILTER\");\r\n\t\t\t\tlogEvalResults(tp, fn, fp, tn, filterMap);\r\n\t\t\t\t\r\n\t\t\t\tif (outputMisclassifiedReasons) {\r\n\t\t\t\t\tlog.info(\" \");\r\n\t\t\t\t\tfor (Map.Entry<UsabilityRatingReason, Integer> entry : falsePositives.entrySet())\r\n\t\t\t\t\t\tlog.info(String.format(\"%s: %d\", entry.getKey().toString(), entry.getValue()));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tUtil.writeEvaluationToCsv(outputFileName, columnNames, overallResultMap);\r\n\t\t\t\r\n\t\t} catch (Exception e) {\r\n\t\t\tif (log.isErrorEnabled())\r\n\t\t\t\tlog.error(\"Can't do overall crossvalidation\");\r\n\t\t\tif (log.isDebugEnabled())\r\n\t\t\t\tlog.debug(\"Can't do overall crossvalidation\", e);\r\n\t\t}\r\n\t\t\r\n\t}", "title": "" }, { "docid": "0046e2859b2139010e6e3284676fb0cc", "score": "0.5354626", "text": "@Test(timeout = 4000)\n public void test067() throws Throwable {\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n Instances instances0 = new Instances(\"\", arrayList0, 0);\n CostSensitiveClassifier costSensitiveClassifier0 = new CostSensitiveClassifier();\n CostMatrix costMatrix0 = costSensitiveClassifier0.getCostMatrix();\n Evaluation evaluation0 = null;\n try {\n evaluation0 = new Evaluation(instances0, costMatrix0);\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // Class index is negative (not set)!\n //\n verifyException(\"weka.core.Instances\", e);\n }\n }", "title": "" }, { "docid": "bf038dd40fa7b3462bb7c5a6d1d74cf4", "score": "0.5354609", "text": "public MaximumNumberOfPointsWithCost() {\n // Initialization here.\n // this.count = 0;\n\n }", "title": "" }, { "docid": "2c90aad3a6f199f8d7f0eec74dca9df9", "score": "0.5350512", "text": "public void setCosts(int g, int h)\n {\n this.g = g;\n\n // Estimated cost from this Cell to the goal Cell\n this.h = h;\n\n // F = G() + H() - Totalcost for this Cell\n this.f = g + h;\n }", "title": "" }, { "docid": "c9c435957517b3a735e7cc6e7a0c656a", "score": "0.53482443", "text": "@Override\n\t\t public Cost evaluate(Dataset dataset, ClassificationModel model) {\n\t\t \tint[][] matrix = Measure.fill(dataset, model);\n\n\t\t \tdouble TN= 0;\n\t\t\t\tdouble TP =0; \n\t\t\t\tdouble FN =0; \n\t\t\t\tdouble FP =0; \n\t\t\t\tdouble precision= 0;\n\t\t\t\tdouble recall= 0 ; \n\t\t\t\tfor (int i = 0; i < matrix.length; i++) {\n\t\t\t\t for (int j = 0; j < matrix.length; j++) {\n\t\t\t\t\tif (i ==1 && j==1) {\n\t\t\t\t TN += matrix[i][j];\n\t\t\t\t\t} else if (i==2 && j==2) {\n\t\t\t\t\t\t TP += matrix[i][j];\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if (i==2 && j==2) {\n\t\t\t\t\t\t TP += matrix[i][j];\n\t\t\t\t\t\t} else if (i==1 && j==2) {\n\t\t\t\t\t\t\t FN += matrix[i][j];\n\t\t\t\t\t\t\t} else if (i==2 && j==1) {\n\t\t\t\t\t\t\t\t FP += matrix[i][j];\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t//\t precision = TP / (TP + FP) ;\n\t\t\t\t\t \n\t\t\t\t\t//total += matrix[i][j];\n\t\t\t\t }}\n\t\t\t\trecall = TP / (TP + FN) ;\n\t\t\t\t\t\n\t\t\t\treturn new Maximise((double)recall); \n\t\t }", "title": "" }, { "docid": "2221276aed15cae4e9133ba97ea984a4", "score": "0.5341578", "text": "public void setCostPerMem(double costPerMem) {\n this.costPerMem = costPerMem;\n }", "title": "" }, { "docid": "8a8eb8b8050d0b9a552c807e2023a62d", "score": "0.5337785", "text": "@Override\n\tpublic double calculateEfficiency() {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "a82fb8e13ac1ceeadf2a6f803d2d9b15", "score": "0.53355765", "text": "private void prune(Instances pruneData){\n Instances data=new Instances(pruneData);\n Instances otherData = new Instances(data, 0);\n double total = data.sumOfWeights();\n\t\n /* The default accurate# and the the accuracy rate on pruning data */\n double defAccu;\n if(m_ClassAttribute.isNumeric())\n defAccu = meanSquaredError(pruneData,\n\t\t\t\t ((double[][])m_Targets.firstElement())[0][0]);\n else{\n int predict = Utils.maxIndex(((double[][])m_Targets.firstElement())[0]);\n defAccu = computeAccu(pruneData, predict)/total;\n }\n\t\n int size=m_Antds.size();\n if(size == 0){\n m_Cnsqt = ((double[][])m_Targets.lastElement())[0];\n m_DefDstr = ((double[][])m_Targets.lastElement())[1];\n return; // Default rule before pruning\n }\n\t\n double[] worthValue = new double[size];\n\t\n /* Calculate accuracy parameters for all the antecedents in this rule */\n for(int x=0; x<size; x++){\n Antd antd=(Antd)m_Antds.elementAt(x);\n Instances newData = new Instances(data);\n if(Utils.eq(newData.sumOfWeights(),0.0))\n\tbreak;\n\t \n data = new Instances(newData, newData.numInstances()); // Make data empty\n\t \n for(int y=0; y<newData.numInstances(); y++){\n\tInstance ins=newData.instance(y);\n\tif(antd.isCover(ins)) // Covered by this antecedent\n\t data.add(ins); // Add to data for further \t\t\n\telse\n\t otherData.add(ins); // Not covered by this antecedent\n }\n\t \n double covered, other;\t \n double[][] classes = \n\t(double[][])m_Targets.elementAt(x+1); // m_Targets has one more element\n if(m_ClassAttribute.isNominal()){\t\t\n\tint coverClass = Utils.maxIndex(classes[0]),\n\t otherClass = Utils.maxIndex(classes[1]);\n\t\t\n\tcovered = computeAccu(data, coverClass); \n\tother = computeAccu(otherData, otherClass);\t\t\n }\n else{\n\tdouble coverClass = classes[0][0],\n\t otherClass = classes[1][0];\n\tcovered = (data.sumOfWeights())*meanSquaredError(data, coverClass); \n\tother = (otherData.sumOfWeights())*meanSquaredError(otherData, otherClass);\n }\n\t \n worthValue[x] = (covered + other)/total;\n }\n\t\n /* Prune the antecedents according to the accuracy parameters */\n for(int z=(size-1); z > 0; z--){\t\n // Treatment to avoid precision problems\n double valueDelta;\n if(m_ClassAttribute.isNominal()){\n\tif(Utils.sm(worthValue[z], 1.0))\n\t valueDelta = (worthValue[z] - worthValue[z-1]) / worthValue[z];\n\telse\n\t valueDelta = worthValue[z] - worthValue[z-1];\n }\n else{\n\tif(Utils.sm(worthValue[z], 1.0))\n\t valueDelta = (worthValue[z-1] - worthValue[z]) / worthValue[z];\n\telse\n\t valueDelta = (worthValue[z-1] - worthValue[z]);\n }\n\t \n if(Utils.smOrEq(valueDelta, 0.0)){\t\n\tm_Antds.removeElementAt(z);\n\tm_Targets.removeElementAt(z+1);\n }\n else break;\n }\t\n\t\n // Check whether this rule is a default rule\n if(m_Antds.size() == 1){\n double valueDelta;\n if(m_ClassAttribute.isNominal()){\n\tif(Utils.sm(worthValue[0], 1.0))\n\t valueDelta = (worthValue[0] - defAccu) / worthValue[0];\n\telse\n\t valueDelta = (worthValue[0] - defAccu);\n }\n else{\n\tif(Utils.sm(worthValue[0], 1.0))\n\t valueDelta = (defAccu - worthValue[0]) / worthValue[0];\n\telse\n\t valueDelta = (defAccu - worthValue[0]);\n }\n\t \n if(Utils.smOrEq(valueDelta, 0.0)){\n\tm_Antds.removeAllElements();\n\tm_Targets.removeElementAt(1);\n }\n }\n\t\n m_Cnsqt = ((double[][])(m_Targets.lastElement()))[0];\n m_DefDstr = ((double[][])(m_Targets.lastElement()))[1];\n }", "title": "" }, { "docid": "b071d31a99b3004cd9d135ed5f41ac52", "score": "0.5332092", "text": "public Builder setCost(int value) {\n bitField0_ |= 0x00000010;\n cost_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "87dd5cf71b8434bde291cc62110a0f97", "score": "0.53293383", "text": "@Override\n\tpublic Log UpdateCost(Cost cost) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "3c011e53217119546dd249ca6c68dc17", "score": "0.532438", "text": "@Override\n public int getCost(){\n return cost;\n }", "title": "" }, { "docid": "66495e44f744f4ce34c78612bb46f9b0", "score": "0.53216934", "text": "@Test(timeout = 4000)\n public void test18() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation.handleCostOption(\"\", (-2106));\n Evaluation evaluation0 = new Evaluation(instances0, (CostMatrix) null);\n Evaluation evaluation1 = new Evaluation(instances0, (CostMatrix) null);\n double double0 = evaluation1.recall(Integer.MAX_VALUE);\n MultiClassClassifierUpdateable multiClassClassifierUpdateable0 = new MultiClassClassifierUpdateable();\n Evaluation evaluation2 = new Evaluation(instances0);\n double double1 = evaluation0.falseNegativeRate(34);\n assertEquals(double1, double0, 0.01);\n \n Evaluation evaluation3 = new Evaluation(instances0);\n double double2 = evaluation0.SFMeanEntropyGain();\n assertEquals(Double.NaN, double2, 0.01);\n \n double double3 = evaluation1.numTrueNegatives(0);\n assertEquals(0.0, double3, 0.01);\n assertEquals(0.0, evaluation1.SFEntropyGain(), 0.01);\n }", "title": "" }, { "docid": "14ce4b51a6236e95f6ffb6f2187c72f1", "score": "0.53200597", "text": "@Override\n public void applyPowers() {\n reduceCostToZeroForATurnIfNeeded();\n super.applyPowers();\n }", "title": "" }, { "docid": "65329b63f503a25de97c68b107fb0939", "score": "0.5300855", "text": "public void setCostPerPound(double newCostPerPound)\n {\n costPerPound = newCostPerPound;\n }", "title": "" }, { "docid": "dcc6bb528e5668e6d1707d216dec2230", "score": "0.52928984", "text": "public void computeCost() {\r\n this.cost = CostFunction.getCost(timeslots);\r\n }", "title": "" }, { "docid": "51c88714d583b25a7ed5f68e33fb27b8", "score": "0.5290364", "text": "public void setTotalcost(Double totalcost) {\n\tthis.totalcost = totalcost;\n }", "title": "" }, { "docid": "0df4e65a3a90fd251be890940b80476a", "score": "0.52889484", "text": "public Builder setCost(int value) {\n bitField0_ |= 0x00000004;\n cost_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "70ef4845eac55b34bdbba0d8c8455bf8", "score": "0.52882516", "text": "public static void addkit(){\n if (kits < capacity) kits += 0.5;\n }", "title": "" }, { "docid": "23a097126e3bbb22b9af8ed8c102376c", "score": "0.5283116", "text": "public void setInsuranceCost(Double insuranceCost) {\r\n this.insuranceCost = insuranceCost;\r\n }", "title": "" }, { "docid": "8a3b5799ba3bed6bbdc089509fa755e3", "score": "0.5272577", "text": "public CostReduction(CostReduction other) {\n\t\tmAttribute = other.mAttribute;\n\t\tmPercentage = other.mPercentage;\n\t}", "title": "" }, { "docid": "2afc091185878a70bc126bb3f6bb8fd0", "score": "0.5266384", "text": "public void setBreakdownCost(com.msbinfo.expresslync.rct.valuation.BreakdownCost breakdownCost)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n com.msbinfo.expresslync.rct.valuation.BreakdownCost target = null;\r\n target = (com.msbinfo.expresslync.rct.valuation.BreakdownCost)get_store().find_element_user(BREAKDOWNCOST$0, 0);\r\n if (target == null)\r\n {\r\n target = (com.msbinfo.expresslync.rct.valuation.BreakdownCost)get_store().add_element_user(BREAKDOWNCOST$0);\r\n }\r\n target.set(breakdownCost);\r\n }\r\n }", "title": "" }, { "docid": "65663a96e1a7f5242c7c295dec1d4140", "score": "0.52647877", "text": "public void changeCost(double cost)\n {\n this.sellerCost = cost;\n }", "title": "" }, { "docid": "b18345ff09cd50aca238b46466102ad4", "score": "0.5264135", "text": "public int cost()\r\n {\r\n return 0;\r\n }", "title": "" }, { "docid": "d47fd79ac3c047952d6040cd376b4a6e", "score": "0.52585727", "text": "public static void trainClassifier() {\n int spamWords = 0;\n int hamWords = 0;\n for(Map.Entry<String, Integer> entry : hamMails.entrySet()) {\n hamWords += entry.getValue();\n }\n for(Map.Entry<String, Integer> entry : spamMails.entrySet()) {\n spamWords += entry.getValue();\n }\n // Prob = count/#words\n for(Map.Entry<String, Integer> entry : hamMails.entrySet()) {\n hamProb.put(entry.getKey(), entry.getValue() / (double)hamWords);\n }\n for(Map.Entry<String, Integer> entry : spamMails.entrySet()) {\n spamProb.put(entry.getKey(), entry.getValue() / (double)spamWords);\n }\n }", "title": "" }, { "docid": "6ff1480fc91a9d88e44b2a5ae9460438", "score": "0.5256961", "text": "double getCost();", "title": "" }, { "docid": "1398cf2d8e12fed93b7916d6dd29158e", "score": "0.52452016", "text": "public ExpectedMinimizedValue(int cost) {\n minimizedValues = new HashSet<>();\n minimizedCost = cost;\n }", "title": "" }, { "docid": "9ab1e085c84cbca10c48c03460a9ff86", "score": "0.52410287", "text": "void setDiscount(BigDecimal discount);", "title": "" }, { "docid": "58195e1ef242e4742c3d300749bcaa43", "score": "0.5237412", "text": "@Override\n public int getCost() {\n return (cost);\n }", "title": "" }, { "docid": "db93659c5c55cc7682ba18a68ea2ce61", "score": "0.52342963", "text": "@Test(timeout = 4000)\n public void test13() throws Throwable {\n JRip jRip0 = new JRip();\n String string0 = \"\";\n Properties properties0 = new Properties();\n ProtectedProperties protectedProperties0 = new ProtectedProperties(properties0);\n InputMappedClassifier inputMappedClassifier0 = new InputMappedClassifier();\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n Instances instances0 = new Instances(\"\", arrayList0, 0);\n Instances instances1 = inputMappedClassifier0.getModelHeader(instances0);\n int[] intArray0 = new int[8];\n intArray0[0] = 0;\n intArray0[1] = 0;\n intArray0[2] = 0;\n intArray0[3] = 0;\n intArray0[4] = 0;\n intArray0[5] = 0;\n intArray0[6] = 0;\n intArray0[7] = 0;\n BinarySparseInstance binarySparseInstance0 = new BinarySparseInstance(1237.4087191540596, intArray0, 0);\n BinarySparseInstance binarySparseInstance1 = new BinarySparseInstance((SparseInstance) binarySparseInstance0);\n instances0.add((Instance) binarySparseInstance1);\n try { \n jRip0.rulesetForOneClass(1191.8044636, instances1, 0.0, 511.448369);\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // Class index is negative (not set)!\n //\n verifyException(\"weka.core.Instances\", e);\n }\n }", "title": "" }, { "docid": "43efca15de2a9f81ae90f126fb72955a", "score": "0.5227195", "text": "@Override\n\tpublic void penalty()\n\t{\n\t\t{\n\t\tssaMain.d3.balance = ssaMain.d3.balance-atm3.PENALTY;\n\t\tSystem.out.println(\"BALANCE BELOW MINIMUM. $\"+atm3.PENALTY+\" PENALTY APPLIED\");\n\t\t}\n\t}", "title": "" }, { "docid": "3fbf8c0812b68860f4462fa214fb44d6", "score": "0.5225561", "text": "public void giveMissile()\r\n\t{\r\n\t\t++numMissiles;\r\n\t}", "title": "" } ]
db55c8fb9793d36ec84dd5a9a41828b5
/ Definisanje metoda za kreiranje wave: paran, neparan, svaki 3, svaki 5, svaki 10, svaki 13,
[ { "docid": "6b6fa4138b80d45e27cfc9dd7396d3df", "score": "0.0", "text": "private void setUpEvenWaves() {\n nizEnemija = new Enemy[brojEnemijaPerWave + evenEnemyCountUpdater];\n for (int i = 0; i < nizEnemija.length; i++) {\n nizEnemija[i] = new Enemy(EnemyType.ENEMY_ONE_EYED_ZOMBIE, tile, tileMap);\n }\n }", "title": "" } ]
[ { "docid": "b3238bcb14e5aa004763ab0e307a7711", "score": "0.5764959", "text": "static void trafikMedyan(List<Trafik> trafikList){\n List<Integer> kavsak1dizi = new ArrayList<Integer>();\n List<Integer> kavsak2dizi = new ArrayList<Integer>();\n List<Integer> kavsak3dizi = new ArrayList<Integer>();\n for (Trafik trafik: trafikList) {\n kavsak1dizi.add(trafik.getKavsak1());\n kavsak2dizi.add(trafik.getKavsak2());\n kavsak3dizi.add(trafik.getKavsak3());\n }\n\n //Medyanini bulmak icin dizimi kucukten buyuge dogru siralamamiz gerekiyordu\n Collections.sort(kavsak1dizi);\n Collections.sort(kavsak2dizi);\n Collections.sort(kavsak3dizi);\n\n double medyankavsak1;\n double medyankavsak2;\n double medyankavsak3;\n\n //burada kontrol ettigim sey ise, dizinin boyutunun cift mi tek mi oldugunu kontrol etmek\n //cift ise 2 tane medyan oldugu icin ikisinide toplayip 2 ye boldugumuzde sonucumuza ulasiyoruz\n //tek ise zaten dizi boyutunu 2 ye boldugumuzde direk olarak degeri verir\n if (kavsak1dizi.size()%2==0) {\n medyankavsak1 = ((double) kavsak1dizi.get(kavsak1dizi.size() / 2) + (double) kavsak1dizi.get(kavsak1dizi.size() / 2 - 1)) / 2; //ortancaların ortalaması\n }else {\n medyankavsak1 = (double) kavsak1dizi.get(kavsak1dizi.size() / 2); //tek sayılı eleman sayısına sahip vektörün ortanca elemanı\n }\n if (kavsak2dizi.size()%2== 0) {\n medyankavsak2 = ((double) kavsak2dizi.get(kavsak2dizi.size() / 2) + (double) kavsak2dizi.get(kavsak2dizi.size() / 2 - 1)) / 2; //ortancaların ortalaması\n }else {\n medyankavsak2 = (double) kavsak2dizi.get(kavsak2dizi.size() / 2); //tek sayılı eleman sayısına sahip vektörün ortanca elemanı\n }\n if (kavsak3dizi.size()% 2 ==0) {\n medyankavsak3 = ((double) kavsak3dizi.get(kavsak3dizi.size() / 2) + (double) kavsak3dizi.get(kavsak3dizi.size() / 2 - 1)) / 2; //ortancaların ortalaması\n }else {\n medyankavsak3 = (double) kavsak3dizi.get(kavsak3dizi.size() / 2); //tek sayılı eleman sayısına sahip vektörün ortanca elemanı\n }\n System.out.println(\"Medyan Kavsak1 =\"+medyankavsak1);\n System.out.println(\"Medyan Kavsak2 =\"+medyankavsak2);\n System.out.println(\"Medyan Kavsak3 =\"+medyankavsak3);\n }", "title": "" }, { "docid": "67ab2c35877d9fc3ba5acb19db833087", "score": "0.5619535", "text": "private void generateNextWave() {\n if (!rebuilt_city)\n player_score += bonus_score;\n wave_particles_amount += 5;\n wave_particles_counter = wave_particles_amount;\n wave_counter++;\n particle_frequency = (particle_frequency > 30) ? particle_frequency - 10 : particle_frequency;\n n_missiles = new Double(wave_particles_counter * 1.5f).intValue();\n particles = new ArrayList<>();\n missiles = new ArrayList<>();\n gravity = (gravity.y < 6.5f) ? new PVector(0f, gravity.y + 0.3f) : gravity;\n playing = true;\n rebuilt_city = false;\n }", "title": "" }, { "docid": "c54d92b97c6647fd0c881c2a30583da7", "score": "0.5525333", "text": "private void setUpWave() {\n if (brojWave > 0 && brojWave % 13 == 0) {\n setUpEvery13Wave();\n every13Counter++;\n } else if (brojWave > 0 && brojWave % 10 == 0) {\n setUpTenthWaves();\n everyTenthCounterUpdater++;\n } else if (brojWave > 0 && brojWave % 5 == 0) {\n setUpFifthWaves();\n everyFifthCountUpdater++;\n } else if (brojWave > 0 && brojWave % 3 == 0) {\n setUpEveryThirdWaves();\n everyThirdCountUpdater++;\n } else if (brojWave % 2 == 0) {\n setUpEvenWaves();\n evenEnemyCountUpdater++;\n } else if (brojWave % 2 == 1) {\n setUpOddWaves();\n oddEnemyCountUpdater++;\n }\n }", "title": "" }, { "docid": "de7759ed05a0a71754bf81253800964a", "score": "0.53861177", "text": "public static void main(String[] args) {\n\n System.out.println(\"\\n\"+\"\\t\\t\"+\"PROGRAM HISAB RISALAH QOMAROINI KWAGEAN\"+\"\\n\");\n\n\n //ganti dengan tahun yang akan dicari\n int tahun_yg_dicari=1441;\n\n int bulan_yg_dicari=1;\n // Masukkan nomor urut bulan hijriyah yang dicari\n //1 =MUHARRAM| 2=SHOFAR| 3=R.AWAL| 4=R.AKHIR| 5=J.AWAL| 6=J.AKHIR\n // 7 =ROJAB| 8=SYABAN| 9=ROMADLON| 10=SYAWAL| 11=DZ.QODAH| 12=DZULHIJJAH\n System.out.println(\"Tahun hijriyah = \"+tahun_yg_dicari);\n System.out.println(\"Bulan hijriyah = \"+bulan_yg_dicari);\n\n\n //============================Sesuaikan dengan kordinat tempat anda !===========\n double derajat_burjur=112;\n double menit_bujur=13;\n double bujur=derajat_burjur+(menit_bujur/60);\n\n double derajat_lintang=-7;\n double menit_lintang=47;\n double lintang=0;\n if (derajat_lintang<0)lintang=derajat_lintang-(menit_lintang/60);\n else lintang=derajat_lintang+(menit_lintang/60);\n\n //rumus\n double bujur_kediri=112.0333333;\n\n //mencari bulan tamm dan tahun tamm\n if (bulan_yg_dicari==1) {tahun_yg_dicari=tahun_yg_dicari-2; bulan_yg_dicari=12;}\n else {tahun_yg_dicari=tahun_yg_dicari-1; bulan_yg_dicari=bulan_yg_dicari-1;}\n\n System.out.println(\"\\n\"+\"\\t\\t\\t\\t\"+\"Tahun tamm= \"+(int)tahun_yg_dicari+\"\\t\"+\"Bulan tamm= \"+(int)bulan_yg_dicari);\n\n //=======Hasil data bulan tamm + data tahun tamm===============\n double alamah=(TahunMajmuah.main(tahun_yg_dicari)[1]+ Bulan_ijtima.main(bulan_yg_dicari)[1]);\n int yaum_alamah=(int)((alamah/24)%7);\n double saah_alamah= (alamah%24);\n\n\n double hissoh= TahunMajmuah.main(tahun_yg_dicari)[2]+ Bulan_ijtima.main(bulan_yg_dicari)[2];\n int buruj_hissoh=(int)(hissoh/30)%12;\n double derajat_hissoh= (hissoh%30);\n\n double wasat=(TahunMajmuah.main(tahun_yg_dicari)[3]+ Bulan_ijtima.main(bulan_yg_dicari)[3]);\n int buruj_wasat=(int)(wasat/30)%12;\n double derajat_wasat= (wasat%30);\n\n double khossoh= TahunMajmuah.main(tahun_yg_dicari)[4]+ Bulan_ijtima.main(bulan_yg_dicari)[4];\n int buruj_khossoh=(int)(khossoh/30)%12;\n double derajat_khossoh= (khossoh%30);\n double kasar_m_khossoh=derajat_khossoh%1;\n\n double markaz= TahunMajmuah.main(tahun_yg_dicari)[5]+ Bulan_ijtima.main(bulan_yg_dicari)[5];\n int buruj_markaz=(int)(markaz/30)%12;\n double derajat_markaz= (markaz%30);\n double kasar_m_markaz=derajat_markaz%1;\n\n System.out.print(System.lineSeparator());\n System.out.println(\"\\t\\t\\t\"+\"Hasil data bulan tamm + data tahun tamm\");\n System.out.println(\" Markaz |\" + \" Khosoh |\" + \" Wasat |\" + \" Hissoh |\" + \" Alamah \" );\n String format = \"%11s%13s%13s%15s%14s%n\";\n System.out.printf(format, desimal_ke_derajat(derajat_markaz)[3] + \",\" + desimal_ke_derajat(derajat_markaz)[2] + \",\" + desimal_ke_derajat(derajat_markaz)[1] + \",\" + buruj_markaz, desimal_ke_derajat(derajat_khossoh)[3] + \",\" + desimal_ke_derajat(derajat_khossoh)[2] + \",\" + desimal_ke_derajat(derajat_khossoh)[1]+ \",\" + buruj_khossoh, desimal_ke_derajat(derajat_wasat)[3] + \",\" + desimal_ke_derajat(derajat_wasat)[2] + \",\" + desimal_ke_derajat(derajat_wasat)[1] + \",\" + buruj_wasat, desimal_ke_derajat(derajat_hissoh)[3] + \",\" + desimal_ke_derajat(derajat_hissoh)[2] + \",\" + desimal_ke_derajat(derajat_hissoh)[1] + \",\" + buruj_hissoh, desimal_ke_derajat(saah_alamah)[3] + \",\" + desimal_ke_derajat(saah_alamah)[2] + \",\" + desimal_ke_derajat(saah_alamah)[1] + \",\" + yaum_alamah);\n\n String format2 = \"%-20s%15s%n\";\n System.out.print(System.lineSeparator());\n System.out.println(\" (detik),(menit),(derajat)\");\n System.out.println(\"------------------------------------\");\n double takdilawal=Takdil_awwal.Takdilawal(buruj_khossoh,(int)derajat_khossoh,kasar_m_khossoh);\n System.out.printf(format2,\"takdilawal =\",desimal_ke_derajat(takdilawal)[3]+\",\"+desimal_ke_derajat(takdilawal)[2]+\",\"+desimal_ke_derajat(takdilawal)[1]);\n\n System.out.println(\"------------------------------------\");\n double takdilsani=Takdil_sani.main(buruj_markaz,(int)derajat_markaz,kasar_m_markaz);\n System.out.printf(format2,\"takdilsani =\",desimal_ke_derajat(takdilsani)[3]+\",\"+desimal_ke_derajat(takdilsani)[2]+\",\"+desimal_ke_derajat(takdilsani)[1]);\n\n System.out.println(\"------------------------------------\");\n double bukdu_niroini=takdilawal+takdilsani;\n System.out.printf(format2,\"bukdu_niroini =\",desimal_ke_derajat(bukdu_niroini)[3]+\",\"+desimal_ke_derajat(bukdu_niroini)[2]+\",\"+desimal_ke_derajat(bukdu_niroini)[1]);\n\n System.out.println(\"------------------------------------\");\n double hissoh_saat=Hissoh_saat.main(buruj_khossoh,(int)derajat_khossoh,kasar_m_khossoh);\n System.out.printf(format2,\"hissoh_saat =\",desimal_ke_derajat(hissoh_saat)[3]+\",\"+desimal_ke_derajat(hissoh_saat)[2]+\",\"+desimal_ke_derajat(hissoh_saat)[1]);\n\n //qoidah 2 menit 30 detik\n double qoidah1=0.041666666;\n double hasil_dorbi_awal=hissoh_saat*qoidah1;\n double hasil_dorbi_sani=hasil_dorbi_awal*bukdu_niroini;\n System.out.println(\"------------------------------------\");\n System.out.printf(format2,\"hasil_dorbi_sani =\",desimal_ke_derajat(hasil_dorbi_sani)[3]+\",\"+desimal_ke_derajat(hasil_dorbi_sani)[2]+\",\"+desimal_ke_derajat(hasil_dorbi_sani)[1]);\n\n System.out.println(\"------------------------------------\");\n double takdilsyamsi=hasil_dorbi_sani+takdilsani;\n System.out.printf(format2,\"takdilsyamsi =\",desimal_ke_derajat(takdilsyamsi)[3]+\",\"+desimal_ke_derajat(takdilsyamsi)[2]+\",\"+desimal_ke_derajat(takdilsyamsi)[1]);\n\n System.out.println(\"------------------------------------\");\n double miqwam_syamsi=((buruj_wasat*30)+derajat_wasat)-takdilsyamsi;\n System.out.printf(format2,\"miqwam_syamsi =\",pengkonversi_satuan_buruj(miqwam_syamsi)[4]+\",\"+pengkonversi_satuan_buruj(miqwam_syamsi)[3]+\",\"+pengkonversi_satuan_buruj(miqwam_syamsi)[2]+\",\"+pengkonversi_satuan_buruj(miqwam_syamsi)[1]);\n\n System.out.println(\"------------------------------------\");\n double takdilayam= TakdilAyyam.main(pengkonversi_satuan_buruj(miqwam_syamsi)[1],pengkonversi_satuan_buruj(miqwam_syamsi)[2],miqwam_syamsi%1);\n System.out.printf(format2,\"takdilayam =\",desimal_ke_derajat(takdilayam)[3]+\",\"+desimal_ke_derajat(takdilayam)[2]+\",\"+desimal_ke_derajat(takdilayam)[1]);\n System.out.println(\"------------------------------------\");\n double bukduniroini_muaddal=bukdu_niroini-takdilayam;\n System.out.printf(format2,\"biroini_muaddal =\",desimal_ke_derajat(bukduniroini_muaddal)[3]+\",\"+desimal_ke_derajat(bukduniroini_muaddal)[2]+\",\"+desimal_ke_derajat(bukduniroini_muaddal)[1]);\n\n System.out.println(\"------------------------------------\");\n double takdil_alamah=bukduniroini_muaddal*hissoh_saat;\n System.out.printf(format2,\"takdil_alamah =\",desimal_ke_derajat(takdil_alamah)[3]+\",\"+desimal_ke_derajat(takdil_alamah)[2]+\",\"+desimal_ke_derajat(takdil_alamah)[1]);\n\n System.out.println(\"------------------------------------\");\n double alamah_m_kediri=((pengkonversi_alamah(alamah)[1]*24)+alamah%24)-takdil_alamah;\n System.out.printf(format2,\"alamah_m_kediri =\",pengkonversi_alamah(alamah_m_kediri)[4]+\",\"+pengkonversi_alamah(alamah_m_kediri)[3]+\",\"+pengkonversi_alamah(alamah_m_kediri)[2]+\",\"+pengkonversi_alamah(alamah_m_kediri)[1]);\n\n System.out.println(\"------------------------------------\");\n double fadlu_tulaini=Math.abs(bujur_kediri-bujur)/15;\n System.out.printf(format2,\"fadlu_tulaini =\",desimal_ke_derajat(fadlu_tulaini)[3]+\",\"+desimal_ke_derajat(fadlu_tulaini)[2]+\",\"+desimal_ke_derajat(fadlu_tulaini)[1]);\n\n System.out.println(\"------------------------------------\");\n double alamah_muadalah=0;\n if (bujur>bujur_kediri)alamah_muadalah=(alamah_m_kediri)+fadlu_tulaini;\n else alamah_muadalah=(alamah_m_kediri) -fadlu_tulaini;\n System.out.printf(format2,\"alamah_muadalah =\",pengkonversi_alamah(alamah_muadalah)[4]+\",\"+pengkonversi_alamah(alamah_muadalah)[3]+\",\"+pengkonversi_alamah(alamah_muadalah)[2]+\",\"+pengkonversi_alamah(alamah_muadalah)[1]);\n\n System.out.println(\"------------------------------------\");\n double min_ijtima_ilaghurub=24-(alamah_muadalah%24);\n System.out.printf(format2,\"ijtima_ilaghurub =\",desimal_ke_derajat(min_ijtima_ilaghurub)[3]+\",\"+desimal_ke_derajat(min_ijtima_ilaghurub)[2]+\",\"+desimal_ke_derajat(min_ijtima_ilaghurub)[1]);\n\n System.out.println(\"------------------------------------\");\n double irtifak=min_ijtima_ilaghurub*0.5;\n System.out.printf(format2,\"irtifak hilal=\",desimal_ke_derajat(irtifak)[3]+\",\"+desimal_ke_derajat(irtifak)[2]+\",\"+desimal_ke_derajat(irtifak)[1]);\n\n\n System.out.println(\"------------------------------------\");\n double muksu_hilal=irtifak/15;\n System.out.printf(format2,\"muksu hilal=\",desimal_ke_derajat(muksu_hilal)[3]+\",\"+desimal_ke_derajat(muksu_hilal)[2]+\",\"+desimal_ke_derajat(muksu_hilal)[1]);\n\n System.out.println(\"------------------------------------\");\n double ardul_qomar= ArdulQomar.main(pengkonversi_satuan_buruj(hissoh)[1],pengkonversi_satuan_buruj(hissoh)[2],hissoh%1);\n System.out.printf(format2,\"ardul_qomar=\",desimal_ke_derajat(ardul_qomar)[3]+\",\"+desimal_ke_derajat(ardul_qomar)[2]+\",\"+desimal_ke_derajat(ardul_qomar)[1]);\n\n System.out.println(\"------------------------------------\");\n double daqoiq_arqom=ardul_qomar/15;\n System.out.printf(format2,\"daqoiq_arqom=\",desimal_ke_derajat(daqoiq_arqom)[3]+\",\"+desimal_ke_derajat(daqoiq_arqom)[2]+\",\"+desimal_ke_derajat(daqoiq_arqom)[1]);\n\n System.out.println(\"------------------------------------\");\n double qous_nurhilal=daqoiq_arqom+muksu_hilal;\n System.out.printf(format2,\"qous_nurhilal=\",desimal_ke_derajat(qous_nurhilal)[3]+\",\"+desimal_ke_derajat(qous_nurhilal)[2]+\",\"+desimal_ke_derajat(qous_nurhilal)[1]);\n\n System.out.println(\"------------------------------------\");\n double azimuth_m=HitungAzimuth.main(miqwam_syamsi,(buruj_hissoh*30)+derajat_hissoh,irtifak,lintang)[1];\n double azimuth_b=HitungAzimuth.main(miqwam_syamsi,(buruj_hissoh*30)+derajat_hissoh,irtifak,lintang)[2];\n System.out.printf(format2,\"azimuth_matahari=\",desimal_ke_derajat(azimuth_m)[3]+\",\"+desimal_ke_derajat(azimuth_m)[2]+\",\"+desimal_ke_derajat(azimuth_m)[1]);\n System.out.println(\"------------------------------------\");\n System.out.printf(format2,\"azimuth_bulan=\",desimal_ke_derajat(azimuth_b)[3]+\",\"+desimal_ke_derajat(azimuth_b)[2]+\",\"+desimal_ke_derajat(azimuth_b)[1]);\n\n\n }", "title": "" }, { "docid": "005640d42842bbe722def2017e11ff80", "score": "0.5374099", "text": "private MedidasAntropometricas getMedidasTela(int idade) {\n\t\tdouble pesoAtual = 0;\r\n\t\tdouble pesoDesejado = 0;\r\n\t\tdouble pesoUsual = 0;\r\n\t\tString tempoPp = null;\r\n\t\tdouble altura = 0;\r\n\t\tdouble alturaJoelho = 0;\r\n\t\tdouble triceps = 0;\r\n\t\tdouble biceps = 0;\r\n\t\tdouble subescapular = 0;\r\n\t\tdouble axilarMedial = 0;\r\n\t\tdouble toracica = 0;\r\n\t\tdouble supraEspinal = 0;\r\n\t\tdouble supraIliaca = 0;\r\n\t\tdouble abdome = 0;\r\n\t\tdouble coxa = 0;\r\n\t\tdouble panturrilha = 0;\r\n\r\n\t\t// PERIMETROS\r\n\t\tdouble braco = 0;\r\n\t\tdouble antebraco = 0;\r\n\t\tdouble punho = 0;\r\n\t\tdouble torax = 0;\r\n\t\tdouble cintura = 0;\r\n\t\tdouble tornozelo = 0;\r\n\t\tdouble abdominal = 0;\r\n\t\tdouble quadril = 0;\r\n\t\tdouble glutMax = 0;\r\n\t\tdouble coxaMax = 0;\r\n\t\tdouble panturrilha2 = 0;\r\n\t\tdouble cefalico = 0;\r\n\r\n\t\t// Diametros\r\n\t\tdouble biestiloide = 0;\r\n\t\tdouble bUmeral = 0;\r\n\t\tdouble bFemural = 0;\r\n\r\n\t\tif (txPesoAtual.getText() != null && txPesoAtual.getText().length() > 0) {\r\n\t\t\tpesoAtual = Double.parseDouble(txPesoAtual.getText().replace(\",\", \"\"));\r\n\t\t}\r\n\t\tif (txPesoDesejado.getText() != null && txPesoDesejado.getText().length() > 0) {\r\n\t\t\tpesoDesejado = Double.parseDouble(txPesoDesejado.getText().replace(\",\", \"\"));\r\n\t\t}\r\n\t\tif (txPesoUsual.getText() != null && txPesoUsual.getText().length() > 0) {\r\n\t\t\tpesoUsual = Double.parseDouble(txPesoUsual.getText().replace(\",\", \"\"));\r\n\t\t}\r\n\t\tif (cbTempoPR.getSelectionModel().getSelectedIndex() > 0) {\r\n\t\t\ttempoPp = cbTempoPR.getSelectionModel().getSelectedItem();\r\n\t\t}\r\n\t\tif (txAltura2.getText() != null && txAltura2.getText().length() > 0) {\r\n\t\t\taltura = Double.parseDouble(txAltura2.getText().replace(\".\", \"\"));\r\n\t\t}\r\n\t\tif (txAltJoelho.getText() != null && txAltJoelho.getText().length() > 0) {\r\n\t\t\talturaJoelho = Double.parseDouble(txAltJoelho.getText().replace(\",\", \"\"));\r\n\t\t}\r\n\t\tif (txTriceps.getText() != null && txTriceps.getText().length() > 0) {\r\n\t\t\ttriceps = Double.parseDouble(txTriceps.getText().replace(\",\", \"\"));\r\n\t\t}\r\n\t\tif (txBiceps.getText() != null && txBiceps.getText().length() > 0) {\r\n\t\t\tbiceps = Double.parseDouble(txBiceps.getText().replace(\",\", \"\"));\r\n\t\t}\r\n\t\tif (txSubescapular.getText() != null && txSubescapular.getText().length() > 0) {\r\n\t\t\tsubescapular = Double.parseDouble(txSubescapular.getText().replace(\",\", \"\"));\r\n\t\t}\r\n\t\tif (txAxilarMedial.getText() != null && txAxilarMedial.getText().length() > 0) {\r\n\t\t\taxilarMedial = Double.parseDouble(txAxilarMedial.getText().replace(\",\", \"\"));\r\n\t\t}\r\n\t\tif (txToracica.getText() != null && txToracica.getText().length() > 0) {\r\n\t\t\ttoracica = Double.parseDouble(txToracica.getText().replace(\",\", \"\"));\r\n\t\t}\r\n\t\tif (txSupraEspinal.getText() != null && txSupraEspinal.getText().length() > 0) {\r\n\t\t\tsupraEspinal = Double.parseDouble(txSupraEspinal.getText().replace(\",\", \"\"));\r\n\t\t}\r\n\t\tif (txSuprailiaca.getText() != null && txSuprailiaca.getText().length() > 0) {\r\n\t\t\tsupraIliaca = Double.parseDouble(txSuprailiaca.getText().replace(\",\", \"\"));\r\n\t\t}\r\n\t\tif (txAbdome.getText() != null && txAbdome.getText().length() > 0) {\r\n\t\t\tabdome = Double.parseDouble(txAbdome.getText().replace(\",\", \"\"));\r\n\t\t}\r\n\t\tif (txCoxa.getText() != null && txCoxa.getText().length() > 0) {\r\n\t\t\tcoxa = Double.parseDouble(txCoxa.getText().replace(\",\", \"\"));\r\n\t\t}\r\n\t\tif (txPanturrilha.getText() != null && txPanturrilha.getText().length() > 0) {\r\n\t\t\tpanturrilha = Double.parseDouble(txPanturrilha.getText().replace(\",\", \"\"));\r\n\t\t}\r\n\t\tif (txBraco.getText() != null && txBraco.getText().length() > 0) {\r\n\t\t\tbraco = Double.parseDouble(txBraco.getText().replace(\",\", \"\"));\r\n\t\t}\r\n\t\tif (txAntebraco.getText() != null && txAntebraco.getText().length() > 0) {\r\n\t\t\tantebraco = Double.parseDouble(txAntebraco.getText().replace(\",\", \"\"));\r\n\t\t}\r\n\t\tif (txPunho.getText() != null && txPunho.getText().length() > 0) {\r\n\t\t\tpunho = Double.parseDouble(txPunho.getText().replace(\",\", \"\"));\r\n\t\t}\r\n\t\tif (txTorax.getText() != null && txTorax.getText().length() > 0) {\r\n\t\t\ttorax = Double.parseDouble(txTorax.getText().replace(\",\", \"\"));\r\n\t\t}\r\n\t\tif (txCintura.getText() != null && txCintura.getText().length() > 0) {\r\n\t\t\tcintura = Double.parseDouble(txCintura.getText().replace(\",\", \"\"));\r\n\t\t}\r\n\t\tif (txTornozelo.getText() != null && txTornozelo.getText().length() > 0) {\r\n\t\t\ttornozelo = Double.parseDouble(txTornozelo.getText().replace(\",\", \"\"));\r\n\t\t}\r\n\t\tif (txAbdominal.getText() != null && txAbdominal.getText().length() > 0) {\r\n\t\t\tabdominal = Double.parseDouble(txAbdominal.getText().replace(\",\", \"\"));\r\n\t\t}\r\n\t\tif (txQuadril.getText() != null && txQuadril.getText().length() > 0) {\r\n\t\t\tquadril = Double.parseDouble(txQuadril.getText().replace(\",\", \"\"));\r\n\t\t}\r\n\t\tif (txGlutMax.getText() != null && txGlutMax.getText().length() > 0) {\r\n\t\t\tglutMax = Double.parseDouble(txGlutMax.getText().replace(\",\", \"\"));\r\n\t\t}\r\n\t\tif (txCoxaMax.getText() != null && txCoxaMax.getText().length() > 0) {\r\n\t\t\tcoxaMax = Double.parseDouble(txCoxaMax.getText().replace(\",\", \"\"));\r\n\t\t}\r\n\t\tif (txPanturrilha2.getText() != null && txPanturrilha2.getText().length() > 0) {\r\n\t\t\tpanturrilha2 = Double.parseDouble(txPanturrilha2.getText().replace(\",\", \"\"));\r\n\t\t}\r\n\t\tif (txCefalico.getText() != null && txCefalico.getText().length() > 0) {\r\n\t\t\tcefalico = Double.parseDouble(txCefalico.getText().replace(\",\", \"\"));\r\n\t\t}\r\n\r\n\t\tif (txBiestiloide.getText() != null && txBiestiloide.getText().length() > 0) {\r\n\t\t\tbiestiloide = Double.parseDouble(txBiestiloide.getText().replace(\",\", \"\"));\r\n\t\t}\r\n\t\tif (txBumeral.getText() != null && txBumeral.getText().length() > 0) {\r\n\t\t\tbUmeral = Double.parseDouble(txBumeral.getText().replace(\",\", \"\"));\r\n\t\t}\r\n\t\tif (txBfemural.getText() != null && txBfemural.getText().length() > 0) {\r\n\t\t\tbFemural = Double.parseDouble(txBfemural.getText().replace(\",\", \"\"));\r\n\t\t}\r\n\t\t// Metodo para inserir idade do dia da avaliação fisica realizada.\r\n\t\tMedidasAntropometricas medidasTemp = new MedidasAntropometricas(0, 0, pesoAtual, pesoDesejado, pesoUsual,\r\n\t\t\t\ttempoPp, altura, alturaJoelho, triceps, biceps, subescapular, axilarMedial, toracica, supraEspinal,\r\n\t\t\t\tsupraIliaca, abdome, coxa, panturrilha, braco, antebraco, punho, torax, cintura, tornozelo, abdominal,\r\n\t\t\t\tquadril, glutMax, coxaMax, panturrilha2, cefalico, biestiloide, bUmeral, bFemural, idade);\r\n\t\treturn medidasTemp;\r\n\t}", "title": "" }, { "docid": "8f444cc02b3601e563c002c8bc27f966", "score": "0.5373909", "text": "private double metodas3(int i) throws Exception {\n\n\t\tif (i == 0) {\n\t\t\tthrow new Exception(\"Bus dalyba is nulio, todel nedalinsiu :)\");\n\t\t}\n\n\t\treturn 45 / i;\n\t}", "title": "" }, { "docid": "3fc20ea6dffe94eb407f0d1d5d6c5135", "score": "0.53639543", "text": "public static void main(String[] args)\r\n {\r\n // test, everything seems to be working\r\n File fichier_son = new File(\"C:\\\\Users\\\\sangsu\\\\Desktop\\\\piano_DATA\\\\pianoSample_C6.wav\");\r\n double[] test = getWavData(fichier_son);\r\n for(int i = 0; i<test.length; i++){\r\n System.out.println(test[i]);\r\n }\r\n }", "title": "" }, { "docid": "d4ab54a339b90facdda17619bb819414", "score": "0.53480196", "text": "@Override\n\tpublic void Segitiga() {\n\t\tsuper.Segitiga();\n\t\tSystem.out.println(\"Masukkan tinggi trisma\t : \");\n\t\tScanner inp = new Scanner(System.in);\n\t\tdouble tinggi = inp.nextDouble();\n\t\tdouble volume = luas * tinggi;\n\t\t\n\t\tSystem.out.println(\"Volume PrismaSegitiga : \"+volume);\n\t}", "title": "" }, { "docid": "13d3bd0e96233f614fc17fe10f03a69c", "score": "0.5336743", "text": "static void kolo() {\n\r\n pole = Math.PI * r * r;\r\n\r\n przekatna = 2 * r;\r\n\r\n obwod = 2 * Math.PI * r;\r\n\r\n pole = Math.round(pole);\r\n obwod = Math.round(obwod);\r\n przekatna = Math.round(przekatna);\r\n\r\n // System.out.println(\"Pole = \" + pole);\r\n // System.out.println(\"Przekatna = \" + przekatna);\r\n // System.out.println(\"Obwod = \" + obwod);\r\n // System.out.println(\"Promien = \" + r);\r\n\r\n }", "title": "" }, { "docid": "3c2e0b1fc5b81dc9ce4a8368d1d519dd", "score": "0.52973014", "text": "public void volumenEsfera (){\n\n volumen = 4/3 * Math.PI * (Math.pow(radio,3));\n }", "title": "" }, { "docid": "ae76ba7e2e88b60ff47d2d183ea6a163", "score": "0.5285662", "text": "private static void calcular() {\n\t\tint serie=0;\r\n\t\tfor(serie=0;serie<5;serie++) {\r\n\t\t\tsuma+=numeros[serie];\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "99610093236b3672de0f8a6176ee2cd8", "score": "0.52837795", "text": "public void addKMs(int x){\n\n }", "title": "" }, { "docid": "bdb7253baad4a150f6d47d55b4319d05", "score": "0.52734923", "text": "public void sisestamine(int sisestaPohitoon){\r\n this.pohitoon = sisestaPohitoon;\r\n this.kvint = sisestaPohitoon+4;\r\n this.terts = sisestaPohitoon+7;\r\n }", "title": "" }, { "docid": "88d4e1bbcd75a1bb40420d4302e11b52", "score": "0.5270155", "text": "public void addPulsar() { //Creates a Pulsar, a period 3 oscillator, in the NW corner of the game field\n\t\tcurrentGen[1][3] = true;\n\t\tcurrentGen[1][4] = true;\n\t\tcurrentGen[1][5] = true;\n\t\t\n\t\tcurrentGen[1][9] = true;\n\t\tcurrentGen[1][10] = true;\n\t\tcurrentGen[1][11] = true;\n\t\t\n\t\tcurrentGen[3][1] = true;\n\t\tcurrentGen[4][1] = true;\n\t\tcurrentGen[5][1] = true;\n\t\t\n\t\tcurrentGen[3][6] = true;\n\t\tcurrentGen[4][6] = true;\n\t\tcurrentGen[5][6] = true;\n\t\t\n\t\tcurrentGen[3][8] = true;\n\t\tcurrentGen[4][8] = true;\n\t\tcurrentGen[5][8] = true;\n\t\t\n\t\tcurrentGen[3][13] = true;\n\t\tcurrentGen[4][13] = true;\n\t\tcurrentGen[5][13] = true;\n\t\t\n\t\tcurrentGen[6][3] = true;\n\t\tcurrentGen[6][4] = true;\n\t\tcurrentGen[6][5] = true;\n\t\t\n\t\tcurrentGen[6][9] = true;\n\t\tcurrentGen[6][10] = true;\n\t\tcurrentGen[6][11] = true;\n\t\t\n\t\tcurrentGen[8][3] = true;\n\t\tcurrentGen[8][4] = true;\n\t\tcurrentGen[8][5] = true;\n\t\t\n\t\tcurrentGen[8][9] = true;\n\t\tcurrentGen[8][10] = true;\n\t\tcurrentGen[8][11] = true;\n\t\t\n\t\tcurrentGen[9][1] = true;\n\t\tcurrentGen[10][1] = true;\n\t\tcurrentGen[11][1] = true;\n\t\t\n\t\tcurrentGen[9][6] = true;\n\t\tcurrentGen[10][6] = true;\n\t\tcurrentGen[11][6] = true;\n\t\t\n\t\tcurrentGen[9][8] = true;\n\t\tcurrentGen[10][8] = true;\n\t\tcurrentGen[11][8] = true;\n\t\t\n\t\tcurrentGen[9][13] = true;\n\t\tcurrentGen[10][13] = true;\n\t\tcurrentGen[11][13] = true;\n\t\t\n\t\tcurrentGen[13][3] = true;\n\t\tcurrentGen[13][4] = true;\n\t\tcurrentGen[13][5] = true;\n\t\t\n\t\tcurrentGen[13][9] = true;\n\t\tcurrentGen[13][10] = true;\n\t\tcurrentGen[13][11] = true;\n\n\t}", "title": "" }, { "docid": "64eeddc18cb1c466c0c3cb2f0e020fff", "score": "0.5265014", "text": "private void generate() {\n bars = new ArrayList<>();\n double sum = 0; //sum of amplitudes\n int count = 0;\n int indexIncrement = (int) (secondsPerBar * waveFile.getSampleRate());\n\n for (int i = 0; i < waveFile.getFramesCount(); i++) {\n sum += waveFile.getSampleInt(i);\n count++;\n\n double start = i / waveFile.getSampleRate();\n if (i % indexIncrement == 0) {\n double duration = secondsPerBar;\n if (new TimeStamp(start).getTimeStampAfterOffset(duration).isAfter(getEnd())) {\n duration = waveFile.getDurationTime() - start;\n }\n bars.add(new WaveformBar(sum / count,new TimeStamp(start), duration));\n sum = 0;\n count = 0;\n }\n }\n }", "title": "" }, { "docid": "d1fa7221687afbe4159f98e9e0cdd629", "score": "0.5244554", "text": "public void setPromedio(){\n double promedio=0;\n int cantidad=0;\n double suma=0;\n for (int i=0;i<notas.length;i++){\n suma=suma+notas[i];\n cantidad++;\n }\n promedio=suma/cantidad;\n this.promedio=promedio;\n}", "title": "" }, { "docid": "ba3bf0b16113c075e17ba7d50ee59a1a", "score": "0.5225853", "text": "public Wand(String Egal, float x, float y, float z, float alpha, float beta, float gamma, float biege)\t//Der einzige Sinn des Strings besteht darin\r\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 //dass es dem Programmierer schwerer faellt, die\r\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//Konstruktoren fuer die gebogene Wand und fuer die \r\n\tsuper(x, y, z, alpha, beta, gamma, biege);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \t //gerade Wand zu verwechseln, da diese aehnliche Eintraege\r\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//verlangen.\r\n \r\n float abstand = 1.7f; // ursp. 1.7f\r\n \r\n \r\n for (int hoch = 0; hoch < wdhoehe; hoch++) //Die Schlaufe erschafft mit jeder Iteration eine Reihe der Wand, dabei gibt es\r\n { //eine Fallunterscheidung, die dafuer sorgt, dass jede zweite Reihe um eine halbe \r\n //Backsteinlaenge versetzt ist.\r\n if (hoch % 2 == 0)\r\n {\r\n \r\n for (int rechts = 0; rechts < wdlaenge; rechts++) //Jede Iteration erschafft einen langen Stein.\r\n {\r\n double biegend1 = (rechts * biege * Math.PI) / 1800;\r\n double biegend11 = (rechts * biege) / 10;\r\n \r\n if(biege != 45 || rechts %2 != 1) //Einfache Fallunterscheidung, da nur zwischen 45 und 90 unterschieden werden muss.\r\n //Tatsaechlich braucht die 45grad Wand nur halb so viele Steine wie die 90grad Wand\r\n myShape.addParam(new Quader(\"Mitte\", 0.25f, wdbreite, 0.05f),\r\n new Point((float) Math.cos(biegend1) * abstand, (float) Math.sin(biegend1) *abstand, hoch * 0.06f+boden),\r\n new float[] { (float) biegend11+90, 0, 0 }); //Unterste Steinreihe und jede zweite darueber \r\n }\r\n }\r\n else\r\n {\r\n myShape.addParam(new Quader(\"Mitte\", 0.125f, wdbreite, 0.05f), new Point(1.7f, -0.06f, hoch * 0.06f), new float []{90,0,0});\r\n double schieb = biege*Math.PI/180; //Kurze Randsteine fuer jede zweite Reihe\r\n if (biege == 45)\r\n {\r\n schieb = (biege-1.5)*Math.PI/180; //Kleine Korrektur, damit alle Randsteine fuer 45 Grad auch stimmen.\r\n }\r\n myShape.addParam(new Quader(\"Mitte\", 0.125f*(1+2*(float)Math.cos(schieb)/3), wdbreite, 0.05f),\r\n new Point( -0.06f+1.70f*(float)Math.cos(schieb),0.08f*(float)Math.cos(biege*Math.PI/180)+1.7f*(float)Math.sin(schieb), hoch * 0.06f+boden),\r\n new float[] { biege+90, 0, 0 }); //Kurze Randsteine fuer jede zweite Reihe fuer die andere Seite\r\n \r\n for (int rechts = 0; rechts < wdlaenge - 1; rechts++) //Jede Iteration erschafft einen langen Stein.\r\n {\r\n double biegend2 = ((rechts+0.5f) * biege * Math.PI) / 1800;\r\n double biegend22 = ((rechts+0.5f) * biege) / 10;\r\n if(biege != 45 || rechts %2 != 1) //Einfache Fallunterscheidung, da nur zwischen 45 und 90 unterschieden werden muss. \r\n //Tatsaechlich braucht die 45grad Wand nur halb so viele Steine wie die 90grad Wand\r\n \r\n myShape.addParam(new Quader(\"Mitte\", 0.25f, wdbreite, 0.05f), //Die zweite Steinreihe von unten und jede zweite.\r\n new Point((float) Math.cos(biegend2) * abstand , (float) Math.sin(biegend2) * abstand ,\r\n hoch * 0.06f+boden),\r\n new float[] { (float) biegend22+90, 0, 0 });\r\n }\r\n }\r\n } \r\n }", "title": "" }, { "docid": "43baf3728425495e44b45115844d39fb", "score": "0.5223104", "text": "public static void main(String[] args) {\n Wave_Audio_Signal[] signals; //reading all signals\n signals= readSignals(\"D:\\\\Hiago\\\\Acadêmico\\\\PÓS GRADUAÇÃO\\\\Disciplinas\\\\Estudo - PDS\\\\\"\n + \"Pesquisa - A partir de 09.08.2019 (De Fato)\\\\Bancos de Dados\\\\EMO-DB\\\\wav\\\\Full DB\");\n //********************************************************************************************************\n //////\n //******************************EXTRACTING FEATURES*******************************************************\n Feature_Extractor f= new Feature_Extractor();\n double[][] feature_matrix= f.extract_features(signals); \n //******************************************************************************************************** \n //////\n //******************************SELECTING BEST SUBGROUP OF FEATURES*************************************** \n Paraconsistent_Plane pp= new Paraconsistent_Plane();\n pp.paraconsistent_analyser(feature_matrix, 4, pp); \n System.out.print(\"Todas características: \"+(feature_matrix[0].length-1)+\"|| \"); \n System.out.println(\"distancia para o ponto (1, 0) = \"+pp.getDistance_from_right()+\" || G1: \"+pp.getG1()+\" || G2: \"+pp.getG2());\n ArrayList<Double> points_p= new ArrayList<>(); points_p.add(pp.getG1()); points_p.add(pp.getG2());\n \n Genetic_Algorithm ga= new Genetic_Algorithm();\n double[][] selected_matrix= ga.ga_featureSelection(45, feature_matrix, 4);\n pp.paraconsistent_analyser(selected_matrix, 4, pp);\n System.out.print(\"Características selecionadas: \"+(selected_matrix[0].length-1)+\"|| \"); \n System.out.println(\"distancia para o ponto (1, 0) = \"+pp.getDistance_from_right()+\" || G1: \"+pp.getG1()+\" || G2: \"+pp.getG2());\n points_p.add(pp.getG1()); points_p.add(pp.getG2());\n\n Chart_Generator cg= new Chart_Generator();\n cg.plotChart(cg.createParaconsistentChart(points_p), \"src\\\\charts\\\\plano_paraconsistente.png\");\n //******************************************************************************************************** \n ////// \n //******************************CLASSIFICATION - HOLDOUT************************************************** \n Holdout obj= new Holdout();\n //System.out.println(\"CLASSIFICAÇÃO COM TODAS CARACTERÍSTICAS\");\n //obj.holdout(feature_matrix, obj, 0.30, 4);\n //new MLP().multi_layer_perceptron(0.1, obj.getTrain(), obj.getTrain_target(), obj.getTest(), obj.getTest_target(), 2000);\n \n System.out.println(\"CLASSIFICAÇÃO COM CARACTERÍSTICAS SELECIONADAS\");\n obj.holdout(selected_matrix, obj, 0.40, 4); \n new MLP().multi_layer_perceptron(0.1, obj.getTrain(), obj.getTrain_target(), obj.getTest(), obj.getTest_target(), 100000);\n }", "title": "" }, { "docid": "e7dff4d0a098bae6ccf4382e02a62a1d", "score": "0.5215478", "text": "public int pilih(int kondisi) {\n int t = 0;\n if (kondisi == 0) {//fitness terbaik\n double besar = fitness_chromosom[0][fitness_chromosom[0].length - 1];\n for (int i = 1; i < fitness_chromosom.length; i++) {\n if (fitness_chromosom[i][fitness_chromosom[0].length - 1] > besar) {\n besar = fitness_chromosom[i][fitness_chromosom[0].length - 1];\n t = i;\n }\n }\n } else if (kondisi == 1) {//fitness terburuk\n double kecil = fitness_chromosom[0][fitness_chromosom[0].length - 1];\n for (int i = 1; i < fitness_chromosom.length; i++) {\n if (fitness_chromosom[i][fitness_chromosom[0].length - 1] < kecil) {\n kecil = fitness_chromosom[i][fitness_chromosom[0].length - 1];\n t = i;\n }\n }\n } else if (kondisi == 2) {//random\n double random = Math.random() * (chromosom.length);\n Double tt = new Double(random);\n t = tt.intValue();\n }\n return t;\n }", "title": "" }, { "docid": "fa7877d49b025f0a76555846ecfe1c5e", "score": "0.51980567", "text": "String twonum(int numq, int censPara) {\n\n int numr, nq;\n String ltr = \"\";\n this.censPara = censPara;\n\n if (censPara == 1) {\n\n nq = numq / 10;\n numr = numq % 10;\n\n if (numq > 19) {\n if (numr == 0) {\n ltr = ltr + tens[nq] + unitdo2[numr];\n //System.out.println(\"A.1.\" + tens[nq]);\n //System.out.println(\"B..\" + unitdo2[numr]);\n } else if (numr != 0) {\n ltr = ltr + tens2[nq] + unitdo2[numr];\n //System.out.println(\"A.2.\" + tens2[nq]);\n //System.out.println(\"B.3.\" + unitdo2[numr]);\n }\n\n } else if (numq <= 19) {\n ltr = ltr + unitdo2[numq];\n //System.out.println(\"C.11.\" + unitdo2[numq]);\n } else {\n ltr = ltr + unitdo[numq];\n //System.out.println(\"C.22.\" + unitdo[numq]);\n }\n\n } else if (censPara == 2) {\n\n nq = numq / 10;\n numr = numq % 10;\n\n if (numq > 19) {\n if (numr == 0) {\n ltr = ltr + tens3[nq] + unitdo3[numr];\n //System.out.println(\"A.4.\" + tens3[nq]);\n //System.out.println(\"B.5.\" + unitdo3[numr]);\n } else if (numr != 0) {\n ltr = ltr + tens2[nq] + unitdo3[numr];\n //System.out.println(\"A.6.\" + tens2[nq]);\n //System.out.println(\"B.7.\" + unitdo3[numr]);\n }\n\n } else if (numq <= 19) {\n ltr = ltr + unitdo3[numq];\n //System.out.println(\"C.8.\" + unitdo3[numq]);\n } else {\n ltr = ltr + unitdo[numq];\n //System.out.println(\"C.9.\" + unitdo[numq]);\n }\n\n }\n\n return ltr;\n }", "title": "" }, { "docid": "fdc5566b2ba54a00dec13af3a3358cf0", "score": "0.51812375", "text": "public static void main(String[] args) {\n\n\n String[] imiona = new String[]{\"Piotr\", \"Jerzy\", \"Jan\", \"Zygmunt\", \"Bogdan\", \"Józef\", \"Ryszard\", \"Henryk\", \"Andrzej\", \"Zenon\"};\n String[] kolorWlosow = new String[]{\"blond\",\"brazowe\",\"czarne\",\"kasztanowe\",\"rude\"};\n\n Random rand = new Random();\n\n\n TworzenieObiektow[] ludzieZkonstruktora = new TworzenieObiektow[3];\n\n\n\n TworzenieObiektow p1 = new TworzenieObiektow(\"Marlena\", 1999, \"musztardowy\",'k');\n TworzenieObiektow p2 = new TworzenieObiektow(\"Grażyna\", 1809, \"grzybowy\",'k');\n TworzenieObiektow p3 = new TworzenieObiektow(\"Zenon\", 1000, \"rudy\",'m');\n\n\n\n ludzieZkonstruktora[0] = p1;\n ludzieZkonstruktora[1] = p2;\n ludzieZkonstruktora[2] = p3;\n\n\n for (int i = 0; i < 3; i++) { // ALE SZTOS !!!!\n\n if(ludzieZkonstruktora[i].plec == 'k') {\n ludzieZkonstruktora[i].przedstawSie();\n }\n }\n\n\n\n\n\n\n // TworzenieObiektow[] czlowiek = new TworzenieObiektow[10];\n// for (int i = 0; i < czlowiek.length; i++) { // Tworzenie obiektów typu człowiek\n// czlowiek[i] = new TworzenieObiektow();\n// }\n\n// for (int i = 0; i < czlowiek.length; i++) {\n// int n = rand.nextInt(60) + 10;\n// int m = rand.nextInt(9);\n// int o = rand.nextInt(5);\n// //System.out.println(m);\n// czlowiek[i].setRokUrodzenia(n);\n// czlowiek[i].setImie(imiona[m]);\n// czlowiek[i].setKolorWlosow(kolorWlosow[o]);\n// }\n//\n//\n// for (int i = 0; i < czlowiek.length; i++) {\n// czlowiek[i].przedstawSie();\n//\n// }\n\n\n }", "title": "" }, { "docid": "7797419b2183ed3c91366d3e9048d03a", "score": "0.51687", "text": "@Override\r\n /**\r\n * Calculamos lo que cuesta alquilar el bus\r\n */\r\n public double alquiler ()\r\n {\r\n double importe_alquiler;\r\n importe_alquiler = this.getAlquiler_dias()*50+this.getNumero_plazas()*3.5;\r\n \r\n return importe_alquiler;\r\n }", "title": "" }, { "docid": "8dd2f5315c8007ed80f95c2fd7c99a01", "score": "0.51625955", "text": "public int getKm(){\n return this.kilometros;\n }", "title": "" }, { "docid": "515397c9b0fbfd46242a0a381e11425c", "score": "0.51605666", "text": "public void musicPlay(){\nfloat amp = map(abs(mainPC.location.y-y), -300, 150, .4f, 0.8f); \n wave.setAmplitude( amp );\n \n float freq = map((abs(mainPC.location.x-x)*.5f+abs(mainPC.location.y-y)*0.5f), 0, 100, 50.0f, 300.0f );\n wave.setFrequency( freq );\n\nprintln(abs(mainPC.location.x-x));\n\n\n}", "title": "" }, { "docid": "cb97792120b566a001489b4058b3decb", "score": "0.51585907", "text": "static public function parseWAV(tableNumbers:String, postfix:String) : Vector.<Number>\r\n {\r\n var i:int, imax:int, v:Number, wav:Vector.<Number>;\r\n \r\n var res:* = Translator.parseTableNumbers(tableNumbers, postfix, 1024),\r\n num:SLLint = res.head;\r\n for (imax=2; imax<1024; imax<<=1) {\r\n if (imax >= res.length) break;\r\n }\r\n\r\n wav = new Vector.<Number>(imax);\r\n for (i=0; i<imax && num!=null; i++) {\r\n v = (num.i + 0.5) * 0.0078125;\r\n wav[i] = (v>1) ? 1 : (v<-1) ? -1 : v;\r\n num = num.next;\r\n }\r\n for (; i<imax; i++) { wav[i] = 0; }\r\n \r\n return wav;\r\n }", "title": "" }, { "docid": "c59f2e8c347a19e548b81002e2f326fd", "score": "0.5156803", "text": "public String BasariDurumu(int Cagri, int CozulenHucreSayisi, int GecenSure) {\r\n if (Cagri == 2) { //bunu ancak oyun bitirme butonu cagirir.\r\n int oran = GecenSure / CozulenHucreSayisi;\r\n if (oran <= 8) {\r\n return \" Super \" + GecenSure + \" Saniyede Tamamladiniz.\";\r\n } else if (8.5 < oran && oran <= 11.5) {\r\n return \" Normal \" + GecenSure + \" Saniyede Tamamladiniz.\";\r\n } else {\r\n return \" Kotu\" + GecenSure + \" Saniyede Tamamladiniz.\";\r\n }\r\n } else if (Cagri == 1) { //devam eden sure icerisinde bilgi alinmak istenilirse cagiriliyor.\r\n if (!(CozulenHucreSayisi == 0)) { //ama cozulen hucre varsa olsum yapilir.\r\n double oran = GecenSure / CozulenHucreSayisi;\r\n if (oran <= 8.5) {\r\n return \" Super \" + GecenSure + \" Saniyede \" + 2 * CozulenHucreSayisi + \" Resim Eslestirdiniz\";\r\n } else if (8.5 < oran && oran <= 11.5) {\r\n return \" Normal \" + GecenSure + \" Saniyede \" + 2 * CozulenHucreSayisi + \" Resim Eslestirdiniz\";\r\n } else {\r\n return \" Kotu \" + GecenSure + \" Saniyede \" + 2 * CozulenHucreSayisi + \" Resim Eslestirdiniz\";\r\n }\r\n } else { //yoksa uyarilir.\r\n return \"Hesaplanmadi Cunku Acilan Hucre Yok\";\r\n }\r\n } else { //cagri parametreleri 2 veya 1 degilse ki 0 dır o zamanda oyunu bilgisayarin cozdugu anlasilir.\r\n return \"Hesaplanmadi Cunku Oyunu Bilgisayar Cozdu\";\r\n }\r\n }", "title": "" }, { "docid": "dd3e93f45ac6f411df10455dd7b3d84a", "score": "0.51546913", "text": "private void setWaves( TcmWindQuarters waves ){\n\t\tne12ftField.setText( Integer.toString((int)waves.getQuarters()[0]));\n\t\tse12ftField.setText( Integer.toString((int)waves.getQuarters()[1]));\n\t\tsw12ftField.setText( Integer.toString((int)waves.getQuarters()[2]));\n\t\tnw12ftField.setText( Integer.toString((int)waves.getQuarters()[3]));\n\t}", "title": "" }, { "docid": "f40218ccc9cd94ea38aafa42e6c9b6d9", "score": "0.5125953", "text": "private double promedio(double[] info) {\t\n\t\treturn (info[0] + info[1] + info[2] + info[3] + info[4] + info[5]) / 6;\n\t}", "title": "" }, { "docid": "c9e65e28b06b2577dc852ac2944942e4", "score": "0.51093954", "text": "public static void main(String[] args) throws IOException {\n\t\tfinal Method method = new Method();\r\n\t\tSensor scup = new Sensor(\"scup\", 0.05);\r\n\t\tSensor sfri = new Sensor(\"sfri\", 0.05);\r\n\t\tSensor swat = new Sensor(\"swat\", 0.15);\r\n\t\tSensor sket = new Sensor(\"sket\", 0.30);\r\n\t\tSensor stea = new Sensor(\"stea\", 0.05);\r\n\t\tSensor scof = new Sensor(\"scof\", 0.05);\r\n\t\tSensor ssug = new Sensor(\"ssug\", 0.05);\r\n\r\n\t\tscup.set.put(\"on\", 1.0);\r\n\t\tsfri.set.put(\"on\", 1.0);\r\n\t\tswat.set.put(\"off\", 1.0);\r\n\t\tsket.set.put(\"off\", 1.0);\r\n\t\tstea.set.put(\"off\", 1.0); \r\n\t\tscof.set.put(\"off\", 1.0);\t\r\n\t\tssug.set.put(\"off\", 1.0);\r\n\r\n\t\t// count discount rate//\r\n\t\tscup = method.countRate(scup);\r\n\t\tsfri = method.countRate(sfri);\r\n\t\tswat = method.countRate(swat);\r\n\t\tsket = method.countRate(sket);\r\n\t\tstea = method.countRate(stea);\r\n\t\tscof = method.countRate(scof);\r\n\t\tssug = method.countRate(ssug);\r\n\t\t\r\n\t\tSystem.out.print(\"scup.set.get(\\\"on\\\"):\");\r\n\t\tSystem.out.println(scup.set.get(\"on\"));\r\n\t\tSystem.out.print(\"scup.set.get(\\\"off\\\"):\");\r\n\t\tSystem.out.println(scup.set.get(\"off\"));\r\n\t\tSystem.out.print(\"scup.set.get(\\\"nor\\\"):\");\r\n\t\tSystem.out.println(scup.set.get(\"nor\"));\r\n\t\t\r\n\r\n/*\t\tSystem.out.println(\"sfir on:\"+sfri.set.get(\"on\"));\r\n\t\tSystem.out.println(\"sfir off:\"+sfri.set.get(\"off\"));\r\n\t\tSystem.out.println(\"sfir nor:\"+sfri.set.get(\"nor\"));*/\r\n\t\t//System.out.println(scup.set.get(\"on\"));\r\n\t\t// set context and map\r\n\t\t//System.out.println(\"******contextA****\");\r\n\t\tContext cup = new Context(\"cup\",scup);\r\n\t\tContext fri = new Context(\"fri\",sfri);\r\n\t\tContext wat = new Context(\"wat\",swat);\r\n\t\tContext ket = new Context(\"ket\",sket);\r\n\t\tContext tea = new Context(\"tea\",stea);\r\n\t\tContext cof = new Context(\"cof\",scof);\r\n\t\tContext sug = new Context(\"sug\",ssug);\r\n\t\t\r\n\t\tContext juice = new Context(\"juice\",fri,0.9);\r\n\t\tContext milk = new Context(\"milk\",fri,0.1);\r\n\t\t\r\n\t\t\r\n\t\tContext teaORcof = new Context(\"teaORcof\", tea, cof);\r\n\t\t\r\n\t\tSystem.out.println(\"juice :\"+juice.set.get(\"juice\"));\r\n\t\tSystem.out.println(\"not_juice:\"+juice.set.get(\"not_juice\"));\r\n\t\tSystem.out.println(\"nor_juice:\"+juice.set.get(\"nor_juice\"));\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n/*\t\tSystem.out.println(\"teaORcof :\"+teaORcof.set.get(\"teaORcof\"));\r\n\t\tSystem.out.println(\"not_teaORcof:\"+teaORcof.set.get(\"not_teaORcof\"));\r\n\t\tSystem.out.println(\"nor_teaORcof:\"+teaORcof.set.get(\"nor_teaORcof\"));*/\r\n\t\t\r\n\t\t\r\n//\t\tSystem.out.println(\"******composite context*****\");\r\n\t\t\r\n\t\tCompositeContext juiceAndcup = new CompositeContext(\"juiceAndcup\");\r\n\t\tjuiceAndcup.addMember(juice);\r\n\t\tjuiceAndcup.addMember(cup);\r\n\t\tmethod.composite(juiceAndcup);\r\n\t\t\r\n\t\t\r\n/*\t\t\r\n\t\tSystem.out.print(\"juiceAndcup value:\");\r\n\t\tSystem.out.println(juiceAndcup.set.get(\"juiceAndcup\"));\r\n\t\tSystem.out.print(\"not juiceAndcup value:\");\r\n\t\tSystem.out.println(juiceAndcup.set.get(\"not_juiceAndcup\"));\r\n\t\tSystem.out.print(\"nor juiceAndcup value:\");\r\n\t\tSystem.out.println(juiceAndcup.set.get(\"nor_juiceAndcup\"));*/\r\n\t\t\r\n\t\t\r\n\t\tCompositeContext cwktORc = new CompositeContext(\"cwktORc\");\r\n\t\tcwktORc.addMember(cup);\r\n\t\tcwktORc.addMember(wat);\r\n\t\tcwktORc.addMember(ket);\r\n\t\tcwktORc.addMember(teaORcof);\r\n\t\tmethod.composite(cwktORc);\r\n/*\t\tSystem.out.print(\"cwktORc value:\");\r\n\t\tSystem.out.println(cwktORc.set.get(\"cwktORc\"));\r\n\t\tSystem.out.print(\"not cwktORc value:\");\r\n\t\tSystem.out.println(cwktORc.set.get(\"not_cwktORc\"));\r\n\t\tSystem.out.print(\"nor cwktORc value:\");\r\n\t\tSystem.out.println(cwktORc.set.get(\"nor_cwktORc\"));*/\r\n\t\t\r\n\t\t\r\n\t/*\tSystem.out.println(\"Translating to activity node\");\r\n\t\tSystem.out.println(\"activity node : MakeColdDrink\");*/\r\n\t\tActivity MakeColdDrink = new Activity(\"MakeColdDrink\",juiceAndcup);\r\n\t/*\tSystem.out.println(MakeColdDrink.set.get(MakeColdDrink.activityName));\r\n\t\tSystem.out.println(MakeColdDrink.set.get(\"not_\"+MakeColdDrink.activityName));\r\n\t\tSystem.out.println(MakeColdDrink.set.get(\"nor_\"+MakeColdDrink.activityName));*/\r\n\t\t\r\n\t/*\tSystem.out.println(\"activity node : MakeHotDrink\");*/\r\n\t\tActivity MakeHotDrink = new Activity(\"MakeHotDrink\",cwktORc);\r\n\t/*\tSystem.out.println(MakeHotDrink.set.get(MakeHotDrink.activityName));\r\n\t\tSystem.out.println(MakeHotDrink.set.get(\"not_\"+MakeHotDrink.activityName));\r\n\t\tSystem.out.println(MakeHotDrink.set.get(\"nor_\"+MakeHotDrink.activityName));*/\r\n\t\t\r\n\t//\tSystem.out.println(\"activity node : MakeHotDrink2\");\r\n\t\tActivity MakeHotDrink2 = new Activity(\"MakeHotDrink2\",milk, 0.7);\r\n\t/*\tSystem.out.println(MakeHotDrink2.set.get(MakeHotDrink2.activityName));\r\n\t\tSystem.out.println(MakeHotDrink2.set.get(\"not_\"+MakeHotDrink2.activityName));\r\n\t\tSystem.out.println(MakeHotDrink2.set.get(\"nor_\"+MakeHotDrink2.activityName));*/\r\n\t\t\r\n\t//\tSystem.out.println(\"activity node : MakeHotDrink3\");\r\n\t\tActivity MakeHotDrink3 = new Activity(\"MakeHotDrink3\",sug, 0.4);\r\n\t/*\tSystem.out.println(MakeHotDrink3.set.get(MakeHotDrink3.activityName));\r\n\t\tSystem.out.println(MakeHotDrink3.set.get(\"not_\"+MakeHotDrink3.activityName));\r\n\t\tSystem.out.println(MakeHotDrink3.set.get(\"nor_\"+MakeHotDrink3.activityName));*/\r\n\t\t\r\n\t/*\tSystem.out.println(\"Demphster Combination\");\r\n\t\tSystem.out.println(\"MakeHotDrinkall value: \");*/\r\n\t\tActivity MakeHotDrinkall = new Activity();\r\n\t\tMakeHotDrinkall = method.DempsterCombination(MakeHotDrink, MakeHotDrink2);\r\n\t\tMakeHotDrinkall = method.DempsterCombination(MakeHotDrinkall, MakeHotDrink3);\r\n\t\t//MakeHotDrinkall = method.DempsterCombination(method.DempsterCombination(MakeHotDrink, MakeHotDrink2),MakeHotDrink3);\r\n\t/*\tSystem.out.println(\"MakeHotDrinkall:\"+MakeHotDrinkall.set.get(MakeHotDrinkall.activityName));\r\n\t\tSystem.out.println(\"not_MakeHotDrinkall:\"+MakeHotDrinkall.set.get(\"not_\"+MakeHotDrinkall.activityName));\r\n\t\tSystem.out.println(\"nor_MakeHotDrinkall:\"+MakeHotDrinkall.set.get(\"nor_\"+MakeHotDrinkall.activityName));\r\n\t\t*/\r\n\t/*\tSystem.out.println(\"Belief and Plausibility\");\r\n\t\tSystem.out.print(\"Bel(MakeColdDrink) :\");\r\n\t\tSystem.out.println(method.Belief(MakeColdDrink));\r\n\t\tSystem.out.print(\"Pls(MakeColdDrink) :\");\r\n\t\tSystem.out.println(method.Plausibility(MakeColdDrink));\r\n\t\tSystem.out.print(\"Bel(MakeHotDrink) :\");\r\n\t\tSystem.out.println(method.Belief(MakeHotDrinkall));\r\n\t\tSystem.out.print(\"Pls(MakeHotDrink) :\");\r\n\t\tSystem.out.println(method.Plausibility(MakeHotDrinkall));*/\r\n\t\t\r\n\r\n\r\n\t}", "title": "" }, { "docid": "86ce24e05823a5f17b4d15b28c4872f8", "score": "0.5100649", "text": "public void data3 () {\n\t\tno_kamar = \"03\";\r\n\t\tnama_mahasiswa = \"Muhammad Risal Adam\";\r\n\t\tlantai = \"Bawah\";\r\n\t\ttahun = 5;\r\n\t\tharga = tahun * 4500000;\r\n\t\tsuper.data();\r\n\t}", "title": "" }, { "docid": "3188499885986fef91437f2cb07f4fb7", "score": "0.5097493", "text": "@Override\r\n public double yoluBul(int[] robotHareketleri) {\r\n\r\n return (robotHareketleri[0] + robotHareketleri[1] + robotHareketleri[2] + robotHareketleri[3]) * 10;/*metre cinsinden oldugu inic *10 yaptik*/\r\n }", "title": "" }, { "docid": "659ad0f5fc8e101f0a8e0028ec8ec219", "score": "0.5095778", "text": "public GA(double[][] time_wisata, double[][] time_hotel, double[][] time_windows, int no_hotel) {\n int iterasi = 1; //generasi\n this.no_hotel = no_hotel;\n int n = 4; // banyak chromosom / populasi\n this.time_wisata = time_wisata;\n this.time_hotel = time_hotel;\n this.time_windows = time_windows;\n main(iterasi, n, no_hotel);\n }", "title": "" }, { "docid": "862991487da76fd65bda32498f8789cc", "score": "0.50911623", "text": "@Override\n\tpublic void mencariTunjanganMenikah() {\n\t\tdouble persen = 0;\n\t\tif(statusPerkawinan.equalsIgnoreCase(\"menikah\")) {\n\t\t\tpersen = 0.02;\n\t\t}\n\t\tsetTunjanganMenikah(persen*(gajiPokok+tunjanganPegawai)); \n\t}", "title": "" }, { "docid": "e7b37373826306a031c1f5b69d8f1fc9", "score": "0.5087506", "text": "public static void main(String[] args) {\n\t\tdouble TempMediaMes01 = 31.9;\n\t\tdouble TempMediaMes02 = 32;\n\t\tdouble TempMediaMes03 = 30.2;\n\t\tdouble TempMediaMes04 = 29.8;\n\t\tdouble TempMediaMes05 = 27.5;\n\t\tdouble TempMediaMes06 = 32.6;\n\t\tdouble TempMediaMes07 = 31;\n\t\t\n\t\t//metodo array\n\t\tdouble[] temperaturas = new double[31];\n\t\t\n\t\ttemperaturas[0] = 31.9;\n\t\ttemperaturas[1] = 32;\n\t\ttemperaturas[2] = 30.2;\n\t\ttemperaturas[3] = 29.8;\n\t\ttemperaturas[4] = 27.5;\n\t\ttemperaturas[5] = 32.6;\n\t\ttemperaturas[6] = 31;\n\t\ttemperaturas[7] = 33;\n\t\t\n\t\tSystem.out.println(\"O valor da temperatura do dia 1 é: \" + temperaturas[0] + \"\\n\");\n\t\t\n\t\tSystem.out.println(\"O tamanho do array é: \" + temperaturas.length + \"\\n\");\n\t\t\n\t\tfor (int i=0; i<temperaturas.length; i++) {\n\t\t\tSystem.out.println(\"O valor da temperatura do dia \" + (i+1) + \" é: \" + temperaturas[i]);\n\t\t\t\n\t\t}\n\t}", "title": "" }, { "docid": "f5a17a1bb6300ff2158db2c145711446", "score": "0.5085745", "text": "public static void main(String[]args){\n\t\tdouble volume;//variabel luas,pi bertipe double\n\t\tint p,l,t;//variabel p,l,t bertipe int\n\t\tScanner masuk=new Scanner(System.in);\n\t\t/*variabel masuk bertipe Scanner*/\n\t\t\n\t\tSystem.out.println(\"* * * * * * * * * * * * * * * * * * *\");\n\t\tSystem.out.println(\"PROGRAM MENGHITUNG VOLUME BALOK\");\n\t\tSystem.out.println(\"* * * * * * * * * * * * * * * * * * *\");\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"masukkan panjang: \");\n\t\tp=masuk.nextInt();\n\t\tSystem.out.println(\"* * * * * * * * * * * * * * * * * * *\");\n\t\tSystem.out.println(\"masukkan lebar: \");\n\t\tl=masuk.nextInt();\n\t\tSystem.out.println(\"* * * * * * * * * * * * * * * * * * *\");\n\t\tSystem.out.println(\"masukkan tinggi: \");\n\t\tt=masuk.nextInt();\n\t\t\n\t\t//Melakukn perhitungan volume balok sesuai rumus matematika\n\t\tvolume=p*l*t;\n\t\t\n\t\tSystem.out.println(\"* * * * * * * * * * * * * * * * * * *\");\n\t\t//Menampilkan ke monitor\n\t\tSystem.out.println(\"Volume Balok: \"+volume);\n\t}", "title": "" }, { "docid": "882e7340ac97ba2f109b4c0934d173aa", "score": "0.5085264", "text": "static void yagisMedyan(List<Yagis> yagisList){\n List<Double> konyadizi = new ArrayList<Double>();\n List<Double> istanbuldizi = new ArrayList<Double>();\n List<Double> ankaradizi = new ArrayList<Double>();\n List<Double> antalyadizi = new ArrayList<Double>();\n\n for (Yagis yagis: yagisList) {\n konyadizi.add(yagis.getKonya());\n istanbuldizi.add(yagis.getIstanbul());\n ankaradizi.add(yagis.getAnkara());\n antalyadizi.add(yagis.getAntalya());\n }\n\n //Medyanini bulmak icin dizimi kucukten buyuge dogru siralamamiz gerekiyordu\n Collections.sort(konyadizi);\n Collections.sort(istanbuldizi);\n Collections.sort(ankaradizi);\n Collections.sort(antalyadizi);\n\n double medyankonya;\n double medyanistanbul;\n double medyanankara;\n double medyanantalya;\n\n //burada kontrol ettigim sey ise, dizinin boyutunun cift mi tek mi oldugunu kontrol etmek\n //cift ise 2 tane medyan oldugu icin ikisinide toplayip 2 ye boldugumuzde sonucumuza ulasiyoruz\n //tek ise zaten dizi boyutunu 2 ye boldugumuzde direk olarak degeri verir\n if (konyadizi.size()%2==0) {\n medyankonya = ((double) konyadizi.get(konyadizi.size() / 2) + (double) konyadizi.get(konyadizi.size() / 2 - 1)) / 2; //ortancaların ortalaması\n }else {\n medyankonya = (double) konyadizi.get(konyadizi.size() / 2); //tek sayılı eleman sayısına sahip vektörün ortanca elemanı\n }\n if (istanbuldizi.size()%2== 0) {\n medyanistanbul = ((double) istanbuldizi.get(istanbuldizi.size() / 2) + (double) istanbuldizi.get(istanbuldizi.size() / 2 - 1)) / 2; //ortancaların ortalaması\n }else {\n medyanistanbul = (double) istanbuldizi.get(istanbuldizi.size() / 2); //tek sayılı eleman sayısına sahip vektörün ortanca elemanı\n }\n if (ankaradizi.size()% 2 ==0) {\n medyanankara = ((double) ankaradizi.get(ankaradizi.size() / 2) + (double) ankaradizi.get(ankaradizi.size() / 2 - 1)) / 2; //ortancaların ortalaması\n }else {\n medyanankara = (double) ankaradizi.get(ankaradizi.size() / 2); //tek sayılı eleman sayısına sahip vektörün ortanca elemanı\n }\n if (antalyadizi.size()% 2 ==0) {\n medyanantalya = ((double) antalyadizi.get(antalyadizi.size() / 2) + (double) antalyadizi.get(antalyadizi.size() / 2 - 1)) / 2; //ortancaların ortalaması\n }else {\n medyanantalya = (double) antalyadizi.get(antalyadizi.size() / 2); //tek sayılı eleman sayısına sahip vektörün ortanca elemanı\n }\n System.out.println(\"Medyan konya =\"+medyankonya);\n System.out.println(\"Medyan istanbul =\"+medyanistanbul);\n System.out.println(\"Medyan ankara =\"+medyanankara);\n System.out.println(\"Medyan antalya =\"+medyanantalya);\n }", "title": "" }, { "docid": "d018548a450bfd44893d96520741b15d", "score": "0.50737816", "text": "float getMetronomeVolume();", "title": "" }, { "docid": "be1602b016de23591f9925a18d09ee93", "score": "0.50732785", "text": "private void addWaves() {\r\n\t\tif(!paused) {\r\n\t\t\twaveLeft = waveCycle(0, waveLeft);\r\n\t\t\twaveRight =waveCycle(WIDTH/2+50, waveRight);\r\n\t\t\tadd(waveLeft);\r\n\t\t\tadd(waveRight);\r\n\t\t\tif(waveLevel==60)\r\n\t\t\t\twaveLevel = 0;\r\n\t\t\twaveLevel++;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "b7d524132ef755c52f10e1b3248cf207", "score": "0.5071087", "text": "@Override\n\tpublic double mencariPTKP() {\n\t\tdouble ptkp = biayaPTKPdefault;\n\t\tif(statusPerkawinan.equalsIgnoreCase(\"menikah\")) {\n\t\t\tptkp += biayaPTKPpenambahan;\n\t\t}\n\t\t\n\t\treturn ptkp;\n\t}", "title": "" }, { "docid": "6e5508962350ff9424d637f979242fe8", "score": "0.50639457", "text": "public int getSamples();", "title": "" }, { "docid": "34f6c520c2a6407bba27a7d4542bd243", "score": "0.5060309", "text": "@Override\n\tpublic void mencariTunjanganPegawai() {\n\t\tdouble tunjanganPegawai=0;\n\t\t\n\t\tif(tingkatanJabatan.equalsIgnoreCase(\"junior\")) {\n\t\t\ttunjanganPegawai = tunjanganPegawaiJunior;\n\t\t}\n\t\telse if(tingkatanJabatan.equalsIgnoreCase(\"middle\")) {\n\t\t\ttunjanganPegawai = tunjanganPegawaiMiddle;\n\t\t}\n\t\telse if(tingkatanJabatan.equalsIgnoreCase(\"senior\")) {\n\t\t\ttunjanganPegawai = tunjanganPegawaiSenior;\n\t\t}\n\t\t\n\t\tsetTunjanganPegawai(tunjanganPegawai);\n\t}", "title": "" }, { "docid": "1ec36f90e9032153d4fa6a8c97cc4b3e", "score": "0.5050256", "text": "@Override\n\tpublic double mencariGajiBersihSetahun() {\n\t\treturn (gajiPokok - mencariBiayaJabatan())*12;\n\t}", "title": "" }, { "docid": "8cfaf47eca84fe07dd5820c15f81dd66", "score": "0.5039567", "text": "public void hitungMakanan() {\n double daging = 0;\n double sayur = 0;\n double omni = 0;\n //hitung makanan masing-masing\n for (int i = 0; i < MAXCAGE; i++) {\n if (isAdaCage[i]) {\n for (int j = 0; j < cageList[i].numberOfAnimal(); j++) {\n String type = cageList[i].getAnimal(j).getFoodType();\n double foodnum = cageList[i].getAnimal(j).getFoodNum();\n if (type.equals(\"Omnivore\")) {\n omni += foodnum;\n } else \n if (type.equals(\"Carnivore\")) {\n daging += foodnum;\n } else \n if (type.equals(\"Herbivore\")) {\n sayur += foodnum;\n } else {\n System.out.println(\"Tipe tidak dikenali\");\n } \n }\n }\n }\n System.out.println(\"Untuk memberi makan binatang di TalkingZoo dalam sehari dibutuhkan:\");\n System.out.println(daging + \" kg daging,\");\n System.out.println(sayur + \" kg sayur, dan\");\n System.out.println(omni + \" kg daging/sayur,\"); \n }", "title": "" }, { "docid": "7b6212e2b99db34be9ee85af7c40b20d", "score": "0.50272226", "text": "public void loopPakSluitAan() \n {\n Persoon persoon = new Persoon(33, \"tjibbe\", \"achter\", 14, 6, 1994, 'M');\n Dienblad dienblad = new Dienblad();\n Artikel artikel1 = new Artikel(\"bier\", 50);\n Artikel artikel2 = new Artikel(\"kaas\", 100);\n persoon.pakDienblad(dienblad); \n dienblad.voegToe(artikel1);\n dienblad.voegToe(artikel2);\n kassarij.sluitAchteraan(persoon);\n }", "title": "" }, { "docid": "3a6c49398137bdd8283bdf878e8db770", "score": "0.5016409", "text": "public static void main(String[] args) {\n\tScanner reader = new Scanner(System.in);\n\t\t\n\t\tSystem.out.println(\"Įveskite knygos skyrių skaičių: \");\n\t\tint m = reader.nextInt();\n\t\t\n\t\tint vid =0;\n\t\tint d = 0;\n\t\tint kiek = 0;\n\t\tfor(int s= 1; kiek<=m ; s++ ) {\n\t\t\tkiek++;\n\t\t\td = \n\t\tvid =m/s ;\n\t\t\tSystem.out.println(\"Tadas visą knygą perskaitys per \" + d );\n\t\t\tSystem.out.println(\"Tadas vidutiniškai per dieną perskaitė \" + vid + \" skyrius (-ų)\");\n\t\t}\n\t\treader.close();\n\t}", "title": "" }, { "docid": "26a723912e015942b8d4bade09e172d4", "score": "0.5004766", "text": "public static WaveOfCreatures genererVagueStandard(int indiceVagueCourante)\r\n {\r\n int noVague = indiceVagueCourante;\r\n int uniteVague = noVague % 10;\r\n \r\n final long SANTE_CREATURE_NORMALE = fSante(noVague);\r\n final long GAIN_VAGUE_COURANTE = fGainVague2(noVague)/*fGainVague(SANTE_CREATURE_NORMALE)*/;\r\n\r\n switch (uniteVague)\r\n {\r\n \r\n case 1: // 5 normales\r\n \r\n return new WaveOfCreatures(5, new Sheep(SANTE_CREATURE_NORMALE,\r\n (int) Math.ceil(GAIN_VAGUE_COURANTE / 15.0), VITESSE_CREATURE_NORMALE),\r\n getTempsLancement(VITESSE_CREATURE_NORMALE));\r\n\r\n case 2: // 10 normales\r\n return new WaveOfCreatures(10, new BlackSheep(SANTE_CREATURE_NORMALE,\r\n (int) Math.ceil(GAIN_VAGUE_COURANTE / 10.0), VITESSE_CREATURE_NORMALE),\r\n getTempsLancement(VITESSE_CREATURE_NORMALE));\r\n\r\n case 3: // 10 volantes\r\n return new WaveOfCreatures(\r\n 10,\r\n new Eagle(\r\n (int) (SANTE_CREATURE_NORMALE * COEF_SANTE_CREATURE_AERIENNE),\r\n (int) Math.ceil(GAIN_VAGUE_COURANTE / 10.0), VITESSE_CREATURE_NORMALE),\r\n getTempsLancement(VITESSE_CREATURE_NORMALE));\r\n\r\n case 4: // 10 resistantes\r\n return new WaveOfCreatures(\r\n 10,\r\n new Rhinoceros(\r\n (int) (SANTE_CREATURE_NORMALE * COEF_SANTE_CREATURE_RESISTANTE),\r\n (int) Math.ceil(GAIN_VAGUE_COURANTE / 10.0), VITESSE_CREATURE_LENTE),\r\n getTempsLancement(VITESSE_CREATURE_LENTE));\r\n\r\n case 5: // 10 rapides\r\n return new WaveOfCreatures(\r\n 10,\r\n new Spider(\r\n (int) (SANTE_CREATURE_NORMALE * COEF_SANTE_CREATURE_RAPIDE),\r\n (int) Math.ceil(GAIN_VAGUE_COURANTE / 10.0), VITESSE_CREATURE_RAPIDE),\r\n getTempsLancement(VITESSE_CREATURE_RAPIDE));\r\n\r\n case 6: // 15 normales\r\n return new WaveOfCreatures(15, new Farmer(SANTE_CREATURE_NORMALE,\r\n (int) Math.ceil(GAIN_VAGUE_COURANTE / 15.0), \r\n VITESSE_CREATURE_NORMALE),\r\n getTempsLancement(VITESSE_CREATURE_NORMALE));\r\n\r\n case 7: // 15 resistantes\r\n return new WaveOfCreatures(\r\n 15,\r\n new Elephant(\r\n (int) (SANTE_CREATURE_NORMALE * COEF_SANTE_CREATURE_RESISTANTE),\r\n (int) Math.ceil(GAIN_VAGUE_COURANTE / 15.0), VITESSE_CREATURE_LENTE),\r\n getTempsLancement(VITESSE_CREATURE_LENTE));\r\n\r\n case 8: // 30 volantes\r\n return new WaveOfCreatures(\r\n 30,\r\n new Pigeon(\r\n (int) (SANTE_CREATURE_NORMALE * COEF_SANTE_CREATURE_AERIENNE),\r\n (int) Math.ceil(GAIN_VAGUE_COURANTE / 30.0), VITESSE_CREATURE_NORMALE),\r\n getTempsLancement(VITESSE_CREATURE_NORMALE));\r\n\r\n case 9: // 3 pre-boss\r\n return new WaveOfCreatures(3, new Spider(\r\n (int) (SANTE_CREATURE_NORMALE * COEF_SANTE_PRE_BOSS),\r\n (int) Math.ceil(GAIN_VAGUE_COURANTE / 3.0), VITESSE_CREATURE_LENTE),\r\n getTempsLancement(VITESSE_CREATURE_LENTE));\r\n\r\n default: // boss\r\n return new WaveOfCreatures(1, new BigSpider(\r\n (int) (SANTE_CREATURE_NORMALE * COEF_SANTE_BOSS),\r\n (int) Math.ceil(GAIN_VAGUE_COURANTE), VITESSE_CREATURE_LENTE),\r\n getTempsLancement(VITESSE_CREATURE_LENTE));\r\n }\r\n }", "title": "" }, { "docid": "6659d6e7fa5972b9ea58622e2046a8ba", "score": "0.50009584", "text": "public static double MediaKm (double [] coordenadas, double duracion)\n {\n double [] tablaDistancias = coordenadas;//new double[2];\n double distanciaMedia =0;\n double distanciaEntreDosPosiciones= tablaDistancias[0] - tablaDistancias[1];\n String error = \"\";\n double velocidad = (distanciaEntreDosPosiciones/duracion)*3600; // *60segundos*60minutos = km/hora\n\n System.out.println(\"velocidad en metros/segundo = \" + (velocidad*1000) + \" M/H\");\n System.out.println(\"velocidad en Kilometros/hora = \" + String.format( \"%.10f\", (velocidad)) + \" KM/H\");\n\n\n return (velocidad) ; // dividido 1000 = metros\n }", "title": "" }, { "docid": "5b88beb370b1ab065d0641bdf8d052cd", "score": "0.49959219", "text": "public void PilihGerak(int barisE, int kolomE, int index){\n Random rand = new Random();\n int coba = 0; \n //random pilih gerakan antara atas(0), bawah(1), kiri(2), kanan(3)\n int pilih = rand.nextInt(4);\n int cek = 0;\n try{\n cek = CekValidGerak(barisE, kolomE, pilih); //untuk ngecek apakah dipetak yg akan dituju kosong atau tidak\n coba++;\n while(cek != 1 && coba < 4){ //coba dibatasi menjadi 4 kali, kalo coba sudah 4 artinya engimon liar tidak dapat bergerak\n pilih = (pilih + 1) % 4; //ditambahin\n cek = CekValidGerak(barisE, kolomE, pilih);\n coba++;\n }\n\n if(cek == 1){ //terpenuhi\n UbahPosisi(barisE, kolomE, pilih, index); //ubah nilai posisi dari engimon dan ubah element di peta\n }\n } catch(Exception exc){\n System.out.println(exc.getMessage());\n }\n \n }", "title": "" }, { "docid": "c20883a1fd6250f3a7a116a8cf2ae208", "score": "0.4994396", "text": "@Override\n\tpublic double mencariPotonganBPJSKesehatan() {\n\t\treturn 0.01 * mencariGajiKotor();\n\t}", "title": "" }, { "docid": "66997b47d4e6b44f1fc46d1e5c8f9498", "score": "0.49890354", "text": "public static void main(String[] args) {\n\r\n\t\tSystem.out.println(\"Ejercicio 4 - Paseo de estudiantes a Melgar\");\r\n\t\tScanner entrada=new Scanner(System.in);\t\t\r\n\t\t\r\n\t\tSystem.out.println(\"Pasajeros gordos\");\t\t\r\n\t\tdouble pasajerosGordos = entrada.nextDouble();\r\n\t\t\r\n\t\tSystem.out.println(\"Pasajeros flacos \");\t\t\r\n\t\tdouble pasajerosFlacos = entrada.nextDouble();\r\n\t\t\r\n\t\tSystem.out.println(\"Sillas del Bus\");\t\t\r\n\t\tdouble sillasDelBus = entrada.nextDouble();\r\n\t\t\r\n\t\tSystem.out.println(\"Valor comida\");\t\t\r\n\t\tdouble valorComida = entrada.nextDouble();\r\n\t\t\r\n\t\tSystem.out.println(\"Personas de habitacion\");\t\t\r\n\t\tdouble personasHabitacion = entrada.nextDouble();\r\n\t\t\r\n\t\tSystem.out.println(\"Valor alquiler del Bus\");\t\t\r\n\t\tdouble valorAlquilerBus = entrada.nextDouble();\r\n\t\t\r\n\t\tSystem.out.println(\"Numero de dias del Paseo\");\t\t\r\n\t\tdouble diasDelPaseo = entrada.nextDouble();\r\n\t\t\r\n\t\tdouble numeroBuses, alquilerDeBuses, comida, numeroDeHabitaciones, valorTotal ;\r\n\r\n\t\tnumeroBuses = ((pasajerosGordos*2)+pasajerosFlacos)/30 ;\r\n\t\tSystem.out.println(\"Numero de buses = \"+ numeroBuses );\r\n\t\t\r\n\t\talquilerDeBuses = 2 * numeroBuses * valorAlquilerBus ;\r\n\t\tSystem.out.println(\"Valor alquiles de buses = \"+ alquilerDeBuses );\t\t\r\n\t\t\r\n\t\tcomida = (5*pasajerosGordos)+(3*pasajerosFlacos)*diasDelPaseo*valorComida ;\r\n\t\tSystem.out.println(\"Valor comida = \"+ comida );\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "ba2a70673a06b1af8bb7b16a8d028c6f", "score": "0.49833858", "text": "public static void Analyze(){\n String present_note;\n int Mtriad_counter = 0;\n int mtriad_counter = 0;\n int MM7_counter = 0;\n int Mm7_counter = 0;\n int mM7_counter = 0;\n int mm7_counter = 0;\n int Mtriad6_counter = 0;\n int mtriad6_counter = 0;\n int MM6_counter = 0;\n int Mm6_counter = 0;\n int mM6_counter = 0;\n int mm6_counter = 0;\n int Mtriad4_counter = 0;\n int mtriad4_counter = 0;\n int MM4_counter = 0;\n int Mm4_counter = 0;\n int mM4_counter = 0;\n int mm4_counter = 0;\n for (int n=0;n<(SampleInput.size());n++){\n present_note = NoteList.get((SampleInput.get(n))%12);\n \n if (Mtriad.contains(present_note)){Mtriad_counter++;}\n if (mtriad.contains(present_note)){mtriad_counter++;}\n if (MM7.contains(present_note)){MM7_counter++;}\n if (Mm7.contains(present_note)){Mm7_counter++;}\n if (mM7.contains(present_note)){mM7_counter++;}\n if (mm7.contains(present_note)){mm7_counter++;}\n if (Mtriad6.contains(present_note)){Mtriad6_counter++;}\n if (mtriad6.contains(present_note)){mtriad6_counter++;}\n if (MM6.contains(present_note)){MM6_counter++;}\n if (Mm6.contains(present_note)){Mm6_counter++;}\n if (mM6.contains(present_note)){mM6_counter++;}\n if (mm6.contains(present_note)){mm6_counter++;}\n if (Mtriad4.contains(present_note)){Mtriad4_counter++;}\n if (mtriad4.contains(present_note)){mtriad4_counter++;}\n if (MM4.contains(present_note)){MM4_counter++;}\n if (Mm4.contains(present_note)){Mm4_counter++;}\n if (mM4.contains(present_note)){mM4_counter++;}\n if (mm4.contains(present_note)){mm4_counter++;}\n }\n /*Likelihood of notes falling into each category.\n This begins with the Root Position chords and triads, then it progresses\n from first to second inversion chords and triads.*/\n if (MM7_counter >= 4) {MostLikelyChords.add(MM7.get(0) + \" M7\");}\n if (Mm7_counter >= 4) {MostLikelyChords.add(Mm7.get(0) + \" 7\");}\n if (mM7_counter >= 4) {MostLikelyChords.add(mM7.get(0) + \"- M7\");}\n if (mm7_counter >= 4) {MostLikelyChords.add(mm7.get(0) + \"- 7\");}\n if (MM6_counter >= 4) {MostLikelyChords.add(MM6.get(0) + \" M6/5\");}\n if (Mm6_counter >= 4) {MostLikelyChords.add(Mm6.get(0) + \" 6/5\");}\n if (mM6_counter >= 4) {MostLikelyChords.add(mM6.get(0) + \"- M6/5\");}\n if (mm6_counter >= 4) {MostLikelyChords.add(mm6.get(0) + \"- 6/5\");}\n if (MM4_counter >= 4) {MostLikelyChords.add(MM4.get(0) + \" M4/2\");}\n if (Mm4_counter >= 4) {MostLikelyChords.add(Mm4.get(0) + \" 4/2\");}\n if (mM4_counter >= 4) {MostLikelyChords.add(mM4.get(0) + \"- M4/2\");}\n if (mm4_counter >= 4) {MostLikelyChords.add(mm4.get(0) + \"- 4/2\");}\n if (Mtriad_counter == 3) {MostLikelyChords.add(Mtriad.get(0));}\n if (mtriad_counter == 3) {MostLikelyChords.add(mtriad.get(0));}\n for (int c=0;c<(MostLikelyChords.size());c++){\n //post to screen\n Log.d(\"Possible Chord: \", MostLikelyChords.get(c));\n //'toast' would have posted some chord ideas to the screen\n }\n }", "title": "" }, { "docid": "62375ad2213ccbf242c9741ccc85f4a4", "score": "0.49699506", "text": "public float getSampleRate()\r\n/* 16: */ {\r\n/* 17:26 */ return 0.0F;\r\n/* 18: */ }", "title": "" }, { "docid": "425239c8cbd493358d8dd3565e147c8b", "score": "0.49696714", "text": "@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\r\n\t\tint resultado;\r\n\t\tint resultado1, resultado2;\r\n\r\n\t\ttry {\r\n\t\t\tint numero1 = Integer.parseInt(ventana.getNumero1().getText());\r\n\t\t\tint numero2 = Integer.parseInt(ventana.getNumero2().getText());\r\n\t\t\tresultado1 = (int) Math.cbrt(numero1);\r\n\t\t\tresultado2 = (int) Math.cbrt(numero2);\r\n\t\t\tif (e.getSource() == ventana.getBoton1()) {// Si pulsamos el boton de sumar , nos hace la suma\r\n\r\n\t\t\t\tresultado = numero1 + numero2;\r\n\t\t\t\ttry {\r\n\r\n\t\t\t\t\tClip clip = AudioSystem.getClip();\r\n\t\t\t\t\tclip.open(AudioSystem.getAudioInputStream(new File(\"Teemo.wav\")));\r\n\t\t\t\t\tclip.start();\r\n\t\t\t\t} catch (UnsupportedAudioFileException | IOException | LineUnavailableException ex) {\r\n\t\t\t\t\tSystem.out.println(\"Error al reproducir el sonido.\");\r\n\t\t\t\t}\r\n\t\t\t\tventana.getResultado().setText(\"Resultado: \" + resultado);\r\n\t\t\t}\r\n\t\t\tif (e.getSource() == ventana.getBoton2()) {// Si pulsamos el boton de restar , nos hace la resta\r\n\t\t\t\ttry {\r\n\r\n\t\t\t\t\tClip clip = AudioSystem.getClip();\r\n\t\t\t\t\tclip.open(AudioSystem.getAudioInputStream(new File(\"Jinx.wav\")));\r\n\t\t\t\t\tclip.start();\r\n\t\t\t\t} catch (UnsupportedAudioFileException | IOException | LineUnavailableException ex) {\r\n\t\t\t\t\tSystem.out.println(\"Error al reproducir el sonido.\");\r\n\t\t\t\t}\r\n\t\t\t\tresultado = numero1 - numero2;\r\n\t\t\t\tventana.getResultado().setText(\"Resultado: \" + resultado);\r\n\t\t\t}\r\n\t\t\tif (e.getSource() == ventana.getBoton3()) {// Si pulsamos el boton de multiplicar , nos hace la\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// multiplicacion\r\n\t\t\t\ttry {\r\n\r\n\t\t\t\t\tClip clip = AudioSystem.getClip();\r\n\t\t\t\t\tclip.open(AudioSystem.getAudioInputStream(new File(\"Jhin.wav\")));\r\n\t\t\t\t\tclip.start();\r\n\t\t\t\t} catch (UnsupportedAudioFileException | IOException | LineUnavailableException ex) {\r\n\t\t\t\t\tSystem.out.println(\"Error al reproducir el sonido.\");\r\n\t\t\t\t}\r\n\t\t\t\tresultado = numero1 * numero2;\r\n\t\t\t\tventana.getResultado().setText(\"Resultado: \" + resultado);\r\n\t\t\t}\r\n\t\t\tif (e.getSource() == ventana.getBoton4()) {// Si pulsamos el boton de dividir , nos hace la division\r\n\t\t\t\tif (numero2 == 0) {// Creamos un if , en caso de que se intente dividir un numero entre 0, nos\r\n\t\t\t\t\t\t\t\t\t// saldra un mensaje\r\n\t\t\t\t\ttry {\r\n\r\n\t\t\t\t\t\tClip clip = AudioSystem.getClip();\r\n\t\t\t\t\t\tclip.open(AudioSystem.getAudioInputStream(new File(\"Fizz.wav\")));\r\n\t\t\t\t\t\tclip.start();\r\n\t\t\t\t\t} catch (UnsupportedAudioFileException | IOException | LineUnavailableException ex) {\r\n\t\t\t\t\t\tSystem.out.println(\"Error al reproducir el sonido.\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\tventana.getResultado().setText(\"No se puede dividir entre 0\");\r\n\t\t\t\t} else {\r\n\t\t\t\t\ttry {\r\n\r\n\t\t\t\t\t\tClip clip = AudioSystem.getClip();\r\n\t\t\t\t\t\tclip.open(AudioSystem.getAudioInputStream(new File(\"Heimer.wav\")));\r\n\t\t\t\t\t\tclip.start();\r\n\t\t\t\t\t} catch (UnsupportedAudioFileException | IOException | LineUnavailableException ex) {\r\n\t\t\t\t\t\tSystem.out.println(\"Error al reproducir el sonido.\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\tresultado = numero1 / numero2;\r\n\t\t\t\t\tventana.getResultado().setText(\"Resultado: \" + resultado);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (e.getSource() == ventana.getBoton5()) {// Si pulsamos el boton raiz cuadrada,nos aparecera una ventana\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// diciendo que la funcionalidad no esta disponible\r\n\t\t\t\ttry {\r\n\r\n\t\t\t\t\tClip clip = AudioSystem.getClip();\r\n\t\t\t\t\tclip.open(AudioSystem.getAudioInputStream(new File(\"Caitlyn.wav\")));\r\n\t\t\t\t\tclip.start();\r\n\t\t\t\t} catch (UnsupportedAudioFileException | IOException | LineUnavailableException ex) {\r\n\t\t\t\t\tSystem.out.println(\"Error al reproducir el sonido.\");\r\n\t\t\t\t}\r\n\r\n\t\t\t\tSecundaria1 s = new Secundaria1();// Creamos el objeto de secundaria1 para poder acceder a la ventana\r\n\t\t\t\ts.setVisible(true);\r\n\r\n\t\t\t}\r\n\t\t\ttry {\r\n\t\t\t\tif (e.getSource() == ventana.getBoton6()) {// Si pulsamos el boton raiz cubica, nos aparecera una\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// ventana que nos pedira una contraseņa, si la acertamos ,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// nos hara la operacion\r\n\t\t\t\t\ttry {\r\n\r\n\t\t\t\t\t\tClip clip = AudioSystem.getClip();\r\n\t\t\t\t\t\tclip.open(AudioSystem.getAudioInputStream(new File(\"Lux.wav\")));\r\n\t\t\t\t\t\tclip.start();\r\n\t\t\t\t\t} catch (UnsupportedAudioFileException | IOException | LineUnavailableException ex) {\r\n\t\t\t\t\t\tSystem.out.println(\"Error al reproducir el sonido.\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\tventana2 = new Secundaria2(this);// Cramos objeto\r\n\t\t\t\t\tventana2.setVisible(true);\r\n\r\n\t\t\t\t}\r\n\t\t\t\tif (e.getSource() == ventana2.getBtnNewButton_1()) {// Si le damos a volver , volveremos a la ventana\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// principal\r\n\t\t\t\t\ttry {\r\n\r\n\t\t\t\t\t\tClip clip = AudioSystem.getClip();\r\n\t\t\t\t\t\tclip.open(AudioSystem.getAudioInputStream(new File(\"Katarina.wav\")));\r\n\t\t\t\t\t\tclip.start();\r\n\t\t\t\t\t} catch (UnsupportedAudioFileException | IOException | LineUnavailableException ex) {\r\n\t\t\t\t\t\tSystem.out.println(\"Error al reproducir el sonido.\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\tventana2.dispose();\r\n\t\t\t\t}\r\n\t\t\t\tif (e.getSource() == ventana2.getBtnNewButton()) {// Si la contraseņa es 1234, nos hara la operacion, si\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// no, Nos pondra que la contraseņa es incorrecta\r\n\t\t\t\t\tString contraseņa = String.valueOf(ventana2.getPasswordField().getPassword());\r\n\t\t\t\t\tif (contraseņa.equalsIgnoreCase(\"1234\")) {\r\n\t\t\t\t\t\ttry {\r\n\r\n\t\t\t\t\t\t\tClip clip = AudioSystem.getClip();\r\n\t\t\t\t\t\t\tclip.open(AudioSystem.getAudioInputStream(new File(\"Jayce.wav\")));\r\n\t\t\t\t\t\t\tclip.start();\r\n\t\t\t\t\t\t} catch (UnsupportedAudioFileException | IOException | LineUnavailableException ex) {\r\n\t\t\t\t\t\t\tSystem.out.println(\"Error al reproducir el sonido.\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tventana.getResultado().setText(\"Resultado: \" + resultado1 + \" y \" + resultado2);\r\n\t\t\t\t\t\tventana2.dispose();\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tventana.getResultado().setText(\"CONTRASENA INCORRECTA\");\r\n\t\t\t\t\t\ttry {\r\n\r\n\t\t\t\t\t\t\tClip clip = AudioSystem.getClip();\r\n\t\t\t\t\t\t\tclip.open(AudioSystem.getAudioInputStream(new File(\"Leona.wav\")));\r\n\t\t\t\t\t\t\tclip.start();\r\n\t\t\t\t\t\t} catch (UnsupportedAudioFileException | IOException | LineUnavailableException ex) {\r\n\t\t\t\t\t\t\tSystem.out.println(\"Error al reproducir el sonido.\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} catch (NullPointerException ew) {\r\n\t\t\t\tSystem.out.println(\"\");\r\n\t\t\t}\r\n\r\n\t\t} catch (NumberFormatException e1) {// En caso de no introducir datos o introducirlos mas , nos saldra este\r\n\t\t\t\t\t\t\t\t\t\t\t// mensaje\r\n\t\t\ttry {\r\n\r\n\t\t\t\tClip clip = AudioSystem.getClip();\r\n\t\t\t\tclip.open(AudioSystem.getAudioInputStream(new File(\"Jhin2.wav\")));\r\n\t\t\t\tclip.start();\r\n\t\t\t} catch (UnsupportedAudioFileException | IOException | LineUnavailableException ex) {\r\n\t\t\t\tSystem.out.println(\"Error al reproducir el sonido.\");\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\"Datos incorrectos\");\r\n\t\t\tSystem.out.println(e1.getMessage());\r\n\t\t}\r\n\t\tif (e.getSource() == ventana.getReset()) {// Si pulsamos el boton reset, se nos vuelve todo al estado inicial\r\n\t\t\ttry {\r\n\r\n\t\t\t\tClip clip = AudioSystem.getClip();\r\n\t\t\t\tclip.open(AudioSystem.getAudioInputStream(new File(\"Derrota.wav\")));\r\n\t\t\t\tclip.start();\r\n\t\t\t} catch (UnsupportedAudioFileException | IOException | LineUnavailableException ex) {\r\n\t\t\t\tSystem.out.println(\"Error al reproducir el sonido.\");\r\n\t\t\t}\r\n\t\t\tventana.getNumero1().setText(\"\");\r\n\t\t\tventana.getNumero2().setText(\"\");\r\n\t\t\tventana.getResultado().setText(\"Resultado: \");\r\n\r\n\t\t}\r\n\r\n\t}", "title": "" }, { "docid": "c2163e3b961ceaaffc10bb79837eb6fe", "score": "0.4964402", "text": "public static void main(String[] args){\n\n KlasaDlaMetod nazwaMetodki = new KlasaDlaMetod(); // utworzona byt w pamieci dla KlasaDlametod jako nazwaMetodki\n nazwaMetodki.metodaKtoraNicNieZwraca();\n nazwaMetodki.metodKtoraPrzyjmujeArgument(22);\n nazwaMetodki.metodaIDwaParametry(11, '+');\n nazwaMetodki.metodaPrawdaFalsz(false, 33);\n int lala = nazwaMetodki.dodawnie(3, 6);\n System.out.println(lala);\n\n double bombastik = nazwaMetodki.dubel(1.5);\n System.out.println(bombastik);\n\n System.out.println(nazwaMetodki.wortoscLogiczna(true));\n\n System.out.println(nazwaMetodki.czyZwrociCos(true, 10));\n\n\n\n\n }", "title": "" }, { "docid": "2a670108646d5745becd164624d26bef", "score": "0.49636975", "text": "public double[] llenarContiner(int pesoMax, int tipo) {\r\n double[] aux = new double[bancoPreguntas.size()];\r\n int parcial = 0;\r\n int i = 0;\r\n double k;\r\n\r\n // Mientras hayan objetos \r\n while (parcial < pesoMax && i < bancoPreguntas.size()) {\r\n //busca el primer posible objeto\r\n while (i < bancoPreguntas.size() && (parcial + (tipo == 1 ? bancoPreguntas.get(i).getDificultad() : bancoPreguntas.get(i).getTiempo())) \r\n > pesoMax && bancoPreguntas.get(i).getTiempo()> 0) {\r\n i++;\r\n }\r\n //en caso de encontrar un objeto\r\n if (i < bancoPreguntas.size()) {\r\n //Determina la cantidad de objetos que necesesitaria\r\n k = (pesoMax - parcial) / (tipo == 1 ? bancoPreguntas.get(i).getDificultad(): bancoPreguntas.get(i).getTiempo());\r\n //en caso de que exista la cantidad \r\n \r\n // asignacion de \r\n aux[i] += k;\r\n //se suma el valor el peso total del container\r\n parcial += (tipo == 1 ? bancoPreguntas.get(i).getDificultad(): bancoPreguntas.get(i).getTiempo()) * k;\r\n } else {\r\n // en caso de no encontrar mas objetos \r\n parcial = pesoMax;\r\n }\r\n \r\n }\r\n // Mientras hayan objetos \r\n while (parcial < pesoMax && i < bancoPreguntas.size()) {\r\n //busca el primer posible objeto\r\n while (i < bancoPreguntas.size() && (parcial + bancoPreguntas.get(i).getDificultad()) > pesoMax && bancoPreguntas.get(i).getTiempo()> 0) {\r\n i++;\r\n }\r\n //en caso de encontrar un objeto\r\n if (i < bancoPreguntas.size()) {\r\n //Determina la cantidad de objetos que necesesitaria\r\n k = (pesoMax - parcial) / bancoPreguntas.get(i).getDificultad();\r\n //en caso de que exista la cantidad \r\n \r\n // asignacion de \r\n aux[i] += k;\r\n //se suma el valor el peso total del container\r\n parcial += bancoPreguntas.get(i).getDificultad() * k;\r\n } else {\r\n // en caso de no encontrar mas objetos \r\n parcial = pesoMax;\r\n }\r\n }\r\n return aux;\r\n }", "title": "" }, { "docid": "ea9958f9e4b6daa8610e8d2f7b096976", "score": "0.49621585", "text": "public void data1 () {\n\t\tno_kamar = \"01\";\r\n\t\tnama_mahasiswa = \"Taofik Rakhman Sudrajat\";\r\n\t\tlantai = \"Bawah\";\r\n\t\ttahun = 3;\r\n\t\tharga = tahun * 4500000;\r\n\t\tsuper.data();\r\n\t}", "title": "" }, { "docid": "6d1d17d66cdc2c8a0a483f10dbfe90e4", "score": "0.49596378", "text": "public void addWords(){\n\t\tdigits.put(\"zero\", 0.0);\n\t\tdigits.put(\"one\", 1.0);\n\t\tdigits.put(\"two\", 2.0);\n\t\tdigits.put(\"three\",3.0);\n\t\tdigits.put(\"four\", 4.0);\n\t\tdigits.put(\"five\", 5.0);\n\t\tdigits.put(\"six\", 6.0);\n\t\tdigits.put(\"seven\", 7.0);\n\t\tdigits.put(\"eight\", 8.0);\n\t\tdigits.put(\"nine\", 9.0);\n\t\tnumbers.put(\"ten\",10.0);\n\t\tnumbers.put(\"eleven\", 11.0);\n\t\tnumbers.put(\"twelve\", 12.0);\n\t\tnumbers.put(\"thirteen\", 13.0);\n\t\tnumbers.put(\"fourteen\", 14.0);\n\t\tnumbers.put(\"fifteen\",15.0);\n\t\tnumbers.put(\"sixteen\",16.0);\n\t\tnumbers.put(\"seventeen\",17.0);\n\t\tnumbers.put(\"eighteen\",18.0);\n\t\tnumbers.put(\"nineteen\",19.0);\n\t\ttens.put(\"twenty\",20.0);\n\t\ttens.put(\"thirty\",30.0);\n\t\ttens.put(\"forty\",40.0);\n\t\ttens.put(\"fifty\",50.0);\n\t\ttens.put(\"sixty\",60.0);\n\t\ttens.put(\"seventy\",70.0);\n\t\ttens.put(\"eighty\",80.0);\n\t\ttens.put(\"ninety\",90.0);\n\t\t\n\t\tweightsIndian.put(\"hundred\", 100.0);\n\t\tweightsIndian.put(\"thousand\", 1000.0);\n\t\tweightsIndian.put(\"lakh\", 100000.0);\n\t\tweightsIndian.put(\"crore\", 10000000.0);\n\t\tweightsIndian.put(\"arab\", 1000000000.0);\n\t\tweightsIndian.put(\"kharab\", 1000000000000.0);\n\t\t\n\t\tweightsInternational.put(\"hundred\", 100.0);\n\t\tweightsInternational.put(\"thousand\", 1000.0);\n\t\tweightsInternational.put(\"million\", 1000000.0);\n\t\tweightsInternational.put(\"billion\", 1000000000.0);\n\t\tweightsInternational.put(\"trillion\", 1000000000000.0);\n\t\t\n\t\tordinalNumbers.put(\"first\", 1);\n\t\tordinalNumbers.put(\"second\", 2);\n\t\tordinalNumbers.put(\"third\", 3);\n\t\tordinalNumbers.put(\"fourth\", 4);\n\t\tordinalNumbers.put(\"fifth\", 5);\n\t\tordinalNumbers.put(\"sixth\", 6);\n\t\tordinalNumbers.put(\"seventh\", 7);\n\t\tordinalNumbers.put(\"eighth\", 8);\n\t\tordinalNumbers.put(\"ninth\", 9);\n\t\tordinalNumbers.put(\"tenth\", 10);\n\t\tordinalNumbers.put(\"eleventh\", 11);\n\t\tordinalNumbers.put(\"twelfth\", 12);\n\t\tordinalNumbers.put(\"thirteenth\", 13);\n\t\tordinalNumbers.put(\"fourteenth\", 14);\n\t\tordinalNumbers.put(\"fifteenth\", 15);\n\t\tordinalNumbers.put(\"sixteenth\", 16);\n\t\tordinalNumbers.put(\"seventeenth\", 17);\n\t\tordinalNumbers.put(\"eighteenth\", 18);\n\t\tordinalNumbers.put(\"nineteenth\", 19);\n\t\tordinalNumbers.put(\"twentieth\", 20);\n\t\tordinalNumbers.put(\"hundredth\",100);\n\t\tordinalNumbers.put(\"thousandth\",1000);\n\t\tordinalNumbers.put(\"millionth\",1000000);\n\t\tordinalNumbers.put(\"billionth\",1000000000);\n\t\t\n\t\tordinalWeights.put(\"hundredth\",100);\n\t\tordinalWeights.put(\"thousandth\",1000);\n\t\tordinalWeights.put(\"millionth\",1000000);\n\t\tordinalWeights.put(\"billionth\",1000000000);\n\t\t\n\t\tnonCDfractions.put(\"half\", 0.50);\n\t\tnonCDfractions.put(\"quarter\", 0.25);\n\t\t\n\t\tnonCD.put(\"dozen\", 12.0);\n\t\tnonCD.put(\"both\", 2.0);\n\t\tnonCD.put(\"nil\",0.0);\n\t\tnonCD.put(\"a\", 1.0);\n\t\t\n\t}", "title": "" }, { "docid": "34f0e0ff8397bb13a2b4d0e962fbe72a", "score": "0.4959201", "text": "public int getSampleRate();", "title": "" }, { "docid": "8cc8a3a81dfc42a493495bc74cc16b07", "score": "0.4957383", "text": "private int[][] teeTuhatTaulukko(int koko) {\n int[][] t = new int[koko][koko];\n for (int i = 0; i < koko; i++) {\n for (int j = 0; j < koko; j++) {\n t[i][j] = 1000;\n }\n }\n return t;\n }", "title": "" }, { "docid": "8b1b5295847bc90c8be1e0b8825f745c", "score": "0.49550873", "text": "public void preuzmiMeteoPodatke(String sirina, String duzina) {\n preuzmiPodatkeKorisnika();\n Zadaca2_1WS zadaca2_1WS = new Zadaca2_1WS();\n org.foi.nwtis.igradiski.ws.serveri.MeteoPodaci mp = zadaca2_1WS.preuzmiTemperaturu(korisnik, lozinka, sirina, duzina);\n temperatura = mp.getTemperatureValue().toString();\n vlaga = mp.getHumidityValue().toString();\n temperatura += mp.getTemperatureUnit();\n vlaga += mp.getHumidityUnit();\n }", "title": "" }, { "docid": "3670ff2f94b3a4bc899512ddd28a5f98", "score": "0.4954392", "text": "double defineMET(float velocity){\r\n\t\tif(velocity<3.2)\r\n\t\t\treturn 2.0;\r\n\t\tif(velocity>=3.2 && velocity<4.5)\r\n\t\t\treturn 3.0;\r\n\t\tif(velocity>=4.5 && velocity<5.2)\r\n\t\t\treturn 3.5;\r\n\t\tif(velocity>=5.2 && velocity<6.4)\r\n\t\t\treturn 5.0;\r\n\t\tif(velocity>=6.4 && velocity<7.2)\r\n\t\t\treturn 7.0;\r\n\t\tif(velocity>=7.2 && velocity<8.1)\r\n\t\t\treturn 8.3;\r\n\t\tif(velocity>=9.7 && velocity<8.1)\r\n\t\t\treturn 8.3;\r\n\t\tif(velocity>=8.1 && velocity<9.7)\r\n\t\t\treturn 9.8;\r\n\t\tif(velocity>=9.7 && velocity<11.3)\r\n\t\t\treturn 11.0;\r\n\t\tif(velocity>=11.3 && velocity<12.9)\r\n\t\t\treturn 11.8;\r\n\t\tif(velocity>=12.9 && velocity<14.5)\r\n\t\t\treturn 12.8;\r\n\t\tif(velocity>=14.5 && velocity<16.1)\r\n\t\t\treturn 14.5;\r\n\t\tif(velocity>=16.1 && velocity<17.8)\r\n\t\t\treturn 16.0;\r\n\t\tif(velocity>=17.8 && velocity<19.3)\r\n\t\t\treturn 19.0;\r\n\t\tif(velocity>=19.3 && velocity<20.9)\r\n\t\t\treturn 19.8;\r\n\t\tif(velocity>=20.9 && velocity<22.5)\r\n\t\t\treturn 23.0;\r\n\t\tif(velocity>=20.9)\r\n\t\t\treturn 23.0;\r\n\t\t\r\n\t\treturn 0;\r\n\t}", "title": "" }, { "docid": "4635bc75e540bd2d03b8d5bfca5da519", "score": "0.49475667", "text": "public double getMetres() {\n/* 49 */ return this.unit.metres * this.n;\n/* */ }", "title": "" }, { "docid": "e0012cb669b6e2004e6750a50a8ad6d9", "score": "0.49471417", "text": "public static String[][] acakDominos(int pemain)\n {\n if (pemain < 0) {\n String[][] errDominos=new String[1][1];\n errDominos[0][0]=\"Pemain tidak boleh kurang dari nol\";\n return errDominos;\n }\n else if (pemain > 28) {\n String[][] errDominos=new String[1][1];\n errDominos[0][0]=\"Pemain tidak boleh lebih dari 28\";\n return errDominos;\n }\n \n \n String[] dominos = { \"0-0\",\"0-1\",\"0-2\",\"0-3\",\"0-4\",\"0-5\",\"0-6\",\"1-1\",\"1-2\",\"1-3\",\"1-4\",\"1-5\",\"1-6\",\"2-2\",\"2-3\",\"2-4\",\"2-5\",\"2-6\",\"3-3\",\"3-4\",\"3-5\",\"3-6\",\"4-4\",\"4-5\",\"4-6\",\"5-5\",\"5-6\",\"6-6\" };\n\n int jmlDominos=dominos.length; // jumlah item dominos = 28\n \n for(int i=0; i<jmlDominos; i++) // perulangan sebanyak banyak item dominos\n {\n double index = Math.random() * jmlDominos; \n String temp = dominos[i]; \n dominos[i] = dominos [(int)index]; // karena sebelumnya tipedata index adl double\n dominos[(int)index] = temp; // nukar item i dengan index (random), simpan sementara di temp\n }\n \n jmlDominos--; // 28-1 = 27\n \n int paket = dominos.length / pemain;\n \n String[][] ambilDomino=new String[pemain+1][paket]; //tambahan 1 pemain sebagai sisa\n for (int i = 0; i < pemain; i++) {\n for (int j = 0; j < paket; j++) {\n ambilDomino[i][j]=dominos[jmlDominos];\n jmlDominos--;\n }\n }\n for (int i=jmlDominos; i>=0; i--) { // perulangan utk sisa jmlDominos yang akan ditampilkan\n ambilDomino[pemain][i]= dominos[i];\n jmlDominos--;\n }\n return ambilDomino;\n }", "title": "" }, { "docid": "4637826975937041ce753505da50ac6d", "score": "0.4944571", "text": "public static void main(String[] args) {\n\t\tint[] array = {1, 15, -3, 0, 5, 7, 4, -2, 28, 7, -1, 17, 2, 3, 0, 14, -4} ;\n\t\tint moyenne;\n\t\tint somme=0;\n\t\t\n\t\tfor (int i : array) {\n\t\t\tsomme=somme+i;\n\t\t\t\n\t\t\t\n\t\t}\n\t\tmoyenne=somme/array.length;\n\t\tSystem.out.println(\"La moyenne du tableau est \" + moyenne);\n\t\t\n\t}", "title": "" }, { "docid": "e1834aecba759c9c490f052575355674", "score": "0.49389175", "text": "public int[] calcoloSequenza(int dimensione) {\n\n\n\t\tdouble h = 0.01;\n\t\tint n = 100000;\n\n\t\tdouble[] x = new double[n];\n\t\tdouble[] y = new double[n];\n\n\t\tx[0] = chiave[0];\n\t\ty[0] = chiave[1];\n\n\t\tdouble[] autoval1 = new double[n];\n\t\tdouble[] autoval2 = new double[n];\n\n\t\tdouble[] t = new double[(int) (n * h)];\n\n\t\tfor (int i = 1; i < (int) (n * h); i++) {\n\t\t\tt[i] = t[i - 1] + h;\n\t\t}\n\n\t\tdouble k1x;\n\t\tdouble k2x;\n\t\tdouble k3x;\n\t\tdouble k4x;\n\t\tdouble k1y;\n\t\tdouble k2y;\n\t\tdouble k3y;\n\t\tdouble k4y;\n\t\tboolean controllo1 = true;\n\t\tboolean controllo2 = true;\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tk1x = y[i];\n\t\t\tk1y = Decriptazione.f2(t[i], x[i], y[i]);\n\n\t\t\tk2x = y[i] + 0.5 * h * k1y;\n\t\t\tk2y = Decriptazione.f2(t[i] + 0.5 * h, x[i] + 0.5 * h * k1x, y[i] + 0.5 * h * k1y);\n\n\t\t\tk3x = y[i] + 0.5 * h * k2y;\n\t\t\tk3y = Decriptazione.f2(t[i] + 0.5 * h, x[i] + 0.5 * h * k2x, y[i] + 0.5 * h * k2y);\n\n\t\t\tk4x = y[i] + k3y * h;\n\t\t\tk4y = Decriptazione.f2(t[i] + h, x[i] + k3x * h, y[i] + k3y * h);\n\n\t\t\tx[i + 1] = x[i] + (1.0 / 6.0) * (k1x + 2 * k2x + 2 * k3x + k4x) * h;\n\t\t\ty[i + 1] = y[i] + (1.0 / 6.0) * (k1y + 2 * k2y + 2 * k3y + k4y) * h;\n\n\t\t\tautoval1[i] = rho - 2 * (Math.pow(rho, 2)) * (Math.pow(x[i], 2) + Math.sqrt(\n\t\t\t\t\tMath.pow(rho - 2 * rho * Math.pow(x[i], 2), 2) - (k * Math.sin(w * t[i]) - 4 * rho * x[i] * y[i])));\n\t\t\tautoval2[i] = rho - 2 * (Math.pow(rho, 2)) * (Math.pow(x[i], 2) - Math.sqrt(\n\t\t\t\t\tMath.pow(rho - 2 * rho * Math.pow(x[i], 2), 2) - (k * Math.sin(w * t[i]) - 4 * rho * x[i] * y[i])));\n\t\t\tif (controllo1 & autoval1[i] < 0) {\n\t\t\t\tcontrollo1 = false;\n\t\t\t}\n\t\t\tif (controllo2 & autoval2[i] > 0) {\n\t\t\t\tcontrollo2 = false;\n\t\t\t}\n\t\t\tif (!(controllo1 | controllo2)) {\n\t\t\t\tdouble appoggio = x[i];\n\t\t\t\tx = new double[dimensione];\n\t\t\t\tx[0] = appoggio;\n\t\t\t\tappoggio = y[i];\n\t\t\t\ty = new double[dimensione];\n\t\t\t\ty[0] = appoggio;\n\t\t\t\tt = new double[(int) (dimensione / h)];\n\t\t\t\tfor (int j = 1; j < (int) (dimensione / h); j++) {\n\t\t\t\t\tt[j] = t[j - 1] + h;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < dimensione - 1; i++) {\n\n\t\t\tk1x = y[i];\n\t\t\tk1y = Decriptazione.f2(t[i], x[i], y[i]);\n\n\t\t\tk2x = y[i] + 0.5 * h * k1y;\n\t\t\tk2y = Decriptazione.f2(t[i] + 0.5 * h, x[i] + 0.5 * h * k1x, y[i] + 0.5 * h * k1y);\n\n\t\t\tk3x = y[i] + 0.5 * h * k2y;\n\t\t\tk3y = Decriptazione.f2(t[i] + 0.5 * h, x[i] + 0.5 * h * k2x, y[i] + 0.5 * h * k2y);\n\n\t\t\tk4x = y[i] + k3y * h;\n\t\t\tk4y = Decriptazione.f2(t[i] + h, x[i] + k3x * h, y[i] + k3y * h);\n\n\t\t\tx[i + 1] = x[i] + (1.0 / 6.0) * (k1x + 2 * k2x + 2 * k3x + k4x) * h;\n\t\t\ty[i + 1] = y[i] + (1.0 / 6.0) * (k1y + 2 * k2y + 2 * k3y + k4y) * h;\n\t\t}\n\t\tint[] stheta = new int[dimensione];\n\t\tfor (int i = 0; i < dimensione; i++) {\n\n\t\t\tstheta[i] = ((int) Math.floor(Math.pow(10, 9) * (x[i] - Math.floor(x[i])))) % 255;\n\t\t}\n\t\treturn stheta;\n\t}", "title": "" }, { "docid": "cab68e71c6b16023bce05a92488b76b2", "score": "0.4935542", "text": "private void elegirMejor() {\r\n\t\t/*\r\n\t\t * Si todavia no se seleccionó\r\n\t\t * a ninguno, guardamos al primero.\r\n\t\t */\r\n\t\tif (mejorIndividuo == null) {\r\n\t\t\tmejorIndividuo = individuos[0];\r\n\t\t}\r\n\t\t\r\n\t\tdouble mejorFitness = cantAristas + mejorIndividuo.getFitness();\r\n\t\tfor (int i=0; i < this.getTamaño(); i++) {\r\n\t\t\tif (fitness[i]> mejorFitness) {\r\n\t\t\t\tmejorIndividuo = individuos[i];\r\n\t\t\t\tmejorFitness = cantAristas + mejorIndividuo.getFitness();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "1c8a7be1d339441869bb39a59bdd008c", "score": "0.49337706", "text": "@Override\r\n\t\tpublic String getModelData() {\r\n\t\t\tString str = \"New MOdel \\n\";\t\t\r\n\t\t\tArrayList<String> out =new ArrayList<String>();\r\n\t\t\tint size=0;\r\n\t\t\t//System.out.println(\"Max length of varied n-grams= \"+ res.size());\r\n\t\t\t\r\n\t\t\tfor ( Integer w : res.keySet()) {\r\n\r\n\t\t\t\tout.add(\"\\n ************************* \"+w+\"-gram ********************\\n\");//window\r\n\t\t\t\t//System.out.println(\"\\n ************************* \"+w+\"-gram ********************\\n\");\r\n\t\t\t\r\n\t\t\t\tfor ( String key2 : res.get(w).keySet()) {\r\n\t\t\t\t\tsize++;\r\n\t\t\t\t//\tSystem.out.println(key2+\" (\"+res.get(w).get(key2)+\")\");\r\n\t\t\t\t\tout.add(key2+ \"\\n\");//n-grams\r\n\t\t\t\t}}\r\n\t\t\t//System.out.println(\"Number of varied n-grams= \"+ size);\r\n\t\t\t\r\n\t\t\r\n\treturn \"varied-length n-grams\"; \r\n}", "title": "" }, { "docid": "30b4a1712947fe46df3f015d7c06cdba", "score": "0.49334508", "text": "public static void main(String[] args) {\n DzienTygodnia dzien = new DzienTygodnia(7);\n System.out.println(dzien.zwroc());\n //zad.2\n Miesiac miesiac = new Miesiac(\"luty\");\n System.out.println(miesiac.zwrocPoreRoku());\n //zad.3\n Kalkulator kalk = new Kalkulator(2, 4, '+');\n System.out.println(\"Wynik działania: \" + kalk.policz());\n\n //czesc II\n //zad.1\n int[] tab = {1, 2, 3};\n System.out.println(tab[0] + \" \" + tab[1] + \" \" + tab[2]);\n //zad.2\n int[] tab2 = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};\n int[] tab3 = new int[10];\n for (int i = 0; i <= 9; i++) {\n tab3[i] = tab2[9 - i];\n System.out.print(tab3[i] + \" \");\n }\n System.out.println();\n //zad.3\n //int n=123;\n LiczbaPierwsza lp = new LiczbaPierwsza(17);\n boolean wynik = lp.sprawdz();\n if (wynik ) {\n System.out.println(\"Liczba pierwsza\");\n }\n else {\n System.out.println(\"To nie jest liczba pierwsza\");\n }\n //zad.4\n int[][] tabliczka=new int[10][10];\n\n for (int m=0;m<10;m++)\n {\n for (int n=0;n<10;n++)\n {\n tabliczka[m][n]=(m+1)*(n+1);\n System.out.print(tabliczka[m][n] + \" \");\n }\n System.out.println();\n\n }\n\n\n\n\n //zad.5\n Choinka choinka = new Choinka(5);\n choinka.rysuj();\n\n\n }", "title": "" }, { "docid": "925e062d1ab1c8102db20e9bd13877df", "score": "0.4930301", "text": "public static void main(String[] args) {\n Scanner loe = new Scanner(System.in);\n\n // double variable kuna kaal,pikkus ja kehamassiindeks võivad olla komadega\n double kaal;\n double pikkus;\n double kehamassiindeks;\n // double pikkusruudus;\n\n // all toimub kasutaja sisestatud info muutujasse andmine mille lõime eelnevalt\n System.out.println(\"Palun sisesta oma kaal(kg): \");\n kaal = loe.nextDouble();\n System.out.println(\"Palun sisesta oma pikkus(cm): \");\n pikkus = loe.nextDouble();\n\n // pikkusruudus = Math.pow(kaal, 2);\n // kehamassiindeks = kaal / pikkusruudus;\n\n // arvutus, et leida BMI\n kehamassiindeks = kaal / (pikkus * pikkus);\n\n System.out.println(\"Teie kehamassiindeks on: \" + kehamassiindeks);\n\n }", "title": "" }, { "docid": "177247717cefc0f9131fd7b478328c14", "score": "0.49267128", "text": "private static void tekSiralama() {\n\t\tScanner tek = new Scanner(System.in);\n\t\tSystem.out.println(\" Bir sayı giriniz..\");\n\t\tint sayi=tek.nextInt();\n\t\t\n\t\tfor(int i=0 ;i <= sayi; i++ ) {\n\t\t\tif(i%2==1) {\n\t\t\t\tSystem.out.println(\"tek sayılar :\"+i);\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "bb33915ffa6601f68ea7eaf0717f84b6", "score": "0.49225914", "text": "public void UbahPosisi(int barisE, int kolomE, int pilih, int index){\n try{\n char simbol = GetElementPeta(barisE, kolomE);\n char simbolPeta = GetElementPetaTetap(barisE, kolomE);\n if(pilih == 0){ //gerak ke atas\n int newb = barisE - 1;\n SetElementPeta(newb, kolomE, simbol);\n this.DaftarEngimon.get(index).setBarisPosisi(newb); //ubah nilai baris\n //ubah posisi engimon yg lama jadi element petanya\n SetElementPeta(barisE, kolomE, simbolPeta);\n } else if(pilih == 1){//gerak ke bawah\n int newb2 = barisE + 1;\n SetElementPeta(newb2, kolomE, simbol);\n this.DaftarEngimon.get(index).setBarisPosisi(newb2); //ubah nilai baris\n //ubah posisi engimon yg lama jadi element petanya\n SetElementPeta(barisE, kolomE, simbolPeta);\n } else if(pilih == 2){//gerak ke kiri\n int newk = kolomE - 1;\n SetElementPeta(barisE, newk, simbol);\n this.DaftarEngimon.get(index).setKolomPosisi(newk); //ubah nilai kolom\n //ubah posisi engimon yg lama jadi element petanya\n SetElementPeta(barisE, kolomE, simbolPeta);\n } else { //pilih == 3 //gerak ke kanan\n int newk2 = kolomE + 1;\n SetElementPeta(barisE, newk2, simbol);\n this.DaftarEngimon.get(index).setKolomPosisi(newk2); //ubah nilai kolom\n //ubah posisi engimon yg lama jadi element petanya\n SetElementPeta(barisE, kolomE, simbolPeta);\n }\n// //ubah posisi engimon yg lama jadi element petanya\n// SetElementPeta(barisE, kolomE, simbolPeta);\n } catch(Exception exc){\n System.out.println(exc.getMessage());\n }\n \n }", "title": "" }, { "docid": "40323ff24baef75b5dca8a8c7e1501b6", "score": "0.49198803", "text": "public void pristupiStatistici();", "title": "" }, { "docid": "c4ea89b673c63d81c3e038b55f62c8b5", "score": "0.49190876", "text": "@Override\n\tpublic double mencariPotonganBPJSKetenagakerjaan() {\n\t\treturn 0.01 * mencariGajiKotor();\n\t}", "title": "" }, { "docid": "4cd82d3ae5cdedfa33fa53ac8dd90549", "score": "0.49177617", "text": "@Outgoing(\"heartrate\") \r\n public Multi<Record<String, Integer>> generate() { \r\n return Multi.createFrom().ticks().every(Duration.ofSeconds(10)).onOverflow().drop()\r\n \t\t .map(tick -> {\r\n \t\t\t String name =NameGenerator.generate();\r\n \t\t\t Integer heartrate =random.nextInt(120);\r\n System.err.println(name+\" \"+heartrate);\r\n return Record.of(name, heartrate);\r\n \t\t });\r\n }", "title": "" }, { "docid": "f8c77d86df774861158e396a8eb8a0fa", "score": "0.4917421", "text": "@Override\n\tpublic TcmWindQuarters getWaveQuarters() {\n\t\tif ( waves == null ){\n\t\t\treturn new TcmWindQuarters( tcm.getTcmFcst().get(0).getLocation(), \n\t\t\t\t\t\t0, \n\t\t\t\t\t\tgetRadius( ne12ftField), \n\t\t\t\t\t\tgetRadius( se12ftField), \n\t\t\t\t\t\tgetRadius( sw12ftField),\n\t\t\t\t\t\tgetRadius( nw12ftField) );\n\t\t}\n\t\telse return waves;\n\t}", "title": "" }, { "docid": "5da2284c2052ee3bad4b7d08985cbc28", "score": "0.49170712", "text": "public void setDuracion(int p) { this.duracion = p; }", "title": "" }, { "docid": "d2e49cc8cc86d48fe7d65590c88b7c41", "score": "0.49063307", "text": "private String zwrocadres() {\n Random losuj = new Random();\n String[] nazwy_tab = {\"Kilinskiego\", \"Naramowicka\", \"Barska\", \"Bialostoka\", \"Bielniki\", \"Blawatkowa\", \"Bukowska\", \"Bulgarska\"};\n int indeks_ulicy;\n indeks_ulicy = losuj.nextInt(nazwy_tab.length);\n String nazwa_ulicy = nazwy_tab[indeks_ulicy];\n return nazwa_ulicy;\n }", "title": "" }, { "docid": "eac37817d5554163387660cb589a875e", "score": "0.49051124", "text": "private void createHorizontalChartBaht_KM(int set , float value,String Des){\n\n mChart2.setDrawBarShadow(false);\n\n mChart2.setDrawValueAboveBar(true);\n\n mChart2.setDescription(\"\");\n\n // if more than 60 entries are displayed in the chart, no values will be\n // drawn\n mChart2.setMaxVisibleValueCount(60);\n\n // scaling can now only be done on x- and y-axis separately\n mChart2.setPinchZoom(false);\n\n // draw shadows for each bar that show the maximum value\n // mChart.setDrawBarShadow(true);\n\n // mChart.setDrawXLabels(false);\n\n mChart2.setDrawGridBackground(false);\n\n // mChart.setDrawYLabels(false);\n\n\n XAxis xl = mChart2.getXAxis();\n xl.setPosition(XAxis.XAxisPosition.BOTTOM);\n xl.setDrawAxisLine(true);\n xl.setDrawGridLines(true);\n xl.setGridLineWidth(0.3f);\n\n\n\n\n\n YAxis yl = mChart2.getAxisLeft();\n yl.setDrawAxisLine(true);\n yl.setDrawGridLines(true);\n yl.setGridLineWidth(0.3f);\n yl.setAxisMinValue(0f); // this replaces setStartAtZero(true)\n// yl.setInverted(true);\n\n YAxis yr = mChart2.getAxisRight();\n yr.setDrawAxisLine(true);\n yr.setDrawGridLines(false);\n yr.setAxisMinValue(0f); // this replaces setStartAtZero(true)\n// yr.setInverted(true);\n\n setDataHorizontal(set, value,R.color.green, Des);\n mChart2.animateY(2500);\n\n\n Legend l = mChart2.getLegend();\n l.setPosition(LegendPosition.BELOW_CHART_LEFT);\n l.setFormSize(8f);\n l.setXEntrySpace(4f);\n\n // mChart.setDrawLegend(false);\n\n }", "title": "" }, { "docid": "f87ce9285d43c7c9bcef52a4ca0b5ef9", "score": "0.4904549", "text": "public double tamanhoMedioArrayPares() {\r\n double posicoes = 0;\r\n double somatorio = 0;\r\n for (int i = 0; i < TAMANHO_TABELA; i++) {\r\n if (array[i] != null) {\r\n for (InterfacePalavra p : array[i]) {\r\n somatorio = somatorio + p.numeroDocumentos();\r\n posicoes++;\r\n }\r\n\r\n }\r\n\r\n }\r\n\r\n double media = (somatorio / posicoes);\r\n return media;\r\n }", "title": "" }, { "docid": "257f8277990f2a95d9951064c624d1bd", "score": "0.48957565", "text": "private Double volume() {\n\t\treturn (4*Pi*Math.pow(raio, 3))/3;\n\t}", "title": "" }, { "docid": "7ba3d53134d540c21b9fb9fb91484c0a", "score": "0.48869753", "text": "private double skim(double v) {\n if (v > 1.0) {\n return -((v - 1.0) * skimGain);\n } else if (v < -1.0) {\n return -((v + 1.0) * skimGain);\n }\n return 0;\n }", "title": "" }, { "docid": "bcfeca33c1db8a4e1030ef876c374806", "score": "0.4883457", "text": "public static void tampilkanHasil() {\r\n //Menampilkan semua nilai.\r\n System.out.println(\"\\n=====Hasil Nilai Mahasiswa=====\");\r\n int terbesar = dataNilaiMahasiswa[0];\r\n int terkecil = dataNilaiMahasiswa[0];\r\n for (int i = 0; i < dataNilaiMahasiswa.length; i++) {\r\n System.out.println(\"Nilai Mahasiswa ke-\" + (i+1) + \" = \" + dataNilaiMahasiswa[i]);\r\n }\r\n \r\n //Mencari nilai terbesar dan terkecil.\r\n for (int i = 0; i < (dataNilaiMahasiswa.length - 1); i++) {\r\n if (terbesar < dataNilaiMahasiswa[i + 1]) {\r\n terbesar = dataNilaiMahasiswa[i + 1];\r\n }\r\n if (terkecil > dataNilaiMahasiswa[i + 1]) {\r\n terkecil = dataNilaiMahasiswa[i + 1];\r\n }\r\n }\r\n \r\n //Menampilkan nilai terbesar dan terkecil.\r\n System.out.println(\"\\nNilai terbesar adalah \" + terbesar);\r\n System.out.println(\"Nilai terkecil adalah \" + terkecil + \"\\n\");\r\n System.out.println(\"Petugas : \" + namaPetugas);\r\n }", "title": "" }, { "docid": "41c52aad196d78a511fa39879e086b5f", "score": "0.48820448", "text": "public static void main(String[] args) {\n\t\tSystem.out.println(new Date());\r\n\t\tdouble time1=1251763200.000000;\r\n\t\tTongji3 tong=new Tongji3();\r\n\t\tint sum2=0;\r\n\t\tfor(int i =1;i<13;i++){\r\n\t\t\ttong.getvel(time1);\r\n\t\t\tSystem.out.println(\"----\"+i+\" \"+time1);\r\n\t\t\tSystem.out.println(\"count01 \"+tong.count01);\r\n\t\t\tSystem.out.println(\"count10 \"+tong.count10);\r\n\t\t\tSystem.out.println(\"sum \"+tong.sum);\r\n\t\t\tSystem.out.println(new Date());\r\n\t\t\ttime1+=7200;\r\n\t\t\tsum2+=tong.sum;\r\n\t\t\ttong.count01=0;\r\n\t\t\ttong.count10=0;\r\n\t\t\ttong.sum=0;\r\n\t\t\ttong.temp_count=0;\r\n\t\t}\r\n\t\tSystem.out.println(sum2);\r\n\t\t\r\n\t}", "title": "" }, { "docid": "51ada03bf595c4c17c5ac9425615bbc7", "score": "0.4881379", "text": "public AnharmonicOscillatorsWithCouplingModel() {\n Choice[0] = true; //Free\n startwert[0] = 0.2; //x1\n startwert[1] = 0.0; //x1p\n startwert[2] = 0.2; //y1\n startwert[3] = 0.0; //y1p\n startwert[4] = 0.7; //x2\n startwert[5] = 0.0; //x2p\n startwert[6] = 0.0; //y2\n startwert[7] = 0.0; //y2p\n startwert[8] = D; //D\n startwert_reib = 0; //reib\n }", "title": "" }, { "docid": "9d0d5124a9b0807b84974a0e290cfd91", "score": "0.487611", "text": "@Override\n public void run(){\n\n // Synthesis sampling rate. Double of audible bandwidth\n int SamplingRate = 44100;\n // Get the minimum size of playback buffer\n int buffer_size = AudioTrack.getMinBufferSize(SamplingRate,AudioFormat.CHANNEL_OUT_MONO, AudioFormat.ENCODING_PCM_16BIT);\n // Initialize AudioTrack object with streaming mode, sampling rate, mono format,16bit encoding and previous minimum buffer size calculated\n AudioTrack mAudioTrack = new AudioTrack(AudioManager.STREAM_MUSIC, SamplingRate, AudioFormat.CHANNEL_OUT_MONO, AudioFormat.ENCODING_PCM_16BIT, buffer_size, AudioTrack.MODE_STREAM);\n\n // Array of shorts that will store a part of the generated wave to be played the size of the buffer.\n // There are 10 for each possible button on smartphone\n short samples_button1[] = new short[buffer_size];\n short samples_button2[] = new short[buffer_size];\n short samples_button3[] = new short[buffer_size];\n short samples_button4[] = new short[buffer_size];\n short samples_button5[] = new short[buffer_size];\n short samples_button6[] = new short[buffer_size];\n short samples_button7[] = new short[buffer_size];\n short samples_button8[] = new short[buffer_size];\n short samples_button9[] = new short[buffer_size];\n short samples_button10[] = new short[buffer_size];\n\n // The ResultWave is the normalized sum of each note produced. Is the one send to playback buffer.\n short ResultWave[] = new short[buffer_size];\n\n // Amplitud of all waves generated\n int Amplitud = 10000;\n // 2*pi constant\n double twopi = 8.*Math.atan(1.);\n\n // Define all the possible frequencies possible for the 10 notes at the smartphone depending if\n // exhaling or inhaling.\n double Frequency_button1 = InhaleOrExhale? Notes.D1*Math.pow(2,3):Notes.C1*Math.pow(2,3);\n double Frequency_button2 = InhaleOrExhale? Notes.G1*Math.pow(2,3):Notes.E1*Math.pow(2,3);\n double Frequency_button3 = InhaleOrExhale? Notes.B1*Math.pow(2,3):Notes.G1*Math.pow(2,3);\n double Frequency_button4 = InhaleOrExhale? Notes.D1*Math.pow(2,4):Notes.C1*Math.pow(2,4);\n double Frequency_button5 = InhaleOrExhale? Notes.F1*Math.pow(2,4):Notes.E1*Math.pow(2,4);\n double Frequency_button6 = InhaleOrExhale? Notes.A1*Math.pow(2,4):Notes.G1*Math.pow(2,4);\n double Frequency_button7 = InhaleOrExhale? Notes.B1*Math.pow(2,5):Notes.C1*Math.pow(2,5);\n double Frequency_button8 = InhaleOrExhale? Notes.D1*Math.pow(2,5):Notes.E1*Math.pow(2,5);\n double Frequency_button9 = InhaleOrExhale? Notes.F1*Math.pow(2,5):Notes.G1*Math.pow(2,5);\n double Frequency_button10 = InhaleOrExhale? Notes.A1*Math.pow(2,6):Notes.C1*Math.pow(2,6);\n\n // Auto Vibrato frequency constant of 10Hz\n float AutoVibFreq = 10;\n\n // All the 10 phases of the automatic vibrato.\n float AutoPhase_b1 = 0;\n float AutoPhase_b2 = 0;\n float AutoPhase_b3 = 0;\n float AutoPhase_b4 = 0;\n float AutoPhase_b5 = 0;\n float AutoPhase_b6 = 0;\n float AutoPhase_b7 = 0;\n float AutoPhase_b8 = 0;\n float AutoPhase_b9 = 0;\n float AutoPhase_b10 = 0;\n\n // Phases to evaluate each part of the notes wave generated to be playback\n double phase_button1 = 0.0;\n double phase_button2 = 0.0;\n double phase_button3 = 0.0;\n double phase_button4 = 0.0;\n double phase_button5 = 0.0;\n double phase_button6 = 0.0;\n double phase_button7 = 0.0;\n double phase_button8 = 0.0;\n double phase_button9 = 0.0;\n double phase_button10 = 0.0;\n\n\n // Initialize alpha and beta constants\n double alpha = 0.0;\n double beta = 0.0;\n\n\n // Start audio\n mAudioTrack.play();\n\n // Synthesis loop\n while(!Stop){\n // Assign Alpha and Beta depending of motion in inhale or exhale buttons\n alpha = InhaleOrExhale? InhaleYOffset:ExhaleYOffset;\n beta = InhaleOrExhale? InhaleXOffset:ExhaleXOffset;\n\n // Create a chunk the size of buffer for each note selected\n for(int i=0; i < buffer_size; i++){\n\n // Here are all the possible buttons, each one has:\n // All effects possible: sine, sawtooth, square or triangle wave.\n // Automatic vibrato generation using alpha and beta parameters.\n // Saving of wave phase to generate a continuous wave each tie the loop ends.\n // If a note isn't selected, the array saves zeros.\n\n //************************ FIRST BUTTON SOUNDS *********************************\n if(mPhoneButtonStatus[0]=='1'){\n\n if(SquareEffect) {\n samples_button1[i] = (short) (Amplitud * Math.signum(Math.sin(phase_button1)));\n\n }else if(SawtoothEffect){\n samples_button1[i] = (short) (-4*Amplitud/twopi * Math.atan(1/(Math.tan(phase_button1/2))));\n }else if(TriangleEffect){\n samples_button1[i] = (short) (4*Amplitud/twopi * Math.asin(Math.sin(phase_button1)));\n }\n else{\n samples_button1[i] = (short) (Amplitud * Math.sin(phase_button1));\n }\n\n\n phase_button1 += (float) twopi*(Frequency_button1+(alpha*Frequency_button1*Math.cos(AutoPhase_b1)/12))/SamplingRate;\n if(Math.abs(beta)>0.25) {\n AutoPhase_b1 += twopi * beta * AutoVibFreq / SamplingRate;\n }else{\n AutoPhase_b1 = 0;\n }\n }else{samples_button1[i] = 0;}\n\n //************************ SECOND BUTTON SOUNDS ********************************\n if(mPhoneButtonStatus[1]=='1'){\n\n if(SquareEffect) {\n samples_button2[i] = (short) (Amplitud * Math.signum(Math.sin(phase_button2)));\n\n }else if(SawtoothEffect){\n samples_button2[i] = (short) (-4*Amplitud/twopi * Math.atan(1/(Math.tan(phase_button2/2))));\n }else if(TriangleEffect){\n samples_button2[i] = (short) (4*Amplitud/twopi * Math.asin(Math.sin(phase_button2)));\n }\n else{\n samples_button2[i] = (short) (Amplitud * Math.sin(phase_button2));\n }\n phase_button2 += (float) twopi*(Frequency_button2+(alpha*Frequency_button2*Math.cos(AutoPhase_b2)/12))/SamplingRate;\n if(Math.abs(beta)>0.25) {\n AutoPhase_b2 += twopi * beta * AutoVibFreq / SamplingRate;\n }else{\n AutoPhase_b2 = 0;\n }\n }else{samples_button2[i] = 0;}\n\n //************************ THIRD BUTTON SOUNDS *********************************\n if(mPhoneButtonStatus[2]=='1'){\n\n\n if(SquareEffect) {\n samples_button3[i] = (short) (Amplitud * Math.signum(Math.sin(phase_button3)));\n\n }else if(SawtoothEffect){\n samples_button3[i] = (short) (-4*Amplitud/twopi * Math.atan(1/(Math.tan(phase_button3/2))));\n }else if(TriangleEffect){\n samples_button3[i] = (short) (4*Amplitud/twopi * Math.asin(Math.sin(phase_button3)));\n }\n else{\n samples_button3[i] = (short) (Amplitud * Math.sin(phase_button3));\n }\n phase_button3 += (float) twopi*(Frequency_button3+(alpha*Frequency_button3*Math.cos(AutoPhase_b3)/12))/SamplingRate;\n if(Math.abs(beta)>0.25) {\n AutoPhase_b3 += twopi * beta * AutoVibFreq / SamplingRate;\n }else{\n AutoPhase_b3 = 0;\n }\n }else{samples_button3[i] = 0;}\n\n //************************ FOURTH BUTTON SOUNDS ********************************\n if(mPhoneButtonStatus[3]=='1'){\n\n if(SquareEffect) {\n samples_button4[i] = (short) (Amplitud * Math.signum(Math.sin(phase_button4)));\n\n }else if(SawtoothEffect){\n samples_button4[i] = (short) (-4*Amplitud/twopi * Math.atan(1/(Math.tan(phase_button4/2))));\n }else if(TriangleEffect){\n samples_button4[i] = (short) (4*Amplitud/twopi * Math.asin(Math.sin(phase_button4)));\n }\n else{\n samples_button4[i] = (short) (Amplitud * Math.sin(phase_button4));\n }\n phase_button4 += (float) twopi*(Frequency_button4+(alpha*Frequency_button4*Math.cos(AutoPhase_b4)/12))/SamplingRate;\n if(Math.abs(beta)>0.25) {\n AutoPhase_b4 += twopi * beta * AutoVibFreq / SamplingRate;\n }else{\n AutoPhase_b4 = 0;\n }\n }else{samples_button4[i] = 0;}\n\n\n //************************ FIFTH BUTTON SOUNDS *********************************\n if(mPhoneButtonStatus[4]=='1'){\n\n if(SquareEffect) {\n samples_button5[i] = (short) (Amplitud * Math.signum(Math.sin(phase_button5)));\n\n }else if(SawtoothEffect){\n samples_button5[i] = (short) (-4*Amplitud/twopi * Math.atan(1/(Math.tan(phase_button5/2))));\n }else if(TriangleEffect){\n samples_button5[i] = (short) (4*Amplitud/twopi * Math.asin(Math.sin(phase_button5)));\n }\n else{\n samples_button5[i] = (short) (Amplitud * Math.sin(phase_button5));\n }\n phase_button5 += (float) twopi*(Frequency_button5+(alpha*Frequency_button5*Math.cos(AutoPhase_b5)/12))/SamplingRate;\n if(Math.abs(beta)>0.25) {\n AutoPhase_b5 += twopi * beta * AutoVibFreq / SamplingRate;\n }else{\n AutoPhase_b5 = 0;\n }\n }else{samples_button5[i] = 0;}\n\n\n //************************ SIXTH BUTTON SOUNDS *********************************\n if(mPhoneButtonStatus[5]=='1'){\n\n if(SquareEffect) {\n samples_button6[i] = (short) (Amplitud * Math.signum(Math.sin(phase_button6)));\n\n }else if(SawtoothEffect){\n samples_button6[i] = (short) (-4*Amplitud/twopi * Math.atan(1/(Math.tan(phase_button6/2))));\n }else if(TriangleEffect){\n samples_button6[i] = (short) (4*Amplitud/twopi * Math.asin(Math.sin(phase_button6)));\n }\n else{\n samples_button6[i] = (short) (Amplitud * Math.sin(phase_button6));\n }\n phase_button6 += (float) twopi*(Frequency_button6+(alpha*Frequency_button6*Math.cos(AutoPhase_b6)/12))/SamplingRate;\n if(Math.abs(beta)>0.25) {\n AutoPhase_b6 += twopi * beta * AutoVibFreq / SamplingRate;\n }else{\n AutoPhase_b6 = 0;\n }\n }else{samples_button6[i] = 0;}\n\n\n //************************ SEVENTH BUTTON SOUNDS *******************************\n if(mPhoneButtonStatus[6]=='1'){\n\n if(SquareEffect) {\n samples_button7[i] = (short) (Amplitud * Math.signum(Math.sin(phase_button7)));\n\n }else if(SawtoothEffect){\n samples_button7[i] = (short) (-4*Amplitud/twopi * Math.atan(1/(Math.tan(phase_button7/2))));\n }else if(TriangleEffect){\n samples_button7[i] = (short) (4*Amplitud/twopi * Math.asin(Math.sin(phase_button7)));\n }\n else{\n samples_button7[i] = (short) (Amplitud * Math.sin(phase_button7));\n }\n phase_button7 += (float) twopi*(Frequency_button7+(alpha*Frequency_button7*Math.cos(AutoPhase_b7)/12))/SamplingRate;\n if(Math.abs(beta)>0.25) {\n AutoPhase_b7 += twopi * beta * AutoVibFreq / SamplingRate;\n }else{\n AutoPhase_b7 = 0;\n }\n }else{samples_button7[i] = 0;}\n\n //************************ EIGHTH BUTTON SOUNDS ********************************\n if(mPhoneButtonStatus[7]=='1'){\n\n if(SquareEffect) {\n samples_button8[i] = (short) (Amplitud * Math.signum(Math.sin(phase_button8)));\n\n }else if(SawtoothEffect){\n samples_button8[i] = (short) (-4*Amplitud/twopi * Math.atan(1/(Math.tan(phase_button8/2))));\n }else if(TriangleEffect){\n samples_button8[i] = (short) (4*Amplitud/twopi * Math.asin(Math.sin(phase_button8)));\n }\n else{\n samples_button8[i] = (short) (Amplitud * Math.sin(phase_button8));\n }\n phase_button8 += (float) twopi*(Frequency_button8+(alpha*Frequency_button8*Math.cos(AutoPhase_b8)/12))/SamplingRate;\n if(Math.abs(beta)>0.25) {\n AutoPhase_b8 += twopi * beta * AutoVibFreq / SamplingRate;\n }else{\n AutoPhase_b8 = 0;\n }\n }else{samples_button8[i] = 0;}\n\n //************************ NINETH BUTTON SOUNDS ********************************\n if(mPhoneButtonStatus[8]=='1'){\n\n if(SquareEffect) {\n samples_button9[i] = (short) (Amplitud * Math.signum(Math.sin(phase_button9)));\n }else if(SawtoothEffect){\n samples_button9[i] = (short) (-4*Amplitud/twopi * Math.atan(1/(Math.tan(phase_button9/2))));\n }else if(TriangleEffect){\n samples_button9[i] = (short) (4*Amplitud/twopi * Math.asin(Math.sin(phase_button9)));\n }\n else{\n samples_button9[i] = (short) (Amplitud * Math.sin(phase_button9));\n }\n phase_button9 += (float) twopi*(Frequency_button9+(alpha*Frequency_button9*Math.cos(AutoPhase_b9)/12))/SamplingRate;\n if(Math.abs(beta)>0.25) {\n AutoPhase_b9 += twopi * beta * AutoVibFreq / SamplingRate;\n }else{\n AutoPhase_b9 = 0;\n }\n }else{samples_button9[i] = 0;}\n\n //************************ TENTH BUTTON SOUNDS *********************************\n if(mPhoneButtonStatus[9]=='1'){\n\n if(SquareEffect) {\n samples_button10[i] = (short) (Amplitud * Math.signum(Math.sin(phase_button10)));\n\n }else if(SawtoothEffect){\n samples_button10[i] = (short) (-4*Amplitud/twopi * Math.atan(1/(Math.tan(phase_button10/2))));\n }else if(TriangleEffect){\n samples_button10[i] = (short) (4*Amplitud/twopi * Math.asin(Math.sin(phase_button10)));\n }\n else{\n samples_button10[i] = (short) (Amplitud * Math.sin(phase_button10));\n }\n phase_button10 += (float) twopi*(Frequency_button10+(alpha*Frequency_button10*Math.cos(AutoPhase_b10)/12))/SamplingRate;\n if(Math.abs(beta)>0.25) {\n AutoPhase_b10 += twopi * beta * AutoVibFreq / SamplingRate;\n }else{\n AutoPhase_b10 = 0;\n }\n }else{samples_button10[i] = 0;}\n\n // Calculate the resulting wave by adding all the notes and normalize the amplitude\n // depending on how many notes are selected.\n\n ResultWave[i] = (short) ((samples_button1[i]\n + samples_button2[i]\n + samples_button3[i]\n + samples_button4[i]\n + samples_button5[i]\n + samples_button6[i]\n + samples_button7[i]\n + samples_button8[i]\n + samples_button9[i]\n + samples_button10[i])/NotesPlaying());\n }\n // Send the result wave to playback\n mAudioTrack.write(ResultWave, 0, buffer_size);\n }\n // Stops AudioTrack streaming\n mAudioTrack.stop();\n // Release AudioTrack resources\n mAudioTrack.release();\n\n }", "title": "" }, { "docid": "8a1d24d8024f6a8b689fce5eb8d95d8c", "score": "0.48724228", "text": "@Override\r\n public double hallarVolumen() {\r\n return largo*ancho*altura;\r\n \r\n }", "title": "" }, { "docid": "154adb7f4e1c9df7a6a95fea3aa11262", "score": "0.48718986", "text": "public double getMucthu();", "title": "" }, { "docid": "f751d10b54f372440b93805849e83cc9", "score": "0.4871376", "text": "public static void main(String[] args) {\n\n int n = 0;\n while(n<=2 || n>=10 || n%2==0) {\n n = IOTools.readInt(\"Bitte Zahl eingeben 3-9, ungerade: \");\n }\n\n int[][] quad = new int[n][n];\n int zeile = (int) n / 2; // 5/2 = 2\n int spalte= (int) (n / 2)+1; // 5/2 +1 = 3\n for (int i=1; i<=n*n; i++) {\n quad[zeile][spalte] = i;\n // Erhöhen Sie spalte um 1, erniedrigen Sie zeile um 1.\n spalte++;\n zeile--;\n if (zeile<0) {\n zeile = n-1;\n }\n if (spalte == n) {\n spalte=0;\n }\n if (quad[zeile][spalte] != 0) {\n zeile++;\n spalte++;\n if (zeile == n) {\n zeile = 0;\n }\n if (spalte == n) {\n spalte = 0;\n }\n }\n }\n\n // Ausgabe\n for (int zeilenAusabe=0; zeilenAusabe<n; zeilenAusabe++) {\n System.out.println();\n for (int spaltenAusgabe=0; spaltenAusgabe<n; spaltenAusgabe++){\n\n // optik\n if (quad[zeilenAusabe][spaltenAusgabe] < 10) {\n System.out.print(\" \" +quad[zeilenAusabe][spaltenAusgabe] );\n } else {\n System.out.print(\" \" +quad[zeilenAusabe][spaltenAusgabe] );\n }\n\n }\n\n\n }\n\n }", "title": "" }, { "docid": "45b392fb098f828f091742ce9cea95c3", "score": "0.48673853", "text": "public void escogerSiguienteMaquina0() throws IOException {\n //Si se juega 1vs1 la maquina 0 le da el turno al jugador\n if (!cantMaquina) {\n turno = 0;\n labelTurno.setText(\"Turno de \" + user);\n gameOver();\n //Si se juega 2vs1 se verifica cual de las dos maquinas quedo atascada\n } else {\n turno = 2;\n gameOver();\n if (!gameover) {\n maquina1();\n }\n\n }\n }", "title": "" }, { "docid": "7b4ed34afc424613dcf52375ffbd39f3", "score": "0.486387", "text": "public static void main(String[] args)\n {\n double h, a, b, s1, s2, p;\n Scanner obj = new Scanner(System.in);\n \n System.out.print(\"Masukan ketinggian (h) = \");\n h = obj.nextInt();\n System.out.print(\"Masukan sudut 1 (a) = \");\n a = obj.nextInt();\n System.out.print(\"Masukan sudut 2 (b) = \");\n b = obj.nextInt();\n\n s1 = Math.tan(Math.toRadians(a))*h;\n s2 = Math.tan(Math.toRadians(b))*h;\n p = s1-s2;\n\n System.out.printf(\"Panjang kapal = \" + \"%.1f\",p);\n System.out.print(\" meter\");\n \n }", "title": "" }, { "docid": "b3ae2e1332878a713d637e3d6388759f", "score": "0.48626706", "text": "private void ventanaMusica() {\n\n ArrayList<itfProperty> musicas = objGestor.leerMusica();\n for (itfProperty musica : musicas) {\n\n internalArticulo internalM = new internalArticulo(musica, objGestor, 3, id, recuentoH, recuentoV);\n listaInternalFrames.add(internalM);\n panel.add(internalM);\n internalM.setVisible(true);\n recuentoH++;\n if (recuentoH == 4 || recuentoH == 8 || recuentoH == 12) {\n recuentoV++;\n recuentoH = 0;\n }\n }\n }", "title": "" }, { "docid": "d9468c3290504cb9f8f1e52834941f8d", "score": "0.4860725", "text": "public Wand(float x, float y, float z, float alpha, float beta, float gamma)\r\n {\r\n super(x, y, z, alpha, beta, gamma);\r\n \r\n putz.addParam(new Quader(\"Mitte\", 2.8f ,wdbreite*1/2,1.4f), new Point(-1.55f,0,0.75f)); //Zeichnet den Zement in einer anderen Farbe \r\n // als die Backsteine\r\n \r\n for (int k = 0; k < wdhoehe; k++)\r\n {\r\n \r\n if (k % 2 == 0)\r\n {\r\n \r\n for (int i = 0; i < wdlaenge; i++)\r\n {\r\n \r\n myShape.addParam(new Quader(\"Mitte\", 0.25f, wdbreite, 0.05f), new Point(i * 0.26f + qX, 0, k * 0.06f+boden));\r\n \r\n }\r\n } else\r\n {\r\n myShape.addParam(new Quader(\"Mitte\", 0.125f, wdbreite, 0.05f), new Point(-0.065f + qX, 0, k * 0.06f+boden));\r\n myShape.addParam(new Quader(\"Mitte\", 0.125f, wdbreite, 0.05f),\r\n new Point((wdlaenge - 1) * 0.26f + 0.065f + qX, 0, k * 0.06f+boden));\r\n \r\n for (int i = 0; i < wdlaenge - 1; i++)\r\n {\r\n \r\n myShape.addParam(new Quader(\"Mitte\", 0.25f, wdbreite, 0.05f),\r\n new Point(i * 0.26f + 0.13f + qX, 0, k * 0.06f + boden));\r\n }\r\n }\r\n }\r\n }", "title": "" }, { "docid": "e7c5009fbfa9232abb65c9e93e981218", "score": "0.4859864", "text": "public void mostrarNotas(){\n for(int i = 0;i<12;i++){\n System.out.println(\"Estudiante \"+(i+1)+\" \"+String.format(\"%.2f\",this.notas[i] ));\n }\n}", "title": "" }, { "docid": "6242d72ca9429b864f09287a19dbbf43", "score": "0.48542556", "text": "private void makeMon() {\n\t\t\tmonX=new int[10];\r\n\t\t\tmonY=new int[10];\r\n\t\t\tfor(int a=0;a<10;a++)\r\n\t\t\t{\r\n\t\t\t\tmonX[a]=((int)(Math.random()*16))*50;\r\n\t\t\t\tmonY[a]=((int)(Math.random()*10))*50;\r\n\t\t\t}\r\n\t\t}", "title": "" }, { "docid": "40bbeb57020b430d44c556c992bc6de0", "score": "0.48536348", "text": "public void wkt(){ \n min.setText(\"\"+menit);\n sec.setText(\"\"+detik);\n timer = new Timer(1000, e -> {\n if(detik==0){\n detik=60;\n menit--;\n }\n \n if(menit==0){\n min.setForeground(Color.red);\n sec.setForeground(Color.red);\n tengah.setForeground(Color.red);\n }\n \n if(menit<0){\n menit=0;\n detik=0;\n timer.stop();\n }else{\n detik--;\n min.setText(\"\"+menit);\n sec.setText(\"\"+detik);\n }\n });\n sec.setText(Integer.toString(detik));\n timer.setInitialDelay(0);\n timer.start();\n }", "title": "" }, { "docid": "7decab4ec3639cceedde42507b44769e", "score": "0.48513466", "text": "public static void main ( String[] args ) {\n\t\t\t\t\n\t\tboolean has_header = true;\t\n\t\tString s;\n\t\tMiestas[] miestai = new Miestas[ 50 ];\n\t\t\n\t\tint i;\n\t\tint k = 0;\n\t\tint gyventoju_skaicius = 0;\n\t\tint plotas = 0;\n\t\tint tankis_nuo;\n\t\tint tankis_iki;\n\t\tint Miestas;\n\t\t\n\t\tInputStreamReader stream = new InputStreamReader(System.in);\n\t\t\t\n\t\tBufferedReader reader=new BufferedReader(stream);\t\n\t\t\t\n\t\tSystem.out.println ( \" Miestu skaicius:\" );\n\t\t/* Duomenų įvedimas */\n\t\ttry {\n\t\t\t\n\t\t\tFileReader fr=new FileReader( \"miestai.csv\" );\n\t\t\tBufferedReader frx = new BufferedReader ( fr );\n\t\t\t\n\t\t\twhile ( ( s = frx.readLine() ) != null ) {\n\t\t\t\t\t\n\t\t\t\t\tif ( ! has_header ) { \n\t\t\t\t\t\t\n\t\t\t\t\t\tString[] ss = s.split ( \",\" );\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// System.out.println ( ss [ 0 ] + \" \" + ss [ 1 ] + \" \" + ss [ 2 ] + \" \" + ss [ 3 ] + \" \" + ss.length );\n\t\t\t\t\t\t\n\t\t\t\t\t\tmiestai [ k ] = new Miestas ( ss [ 0 ], Integer.parseInt ( ss [ 1 ] ), Integer.parseInt ( ss [ 2 ] ) );\n\n\t\t\t\t\t\tk++;\n\t\n\t\t\t\t\t} else {\n\n\t\t\t\t\t\thas_header = false;\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfr.close(); \n\t\t\t\t\n\t\t\t\ti = 0;\n\t\t\t\tSystem.out.println ( \" Nuskaitytos miestus is failo: \" ); \n\t\t\t\t\n\t\t\twhile ( i < k ) {\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println ( miestai [ i ].present() );\n\t\t\t\t\ti++;\n\t\t\t\t}\t\n\t\t\t\t\n\t\t\t\tSystem.out.println ();\n\t\t\t\n\t\t\t\tSystem.out.println ( \"gyventoju_skaicius? \" );\n\t\t\t\ts= reader.readLine();\n\t\t\t\tgyventoju_skaicius = Integer.parseInt( s ); \t\t\n\t\t\t\t\n\t\t\t\tSystem.out.println ( \"plotas? \" );\n\t\t\t\ts= reader.readLine();\n\t\t\t\tplotas = Integer.parseInt( s ); \t\t\t\n\t\t\t\t\n\t\t\t\tSystem.out.println ( \"įvesti daikto matmenys: \\n gyventoju_skaicius: \" + gyventoju_skaicius + \" plotas: \" + plotas );\n\t\t\t\t\t\t\t\n\n\t\t\t} catch ( IOException e ) {\n\t\t\t\t\n\t\t\t\tSystem.out.println ( \"Skaitymo klaida\" );\n\t\t\t}\n\t\t\t\n\t\t\tboolean flag_pasiimti_min = true;\n\t\t\t\n\t\t\tint t_miestai = -1; // reiksme -1 uztikrina kad perrenkant dezes, tokios nebus , tai bus mums tinkama deze\n\t\t\n\t\t\tfor ( i = 0; i < k; i++ ) {\n\t\t\t\n\t\t\t\tif ( miestai [ i ]. arYraRibose (gyventoju_skaicius, plotas )){\n\n\t\t\t\t\tif ( flag_pasiimti_min ) {\n\t\t\t\t\t\n\t\t\t\t\t\tt_miestai = i;\n\t\t\t\t\t\tflag_pasiimti_min = false; // bandit be ir su..\n\t\t\t\t\t\t\n\t\t\t\t\t} else {\n\t\t\t\t\t\n\t\t\t\t\t\tif ( miestai [ t_miestai ].tankis() < miestai [ i ].tankis() ) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t\tt_miestai = i;\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\tmiestai [ i ].nustatyti ( true );\n\t\t\t\t}\n\t\t\t}\n\t\t\n\t\t\tfor ( i = 0; i < k; i++ ) {\n\t\t\t\n\t\t\t\tSystem.out.print ( miestai [ i ].present() );\n\t\t\t\t\n\t\t\t\tif ( miestai [ i ].kokia () ) {\n\t\t\t\t\n\t\t\t\t\tSystem.out.print ( \" tinkama \" );\n\t\t\t\t\t\n\t\t\t\t} else {\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.print ( \" netinkama \" );\t\t\t\t\n\t\t\t\t}\n\t\t\t\n\t\t\t\tif ( i == t_miestai ) {\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.print ( \" maziausia \" );\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "076998aefd727f4f039c02e9ac5be31f", "score": "0.4851298", "text": "public void newWave(){\n if(checkWaveEnd()) {\n map = new Map();\n reset();\n wave++;\n newWaveSound.trigger();\n }\n}", "title": "" }, { "docid": "361b64431b1b649cd1f8a840e9bffda6", "score": "0.48506346", "text": "public interface Constatns {\n\n int frameSize = 4096;\n int notesCount = 12;\n int octavesCount = 8;\n int allNotesCount = notesCount * octavesCount;\n int phasesCount = 360;\n\n}", "title": "" }, { "docid": "ebbe3223ccbab27fa762c912c753b032", "score": "0.48497793", "text": "public static void wypiszMacierz(int m){\n double[][] t = new double[1][1];\n switch(m){\n case 0:\n t = macierzLambda;\n break;\n case 1:\n t = macierzD;\n break;\n case 2:\n t = macierzQ;\n break;\n }\n for (int i = 0; i < Ustawienia.ilosc_zmiennych; i++) {\n for (int j = 0; j < Ustawienia.ilosc_zmiennych; j++) {\n System.out.print(t[i][j]+\" \");\n }\n System.out.println();\n }\n }", "title": "" }, { "docid": "d868a4d1f2d7db79347a3f8326e55fe6", "score": "0.48474473", "text": "public double obtenery(String cad){\n point n=cobina(cad);\r\n // reviar separacion de cadena****** urgente\r\n int y=0;\r\n Value a=(Value) this.orden.get(n.getX());\r\n Value b=(Value) this.orden.get(n.getY());\r\n LinkedList obj1=a.getValue();\r\n LinkedList obj2=b.getValue();\r\n int mayor=0;\r\n int menor=0;\r\n if(Math.abs((int)obj1.get(1))>Math.abs((int)obj2.get(1))){\r\n mayor=(int)obj1.get(1);\r\n menor=(int)obj2.get(1);\r\n }\r\n else{\r\n mayor=(int)obj2.get(1);\r\n menor=(int)obj1.get(1);\r\n }\r\n if(mayor>0&&menor>=0){\r\n y=(mayor+menor)/2;\r\n }\r\n if(mayor<0&&menor<=0){\r\n y=(mayor+menor)/2;\r\n }\r\n if(mayor<0&&menor>=0){\r\n int tmp=(Math.abs(mayor)+menor)/2;\r\n y=(mayor)+tmp;\r\n }\r\n if(mayor>0&&menor<=0){\r\n int tmp=(Math.abs(menor)+mayor)/2;\r\n y=((mayor)-tmp);\r\n }\r\n \r\n return y;\r\n }", "title": "" }, { "docid": "62b3864c2cf095a42d7be8050747ccbc", "score": "0.48416987", "text": "void produce() throws InterruptedException {\n\t String data_file = \"/home/cesar/Escritorio/ambient.csv\";\n\t BufferedReader buffer = null;\n\t String line = \"\";\n\t String separator = \";\";\n\t \n\t int i = 1;\n\t \n\t try {\n\t \t//File is read line by line and data published in the corresponding topic. Send leaves Callback object waiting for confirmation\n\t buffer = new BufferedReader(new FileReader(data_file));\n\t while ((line = buffer.readLine()) != null) {\n\t \tString[] value = line.split(separator);\n\t //Magnitude 1 is SO2 \n\t if (value[3].equals(\"1\")) {\n\t \tfor (int j = 1; j<25; j++) {\n\t \t\tProducerRecord<String, String> record = new ProducerRecord<>(\"SO2\", Integer.toString(i),\n\t \t\t\t\t\"M\" + value[6] + \"D\" + value [7] + \"H\" + Integer.toString(j) + \"V\" + value [2*j+6]);\n\t \t\tproducer.send(record, new DemoProducerCallback());\n\t \t\ti++;\n\t \t}\n\t \t//Magnitude 7 is NO \n\t } else if (value[3].equals(\"7\")){\n\t \tfor (int j = 1; j<25; j++) {\n\t \t\tProducerRecord<String, String> record = new ProducerRecord<>(\"NO\", Integer.toString(i),\n\t \t\t\t\t\"M\" + value[6] + \"D\" + value [7] + \"H\" + Integer.toString(j) + \"V\" + value [2*j+6]);\n\t \t\tproducer.send(record, new DemoProducerCallback());\n\t \t\ti++;\n\t \t}\n\t \t//Magnitude 8 is NO2 \n\t } else if (value[3].equals(\"8\")) {\n\t \tfor (int j = 1; j<25; j++) {\n\t \t\tProducerRecord<String, String> record = new ProducerRecord<>(\"NO2\", Integer.toString(i),\n\t \t\t\t\t\"M\" + value[6] + \"D\" + value [7] + \"H\" + Integer.toString(j) + \"V\" + value [2*j+6]);\n\t \t\tproducer.send(record, new DemoProducerCallback());\n\t \t\ti++;\n\t \t}\n\t \t//Magnitude 9 is PM2.5 \n\t } else if (value[3].equals(\"9\")) {\n\t \tfor (int j = 1; j<25; j++) {\n\t \t\tProducerRecord<String, String> record = new ProducerRecord<>(\"PM2.5\", Integer.toString(i),\n\t \t\t\t\t\"M\" + value[6] + \"D\" + value [7] + \"H\" + Integer.toString(j) + \"V\" + value [2*j+6]);\n\t \t\tproducer.send(record, new DemoProducerCallback());\n\t \t\ti++;\n\t \t}\n\t \t//Magnitude 10 is PM10\n\t } else if (value[3].equals(\"10\")) {\n\t \tfor (int j = 1; j<25; j++) {\n\t \t\tProducerRecord<String, String> record = new ProducerRecord<>(\"PM10\", Integer.toString(i),\n\t \t\t\t\t\"M\" + value[6] + \"D\" + value [7] + \"H\" + Integer.toString(j) + \"V\" + value [2*j+6]);\n\t \t\tproducer.send(record, new DemoProducerCallback());\n\t \t\ti++;\n\t \t}\n\t }\n\t //Leaving random delay from 0 to 200 ms between produced messages\n\t Random random = new Random();\n\t\t \tlong time = random.nextInt(200);\n\t\t \tTimeUnit.MILLISECONDS.sleep(time);\n\t }\n\n\t } catch (FileNotFoundException e) {\n\t e.printStackTrace();\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t } finally {\n\t if (buffer != null) {\n\t try {\n\t buffer.close();\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t }\n\t }\n\t }\n\t \n\t\t}", "title": "" } ]
e79202c42c63df29dd672d04d5cc9db8
This method creates a stack of provided elements
[ { "docid": "e175805a0e7edb46d1bf3c8aeb247379", "score": "0.6460914", "text": "public static <T> LinkedStack<T> of(T... elements) {\n throw new ExerciseNotCompletedException(); // todo: implement this method\n }", "title": "" } ]
[ { "docid": "a988def149a1b4108da15de221a5b67d", "score": "0.6776879", "text": "private ImmutableStack(ILinkedList elements) {\n this.top = elements;\n }", "title": "" }, { "docid": "cbe1d935d4b8afb396a2ac13042f47c3", "score": "0.67150235", "text": "public static <T> LinkedStack<T> of(T... elements) {\n var linkedStack = new LinkedStack<T>();\n if (Objects.isNull(elements)) {\n throw new NullPointerException();\n } else if (elements.length < 1) {\n return linkedStack;\n }\n Node<T> nodeTemp = null;\n for (int i = elements.length - 1; i >= 0; i--) {\n if (Objects.nonNull(elements[i])) {\n var newNode = new Node<>(elements[i]);\n if (i != elements.length - 1) {\n nodeTemp.next = newNode;\n nodeTemp = nodeTemp.next;\n } else {\n linkedStack.head = newNode;\n nodeTemp = linkedStack.head;\n }\n linkedStack.size++;\n } else {\n throw new NullPointerException();\n }\n }\n return linkedStack;\n }", "title": "" }, { "docid": "c53745c60759c2b70bea295e0bd260ed", "score": "0.66044563", "text": "static void ToStack(int inputArr[]){\n \tfor(int i=0; i<inputArr.length;i++) {\r\n \t\tstk.push(inputArr[i]);\r\n \t}\r\n }", "title": "" }, { "docid": "4e2957d3906eff96c7c8c6939d828c9c", "score": "0.6508302", "text": "public abstract void push(Object element) throws StackFullException;", "title": "" }, { "docid": "e7e52a5be350f1e6526fdc734caea726", "score": "0.6392752", "text": "void push(T element) throws StackFullException;", "title": "" }, { "docid": "696e5c2535c9e41f2ac0f6f7700fccdb", "score": "0.6332825", "text": "public ImplementQueueUsingStacks() {\n stack = new Stack<Integer>();\n temp = new Stack<Integer>();\n }", "title": "" }, { "docid": "cddd124efd0ddf915af5b6617d27b9fa", "score": "0.6255373", "text": "public ArrayStackTyler()\n {\n elements = new Object[stackSize];\n top = 0;\n }", "title": "" }, { "docid": "d2815d10e0eac90d8b6e82b7d616624d", "score": "0.6223913", "text": "@SuppressWarnings(\"unchecked\")\n\t\tpublic void push(E el) {\n\t\t\tif(stack.length == size()){\t\t\n\t\t\t\tE[] tmp = (E[]) new Object[2*stack.length];\n\t\t\t\tint i = 0;\n\t\t\t\tfor(i = 0; i<=top; i++)\n\t\t\t\t\ttmp[i] = stack[i];\n\t\t\t\tstack = tmp;\n\t\t\t}\n\t\t\ttop++;\n\t\t\tstack[top] = el;\n\t\t}", "title": "" }, { "docid": "69cc60e77030ea417a8f205d5d6bd933", "score": "0.6174534", "text": "@SuppressWarnings(\"unchecked\")\n public MyStackArray(T... data) {\n if (data.length < 6) {\n stack = (T[]) new Object[8];\n } else {\n int a = (data.length / 8) * 8;\n int b = a + 8;\n int x = (data.length - a > b - data.length) ? b : a;\n stack = (T[]) new Object[x];\n }\n for (T item : data) {\n push(item);\n }\n }", "title": "" }, { "docid": "93546caa9898d51204987297a2a32bf9", "score": "0.6162541", "text": "public static void main(String[] args) {\n int stackSize = 5;\r\n\t\tarrayStack arrStack = new arrayStack(stackSize);\r\n\t\t\r\n\t\tarrStack.push('A');\r\n\t\tarrStack.printStack();\r\n\t\t\r\n\t\tarrStack.push('B');\r\n\t\tarrStack.printStack();\r\n\t\t\r\n\t\tarrStack.push('C');\r\n\t\tarrStack.printStack();\r\n\t\t\r\n\t\tarrStack.pop();\r\n\t\tarrStack.printStack();\r\n\t\t\r\n\t\tarrStack.peek();\r\n\t\tarrStack.printStack();\r\n\t\t\r\n\t\tarrStack.clear();\r\n\t\tarrStack.printStack();\r\n\t\t\r\n\t}", "title": "" }, { "docid": "ce80b8d523ab676e8d3e74f49c24b625", "score": "0.61547095", "text": "public static void main(String[] args) {\n GenericStack gs = new GenericStack(5);\n \n ArrayList<String> string = new ArrayList<String>();\n string.add(\"Строка1\");\n string.add(\"Строка1\");\n \n \n try {\n gs.push(20);\n gs.push(40);\n gs.displayStack();\n \n gs.push(60);\n gs.push(80);\n gs.push(\"Hello\");\n gs.displayStack();\n \n gs.pop();\n gs.pop();\n gs.pop();\n gs.displayStack();\n \n gs.pushAll(string);\n gs.displayStack();\n \n gs.popAll(string);\n gs.displayStack();\n } catch (StackException ex) {\n Logger.getLogger(GenericStack.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n System.out.println(\"max elements: \"+gs.getMaxSize());\n System.out.println(\"size of stack: \"+gs.getSize()+\" stackPointer: \"+StackPointer);\n \n System.out.println(\"is stack emty: \"+gs.isEmty());\n System.out.println(\"is stack full: \"+gs.isFull());\n \n \n \n }", "title": "" }, { "docid": "fc4cd36f6c55e627ebddec621920d15e", "score": "0.6136881", "text": "private static void buildTheStack() {\n\t\t\n\t\tboolean[] primes = PrimeNumberGenerator.buildArray(1001);\n\t\tPrimeNumberGenerator.identifyComposites(primes);\n\t\tfor (int i = 0; i < primes.length; i++) {\n\t\t\tif (primes[i])\n\t\t\t\ttheStack.push(i);\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "2aebfe65e48a231e68f4712d2de0f56b", "score": "0.6132714", "text": "@SuppressWarnings( \"unchecked\" )\n public void push( E element ) {\n\n // Pre-condition: the stack is not full\n\n // *first* stores the element at position top, then increments top\n\n elems[ top++ ] = element;\n\n if(top == elems.length){\n elems1 = (E[]) new Object[elems.length + DEFAULT_INC];\n for(int i = 0; i<elems.length; i++){\n elems1[i] = elems[i];\n }\n elems = elems1;\n }\n\n }", "title": "" }, { "docid": "48f16df9421492d24ef0c452049164d6", "score": "0.61190987", "text": "public void push(T element) {\n if(size() == stack.length){\n resize();\n }\n stack[top] = element;\n top++;\n }", "title": "" }, { "docid": "321fa99f5727ac47404e7db206e59d1d", "score": "0.61079115", "text": "void push(){\n scan =new Scanner(System.in);\r\n stack = new java.util.Stack <String>(); \r\n \r\n System.out.println(\"Stack Push (Insert)\");\r\n \r\n System.out.println(\"Enter 'n' Value :\");\r\n n=scan.nextInt();\r\n \r\n System.out.println(\"Enter the data - Push\");\r\n \r\n for (int i = 0; i < n; i++) {\r\n \r\n stack.push(scan.next());\r\n \r\n }\r\n \r\n \r\n }", "title": "" }, { "docid": "297369435426cc3807a956dccd49c20d", "score": "0.6083738", "text": "public ArrayStack() {\n elements = new Object[INITIAL_CAPACITY];\n }", "title": "" }, { "docid": "5fee8f71d55cd3f7236eb54f75937b45", "score": "0.6080703", "text": "public void push(int data){\n for(int i=0;i<stackElements.length;i++){\n if(stackElements[i]==null){\n stackElements[i]=new Element(data);\n top=stackElements[i];\n break;\n }\n }\n }", "title": "" }, { "docid": "59d962b26f119b4a11f3e6a383e8bcf5", "score": "0.60532606", "text": "public static void main(String[] args) {\n List<ArrayStack> stacks = new StackController().getStacks();\r\n ArrayStack s1 = stacks.get(0);\r\n ArrayStack s2 = stacks.get(1);\r\n ArrayStack s3 = stacks.get(2);\r\n\r\n \r\n s1.push(\"A1\"); \r\n s1.push(\"A1\");\r\n s1.push(\"A1\");\r\n s1.push(\"A1\");\r\n s1.push(\"A1\");\r\n s1.push(\"A1\");\r\n s1.push(\"A1\");\r\n s1.push(\"A1\");\r\n \r\n s2.push(\"BBB\");\r\n s2.push(\"CCC\");\r\n s1.push(\"A1\");\r\n s1.push(\"A1\");\r\n s1.push(\"A1\");\r\n s1.push(\"A1\");\r\n s1.push(\"A1\");\r\n s1.push(\"A1\");\r\n s1.push(\"A1\");\r\n // s1.push(\"A1\");\r\n // s1.push(\"A1\");\r\n\r\n System.out.println(s1);\r\n System.out.println(s2);\r\n\r\n }", "title": "" }, { "docid": "c7279d20b26d9b28e9656142080e612e", "score": "0.60297585", "text": "public void push(T element)\n {\n //checks to see if array is full\n if (size() == cap ){ \n // this cycles through array shifting indexes\n for( int i=0;i<cap-1;i++){\n stack[i] = stack[i+1];\n }\n // this is required to make sure that top doesn't exceed bounds\n top--;\n \n }\n stack[top] = element;\n top++;\n }", "title": "" }, { "docid": "42c9db0fe05bd7901627db6cb8d6a0ae", "score": "0.5978107", "text": "public void push(E element) {\n myStack.push(element);\n }", "title": "" }, { "docid": "8359643859b111585e0ac8dab5e41623", "score": "0.59423614", "text": "public static Stack<Integer> _push(int arr[],int n)\n {\n // your code here\n Stack<Integer> st=new Stack<>();\n st.push(arr[0]);\n for(int i=1;i<n;i++){\n if(st.peek()>arr[i]){\n st.push(arr[i]);\n }\n else{\n st.push(st.peek());\n }\n }\n return st;\n }", "title": "" }, { "docid": "4266b2c74ed2a300b6fc448b5b45ca56", "score": "0.5936835", "text": "public void pstack(){\n\tStackVector<Token> tempStack = new StackVector<Token>(); \n\tint size = valueStack.size();\n\tfor (int i = 0; i < size; i++){\n\t tempStack.push(valueStack.pop());\n\t}\n\twhile (!(tempStack.empty())){\n\t System.out.print(tempStack.peek() + \" \");\n\t valueStack.push(tempStack.pop());\n\t}\n }", "title": "" }, { "docid": "406697170a8055ad7de962922b4fa90e", "score": "0.5932251", "text": "public ImplementQueueusingStacks() {\n stack1 = new Stack<>();\n stack2 = new Stack<>();\n }", "title": "" }, { "docid": "5c664e751ba1e22a018fa1b0df90d1aa", "score": "0.591377", "text": "public ITqsStack(){\n this.stack = new LinkedList<>();\n }", "title": "" }, { "docid": "7adb15e4b0454eb399e7b4a1439845f0", "score": "0.5891492", "text": "public void testPush() {\n System.out.println(\"push\");\n ArrayStack stack = new ArrayStack(5);\n stack.push(1);\n stack.push(2);\n stack.push(3);\n stack.push(4);\n stack.push(5);\n stack.push(6);\n }", "title": "" }, { "docid": "d80e714840beb97d3d697a7cef167862", "score": "0.5833687", "text": "public static void main(String[] args)\n {\n Box[] boxes={new Box(1, 2, 3), new Box(4, 5, 6), new Box(3, 7, 4)};\n ArrayList<Box> stack1=createStack(boxes, null);\n ArrayList<Box> stack2=createStackDP(boxes, null);\n System.out.println(stack1);\n System.out.println(stack2);\n\n }", "title": "" }, { "docid": "6aff6eaef34511720dbae78595bd333d", "score": "0.58315116", "text": "public AStack() {\n myStack = new ArrayDeque<E>();\n }", "title": "" }, { "docid": "c99567b5502087e46783fa052acfce37", "score": "0.581348", "text": "public ArrayBasedStack() {\r\n this(100);\r\n }", "title": "" }, { "docid": "98e003023f7216b812ed3c8c1d423ef1", "score": "0.58035576", "text": "public void push(State sta) \n{\nstackArray.insertFirst(sta); \n}", "title": "" }, { "docid": "58ffa86873eed2b4da71dbc4744b45e9", "score": "0.57986957", "text": "@Override\n public IImmutableStack push(Integer item) {\n ILinkedList elements = new ElementNode(item, this.top);\n return new ImmutableStack(elements);\n }", "title": "" }, { "docid": "435c23ad4e9ec142b6e4ad3a1ef9cada", "score": "0.57952434", "text": "private void storeStack( List <City> inNetworks, Stack <City> stack )\n {\n // Store city starting from the last element as Stack is LIFO\n // Therefore to maintain the sequence, store starting from the last element of network\n for ( int i = inNetworks.size() - 1; i >= 0; --i )\n stack.push(inNetworks.get(i));\n }", "title": "" }, { "docid": "ec92654862dfe12400b9d7de6117f7b9", "score": "0.57916117", "text": "public StackFunction(){\r\n top = -1;\r\n size = 100;\r\n stack = new int[size];\r\n }", "title": "" }, { "docid": "cd6f1b4ef4916cff801c699e1f273615", "score": "0.5767502", "text": "public void push(E element) {\n\t\t\n\t\t// Create the new node with the given element. \n\t\tNode newNode = new Node(element);\n\t\t\n\t\tif (tail == null) {\n\t\t\t// If tail is null then the stack is currently empty. \n\t\t\t// If the stack is empty then the head and tail are set to the same element. \n\t\t\thead = newNode;\n\t\t\ttail = newNode;\n\t\t} else {\n\t\t\t// If the stack is not empty, set the next value of tail to the new node and set the tail equal to the new node as the last element. \n\t\t\ttail.next = newNode;\n\t\t\ttail = newNode;\n\t\t}\n\t\t\n\t\tsize++; // Increment size.\n\t}", "title": "" }, { "docid": "12f0babee6425aa33fd324f382d759a7", "score": "0.5757219", "text": "public Stack() {\n elements = new Object[DEFAULT_INITIAL_CAPACITY];\n }", "title": "" }, { "docid": "a355cbfb75778d003890a6c436d0eddc", "score": "0.5754753", "text": "void push(T element);", "title": "" }, { "docid": "7871e53c10fb1b803e5db3520bc6162e", "score": "0.57430995", "text": "private void shiftStacks() {\n if (stackOldestOnTop.isEmpty()) {\n // move elements from stackNewestOnTop to stackOldestOnTop\n // so that newest elements stay at the bottom and oldest\n // elements stay at the top of stackOldestOnTop\n while (!stackNewestOnTop.isEmpty()) {\n stackOldestOnTop.push(stackNewestOnTop.pop());\n }\n }\n }", "title": "" }, { "docid": "94b151b81d215a6ce3a360e7b2cc158c", "score": "0.57371587", "text": "public static void main(String[] args) throws Exception {\n\t\tStackUsingArray stack = new StackUsingArray(5);\n\t\tfor(int i=1;i<=5;i++){\n\t\t\tstack.push(i*10);\n\t\t}\n\t\tStackUsingArray helper = new StackUsingArray(5);\n\t\tstack.display();\n\t\treverseStack(stack,helper,0);\n\t\tstack.display();\n\t}", "title": "" }, { "docid": "3d7903dbec7ec35919cc3d99763ca0a2", "score": "0.57318944", "text": "public static void inputstackablestack() {\n\t\t\r\n\t\tSystem.out.println(\"Enter 4 shits: \");\r\n\t\tString temp =input.nextLine();\r\n\t\t\r\n\t\tString temp2 =input.nextLine();\r\n\t\t\r\n\t\tString temp3 =input.nextLine();\r\n\t\t\r\n\t\tString temp4 =input.nextLine();\r\n\t\t\r\n\t\t\r\n\t\t pileofshit.push(temp);\r\n\t\t pileofshit.push(temp2);\r\n\t\t pileofshit.push(temp3);\r\n\t\t pileofshit.push(temp4);\r\n\t\t \r\n\t\t \r\n\t\t \r\n\t\t choys();\r\n\t\t \r\n\t}", "title": "" }, { "docid": "41a9a4f89f9dfc5f2324e3bb43f8af12", "score": "0.5720054", "text": "public static void main(String[] args) {\n\t\tstack a = new arrayStack();\n\t\tSystem.out.println(a.size());\n\t\ta.push(\"dd\");\n\t\ta.push(\"dd\");\n\t\ta.push(\"dd\");\n\t\ta.push(\"dd\");\n\t\ta.push(\"dd\");\n\n\t\tSystem.out.println(a.size());\n\t\tSystem.out.println(a.peek());\n\t\ta.pop();\n\t\tSystem.out.println(a.size());\n\n\n\t}", "title": "" }, { "docid": "bd2ac498130f78a21310f5b54cefd0f6", "score": "0.5718909", "text": "public static void main(String[] args) {\n\t\t\n\t\tList<Integer> stack = new Stack<Integer>();\n\t\tList<Integer> stack2 = new Stack<Integer>();\n\t\tfor (int i = 1; i <= 10; i++) {\n\t\t\t//Thêm phần tử đã cho tới cuối của stack\n\t\t\tstack.add(i);\n\t\t}\n\t\tstack.add(6);\n\t\t\n\t\tSystem.out.println(\"stack: \" + stack);\n\t\t\n\t\t\n\t\t\n\t\t//Xóa tất cả các phần tử trong mảng\n\t\tstack2.clear();\n\t\tSystem.out.println(\"stack2: \" + stack2);\n\t\t//Thêm tất cả phần tử trong stack vào stack2\n\t\tstack2.addAll(stack);\n\t\tSystem.out.println(\"stack2: \" + stack2);\n\t\t//Xóa phần tử tại index từ List đang gọi và trả về phần tử bị xóa đó.\n\t\tSystem.out.println(\"remove: \" + stack.remove(6));\n\t\tSystem.out.println(\"stack: \" + stack);\n\t\t//Gán 22 tới vị trí 9 bên trong stack\n\t\tstack.set(9,22);\n\t\tSystem.out.println(\"set: \" + stack);\n\t\tSystem.out.println(\"stack: \" + stack);\n\t\t//Trả về một list mà bao gồm các phần tử từ start tới end-1 trong List đang gọi.\n\t\tSystem.out.println(\"subList: \" + stack.subList(3, 7));\n\t\t//Trả về đối tượng được lưu giữ tại index \n\t\tSystem.out.println(\"get index = 3: \" + stack.get(3));\n\t\t//Trả về index của sự xuất hiện đầu tiên của obj trong stack \n\t\tSystem.out.println(\"indexOf index = 6: \" + stack.indexOf(6));\n\t\t//Trả về index của sự xuất hiện cuối cùng của obj trong stack\n\t\tSystem.out.println(\"lastIndexOf index = 6: \" + stack.lastIndexOf(6));\n\t\t\n\t\t\n\t\t//Trả về true nếu stack này chứa phần tử đã cho.\n\t\tSystem.out.println(\"Contains: \" + stack.contains(4));\n\t\t//Trả về kích thước của mảng\n\t\tSystem.out.println(\"Size: \" + stack.size());\n\t\t//Trả về mảng chứa tất cả phần tử trong stack \n\t\tSystem.out.println(\"Size: \" + stack.toArray());\t\n\t}", "title": "" }, { "docid": "2c38c653404eddec9e048d4133ca74ad", "score": "0.5709562", "text": "public ArrayStack() {\n\tstack = new String[10];\n\ttop = stack.length-1;\n }", "title": "" }, { "docid": "8b0240014173af4f8589df0bb0514e03", "score": "0.5704227", "text": "public void push(T data) {\n int count = 0;\n while (stack[count] != null) {\n count++;\n if (count + 1 >= stack.length - (stack.length / 4)) {\n tempStack = Arrays.copyOf(stack, stack.length * 2);\n stack = Arrays.copyOf(tempStack, tempStack.length);\n }\n }\n for (int i = count; i > -1; i--) {\n if (i > 0) {\n stack[i] = stack[i - 1];\n }\n }\n stack[0] = data;\n }", "title": "" }, { "docid": "20a6e1f65073f05f555417e7576e76d5", "score": "0.56840634", "text": "public ArrayStack()\n {\n stack = (T[]) new Object[DEFCAP];\n // final goal is to have an array of T type\n //we create an object in object type and cast it to the T array\n topIndex = -1; \n }", "title": "" }, { "docid": "3119f344355ddc6f6b14c0e277d35583", "score": "0.568123", "text": "@Test\n\tpublic void testPush(){\n\t\tAdtStack stack1 = AdtStackImpl.createS();\n\t\tassertEquals(true,stack1.isEmptyS());\n\t\tstack1.push(1);\n\t\tassertEquals(false,stack1.isEmptyS());\n\t\tassertEquals(1,stack1.top());\n\t\tstack1.pop();\n\t\tassertEquals(true,stack1.isEmptyS());\n\t\tstack1.push(1);\n\t\tstack1.push(1);\n\t\tstack1.push(1);\n\t\tassertEquals(1,stack1.top());\n\t\tstack1.push(2);\n\t\tassertEquals(2,stack1.top());\n\t\t//Negative Zahlen k�nnen gepusht werden\n\t\tstack1.push(-20);\n\t\tassertEquals(-20,stack1.top());\t\t\n\t}", "title": "" }, { "docid": "65f0b98f613c024a99fb5300febc1420", "score": "0.56784177", "text": "public void push(T element);", "title": "" }, { "docid": "c68fa6a363eac13d412556f3299f2acc", "score": "0.5677876", "text": "public void createStack() {\n tos = null;\n }", "title": "" }, { "docid": "234f4a50e7bb0609ae09208118d03c0f", "score": "0.5674099", "text": "public MinStack() {\n elements = new ArrayList<Integer>();\n top = -1;\n }", "title": "" }, { "docid": "16c310a1974bd7c68cb8d102e260d3d4", "score": "0.56588036", "text": "public interface IGenStack<T> {\n\t\n\t\n\tvoid push(T obj) throws StackFullException;\n\t// push object on the end of the stack\n\t// throws StackFullException if stack is full\n\t\n\tT pop() throws StackEmptyException;\n\t// pop last object from end of the stack\n\t// throws StackEmptyException if stack is empty\n}", "title": "" }, { "docid": "85c947dfd3adb23ef89a5ac866fa8b42", "score": "0.5634506", "text": "public static void main(String[] args) throws Exception {\n\t\tDynamic_Stack ds = new Dynamic_Stack();\n\t\tfor (int i = 1; i<=20; i++) {\n\t\t\tds.push(i);\n\t\t\tds.Display();\n\t\t\t\n\t\t}\n\t\tfor (int i = 1; i<=20; i++) {\n\t\t\tds.pop();\n\t\t\tds.Display();\n\t\t\t\n\t\t}\n\n\t}", "title": "" }, { "docid": "3dc036d88589a74bc83c50612c7ff2c0", "score": "0.56299424", "text": "public void push(E e){\n\t\tlist.add(e, 0);\t\t\t\t\t\t\t\t\t// Adds the element to the top of the stack\n\t}", "title": "" }, { "docid": "5e4dd69920a7c720664711bd839fc3a4", "score": "0.562912", "text": "public static void main(String[] args) {\n\t\t\n\t\tStack<Integer> demoStack = new Stack<Integer>();\n\t\t\n\t\t// Now lets push in the elements to this stack and we can use for or foreach loop for this\n\t\t\n\t\tfor (int i = 1 ; i <= 5; i++) {\n\t\t\tdemoStack.push(i);\n\t\t}\n\t\t\n\t\t// Now lets print the values of stack\n\t\t\n\t\tSystem.out.println(demoStack); // Way one\n\t\t\n\t\tSystem.out.println(demoStack.get(0)); // To get the specific value at specific index, index in stack also starts at 0 as this is also list\n\t\t\n\t\tfor(int item: demoStack) {\n\t\t\tSystem.out.println(item); // This is another way to print all the items of a stack.\n\t\t}\n\t\t\n\t\t/*\n\t\t * Now suppose you want to pop out the element, we have to use pop() method and it is going to pop out the element from the top\n\t\t * of a stack as it is list-in-first-out\n\t\t */\n\t\t\n\t\tSystem.out.println(\"Element poped out : \" + demoStack.pop());\n\t\tfor(int item: demoStack) {\n\t\t\tSystem.out.println(item);\n\t\t}\n\t\t// So this will show only 4 elements now in the stack\n\t\t\n\t\t/*\n\t\t * Now suppose if we want to check what is the last element in the stack, for this we can make use of the method called as peek()\n\t\t * note that this method just peeks in and return the value on the top of the stack but don't delete it\n\t\t */\n\t\t\n\t\tSystem.out.println(\"***********************************\");\n\t\tSystem.out.println(\"Last Element on the top of the stack is : \" + demoStack.peek());\n\t\t\n\t\t/*\n\t\t * Another method which we are going to check here is the one used to check whether the stack is empty or not. this can be done using \n\t\t * method named as isEmpty() this return the boolean true id stack is empty otherwise returns false\n\t\t */\n\t\t\n\t\tif(demoStack.isEmpty()) {\n\t\t\tSystem.out.println(\"Stack is empty\");\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"Stack is not empty\");\n\t\t}\n\t\t\n\t\t/* \n\t\t * next is to search the element inside the stack\n\t\t * So lets add some random element inside our stack\n\t\t */\n\t\t\n\t\tdemoStack.push(100);\n\t\t// once added lets check this perticular element present in the stack or not, we can use search() method for this and this method returns\n\t\t// 1 if the element is present in the stack and it returns -1 if element does not present in the stack\n\t\t\n\t\tSystem.out.println(demoStack.search(100)); // This will print 1\n\t\tSystem.out.println(demoStack.search(45)); // this will print -1\n\t\t\n\t}", "title": "" }, { "docid": "0d4c03eaf711050fef1bf45a0df5e06a", "score": "0.5627344", "text": "@SuppressWarnings(\"unchecked\")\n\t\tpublic ArrayStack(int n){\n\t\t\tstack = (E[]) new Object[n];\n\t\t\ttop = -1;\n\t\t}", "title": "" }, { "docid": "e0d758febb8a98b21a9885a80098667f", "score": "0.5622991", "text": "@Test\n\tpublic void testPush() {\n\t\tsetUp2();\n\t\tassertEquals(\"No se agregaron correctamente todos los elementos\",100, stack.darTamanio());\n\t\tassertEquals(\"El ultimo elemento no es el esperado\", 99, (int)new Integer(stack.pop()));\n\t}", "title": "" }, { "docid": "ab796e50b48c3cfcc872da50da054a40", "score": "0.5622544", "text": "public static void main(String[] args) {\n\t\tStackAlgorithmImpl stack = new StackAlgorithmImpl();\r\n\t\tstack.push(12);\r\n\t\tstack.push(14);\r\n\t\tstack.push(3);\r\n\t\tstack.push(5);\r\n\t\tstack.pop();\r\n\t\tstack.printElements();\r\n\t\t\r\n\t}", "title": "" }, { "docid": "01d57eed6edce55b10826c4b6bd2b2f9", "score": "0.56216425", "text": "public PairingHeap<T> push(final T... args) {\n PairingHeap<T> pairingNode = null;\n for (final T arg : args) {\n pairingNode = new PairingHeap<>(arg);\n this.root = this.empty() ?\n pairingNode : this.root.merge(pairingNode, this.lessThan);\n }\n return pairingNode;\n }", "title": "" }, { "docid": "63898eb055b6c8c80a17142aeedb6b90", "score": "0.56159455", "text": "public MinStack() {\n this.stack = new ArrayList<>();\n }", "title": "" }, { "docid": "96302c3ec5e380f7ab1dab27910ddbb8", "score": "0.5607788", "text": "public interface IStack<E> extends Iterable<E>{\r\n\r\n /**\r\n * Pushes an element on the stack.\r\n * @param e the element to push onto this stack.\r\n * @return true if element pushed successfully else false.\r\n */\r\n boolean push(E e);\r\n\r\n /***\r\n * Removes the object at the top of this stack and returns that\r\n * object as the value of this function.\r\n * @return the object at the top of this stack.\r\n * @throws EmptyStackException if this stack is empty.\r\n */\r\n E pop();\r\n\r\n /**\r\n * Looks at the object at the top of this stack without removing it from the stack.\r\n *\r\n * @return the object at the top of this stack.\r\n * @throws EmptyStackException if this stack is empty.\r\n */\r\n E peek();\r\n\r\n /**\r\n * Resets the size of the stack to zero.\r\n */\r\n void clear();\r\n\r\n /**\r\n * Tests if this stack is empty.\r\n *\r\n * @return {@code true} if and only if this stack contains no elements; {@code false} otherwise.\r\n */\r\n boolean isEmpty();\r\n\r\n /**\r\n * Verifies whether stack contains this element, if yes returns true.\r\n * @param e the element to be searched onto this stack.\r\n * @return {@code true} if stack contains this element; {@code false} otherwise.\r\n */\r\n boolean contains(E e);\r\n\r\n /**\r\n * Validates the stack to ensure all elements are valid onto this stack.\r\n * @return\r\n */\r\n boolean validate();\r\n\r\n /**\r\n * Returns the number of elements on the stack.\r\n * @return the count of elements onto this stack.\r\n */\r\n int size();\r\n\r\n /**\r\n * Prints the comma separated list of elements onto this stack.\r\n */\r\n default void print(CharSequence delimiter)\r\n {\r\n StringJoiner joiner = new StringJoiner(delimiter);\r\n for(E e : this) {\r\n joiner.add(Objects.toString(e));\r\n }\r\n System.out.println(joiner);\r\n }\r\n}", "title": "" }, { "docid": "347a36555ce0c8b74946f0f3eaded31f", "score": "0.5604069", "text": "public Stack(){}", "title": "" }, { "docid": "4016d6d4caa6f9f2f03556922bceb2f7", "score": "0.55996794", "text": "public StackFunction(int size){\r\n top=-1;\r\n this.size = size;\r\n stack = new int[size];\r\n }", "title": "" }, { "docid": "74cc01603fbc5cfa0e8cf2483092ecb2", "score": "0.55811703", "text": "public void push() {\n\t\tScanner sc = new Scanner(System.in);\n\t\ttry {\n\t\t\tdo {\n\t\t\t\tSystem.out.println(\"Enter the element to push\");\n\t\t\t\tstack[count] = sc.next();\n\t\t\t\tcount++;\n\t\t\t\tSystem.out.println(\"Continue Y/N : \");\n\t\t\t}while(sc.next().equalsIgnoreCase(\"y\"));\n\t\t}\n\t\tcatch(ArrayIndexOutOfBoundsException exception)\n\t\t{\n\t\t\tSystem.out.println(\"Stack OverFlow\");\n\t\t}\n\t}", "title": "" }, { "docid": "b8b55a5448cdb07cedf7a4b2af28f7fe", "score": "0.5575084", "text": "void push(Object element);", "title": "" }, { "docid": "f8855658807c44dcd2d197088ed4eb5f", "score": "0.55742455", "text": "void push(char element){ this.array[++this.stackTop] = element; }", "title": "" }, { "docid": "610fbe47c308bd1df72985c11ce4ea79", "score": "0.5567694", "text": "public void push (E element)\n\t\tthrows FullStackException;", "title": "" }, { "docid": "cdebc00b0f84f5251822681c08c8470b", "score": "0.5557463", "text": "public static void main(String[] args) {\n\t\t\n\t\tStackArray s = new StackArray(3); \n\t\ttry {\n\t\t\ts.push(1, 1);\n\t\t\ts.push(1, 2);\n\t\t\ts.push(1, 3);\n\t\t\ts.push(2, 4);\n\t\t\ts.push(2, 5);\n\t\t\ts.push(2, 6);\n\t\t\ts.push(3, 7);\n\t\t\ts.push(3, 8);\n\t\t\ts.push(3, 9);\n\t\t\tSystem.out.println(s.peek(2));\n\t\t\ts.pop(2);\n\t\t\tSystem.out.println(s.peek(2));\n\t\t\ts.pop(1);\n\t\t\tSystem.out.println(s.peek(1));\n\t\t\ts.pop(1);\n\t\t\tSystem.out.println(s.peek(1));\n\t\t\ts.pop(1);\n\t\t\tSystem.out.println(s.isEmpty(1));\n\t\t\tSystem.out.println(s.isEmpty(2));\n\t\t\tSystem.out.println(s.isFull(3));\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "378ad40c375d0ede1841abfce96a5014", "score": "0.5555872", "text": "public static void main(String[] args) {\n Stack stackPrincipal = new Stack();\n //4 usuarios registrados de ejemplo\n stackPrincipal.agregarUsuario(\"usuario1\", \"contrasena1\",500);\n stackPrincipal.agregarUsuario(\"usuario2\", \"contrasena2\",200);\n stackPrincipal.agregarUsuario(\"usuario3\", \"contrasena3\",10);\n stackPrincipal.agregarUsuario(\"usuario4\", \"contrasena4\",27);\n //4 etiquetas de ejemplo\n stackPrincipal.agregarEtiqueta(\"java\",\"lenguaje orientado a objetos\");\n stackPrincipal.agregarEtiqueta(\"prolog\",\"lenguaje de paradigma logico\");\n stackPrincipal.agregarEtiqueta(\"scheme\",\"lenguaje de paradigma funcional\");\n stackPrincipal.agregarEtiqueta(\"c++\",\"lenguaje orientado a objetos\");\n //auxiliares para generar 5 preguntas con sus etiquetas respectivas\n ArrayList<String> etiqueta1 = new ArrayList<>();\n etiqueta1.add(\"java\");\n ArrayList<String> etiqueta2 = new ArrayList<>();\n etiqueta1.add(\"prolog\");\n ArrayList<String> etiqueta3 = new ArrayList<>();\n etiqueta1.add(\"scheme\");\n ArrayList<String> etiqueta4 = new ArrayList<>();\n etiqueta1.add(\"c++\");\n //5 preguntas de ejemplo\n \n stackPrincipal.agregarPregunta(1,2,etiqueta1, \"titulo1\", \"contenido1\" , \"fechaDePublicacion1\", \"usuario1\", \"cerrada\", 0);\n stackPrincipal.agregarPregunta(2,0,etiqueta2, \"titulo2\", \"contenido2\" , \"fechaDePublicacion2\", \"usuario2\", \"abierta\", 15);\n stackPrincipal.agregarPregunta(3,5,etiqueta3, \"titulo3\", \"contenido3\" , \"fechaDePublicacion3\", \"usuario3\", \"cerrada\", 0);\n stackPrincipal.agregarPregunta(4,1,etiqueta1, \"titulo4\", \"contenido4\" , \"fechaDePublicacion4\", \"usuario4\", \"abierta\", 0);\n stackPrincipal.agregarPregunta(5,6,etiqueta4, \"titulo5\", \"contenido5\" , \"fechaDePublicacion4\", \"usuario1\", \"cerrada\", 0);\n\n //10 respuestas de ejemplo\n stackPrincipal.agregarRespuesta(1,1, \"usuario1\", \"27/07/2020\", \"contenido1\");\n stackPrincipal.agregarRespuesta(2,2, \"usuario1\", \"07/01/2021\", \"contenido2\");\n stackPrincipal.agregarRespuesta(3,1, \"usuario2\", \"10/07/2020\", \"contenido3\");\n stackPrincipal.agregarRespuesta(2,1, \"usuario2\", \"27/03/2020\", \"contenido4\");\n stackPrincipal.agregarRespuesta(1,2, \"usuario2\", \"02/01/2021\", \"contenido5\");\n stackPrincipal.agregarRespuesta(3,2, \"usuario3\", \"30/11/2020\", \"contenido6\");\n stackPrincipal.agregarRespuesta(2,3, \"usuario3\", \"20/09/2020\", \"contenido7\");\n stackPrincipal.agregarRespuesta(2,4, \"usuario3\", \"12/12/2020\", \"contenido8\");\n stackPrincipal.agregarRespuesta(4,5, \"usuario4\", \"06/07/2020\", \"contenido9\");\n stackPrincipal.agregarRespuesta(5,5, \"usuario4\", \"15/01/2020\", \"contenido10\");\n /**\n * Se genera una variable auxiliar para el menu del programa, la segunda variable \n * que se genera tiene como objetivo almacenar la opcion del usuario al mostrarse\n * el primer menu del programa, segun lo que eliga el usuario se ejecutan diferentes \n * metodos, el de la opcion 1 es login y el de la opcion 2 es register.\n */\n int verificador = 1;\n System.out.println(\"Bienvenido\");\n while(verificador == 1){\n System.out.println( \"1. Login\\n\" + \"2. Register\\n\" + \"3. Search\");\n //creamos vairables auxiliares para almacenar la opcion del usuario\n //una vez que ingrese\n int primeraOpcion;\n Scanner opcion1 = new Scanner(System.in);\n System.out.println(\"INTRODUZCA SU OPCION:\");\n primeraOpcion = opcion1.nextInt();\n /**\n * Si el usuario ingresa el numero uno entonces se le pedira que inicie sesion,\n * si el inicio es exitoso entonces se le mostrara el menu principal del programa en\n * el cual tiene opciones para agregar preguntas y respuestas, dar recompensar,aceptar\n * respuestas de otros usuarios a sus preguntas, cerrar sesion o salir del programa\n */\n if(primeraOpcion == 1){\n Usuario user = new Usuario(\"\",\"\",500);\n int comprobante = user.Login(stackPrincipal,user);\n if(comprobante == 0){\n //una vez iniciada la sesion correctamente entonces se le despliega el menu\n //para que elija una accion.\n System.out.println(\"\\nOpciones disponibles: \\n\" +\n \"1. Agregar nueva pregunta\\n\" +\n \"2. Responder pregunta\\n\" +\n \"3. Dar recompensa\\n\" +\n \"4. Aceptar respuesta\\n\" +\n \"5. Cerrar sesion\\n\" +\n \"6. Salir del programa\");\n //generamos una variable auxiliar para la opcion que escoja el usuario\n int opcion2;\n //este menu funcionara mientras la persona no escoga la opcion 6\n do{\n Scanner opcion = new Scanner(System.in);\n System.out.println(\"INTRODUZCA SU OPCION: \");\n opcion2 = opcion.nextInt();\n switch (opcion2) {\n //en el caso de elegir la primera opcion haremos que el usuario ingrese los datos de la pregunta\n case 1:\n Pregunta question = new Pregunta(stackPrincipal,user);\n break;\n //en el caso de elegir la segunda opcion haremos que el usuario responda alguna pregunta\n case 2:\n Respuesta answer = new Respuesta(stackPrincipal,user);\n break;\n //en el caso de elegir la tercera opcion haremos que el usuario agregue la recompensa\n case 3:\n user.reward(stackPrincipal, user);\n break;\n //en el caso de elegir la cuarta opcion ejecutaremos el metodo accept \n case 4:\n user.accept(stackPrincipal, user);\n break;\n //en el caso de elegir la quinta opcion ejecutaremos el metodo de logout\n case 5:\n opcion2 = user.logout(opcion2);\n break;\n //en el caso de elegir la sexta opcion se indicara por pantalla que el programa se termino\n case 6:\n System.out.println(\"Fin del programa\");;\n verificador = 0;\n break;\n //si se ingresa una opcion distinta, se indicara por pantalla que no es valido\n default:\n System.out.println(\"Opcion no valida\\n\");\n break;\n }\n //mientras el usuario no elija salir del programa se seguira mostrando este menu\n }while (opcion2 != 6);\n }\n }\n //si la primera opcion es 2 entonces haremos que el usuario se registre\n else if(primeraOpcion == 2){\n Usuario user = new Usuario(\"\",\"\",500);\n user.register(stackPrincipal, user);\n }\n //si la primera opcion es 3 entonces haremos ejecucion del metodo search\n else if (primeraOpcion == 3){\n int opcionBusqueda;\n String busqueda;\n System.out.println(\"Opciones de busqueda:\\n1. Texto dentro de pregunta\\n\"\n + \"2. Texto dentro de respuesta\\n\"\n + \"3. Por etiquetas\\n\"\n + \"Escoja el numero de la opcion que desea: \");\n Scanner aux = new Scanner(System.in);\n opcionBusqueda = aux.nextInt();\n //nos aseguramos de que solo se pueda iniciar el metodo si se escoge uno de los 3 criterios mostrados.\n if(opcionBusqueda >= 1 && opcionBusqueda <=3){\n System.out.println(\"Escriba la palabra o criterio que esta buscando: \");\n Scanner aux2 = new Scanner(System.in);\n busqueda = aux2.nextLine();\n stackPrincipal.search(stackPrincipal, opcionBusqueda, busqueda);\n }\n else{\n System.out.println(\"Opcion no valida.\\n\");\n }\n \n }\n }\n }", "title": "" }, { "docid": "193aada363b3f2a13e66a6a270a1423c", "score": "0.5555111", "text": "public static void main(String[] args) {\n\n Stack<String> stack = new Stack<>();\n\n //// добавление элемента в стек\n\n stack.add(\"element1\");\n stack.add(\"element2\");\n stack.add(\"element3\");\n stack.add(\"element4\");\n stack.add(\"element5\");\n\n System.out.println(stack);\n\n /// pop - достает верхний элемент стэка и удаляет его\n\n System.out.println(stack.pop());\n stack.pop();\n\n System.out.println(stack);\n\n stack.push(\"element5\");\n System.out.println(stack);\n\n //// peek - возвращает верхний элемент стэка без его удаления\n System.out.println(stack.peek());\n System.out.println(stack);\n\n ///\n System.out.print(\"Элемент\\\"element5\\\" находится по номеру: \");\n System.out.println(stack.search(\"element5\"));\n\n ///////очистка коллекции\n\n stack.clear();\n\n try {\n System.out.println(stack.pop()); //// будет ошибка(исключение)\n }\n catch (EmptyStackException e) {\n System.err.println(\"Ошибка!!! Стек пустой\");\n }\n\n\n System.out.println();\n System.out.println();\n System.out.println(\"ОЧЕРЕДИ\");\n ////////////////// ОЧЕРЕДИ ////////\n\n //// FIFO - First In First Out\n\n Queue<String> queue = new PriorityQueue<>(5);\n queue.add(\"element1\");\n queue.add(\"element2\");\n queue.add(\"element3\");\n queue.add(\"element4\");\n queue.add(\"element5\");\n\n System.out.println(queue);\n\n // poll, remove - достает первый элемент очереди и удаляет\n System.out.println(queue.poll());\n System.out.println(queue);\n\n //peek, element - возвращает первый элемент очереди без удаления\n System.out.println(queue.peek());\n\n /*/ для домашнего рассмотрения\n if(queue.offer(\"element5\"))\n System.out.println(\"элемент добавлен\");\n else\n System.out.println(\"не удалось добавить элемент\");\n\n\n\n */\n\n UserComparator comparator = new UserComparator();\n Queue<User> users = new PriorityQueue<>(comparator);\n\n Random rand = new Random();\n\n for(int i = 0; i < 10; i++) {\n User u = new User();\n u.setMoney(rand.nextInt(1000));\n users.add(u);\n }\n\n while (true){\n User u = users.poll();\n if(u == null)\n break;\n else\n System.out.println(u);\n }\n\n ////////////// рекурсия /////////////\n //////// Нахождение факториала /////////\n\n System.out.println( factorial1(5));\n System.out.println(factorial2(6));\n\n }", "title": "" }, { "docid": "fc36ecb37bbea5785feefc3dacfba1c0", "score": "0.55386275", "text": "public static void main(String[] args) {\n\t\tArrayTwoStacks s = new ArrayTwoStacks(3);\n\t\ts.push1(10);\n\t\ts.push2(20);\n\t\ts.push1(11);\n\t\t//s.push1(12);\n\t}", "title": "" }, { "docid": "8e14e69c186917a703e36a2a3b63e8cc", "score": "0.5537698", "text": "public ArrayStack(){\n\t\t\tthis(CAPACITY);\n\t\t}", "title": "" }, { "docid": "cb73cb1ac43d07f4ef4024ae85d4f8f5", "score": "0.5529359", "text": "private void addListToStack(List<NestedInteger> nestedList) {\n for (int i = nestedList.size() - 1; i >= 0; i--) {\n stack.push(nestedList.get(i));\n }\n }", "title": "" }, { "docid": "cb73cb1ac43d07f4ef4024ae85d4f8f5", "score": "0.5529359", "text": "private void addListToStack(List<NestedInteger> nestedList) {\n for (int i = nestedList.size() - 1; i >= 0; i--) {\n stack.push(nestedList.get(i));\n }\n }", "title": "" }, { "docid": "35c580b8ea5452ac9905d504b64b61a1", "score": "0.55272275", "text": "public abstract void track_add_stack_element(ITypeRep tr);", "title": "" }, { "docid": "25d6b5e3f1e0b6ad8aa69ca063d082c8", "score": "0.55266726", "text": "public void push(T dataItem) {\r\n\t\tif (stack.length == top) {\r\n\t\t\tT[] tempArray = (T[])(new Object[stack.length]);\r\n\t\t\tfor (int i = 0; i < stack.length; i++) \r\n\t\t\t\ttempArray[i] = stack[i]; \r\n\t\r\n\t\t\tstack = (T[]) (new Object[tempArray.length + sizeIncrease]);\r\n\t\t\tfor (int i = 0; i < tempArray.length; i++) \r\n\t\t\t\tstack[i] = tempArray[i]; \r\n\t\t}\r\n\t\t\r\n\t\tstack[top] = dataItem;\r\n\t\ttop++;\r\n\t\t\t\r\n\t}", "title": "" }, { "docid": "a410e459b5ea9efeae3c126567e29fbf", "score": "0.5526543", "text": "public void push(T elem) {\n // In case the bound is less than zero then no bound will be considered, and\n // the number of elements in the queue is \"infinite\".\n if( bound > 0 ) {\n if (stack.size() == bound) throw new IllegalStateException();\n }\n this.stack.push(elem);\n\n\n }", "title": "" }, { "docid": "e254f52ba5b412e7299f42e25deb70aa", "score": "0.5510923", "text": "public static void main(String[] args) {\n\t\tStackArray array= new StackArray();\r\n\t\tarray.StackOperation();\r\n\t\t\r\n\r\n\t}", "title": "" }, { "docid": "63070246e275b51d38585f64ca344142", "score": "0.5501318", "text": "public static void main(String[] args) {\n\t\tDynamicStack<String> lista = new DynamicStack<String>();\r\n\t\t\r\n\t\tlista.push(\"a\");\r\n\t\tlista.push(\"b\");\r\n\t\tlista.push(\"c\");\r\n\t\tlista.pop();\r\n\t\tlista.push(\"d\");\r\n\t\t\r\n\t\tSystem.out.println(lista.top());\r\n\t\t\r\n\t\tSystem.out.println(\"\\nListado\");\r\n\t\tSystem.out.println(\"=============\");\r\n\t\tdo {\r\n\t\t\tSystem.out.println(lista.pop());\r\n\t\t}while(!lista.isEmpty());\r\n\t}", "title": "" }, { "docid": "89b64741c299d083661c16967388e398", "score": "0.5500729", "text": "public static void main(String[] args) {\n\t\tString str=\"1 2 + 3 4 - 5 6 - * *\";\n\t\tString[] item = str.split(\" \");\n\t\tFixedCapacityStackOfStrings pt = new FixedCapacityStackOfStrings(item,item.length);\n\t\t\n\t\t\n\t\tFixedCapacityStackOfStrings temp=copy(pt);\n\n\t\twhile(!temp.isEmpty())\n\t\t\tSystem.out.print(temp.pop()+\" \");\n\t\n\t\t}", "title": "" }, { "docid": "c8946b14176b1919f8735debeb1e1161", "score": "0.54957485", "text": "public void push(T element)\r\n {\r\n addToFront(element);\r\n \r\n }", "title": "" }, { "docid": "0fd3422a863982871896574b839ed02c", "score": "0.54811597", "text": "public void push(E value) {\n\n\tif (value == null) {\n\t throw new NullPointerException();\n\t}\n\t\n top = new Elem<E>(value, top);\n }", "title": "" }, { "docid": "9895853ce22b1abaaf22784a33faf919", "score": "0.54766464", "text": "@Override\t\n\tpublic void push(int i) {\t\t\t\t//implementing the Stack method declared in interface \n\t\t\n\t\ttop++;\t\t\t\t\t\t\t\t//incrementing the value of top \n\t\tif(top < 5) {\t\t\t\t\t\t//checks if the value of top is less than the array size (pre-defined)\n\t\t\tstack[top] = i;\t\t\t\t\t//if true inserts element to the stack\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(i+\" Cannot be inserted into Stack, Stack Overflow\");\t\t//else displays error message on the console as Stack Overflow\n\t\t\tSystem.exit(0);\t\t\t//exits the program \n\t\t}\t\n\t}", "title": "" }, { "docid": "1aed97e95872bd137eb21933ca3be688", "score": "0.5471457", "text": "public Stack(int size) {\n arr = new int[size + 1];\n top = 0;\n }", "title": "" }, { "docid": "6584bcd9c6ceeb29439e452e663aa2b3", "score": "0.54592824", "text": "public StackL(){}", "title": "" }, { "docid": "81dca3ff5d4d8f41d74d2b78c4b8a3a5", "score": "0.5449874", "text": "public Stack() \n{\nstackArray = new LinkList();\n}", "title": "" }, { "docid": "0fa014fed9ba17cb97a847c569680a2e", "score": "0.544834", "text": "public Stack(int stackSize)\n\t{\n\t\tif (stackSize > 0)\n\t\t{\n\t\t\tsize=stackSize;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"Invalid stack size!\");\n\t\t\tSystem.out.println(\"Using default size of 10!\");\n\t\t\tsize=10;\n\t\t}\n\t\t//initialize a new generic array instance\n\t\tstack = (E[]) new Object[size];\n\t\t//Initialize the top value\n\t\ttop=-1;\n\t}", "title": "" }, { "docid": "10b23f29ed680944696021781206c63f", "score": "0.54467404", "text": "public MyStack(int size) {\n\t\tthis.stackSize = size;\n\t\tthis.stackArr = (T[]) new Object[stackSize];\n\t\tthis.top = -1;\n\t}", "title": "" }, { "docid": "4ec481bbdcb8ae9aca3dfd1aef889d92", "score": "0.5431939", "text": "private SipStack createStack(Properties properties)\n throws PeerUnavailableException {\n try {\n\n // create parameters argument to identify constructor\n Class[] paramTypes = new Class[1];\n paramTypes[0] = Class.forName(\"java.util.Properties\");\n // get constructor of SipStack in order to instantiate\n System.out.println(\"Path Name : \" + getPathName());\n Object test = Class.forName(getPathName() + \".javax.sip.SipStackImpl\");\n System.out.println(\"Class : \" + test.toString());\n Constructor sipStackConstructor = Class.forName(\n getPathName() + \".javax.sip.SipStackImpl\").getConstructor(\n paramTypes);\n\n // Wrap properties object in order to pass to constructor of\n // SipSatck\n Object[] conArgs = new Object[1];\n conArgs[0] = properties;\n // Creates a new instance of SipStack Class with the supplied\n // properties.\n\n SipStack sipStack = (SipStack) sipStackConstructor.newInstance(conArgs);\n sipStackList.add(sipStack);\n String name = properties.getProperty(\"javax.sip.STACK_NAME\");\n this.sipStackByName.put(name, sipStack);\n return sipStack;\n } catch (Exception e) {\n String errmsg = \"The Peer SIP Stack: \"\n + getPathName()\n + \".javax.sip.SipStackImpl\"\n + \" could not be instantiated. Ensure the Path Name has been set.\";\n e.printStackTrace();\n throw new PeerUnavailableException(errmsg, e);\n }\n }", "title": "" }, { "docid": "588ddd565b60743d1351aa789ff1f068", "score": "0.54267836", "text": "public void push(SAX_Element element) {\n\t\tinterpreterStack.push(element);\n\t}", "title": "" }, { "docid": "57b461362042ab7e6f5cde9350011013", "score": "0.5424354", "text": "public void setUp2(){\n\t\tfor(int i=0;i<100;i++){\n\t\t\tstack.push(i);\n\t\t}\n\t}", "title": "" }, { "docid": "a7a9281f62a91ed45be5cc4a3bba5709", "score": "0.5423683", "text": "public MyStack() {\n //构造两个队列,用链式\n //队列q1用于保存所有元素,q2用于出栈时 临时储存队列\n q1 = new LinkedList<>();\n q2 = new LinkedList<>();\n }", "title": "" }, { "docid": "1d2fa5f92ddf567268308c56b749b2a2", "score": "0.54164064", "text": "public NotationStack(int size)\r\n\t{\r\n\t\tthis.size = size;\r\n\t\tthis.first = 0;\r\n\t\tthis.last = -1;\r\n\t\tthis.numElements = 0;\r\n\t\tstack = new Object[this.size];\r\n\t}", "title": "" }, { "docid": "00e3fb8aee220d303b399efcf44cdd73", "score": "0.5402353", "text": "protected void growStack() \n\t{\n\t\tObject newArray[];\n\n\t\tnewArray = new Object[size * 2];\n\t\tfor (int i = 0; i < size; i++)\n\t\t{\n\t\t\tnewArray[i] = array[i];\n\t\t}\n\t\tarray = newArray;\n\t\tsize = size * 2;\n\t}", "title": "" }, { "docid": "14cf4e4370ce59b06d367417677e967b", "score": "0.539803", "text": "public ArrayStack()\r\n {\r\n super();\r\n }", "title": "" }, { "docid": "a2f95405cb5b367d4691037725775b64", "score": "0.5395474", "text": "public static void main(String[] args) {\nStack st = new Stack(4);\r\n\r\nst.push(11);\r\nst.push(2);\r\nst.push(3);\r\nst.push(4);\r\n\r\nSystem.out.println(st.pop());\r\n\r\nst.push(44);\r\nSystem.out.println(st.pop());\r\n\r\n\r\n\t}", "title": "" }, { "docid": "b89a85801767c22f7d2339bc9cd25cdd", "score": "0.5390731", "text": "public static void main(String[] args) throws Exception {\n\t\t\n\t\t//test one!\n\t\tSetOfStacks multiStack = new SetOfStacks(4);\n\t\tmultiStack.push(6);\n\t\tmultiStack.push(5);\n\t\tmultiStack.push(3);\n\t\tmultiStack.push(7);\n\t\tSystem.out.println(multiStack.peek());\n\t\tSystem.out.println(multiStack.currentStack);\n\t\tmultiStack.push(14);\n\t\tSystem.out.println(multiStack.currentStack);\n\t\tSystem.out.println(multiStack.pop());\n\t\tSystem.out.println(multiStack.currentStack);\n\t\t\n\t\t//test two!\n\t\tSetOfStacks multiStack2 = new SetOfStacks(7);\n\t\t\n\t\t//iterate through a few hundred pushes\n\t\tint i = 0;\n\t\twhile(i < 791) {\n\t\t\tmultiStack2.push(i);\n\t\t\ti++;\n\t\t}\n\t\t\n\t\tSystem.out.println(multiStack2.stackCount);\n\t\t\n\t\t\n\n\t}", "title": "" }, { "docid": "8a3ac72316bbe7fbf3bebd17ee197a99", "score": "0.53846455", "text": "public MyStack() {\n data = new LinkedList<>();\n back = new LinkedList<>();\n }", "title": "" }, { "docid": "9071fa7ca09f04abdc1cd427daf54a77", "score": "0.5381557", "text": "public void shiftStacks() {\n if (stackOldest.isEmpty()) {\n while (!stackNewest.isEmpty()) {\n stackOldest.push(stackNewest.pop());\n }\n }\n\n }", "title": "" }, { "docid": "826d59fa5ff3c71863de98d881d4be88", "score": "0.5375932", "text": "void push();", "title": "" }, { "docid": "7cb62dd9c205ce987863e188a18349d4", "score": "0.53720295", "text": "public MinStack() {\n stack = new Stack<>();\n helper = new Stack<>();\n }", "title": "" }, { "docid": "fa144cf7d28d03be89aa3f9c3218350a", "score": "0.53717583", "text": "public Stack(int size) {\n this.stack = new Board[size];\n this.size = size;\n }", "title": "" }, { "docid": "2d714a363da2c0510cffdaf5dce01b2e", "score": "0.5368914", "text": "public static void main(String[] args) {\n\t\tQ4_QueueViaStack<Integer> stack = new Q4_QueueViaStack<>();\r\n\t\tstack.add(1);\r\n\t\tstack.add(2);\r\n\t\tstack.add(3);\r\n\t\tstack.add(4);\r\n\t\tSystem.out.println(stack.pop());\r\n\t\tstack.add(5);\r\n\t\tstack.add(6);\r\n\t\tstack.add(7);\r\n\t\tSystem.out.println(stack.pop());\r\n\t\t\r\n\t}", "title": "" }, { "docid": "5127e1acc738e821faf79a7f5b9802e0", "score": "0.5368169", "text": "public interface IStack<T> extends Iterable<T>{\n\n //methods\n void push(T value) throws NullObjectSendedException;\n void clear();\n boolean isEmpty();\n T pop() throws OutOfBordersException;\n T peek() throws OutOfBordersException;\n}", "title": "" } ]
9893663c39cbafebbd72f8a97da56ef3
The constructor of the CSE visitor.
[ { "docid": "5d28d42163546995612627cfe9f22335", "score": "0.0", "text": "public SubExpressions(ICompilationUnit unit, NamePool pool) throws CompilerException {\n\t\tsuper(unit);\n\t\tthis.pool = pool;\n\t}", "title": "" } ]
[ { "docid": "25660066d98646be2b09a8ac62f0d17f", "score": "0.6913206", "text": "public Visitor() { /* Nothing to do. */ }", "title": "" }, { "docid": "ea83866a8e77f9837cad3f84de0326e9", "score": "0.6876594", "text": "public Visitor() {\n }", "title": "" }, { "docid": "800698a105cc9b32eb1eedeed7b8a87c", "score": "0.6500902", "text": "public MyASTVisitor() {\n\t\t}", "title": "" }, { "docid": "6a05e278829d45c225be1e8b1bb357b9", "score": "0.64167076", "text": "public VisitLog() {\n\t}", "title": "" }, { "docid": "88e7cf3d37f1687b9f002086ac30a905", "score": "0.6384132", "text": "ECImpl() {\n this(\"\", null);\n }", "title": "" }, { "docid": "02e6515ffeb2e2e6709c3ab8eb5abfbb", "score": "0.62314695", "text": "ExprT constructorExpr(ExprFactory exprFactory, MethodGenerator mv, ResourceWriter resourceWriter, GimpleConstructor value);", "title": "" }, { "docid": "e22a28301f946dc2ffc0e5eb16caefda", "score": "0.61731696", "text": "public Stack(E e) {\n stacknode = new SNode(e);\n p = 1;\n }", "title": "" }, { "docid": "f15cc99e50fb18b7f3670b18dead248f", "score": "0.6167617", "text": "protected Expression()\n\t{\n\t\t// no implementation needed \n\t\t// removable when you are done\n\t}", "title": "" }, { "docid": "99fc4d4b8e713436c04183dc3f118758", "score": "0.6049722", "text": "public CloneVisitor() {\n }", "title": "" }, { "docid": "051dca63c6e8fc4a58f50c5888fde19a", "score": "0.6037186", "text": "public Cruiser()\n {\n super('C',3);\n }", "title": "" }, { "docid": "87a1055a954f8c5b50f427cb7e774a17", "score": "0.6024958", "text": "private ERC()\n \t{\n \t\tsuper(\"erc\");\n \t}", "title": "" }, { "docid": "2d4582968304eaa1193128df0a913163", "score": "0.5931605", "text": "public Exon( ) {\n\t}", "title": "" }, { "docid": "2591c6e76daaf5a1f1a70ad88720d0f3", "score": "0.58977306", "text": "ConstructorOverloding(){\n\t\tSystem.out.println(\"i am non-argument constructor\");\n\t}", "title": "" }, { "docid": "4d7b551bd80ef4eda03bb488b93deccd", "score": "0.5890618", "text": "public Coches() {\n super();\n }", "title": "" }, { "docid": "224f426ae23e7a53c72c53b672cbc441", "score": "0.5849968", "text": "public CodeTraverser(CodeVisitor<?> c) {\n child = c;\n }", "title": "" }, { "docid": "28fca3221a113c0c140db6785e1d39a5", "score": "0.5835194", "text": "public Expression(){}", "title": "" }, { "docid": "28fca3221a113c0c140db6785e1d39a5", "score": "0.5835194", "text": "public Expression(){}", "title": "" }, { "docid": "3493003df3dbde685100b9885aae6d35", "score": "0.58144104", "text": "ConstructorIntro(){\n\t\tSystem.out.println(\"I am a constructor\");\n\t}", "title": "" }, { "docid": "3546101cd64edde9a789defb335308d0", "score": "0.5803382", "text": "public ScapegoatTree() {\n }", "title": "" }, { "docid": "014b8e29ad5b7ede2d3305065558ff27", "score": "0.5790929", "text": "public Stove()\r\n {\r\n super();\r\n \r\n }", "title": "" }, { "docid": "b0b2af72f961e7c0cb5eceb7c4c3e70a", "score": "0.57819873", "text": "@Override\n public Void visitRedirectConstructorInvocation(DartRedirectConstructorInvocation node) {\n return null;\n }", "title": "" }, { "docid": "7d155dae55b84c805b65469e9963b5b5", "score": "0.5762869", "text": "protected CostCategory() {\n\t}", "title": "" }, { "docid": "751dca68f4fd86bbabe7ab7603799e91", "score": "0.56947345", "text": "public C() {}", "title": "" }, { "docid": "d5c28b659a38d999ac3212f14256e739", "score": "0.5689726", "text": "public Sundae() {\r\n }", "title": "" }, { "docid": "dc4ce12498c53c5e265d319bce17d628", "score": "0.5687427", "text": "public VCParser(java_cup.runtime.Scanner s, java_cup.runtime.SymbolFactory sf) {super(s,sf);}", "title": "" }, { "docid": "ef95abaa31d797e51c62c675035817f4", "score": "0.5681348", "text": "public Cape()\n {\n \n }", "title": "" }, { "docid": "da235c4aca8dfccb60d39b54c7b1b9e2", "score": "0.5674604", "text": "CPInstruction() {\n }", "title": "" }, { "docid": "872ba770851e0d91e62ee26b109a6412", "score": "0.5672054", "text": "protected Elective() {\n }", "title": "" }, { "docid": "69293ec3eabb17cb0785c682f193dbe7", "score": "0.5667904", "text": "public Machine() {\n\t\t//when calling another constructor, needs to be first line of code\n\t\tthis(\"Arnie\", 0); //versus commented out line. This is calling the constructor that\n\t\t//takes a String and int parameter, in this case the one we made at the bottom\n\t\tSystem.out.println(\"Constructor running\");\n\t\t\n\t\t//name = \"Arnie\";\n\t\t\n\t}", "title": "" }, { "docid": "93f8a682dbf0ac42ad1933029ab7c4bc", "score": "0.5653214", "text": "public CV() { }", "title": "" }, { "docid": "be3d00307f2f5207a792a6550d683009", "score": "0.5639821", "text": "private Compiler() { }", "title": "" }, { "docid": "c861ce2b10e3f9e5ad28b561821852a3", "score": "0.56127673", "text": "@Pointcut(\"execution(*.new(..))\")\n\tpublic void constructorMethod() {\n\t\t\n\t}", "title": "" }, { "docid": "27afccac3a7ebbadea5a7f1d0d252e2a", "score": "0.5604523", "text": "protected abstract void pseudoConstructor();", "title": "" }, { "docid": "21d6405513f96e3d037931bdc9cbf33f", "score": "0.55779064", "text": "Node(E x) // constructor takes one param of class E\n {\n info = x; // set info portion to parameter passed\n next = null;\n }", "title": "" }, { "docid": "34f3500443e665053e87ff7f4f0c4429", "score": "0.5574269", "text": "Genius() {\n System.out.println(\"constructorcalled\");\n }", "title": "" }, { "docid": "06969203b59cda00870559845828b90f", "score": "0.557323", "text": "public CaseSwitchExpression() {\n }", "title": "" }, { "docid": "d1d442fa9210cd45e1119d1d476ea628", "score": "0.5568762", "text": "Casella() {\n \t\n }", "title": "" }, { "docid": "6e21175ea52d2021628bf3d941796f69", "score": "0.55681777", "text": "public Parser(java_cup.runtime.Scanner s) {super(s);}", "title": "" }, { "docid": "59808e1e1764d400e84bd82182e6c075", "score": "0.5566204", "text": "@Pointcut(\"call(*.new(..))\")\n private void constructorPC() {\n }", "title": "" }, { "docid": "084221ab57830579caaf89985fa6ebdd", "score": "0.5564197", "text": "@Override\n public Void visitSuperConstructorInvocation(DartSuperConstructorInvocation node) {\n return null;\n }", "title": "" }, { "docid": "6f86a18108ac31ac467508bf3e4f4c9f", "score": "0.5564181", "text": "private Stack() {\n this(null, null, 0);\n }", "title": "" }, { "docid": "a828746865376bd9b60546b90af4fdca", "score": "0.55507404", "text": "public constructor_example (){\n\t\tSystem.out.println(\"example with parameterised constructor\");\n\t}", "title": "" }, { "docid": "28e6bcfca513d2bd507bac7150aeba72", "score": "0.55410135", "text": "public EcSignature()\n {\n super(EcSignatureTypes.class);\n }", "title": "" }, { "docid": "4f9ab1f9fbdc56e4c1c430a231eb4f23", "score": "0.553999", "text": "public Coop() {\n }", "title": "" }, { "docid": "5dea450c2e72e8bde1bf3c8165d4f6d5", "score": "0.5536646", "text": "public VNF() {}", "title": "" }, { "docid": "70584660920566d27ce9d1f8bc4b0ba5", "score": "0.55307084", "text": "public Sala() {\t\r\n\t}", "title": "" }, { "docid": "fd1b1ce1f54814765d0c907ac97d443c", "score": "0.5529355", "text": "private Compiler() { \n }", "title": "" }, { "docid": "939d8f580541f235934c24cc12ddb84f", "score": "0.55286694", "text": "public OpStack() {\n opStack = new Stack();\n }", "title": "" }, { "docid": "fd69bd4bb2e4e66b4ae654381e3fa1fb", "score": "0.55274737", "text": "public Stack() {\n\n }", "title": "" }, { "docid": "2caba9cd2e3497e3e6466b97d3065f7a", "score": "0.55237526", "text": "private Cc() {}", "title": "" }, { "docid": "6f1304607bcf4d88082d54ee57833e8a", "score": "0.5520525", "text": "private Study() {\n super(\"study\", null);\n }", "title": "" }, { "docid": "beda834aa2a693e66b59f53bc22ef861", "score": "0.55128336", "text": "public EvalVisitor(){\n scope_counter = 0;\n symbolTablePerScope = new Stack<>();\n //symbolTablePerScopeArray = new ArrayList<>();\n scope_counter += 1;\n globalTable = new SymbolTable(scope_counter, null);\n errors = new StringBuffer();\n methodReturnType = \"\";\n visitReturnBlock = false;\n visitMain = false;\n }", "title": "" }, { "docid": "ad97e3b049e2a7675abb00ad2f9a20fa", "score": "0.5495494", "text": "public Erina() { this(null); }", "title": "" }, { "docid": "62fa1ff9cf33d6c40514bda4efc32049", "score": "0.54951245", "text": "public VetClinic()\r\n {\r\n \r\n }", "title": "" }, { "docid": "88ff520c6e90aa8dda088f9139add569", "score": "0.5494685", "text": "public czs(String paramString)\r\n/* 21: */ {\r\n/* 22:25 */ this(paramString, null);\r\n/* 23: */ }", "title": "" }, { "docid": "de6d35c379c922e998c6916e29112792", "score": "0.54898924", "text": "public Parser()\n{\n //nothing to do\n}", "title": "" }, { "docid": "1b26fe8c95a1c971be0222d42f50152b", "score": "0.5488313", "text": "public VerifierGenerator(final ClassContext classContext)\n {\n super(classContext);\n expression = classContext.target.exp;\n }", "title": "" }, { "docid": "906a0a0e5dd298a20538623c0ed424e5", "score": "0.5487065", "text": "ConsCalling() {\n\t\tthis(10);\n\t\tSystem.out.println(\"zero arugmented constructor\");\n\t}", "title": "" }, { "docid": "ec0e149a19476f49b3620c09aac81b34", "score": "0.548307", "text": "public final void jsConstructor() {\n }", "title": "" }, { "docid": "171d87222a3f5467a375f07c61e2cff5", "score": "0.5482667", "text": "public AnalyseurSyntaxique(java_cup.runtime.Scanner s) {super(s);}", "title": "" }, { "docid": "b4bfcfce1971402e302ca9c8947d8704", "score": "0.5479533", "text": "public Exercise_4_01() {\n\n\t}", "title": "" }, { "docid": "ed5346d5ed366d8e2774a856a949947c", "score": "0.5475044", "text": "public VParser(java_cup.runtime.Scanner s, java_cup.runtime.SymbolFactory sf) {super(s,sf);}", "title": "" }, { "docid": "cc12030fe650643deb85b330e8ee892e", "score": "0.5469207", "text": "public Category()\n\t{\n\t\t// Start of user code constructor for Category)\n\t\tsuper();\n\t\t// End of user code\n\t}", "title": "" }, { "docid": "f3c293bfcb9203bb673caa809961cbbd", "score": "0.54652166", "text": "public\n NodeOp()\n {}", "title": "" }, { "docid": "29517ce8258f7197c236978b90274ea5", "score": "0.5465113", "text": "private SieveScript() {\n super();\n }", "title": "" }, { "docid": "5467d5fd4d10f095c746c5bf5263db97", "score": "0.5452577", "text": "protected SyntaxClass() {\n\t\tlineNumber = Global.sourceLineNumber;\n\t}", "title": "" }, { "docid": "674faf19f48224c60e32a4bd981f0b41", "score": "0.5443043", "text": "public Estudiante()\n {\n \tthis(0,\"\",0);\n }", "title": "" }, { "docid": "ebfb45588552a0188cd8a75e27b3f28a", "score": "0.5437219", "text": "public S (){\n\n }", "title": "" }, { "docid": "63fc9a48045af0caea021a6b07e45d06", "score": "0.54365593", "text": "public ConstructorConcept(){ // this is a default constructor, so its having zero parameters\n\t\tSystem.out.println(\"Default Constructor\");\n\t}", "title": "" }, { "docid": "c044e3b87c3ba7c761cb6ad6852b805b", "score": "0.54348797", "text": "public Gene()\n { \n\t super();\n\t \n }", "title": "" }, { "docid": "812be25813e0d376481d3760c19b2e18", "score": "0.5429652", "text": "public Stack() {}", "title": "" }, { "docid": "ea490170ab7cd6af22c171e754bfc979", "score": "0.54243755", "text": "public Vaga() {\n }", "title": "" }, { "docid": "6da0acea6af8b51aa2829721c83d87f3", "score": "0.5424078", "text": "public ODLCompiler ()\r\n\t{\r\n\t}", "title": "" }, { "docid": "9eaefda888ccd07ebf5f009fdaba4837", "score": "0.5417996", "text": "public Machine(){\n //goes to method has string value and integer\n this(\"Arnie\",0);\n System.out.println(\"First constructor running!\");\n }", "title": "" }, { "docid": "b55c14ff5339eb6729aa607f78d390f3", "score": "0.541599", "text": "public Gast()\n { \n }", "title": "" }, { "docid": "35492bfb2fc2fb68a8098907e1750102", "score": "0.5408955", "text": "public Parent() {\n System.out.println(\"inside parent default constructor.\");\n }", "title": "" }, { "docid": "df11c77593a1a2ab61b2e08c909f5847", "score": "0.5405074", "text": "public Candidate() {\n System.out.println(\"Calling a constructor 123\");\n }", "title": "" }, { "docid": "81bb872a316abe0ec040b4676db8178b", "score": "0.54029703", "text": "public Coupe(){}", "title": "" }, { "docid": "68a6a1565255ffc3d195d081b90b9880", "score": "0.53944933", "text": "public SAP(Digraph G) {\n this.G = G;\n }", "title": "" }, { "docid": "cc899c1301905996cbf07137d7568892", "score": "0.5384119", "text": "public LTE() {\n }", "title": "" }, { "docid": "43c6b147b05aef1e176adaf5b514b036", "score": "0.53763795", "text": "public CdrExpr() {\n\t\t// TODO Auto-generated constructor stub\n\t\tinit(this);\n\t}", "title": "" }, { "docid": "ae10c56dfa78c43382da604aa28d196b", "score": "0.5375832", "text": "protected Graph() {\n }", "title": "" }, { "docid": "899b3a774bd9c15c6ac485562224224e", "score": "0.53754663", "text": "public Ccy (java.lang.String ccykey) {\n\t\tsuper(ccykey);\n\t}", "title": "" }, { "docid": "149d8960ada9a29c1dcd072dc1508754", "score": "0.537467", "text": "public StatementCreator(ExpressionStack stack, CodeElement parent) {\n\t\tmStack = stack;\n\t\tmParent = parent;\n\t}", "title": "" }, { "docid": "a5a76e8ab668df2c282d7551d7ec391a", "score": "0.5361746", "text": "private Cyc() {\n }", "title": "" }, { "docid": "218d50612e299647d2420dc70aa6a7fe", "score": "0.5356605", "text": "public Certification() {\n super();\n }", "title": "" }, { "docid": "b16ae8cea118e739077bc84223769f90", "score": "0.5355005", "text": "public Citation() {}", "title": "" }, { "docid": "fcaa6b4f7e2530f7ab597ae63cd2f65f", "score": "0.5354806", "text": "public MbrSess() {\r\n super();\r\n }", "title": "" }, { "docid": "73de61fbb6eab84f4bf505b5cb0f9cda", "score": "0.53527826", "text": "public Steels(){}", "title": "" }, { "docid": "3890841cdee093c79be19778fbb906d1", "score": "0.5351797", "text": "Stack() {\r\n\t\ttos = -1; //why initialized inside constructor?\r\n\t}", "title": "" }, { "docid": "bda77a4f6230e15660498ff091fd11fa", "score": "0.53466445", "text": "Student() {\n System.out.println(\"Constructor called\");\n }", "title": "" }, { "docid": "ecbd99143e6757df4b05562a53b620ba", "score": "0.53448594", "text": "Stack211() { //create a constructor\n\t\tstackTop = -1;\n\t\n\t}", "title": "" }, { "docid": "92b6b948a106ade6cdd2ba4a0d38a0cb", "score": "0.53411335", "text": "public BaseEvaluator() {\n }", "title": "" }, { "docid": "5bedfb78d266c239cdd59ee6d89dec61", "score": "0.53402", "text": "public CatalogFragment() {\n }", "title": "" }, { "docid": "05c8f880b1adba9bd5e010c26fb2ea4b", "score": "0.53284717", "text": "protected Catalog() {\n\t\t\n\t}", "title": "" }, { "docid": "e17b79bd0f2d377db92526825ce2a2e5", "score": "0.53267866", "text": "@Override\n\tpublic boolean visit(ConstructorInvocation node) {\n\t\tprint(\"this(\");\n\t\tint printed = 0;\n\t\tfor (Object o : node.arguments()) {\n\t\t\tExpression t = (Expression)o;\n\t\t\tif (printed > 0) {\n\t\t\t\tprint(\", \");\n\t\t\t}\n\t\t\tt.accept(this);\n\t\t\tprinted++;\n\t\t}\n\t\tprintln(\");\");\n\t\treturn false;\n\t}", "title": "" }, { "docid": "9e6c568b2bd0a560af7f377742c8a852", "score": "0.5326716", "text": "public SCVPException() {\r\n\t\tsuper();\r\n\t}", "title": "" }, { "docid": "682ae12eb9d8c7b23b79df86c85ea510", "score": "0.5326185", "text": "public Stack() {\n stacknode = new SNode();\n p = 0;\n }", "title": "" }, { "docid": "3c6f1ac4c955878ea95eddda821a3db7", "score": "0.53222543", "text": "public parser(java_cup.runtime.Scanner s) {super(s);}", "title": "" }, { "docid": "3c6f1ac4c955878ea95eddda821a3db7", "score": "0.53222543", "text": "public parser(java_cup.runtime.Scanner s) {super(s);}", "title": "" }, { "docid": "3c6f1ac4c955878ea95eddda821a3db7", "score": "0.53222543", "text": "public parser(java_cup.runtime.Scanner s) {super(s);}", "title": "" } ]
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "d4b10ce3282334fc11d645d076b3841a", "score": "0.0", "text": "public User getUser(int pid) {\n\t\treturn null;\n\t}", "title": "" } ]
[ { "docid": "f4bccec648e6eb25ae6f4d7165ffc5a1", "score": "0.7037399", "text": "@Override\n\t\t\tpublic void Goruntule() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "27bc40cf2c5e26e0bf8b70807e0bcaed", "score": "0.6869287", "text": "@Override\r\n\tpublic void caminar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "1acc57d42c31dee937ac33ea6f2a5b0b", "score": "0.6840622", "text": "@Override\r\n\tpublic void comer() {\n\t\t\r\n\t}", "title": "" }, { "docid": "80d20df1cc75d8fa96c12c49a757fc43", "score": "0.65292907", "text": "@Override\n\tprotected void getExras() {\n\t\t\n\t}", "title": "" }, { "docid": "5f8d37aee09bc1e9959f768d6eb0183c", "score": "0.64823484", "text": "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "title": "" }, { "docid": "4d9e164e4e911df1380f4618e0fe7a08", "score": "0.64467317", "text": "OI (){\n\t\t\n\t}", "title": "" }, { "docid": "b7026792f4497bfcada6c43399e85e01", "score": "0.64126825", "text": "@Override\r\n\tpublic void kellton() {\n\t\t\r\n\t}", "title": "" }, { "docid": "5435fed6c0a9345524c30343d8ed9829", "score": "0.6389566", "text": "@Override\r\n\tpublic void entrenar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "d3082ef05aec8dc343ca108ab345f43a", "score": "0.63474625", "text": "@Override\r\n\tpublic void morir() {\n\t\t\r\n\t}", "title": "" }, { "docid": "063ae6a38469d06ddf88fd9af6522171", "score": "0.6304485", "text": "@Override\r\n\tpublic void guru() {\n\t\t\r\n\t}", "title": "" }, { "docid": "d4e15b200c2022658af267c700b34269", "score": "0.6270301", "text": "@Override\n\tpublic void anlegen() {\n\t\t\n\t}", "title": "" }, { "docid": "582acaef2e3110454651d58f22c1b299", "score": "0.62561363", "text": "public void mo14492g() {\n }", "title": "" }, { "docid": "df89b968807fade64158ed6c7401bc7a", "score": "0.6252776", "text": "@Override\r\n\tpublic void afficher() {\n\t\t\r\n\t}", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.62387824", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "bd9b859f3a9c1a1565a6602ccdbe7e59", "score": "0.61685234", "text": "@Override\n\tpublic void fiyatt() {\n\n\t}", "title": "" }, { "docid": "a2392cc71aaf87bc730f13f37ecdb439", "score": "0.6155392", "text": "private void apparence()\r\n\t\t{\r\n\t\t//Rien\r\n\t\t}", "title": "" }, { "docid": "fa32f830910aeae71dc86bf338a8b0fc", "score": "0.61477494", "text": "@Override\n\tpublic void genrator() {\n\n\t}", "title": "" }, { "docid": "a6e9388ba580a030c48b527221f8e81a", "score": "0.6142013", "text": "@Override\n\tpublic void actuar() {\n\t\t\n\t}", "title": "" }, { "docid": "7ba2946d983bb1e7f8bf10a547e6dc3f", "score": "0.61416274", "text": "public void mo14489d() {\n }", "title": "" }, { "docid": "fcaf77b6f021a702cb2ac62e6c374cbd", "score": "0.6102585", "text": "@Override\r\n\tpublic void afficher() {\n\r\n\t}", "title": "" }, { "docid": "12c148d05fe753983614cee07240d8f6", "score": "0.6073492", "text": "@Override\n\t\t\t\tpublic void ll() {\n\t\t\t\t\t\n\t\t\t\t}", "title": "" }, { "docid": "ad4d9339a0e3b347b6df9466d063badd", "score": "0.6070278", "text": "public void piocher(){\n\t\t\n\t}", "title": "" }, { "docid": "42693116fba02f3f07be1ab752c6d9bc", "score": "0.60624325", "text": "@Override\r\n\tpublic void concentrarse() {\n\t\t\r\n\t}", "title": "" }, { "docid": "5c8e848472fb111129ff96ea7e3eea3d", "score": "0.6059708", "text": "@Override\n public void pintar() {\n \n }", "title": "" }, { "docid": "817efc043b4e1d7ba918f254f9fa5ae6", "score": "0.6056336", "text": "@Override\n public void taunt() {\n\n }", "title": "" }, { "docid": "d18a5453cb937c44d51c46c967f1f4f6", "score": "0.60446644", "text": "protected void method_3848() {}", "title": "" }, { "docid": "df970d9257b3282612e3b7ad881bca60", "score": "0.60158736", "text": "protected void bhjp5027AcedeMhjj027a() {\n }", "title": "" }, { "docid": "6e6512370dbb6f9cb6dcc13bd5aa3b2d", "score": "0.601364", "text": "@Override\n\tvoid absone() {\n\t\t\n\t}", "title": "" }, { "docid": "5fa8025455ce490980ad8cccfd13eea3", "score": "0.5964039", "text": "public void mo5201a() {\n }", "title": "" }, { "docid": "be358957d7b1e72f6001c386d8960179", "score": "0.5962345", "text": "@Override\n public void menace() {\n }", "title": "" }, { "docid": "be358957d7b1e72f6001c386d8960179", "score": "0.5962345", "text": "@Override\n public void menace() {\n }", "title": "" }, { "docid": "90e62de5f767b081d1ecd30f250f7e27", "score": "0.5956225", "text": "@Override\n\t\tpublic void ll() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "408c943a1e709ecc31c924c09b2315eb", "score": "0.59255856", "text": "protected void bhyp0200RotinaDatas() {\n }", "title": "" }, { "docid": "1a4f9aa6f736074c80c425a66e966e33", "score": "0.59160185", "text": "@Override\n\tpublic void acariciar() {\n\n\t}", "title": "" }, { "docid": "a82715cbd2b63f8780c6a8d4d9ca9642", "score": "0.5904648", "text": "@Override\r\n\tpublic void getBalalnce() {\n\t\t\r\n\t}", "title": "" }, { "docid": "afad8999ad242028a092a07078328021", "score": "0.58859384", "text": "public void mo55240a() {\n }", "title": "" }, { "docid": "afad8999ad242028a092a07078328021", "score": "0.58859384", "text": "public void mo55240a() {\n }", "title": "" }, { "docid": "40be4915804d3229e08fed067ec03fd6", "score": "0.58742195", "text": "Bug_616419() {\r\n\t}", "title": "" }, { "docid": "2b60191c95bfebe3c1552e6c0a013032", "score": "0.5870847", "text": "@Override\r\npublic void generate() {\n\t\r\n}", "title": "" }, { "docid": "efaf1962840c7f5346e81dc22773c34b", "score": "0.58510834", "text": "@Override\n protected void init() {\n\n }", "title": "" }, { "docid": "cf22f889d7fbcd272d230fe8e0354d0c", "score": "0.5832401", "text": "public void mo5203c() {\n }", "title": "" }, { "docid": "7d4da85943fb6a6ba61dac3c9ae538b3", "score": "0.58321035", "text": "@Override\n\tpublic void morir() {\n\t\t\n\t}", "title": "" }, { "docid": "5c40bd2e5c1d492aac9d5983bf52d2e3", "score": "0.5811589", "text": "@Override\n\tpublic void vericar() {\n\t\t\n\t}", "title": "" }, { "docid": "da813fa08844d9ea0dcf6109d766cb06", "score": "0.58105356", "text": "@Override\n public void geefOpleidingNiveau() {\n }", "title": "" }, { "docid": "655a271d981b875feb8fbc679e1a4f87", "score": "0.58046514", "text": "public void mo9609a() {\n }", "title": "" }, { "docid": "beee84210d56979d0068a8094fb2a5bd", "score": "0.5792596", "text": "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "title": "" }, { "docid": "beee84210d56979d0068a8094fb2a5bd", "score": "0.5792596", "text": "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b6296d9cb06e3094b2a07ffb1a50fe1e", "score": "0.5792312", "text": "@Override\n\tpublic void acariciar() {\n\t}", "title": "" }, { "docid": "8bb51b817eb666c4867465105352c93f", "score": "0.5790152", "text": "@Override\r\n\tvoid oracle() {\n\t\t\r\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.5789142", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.5789142", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.5789142", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.5789142", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "eaf44b0db9fccdd4e25d11d08215adc0", "score": "0.5787597", "text": "@Override\n\tpublic void zufallsKanteEinfuegen()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "cdfd4f491038656c3a88e9465c6ba0e6", "score": "0.5773877", "text": "@Override\n\tpublic void reculer() {\n\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773749", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773749", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773749", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773749", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773749", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "91bd67fab28a493021bd6f1f7b3e5e0a", "score": "0.57595617", "text": "@Override\n public void dirve() {\n\n }", "title": "" }, { "docid": "24b32615866ab9d1bd9b2e291b95a1c6", "score": "0.57590127", "text": "public void getPheromone() \n {\n\t \n }", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57585216", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57585216", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "ebfe1bb4dd1c0618c0fad36d9f7674b4", "score": "0.57515615", "text": "@Override\n protected void initialize() {\n\n }", "title": "" }, { "docid": "ebfe1bb4dd1c0618c0fad36d9f7674b4", "score": "0.57515615", "text": "@Override\n protected void initialize() {\n\n }", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.5749909", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.5749909", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.5749909", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.5749909", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.5749909", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.5749909", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.5749909", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.5749909", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "1f4988c898d552b0a5965dcb636a68ca", "score": "0.57396996", "text": "@Override\r\n\tpublic void correr() {\n\t\t\r\n\t}", "title": "" }, { "docid": "a59d3a080703df0c29632666d64e3e65", "score": "0.5737553", "text": "@Override\n\tprotected void initialize()\n {\n }", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.5735176", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.5735176", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "94635a88abd93d3624c032aa22ccc337", "score": "0.57324994", "text": "@Override\n\t\t\tpublic void refresh() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "18ea513e33a6ccd2005fa08437bc8da3", "score": "0.57308185", "text": "@Override\n public int describeContents() {\n return 0;\n }", "title": "" }, { "docid": "8887ffca90e3cb4fff0262bd3dd5bd82", "score": "0.57279575", "text": "@Override\r\n\tpublic void Y() {\n\t\t\r\n\t}", "title": "" }, { "docid": "8648511042e2a7fd608e085a1fcb7ccf", "score": "0.57274157", "text": "@Override\r\n\tpublic void operation() {\n\r\n\t}", "title": "" }, { "docid": "1c4063058b784c69f3e491b8fe1c5d87", "score": "0.5723073", "text": "@Override\r\n\tpublic void vivir() {\n\t\t\r\n\t}", "title": "" }, { "docid": "47b0ce2a4738b951bd3c2a4491ec7cd6", "score": "0.57209194", "text": "@Override\n \tpublic String toString() {\n \t\treturn null;\n \t}", "title": "" }, { "docid": "a937c607590931387a357d03c3b0eef4", "score": "0.57184887", "text": "@Override\n\tprotected void initialize() {\n\n\t}", "title": "" }, { "docid": "a937c607590931387a357d03c3b0eef4", "score": "0.57184887", "text": "@Override\n\tprotected void initialize() {\n\n\t}", "title": "" }, { "docid": "9a26c4906f8195084e9ec158504cab47", "score": "0.5716718", "text": "@Override\n public void init() {\n \n }", "title": "" }, { "docid": "12104bcdcc776dd1fc9415fbc08ab9a4", "score": "0.5713254", "text": "private ExtentTS() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "258fef0e9420b0df779163d8d9cb25a9", "score": "0.57076555", "text": "private void hf() {\n\n\t}", "title": "" }, { "docid": "f720716362bda7cd9a07a11b5f77ac9c", "score": "0.57029665", "text": "public void ObjeyiOlustur() {\n \r\n }", "title": "" }, { "docid": "5e4bdac9e86e82025f9be7b708955d73", "score": "0.56992924", "text": "@Override\n\tprotected void startOfIteration() {\n\n\t}", "title": "" }, { "docid": "a7998f80ff10142923d6914a455d5129", "score": "0.56874985", "text": "public void colisionBala() {\n\t\t\r\n\t}", "title": "" }, { "docid": "a4f5275a394442b77ca743e85e2d2f20", "score": "0.5687016", "text": "public void mo3892a() {\n }", "title": "" }, { "docid": "1614b26591fe3a156f284f7d7d0238ab", "score": "0.5686299", "text": "public void mo3894c() {\n }", "title": "" }, { "docid": "92b8246d78d46bf0f60b46e17e797540", "score": "0.5683184", "text": "@Override\n\tpublic void init () {\n\t}", "title": "" }, { "docid": "62020c21199fdbaf0b47453874f310f1", "score": "0.5677751", "text": "@Override\n\tpublic void init()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "02b2c6e51ebb5faf78f05c34c734f88d", "score": "0.56765044", "text": "@Override\n\tprotected void adjust() {\n\t\t\n\t}", "title": "" }, { "docid": "b28a6bba203633cc1b71e802b691f592", "score": "0.56712747", "text": "@Override\n\tpublic void shuthdown() {\n\n\t}", "title": "" }, { "docid": "cffc9e76f5aeaa8126396b11e98f261b", "score": "0.5667732", "text": "@Override\n public int describeContents() {\n return 0;\n }", "title": "" }, { "docid": "febadec59d2787ed37a521b11b0fe57d", "score": "0.5659445", "text": "public void getdata() {\n\t\t\r\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5656971", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" } ]
a1792939ea08ab84991b0f20d8a2207a
Operao para deletar um arquivo e suas verses
[ { "docid": "d6c044432e6c1554d03155ecccb57f7e", "score": "0.0", "text": "public SimpleDTO deleteFileManaged(Integer idFileManaged) {\n\t\treturn File.deleteFileManaged(getConnectedUser(), idFileManaged);\n\t}", "title": "" } ]
[ { "docid": "a293767590b10ba98abf615708153fb8", "score": "0.6122556", "text": "private void salir() {\r\n\t\tif (Fichero.almacen.isModificado()) {\r\n\t\t\tswitch (JOptionPane.showConfirmDialog(filechooser, \"No ha guardado, ¿Desea Guardar?\", \"!!\",\r\n\t\t\t\t\tJOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.WARNING_MESSAGE)) {\r\n\t\t\tcase JOptionPane.YES_OPTION:\r\n\t\t\t\tguardarComoFile();\r\n\t\t\t\tbreak;\r\n\t\t\tcase JOptionPane.NO_OPTION:\r\n\t\t\t\tSystem.exit(0);\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tSystem.exit(0);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "4498db65f041df12c93194abaa8eaaec", "score": "0.6100078", "text": "private void filedelete() {\n\t\t\t\t\tString Filename=\"me_\"+recep;\n\t\t\t\t\t\n\t\t\t//\t\tfilestatusresult=\tfileExistance(Filename);\n\t\t\t\t\tif(filestatusresult.equals(false)){\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tFile path = new File(getFilesDir(),\"chats\");\n\t\t\t\t\t\tFile file = new File(path, Filename);\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\tboolean deleted = file.delete();\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\tLog.e(\"deleteing file\",\"\"+deleted);\n\t\t\t\t\t\t\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\treadFile();\n\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t} catch (JSONException e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n//\t\t\t\t\t\tadapt adapter=new adapt(this);\n//\t\t\t\t\t\tadapter.notifyDataSetChanged();\n\t\t\t\t\t\tsetContentView(R.layout.activity_chat);\n\t\t\t\t\t}\n\t\t\t\t}", "title": "" }, { "docid": "d393b9b868559febbabf77c8de7ba6ab", "score": "0.6086207", "text": "boolean acceptClean(File file);", "title": "" }, { "docid": "1da0a39df227831bba12ec2655ebcf6c", "score": "0.592865", "text": "public boolean reiniciar(){\n fichas=0;\n return true;\n }", "title": "" }, { "docid": "5b15b70d982f7a2d9c2211d8e41ecb1f", "score": "0.5880209", "text": "public static void fileDelete() {\n Alert a = new Alert(Alert.AlertType.INFORMATION);\n\n a.setContentText(\"Folio has been successfully deleted!\");\n a.showAndWait();\n\n }", "title": "" }, { "docid": "fa756f4e16e2332ebac5d3648de54cb5", "score": "0.58736193", "text": "private void abrir() {\r\n\t\tif (Fichero.almacen.isModificado()) {\r\n\t\t\tswitch (JOptionPane.showConfirmDialog(filechooser, \"No ha guardado, ¿Desea Guardar?\", \"!!\",\r\n\t\t\t\t\tJOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.WARNING_MESSAGE)) {\r\n\r\n\t\t\tcase JOptionPane.YES_OPTION:\r\n\t\t\t\tguardarComoFile();\r\n\t\t\t\tbreak;\r\n\t\t\tcase JOptionPane.NO_OPTION:\r\n\t\t\t\ttry {\r\n\t\t\t\t\tabrirArchivo();\r\n\t\t\t\t} catch (IOException | ClassNotFoundException ex) {\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Error al abrir archivo\", \"!!\", JOptionPane.ERROR_MESSAGE);\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\ttry {\r\n\t\t\t\tabrirArchivo();\r\n\t\t\t} catch (IOException | ClassNotFoundException ex) {\r\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Error al abrir archivo\", \"!!\", JOptionPane.ERROR_MESSAGE);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "807e414d00465e0bb20bf2517c707c2b", "score": "0.574303", "text": "public void COPIAR_ARQUIVO(File sourceFile, File destFile,Context context) throws IOException {\n if (!sourceFile.exists()) {\n return;\n }\n FileChannel source = null;\n FileChannel destination = null;\n source = new FileInputStream(sourceFile).getChannel();\n destination = new FileOutputStream(destFile).getChannel();\n if (destination != null && source != null) {\n destination.transferFrom(source, 0, source.size());\n }\n if (source != null) {\n source.close();\n }\n if (destination != null) {\n destination.close();\n }\n /*//Alertamos, caso não consiga remover\n if (!sourceFile.delete()) {\n Toast.makeText(context, \"Não foi possível remover a imagem!\", Toast.LENGTH_SHORT).show();\n }*/\n }", "title": "" }, { "docid": "3d24ff39c1ca5ad1f8c46b4688b93e69", "score": "0.5731211", "text": "public void Apagar() throws Exception {\n File file = new File(arquivoOcorrencia.getCaminho());\n\n //Comando para apagar o arquivo da pasta\n file.delete();\n\n //Comando para apagar o arquivo no banco de Dados\n dao.excluir(arquivoOcorrencia);\n\n //Limpa a Variável\n arquivoOcorrencia = new ArquivosOcorrencia();\n }", "title": "" }, { "docid": "ee9c1bc6af8b28db4eeaf25a02afec71", "score": "0.5688054", "text": "private void destroyActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_destroyActionPerformed\n boolean eliminado = false;\n String archivo = fileNameElim.getText();\n String usuario = userNameElim.getText();\n if (archivo.length() < 3){\n anuncio.setText(\"Nombre de Archivo invalido\");\n return;\n } \n if (usuario.length() < 3){\n anuncio.setText(\"Nombre de usuario invalido\");\n }\n \n User user = Inicio.dispersionUsuarios.getUser(usuario);\n if (user != null){\n eliminado = user.documentos.eliminarArchivo(archivo);\n }\n \n if (eliminado){\n anuncio.setText(\"Archivo eliminado exitosamente\");\n }\n \n \n }", "title": "" }, { "docid": "6719720de40c9917bd7537ddc37a6bf9", "score": "0.56879497", "text": "private void guardarComoFile() {\r\n\t\t//filechooser.setAcceptAllFileFilterUsed(false);\r\n\t\t//filechooser.addChoosableFileFilter(filtro);\r\n\r\n\t\tif (JFileChooser.APPROVE_OPTION == filechooser.showDialog(filechooser, \"Guardar\")) {\r\n\t\t\t//filechooser.setAcceptAllFileFilterUsed(false);\r\n\r\n\t\t\tif (filechooser.getSelectedFile().exists()) {\r\n\r\n\t\t\t\tswitch (JOptionPane.showConfirmDialog(filechooser, \"El archivo ya existe, ¿Desea sobreescribir?\", \"!!\",\r\n\t\t\t\t\t\tJOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.WARNING_MESSAGE)) {\r\n\r\n\t\t\t\tcase JOptionPane.YES_OPTION:\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tFichero.guardarComo(Fichero.almacen, filechooser.getSelectedFile());\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"El archivo ha sido guardado\", \"Aceptar\",\r\n\t\t\t\t\t\t\t\tJOptionPane.INFORMATION_MESSAGE);\r\n\t\t\t\t\t\tFichero.almacen.setModificado(false);\r\n\t\t\t\t\t\tsetTitle(filechooser.getSelectedFile().getName());\r\n\t\t\t\t\t} catch (IOException ex) {\r\n\t\t\t\t\t\tex.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t// En caso de NO y CANCEL informamos de que no ha sido guardado\r\n\t\t\t\tdefault:\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"El archivo no se ha guardado\", \"Error!\",\r\n\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t// Si el archivo no existe guardamos\r\n\t\t\telse {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tFichero.guardar(Fichero.almacen, filechooser.getSelectedFile());\r\n\t\t\t\t\tFichero.almacen.setModificado(false);\r\n\t\t\t\t\tsetTitle(filechooser.getSelectedFile().getName());\r\n\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"El archivo no se ha guardado\", \"Error!\",\r\n\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "51696a434cca2a212db1b8f229c7f340", "score": "0.5679653", "text": "@Override\r\n\tpublic void onFileDelete(File file) {\n\t\t\r\n\t}", "title": "" }, { "docid": "ee23e483de07541f2a459c8129bda904", "score": "0.56223786", "text": "@Override\n\tpublic void deletefile(BoardVO vo) throws Exception {\n\t\tmapper.deletefile(vo);\n\t}", "title": "" }, { "docid": "4a08a216173812edfc4f3f8faa8e9891", "score": "0.5619586", "text": "private void clear(){\n\t\tselectedFile=null;\n\t\tselectedDF=masterFile;\n\t\tcommandToContinue=Util.NO_COMMAND_TO_CONTINUE;\n\t\tauthenticated=Util.NO_KEY_AUTHENTICATED;\n\t\t//dataBuffer=null;\n\t\tsecurityLevel=Util.PLAIN_COMMUNICATION;\n\t\tfileSecurityLevel=Util.PLAIN_COMMUNICATION;\n//\t\treaded=0;\n//\t\toffset=0;\n//\t\tbytesLeft=0;\n\t\tkeyNumberToAuthenticate=0;\n\t\tsessionKey.clearKey();\t\n\t}", "title": "" }, { "docid": "0434d184611332c4b1c51706b0f16c62", "score": "0.5581081", "text": "public boolean processFilesCTL(String aFileName, String aFileWithOutExt) {\n File fileLocation = new File(DEFAULT_DOWNLOAD_PATH +File.separator+ aFileName);\n\n ContextWrapper cw = new ContextWrapper(Init.this);\n File directory = cw.getDir(NAME_FOLDER_CTL_FILES, Context.MODE_PRIVATE);\n File file = new File(directory + File.separator + aFileWithOutExt);\n\n if (fileLocation.exists()) {\n\n if (gFileName.endsWith(\".bin\")||gFileName.endsWith(\".BIN\")) {\n try {\n FileInputStream InputRead = new FileInputStream(fileLocation);\n FileOutputStream outWrite = new FileOutputStream(file);\n\n byte[] inputBuffer = new byte[1024];\n int charRead;\n\n while ((charRead = InputRead.read(inputBuffer)) > 0) {\n outWrite.write(inputBuffer,0,charRead);\n outWrite.flush();\n }\n InputRead.close();\n outWrite.close();\n\n //fileLocation.delete();\n\n }catch (NullPointerException e) {\n e.printStackTrace();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n }\n return true;\n }", "title": "" }, { "docid": "5c6ab198500eab17c966305367bdf03c", "score": "0.5567275", "text": "public void remFile(){\n ((ProtoDefinitionDMO) core).remFile();\n }", "title": "" }, { "docid": "67983dbfceadaa2e80655d2a00f2f773", "score": "0.55660313", "text": "private void nuevo() {\r\n\t\tif (Fichero.almacen.isModificado()) {\r\n\t\t\tswitch (JOptionPane.showConfirmDialog(filechooser, \"No ha guardado, ¿Desea Guardar?\", \"!!\",\r\n\t\t\t\t\tJOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.WARNING_MESSAGE)) {\r\n\t\t\tcase JOptionPane.YES_OPTION:\r\n\t\t\t\t// Si respondemos Aceptar\r\n\t\t\t\tguardarComoFile();\r\n\t\t\t\tFichero.almacen = new Biblioteca();\r\n\t\t\t\tsetTitle(\"Sin_titulo\");\r\n\t\t\t\tFichero.almacen.setModificado(false);\r\n\t\t\t\tbreak;\r\n\t\t\tcase JOptionPane.NO_OPTION:\r\n\t\t\t\t// Si respondemos No\r\n\t\t\t\tFichero.almacen = new Biblioteca();\r\n\t\t\t\tsetTitle(\"Sin_titulo\");\r\n\t\t\t\tFichero.almacen.setModificado(false);\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tFichero.almacen = new Biblioteca();\r\n\t\t\tsetTitle(\"Sin_titulo\");\r\n\t\t\tFichero.almacen.setModificado(false);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "eac3d6af373bd130f2780cb6e3f2edc6", "score": "0.5514817", "text": "private void handleFiles() {\n\t\ttry {\n\t\t\tRPG_Project rpgProject = new RPG_Project(pathToProject, verifyDir);\n\t\t\tDecrypter decrypter = new Decrypter();\n\n\t\t\trpgProject.setOutputPath(outputDir);\n\t\t\tdecrypter.setIgnoreFakeHeader(ignoreFakeHeader);\n\t\t\tdecrypter.setHeaderLen(headerLen);\n\t\t\trpgProject.decryptFilesCmd(decrypter, true);\n\t\t} catch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tCMD.exitCMD(CMD.STATUS_ERROR);\n\t\t}\n\t}", "title": "" }, { "docid": "a3a0e497a9798f355581f6a71ed2408f", "score": "0.55104715", "text": "@Override\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\tfiledelete();\n\t\t\t\t\t\n\t\t\t\t}", "title": "" }, { "docid": "44b9b9ed7d834f7c8a13c5c24f2c219b", "score": "0.5505609", "text": "@Override\n public void onFileDelete(File file) {\n }", "title": "" }, { "docid": "41fdab8d159033256c0bce807b8f27e8", "score": "0.5483128", "text": "private void doClose ()\n {\n if (_fileModified && _currentListFile!=null)\n {\n int selection = JOptionPane.showConfirmDialog(this, java.util.ResourceBundle.getBundle(\"aroulette/resources/Bundle\").getString(\"THE FILE HAS BEEN MODIFIED SINCE IT WAS OPENED. DO YOU WANT TO SAVE IT?\"),\n java.util.ResourceBundle.getBundle(\"aroulette/resources/Bundle\").getString(\"WARNING\"), JOptionPane.YES_NO_OPTION, JOptionPane.WARNING_MESSAGE);\n \n if (selection == JOptionPane.YES_OPTION){\n boolean ok = this.saveFile();\n if (ok)\n {\n this.dispose();\n _config.saveConfig();\n System.exit(0);\n }\n }else if (selection == JOptionPane.NO_OPTION){\n synchronized(_holder)\n {\n this.dispose();\n _config.saveConfig();\n System.exit(0);\n }\n }\n \n }else{\n this.dispose();\n _config.saveConfig();\n System.exit(0);\n }\n }", "title": "" }, { "docid": "672545e4df77f7b3a6cfc8b7e79d0cb7", "score": "0.54634273", "text": "void delete(int fileSeq) throws IOException;", "title": "" }, { "docid": "646df9461f8b8ae97a1680357d14c5fd", "score": "0.54520744", "text": "private void deletePersonalFile(final MyFile file) {\n Log.d(TAG, \"Deleting file: \" + file.getFilename());\n\n if (bsm != null)\n bsm.dismiss();\n\n new AreYouSureDialog(context, new OnYesListener() {\n @Override\n public void onYes() {\n fbHelper.deletePersonalFile(file.getStReference(), file.getFilename(), new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n Log.d(TAG, \"Failure occurred during file removing\");\n Toast.makeText(context, getString(R.string.delition_failed), Toast.LENGTH_SHORT)\n .show();\n }\n }, new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n Log.d(TAG, \"File correctly removed!\");\n }\n });\n }\n }).show();\n }", "title": "" }, { "docid": "3529e57a4639ff2a4cd7f0b93b47c9d4", "score": "0.54512715", "text": "private void jMenuItemClearLogFileActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemClearLogFileActionPerformed\n //Show dialog, if yes, delete file\n JOptionPane pane = new JOptionPane(\n \"To be or not to be ?\\nThat is the question.\");\n Object[] options = new String[]{\"Yes, Delete log file!\", \"No / Cancel\"};\n pane.setOptions(options);\n JDialog dialog = pane.createDialog(new JFrame(), \"Delete Log file?\");\n dialog.setVisible(true);\n Object obj = pane.getValue();\n int result = -1;\n for (int k = 0; k < options.length; k++) {\n if (options[k].equals(obj)) {\n result = k;\n }\n }\n\n if (result == 0) {\n support.deleteLogFile();\n }\n\n }", "title": "" }, { "docid": "1fae6e59939ba4830b8e399a30ca538a", "score": "0.5449815", "text": "private void cleanUp() throws FileNotFoundException, IOException {\n \t\t\tif(interactive)\n \t\t\t\treturn;\n \t\t\tFile dir=TestData.file(this, \"overview/\");\n \t\t\tFile[] files = dir.listFiles(\n \t\t\t\t\t(FilenameFilter)FileFilterUtils.notFileFilter(\n \t\t\t\t\t\t\tFileFilterUtils.orFileFilter(\n \t\t\t\t\t\t\t\t\tFileFilterUtils.orFileFilter(\n \t\t\t\t\t\t\t\t\t\t\tFileFilterUtils.suffixFileFilter(\"tif\"),\n \t\t\t\t\t\t\t\t\t\t\tFileFilterUtils.suffixFileFilter(\"aux\")\n \t\t\t\t\t\t\t\t\t),\n \t\t\t\t\t\t\t\t\tFileFilterUtils.nameFileFilter(\"datastore.properties\")\n \t\t\t\t\t\t\t)\n \t\t\t\t\t)\n \t\t\t);\n \t\t\tfor(File file:files){\n \t\t\t\tfile.delete();\n \t\t\t}\n \t\t\t\n \t\t\tdir=TestData.file(this, \"rgba/\");\n \t\t\tfiles = dir.listFiles((FilenameFilter)FileFilterUtils.notFileFilter(\n \t\t\t\t\tFileFilterUtils.orFileFilter(\n \t\t\t\t\t\t\tFileFilterUtils.notFileFilter(FileFilterUtils.suffixFileFilter(\"png\")),\n \t\t\t\t\t\t\tFileFilterUtils.notFileFilter(FileFilterUtils.suffixFileFilter(\"wld\"))\n \t\t\t\t\t)));\n \t\t\tfor(File file:files){\n \t\t\t\tfile.delete();\n \t\t\t}\n \t}", "title": "" }, { "docid": "8d1c27fc14e65e1b147ec41fee3e77ad", "score": "0.5449325", "text": "private void salir() {\r\n\t\tif (General.zoologico.isModificado()) {\r\n\t\t\tint opcion = JOptionPane.showConfirmDialog(nuevo,\r\n\t\t\t\t\t\"¿Deseas guardar el Zoologico?\");\r\n\t\t\tif (opcion == 0) {\r\n\t\t\t\tJFileChooser guardar = new JFileChooser();\r\n\t\t\t\tguardar.setFileFilter(filtro);\r\n\t\t\t\topcion = guardar.showSaveDialog(frmZoologicoCordoba);\r\n\t\t\t\tif (opcion == JFileChooser.APPROVE_OPTION) {\r\n\t\t\t\t\tfile = guardar.getSelectedFile();\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tFichero.guardar(General.zoologico, file);\r\n\r\n\t\t\t\t\t} catch (FileNotFoundException e1) {\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(frmZoologicoCordoba,\r\n\t\t\t\t\t\t\t\t\"El archivo no se ha encontrado.\", \"Error\",\r\n\t\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\r\n\t\t\t\t\t} catch (IOException e1) {\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(frmZoologicoCordoba,\r\n\t\t\t\t\t\t\t\t\"Error de E/S.\", \"Error\",\r\n\t\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tSystem.exit(0);\r\n\t\t\t} else if (opcion == 2) {\r\n\t\t\t\tnuevo.setVisible(false);\r\n\t\t\t} else if (opcion == 1) {\r\n\t\t\t\tSystem.exit(0);\r\n\t\t\t} else {\r\n\t\t\t\tnuevo.setVisible(false);\r\n\t\t\t}\r\n\t\t} else\r\n\t\t\tSystem.exit(0);\r\n\t}", "title": "" }, { "docid": "12ea03dcf53df943ca4d7896bdfbbfc7", "score": "0.54060644", "text": "void onUnLockFile(String item);", "title": "" }, { "docid": "c9c56296ac7770433caa15650904d2e2", "score": "0.5394098", "text": "public static int deleteLine(String line) {\n\n File file = new File(\"C:\\\\Users\\\\sreesha.n\\\\Documents\\\\NetBeansProjects\\\\ContactManager\\\\src\\\\dataSample.txt\");\n\n File file2 = new File(file.getParent() + \"\\\\temp\" + file.getName());\n PrintWriter pw = null;\n Scanner read = null;\n\n FileInputStream fis = null;\n FileOutputStream fos = null;\n FileChannel src = null;\n FileChannel dest = null;\n\n try {\n\n\n pw = new PrintWriter(file2);\n read = new Scanner(file);\n\n while (read.hasNextLine()) {\n\n String currline = read.nextLine();\n\n if (line.equalsIgnoreCase(currline)) {\n continue;\n } else {\n pw.println(currline);\n }\n }\n\n pw.flush();\n\n fis = new FileInputStream(file2);\n src = fis.getChannel();\n fos = new FileOutputStream(file);\n dest = fos.getChannel();\n\n dest.transferFrom(src, 0, src.size());\n return 0;\n\n\n } catch (IOException e) {\n e.printStackTrace();\n return 1;\n } finally { \n pw.close();\n read.close();\n\n try {\n fis.close();\n fos.close();\n src.close();\n dest.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n if (file2.delete()) {\n System.out.println(\"File is deleted\");\n } else {\n System.out.println(\"Error occured! File: \" + file2.getName() + \" is not deleted!\");\n }\n }\n \n}", "title": "" }, { "docid": "7961d0953b054862ef392f897ddeb6ce", "score": "0.53920174", "text": "public void deleteTestFile() {\r\n assertTrue(testFile.delete()); \r\n }", "title": "" }, { "docid": "b5a57ceb36c40f087cc36d29976e8fd6", "score": "0.5391105", "text": "@Override protected void deleteFile(String filename) {\n }", "title": "" }, { "docid": "2a9bd95577a0c6cc747a55232223d656", "score": "0.53813237", "text": "@Override\r\n\tprotected void processOk() {\n\t\tsuper.processOk();\r\n\t\t\r\n\t\r\n\t\tboolean isExito = guardarClienteProxy.isExito();\r\n\t\tif (isExito) {\r\n\t\t\tint status = guardarClienteProxy.getResponse().getStatus();\r\n\t\t\t\r\n\t\t\tif (status == 0) {\r\n\t\t\t\t\r\n\r\n\t\t\t\tclienteBLL.deleteAll();\r\n\t\t\t\t\r\n\t\t\t\tIntent intentService = new Intent(\"pe.lindley.prospector.service.uploadFileService\");\r\n \t\t\t\tstartService(intentService);\r\n \t\t\t\t\r\n\t\t\t\tfinal Context context = this;\r\n\t\t\t\tMessageBox.showSimpleDialog(context, sincronizar_cliente_title, confirm_message_ok, confirm_ok, new OnClickListener() {\r\n\t\t\t\t\t\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\r\n\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\tfinish();\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t \r\n\t\t\t}else{\r\n\t\t\t\tsuper.processOk();\r\n\t\t\t\tMessageBox.showSimpleDialog(this, sincronizar_cliente_title, confirm_message_error, confirm_ok, null);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\t\t\r\n\t}", "title": "" }, { "docid": "5a14af069cffbca2fce9bb7569a794f8", "score": "0.5375982", "text": "private void resultCheck() {\n\t\tFile resultFile = new File(Environment.getExternalStorageDirectory(),\"testresult.xml\");\n\t\tif (resultFile.exists()) {\n\t\t\tresultFile.delete();\n//\t\t\texecuteRunTimeCommand(Constant.RESULT_DELETE);\n\t\t}\n\t}", "title": "" }, { "docid": "1a9ff882861613b9e041a36df91bcfe2", "score": "0.5328472", "text": "public void newFile() {\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION);\n alert.setTitle(\"Create new File\");\n alert.setHeaderText(null);\n alert.setContentText(\"Do you want to save current file?\\nUnsaved changes will be lost.\");\n\n Optional<ButtonType> result = alert.showAndWait();\n if(result.isPresent() && result.get() == ButtonType.OK){\n saveFile();\n ContactsData.getInstance().clearContacts();\n }\n\n }", "title": "" }, { "docid": "db9d4bb150f533bebc6728163a4a9cee", "score": "0.5327318", "text": "private static void removeFile(String username, ClientComms comms) {\n\t\t\n\t\t/* Receive unique file identifier from client */\n\t\tString fileRev = comms.fromClient();\n\t\t\n\t\tServerFileOperations.removeFile(fileRev);\n\t\t\n\t}", "title": "" }, { "docid": "33d53240bee166e31574a03c141035d6", "score": "0.5317476", "text": "@Override\n public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IOException {\n file.toFile().setWritable(true);\n\n Files.delete(file);\n return FileVisitResult.CONTINUE;\n }", "title": "" }, { "docid": "1029241aec99e98cc2f405e7cd41a24d", "score": "0.5317039", "text": "private void abrirArchivo() throws HeadlessException, IOException, ClassNotFoundException {\r\n\t\t//filechooser.setAcceptAllFileFilterUsed(false);\r\n\t\t//filechooser.addChoosableFileFilter(filtro);\r\n\t\tif (filechooser.showDialog(filechooser, \"Abrir Archivo\") == JFileChooser.APPROVE_OPTION) {\r\n\t\t\tFichero.abrir(filechooser.getSelectedFile());\r\n\t\t\tsetTitle(filechooser.getSelectedFile().getName());\r\n\t\t\tFichero.almacen.setModificado(false);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "d1a5113b5eed8233d5e50eb13f8b88e2", "score": "0.5308428", "text": "@Override\n\tpublic void onReceive(Object msg) {\n\t\tcleanFiles();\n\t}", "title": "" }, { "docid": "c6c42131dc252be0a98d2b98c7666e6d", "score": "0.53046554", "text": "public static void deleteUncomittedData()\n\t{\n\t\tFlashManager.removeFile(AdsOnUIConstants.adtFileLocation);\n\t}", "title": "" }, { "docid": "6bae53ea4ead35c4868be61ad5593afa", "score": "0.52972096", "text": "public void guardar() throws IOException;", "title": "" }, { "docid": "99cb15280c876ac80f725f08a99a54f9", "score": "0.5286983", "text": "public void ClearFile() {\n OCCwrapJavaJNI.IFSelect_WorkSession_ClearFile(swigCPtr, this);\n }", "title": "" }, { "docid": "c3aecc515690e46b605e64a99947aa48", "score": "0.5285057", "text": "public void exceptionDeletingTargetFile(File target);", "title": "" }, { "docid": "9a943ced0670220d50c64f482375932f", "score": "0.5284435", "text": "public void deleteManualExploreFile(){\r\n\t\ttry {\r\n\t\t\ttempFile.delete();\r\n\t\t} catch (IOException | InterruptedException e) {\r\n\t\t\tLog.error(\"Exception deleting temporary text file for manual explore.\"+e);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "b2721e0463e5ba2470952e1f74296a80", "score": "0.5280188", "text": "@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\n\t\t/*\n\t\t * delete the Decrypted file if exist\n\t\t */\n//\t\tFile decryptedFile = new File(XpinnOffUtil.loadPreference(Constants.DECRYPTED_FILE_PATH));\n//\n//\t\tif(decryptedFile.exists()){\n//\t\t\tdecryptedFile.delete();\n//\t\t\tXpinnOffUtil.clearPreference(Constants.DECRYPTED_FILE_PATH);\n//\t\t\tXpinnOffUtil.clearPreference(Constants.DECRYPTED_FILE_KEY);\n//\t\t}\n\t}", "title": "" }, { "docid": "7e0d577e5857177547acc9880896b9f2", "score": "0.5262102", "text": "public void Exist() throws IOException {\n \n \n File file = null;\n File file_copy = null; \n file = new File(ConfigManager.getAppSetting(\"local_file\"));\n file_copy = new File(ConfigManager.getAppSetting(\"local_file_copy\"));\n \n \n \n //si no existe lo copio\n if(!file_copy.exists()){\n this.OtherCopy(ConfigManager.getAppSetting(\"local_file\"),ConfigManager.getAppSetting(\"local_file_copy\"));\n\n\n }else{\n\n //si existe borro el viejo y lo vuelvo a copiar\n file.delete();\n file_copy.renameTo(file); \n\n\n } \n \n \n \n }", "title": "" }, { "docid": "d36956aca7d3e605a903d5c7eed0377d", "score": "0.52596086", "text": "public static boolean removePermission(String fileS, List<String> usuarios) {\n\t\tFile file = new File(fileS);\n\t\tString nameFile = FileEncrypter.getFileName(fileS);\n\t\tList<String> usuariosAutorizados = usersWithAccess(fileS);\n\t\t//Solo se pueden borrar tus archivos\n\t\tif(!nameFile.contains(\"_\"+ConfigureSetup.getUserName())) {\n\t\t\tSystem.out.println(\"El archivo no es tuyo\");\n\t\t\treturn false;\n\t\t}\n\t\telse if(usuariosAutorizados.size() == 1 && usuariosAutorizados.get(0).equals(\"_Error\")) {//Se comprueba que el archivo pertenece al ServidorES\n\t\t\tSystem.out.println(\"El archivo no pertenece a ServidorES\");\n\t\t\treturn false;\n\t\t}\n\t\telse {\n\t\t\t//Para cada usuario vamos a borrar su clave de archivo\n\t\t\t//Si se va a borrar el autor borramos todos, si no lo que hac´┐Żamos antes\n\t\t\tif(usuarios.contains(ConfigureSetup.getUserName())) {//Borramos todos los usuarios y el fichero\n\t\t\t\tusuarios = ConfigureSetup.getUsers();\n\t\t\t\tfor(String user : usuarios) {\n\t\t\t\t\tFile keyFile = new File(ConfigureSetup.getPathDrive()+ConfigureSetup.fileKeyLocation+user+\"/\"+nameFile+\".txt\");\n\t\t\t\t\tif(keyFile.exists()) keyFile.delete();\n\t\t\t\t}\n\t\t\t\tfile.delete();\n\t\t\t\treturn true;\n\t\t\t\t\n\t\t\t}\n\t\t\telse {//Borramos usuario a usuario\n\t\t\t\tfor(String user : usuarios) {\n\t\t\t\t\tFile keyFile = new File(ConfigureSetup.getPathDrive()+ConfigureSetup.fileKeyLocation+user+\"/\"+nameFile+\".txt\");\n\t\t\t\t\tif(keyFile.exists()) keyFile.delete();\n\t\t\t\t}\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "e71a09adb2949a0e5b465372c40046fd", "score": "0.5259185", "text": "public void close(){\n try {\n salida.close();\n }\n catch(IOException e){\n System.err.println(\"Error al cerrar archivo \"); \n } \n }", "title": "" }, { "docid": "66b5a636291ef80513869eff90583991", "score": "0.52577114", "text": "public boolean finalizar();", "title": "" }, { "docid": "49e7f8dac8dc0550e665e91c48b405c6", "score": "0.5249868", "text": "@Override \n public void salvaSuFile() {\n FileRepositoryBustaPagaConsulente rbp = new FileRepositoryBustaPagaConsulente(this);\n rbp.salva();\n }", "title": "" }, { "docid": "9a5219a58a2c527ec1ebfd0813c07772", "score": "0.52423805", "text": "@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\tnew AlertDialog.Builder(context)\n\t\t\t\t\t\t\t.setTitle(\"提示\")\n\t\t\t\t\t\t\t.setMessage(\"是否删除\")\n\t\t\t\t\t\t\t.setPositiveButton(\"否\",\n\t\t\t\t\t\t\t\t\tnew DialogInterface.OnClickListener() {\n\t\t\t\t\t\t\t\t\t\t@Override\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\tDialogInterface dialog,\n\t\t\t\t\t\t\t\t\t\t\t\tint which) {\n\t\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\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.setNegativeButton(\"是\",\n\t\t\t\t\t\t\t\t\tnew DialogInterface.OnClickListener() {\n\t\t\t\t\t\t\t\t\t\t@Override\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\tDialogInterface dialog,\n\t\t\t\t\t\t\t\t\t\t\t\tint which) {\n\t\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\t\t\t\tFile flie = new File(fileNames\n\t\t\t\t\t\t\t\t\t\t\t\t\t.get(p));\n\t\t\t\t\t\t\t\t\t\t\tflie.delete();\n\t\t\t\t\t\t\t\t\t\t\tfileNames.remove(p);\n\t\t\t\t\t\t\t\t\t\t\tVoicPlayListAdapter.this\n\t\t\t\t\t\t\t\t\t\t\t\t\t.notifyDataSetChanged();\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}).show();\n\t\t\t\t}", "title": "" }, { "docid": "c55bb4b5a4a45a3dfbcc142a540ceb34", "score": "0.5231569", "text": "public static void main(String[] args) {\n\t\tFile ruta=new File(\"C:/Users/edu/Desktop/programar\" + File.separator + \"pruebaTexto.txt\");\n\t\truta.delete();\n\t}", "title": "" }, { "docid": "31688bc4723c5c69a246cec7c5490264", "score": "0.52295035", "text": "public boolean delete(String filename);", "title": "" }, { "docid": "229f3124b227c0af5a7ac4c7e8463ae3", "score": "0.52169317", "text": "@Override\n public void doConfirm() {\n confirmDialog.dismiss();\n\n File file=null;\n String filename = allList.get(position);\n file = new File(Values.PATH_XCBL_XSAJ_BRBL+filename);\n\n if(file.exists())\n {\n boolean isDel = file.delete();\n if(isDel)\n {\n allList.remove(position);\n notifyDataSetChanged();\n }\n }\n }", "title": "" }, { "docid": "483c439933dad54d88d4dbd5eba6acf1", "score": "0.5215043", "text": "public boolean cancelAndRestore(File restoreFile);", "title": "" }, { "docid": "bb8bbe84c1e64ac612ced145a5f57140", "score": "0.52119917", "text": "public void recuperarArchivos(){\r\n\t \ttry {\r\n\t \t\tsynchronized (this){\r\n\t \t\t\tlogger.logAmbos(\" ############## INICIO PROCESO DE RECUPERACION DE ARCHIVOS ############### \");\r\n\t \t\t\tint cantArchivosRec = 0;\r\n\t\t \t\tlong cantKBytesRec = 0;\r\n\t\t \t\tlogger.logAmbos(\"Inicio Recuperacion de archivos\");\r\n\t\t \t\tthis.getVentana().getEstado().setText(\"Inicio Recuperacion de archivos\");\r\n\t\t \t\tthis.getVentana().setVisible(true);\r\n\t\t \t\t// Se envia un mensaje para iniciar la recuperacion de archivos\r\n\t\t \t\tMensajePedidoRecuperar mjeRecuperar = new MensajePedidoRecuperar(this.usuario);\r\n\t\t \t\tthis.oosEnvio.writeObject(mjeRecuperar);\r\n//\t\t \t\tClientFrame.oosEnvio.flush(); // VER SI LO SACO\r\n\t\t \t\tObject mensajeAux;\r\n\t\t \t\tMensajeArchivosRecuperar mjeArchGuardar;\r\n\t\t \t\tmensajeAux = this.oisRecep.readObject();\r\n\t\t \t\tif (mensajeAux instanceof MensajeArchivosRecuperar){\r\n\t\t \t\t\tmjeArchGuardar = (MensajeArchivosRecuperar) mensajeAux;\r\n\t\t \t\t\tlogger.logArchivo(\"Recibo lista de archivos alojados en servidor\");\r\n\t\t \t\t\tListaPaths listaFiltrada = mjeArchGuardar.getListado();\r\n\t\t \t\t\tListaPaths listaDepurada = depurarListaArchivosActualizados(listaFiltrada);\r\n\t\t \t\t\t// limito la cantidad de archivos de la lista que se deben transferir por exceder el tamaño\r\n\t\t \t\t\tint limiteTamanio = mjeArchGuardar.getMaxTamanio();\r\n\t \t\t\t\tlistaDepurada.limitarTamanio(limiteTamanio);\r\n\t \t\t\t\tlogger.logArchivo(listaDepurada.getCantSinTransferir() + \" archivos no se transfieren por exceder maximo. (\" + listaDepurada.getTamTotalSinTransferir() + \" bytes)\");\r\n\t \t\t\t\t// Clono la lista evitando enviar los que exceden tamanio\r\n\t \t\t\t\tListaPaths listaOkTamanio = listaDepurada.clonarSinLimitadas();\r\n\t \t\t\t\tcantArchivosRec = listaOkTamanio.getTamanio();\r\n\t \t\t\t\tcantKBytesRec = listaOkTamanio.getTamanioTotal() / 1024;\r\n\t \t\t\t\tlogger.logArchivo(\"Filtro los archivos que exceden la capacidad maxima\");\r\n\t\t \t\t\t// Envio un nuevo mensaje al servidor con la lista filtrada\r\n\t\t \t\t\tMensajeArchivosRecuperar mjeListaFiltrada = new MensajeArchivosRecuperar(listaOkTamanio,(int)listaOkTamanio.getTamanioTotal()); // Este tamanio total meti cualquiera\r\n\t \t\t\tthis.oosEnvio.writeObject(mjeListaFiltrada);\r\n//\t \t\t\tClientFrame.oosEnvio.flush(); // VER SI LO SACO\r\n\t \t\t\tlogger.logArchivo(\"Envio lista filtrada con \" + listaOkTamanio.getTamanio() + \" elementos\");\r\n\t \t\t\t// Voy guardando los archivos recibidos\r\n\t \t\t\tif (listaOkTamanio.getTamanio() > 0){\r\n\t \t\t\t\tcantCompleto = 0;\r\n//\t \t\t\t\trecibirArchivosARecuperar(listaOkTamanio.getTamanioTotal());\r\n\t \t\t\t\tfor (int i=0;i<listaOkTamanio.getTamanio();i++){\r\n\t \t\t\t\t\trecibirArchivo(listaOkTamanio.getTamanioTotal());\r\n\t \t\t\t\t}\r\n\t \t\t\t} else {\r\n\t \t\t\t\tlogger.logAmbos(\"Los archivos se encuentran actualizados. No se requiere transferencia\");\r\n\t \t\t\t\tthis.getVentana().getEstado().setText(\"No hay archivos nuevos en servidor\");\r\n\t \t\t\t\tthis.getVentana().setVisible(true);\r\n\t \t\t\t}\r\n\t\t \t\t}\r\n\t\t \t\tcontrol = true;\r\n\t\t \t\tlogger.logAmbos(\"Finalizada recuperacion de archivos. \\nRecibidos \" + cantArchivosRec + \" archivos (\" + cantKBytesRec + \"Kb)\");\r\n\t\t \t\tthis.getVentana().getEstado().setText(\"Finalizada recuperacion de archivos. \\nRecibidos \" + cantArchivosRec + \" archivos (\" + cantKBytesRec + \"Kb)\");\t \t\t\r\n\t\t \t\tthis.getVentana().setVisible(true);\r\n\t\t \t\tlogger.logAmbos(\" ############## FIN RECUPERACION DE ARCHIVOS ############### \");\r\n\t \t\t}\r\n\t \t\t\r\n\t \t} catch(SocketException e){\r\n\t \t\tlogger.logArchivo(\"Socket Exception\");\r\n//\t \t\tSystem.err.println(\"Socket Exception run\");\r\n\t \t} catch(IOException e){\r\n\t \t\tlogger.logArchivo(\"IO Exception\");\r\n//\t \t\te.printStackTrace();\r\n\t \t} catch(ClassNotFoundException e){\r\n\t \t\tlogger.logArchivo(\"Class Not Found Exception\");\r\n//\t \t\tSystem.err.println(\"ClassNotFound Exception run\");\r\n\t \t}\r\n\t }", "title": "" }, { "docid": "9d555a42bf08cdfc328def4c33fa57e0", "score": "0.52005494", "text": "@Override\n\t\tprotected void onPostExecute(Boolean result) {\n\t\t\tsuper.onPostExecute(result);\n\t\t\tif (result) {\n\t\t\t\tif (request.getListener() != null)\n\t\t\t\t\trequest.getListener().onCompleted(request);\n\t\t\t} else {\n\t\t\t\trequest.getFile().delete();\n\t\t\t\tif (request.getListener() != null)\n\t\t\t\t\trequest.getListener().onFailed(request);\n\t\t\t}\n\n\t\t\tif (request.getListener() != null)\n\t\t\t\trequest.getListener().onPostTransfer(request);\n\n\t\t\tremoveTask(request);\n\t\t\trequestDownload();\n\t\t}", "title": "" }, { "docid": "2c01ecff83c13ab8f39386396417a78a", "score": "0.51983756", "text": "private void archiveOrDeleteFile() {\n\t\ttry {\n\t\t\tfinal Path currentPath = _fileSplit.getPath(_currFile);\n\t\t\t// First check - if only want to do anything if this is an internal job:\n\t\t\tif (!currentPath.toString().contains(IStorageService.TO_IMPORT_DATA_SUFFIX)) {\n\t\t\t\treturn; // (not your file to modify....)\n\t\t\t}\n\t\t\t\n\t\t\tfinal boolean storage_enabled = \n\t\t\t\t\tOptional.ofNullable(_dataBucket.data_schema()).map(ds -> ds.storage_schema())\n\t\t\t\t\t\t\t.map(ss -> Optional.ofNullable(ss.enabled()).orElse(true))\n\t\t\t\t\t\t\t.orElse(false)\n\t\t\t\t\t\t\t;\n\t\t\t\n\t\t\tfinal boolean archive_enabled = storage_enabled && \n\t\t\t\t\tOptionals.of(() -> _dataBucket.data_schema().storage_schema().raw())\n\t\t\t\t\t\t\t.map(raw -> Optional.ofNullable(raw.enabled()).orElse(true))\n\t\t\t\t\t\t\t.orElse(false)\n\t\t\t\t\t\t\t;\n\t\t\t\n\t\t\tif (archive_enabled) {\n\t\t\t\tPath newPath = createArchivePath(currentPath);\n\t\t\t\t_fs.mkdirs(newPath);\n\t\t\t\t\n\t\t\t\t@SuppressWarnings(\"unused\")\n\t\t\t\tfinal boolean success = _fs.rename(currentPath.suffix(_my_uuid), Path.mergePaths(newPath, new Path(\"/\" + currentPath.getName())));\t\t\t\t\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\t_fs.delete(currentPath.suffix(_my_uuid), false);\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(ErrorUtils.getLongForm(HadoopErrorUtils.EXCEPTION_CAUGHT, e));\n\t\t\t// We're just going to move on if we can't delete the file, it's\n\t\t\t// probably a permissions error\n\t\t}\n\t}", "title": "" }, { "docid": "b80cf9e5a0faf43e0e8ddfe12629ea1d", "score": "0.5193049", "text": "public void limpiarFile(ActionEvent event){\n\t\t\n\t\ttry {\n\t\t\t\n\t\t\tif (log.isDebugEnabled()) {\n\t\t\t\tlog.debug(\"Entering 'limpiar' method\");\n\t\t\t}\t\t\t\t\n\t\t\t\n\t\t\tMantenimientoSTOControlDevolucionesForm f = (MantenimientoSTOControlDevolucionesForm)this.formMantenimiento;\n\t\t\tf.setCodigoCliente(\"\");\n\t\t\tf.setCodigosErrados(\"\");\n\t\t\tf.setCodigosErradosFile(\"\");\n\t\t\tthis.attachmentForm =\"\"; \n\t\t\tthis.stoLevantamientoErroresClientesList= new ArrayList(); \n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\tthis.addError(\"Error: \", this.obtieneMensajeErrorException(e));\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "3f0e4992dea01d7b0b27366a5d7ad086", "score": "0.51901305", "text": "void purgeSwapFiles();", "title": "" }, { "docid": "df28f0908d7513a4b881404733ad2f78", "score": "0.51890886", "text": "public void destruir() {\n\t\t\tthis.detener();\r\n\t\t\t\r\n\t\t\t// Notificamos a la logica que este hilo se destruyo.\r\n\t\t\tb.Morir();\r\n\t\t}", "title": "" }, { "docid": "610828988a1da5bf8736a935a9c7b566", "score": "0.5188188", "text": "private void deleteFile(APDU apdu, byte[] buffer){\n\t\tif(selectedDF.isMasterFile()==true)ISOException.throwIt(Util.PERMISSION_DENIED);\n\t\treceiveAPDU(apdu, buffer);\n\t\tif((byte)buffer[ISO7816.OFFSET_LC]!=1)ISOException.throwIt(Util.LENGTH_ERROR);\n\t\tbyte fileID=(byte)buffer[ISO7816.OFFSET_CDATA];\n\t\tif(selectedDF.isValidFileNumber(fileID)==false) ISOException.throwIt(Util.FILE_NOT_FOUND);\n\t\tif(selectedDF.hasManageRights(authenticated)==false)ISOException.throwIt(Util.PERMISSION_DENIED);\n\t\tselectedDF.deleteFile(fileID);\n\t\tmasterFile.arrayDF[selectedDF.getFileID()]=selectedDF;\n\t\tISOException.throwIt(Util.OPERATION_OK);\n\t}", "title": "" }, { "docid": "ed2d19dd2cb7f7b5c815934c91c45de7", "score": "0.51862305", "text": "public void fileAcceptancePanelBack() {\n\t\tsetBooBankGenInfo(false);\n\t\tsetBooBankAddress(true);\n\t\tsetBooFileAcceptance(false);\n\t}", "title": "" }, { "docid": "5116edb487a57edfe823648a49c4f9af", "score": "0.51840734", "text": "public void removeAnItem(final String selected) {\n final String toRemove = selected;\n final AlertDialog.Builder deleteDialog = new AlertDialog.Builder(this);\n deleteDialog.setTitle(\"Remove \\\"\" + toRemove + \"\\\" from \" + sl.listname+\".\" );\n deleteDialog.setMessage(\"Are you sure?\");\n\n deleteDialog.setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n // open file\n try {\n InputStream is = openFileInput(sl.listname + \".txt\");\n File newFile = new File (\"toberenamed\" + \".txt\");\n String line;\n FileOutputStream fos = openFileOutput(newFile.getName(), Context.MODE_APPEND);\n if (is != null) {\n InputStreamReader inputReader = new InputStreamReader(is);\n BufferedReader buffReader = new BufferedReader(inputReader);\n line = buffReader.readLine();\n while (line != null) {\n // Write all unmatched item to a new file.\n if (!line.isEmpty() && !line.contentEquals(toRemove)){\n fos.write(line.getBytes());\n fos.write(\"\\n\".getBytes());\n }\n line = buffReader.readLine();\n }\n }\n fos.flush();\n fos.close();\n is.close();\n debugPrintlistcontent(\"toberenamed\");\n // must have the actual file object for rename to work!\n File oldFile = myGetFile(sl.listname);\n File special = myGetFile(\"toberenamed\");\n if (oldFile != null) {\n oldFile.delete();\n if (special != null && special.exists()) {\n Boolean status = special.renameTo(oldFile);\n Log.v(\"RemoveAnItem:\", \"rname file status: \" + status);\n }\n else\n Log.v(\"RemoveAnItem:\", \"rename special doesn't exist?!\");\n }\n\n } catch(IOException e) {\n e.printStackTrace();\n }\n\n listItems();\n }\n });\n\n deleteDialog.setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n dialogInterface.dismiss();\n }\n });\n deleteDialog.create();\n deleteDialog.show();\n }", "title": "" }, { "docid": "1c8bd67151fab41ed2d14f9cba87d2a7", "score": "0.5175802", "text": "public static void clearFile(String nomeFile) throws FileNotFoundException{\n\t\tPrintWriter pw = new PrintWriter(nomeFile); \n\t\tpw.close();\n\t\t\n\t}", "title": "" }, { "docid": "4add033bc2c560ea702d4f6cc8435283", "score": "0.51743394", "text": "void fileEnd();", "title": "" }, { "docid": "8a3b4634f94a3e0417ebe54f9ba18c46", "score": "0.5169578", "text": "Future<Boolean> deleteFile(FileDefinition fileDefinition);", "title": "" }, { "docid": "45509efb4026b3ec58c07a4f85afa8b4", "score": "0.5169264", "text": "public void removeFile(String nameOfFile){\n\t int nextIndex=findFile(nameOfFile);\n\t if(findFile(nameOfFile)<0){\n\t\t System.out.println(\"File not Found\");\n\t\t return;\n\t }\n\t \n\t System.out.println(\"Permission? \"+this.testPermission(this.ptrTable.get(this.files.get(nextIndex).iNode).permissionCode));\n\t \n\t if(!this.testPermission(this.ptrTable.get(this.files.get(nextIndex).iNode).permissionCode)){\n\t\t System.out.println(\"You do not have permission for this file\");\n\t\t return;\n\t }\n\t \n\t Character[] emptyString = new Character[BLOCK_SIZE];\n\t Arrays.fill(emptyString, '0');\n\t System.out.println(\"File Found. Removing...\");\n\t \n\t //format all ABPTs related to FNT\n\t for(int i=0;i<this.files.get(nextIndex).usedABPT.size();i++){\n\t\t int presentDataBlockPointer=-1;\n\t\t //Clear data at block\n\t\t presentDataBlockPointer=this.ptrTable.get(this.files.get(nextIndex).usedABPT.get(i)).dataBlockPointer;\n\t\t this.datablock.set(presentDataBlockPointer,emptyString);\n\t\t //set map to unused\n\t\t this.dataBlockMap.set(presentDataBlockPointer,0);\n\t\t \n\t\t this.ptrTable.get(this.files.get(nextIndex).usedABPT.get(i)).fileSize=0;\n\t\t this.ptrTable.get(this.files.get(nextIndex).usedABPT.get(i)).modifiedDateTime=\"\";\n\t\t this.ptrTable.get(this.files.get(nextIndex).usedABPT.get(i)).dataBlockPointer=-1;\n\t\t this.ptrTable.get(this.files.get(nextIndex).usedABPT.get(i)).permissionCode=\"777\";\n\t\t this.ptrTable.get(this.files.get(nextIndex).usedABPT.get(i)).extentPointer=-1;\n\t\t //set ABPTMap\n\t\t this.ABPTMap.set(this.files.get(nextIndex).usedABPT.get(i),0);\n\t }\n\t \n\t //Format FNT meta-data\n\t this.FNTMap.set(nextIndex,0);\n\t this.files.get(nextIndex).fileName=\"\";\n\t this.files.get(nextIndex).iNode=-1;\n\t this.files.get(nextIndex).usedABPT.clear();\n\t \n\t \n }", "title": "" }, { "docid": "94e11bec7cabde22b5bdf7fb0eb6e270", "score": "0.51638246", "text": "boolean isClean() throws IOException;", "title": "" }, { "docid": "07b7124a56f9ab37f33541d2b58fc956", "score": "0.5160604", "text": "@FXML\n\tvoid okOnAction(ActionEvent event) {\n\t\tInputStream entrada = null;\n\t\tOutputStream saida = null;\n\n\t\ttry {\n\t\t\tentrada = new FileInputStream(txtOrigem.getText());\n\n\t\t\tsaida = new FileOutputStream(txtDestino.getText());\n\t\t\t\n\t\t\tbyte[] buffer = new byte[4096];\n\t\t\tint quant;\n\t\t\t\n\t\t\t\n\t\t\twhile ((quant = entrada.read(buffer)) > -1 ) {\n\t\t\t\t\n\t\t\t\tsaida.write(buffer,0,quant);\n\t\t\t}\n\t\t\tlblMensagem.setText(\"O arquivo foi copiado com sucesso\");\n\n\t\t} catch (IOException e) {\n\t\t\tlblMensagem.setText(\"Falha ao copiar o arquivo especificado\");\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tclose(entrada);\n\t\t\tclose(saida);\n\t\t}\n\n\t}", "title": "" }, { "docid": "66526471abf133de1e4d1f2c8253abe6", "score": "0.5155046", "text": "public void deleteBetween(File base);", "title": "" }, { "docid": "2dcbb28d2bd12969cbb745347bdbdfb0", "score": "0.5150089", "text": "@Override\n\t\t\t\t\t\tpublic void doConfirm() {\n\t\t\t\t\t\t\tconfirmDialog.dismiss();\n\n\t\t\t\t\t\t\tFile file=null;\n\t\t\t\t\t\t\tString ret = listFiles.get(position);\n\n\n\t\t\t\t\t\t\tif (ret.endsWith(\".doc\")) {\n\t\t\t\t\t\t\t\tfile = new File(Values.PATH_ZFQZ_BOOKMARK+ret);\n\n\t\t\t\t\t\t\t} else if ( ret.endsWith(\".mp4\")) {\n\t\t\t\t\t\t\t\tfile = new File(Values.PATH_CAMERA+ret);\n\t\t\t\t\t\t\t} else if (ret.endsWith(\".amr\"))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tfile = new File(Values.PATH_RECORD+ret);\n\t\t\t\t\t\t\t}else if ( ret.endsWith(\".jpg\")){\n\t\t\t\t\t\t\t\tfile = new File(Values.PATH_PHOTO+ret);\n\t\t\t\t\t\t\t}\n\n\n\t\t\t\t\t\t\tif(file.exists())\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tboolean isDel = file.delete();\n\t\t\t\t\t\t\t\tif(isDel)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tlistFiles.remove(position);\n\t\t\t\t\t\t\t\t\tnotifyDataSetChanged();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}", "title": "" }, { "docid": "a73b55636831cf99300e7f45ca6fa4a3", "score": "0.5145879", "text": "private void CancellaCartella(File cartella) throws IOException\n\t{\n\t File[] contenuto = cartella.listFiles();\n\t if(contenuto != null) //Se non è vuota\n\t for(File f: contenuto)\n\t {\n\t if(f.isDirectory()) CancellaCartella(f);\n\t else { Boolean check = f.delete(); if(check == false) throw new IOException(\"Impossibile eliminare il file \" + f.getPath()); }\n\t }\n\t if(cartella.exists() && cartella.delete() == false) throw new IOException(\"Impossibile eliminare la cartella \" + cartella.getPath());\n\t}", "title": "" }, { "docid": "1a8ad575d6e3e0878abc2cbd07392ecc", "score": "0.51374686", "text": "private void guardar() {\r\n\t\tif (getSelectedFile() == null) {\r\n\t\t\tJFileChooser guardar = new JFileChooser();\r\n\t\t\tguardar.setFileFilter(filtro);\r\n\t\t\tint opcion = guardar.showSaveDialog(frmZoologicoCordoba);\r\n\t\t\tif (opcion == JFileChooser.APPROVE_OPTION) {\r\n\t\t\t\tfile = guardar.getSelectedFile();\r\n\t\t\t\ttry {\r\n\t\t\t\t\tFichero.guardar(General.zoologico, file);\r\n\t\t\t\t\tfrmZoologicoCordoba.setTitle(file.getPath());\r\n\t\t\t\t} catch (FileNotFoundException e1) {\r\n\t\t\t\t\tJOptionPane.showMessageDialog(frmZoologicoCordoba,\r\n\t\t\t\t\t\t\t\"El archivo no se ha encontrado.\", \"Error\",\r\n\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\r\n\t\t\t\t} catch (IOException e1) {\r\n\t\t\t\t\tJOptionPane\r\n\t\t\t\t\t\t\t.showMessageDialog(frmZoologicoCordoba,\r\n\t\t\t\t\t\t\t\t\t\"Error de E/S.\", \"Error\",\r\n\t\t\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\r\n\t\t\t\t}\r\n\t\t\t\tGeneral.zoologico.setModificado(false);\r\n\t\t\t\tsetSelectedFile(file);\r\n\t\t\t}\r\n\t\t} else\r\n\t\t\ttry {\r\n\t\t\t\tFichero.guardar(General.zoologico, file);\r\n\t\t\t} catch (IOException e1) {\r\n\t\t\t\te1.printStackTrace();\r\n\t\t\t}\r\n\t\tGeneral.zoologico.setModificado(false);\r\n\t}", "title": "" }, { "docid": "c1a8501d58151a69b01fa66930a6151b", "score": "0.51336384", "text": "public boolean moverArquivo(String origemPasta,String destinoPasta,String nomePdlFdl){\n\n\t\tArquivoUtil arquivo = new ArquivoUtil();\n\n\t\treturn arquivo.moverArquivo(origemPasta, destinoPasta, nomePdlFdl);\n\n\t}", "title": "" }, { "docid": "e416536827c19b79f6b0ba49c88c7425", "score": "0.5133566", "text": "@Override\r\n\tpublic boolean deleteFile(String name) throws IOException {\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "8ff440af3051c9269a20459528dcc514", "score": "0.51256233", "text": "@Override\n public void onClick(DialogInterface dialog, int which) {\n File file = new File(AbstractActivity.getPath(), input.getText().toString() + Exporter.FILE_EXT[0]);\n try {\n if (file.exists())\n for(String s : Exporter.getObjResources(file))\n if (new File(AbstractActivity.getPath(), s).delete())\n Log.d(AbstractActivity.TAG, \"File \" + s + \" deleted\");\n } catch(Exception e) {\n e.printStackTrace();\n }\n mProgress.setVisibility(View.VISIBLE);\n new Thread(new Runnable()\n {\n @Override\n public void run()\n {\n long timestamp = System.currentTimeMillis();\n final File obj = new File(AbstractActivity.getTempPath(), timestamp + Exporter.FILE_EXT[0]);\n JNI.saveWithTextures(obj.getAbsolutePath());\n for(String s : Exporter.getObjResources(obj.getAbsoluteFile()))\n if (new File(AbstractActivity.getTempPath(), s).renameTo(new File(AbstractActivity.getPath(), s)))\n Log.d(AbstractActivity.TAG, \"File \" + s + \" saved\");\n final File file2save = new File(AbstractActivity.getPath(), input.getText().toString() + Exporter.FILE_EXT[0]);\n if (obj.renameTo(file2save))\n Log.d(AbstractActivity.TAG, \"Obj file \" + file2save.toString() + \" saved.\");\n mContext.runOnUiThread(new Runnable()\n {\n @Override\n public void run()\n {\n mProgress.setVisibility(View.GONE);\n }\n });\n }\n }).start();\n dialog.cancel();\n }", "title": "" }, { "docid": "f4736723d19dc1d6393d6aad651e40e6", "score": "0.5112408", "text": "void logFilestoreDelete(File file);", "title": "" }, { "docid": "043d8ea53094cf37bc3fc9454576a22a", "score": "0.5111614", "text": "private void resetFiles(){\n Constants.AlarmBell_1 = false;\n closeLogFiles();\n WriteNewFiles();\n }", "title": "" }, { "docid": "047cfcf271f4c5b4fd452ef679dcbee8", "score": "0.5110775", "text": "private void fnDeletePosting()\n {\n File file = new File(this.sPath);\n if (file.exists())\n {\n File[] files = file.listFiles();\n if (null != files)\n {\n for (int i = 0, filesLength = files.length; i < filesLength; i++)\n {\n File file1 = files[i];\n file1.delete();\n }\n }\n file.delete();\n }\n }", "title": "" }, { "docid": "69d033ef7df6fbf76b4e69a1d7b1dd48", "score": "0.5109085", "text": "private void archiveOrDeleteFile() {\n\t\ttry {\n\t\t\tfinal Path currentPath = _fileSplit.getPath(_currFile);\n\t\t\t// First check - if only want to do anything if this is an internal job:\n\t\t\tif (!currentPath.toString().contains(IStorageService.TO_IMPORT_DATA_SUFFIX)) {\n\t\t\t\treturn; // (not your file to modify....)\n\t\t\t}\n\t\t\t\n\t\t\tfinal boolean storage_enabled = \n\t\t\t\t\tOptional.ofNullable(_dataBucket.data_schema()).map(ds -> ds.storage_schema())\n\t\t\t\t\t\t\t.map(ss -> Optional.ofNullable(ss.enabled()).orElse(true))\n\t\t\t\t\t\t\t.orElse(false)\n\t\t\t\t\t\t\t;\n\t\t\t\n\t\t\tfinal boolean archive_enabled = storage_enabled && \n\t\t\t\t\tOptionals.of(() -> _dataBucket.data_schema().storage_schema().raw())\n\t\t\t\t\t\t\t.map(raw -> Optional.ofNullable(raw.enabled()).orElse(true))\n\t\t\t\t\t\t\t.orElse(false)\n\t\t\t\t\t\t\t;\n\t\t\t\n\t\t\tif (archive_enabled) {\n\t\t\t\tPath newPath = createArchivePath(currentPath);\n\t\t\t\t_fs.mkdirs(newPath);\n\t\t\t\t\n\t\t\t\t@SuppressWarnings(\"unused\")\n\t\t\t\tfinal boolean success = _fs.rename(currentPath, Path.mergePaths(newPath, new Path(\"/\" + currentPath.getName())));\n\t\t\t} else {\n\t\t\t\t_fs.delete(currentPath, false);\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(ErrorUtils.getLongForm(HadoopErrorUtils.EXCEPTION_CAUGHT, e));\n\t\t\t// We're just going to move on if we can't delete the file, it's\n\t\t\t// probably a permissions error\n\t\t}\n\t}", "title": "" }, { "docid": "46ddda7c8631672c6a508b8e96f13548", "score": "0.5099", "text": "@FXML\n\tprivate void fichierSauver() {\n\n\t\tif (app.getEntreprise().sauver())\n\t\t\tAlertUtils.showInfoAlert(\"Sauvegarde réussie\", \"\",\n\t\t\t\t\t\"La liste a bien été sauvegardée dans le fichier \"\n\t\t\t\t\t\t\t+ app.getEntreprise().getFileName());\n\t}", "title": "" }, { "docid": "76a9aede7a584af4b4a051902c581c67", "score": "0.50985837", "text": "public void guardarArchivoPoliza(ArchivoBase file)throws HiperionException;", "title": "" }, { "docid": "f35e21b9f3bd594e54e5ce8d557300ab", "score": "0.5092948", "text": "public void deleteFile(View view) throws KloudlessException {\n }", "title": "" }, { "docid": "8df53683cd3e3435de0820bfa4e300c1", "score": "0.5092206", "text": "void deleteFile(String key);", "title": "" }, { "docid": "6dffc5580190d163001aef3a7cf2adaa", "score": "0.5089246", "text": "@Override\n public void actionPerformed(ActionEvent actionEvent) {\n try {\n file = new File(dir + fileN + pt);\n file.delete();\n file.createNewFile();\n } catch (Exception e) {\n System.out.println(\"The file no long exists.\");\n }\n fileFoundDialog.dispose();\n System.exit(0);\n }", "title": "" }, { "docid": "8941fe2d411affaa39939188bc1b32fb", "score": "0.5082097", "text": "public void crearArchivo()\n {\n // mostrar cuadro de diálogo para que el usuario pueda seleccionar el archivo\n JFileChooser selectorArchivo = new JFileChooser();\n selectorArchivo.setFileSelectionMode( JFileChooser.FILES_ONLY );\n \n int resultado = selectorArchivo.showSaveDialog( null );\n \n // si el usuario hizo clic en el botón Cancelar del cuadro de diálogo, <span id=\"IL_AD5\" class=\"IL_AD\">regresar</span>\n if ( resultado == JFileChooser.CANCEL_OPTION )\n return;\n \n // obtener el archivo seleccionado\n File nombreArchivo = selectorArchivo.getSelectedFile(); \n \n // mostrar error si el nombre del archivo es inválido\n if ( nombreArchivo == null || nombreArchivo.getName().equals( \"\" ) )\n JOptionPane.showMessageDialog( null, \"Nombre de archivo incorrecto\",\n \"Nombre de archivo incorrecto\", JOptionPane.ERROR_MESSAGE );\n \n else {\n \n // abrir el archivo\n try {\n RandomAccessFile archivo =\n new RandomAccessFile( nombreArchivo, \"rw\" );\n \n RegistroCuentasAccesoAleatorio registroEnBlanco =\n new RegistroCuentasAccesoAleatorio();\n \n // escribir 100 registros en blanco\n for ( int cuenta = 0; cuenta < NUMERO_REGISTROS; cuenta++ )\n registroEnBlanco.escribir( archivo, 0 );\n \n archivo.close(); // cerrar el archivo\n \n // mostrar mensaje indicando que el archivo se creó\n JOptionPane.showMessageDialog( null, \"Se creó el archivo \" +\n nombreArchivo, \"Estado\", JOptionPane.INFORMATION_MESSAGE );\n \n //JFrame.setDefaultLookAndFeelDecorated(true);\n //JDialog.setDefaultLookAndFeelDecorated(true);\n // new EscribirArchivoAleatorio();\n \n // terminar el programa\n \n } // fin del bloque try\n \n // procesar excepciones durante operaciones de apertura, escritura o cierre del archivo\n catch ( IOException excepcionES ) {\n JOptionPane.showMessageDialog( null, \"Error al procesar el archivo\",\n \"Error al procesar el archivo\", JOptionPane.ERROR_MESSAGE );\n \n System.exit( 1 );\n }\n \n } // fin de instrucción else\n \n }", "title": "" }, { "docid": "c7ef0cd91ea9400a7dbdd751de90babf", "score": "0.50739133", "text": "public static void delete() {\r\n\t\ttry {\r\n\t\t\tPath sourceFile = Paths.get(pathname + \"\\\\newFile.txt\");\r\n\t\t\tFiles.delete(sourceFile);\r\n\t\t} catch (IOException ex) {\r\n\t\t\tex.printStackTrace();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "220b2738bb941829b0dd82155cab16b3", "score": "0.506904", "text": "public void ConcludiSpegnimento()\n\t{\n\t\tFile databaseFolder = new File(config.FILEBASEPATH);\n\t\ttry { CancellaCartella(databaseFolder); }\n\t\tcatch (IOException e)\n\t\t{\n\t\t\tSystem.err.println(\"Errore nello svuotamento della cartella del database documenti: \" + config.FILEBASEPATH);\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "49638c2ee2715427ce75989d88ae63be", "score": "0.50635517", "text": "void removeFile(String id);", "title": "" }, { "docid": "e44c388a5de47ebc8ad7c6a973f8d43a", "score": "0.5060168", "text": "public void drop() {\r\n\t\tthis.name = null;\r\n\t\tthis.file.delete();\r\n\t\tthis.documents.clear();\r\n\t}", "title": "" }, { "docid": "77437244f4c3e843bf207b0748b9464f", "score": "0.5057904", "text": "public void DeleteExistingFileBeforeItDownloads(String Testname) throws Exception {\n\t\ttry {\t\t\t\r\n\t\t\tFile fileTemp1 = new File(System.getProperty(\"user.home\")+\"\\\\Downloads\\\\CFA_FirstName_XML.txt\");\r\n\t\t\tif (fileTemp1.exists()){\r\n\t\t\t\tfileTemp1.delete();\r\n\t\t\t}\r\n\r\n\t\t\tFile fileTemp2 = new File(\"C:\\\\Pivot_Portal\\\\Test Output\\\\CFA_FirstName_XML.txt\");\t\t\r\n\t\t\tSystem.out.println(fileTemp2); \r\n\t\t\tif (fileTemp2.exists()){\r\n\t\t\t\tfileTemp2.delete();\r\n\t\t\t}\r\n\t\t} catch(Exception e){\r\n\t\t\t// if any error occurs\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tboolean retval = false;\t\r\n\t}", "title": "" }, { "docid": "7e42fa618dfe7b4364a4488be707e208", "score": "0.5055078", "text": "public void actionPerformed(ActionEvent e) {\n\t\t\t\t\r\n\t\t\t\tFileWriter flwriter = null;\r\n\t\t\t\tString sFichero = \"C:\\\\\\\\Users\\\\\\\\Ritch\\\\\\\\eclipse-workspace\\\\\\\\Interpreta\\\\\\\\test\\\\\\\\test.jv\";\r\n\t\t\t\tFile f = new File(sFichero);\r\n\t\t\t\tf.delete();\r\n\t\t\t\ttry {\r\n\t\t\t\t f.createNewFile();\r\n\t\t\t\t} catch (IOException ioe) {\r\n\t\t\t\t ioe.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\ttry {//además de la ruta del archivo recibe un parámetro de tipo boolean, que le indican que se va añadir más registros \r\n\t\t\t\t\tflwriter = new FileWriter(\"C:\\\\\\\\Users\\\\\\\\Ritch\\\\\\\\eclipse-workspace\\\\\\\\Interpreta\\\\\\\\test\\\\\\\\test.jv\", true);\r\n\t\t\t\t\tBufferedWriter bfwriter = new BufferedWriter(flwriter);\r\n\t\t\t\t\tbfwriter.write(\"\");\r\n\t\t\t\t\tbfwriter.write(textArea.getText());\r\n\t\t\t\t\tbfwriter.close();\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Archivo test.jv ha sido sobre escrito satisfactoriamente (?)\");\r\n\t\t\t\t\t//principal.main(null);\r\n\t\t\t\t\t\r\n\t\t\t\t} catch (IOException o) {\r\n\t\t\t\t\to.printStackTrace();\r\n\t\t\t\t} finally {\r\n\t\t\t\t\tif (flwriter != null) {\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\tflwriter.close();\r\n\t\t\t\t\t\t} catch (IOException o) {\r\n\t\t\t\t\t\t\to.printStackTrace();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "9888b2c590fd8023dc0f54f4f52b0bba", "score": "0.5049487", "text": "public void jMenuFileExit_actionPerformed(ActionEvent e)\n\t{\n\t\tif (!okToAbandon())\n\t\t\treturn;\n\n\t\tif (isStandAlone)\n\t System.exit(0);\n\t\telse\n\t\t\tdispose();\n }", "title": "" }, { "docid": "06d9e8657c2ea1bd4948283c0e11500c", "score": "0.5049384", "text": "public boolean deleteFileFromDiskConfirmed()\n {\n boolean status=false;\n if ( Strings.getInputBoolean(\"Delete file: \" + file.getPath()) ) {\n General.showOutput(\"Deleting file: \" + file.getPath());\n status = file.delete();\n }\n return( status );\n }", "title": "" }, { "docid": "09fd917dfcd9a0c5a03c7fa0a6d0cd87", "score": "0.5047656", "text": "public static void main(String[] args) {\n File file = new File(\"E://TestFile\");\n System.out.println(deleteFile(file));\n }", "title": "" }, { "docid": "9679e683ab2a130a8db6724fa1c73a2f", "score": "0.50408304", "text": "private void deleteFile(File file) {\n file.delete();\n }", "title": "" }, { "docid": "da2f94f6ea5c2387c3bcf99c5a75d76e", "score": "0.5038925", "text": "public static void copiarFicheiroaOutro() {\n\n try {\n FileInputStream fis = new FileInputStream(\"texto1.txt\");\n// FileOutputStream fos = new FileOutputStream(\"texto2.txt\"); //ex 2_1\n FileOutputStream fos = new FileOutputStream(\"texto2.txt\", true); //modificacion ex 2_2\n System.out.println(\"Arquivo copiado\");\n int c;\n while ((c = fis.read()) != -1) {\n fos.write((char) c);\n }\n fis.close();\n fos.close();\n\n } catch (Exception e) {\n System.out.println(e.getMessage());\n }\n }", "title": "" }, { "docid": "5a7338548c8e6b2e11b97b1a1be61faa", "score": "0.50298154", "text": "void unsetBinary();", "title": "" }, { "docid": "46a9542ff16faa54348cdabf973a7662", "score": "0.5029779", "text": "public void seleccionarArchivoBtn() throws IOException {\n fileChooser = new FileChooser();\n\n // Para seleccionar solamente archivos de texto\n FileChooser.ExtensionFilter extFilter = new FileChooser.ExtensionFilter(\"TEXT files (*.txt)\", \"*.txt\");\n\n fileChooser.getExtensionFilters().add(extFilter);\n\n // Para que por defecto se vaya a la carpeta del proyecto\n fileChooser.setInitialDirectory(new File(System.getProperty(\"user.dir\")));\n\n // Abrir\n selectedFile = fileChooser.showOpenDialog(null);\n\n if (selectedFile == null) {\n System.out.println(\"Archivo no seleccionado\\n\");\n return;\n }\n\n // Verificar que el archivo cumpla con los parámetros (si es que no esta vacio)\n if (selectedFile.length() == 0) {\n ControladorParametrosManual.alertaError(\"Ups! este archivo no tiene ningún parámetro. Inténtelo de nuevo.\");\n } else if (selectedFile != null) {\n listView.getItems().add(selectedFile.getName());\n\n FileReader f = new FileReader(selectedFile);\n BufferedReader br = new BufferedReader(f);\n\n // Lee las tablas\n String lineaDemanda = br.readLine();\n String lineaProbDemanda = br.readLine();\n\n String lineaTiempoEntrega = br.readLine();\n String lineaProbTiempoEntrega = br.readLine();\n\n String lineaTiempoEspera = br.readLine();\n String lineaProbTiempoEspera = br.readLine();\n\n // Lee el resto de los parametros\n Iterator<String> iterator = br.lines().iterator();\n while (iterator.hasNext()) {\n String lineaActual;\n\n // Ignora lineas vacias\n if ((lineaActual = iterator.next()).isEmpty())\n continue;\n\n // Separa lo que esta antes y despues del igual. Antes esta el nombre del parametro, y despues su valor\n String[] clavesValores = lineaActual.split(\"=\");\n\n if (clavesValores.length != 2) {\n ControladorParametrosManual.alertaError(\"Error al leer el archivo de parametros. Cada linea debe tener la \" +\n \"forma \\\"clave = valor\\\", si tiene duda con respecto al formato del archivo, consulte \" +\n \"las instrucciones.\");\n return;\n }\n\n // Lee el valor y lo guarda en la variable correspondiente\n switch (clavesValores[0]) {\n // h: costo de inventario\n case \"h\":\n costoDeInventario = Integer.parseInt(clavesValores[1]);\n break;\n // k: costo por pedido/orden\n case \"k\":\n costoDeOrden = Integer.parseInt(clavesValores[1]);\n break;\n // fce: costo de faltante con espera de cliente\n case \"fce\":\n escasezConEspera = Integer.parseInt(clavesValores[1]);\n break;\n // fse: costo de faltante sin espera de cliente\n case \"fse\":\n escasezSinEspera = Integer.parseInt(clavesValores[1]);\n break;\n // ii: inventario inicial\n case \"ii\":\n inventarioInicial = Integer.parseInt(clavesValores[1]);\n break;\n // dds: dias de simulacion\n case \"dds\":\n diasSimulacion = Integer.parseInt(clavesValores[1]);\n }\n }\n\n String[] demanda = lineaDemanda.split(\"\\\\|\");\n String[] probDemanda = lineaProbDemanda.split(\"\\\\|\");\n\n String[] tiempoEntrega = lineaTiempoEntrega.split(\"\\\\|\");\n String[] probTiempoEntrega = lineaProbTiempoEntrega.split(\"\\\\|\");\n\n String[] tiempoEspera = lineaTiempoEspera.split(\"\\\\|\");\n String[] probTiempoEspera = lineaProbTiempoEspera.split(\"\\\\|\");\n\n tablaDemanda = DistribucionProbabilidad.crearTabla(demanda, probDemanda);\n\n if (tablaDemanda == null) {\n ControladorParametrosManual.alertaError(\"En la tabla de -distribucion de demanda- la suma \" +\n \"de de la frecuencia no es igual a 1\");\n archivoErroneo = 1;\n return;\n }\n\n tablaEntregas = DistribucionProbabilidad.crearTabla(tiempoEntrega, probTiempoEntrega);\n\n if (tablaDemanda == null) {\n ControladorParametrosManual.alertaError(\"En la tabla de -distribucion de tiempos de entrega- \" +\n \"la suma de de la frecuencia no es igual a 1\");\n archivoErroneo = 2;\n return;\n }\n\n tablaEsperas = DistribucionProbabilidad.crearTabla(tiempoEspera, probTiempoEspera);\n\n if (tablaEsperas == null) {\n ControladorParametrosManual.alertaError(\"En la tabla de -distribucion de tiempos de esperas- \" +\n \"la suma de de la frecuencia no es igual a 1\");\n archivoErroneo = 3;\n return;\n }\n\n archivoErroneo = 0;\n\n f.close();\n }\n }", "title": "" }, { "docid": "f656bc2234b915fabc5a1d11351f5154", "score": "0.50296706", "text": "public void response(PDU p){\n byte[] filename = removeTrash(p.getData());\n String absolutPath = System.getProperty(\"user.dir\");\n String path = filePath(filename,absolutPath);\n System.out.println(path);\n File file = new File(path);\n try{\n Scanner sc = new Scanner(file);\n FSChunkProtocol.sendResponse(this.s,file,filename,this.ip,this.destPort);\n } catch(FileNotFoundException e){\n System.out.println(\"O ficheiro não existe!\");\n }\n }", "title": "" }, { "docid": "693788b2da6cf41b573781fa905ef2c7", "score": "0.5025338", "text": "public void deleteInternalFile (Uri fileUri){\n //Uri myUri = Uri.parse(fileUri);\n File toDelteFile = new File(fileUri.getPath());\n if (toDelteFile.exists()) {\n if (toDelteFile.delete()) {\n Log.d(WiFiDirectCopActivity.TAG, \"FILE DELETED\");\n } else {\n Log.d(WiFiDirectCopActivity.TAG, \"FILE DELETE FAIL\");\n }\n }\n\n }", "title": "" }, { "docid": "d4765112a589ada9961207fabc28e260", "score": "0.50231075", "text": "private boolean enviarArchivo() {\n boolean resp = false;\n traza.trace(\"enviando el archivo\", Level.INFO);\n// InfoDocumento infoDocumento, infoDoc;\n InfoDocumento infoDoc;\n //Zip zip = new Zip();\n //ToolsTiff toolsTiff = new ToolsTiff();\n String dirTipoDoc, dirCat, dirSubCat, ruta, lib, exito;\n Matcher mat;\n Pattern pat;\n int idDoc;\n// String archivoSerializado;\n\n pat = Pattern.compile(\" \");\n InputStream leyendo;\n byte[] bu;\n Bufer buffer = new Bufer();\n\n //zip.comprimirArchivos(new File(toolsTiff.getArchivoCodificado()));\n try {\n\n traza.trace(\"guardando el documento\", Level.INFO);\n\n lib = expediente.getLibreria();\n dirCat = expediente.getCategoria();\n dirSubCat = expediente.getSubCategoria();\n dirTipoDoc = expediente.getTipoDocumento();\n idDoc = expediente.getIdTipoDocumento();\n\n mat = pat.matcher(lib);\n lib = mat.replaceAll(\"\");\n\n mat = pat.matcher(dirCat);\n dirCat = mat.replaceAll(\"\");\n\n mat = pat.matcher(dirSubCat);\n dirSubCat = mat.replaceAll(\"\");\n\n mat = pat.matcher(dirTipoDoc);\n dirTipoDoc = mat.replaceAll(\"\");\n\n lib = EncriptaDesencripta.encripta(lib);\n dirCat = EncriptaDesencripta.encripta(dirCat);\n dirSubCat = EncriptaDesencripta.encripta(dirSubCat);\n dirTipoDoc = EncriptaDesencripta.encripta(dirTipoDoc);\n ruta = lib + \"/\" + dirCat + \"/\" + dirSubCat;\n\n leyendo = new FileInputStream(toolsFile.getArchivoCodificado());\n traza.trace(\"posible tamaño del archivo a transferir \" + (leyendo.available() / 1024000), Level.INFO);\n bu = new byte[leyendo.available()];\n leyendo.read(bu);\n leyendo.close();\n\n buffer.setBufer(bu);\n\n infoDocumento.setNombreArchivo(dirTipoDoc);\n infoDocumento.setRutaArchivo(ruta);\n infoDocumento.setCantPaginas(cantidadPaginas);\n traza.trace(\"cantidad de paginas \" + cantidadPaginas, Level.INFO);\n exito = new GestionArchivos().almacenaArchivo(buffer, accion, infoDocumento, expediente.getIdExpediente(), ManejoSesion.getLogin());\n\n if (exito.equalsIgnoreCase(\"exito\")) {\n traza.trace(\"se guardo el documento con exito\", Level.INFO);\n JOptionPane.showMessageDialog(this, \"Documento generado satisfactoriamente\", \"Información\", JOptionPane.INFORMATION_MESSAGE);\n Principal.desktop.removeAll();\n DigitalizaDocumento dd = new DigitalizaDocumento();\n dd.find();\n //CreaEditaDocumento cee = new CreaEditaDocumento();\n Principal.desktop.add(dd);\n setVisible(false);\n resp = true;\n dispose();\n } else {\n traza.trace(\"problemas al guardar el archivo objecto \\n respuesta del webservices \" + exito, Level.INFO);\n JOptionPane.showMessageDialog(this, \"Problemas al guardar el documento, contacte al administrador\\n\" + exito, \"Error\", JOptionPane.DEFAULT_OPTION + JOptionPane.ERROR_MESSAGE);\n// cancelarActionPerformed(null);\n }\n\n } catch (FileNotFoundException ex) {\n traza.trace(\"Error archivo: \", Level.ERROR, ex);\n JOptionPane.showMessageDialog(this, \"Error archivo: \\n\" + ex.getMessage(), \"Error\", JOptionPane.DEFAULT_OPTION + JOptionPane.ERROR_MESSAGE);\n } catch (IOException ex) {\n traza.trace(\"Error lectura archivo: \", Level.ERROR, ex);\n JOptionPane.showMessageDialog(this, \"Error lectura archivo: \\n\" + ex.getMessage(), \"Error\", JOptionPane.DEFAULT_OPTION + JOptionPane.ERROR_MESSAGE);\n } catch (Exception ex) {\n traza.trace(\"Error general: \", Level.ERROR, ex);\n JOptionPane.showMessageDialog(this, ex.getMessage(), \"Error General\", JOptionPane.DEFAULT_OPTION + JOptionPane.ERROR_MESSAGE);\n }\n return resp;\n }", "title": "" }, { "docid": "710e9aa9cbf2b6cff3d66f59950697cc", "score": "0.5019409", "text": "public void eliminarPreOrden(DefaultTableModel tabla, String nombre, String correo, String articulo, String tipo, String cantidad) {\n \r\n DefaultTableModel tempo = (DefaultTableModel) tabla;\r\n try {\r\n String temp;\r\n try (BufferedReader bf = new BufferedReader(new FileReader(\"archivoPreCompras.txt\"))) {\r\n String bfRead;\r\n while ((bfRead = bf.readLine()) != null) {\r\n temp = bfRead;\r\n String lista = temp;\r\n String[] lista1 = lista.split(\",\");\r\n if (lista1[0].equals(nombre) & lista1[1].equals(correo) & lista1[2].equals(articulo) & lista1[3].equals(cantidad) & lista1[4].equals(tipo)) {\r\n try {\r\n File archivo = new File(\"archivoPreCompras.txt\");\r\n FileWriter escribir = new FileWriter(archivo, true);\r\n String temp1;\r\n try (BufferedReader bf1 = new BufferedReader(new FileReader(\"archivoPreCompras.txt\"))) {\r\n String bf1Read;\r\n while ((bf1Read = bf1.readLine()) != null) {\r\n temp1 = bf1Read;\r\n if (temp1.equals(lista)) {\r\n BufferedWriter br = new BufferedWriter(new FileWriter(\"archivoPreCompras.txt\"));\r\n continue;\r\n }\r\n escribir.write(temp1 + \"\\r\\n\");\r\n tempo.setRowCount(0);\r\n }\r\n escribir.close();\r\n JOptionPane.showMessageDialog(null, \"eliminado correctamente\");\r\n mostrarPreOrden(tabla, \"abrir\", 0, \"\", \"\", \"\", \"\");\r\n }\r\n } catch (IOException e) {\r\n JOptionPane.showMessageDialog(null, \"No se encontro el archivo\" + e);\r\n }\r\n break;\r\n }\r\n }\r\n }\r\n } catch (IOException e) {\r\n JOptionPane.showMessageDialog(null, \"No se encontro el archivo\" + e);\r\n }\r\n }", "title": "" } ]
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "d7f86a502352b2652d8209276b3f2a45", "score": "0.0", "text": "@Override\r\n\tpublic Admin login(Admin ad) {\n\t\tAdminExample example = new AdminExample();\r\n\t\texample.createCriteria().andLoginNameEqualTo(ad.getLoginName()).andLoginPwdEqualTo(ad.getLoginPwd());\r\n\t\tList<Admin> list = am.selectByExample(example);\r\n\t\tAdmin admin;\r\n\t\tif(list.size()==0){\r\n\t\t\tadmin=null;\r\n\t\t}else{\r\n\t\t\tadmin=list.get(0);\r\n\t\t}\r\n\t\treturn admin;\r\n\t}", "title": "" } ]
[ { "docid": "da34ed11fe7c5649b3cd0bdad6dca5df", "score": "0.7115525", "text": "@Override\n\t\tpublic void 비행() {\n\t\t\t\n\t\t}", "title": "" }, { "docid": "99cfe01c5035e9a9ca6dafada0e4a005", "score": "0.673545", "text": "@Override\r\n\tpublic void caminar() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t\r\n\t}", "title": "" }, { "docid": "93de84d0e77a5e19e12e7d0655c39af3", "score": "0.67350614", "text": "@Override\n\tpublic void agit() {\n\t\t\n\t}", "title": "" }, { "docid": "f8d94fd3a365ff0f8b293a42b581cc33", "score": "0.6585368", "text": "@Override\r\n public void caminar() {\r\n }", "title": "" }, { "docid": "80d20df1cc75d8fa96c12c49a757fc43", "score": "0.65292907", "text": "@Override\n\tprotected void getExras() {\n\t\t\n\t}", "title": "" }, { "docid": "b256767990570c27f4f2479e85bd7f03", "score": "0.6498265", "text": "@Override\r\n\tpublic void otkazi() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2104f557428f6e269f61b8f05a73cc43", "score": "0.64859766", "text": "@Override\n\tpublic void repare() {\n\t\t\n\t}", "title": "" }, { "docid": "2dcda7054abb2ac593302e39a2284f12", "score": "0.6458362", "text": "@Override\n\tprotected void getExras() {\n\n\t}", "title": "" }, { "docid": "0a93ae79a871bc2bb8787223c8b043a4", "score": "0.64124984", "text": "@Override\n\tpublic void interogare() {\n\t\t\n\t}", "title": "" }, { "docid": "16c30d73c1df796c0e31e93eb0f6e02e", "score": "0.64066756", "text": "@Override\r\n\tpublic void atacar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2e18c1d20c67735ba2db1c70042e02d7", "score": "0.63391966", "text": "@Override\r\n\tpublic void embalar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "83c17378086426b4324c4ea8c160e29d", "score": "0.6268107", "text": "@Override\r\n\tpublic void provjeri() {\n\r\n\t}", "title": "" }, { "docid": "1f7c82e188acf30d59f88faf08cf24ac", "score": "0.62387824", "text": "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "title": "" }, { "docid": "289f89533edfafac14fcf50ce6d1dcfb", "score": "0.6203401", "text": "@Override\n\t\t\t\t\tpublic void accionSi() {\n\n\t\t\t\t\t}", "title": "" }, { "docid": "7c4f2f94b290de5507eb56a649c4fab9", "score": "0.6194336", "text": "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "title": "" }, { "docid": "038aba0c2804848e5fbdbafd6a794e97", "score": "0.61903155", "text": "@Override\r\n\tpublic void genererFacture() {\n\t\t\r\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.61595005", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.61595005", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "9da42c54ca8fb8825afce96ad2d2781c", "score": "0.61518204", "text": "@Override\r\n\tpublic void comenzar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "29cde3f10dab87cebafdd9412ef4b29f", "score": "0.60620016", "text": "@Override\r\n\tpublic void embala() {\n\t\t\r\n\t}", "title": "" }, { "docid": "7aa6963c647c1b2028e2058b152485e1", "score": "0.6050463", "text": "@Override\n\tpublic void generate() {\n\t\t\n\t}", "title": "" }, { "docid": "7aa6963c647c1b2028e2058b152485e1", "score": "0.6050463", "text": "@Override\n\tpublic void generate() {\n\t\t\n\t}", "title": "" }, { "docid": "d18a5453cb937c44d51c46c967f1f4f6", "score": "0.60446644", "text": "protected void method_3848() {}", "title": "" }, { "docid": "63d27d2836275ed0fc981c7cfae8e737", "score": "0.60322064", "text": "@Override\n\tprotected void init(){\n\t}", "title": "" }, { "docid": "d49d17272b1c32563649e99191745398", "score": "0.6026779", "text": "@Override\n\tpublic void inchide() {\n\t\t\n\t}", "title": "" }, { "docid": "b7d3c2b49702a5ed673b243bf8d2b7c0", "score": "0.60250884", "text": "@Override\n\tprotected void funcionario() {\n\t\t\n\t}", "title": "" }, { "docid": "770d423e40bf5782a700bc181e8b8a1e", "score": "0.6021195", "text": "@Override\n\tvoid init() {\n\t\t\n\t}", "title": "" }, { "docid": "770d423e40bf5782a700bc181e8b8a1e", "score": "0.6021195", "text": "@Override\n\tvoid init() {\n\t\t\n\t}", "title": "" }, { "docid": "85245b1c9026959162e61e0473f9cf29", "score": "0.5961993", "text": "@Override\n\t\t\t\t\tpublic void accionNo() {\n\n\t\t\t\t\t}", "title": "" }, { "docid": "f0512ddbeb7af0b9d9405114f8362f5d", "score": "0.5936479", "text": "private void recupererPliPrecedent() {\n\t}", "title": "" }, { "docid": "66f76462eb0121053379289c39650179", "score": "0.5928719", "text": "public void mo19333b() {\n }", "title": "" }, { "docid": "2d61391fe8770661f25917f3770f2a26", "score": "0.5926068", "text": "@Override\n\t\tpublic void init(){\n\t\t\t\n\t\t}", "title": "" }, { "docid": "da5f753a7cd33da8d5581d14337c059f", "score": "0.59106505", "text": "@Override\n\tpublic void tauchen() {\n\t\t\n\t}", "title": "" }, { "docid": "21e83e0c6fdd60581bc05b6e8f682d1e", "score": "0.590058", "text": "public void mo7875c() {\n }", "title": "" }, { "docid": "cad86041007c052466e6525bc7dcd8c8", "score": "0.5900038", "text": "@Override\r\n\tpublic void trasation() {\n\t\t\r\n\t}", "title": "" }, { "docid": "cfd10238a4f026fdd414282790c4920f", "score": "0.58989364", "text": "@Override\r\n\t\tprotected void initData() {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "5477922fce309be487fa552d27c3bf32", "score": "0.588723", "text": "public void mo7873a() {\n }", "title": "" }, { "docid": "7f91c82c66ced12c5b193d3c89d68e4c", "score": "0.5887088", "text": "@Override\n\tprotected void init() {\n\t}", "title": "" }, { "docid": "7f91c82c66ced12c5b193d3c89d68e4c", "score": "0.5887088", "text": "@Override\n\tprotected void init() {\n\t}", "title": "" }, { "docid": "69b1247a4afd513b9853da385d6f2d24", "score": "0.5866052", "text": "@Override\n\tpublic void resta() {\n\t\t\n\t}", "title": "" }, { "docid": "4967494f628119c8d3a4740e09278944", "score": "0.58600056", "text": "@Override\r\n\tprotected void initData() {\n\r\n\t}", "title": "" }, { "docid": "5aa237d31e744d1e0729621e464fcfb2", "score": "0.5854957", "text": "@Override\r\n\tprotected void DataInit() {\n\r\n\t}", "title": "" }, { "docid": "c5648e3463d069bbd00252aa57baecf9", "score": "0.585383", "text": "@Override\r\n\r\n\t\t\tpublic void init() {\n\r\n\t\t\t\t\r\n\r\n\t\t\t\t\r\n\r\n\t\t\t}", "title": "" }, { "docid": "9a2bf99ecbc04ed75ccb3e865d3d8a64", "score": "0.5852628", "text": "@Override\n public void vypisSudy() {\n }", "title": "" }, { "docid": "9a2bf99ecbc04ed75ccb3e865d3d8a64", "score": "0.5852628", "text": "@Override\n public void vypisSudy() {\n }", "title": "" }, { "docid": "2a6c59f221c7c146ab9267197b8cf257", "score": "0.5849516", "text": "@Override\n\tpublic void prnt() {\n\t\t\n\t}", "title": "" }, { "docid": "451aac44b51bc834350309c1b94be619", "score": "0.5848916", "text": "@Override\r\n\tprotected void speichereSonderwuensche() {\n\t\t\r\n\t}", "title": "" }, { "docid": "39c15addb7f9cae9284ae4af01c5a911", "score": "0.58365273", "text": "@Override\r\n\tpublic void cortar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "fab6f4103beb4667b90da1eb3672a4fa", "score": "0.58215445", "text": "@Override\n\tprotected void update() {\n\n\t}", "title": "" }, { "docid": "97c456611a497fb152db478124462615", "score": "0.58052194", "text": "public void mo7874b() {\n }", "title": "" }, { "docid": "ecd084bf055d602fdedf08fab1e19a33", "score": "0.5804955", "text": "@Override\n\tvoid emi() {\n\t\t\n\t}", "title": "" }, { "docid": "ecd084bf055d602fdedf08fab1e19a33", "score": "0.5804955", "text": "@Override\n\tvoid emi() {\n\t\t\n\t}", "title": "" }, { "docid": "ecd084bf055d602fdedf08fab1e19a33", "score": "0.5804955", "text": "@Override\n\tvoid emi() {\n\t\t\n\t}", "title": "" }, { "docid": "b14d9313b224be37257260448fc816d3", "score": "0.5803265", "text": "@Override\n\tpublic void breathes()\n\t{\n\n\t}", "title": "" }, { "docid": "63519e7beede7b06dcebbca99514f5c5", "score": "0.580137", "text": "@Override\n\tprotected void salirsePorXIzq() {\n\t\t\n\t}", "title": "" }, { "docid": "c60781d66bd146683572dce40076140d", "score": "0.57919073", "text": "private LIDAR() \n\t\t{\n\n\t\t}", "title": "" }, { "docid": "3138943fc1f99b10746b6218fb0522fe", "score": "0.5789574", "text": "@Override\n public int order() {\n return 1;\n }", "title": "" }, { "docid": "f93772ae3050679cb5cad45b34d90052", "score": "0.5784679", "text": "public void mo36368c() {\n }", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773749", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773749", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773749", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773749", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773749", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773749", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773749", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773749", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773749", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5773749", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "4049f356224496e4636627d70f5c0e9a", "score": "0.5767827", "text": "@Override\n\tpublic void generateData() \n\t{\n\t}", "title": "" }, { "docid": "8843ebe8d692b94536f16d5f07fdff4f", "score": "0.57601655", "text": "@Override\n public void update() {\n // TODO Auto-generated method stub\n }", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57585216", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "3013650e7b02771c88bbeb22d93b2660", "score": "0.57579416", "text": "@Override\r\n public String toString(){\n return null;\r\n }", "title": "" }, { "docid": "ebfe1bb4dd1c0618c0fad36d9f7674b4", "score": "0.57515615", "text": "@Override\n protected void initialize() {\n\n }", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.5749909", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.5749909", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.5749909", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.5749909", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.5749909", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.5749909", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.5749909", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.5749909", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.5749909", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b6c53604ad2f38e9cacf958a442de4cf", "score": "0.5742119", "text": "@Override\n\tprotected void initAfterData() {\n\n\t}", "title": "" }, { "docid": "5485c75c53fb64a169034dd96e00cb59", "score": "0.57358986", "text": "@Override\n public void init() { \n }", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.5735176", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.5735176", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.5735176", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.5735176", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.5735176", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "c8c5ebd68bae88ac49f0df82efdf5eac", "score": "0.57210535", "text": "@Override\n\tprotected void body()\n\t{\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "5a8ab197ccef743fd48bf5cf5814c8e3", "score": "0.57159525", "text": "public void atacar(){\n\t\t\r\n\t}", "title": "" }, { "docid": "10ec55a5c701bead54e2106675e8d0e2", "score": "0.5704291", "text": "@Override\n\tpublic void somma() {\n\t\t\n\t}", "title": "" }, { "docid": "7aadbda143e84de0144f7a8dadde423d", "score": "0.57032174", "text": "@Override\n protected void initData() {\n\n }", "title": "" }, { "docid": "ad9858643cb51c92112f1a2ed05ea34e", "score": "0.5701776", "text": "public void mo7876d() {\n }", "title": "" }, { "docid": "cc445ddeaecb385fbe47df8b7c49ffc4", "score": "0.56995475", "text": "@Override\r\n\tpublic void effectuerRemboursement() {\n\t\t\r\n\t}", "title": "" }, { "docid": "57dab2b5051a2a184d855564327c4b1a", "score": "0.5698921", "text": "@Override\n\tpublic void init() \n\t{\n\n\t}", "title": "" }, { "docid": "01841f81ab35e62f2bd0f7128634a0ab", "score": "0.5691526", "text": "@Override\n\tpublic void laufen() {\n\t\t\n\t}", "title": "" }, { "docid": "20b42a0c3fee6c140a112d40354f4298", "score": "0.5690479", "text": "@Override\r\n\tpublic void prepara() {\n\t\t\r\n\t}", "title": "" }, { "docid": "4dff52b2278f26ec5d11e194ed9cf5a6", "score": "0.5689044", "text": "@Override\n public String toString() {\n return null;\n }", "title": "" }, { "docid": "e77a68a99f5bd2a047671668b77c1854", "score": "0.5681232", "text": "@Override\n public void generate() {\n }", "title": "" }, { "docid": "2a0ef0804fb04e99e4054007df8500da", "score": "0.56768185", "text": "public void mo11098e() {\n }", "title": "" } ]
6d0108bb368203da3a81b2287638f174
/ The classify method takes the feature vector in the form of an double array and return as double class value. The method returns several exceptions as the code would suggest.
[ { "docid": "99af5ccd4971217dc7b620154de83cb1", "score": "0.7321428", "text": "public static double classify(double[] candidateArray) throws Exception {\n\t\tif(candidateArray==null || candidateArray.length==0){\n\t\t\tthrow new Exception(\"Input Array must not be empty\");\n\t\t}\n\t\t//1. Check the number of attributes are consistent or not\n\t\tif (candidateArray.length != numOfAttributes-1) {\n\t\t\tthrow new Exception(\"Size mismatch : Input array provided is of size \" + candidateArray.length + \n\t\t\t\t\t\t\" and expected is \" + String.valueOf(numOfAttributes-1));\n\t\t}\n\t\t// 2. Create an Instance Object for classifying\n\t\tInstance instance = new Instance(numOfAttributes);\n\n\t\t// 3. Assign the dataset of Weka Model.\n\t\tinstance.setDataset(data);\n\n\t\t// 4. Set Attributes of the Instance\n\t\tint attributeIndex = 0;\n\t\tfor (int index = 0; index < candidateArray.length;index++) {\n\t\t\tif(index == indexOfClassAttr-1){\n\t\t\t\tattributeIndex++;\n\t\t\t}\n\t\t\tinstance.setValue(attributeIndex,candidateArray[index]);\n\t\t\tattributeIndex++;\t\t\t\n\t\t}\n\t\t\n\t\ttry{\n\t\t\treturn cls.classifyInstance(instance);\n\t\t}catch(ArrayIndexOutOfBoundsException arrayIndexOutOfBoundsException){\n\t\t\tthrow new Exception(\"Probable mismatch of class Index : \" + indexOfClassAttr + \n\t\t\t\t\t\" was provided as input,\\n please check in model and property file\");\n\t\t}\n\t}", "title": "" } ]
[ { "docid": "51283e7b8d9e9472f68fab54cfe7fd27", "score": "0.6988821", "text": "public FeatureVector classify(int[] exampleFeatures, double[] exampleValues)\n {\n return new FeatureVector(featureValue(exampleFeatures, exampleValues));\n }", "title": "" }, { "docid": "dd6794b24a4d4e326a65ed26fd1a51f1", "score": "0.64759725", "text": "public double[] classify(ArrayList<Tab> tabs) {\n // try to optimally classify\n double[] result = new double[2];\n Object[] optimalResult = isOptimalClassification(tabs); // if possible optimal classify the data\n if ((boolean) optimalResult[0] == true) {\n result[0] = (double) optimalResult[1];\n // since this is optimal the result confidence always be 1\n result[1] = 1.0;\n } else {\n // if not do it not optimally\n result = exhaustiveClassification(tabs);\n }\n return result;\n }", "title": "" }, { "docid": "abbf8ca5a17725351d8735f8e139eb6a", "score": "0.64505035", "text": "public double classify(FeaturedObjectInterface sample)\n\t{\n\t\tdouble toTest = sample.getFeature(featureIndex);\n\t\tif(left==true)\n\t\t{\n\t\t\tif(threshold <= toTest) return 1;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif(toTest <= threshold) return 1;\n\t\t}\n\t\treturn -1;\n\t}", "title": "" }, { "docid": "4d8f24e067505ed5cc27ed3d9f6ea25d", "score": "0.63475", "text": "IrisType classify(Iris iris);", "title": "" }, { "docid": "e3da7a6d7f2dc530a0b553571f341cd9", "score": "0.6279664", "text": "public void classify() {\n\t\tpredicts = new int[numInstances];\n\t\tfor (int i = 0; i < numInstances; i++) {\n\t\t\tpredicts[i] = classify(data.instance(i));\n\t\t} // Of for i\n\t}", "title": "" }, { "docid": "11e0929390e747743ce6e7ed3fc1e92a", "score": "0.6219236", "text": "private int classify(List<Double> instance, DecTreeNode node) {\n\t\tif (node.isLeaf())\n\t\t\treturn node.classLabel;\n\t\tif (instance.get(Integer\n\t\t\t\t.parseInt(node.attribute.substring(1, node.attribute.length()))\n\t\t\t\t- 1) <= node.threshold)\n\t\t\treturn classify(instance, node.left);\n\t\treturn classify(instance, node.right);\n\t}", "title": "" }, { "docid": "28eb3aeb14a602a1be8ce6c03b0f3312", "score": "0.62168247", "text": "public double classify(String string) {\n double result = -1;\n String [] test = string.split(\" \");\n try {\n\n ArrayList<Attribute> attributeList = new ArrayList<Attribute>();\n \n for (int i = 0; i < test.length; i++) {\n\t\t\t\t\n\t\t\t}\n \n for (String x : test) {\n\t\t\t\tattributeList.add(new Attribute(x));\n\t\t\t}\n\n ArrayList<String> classVal = new ArrayList<String>();\n classVal.add(\"SPAM\");\n classVal.add(\"NEWS\");\n classVal.add(\"SPORTS\");\n\n\n attributeList.add(new Attribute(\"@@class@@\",classVal));\n\n Instances data = new Instances(\"TestInstances\",attributeList,0);\n\n\n // Create instances for each pollutant with attribute values latitude,\n // longitude and pollutant itself\n inst_co = new DenseInstance(data.numAttributes());\n data.add(inst_co);\n\n // Set instance's values for the attributes \"latitude\", \"longitude\", and\n // \"pollutant concentration\"\n inst_co.setValue(latitude, lat);\n inst_co.setValue(longitude, lon);\n inst_co.setValue(carbonmonoxide, co);\n // inst_co.setMissing(cluster);\n\n // load classifier from file\n Classifier cls_co = (Classifier) weka.core.SerializationHelper\n .read(\"/CO_J48Model.model\");\n\n result = cls_co.classifyInstance(inst_co);\n } catch (Exception e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n return result;\n }", "title": "" }, { "docid": "04a0fab26526446c28036a2ed73fedda", "score": "0.61653227", "text": "void classify(ArrayList<Data2> test) {\n\t\t\n\t\tint classV = 9999;\n\t\tPrintWriter p;\n\t\ttry {\n\t\t\tp = new PrintWriter(\"HW04_Saxena_Shubham_MyClassifications.txt\");\n\t\t\tfor (Data2 d : test) {\n\t\t\t\tif (d.a >= 4.2) {\n\t\t\t\t\tif (d.b >= 3.3) {\n\t\t\t\t\t\tclassV = 0;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tclassV = 1;\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif (d.c >= 2.0) {\n\t\t\t\t\t\tclassV = 0;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tclassV = 1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\td.d = classV;\n\t\t\t\tSystem.out.println(\"Row:\" + d + \" Class Value = \" + classV);\n\t\t\t\tp.write(\"Row:\" + d + \" Class Value = \" + classV + \"\\n\");\n\t\t\t\tp.flush();\n\t\t\t}\n\t\t\tp.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "ee08a5282a9095c75fb064626c158461", "score": "0.61212486", "text": "private float SVM( DataSet d) throws IOException {\n\t\t\n\t\tDataset data = new DefaultDataset();\n\t\tfor(int j=0; j<d.DataSet().size(); j++) {\n\t\t\t\n\t\t\tboolean sample[] = d.DataSet().get(j);\n\t\t\tboolean output = d.OutputSet().get(j)[0];\n\t\t\t\n\t\t\tdouble val[] = new double[sample.length >> 1];\n\t\t\tfor(int i=0; i<val.length; i++) {\n\t\t\t\tval[i] = sample[i] == true ? 1.0f : 0.0f;\n\t\t\t}\n\t\t\t\n\t\t\tif(output == true) {\n\t\t\t\tdata.add(new DenseInstance(val, TRUE_VAL));\n\t\t\t} else {\n\t\t\t\tdata.add(new DenseInstance(val, FALSE_VAL));\n\t\t\t}\n\t\t}\n\t\t\n\t\tSMO smo = new SMO();\n\t\tClassifier javamlsmo = new WekaClassifier(smo);\n javamlsmo.buildClassifier(data);\n \n float true_count = 0;\n for(int i=0; i<d.TestDataSet().size(); i++) {\n \t\n \tboolean sample[] = d.TestDataSet().get(i);\n\t\t\tboolean output = d.TestOutputSet().get(i)[0];\n\t\t\t\n\t\t\tdouble val[] = new double[sample.length >> 1];\n\t\t\tfor(int j=0; j<val.length; j++) {\n\t\t\t\tval[j] = sample[j] == true ? 1 : 0;\n\t\t\t}\n\n\t\t\tBoolean obj = (Boolean) javamlsmo.classify(new DenseInstance(val));\n\t\t\t\n\t\t\tif(obj == TRUE_VAL && output == true) {\n\t\t\t\ttrue_count++;\n\t\t\t} else if(output == false) {\n\t\t\t\ttrue_count++;\n\t\t\t}\n }\n \n return true_count / d.TestDataSet().size();\n\t}", "title": "" }, { "docid": "a41475a72b251a918b549aca3fe9fa63", "score": "0.5968707", "text": "@Test\r\n\tpublic void classifyTest(){\r\n\t\tint[][] testGrades = {{1,1,2,5},{1,6,5,9},{5,9,9,9,9,9,9,15},{1,15,15,15}};\r\n\t\tClassification[] expectedClasses = {Classification.First,Classification.UpperSecond,Classification.LowerSecond,Classification.Third};\r\n\t\tfor(int i=0;i<4;i++)\r\n\t\t{\r\n\t\t\tList<PointGrade> tempList = new ArrayList<PointGrade>();\r\n\t\t\tfor(int j=0;j<testGrades[i].length;j++)\r\n\t\t\t{\r\n\t\t\t\ttempList.add(new PointGrade(testGrades[i][j]));\r\n\t\t\t}\r\n\t\t\tProfile testProfile = new Profile(tempList);\r\n\t\t\tassertEquals(expectedClasses[i],testProfile.classify());\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "7b662ceeceaf234b392f599b9a5fa74f", "score": "0.5961196", "text": "@Override\n\t public ClassifyResult classify(List<String> words) {\n\t // TODO : Implement\n\t // Sum up the log probabilities for each word in the input data, and the probability of the label\n\t // Set the label to the class with larger log probability\n\t \t\n\t ClassifyResult cr = new ClassifyResult();\n\t Map<Label, Double> logProb = new HashMap<Label, Double>();\n\n\t double negativeL = 0;\n\t double negativeT = 0;\n\t double negativeD = this.docs.get(Label.NEGATIVE);\n\t \n\t double positiveD = this.docs.get(Label.POSITIVE);\n\t double positiveL = 0;\n\t double positiveT = 0;\n\n\t double sum = this.docs.get(Label.POSITIVE) + this.docs.get(Label.NEGATIVE);\n\t double probNegLabel = negativeD / sum;\n\t double probPosLabel = positiveD / sum;\n\t \n\t for (int i = 0; i < words.size(); i++) {\n\t negativeL += Math.log(p_w_given_l(words.get(i), Label.NEGATIVE));\n\t positiveL += Math.log(p_w_given_l(words.get(i), Label.POSITIVE));\n\t }\n\t \n\t negativeT = Math.log(probNegLabel) + negativeL;\t \n\t positiveT = Math.log(probPosLabel) + positiveL;\n\n\t if (positiveT >= negativeT) {\n\t cr.label = Label.POSITIVE;\n\t }\n\t \n\t else {\n\t cr.label = Label.NEGATIVE;\n\t }\n\t \n\t logProb.put(Label.NEGATIVE, negativeT);\n\t logProb.put(Label.POSITIVE, positiveT);\n\n\t cr.logProbPerLabel = logProb;\n\t return cr;\n\t }", "title": "" }, { "docid": "1d53e095a5ba44b1e5f98a8015abf9ff", "score": "0.59384215", "text": "boolean correctClassifier(double[] x, String y)\n\t{\n\t\tdouble classifier = 0.0;\t// A temporary variable to store the classifier label.\n\t\t// Use implicit classifier to calculate (dot(w, phi(x)) - theta)\n\t\tfor (int j = 0; j < trainingSetSize; j++)\n\t\t{\n\t\t\tclassifier += c[j]*(Math.pow((1 + dotProduct(x, data.storage[trainingIndices[j]])), d));\n\t\t}\n\n\t\t// Return true if sign(classifier) == y, return false if sign(classifier) != y;\n\t\tif (classifier < 0)\t{\n\t\t\tif (y.equals(\"-1.0\")) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\telse {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif (y.equals(\"1.0\")) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\telse {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "4cbd349447fd503b8720fb45732f84c3", "score": "0.5938038", "text": "public native double[] SVMClassify(String modelFile, \n List<SortedMap<Integer, Double>> attributeSets, int totDocs);", "title": "" }, { "docid": "0311d5b8974619d299c9c239afb2034f", "score": "0.58852303", "text": "public Pair<Integer, Double> classifyInstance(Instance instance)\n\t{\n\t DtNode currNode = (DtNode) this.getRoot();\n \t \n while (!(currNode instanceof DtLeaf))\n {\n @SuppressWarnings(\"unchecked\")\n Set<DtNode> children = ((Set<DtNode>) ((Set<?>) currNode.getChildren()));\n \n for (DtNode node : children)\n {\n if (node.doesInstanceSatisfyNode(instance))\n {\n currNode = node;\n break;\n }\n }\n }\n\n DtLeaf leaf = (DtLeaf) currNode;\n \n Integer prediction = leaf.getClassLabel().intValue();\n \n /*\n * Get total number of instances that reached the leaf node \n */\n Integer totalCount = 0;\n for (Integer count : leaf.getClassCounts().values())\n {\n totalCount += count;\n }\n \n /*\n * Calculate the confidence\n */\n Double confidence = (double) (leaf.getClassCounts().get(prediction)) / totalCount;\n \n return new Pair<Integer, Double>(prediction, confidence); \n\t}", "title": "" }, { "docid": "c213126151b7e1a8bc7c9dea722848db", "score": "0.5819866", "text": "public Classification classify (Instance instance)\n\t{\n\t\tint numClasses = getLabelAlphabet().size();\n\t\tdouble[] scores = new double[numClasses];\n\t\t//getClassificationScores (instance, scores);\n\t\tgetClassificationScores(instance, scores);\n\t\t// Create and return a Classification object\n\t\treturn new Classification (instance, this,\n\t\t\t\tnew LabelVector (getLabelAlphabet(),\n\t\t\t\t\t\tscores));\n\t}", "title": "" }, { "docid": "15e2a5fe1c068abd3686800f769db687", "score": "0.576557", "text": "public double classify(Dataset dataset, Random rng, Instance instance) {\n if (dataset.isNumerical(dataset.getLabelId())) {\n double sum = 0;\n int cnt = 0;\n for (Node tree : trees) {\n double prediction = tree.classify(instance);\n if (prediction != -1) {\n sum += prediction;\n cnt++;\n }\n }\n return sum / cnt;\n } else {\n int[] predictions = new int[dataset.nblabels()];\n for (Node tree : trees) {\n double prediction = tree.classify(instance);\n if (prediction != -1) {\n predictions[(int) prediction]++;\n }\n }\n \n if (DataUtils.sum(predictions) == 0) {\n return -1; // no prediction available\n }\n \n return DataUtils.maxindex(rng, predictions);\n }\n }", "title": "" }, { "docid": "3b37feb9dbc01e8a46d84c9b1a1f30b8", "score": "0.5764237", "text": "public static void NaiveBaseClassifier() throws Exception\r\n{\r\n\t\r\n\tboolean temp =false;\r\n\tdouble errorrate=0.0;\r\n\tint classvar =0;\r\n\tArrayList<Double> errorlist=new ArrayList<>();\r\n\tArrayList<Integer> classcol=new ArrayList<>();\r\n\t ArrayList<String> closedpattern = new ArrayList<>();\r\n\t \r\n\t for (String classdata : Files.readAllLines(Paths.get(System.getProperty(\"user.dir\") + \"//src//project2//BANK_MARKET.txt\"))) {\t\r\n\t\t for (String partdata : classdata.split(\",\")) {\r\n\t\t\t classvar=Integer.valueOf(partdata);\r\n\t\t\t classcol.add(classvar);\r\n\t\t\t break;\r\n\t\t }\r\n\t }\r\n\t for (String lineclosed : Files.readAllLines(Paths.get(\"C://MS-Summer//Data Mining//DataMining Workspace//Project2//src//fpgrowth//outputclosedpatternsonly.txt\"))) {\r\n\t\t ArrayList<String> matchpattern=new ArrayList<>();\r\n\t int closedcount=0;\r\n\t closedpattern.add(lineclosed);\r\n\t for (String linedata : Files.readAllLines(Paths.get(\"C://MS-Summer//Data Mining//DataMining Workspace//Project2//src//fpgrowth//DiscretizedD.txt\"))) {\r\n\t\t\r\n\t \t for (String partclosed : lineclosed.split(\" \")) {\r\n\t\t Integer closed=Integer.valueOf(partclosed);\r\n\t\t for (String partdata : linedata.split(\" \")) {\r\n\t\t\t Integer data =Integer.valueOf(partdata);\r\n\t\t\t if(closed==data)\r\n\t\t\t {\r\n\t\t\t\t temp=true;\r\n\t\t\t\t break;\r\n\t\t\t }\r\n\t\t\t else\r\n\t\t\t {\r\n\t\t\t\t temp=false;\r\n\t\t\t\t \r\n\t\t\t }\r\n\t\t }\t \t \t\r\n\t }\r\n\t if(temp==true){\r\n\t\t matchpattern.add(linedata);\r\n\t\t closedcount++;\r\n\t }\t\t\t \t\t \r\n }\r\n\r\n FastVector fvWekaAttributes = new FastVector(21);\r\n FastVector fvClassVal = new FastVector(2);\r\n fvClassVal.addElement(\"1\");\r\n fvClassVal.addElement(\"0\");\r\n Attribute ClassAttribute = new Attribute(\"ClassAttribute\",fvClassVal);\r\n fvWekaAttributes.addElement(ClassAttribute);\r\n String AttributeVar=\"\";\r\n for(int i=1;i<21;i++)\r\n {\r\n\t AttributeVar = \"Attribute\"+i;\r\nFastVector fvNominalVal = new FastVector(5);\r\nfvWekaAttributes.addElement( new Attribute(AttributeVar));\r\n }\r\n\r\n\r\n\r\n// Declare the class attribute along with its values\r\n\r\nInstances isTrainingSet = new Instances(\"Rel\", fvWekaAttributes, closedcount);\r\nisTrainingSet.setClassIndex(0);\r\nint total_num_cols=21;\r\nSystem.out.println(\"closed couint:::\"+closedcount);\r\nfor(int i=0;i<(closedcount);i++)\r\n{\r\nInstance iExample = new DenseInstance(total_num_cols);\r\nfor(int j=0;j<21;j++)\r\n{\r\nif(j==0)\r\n{\r\niExample.setValue((Attribute)fvWekaAttributes.elementAt(j), classcol.get(i));\r\n}\r\nelse\r\n{\r\n\tint p = 1;\t\t\t\r\nfor(String matchdata:matchpattern.get(i).split(\" \")){\t\t\r\n\tiExample.setValue((Attribute)fvWekaAttributes.elementAt(p),Integer.parseInt(matchdata));\r\n\tp++;\r\n}\r\n}\r\n}\r\nisTrainingSet.add(iExample);\r\n\r\n}\r\n\r\nNaiveBayes cModel = new NaiveBayes();\r\ncModel.buildClassifier(isTrainingSet);\r\n\t \r\nEvaluation eTest = new Evaluation(isTrainingSet);\r\neTest.evaluateModel(cModel, isTrainingSet);\r\nerrorrate=eTest.errorRate();\r\nerrorlist.add(errorrate);\r\nSystem.out.println(\"errorlist is:::\"+errorrate);\r\nString strSummary = eTest.toSummaryString();\r\n//System.out.println(strSummary);\r\n\r\ndouble[][] cmMatrix = eTest.confusionMatrix();\r\n\t }\r\n//////////////// calculating objective function////////////////////\r\nint i,j=0;\r\ndouble errorratecalc=0.0;\r\nint n=3;\r\nint k=2;\r\nint l;\r\nint once=1;\r\nArrayList<ArrayList<Integer>> permutations = new ArrayList<>();\r\nArrayList<Integer> comboval= new ArrayList<>();\r\nArrayList<String> closepattern1= new ArrayList<>();\r\nArrayList<String> closepattern2= new ArrayList<>();\r\nHashMap<Integer,Double> obfunction=new HashMap<>();\r\ndouble similarity=0.0;\r\nArrayList<Double> jacsimilarity= new ArrayList<>();\r\n\r\ndouble objfunc=0.0;\r\nString obj_print=\"\";\r\nString jaccard_print=\"\";\r\nString file_print=\"\";\r\nint highk=0;\r\nfor(i=0;i<errorlist.size();i++)\r\n{\r\n\t for(j=0;j<i+1;j++){\r\n\t\t errorratecalc+=(errorlist.get(j));\r\n\t\t\t\r\n }\r\n\t errorratecalc=errorratecalc/j;\r\n\t ObjFunctionInfo objinfo = new ObjFunctionInfo();\r\n\t ///////////calling permutations method to get combinations!!!\r\n\t if(j==2 || j>2){\r\n\t\t \r\n\t permutations= combine(j, k);\r\n\t for(l=0;l<permutations.size();l++)\r\n\t {\r\n\t\t for(j=0;j<(permutations.get(l)).size();j++)\r\n\t\t {\r\n\t\t comboval.add((permutations.get(l)).get(j));\r\n\t\t }\r\n\t\t similarity= findjaccardSimilarity(closedpattern.get((comboval.get(0))-1),closedpattern.get((comboval.get(1))-1));\r\n\t\t closepattern1.add(closedpattern.get((comboval.get(0))-1));\r\n\t\t closepattern2.add(closedpattern.get((comboval.get(1))-1));\t\t\r\n\t\t jacsimilarity.add(similarity);\r\n\t\t similarity+=similarity;\r\n\t\t comboval.clear();\t \r\n\t }\r\n\t\t\r\n\t }\r\n\t similarity=similarity/(permutations.size());\r\n\t objfunc=errorratecalc*(1-similarity);\t\r\n\t objinfo.closedpattern1.addAll(closepattern1);\r\n\t objinfo.closedpattern2.addAll(closepattern2); \r\n\t objinfo.jaccardsimilarity.addAll(jacsimilarity);\r\n\t objinfo.objectivefunc = objfunc;\t\t \r\n\t infolist.add(objinfo);\r\n\t if(i==2 || i>2)\r\n\t {\r\n obfunction.put(i, objfunc);\r\n\t }\r\n\t errorratecalc=0.0;\r\n\t similarity=0.0;\r\n\t \r\n\t }\r\n\r\n\t\r\n//}\r\n\r\nDouble maxValueInMap=(Collections.max(obfunction.values())); // This will return max value in the Hashmap\r\n for (Entry<Integer, Double> entry : obfunction.entrySet()) { // Itrate through hashmap\r\n if (entry.getValue()==maxValueInMap) {\r\n \thighk=entry.getKey();\r\n System.out.println(\"Key value of the highest hasg value is:::\"+highk); // Print the key with max value\r\n }\r\n }\r\n \r\n //Collections.sort(1,(List<ObjFunctionInfo>) infolist);\r\n \r\n if(once==1)\r\n {\r\n obj_print+=\"#Objective Function:\"+obfunction.get(highk)+\"\\n\";\r\n writeToPSFileTask5(obj_print);\r\n once=0;\r\n }\r\n System.out.println(\"highest objective function is::::\"+infolist.get(highk).objectivefunc);\r\n for(int x=0;x<infolist.get(highk).closedpattern1.size();x++){\r\n \tjaccard_print=\"Closed Pattern1:\"+\" \"+infolist.get(highk).closedpattern1.get(x)+\" \"+\"Closed Pattern2:\"+\" \"+infolist.get(highk).closedpattern2.get(x)+\" \"+\r\n \t\"Jaccard Similarity:\"+\" \"+infolist.get(highk).jaccardsimilarity.get(x)+\" \"+\"\\n\";\r\n writeToJaccardFileTask5(jaccard_print);\r\n jaccard_print=\"\";\r\n }\r\n \r\n for(int m=0;m<highk;m++){\r\n file_print+=\"Closed Pattern1:\"+closedpattern.get(m)+\" \"+\"#GrowthRate: \"+\" \"+errorlist.get(m)+\"\\n\";\r\n\t writeToPSFileTask5(file_print); /// uncomment it please dont delete\r\n\t file_print=\"\";\r\n }\r\nprintMap(obfunction);\t \r\n}", "title": "" }, { "docid": "9877c17f2d40dd37bef0d059839b766b", "score": "0.573394", "text": "private float NaiveBayesError(DataSet d) {\n\t\t\n\t\tNaiveBayes n = new NaiveBayes(d);\n\t\t\n\t\tfloat avg2 = 0;\n\t\tfor(int i=0; i<d.TestOutputSet().size(); i++) {\n\t\t\t\n\t\t\tfloat correct2 = 0;\n\t\t\tboolean output[] = n.Classify(d, d.TestDataSet().get(i));\n\t\t\tif(output[0] == d.TestOutputSet().get(i)[0]) {\n\t\t\t\tcorrect2++;\n\t\t\t}\n\t\t\t\n\t\t\tavg2 += correct2;\n\t\t}\n\t\t\n\t\treturn avg2 / d.TestOutputSet().size();\n\t}", "title": "" }, { "docid": "147e06f6346e27877b95c967314b2aba", "score": "0.5693487", "text": "@Override\n public CVEvalReturn call() throws Exception {\n\n // build classifier on training data\n this.classifier.buildClassifier(this.train);\n\n double[] pred = new double[this.test.numInstances()];\n double[] sup = new double[this.test.numInstances()];\n\n // make predictions on test set\n for (int i = 0; i < this.test.numInstances(); i++)\n if (this.threshold > 0) { // make a manual threshold based prediction\n double[] dist = this.classifier.distributionForInstance(this.test.get(i));\n if (dist[1] >= threshold) // probability of being real\n pred[i] = 1;\n else\n pred[i] = 0;\n } else // make a binary prediction\n pred[i] = this.classifier.classifyInstance(this.test.get(i));\n\n // save supervision for test set\n for (int i = 0; i < this.test.numInstances(); i++)\n sup[i] = this.test.get(i).classValue();\n\n return new CVEvalReturn(pred, sup);\n }", "title": "" }, { "docid": "5c582c16dcd3bd1dd8d183e14ac1787a", "score": "0.5687112", "text": "@Override\n public ClassificationProblem createClassificationProblem(Instances wekaDataset) {\n try {\n // Convert Weka data set to HashMap\n HashMap<double[], String> classificationMap = makeMapOutOfInstances(wekaDataset);\n \n return new ClassificationProblem(\"Iris\", classificationMap);\n } catch (Exception ex) {\n Logger.getLogger(UniversalEvaluator.class.getName()).log(Level.SEVERE, null, ex);\n }\n return null;\n }", "title": "" }, { "docid": "43c94b9da3ab011868f59685ace78d59", "score": "0.56310797", "text": "@Override\n\tpublic String classify(Instance train) {\n\t\tString labelOfInstance = null;\n\t\tlabelOfInstance = recursiveClassify(train, root);\n\n\t\t// return the predicted good or bad value of the training set instance\n\t\treturn labelOfInstance;\n\t}", "title": "" }, { "docid": "ea5908650964defe842be2d224579dcf", "score": "0.56203806", "text": "public EClassifier getClassifier();", "title": "" }, { "docid": "def028363d1c78bb56468f4ecf78468e", "score": "0.558462", "text": "private double BayesNet(Instances unlabeled) {\n\t\ttry {\n\t\t\t// deserialize model\n\t\t\tClassifier cls = (Classifier) weka.core.SerializationHelper\n\t\t\t\t\t.read(getResources().openRawResource(R.raw.bayesnet));\n\n\t\t\t// Log.d(\"Classifier\", \"Classifier loaded\");\n\n\t\t\t// classify unlabled data\n\t\t\tunlabeled.setClassIndex(unlabeled.numAttributes() - 1);\n\t\t\tlabeled = new Instances(unlabeled);\n\n\t\t\tclsLabel = cls.classifyInstance(unlabeled.instance(0));\n\t\t\tlabeled.instance(0).setClassValue(clsLabel);\n\t\t\t// String scene = new String();\n\t\t\t// scene = labeled.classAttribute().value((int) clsLabel);\n\t\t\t// Log.d(\"SceneLabel\", \"Scene label is\" + clsLabel);\n\t\t\t// Log.d(\"SceneName\", \"Scene name is\" +\n\t\t\t// labeled.classAttribute().value((int) clsLabel));\n\n\t\t\treturn clsLabel;\n\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tLog.e(\"Not classified\", \"An Error has occured\");\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn 0;\n\n\t}", "title": "" }, { "docid": "761b06a101796be9078985ba765d898e", "score": "0.5583295", "text": "public double computeSilhouetteScore (org.apache.spark.sql.Dataset<?> dataset, java.lang.String predictionCol, java.lang.String featuresCol) { throw new RuntimeException(); }", "title": "" }, { "docid": "1f83c303c1c8c9d334e6b1a9e6472a94", "score": "0.55813885", "text": "public static double trainInternal(Classifier classifier) {\n\n classifier.train(features, outcomes);\n\n double err = 0d;\n for (int i = 0; i < features.length; i++) {\n DoubleVector features = VoterTest.features[i];\n DoubleVector outcome = VoterTest.outcomes[i];\n DoubleVector predict = classifier.predict(features);\n err += outcome.subtract(predict).abs().sum();\n }\n return err / VoterTest.features.length;\n }", "title": "" }, { "docid": "b4c60ce59af702238d02d26d8cac5441", "score": "0.55612427", "text": "private double computeError(final List<Instance> trainingData) {\n\t\tint count = 0;\n\t\tfor(Instance m : trainingData)\n\t\t{\n\t\t\tif(m.label == classify(m))//count the number correctly classified\n\t\t\t\tcount++;\n\t\t}\n\t\treturn (1.0*trainingData.size()-count)/trainingData.size();//return the error\n\t}", "title": "" }, { "docid": "c03b496fc6b4e3b435880585b4af7f35", "score": "0.55477226", "text": "public abstract Classifier train(Instances dataset);", "title": "" }, { "docid": "32bc232556f6f44824442bdec7d2ce77", "score": "0.5547142", "text": "public static void main(String[] args) {\n train();\n\n /*\n * Now that the classifier has \"learned\" two classifications, it will\n * be able to classify similar sentences. The classify method returns\n * a Classification Object, that contains the given featureset,\n * classification probability and resulting category.\n */\n final String[] unknownText1 = \"buổi học cuối cùng trước đợt thi cuối kỳ\".split(\"\\\\s\");\n final String[] unknownText2 = \"môn học chỉ nên có 1 giảng viên đứng lớp\".split(\"\\\\s\");\n final String[] unknownText3 = \"cung cấp không thể sử dụng để thực hành\".split(\"\\\\s\");\n\n System.out.println( // will output \"positive\"\n bayes.classify(Arrays.asList(unknownText1)).getCategory());\n System.out.println( // will output \"negative\"\n bayes.classify(Arrays.asList(unknownText2)).getCategory());\n \n System.out.println( // will output \"negative\"\n bayes.classify(Arrays.asList(unknownText3)).getCategory());\n\n /*\n * The BayesClassifier extends the abstract Classifier and provides\n * detailed classification results that can be retrieved by calling\n * the classifyDetailed Method.\n *\n * The classification with the highest probability is the resulting\n * classification. The returned List will look like this.\n * [\n * Classification [\n * category=negative,\n * probability=0.0078125,\n * featureset=[today, is, a, sunny, day]\n * ],\n * Classification [\n * category=positive,\n * probability=0.0234375,\n * featureset=[today, is, a, sunny, day]\n * ]\n * ]\n */\n ((BayesClassifier<String, String>) bayes).classifyDetailed(\n Arrays.asList(unknownText1));\n\n /*\n * Please note, that this particular classifier implementation will\n * \"forget\" learned classifications after a few learning sessions. The\n * number of learning sessions it will record can be set as follows:\n */\n bayes.setMemoryCapacity(500); // remember the last 500 learned classifications\n }", "title": "" }, { "docid": "402a06f0a7007ec1e93afaf57ef0a850", "score": "0.55032873", "text": "public O classify(I typeNumber);", "title": "" }, { "docid": "93bcc81e9962dd8a45636f6eee321d5b", "score": "0.5471047", "text": "public ClassLabel classification(Instance instance){\n\t\tdouble[] score=score(instance);\n\t\t//System.out.println(\"size=\"+score.length);\n\t\tint maxIndex=0;\n\t\tfor(int i=0;i<score.length;i++){\n\t\t\t//System.out.println(\"i=\"+i+\" score=\"+score[i]);\n\t\t\tif(score[i]>=score[maxIndex]){\n\t\t\t\tmaxIndex=i;\n\t\t\t}\n\t\t}\n\t\treturn new ClassLabel((String)classNames.get(maxIndex));\n\t}", "title": "" }, { "docid": "ac3c719c7b70cfd9df158afa7a17af2f", "score": "0.5447448", "text": "public void buildClassifier(Instances data) throws Exception {\n\n\t\t// Copy of an instance set\n\t\tm_Instances = new Instances(data);\n\t\t\n\t\t// Instances number\n\t\tm_NumInstances = m_Instances.numInstances();\n\t\tm_NewNumInstances = 0;\n\n\t\t// Attribute number\n\t\tm_NumAttributes = m_Instances.numAttributes();\n\n\t\t// Number of classes\n\t\tm_NumClasses = m_Instances.numClasses();\n\n\t\t// Check out the class attribute\n\t\tif (m_NumClasses < 2)\n\t\t\tthrow new Exception(\"Class values can't less than two!\");\n\n\t\t// Class attribute index\n\t\tm_ClassIndex = m_Instances.classIndex();\n\t\t\n\t\t// Any attribute must not be NUMERIC, including the class attribute\n\t\tfor (int i = 0; i < m_NumAttributes; i++) {\n\t\t\tAttribute attribute = (Attribute) m_Instances.attribute(i);\n\t\t\tif (!attribute.isNominal()) {\n\t\t\t\t\tthrow new Exception(\"\\nEvery attribute must be nominal. \"\n\t\t\t\t\t\t\t+ \"Discretize the dataset with FilteredClassifer please.\\n\");\n\t\t\t}\n\t\t}\n\n\t\t// Judge whether the data set can be processed\n\t\tgetCapabilities().testWithFail(data);\n\n\t \t// the number of attribute values except the class variable\n\t\tm_TotalAttValues = 0;\n\t\t// Auxiliary array initialization\n\t\tm_NumAttValues = new int[(int) m_NumAttributes];\n\t\tm_StartAttIndex = new int[(int) m_NumAttributes];\n\n\t\t// the number of instance of each class value\n\t\tm_Priors = new double[m_NumClasses];\n\n\t\t// auxiliary array assignment;\n\t\t// i is the index of all the attributes of an instance.\n\t\tfor (int i = 0; i < m_NumAttributes; i++) {\n\t\t\tif (i != m_Instances.classIndex()) {\n\n\t\t\t\tm_StartAttIndex[i] = m_TotalAttValues;\n\t\t\t\tm_NumAttValues[i] = m_Instances.attribute(i).numValues();\n\t\t\t\tm_TotalAttValues += m_NumAttValues[i];\n\t\t\t} else {\n\t\t\t\tm_NumAttValues[i] = m_NumClasses;\n\t\t\t}\n\t\t}\n\n\t\t// Debugging 1: Show the auxiliary array assignment\n\t\tif (m_Debug) {\n\t\t\tSystem.out.println(\"\\n\\nBuilding A Simple Tree-Augmented Naive Bayes \"\n\t\t\t\t\t+ \"Classifier (Simple TAN1A)\");\n\t\t\tSystem.out.println(\"The Training Dataset:\");\n\t\t\tSystem.out.println(\"m_TotalAttValues = \" + m_TotalAttValues);\n\t\t\tSystem.out.println(\"m_NumClasses = \" + m_NumClasses);\n\t\t\tSystem.out.print(\"m_NumAttValues[] = \");\n\t\t\tdisplayVector((int) m_NumAttributes, m_NumAttValues);\n\t\t\tSystem.out.print(\"m_StartAttIndex[] = \");\n\t\t\tdisplayVector((int) m_NumAttributes, m_StartAttIndex);\n\t\t\tSystem.out.println();\n\t\t}\n\n\t\tm_CondiCounts =\tnew long[m_NumClasses]\n\t\t\t\t [m_TotalAttValues][m_TotalAttValues];\n\t\t\n\t\t// Take account of the instances one by one\n\t\tfor (int k = 0; k < m_NumInstances; k++) {\n\n\t\t\tInstance tempInstance = (Instance) m_Instances.instance(k);\n\n\t\t // Ignore instance with missing class value\n\t\t\tif (tempInstance.isMissing(m_ClassIndex)) continue;\n\t\t\t\n\t\t\t// Count for all the counters one by one\n\t\t\taddToCounts(tempInstance);\n\t\t}\n\n\t\t// Debugging 2: Show the auxiliary array assignments\n\t\tif (m_Debug) {\n\t\t\tSystem.out.println(\"m_CondiCounts[][][] =\");\n\t\t\t// Print out a three-dimensional array\n\t\t\tdisplay3dimensionTable(m_NumClasses, m_TotalAttValues, \n\t\t\t\t\tm_TotalAttValues,\tm_CondiCounts);\n\n\t\t}\n\n\t\t// Computing Conditional Mutual Information Matrix\n\t\tm_CondiMutualInfo = calulateConditionalMutualInfo();\n\t\t\n\t // Debugging 3: Show the auxiliary array assignments\n\t\tif (m_Debug) {\n\t\t\tSystem.out.println(\"Conditional Mutual Information Matrix:\");\n\t\t // Print out a two-dimensional array\n\t\t\tdisplayMatrix((int) m_NumAttributes - 1, (int) m_NumAttributes - 1,\n\t\t\t\t\tm_CondiMutualInfo);\n\t\t}\n\n\t\t// the beginning node in the Prim algorithm \n\t\tint root = 0;\n\t\t\n\t\t// Finding the maximum spanning tree\n\t\tm_Parents = MaxSpanTree(m_CondiMutualInfo, root, m_ClassIndex);\n\t\tSystem.out.println(\"======m_Parent Test======== \");\n\t\tfor(int i=0 ;i<m_Parents.length ;i++){\n\t\t\tSystem.out.print(m_Parents[i]);\n\t\t}\n\t\tSystem.out.println(\"======Test End========\");\n\n\t // Debugging 4: Show the maximum spanning tree\n\t\tif (m_Debug) {\n\t\t\tSystem.out.print(\"The maximum spanning tree: \\nm_Parents[] = \");\n\t\t // Print out an one-dimensional array, including the class \n\t\t\tdisplayVector((int) m_NumAttributes, m_Parents);\n\t\t}\n\t}", "title": "" }, { "docid": "1ab8b22f8b08f197416cbcb5046fe45c", "score": "0.5437283", "text": "void convertClassifiers()\n\t{\t\t\n\t\tString class1;\n\t\tString class2;\n\t\t\n\t\t// Get the first class of the data set.\n\t\tclass1 = data.classes[0];\t\t\t\t\t\t\t\t\n\t\t// Find the second distinct class of the data set.\n\t\tfor (int i = 1; i < data.classes.length; i++)\t\n\t\t{\n\t\t\tif (class1.compareTo(data.classes[i]) != 0)\n\t\t\t{\n\t\t\t\tclass2 = data.classes[i];\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t// Map the class of every data entry to +1 or -1 accordingly.\n\t\tfor (int i = 0; i < data.classes.length; i++)\n\t\t{\n\t\t\tif (class1.compareTo(data.classes[i]) == 0)\t// Map the first distinct class to 1.0\n\t\t\t{\n\t\t\t\tdata.classes[i] = \"1.0\";\n\t\t\t}\n\t\t\telse\t\t\t\t\t\t\t\t\t\t\t\t\t\t // Map the second distinct class to -1.0\n\t\t\t{\n\t\t\t\tdata.classes[i] = \"-1.0\";\n\t\t\t}\n \t\t}\n\t}", "title": "" }, { "docid": "5e2a65df198e44356f0349d3bb538c94", "score": "0.54268366", "text": "public static void main(String[] args) throws Exception {\n\t\tint input[] = {0, 1, 2};\n\t\tRVFDataset<Integer, Integer> dataset = new RVFDataset<>();\n\t\t// in this example all data has the sample input and most of them is in class 1\n\t\t// so the same input will be predicted to be class 1\n\t\tdataset.add(transToDatum(input, 1));\n\t\tdataset.add(transToDatum(input, 1));\n\t\tdataset.add(transToDatum(input, 1));\n\t\tdataset.add(transToDatum(input, 1));\n\t\tdataset.add(transToDatum(input, 1));\n\t\tdataset.add(transToDatum(input, 1));\n\t\tdataset.add(transToDatum(input, 1));\n\t\tdataset.add(transToDatum(input, 1));\n\t\tdataset.add(transToDatum(input, 0));\n\t\tLogisticClassifierFactory<Integer, Integer> factory = new LogisticClassifierFactory<>();\n\t\tLogisticClassifier<Integer, Integer> classifier = factory.trainClassifier(dataset);\n\t\tSystem.out.println(\"The trained classfier:\");\n\t\tSystem.out.println(classifier);\n\t\tint testSample[] = {0, 1, 2};\n\t\tCounter<Integer> features = transToCount(testSample);\n\t\tdouble prob = classifier.probabilityOf(new RVFDatum<>(transToCount(input), 1));\n\t\tSystem.out.println(\"prob of the input to be in class 1: \" + prob);\n\t\tSystem.out.println(\"predicted label is:\" + classifier.classOf(features));\n\t}", "title": "" }, { "docid": "f91fc77e6502a3852c223f7b1927d523", "score": "0.5413703", "text": "public void classify(String testFileName, OutputCallback outputCallback) throws Exception;", "title": "" }, { "docid": "de9a3576aba5874ab99b0175871b2ce5", "score": "0.5411747", "text": "@Test\n public void testMajorityVote() {\n logger.info(\"majorityVote\");\n DataTable2D classifierClassProbabilityMatrix = getClassifierClassProbabilityMatrix();\n \n AssociativeArray expResult = new AssociativeArray();\n expResult.put(\"class1\", 2.0);\n expResult.put(\"class2\", 2.0);\n expResult.put(\"class3\", 0.0);\n \n AssociativeArray result = FixedCombinationRules.majorityVote(classifierClassProbabilityMatrix);\n for(Object k: expResult.keySet()) {\n assertEquals(TypeInference.toDouble(expResult.get(k)), TypeInference.toDouble(result.get(k)), Constants.DOUBLE_ACCURACY_HIGH);\n }\n }", "title": "" }, { "docid": "7dabbb735247cebcecce9049460f7de2", "score": "0.54064405", "text": "public ClassifierResult computeClassifierResult(List<Label> labelSet){\n\n\t\tif(this.predictions.isEmpty()){\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\tConfusionMatrix cm = new ConfusionMatrix(labelSet);\n\t\t//Iterate all the predictions to build confusion matrix\n\t\tfor(LabelPair p : this.predictions){\n\t\t\tcm.incrementCell(p.getPredictedLabel(), p.getRealLabel());\n\t\t}\n\t\t\n\t\treturn new ClassifierResult(this.name,cm);\n\t}", "title": "" }, { "docid": "471a201b9e8e5fb16e72ab4c7c3ef75a", "score": "0.5399496", "text": "public abstract Classifier<?> getClassifier(int dimension, boolean bias);", "title": "" }, { "docid": "2978617629e18eff9b7027f6361d76d0", "score": "0.53937614", "text": "@Test\n\tvoid testClassifierMethod() {\n\t\tCustomer customer1 = new Customer(UUID.randomUUID(), \"Walid Hammadi\", \"(212) 6007989253\");\n\t\tCustomer customer2 = new Customer(UUID.randomUUID(), \"Yosaf Karrouch\", \"(212) 698054317\");\n\t\tCustomer customer3 = new Customer(UUID.randomUUID(), \"Younes Boutikyad\", \"(212) 6546545369\");\n\t\tCustomer customer4 = new Customer(UUID.randomUUID(), \"Houda Houda\", \"(212) 6617344445\");\n\t\tCustomer customer5 = new Customer(UUID.randomUUID(), \"Ogwal David\", \"(256) 7771031454\");\n\t\t// inserting data to the a sample database \n\t\tList<Customer> customers = new ArrayList<Customer>();\n\t\tcustomers.add(customer1);\n\t\tcustomers.add(customer2);\n\t\tcustomers.add(customer3);\n\t\tcustomers.add(customer4);\n\t\tcustomers.add(customer5);\n\t\t\n\t\tList<ClassifyModel> actual = ClassifyNumbersByCountry.Classifier(\"Morocco\", customers);\n\t\t\n\t\t// expected results of the test case\n\t\tList<ClassifyModel> expected = new ArrayList<>();\n\t\tClassifyModel firstClassifyModel = new ClassifyModel(customer1,false);\n\t\tClassifyModel secondClassifyModel = new ClassifyModel(customer2,true);\n\t\tClassifyModel thirdClassifyModel = new ClassifyModel(customer3,false);\n\t\tClassifyModel fourthClassifyModel = new ClassifyModel(customer4,false);\n\t\t\n\t\texpected.add(firstClassifyModel);\n\t\texpected.add(secondClassifyModel);\n\t\texpected.add(thirdClassifyModel);\n\t\texpected.add(fourthClassifyModel);\n\t\t\n\t\t//comparing the two outputs\n\t\tassertArrayEquals(expected.toArray(), actual.toArray());\n\t\t\n\t}", "title": "" }, { "docid": "96973bb4b044ea22da113b630f95aa80", "score": "0.5389508", "text": "public Map<String, Double> getClassLabelAndConfidence(double a[]) { \n\n\t\tdouble max = Double.MIN_VALUE; \n\t\tint index = 0; \n\t\tMap <String, Double> max_pair = new HashMap <String, Double>(); \n\t\t\n\t\tif (a[0] == a[1] && a[0] == a[2] ) { \n\t\t\t\n\t\t\tmax_pair.put(\"neutral\", a[2]);\n\t\t\t\n\t\t\treturn max_pair;\n\t\t} \n\t\t\n\t\tfor (int i = 0; i < a.length; i++) { \n\n\t\t\tif (a[i] > max) { \n\n\t\t\t\tmax = a[i];\n\t\t\t\tindex = i;\n\t\t\t}\n\t\t}\n\n\t\tif (index == 0) { \n\n\t\t\tmax_pair.put(\"positive\", max); \n\n\t\t} else if (index == 1) { \n\n\t\t\tmax_pair.put(\"negative\", max); \n\n\t\t} else if (index == 2) { \n\n\t\t\tmax_pair.put(\"neutral\" , max);\n\t\t}\n\n\t\treturn max_pair;\n\t}", "title": "" }, { "docid": "10113e1cf7d1976ce6784894b9befcf6", "score": "0.53881663", "text": "public double processLine(String line) { \n \n // first pull off the label.\n int index = line.indexOf('|');\n if (index == -1) \n throw new RuntimeException(\"Invalid input: missing features\");\n \n String frontMatter = line.substring(0, index);\n String[] tokens = frontMatter.split(\" \");\n int label = Integer.parseInt(tokens[0]);\n\n String tag = tokens[1];\n System.out.println(\"Label: \" + label + \" tag: \" + tag);\n \n String features = line.substring(index);\n \n double prediction = 0.0;\n String namespace=\"\";\n for (int i = 0; i < features.length(); ++i) { \n if (features.charAt(i) == '|') {\n // advance to the next space and replace the\n StringBuilder buf = new StringBuilder();\n for (int j = i+1; j < features.length() && features.charAt(j) != ' '; ++j) \n buf.append(features.charAt(j));\n \n namespace = buf.toString();\n System.out.println(\"Namespace change -- \" + namespace);\n i += buf.length() + 1;\n } else { \n // we are processing a feature....\n \n String featureName;\n double featureValue = 1.0;\n \n StringBuilder buf = new StringBuilder();\n for (int j = i; j < features.length() && features.charAt(j) != ' '; ++j) {\n if (features.charAt(j) != '=')\n buf.append(features.charAt(j));\n else { \n // we are now processing the real value associated\n // with this feature.\n StringBuilder bufFV = new StringBuilder();\n for (int k = j+1; k < features.length() && features.charAt(k) != ' '; ++k) \n bufFV.append(features.charAt(k));\n \n featureValue = Double.parseDouble(bufFV.toString());\n j += bufFV.length();\n i += bufFV.length()+1;\n }\n }\n \n featureName = buf.toString();\n System.out.println(\"Feature -- \" + featureName + \"-\" + featureValue);\n\n String fullName = namespace+\"::\"+featureName;\n update(label, fullName, featureValue);\n \n // updated, now we need to compute\n int hashValue = MurmurHash3.murmurhash3_x86_32(featureName, 0, featureName.length(), SEED);\n int idx = (hashValue & 0x7FFFFFFF) % MAGIC;\n \n double[] params = _featureModel[label][idx];\n \n double variance = params[M2] / (params[N]-1);\n double prefix = 1 / (2.0 * Math.PI * variance);\n double exponent = - Math.pow(featureValue - params[MEAN],2) / (2*variance);\n prediction += Math.log(prefix * Math.exp(exponent));\n\n i += buf.length();\n }\n }\n \n return prediction;\n }", "title": "" }, { "docid": "e6b3c73917e4ac8ff964a2f067ddc7ef", "score": "0.53827804", "text": "public double reachClass(DecisionTree tree, SimpleMatrix row){\n DecisionTree node = tree;\n //System.out.println(\"Node Feature : \" + node.feature);\n while(node.left != null && node.right != null){\n //System.out.println(\"Node Feature : \" + node.feature);\n //System.out.println(\"Node Threshold : \" + node.threshold);\n //System.out.println(\"Node Entropy : \" + node.minerror);\n double val = row.get(0, (node.feature));\n if (val > node.threshold ) {\n //System.out.println(val + \" \" + node.threshold);\n node = node.right;\n } else if (val < node.threshold) {\n //System.out.println(val + \" \" + node.threshold);\n node = node.left;\n } else {\n //System.out.println(val + \" \" + node.threshold);\n return node.prediction;\n }\n }\n // Return the value of the tree node reached last\n //System.out.println(\"Node Entropy : \" + node.minerror);\n return node.prediction;\n }", "title": "" }, { "docid": "d5b2bedb3b169ac4bf6eb3651dbccb8e", "score": "0.53810686", "text": "@Test(timeout = 4000)\n public void test35() throws Throwable {\n Discretize discretize0 = new Discretize();\n String[] stringArray0 = new String[6];\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n SystemInUtil.addInputLine(\".ycf\");\n Attribute attribute0 = new Attribute(\".ycf\", 62);\n arrayList0.add(attribute0);\n Instances instances0 = new Instances(\") can't be established.\", arrayList0, 4);\n discretize0.setInputFormat(instances0);\n discretize0.m_DesiredWeightOfInstancesPerInterval = 0.1111111111111111;\n stringArray0[0] = \") can't be established.\";\n stringArray0[1] = \") can't be established.\";\n // Undeclared exception!\n try { \n discretize0.calculateCutPointsByEqualFrequencyBinning(0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "title": "" }, { "docid": "83a4c8c8b398dc1c836a36ba532bfdff", "score": "0.5380611", "text": "EDSC getClassifier();", "title": "" }, { "docid": "4fe2d396880e60dec0d9363e99fd8422", "score": "0.53787494", "text": "public void classifyNeurons() {\n calculateNeighbourhoodAreaFunction();\n double threshold = findThresholdValue();\n classify(threshold);\n }", "title": "" }, { "docid": "8851945bfad4beb05e9b4fb32abd47ba", "score": "0.5369187", "text": "public double[] getClassProbByClassification(Features features,\r\n FileOneByOneLineWriter writer) {\r\n\r\n // logps will add all P(w|c) and P(c) for each class\r\n // Why do this, why transfer to log?\r\n // The reason is that,\r\n // in this way, multiplication (\\prod{p(w_i|c)}) will transfer to accumulation (\\sum{log2(p(w_i|c))}).\r\n double[] logps = new double[2];\r\n for (Feature feature : features) {\r\n String featureStr = feature.featureStr;\r\n\r\n\r\n if (featureStr.equals(\"antenna\")) {\r\n // System.out.println(\"get it\");\r\n }\r\n\r\n // If Knowledge Base does not contain this feature (word), continue\r\n if (!featureIndexerAllDomains.containsFeatureStr(featureStr)) {\r\n // The feature is not selected.\r\n continue;\r\n }\r\n\r\n // get wordCount(w,c)in POS and NEG documents\r\n int featureId = featureIndexerAllDomains\r\n .getFeatureIdGivenFeatureStr(featureStr);\r\n double[] tokenCounts = x[featureId];\r\n if (tokenCounts == null) {\r\n continue;\r\n }\r\n for (int catIndex = 0; catIndex < mCategories.length; ++catIndex) {\r\n // where mCategories.length is 2\r\n logps[catIndex] += com.aliasi.util.Math\r\n .log2(probTokenByIndexArray(catIndex, tokenCounts));\r\n // TODO: close now\r\n// writer.writeLine(featureStr + \" : \"\r\n// + probTokenByIndexArray(catIndex, tokenCounts));\r\n }\r\n }\r\n // add log class probability, i.e., p(+) and p(-)\r\n for (int catIndex = 0; catIndex < 2; ++catIndex) {\r\n logps[catIndex] += com.aliasi.util.Math\r\n .log2(getProbOfClass(catIndex));\r\n }\r\n // Normalize the probability array, including .Math.pow\r\n return logJointToConditional(logps);\r\n }", "title": "" }, { "docid": "8d1c2f4af3966aa9ef786ec395485777", "score": "0.53576386", "text": "@Test(timeout = 4000)\n public void test38() throws Throwable {\n Discretize discretize0 = new Discretize();\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n LinkedList<String> linkedList0 = new LinkedList<String>();\n Attribute attribute0 = new Attribute(\"L(&4\", linkedList0, (-679));\n arrayList0.add(attribute0);\n Instances instances0 = new Instances(\"string\", arrayList0, 1);\n instances0.toString();\n discretize0.setInputFormat(instances0);\n discretize0.calculateCutPoints();\n discretize0.setOutputFormat();\n discretize0.numPendingOutput();\n attribute0.equalsMsg(\"@relation string\\n\\n@attribute L(&4 {}\\n\\n@data\\n\");\n discretize0.isNewBatch();\n double[] doubleArray0 = new double[1];\n doubleArray0[0] = (double) 3;\n BinarySparseInstance binarySparseInstance0 = new BinarySparseInstance((-3103.837), doubleArray0);\n SparseInstance sparseInstance0 = new SparseInstance((SparseInstance) binarySparseInstance0);\n discretize0.convertInstance(binarySparseInstance0);\n // Undeclared exception!\n try { \n discretize0.getBinRangesString(2);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 2\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "title": "" }, { "docid": "d71bc41f15305f5603adf06c8433d89b", "score": "0.5356277", "text": "public int[] Classify(DataSet test) {\r\n double[] sum = new double[test.NDataPoints()];\r\n for (int i = 0; i < this.l.size(); i++) {\r\n int[] results = l.get(i).Classify(test);\r\n for (int j = 0; j < results.length; j++) {\r\n if (results[j] == 0) {\r\n sum[j] -= this.al.get(i);\r\n }\r\n else {\r\n sum[j] += this.al.get(i);\r\n }\r\n }\r\n }\r\n int[] ret = new int[sum.length];\r\n for (int i = 0; i < ret.length; i++) {\r\n if (sum[i] < 0.0) {\r\n ret[i] = 0;\r\n }\r\n else {\r\n ret[i] = 1;\r\n }\r\n }\r\n return ret;\r\n }", "title": "" }, { "docid": "ea962b4b089a7bc7ac1d962bd4cf57af", "score": "0.5329139", "text": "public double computeAccuracy() {\n\t\tdouble tempCorrect = 0;\n\t\tfor (int i = 0; i < numInstances; i++) {\n\t\t\tif (predicts[i] == (int) data.instance(i).classValue()) {\n\t\t\t\ttempCorrect++;\n\t\t\t} // Of if\n\t\t} // Of for i\n\n\t\tdouble resultAccuracy = tempCorrect / numInstances;\n\t\treturn resultAccuracy;\n\t}", "title": "" }, { "docid": "35a02ea89c3d25597ce0616c3ed5328b", "score": "0.5327376", "text": "@Test(timeout = 4000)\n public void test31() throws Throwable {\n Discretize discretize0 = new Discretize();\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n discretize0.setFindNumBins(true);\n Attribute attribute0 = new Attribute(\"\\\"position\\\" has unknown type\");\n arrayList0.add(attribute0);\n Instances instances0 = new Instances(\"real\", arrayList0, 1);\n discretize0.setInputFormat(instances0);\n double[] doubleArray0 = new double[1];\n doubleArray0[0] = (double) 0;\n int[] intArray0 = new int[0];\n SparseInstance sparseInstance0 = new SparseInstance(1.7976931348623157E308, doubleArray0, intArray0, 1);\n instances0.add((Instance) sparseInstance0);\n SparseInstance sparseInstance1 = new SparseInstance((Instance) sparseInstance0);\n instances0.add((Instance) sparseInstance1);\n Filter.useFilter(instances0, discretize0);\n // Undeclared exception!\n try { \n discretize0.calculateCutPointsByEqualFrequencyBinning(1);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 1\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "title": "" }, { "docid": "39fa0f204ea1ccc96679417463552553", "score": "0.5324752", "text": "Map<IrisType, Float> classificationProbabilities(Iris iris);", "title": "" }, { "docid": "2dcf0e40a5980726275424c0ae2e69ad", "score": "0.53112054", "text": "public Double apply(Double[] featureVector) {\n assert featureVector[0] == 1.0;\n\n // simple, sequential implementation\n double prediction = 0;\n for (int j = 0; j < thetaVector.length; j++) {\n prediction += thetaVector[j] * featureVector[j];\n }\n return prediction;\n }", "title": "" }, { "docid": "014312b2842feb5f050d282ed821554e", "score": "0.5309009", "text": "public LongWritable classifyDatapoint (ArrayList<Float> datapoint) {\n\t\t\n\t\t// Attribute on which to base decision\n\t\tInteger classifyBy = ((IntWritable) classificationData.get(new Text(\"classifyBy\"))).get();\n\t\t\n\t\t// Value of split attribute in datapoint\n\t\tFloat value = datapoint.get(classifyBy);\n\t\t\n\t\t// Check for attribute value in child nodes\n\t\tif (((MapWritable)classificationData.get(new Text(\"children\"))).containsKey(new FloatWritable(value))) {\n\t\t\t\n\t\t\treturn (LongWritable) ((MapWritable)classificationData.get(new Text(\"children\"))).get(new FloatWritable(value));\n\t\t}\n\t\t\n\t\t// Return destination as root vertex if needed\n\t\treturn new LongWritable(-1L);\n\t\t\n\t}", "title": "" }, { "docid": "daf9dd585a71947b6a7cac4917563e56", "score": "0.53019947", "text": "static public double gradient (double prediction, double label) { throw new RuntimeException(); }", "title": "" }, { "docid": "c45484c301d8af5c5565d4ea2e411f51", "score": "0.53006023", "text": "@Override\n public void evaluateFeatures() {\n double[] MADValues = new double[numFeatures]; // the mean absolute difference (MAD) values\n int[] indexFeatures;\n int prev, next;\n\n //computes the mean absolute difference(MAD) values\n for (int i = 0; i < numFeatures; i++) {\n MADValues[i] = computeMAD(i, MathFunc.computeMean(trainSet, i));\n }\n\n //sorts the features by their relevance values(MAD values)\n indexFeatures = ArraysFunc.sortWithIndex(MADValues, true);\n\n //starts the feature selection process\n selectedFeatureSubset[0] = indexFeatures[0];\n prev = 0;\n next = 1;\n for (int i = 1; i < numFeatures && next < numSelectedFeature; i++) {\n double simValue = Math.abs(MathFunc.computeSimilarity(trainSet, indexFeatures[i], indexFeatures[prev]));\n if (simValue < MAX_SIM_VALUE) {\n selectedFeatureSubset[next] = indexFeatures[i];\n prev = i;\n next++;\n }\n }\n\n// for (int i = 0; i < next; i++) {\n// System.out.println(\"ranked = \" + selectedFeatureSubset[i]);\n// }\n\n if (next < numSelectedFeature) {\n selectedFeatureSubset = Arrays.copyOfRange(selectedFeatureSubset, 0, next);\n }\n ArraysFunc.sortArray1D(selectedFeatureSubset, false);\n }", "title": "" }, { "docid": "cfc847b3798bfc9114016cb943e3dcee", "score": "0.5297382", "text": "@Test(timeout = 4000)\n public void test19() throws Throwable {\n RegressionByDiscretization regressionByDiscretization0 = new RegressionByDiscretization();\n Capabilities capabilities0 = regressionByDiscretization0.getCapabilities();\n TestInstances testInstances0 = TestInstances.forCapabilities(capabilities0);\n Instances instances0 = testInstances0.generate(\"|J\");\n CostSensitiveClassifier costSensitiveClassifier0 = new CostSensitiveClassifier();\n CostMatrix costMatrix0 = costSensitiveClassifier0.getCostMatrix();\n Evaluation evaluation0 = null;\n try {\n evaluation0 = new Evaluation(instances0, costMatrix0);\n fail(\"Expecting exception: Exception\");\n \n } catch(Throwable e) {\n //\n // Class has to be nominal if cost matrix given!\n //\n verifyException(\"weka.classifiers.Evaluation\", e);\n }\n }", "title": "" }, { "docid": "0d8fb9e6f3b9bd20e310995544028892", "score": "0.52822113", "text": "public Node getThreshold(int column){\n\t\t\n\t\tint i = 1;\n\t\tArrayList<Double> thresholdArr = new ArrayList<Double>();\n\t\tdouble value;\n\t\tString label = \"\";\n\n\t\twhile(i < row){\t\t\t\t\t\t\t\t\t\t//Gets all possible threshold values\n\t\t\t\n\t\t\tlabel = data[i][col-1];\t\t\t\t\t\t\t//Record all unique classes\n\t\t\tif (!classes.contains(label)){\n\t\t\t\tclasses.add(label);\n\t\t\t}\n\t\t\tvalue = Double.parseDouble(data[i][column]);\t//Record all possible threshold values\t\t\n\t\t\tif (!thresholdArr.contains(value)){\n\t\t\t\tthresholdArr.add(value);\n\t\t\t}\n\t\t\ti++;\n\t\t}\n\t\t\n\t\ttotalEntropy = getTotalEntropy();\t\t\t\t\t//Gets the entropy of the dependent class/label\n\t\t\n\t\tHashMap<Double, Double> threshEntropy = new HashMap<Double, Double>(thresholdArr.size()); //Stores threshold,entropy pair\n\t\tint cntr = 0;\n\t\tdouble g;\n\t\t\n\t\tfor(Double t : thresholdArr ){\t\t\t\t\t\t//Loop over each possible threshold value\n\t\t\tg = getEntropyAndGain(t, column);\t\t\t\t//Get the information gain value for passed threshold\n\t\t\tthreshEntropy.put(t,g);\t\t\t\t\t\t\t//Stores threshold,information gain pair\n\t\t}\n\t\t\n\t\tdouble maxGain = -1000;\t\t\t\t\t\t\t\t//Default information gain value - can be used to determine case where node stores single class\n\t\tdouble bestThresh = -1000;\t\t\t\t\t\t\t//Default starting threshold value\n\t\tdouble thresh;\n\t\tdouble gain;\n\t\tfor (Entry<Double, Double> entry : threshEntropy.entrySet()) {\t//Loop over each hash pair and determine the best threshold to use based on highest gain observed\n\t\t thresh = entry.getKey();\n\t\t gain = entry.getValue();\n\t\t if(gain > maxGain){\t\t\t\t\t\t\t\t\n\t\t \tmaxGain = gain;\t\t\t\t\t\t\t\t//Stores the highest information gain encountered in hash table\n\t\t \tbestThresh = thresh;\t\t\t\t\t\t//Stores the associated threshold value for that information gain\n\t\t }\n\t\t}\n\n\t\treturn new Node(data[0][column],null, null, null, bestThresh, maxGain); //Return a node which has the attribute that best separates the data as the title\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//\tstores the associated threshold value and the information gain for reference\n\t}", "title": "" }, { "docid": "ba8aeecc7b311696ed99afdc1591b9a1", "score": "0.5261886", "text": "private int pluralityClassLabel(ArrayList<ArrayList<Double>> dataSet) {\n\t\tint count = 0;\n\t\tfor (int i = 0; i < dataSet.size(); i++) {\n\t\t\tif (dataSet.get(i).get(mTrainAttributes.size()).doubleValue() == 0)\n\t\t\t\tcount++;\n\t\t}\n\t\tif (count > (dataSet.size() - count))\n\t\t\treturn 0;\n\t\telse\n\t\t\treturn 1;\n\t}", "title": "" }, { "docid": "d70781225e58966f804c26725df89349", "score": "0.52600616", "text": "public void terminateClassification() {}", "title": "" }, { "docid": "711e3e913f17620d306c7fc921ff2e31", "score": "0.5250564", "text": "public Instances insClassify(File fileName, String resPath) {\n try {\n if (!isClExist()) {\n throw new Exception(\"You must build classifier before classify data!\");\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n FileWriter fw = null;\n PrintWriter out = null;\n Instances insTest = null;\n try {\n //load the data need to classify;\n ArffLoader loader = new ArffLoader();\n loader.setFile(fileName);\n insTest = loader.getDataSet();\n insTest.setClassIndex(insTest.numAttributes() - 1);\n\n\n fw = new FileWriter(resPath + \"ClassifyResult.txt\");\n out = new PrintWriter(fw);\n\n //System.out.println(\"# - actual -predicted - error - distribution\");\n //文件头\n for (int j = 0; j < insTest.numAttributes() - 1; j++) {\n out.print(insTest.attribute(j).name());\n out.print(\", \");\n }\n out.println(insTest.attribute(insTest.numAttributes() - 1).name());\n\n //分类数据\n for (int i = 0; i < insTest.numInstances(); i++) {\n double pred = this.cl.classifyInstance(insTest.instance(i));\n double[] dist = cl.distributionForInstance(insTest.instance(i));\n\n for (int j = 0; j < insTest.numAttributes() - 1; j++) {\n out.print(insTest.instance(i).value(j) + \", \");\n }\n insTest.instance(i).setValue(insTest.numAttributes() -1, insTest.classAttribute().value((int) pred));\n\n out.println(insTest.classAttribute().value((int) pred));\n\n }\n } catch (IOException e) {\n e.printStackTrace();\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n try {\n out.close();\n fw.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n return insTest;\n }\n\n }", "title": "" }, { "docid": "58155d4d81591a2eec31100824c52e9b", "score": "0.52485675", "text": "public void classify(Data data, double[] predictions) {\n Preconditions.checkArgument(data.size() == predictions.length, \"predictions.length must be equal to data.size()\");\n\n if (data.isEmpty()) {\n return; // nothing to classify\n }\n\n for (Node tree : trees) {\n for (int index = 0; index < data.size(); index++) {\n predictions[index] = tree.classify(data.get(index));\n }\n }\n }", "title": "" }, { "docid": "434dc061a7b289ad8e42100f2e4745d3", "score": "0.52382106", "text": "public void classify(SensorModel sensors)\n {\n\t\t//Take the sensors to classify\n double track_sensors[] = sensors.getTrackEdgeSensors();\n Double data[] = new Double[21];\n //data[0] = new Double(sensors.getAngleToTrackAxis());\n data[0] = new Double(sensors.getTrackPosition());\n _dataTrack = transformTrackSensors(sensors.getAngleToTrackAxis(), track_sensors);\n \n if(_dataTrack != null)\n {\n for(int i = 1, j = 0; i < 1 + ClassifierConstants.NUM_TRACK_SENSORS; i++, j++)\n {\n data[i] = new Double( _dataTrack[j]);\n }\n\n try {\n\t\t\t\t//Classify and update class\n _currentClass = (int) _classifier.classify(data);\n updateClass();\n \n //study sense for turns (and pre-turns)\n if(_confiableClass != ClassifierConstants.CLASS_STRAIGHT)\n {\n \n int maxTrackIndex = _automata.getMaxTrackValIndex();\n if(maxTrackIndex != -1)\n {\n if(maxTrackIndex < 9)\n {\n //if(DEBUG) System.out.println(\" --> A LA IZQUIERDA. -------------\"+maxTrackIndex+\"----------\");\n _classifierFlag = ClassifierConstants.FLAG_TURN_ON_LEFT;\n }else if(maxTrackIndex > 9)\n {\n // if(DEBUG) System.out.println(\" --> A LA DERECHA. -------------\"+maxTrackIndex+\"----------\");\n _classifierFlag = ClassifierConstants.FLAG_TURN_ON_LEFT;\n }\n else\n { \n // if(DEBUG) System.out.println(\" --> INDEFINIDO. -------------\"+maxTrackIndex+\"----------\");\n _classifierFlag = ClassifierConstants.FLAG_TURN_UNDEFINED;\n }\n }else\n {\n \n int medium = ClassifierConstants.NUM_TRACK_SENSORS/2;\n //if((_dataTrack[medium-1] > _dataTrack[medium]) && (_dataTrack[medium] > _dataTrack[medium+1]))\n if(_dataTrack[medium-1] > _dataTrack[medium+1])\n {\n //left\n // if(DEBUG) System.out.println(\" --> A LA IZQUIERDA. -----------------------\");\n _classifierFlag = ClassifierConstants.FLAG_TURN_ON_LEFT;\n //}else if((_dataTrack[medium+1] > _dataTrack[medium]) && (_dataTrack[medium] > _dataTrack[medium-1]))\n }else if(_dataTrack[medium-1] < _dataTrack[medium+1])\n {\n //right\n // if(DEBUG) System.out.println(\" --> A LA DERECHA. -----------------------\");\n _classifierFlag = ClassifierConstants.FLAG_TURN_ON_RIGHT;\n }else\n {\n // if(DEBUG) System.out.println(\" --> INDEFINIDA\" + \"(\" + _dataTrack[medium-1] + \")\" +\n // \"(\" + _dataTrack[medium] + \")\" + \"(\" + _dataTrack[medium+1] + \")\" + \"-----------------------\");\n _classifierFlag = ClassifierConstants.FLAG_TURN_UNDEFINED;\n }\n }\n }else\n {\n // if(DEBUG) System.out.println(\"-----------------------\");\n _classifierFlag = ClassifierConstants.FLAG_TURN_UNDEFINED;\n }\n\n } catch (Exception e) {\n System.out.println(\" --> ERROR!!: \" + e);\n e.printStackTrace();\n }\n }else\n {\n if(DEBUG) System.out.println(\"ORIENTATION FLAG ON: \" + _classifierFlag);\n }\n }", "title": "" }, { "docid": "c61ae7243ace7726e9519964ff66be5d", "score": "0.522423", "text": "public double train(double [] X, double[] argValue);", "title": "" }, { "docid": "ba6395d7b96300059a6631ee996dd2e1", "score": "0.5211796", "text": "public int classify(Instance paraInstance) {\n\t\tif (dataType == NOMINAL) {\n\t\t\treturn classifyNominal(paraInstance);\n\t\t} else if (dataType == NUMERICAL) {\n\t\t\treturn classifyNumerical(paraInstance);\n\t\t} // Of if\n\n\t\treturn -1;\n\t}", "title": "" }, { "docid": "69302cebb6da1a92d5d4060ef21e8bf3", "score": "0.5183787", "text": "public String getBestClassByClassification(Features features,\r\n FileOneByOneLineWriter writer) {\r\n double[] categoryProb = getClassProbByClassification(features, writer);\r\n double maximumProb = -Double.MAX_VALUE;\r\n int maximumIndex = -1;\r\n for (int i = 0; i < categoryProb.length; ++i) {\r\n if (maximumProb < categoryProb[i]) {\r\n maximumProb = categoryProb[i];\r\n maximumIndex = i;\r\n }\r\n }\r\n return mCategories[maximumIndex];\r\n }", "title": "" }, { "docid": "e52034b39e99f864851501ae0aa2d3c0", "score": "0.51808554", "text": "@Test(timeout = 4000)\n public void test52() throws Throwable {\n Discretize discretize0 = new Discretize();\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n Attribute attribute0 = new Attribute(\"\\\"position\\\"has unknown type\");\n arrayList0.add(attribute0);\n discretize0.setFindNumBins(true);\n Attribute attribute1 = new Attribute(\"real\");\n arrayList0.add(attribute1);\n Instances instances0 = new Instances(\"\\\"position\\\"has unknown type\", arrayList0, 2670);\n discretize0.setInputFormat(instances0);\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n double[] doubleArray0 = new double[1];\n SparseInstance sparseInstance0 = new SparseInstance(2670, doubleArray0);\n instances0.add((Instance) sparseInstance0);\n sparseInstance0.setValue(attribute1, (-668.88));\n sparseInstance0.toString(attribute0);\n instances0.add((Instance) sparseInstance0);\n Filter filter0 = Filter.makeCopy(discretize0);\n Filter.useFilter(instances0, filter0);\n Discretize discretize1 = new Discretize();\n DenseInstance denseInstance0 = null;\n try {\n denseInstance0 = new DenseInstance((-1));\n fail(\"Expecting exception: NegativeArraySizeException\");\n \n } catch(NegativeArraySizeException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.core.DenseInstance\", e);\n }\n }", "title": "" }, { "docid": "8c11c28d85e2eb34e0940f778f6ec6b1", "score": "0.5174361", "text": "public List<LibSVMConfidence> evaluateAllInstances(svm_model model, ArrayList<DataObject> testDataSet) throws IOException {\n\n List<LibSVMConfidence> libSVMPredictions = new ArrayList<LibSVMConfidence>();\n\n int recordSize = testDataSet.size();\n System.out.println(\"DataSet Size: \" + testDataSet.size());\n\n double nodeValues[][] = new double[recordSize][]; //jagged array used to store values\n int nodeIndexes[][] = new int[recordSize][];//jagged array used to store node indexes\n\n for (int i = 0; i < testDataSet.size(); i++) {\n\n LinkedList<Integer> listIndx = new LinkedList<Integer>();\n LinkedList<Double> listVal = new LinkedList<Double>();\n\n listIndx.add(1);\n listVal.add((double) testDataSet.get(i).getClumpThickness());\n\n listIndx.add(2);\n listVal.add((double) testDataSet.get(i).getUniformityOfCellSize());\n\n listIndx.add(3);\n listVal.add((double) testDataSet.get(i).getUniformityOfCellShape());\n\n listIndx.add(4);\n listVal.add((double) testDataSet.get(i).getMarginalAdhesion());\n\n listIndx.add(5);\n listVal.add((double) testDataSet.get(i).getSingleEpithelialCellSize());\n\n listIndx.add(6);\n listVal.add((double) testDataSet.get(i).getBareNuclei());\n\n listIndx.add(7);\n listVal.add((double) testDataSet.get(i).getBlandChromatin());\n\n listIndx.add(8);\n listVal.add((double) testDataSet.get(i).getNormalNucleoli());\n\n listIndx.add(9);\n listVal.add((double) testDataSet.get(i).getMitoses());\n\n if (listVal.size() > 0) {\n nodeValues[i] = new double[listVal.size()];\n nodeIndexes[i] = new int[listIndx.size()];\n }\n for (int m = 0; m < listVal.size(); m++) {\n nodeIndexes[i][m] = listIndx.get(m);\n nodeValues[i][m] = listVal.get(m);\n }\n }\n\n int positive = 0;\n int negative = 0;\n for (int i = 0; i < recordSize; i++) {\n int tmpIndexes[] = nodeIndexes[i];\n double tmpValues[] = nodeValues[i];\n LibSVMConfidence v = evaluateSingleInstance(tmpIndexes, tmpValues, model);\n libSVMPredictions.add(v);\n }\n return libSVMPredictions;\n }", "title": "" }, { "docid": "1a568f92981f42dd7fcdc642d6ce7c7f", "score": "0.516586", "text": "<DataSetType extends I2DDataSet> double evaluate(DataSetType data, Vector labels);", "title": "" }, { "docid": "615c17ce401e9bce0e551167fa97c6d1", "score": "0.5150135", "text": "private boolean FindClassError(int cycle_num) throws NumberFormatException, IOException {\n\t\t\n\t\tDataSet d = new DataSet();\n\t\tfloat naive_e = NaiveBayesError(d);\n\t\tfloat svm_e = SVM(d);\n\t\tif(svm_e > 0.85f) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tVectorMethod m = new VectorMethod();\n\t\tfloat error = m.FindClassError(d, cycle_num, 220);\n\t\t\n\t\tSystem.out.println((error / svm_e)+\" \"+(error / naive_e)+\" **********************\");\n\n\t\tsvm_error.add(error / svm_e);\n\t\tnaive_b_error.add(error / naive_e);\n\t\t//voter_error.add(error);\n\t\t\n\t\treturn true;\n\t}", "title": "" }, { "docid": "f07ee62e66efce2c80048fa861082875", "score": "0.51499265", "text": "public static void learnClassifierFromDescriptionAndDataset(String libSVMFile, String constraintFile, Boolean trainPRClassifier, int numTrials) {\n\t\tInstanceList origInstances = MalletUtils.getInstancesFromLibSVMFile(libSVMFile);\n\n\n\t\tSystem.out.println(\"Set of labels:\");\n\t\tfor(int i=0; i<origInstances.getTargetAlphabet().size();i++){\n\t\t\tSystem.out.println(origInstances.getTargetAlphabet().lookupObject(i));\n\t\t}\n\n\t\tSystem.out.println(\"Set of features:\");\n\t\tfor(int i=0; i<origInstances.getDataAlphabet().size();i++){\n\t\t\tSystem.out.println(i+\" \"+origInstances.getDataAlphabet().lookupObject(i));\n\t\t}\n\n\t\t//HashMap<String, HashMap<String, Double>> constraintHashMap = ConstraintGenerator.parseFileToConstraints(origInstances,\"/Users/shashans/Desktop/descriptions.txt\");\n\n\n\t\t//String classLabel = \"mammal\";\n\n\t\tfor(String classLabel:Arrays.stream(origInstances.getTargetAlphabet().toArray()).map(Object::toString).collect(Collectors.toList())){\n\n\t\t\tInstanceList instances = MalletUtils.binarizeLabelsNew(origInstances, classLabel);\n\n\t\t\t/*\n\t\t\tInstance inst1 = origInstances.get(0);\n\t\t\tInstance inst2 = instances.get(0);\n\t\t\tSystem.out.println(\"INST1\");\n\t\t\tSystem.out.println(inst1.getTargetAlphabet());\n\t\t\tSystem.out.println(\"INST2\");\n\t\t\tSystem.out.println(inst2.getTargetAlphabet());\n\t\t\tPreconditions.checkState(inst1.getAlphabet().equals(inst2.getAlphabet()),\"Error1\");\n\t\t\tPreconditions.checkState(inst1.getData().equals(inst2.getData()),\"Error2\");\n\t\t\tPreconditions.checkState(inst1.getDataAlphabet().equals(inst2.getDataAlphabet()),\"Error3\");\n\t\t\tPreconditions.checkState(inst1.getLabeling().equals(inst2.getLabeling()),\"Error4\");\n\t\t\tPreconditions.checkState(inst1.getName().equals(inst2.getName()),\"Error5\");\n\t\t\tPreconditions.checkState(inst1.getTarget().equals(inst2.getTarget()),\"Error6\");\n\t\t\tPreconditions.checkState(inst1.getTargetAlphabet().equals(inst2.getTargetAlphabet()),\"Error7\");\n\t\t\t//Preconditions.checkState(inst1.hashCode() == inst2.hashCode(),\"Error8\");\n\t\t\t//Preconditions.checkState(inst1..equals(inst2.getTargetAlphabet()),\"Error7\");\t\t\n\t\t\t//System.exit(0);\n\t\t\t */\n\n\t\t\t//Define training algorithm\n\t\t\t/**/\n\t\t\tClassifierTrainer trainer;\n\t\t\tif(!trainPRClassifier) {\n\t\t\t\ttrainer = new MaxEntTrainer();\n\t\t\t\t//MaxEntTrainer trainer = new MaxEntTrainer();\n\t\t\t}else {\n\t\t\t\ttrainer = new MaxEntPRTrainer();\n\t\t\t\t//MaxEntPRTrainer trainer = new MaxEntPRTrainer();\n\t\t\t\t//String constraintFile = \"data/zoo/descriptions/\"+classLabel+\".txt\";\n\t\t\t\t//String constraintFile = args[1]; //\"data/shapes/descriptions/features.alpha__0_1.160.A3MF31JQ350ABS.3SUWZRL0MZDAEHGXC080F4OGK0B6EN.txt\";\n\t\t\t\tHashMap<String, HashMap<String, Double>> constraintHashMap = ConstraintGenerator.parseFileToConstraints(instances,constraintFile);\n\t\t\t\t//trainer.setConstraintsFile(\"/Users/shashans/Work/tools/mallet-2.0.8/constraints.txt\");\n\t\t\t\t((MaxEntPRTrainer) trainer).setConstraintsHashMap(constraintHashMap);\n\t\t\t\t((MaxEntPRTrainer) trainer).setMinIterations(5);\n\t\t\t\t((MaxEntPRTrainer) trainer).setMaxIterations(100);\n\t\t\t\t((MaxEntPRTrainer) trainer).setPGaussianPriorVariance(0.1);\n\t\t\t\t((MaxEntPRTrainer) trainer).setQGaussianPriorVariance(1000);\n\t\t\t\t((MaxEntPRTrainer) trainer).setUseValues(false);\n\t\t\t}\n\t\t\t\n\t\t\t/**/\n\t\t\t//runExperimentSplit(origInstances, trainer, numTrials, 0.7, classLabel);\n\t\t\t\n\t\t\tdouble acc;\n\t\t\tif(!trainPRClassifier) {\n\t\t\t\tacc = runExperimentSplit(instances, trainer, numTrials, 0.05, classLabel);\n\t\t\t}else {\n\t\t\t\tacc = runExperimentSplitTrainCompleteData(instances, trainer, numTrials, 0.0, classLabel);\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(libSVMFile+\"\\t\"+constraintFile+\"\\tAVG_ACCURACY:\\t\"+acc);\n\t\t\tbreak;\n\t\t}\n\n\t}", "title": "" }, { "docid": "f32f15df4c4eef25834c031bc4811c36", "score": "0.5149372", "text": "SVM_Preprocessor(String fileName, HashMap[] translator){\n label1_Set = new ArrayList<Instance>();\n label2_Set = new ArrayList<Instance>();\n String line = \"\";\n try(BufferedReader br = new BufferedReader(new FileReader(fileName))){\n // 1. extract the information about the attributes and label\n line = br.readLine();\n line = line.replace(\"\\\"\", \"\");\n String[] strings = line.split(\",\");\n label = strings[strings.length-1];\n attributes = new String[strings.length-1];\n for(int i = 0; i<strings.length-1;i++){\n attributes[i] = strings[i];\n }\n // 2. extract the information about whether the attribute is numerical value\n isNumerical = new boolean[strings.length];\n if((line = br.readLine())!= null){\n line = line.replace(\"\\\"\", \"\");\n strings = line.split(\",\");\n for(int i = 0; i< strings.length;i++){\n if(!is_Numerical(strings[i])){\n isNumerical[i] = false;\n }\n else{\n isNumerical[i] = true;\n }\n }\n }\n // 3. extract some information about the length of the translator and sum_attributes\n sum_attributes = new double[strings.length-1];\n // 4. iterate each each row/ each instance in the dataset\n while(line != null){\n // create one instance with one row\n line = line.replace(\"\\\"\", \"\");\n strings = line.split(\",\");\n Instance instance = new Instance();\n if(instance.transform(strings,translator,isNumerical)){\n double[] input_Values = instance.getVectors();\n for(int j = 0; j<sum_attributes.length;j++){\n sum_attributes[j] = sum_attributes[j] + input_Values[j];\n }\n numOfInstances++ ;\n if(instance.getLabel() == -1.0){\n label1_Set.add(instance);\n }\n else{\n label2_Set.add(instance);\n }\n \n }\n line = br.readLine();\n }\n \n } catch(IOException e){\n e.printStackTrace(); \n }\n // 5. normalize the data sets\n double[] meanOfAttributes = new double[sum_attributes.length];\n for(int i = 0; i<sum_attributes.length;i++){\n meanOfAttributes[i] = sum_attributes[i]/numOfInstances;\n }\n double[] sumOfSquareError = new double[sum_attributes.length];\n double[] standardDeviation = new double[sum_attributes.length];\n // calculate the sumOfSquareError \n for(Instance a: label1_Set){\n double[] input_Vector = a.getVectors();\n for(int j = 0; j<input_Vector.length;j++){\n sumOfSquareError[j] = sumOfSquareError[j] + (input_Vector[j]-meanOfAttributes[j])*(input_Vector[j]-meanOfAttributes[j]);\n } \n }\n for(Instance a: label2_Set){\n double[] input_Vector = a.getVectors();\n for(int j = 0; j<input_Vector.length;j++){\n sumOfSquareError[j] = sumOfSquareError[j] + (input_Vector[j]-meanOfAttributes[j])*(input_Vector[j]-meanOfAttributes[j]);\n } \n }\n for(int i = 0; i<sumOfSquareError.length; i++){\n standardDeviation[i] = Math.sqrt(sumOfSquareError[i]/numOfInstances);\n }\n // iterate each instance and normalize each attribute\n for(Instance a: label1_Set){\n double[] input_Vector = a.getVectors();\n for(int j = 0; j<input_Vector.length;j++){\n input_Vector[j] = (input_Vector[j] - meanOfAttributes[j])/standardDeviation[j];\n } \n }\n for(Instance a: label2_Set){\n double[] input_Vector = a.getVectors();\n for(int j = 0; j<input_Vector.length;j++){\n input_Vector[j] = (input_Vector[j] - meanOfAttributes[j])/standardDeviation[j];\n } \n }\n \n }", "title": "" }, { "docid": "cab826bb91098f4b7a980b8887f39229", "score": "0.5131237", "text": "private String extractClass(double value){\n\t\tString result = null;\n\t\tdouble interval1 = 0.00;\n\t\tdouble interval2 = 0.01;\n\t\t\n\t\tfor(int i = 0; i < classe.length ; i++){\n\t\t\tif((interval1 <= value) && (value < interval2))\n\t\t\t\treturn classe[i];\n\t\t\telse{\n\t\t\t\tinterval1 = interval1 + 0.01;\n\t\t\t\tinterval2 = interval2 + 0.01;\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "title": "" }, { "docid": "e142af13596096617464cdde9a7d7d25", "score": "0.51264256", "text": "public static String[] predict_Final(File f_test){\n\t\tString[] cLevel = null;\n Instances test = null;\n \n try {\n \n BufferedReader reader_test = new BufferedReader(\n new FileReader(f_test.getPath()));\t\n test = new Instances(reader_test);\n test.setClassIndex(test.numAttributes() - 1);\n // deserialize model\n ObjectInputStream ois = new ObjectInputStream(\n new FileInputStream(\"C://Users//ssidha1//Dropbox//CodeBase Log ingestion//j48.model\"));\n \n FilteredClassifier fc = (FilteredClassifier) ois.readObject();\n \n final javax.swing.JFrame jf = \n new javax.swing.JFrame(\"Weka Classifier Tree Visualizer: J48\");\n jf.setSize(500,400);\n jf.getContentPane().setLayout(new BorderLayout());\n TreeVisualizer tv = new TreeVisualizer(null,\n fc.graph(),\n new PlaceNode2());\n jf.getContentPane().add(tv, BorderLayout.CENTER);\n jf.addWindowListener(new java.awt.event.WindowAdapter() {\n public void windowClosing(java.awt.event.WindowEvent e) {\n jf.dispose();\n }\n });\n \n jf.setVisible(true);\n tv.fitToScreen();\n ois.close();\n cLevel = new String[test.numInstances()];\n for (int i = 0; i < test.numInstances(); i++) {\n double pred = fc.classifyInstance(test.instance(i));\n cLevel[i] = test.classAttribute().value((int) pred);\n }\n HectorClient.drawROC(test,fc);\n } catch (Exception e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n return cLevel;\n\t}", "title": "" }, { "docid": "4faae88239e0976bcf901d536d31c41e", "score": "0.5126197", "text": "public void testBayes() {\n\t\tNaiveBayes navieBayes = new NaiveBayes();\r\n\t\t\r\n\t\tDataSet dataSet = navieBayes.loadDataSet(Parameter.ARFFfilePath);\r\n//\t\tDataSet dataSet = navieBayes.getDataSet(\"file/weather.numeric.arff\");\r\n\t\tSystem.out.println(navieBayes);\r\n\t\tnavieBayes.buildClassifier(dataSet);\r\n\t\t System.out.println(\"-----------------------------------------\");\r\n\t\t Data data = new Data();\r\n\t\t List<String> attvalues= new LinkedList<String>();\r\n//\t\t attvalues.add(\"sunny\");\r\n//\t\t attvalues.add(\"cool\");\r\n//\t\t attvalues.add(\"high\");\r\n\t\t \r\n//\t\t attvalues.add(\"TRUE\");\r\n//\t\t List<AttrType> attTypeList = new LinkedList<AttrType>();\r\n//\t\t attTypeList.add(AttrType.Category);\r\n//\t\t attTypeList.add(AttrType.Category);\r\n//\t\t attTypeList.add(AttrType.Category);\r\n//\t\t attTypeList.add(AttrType.Category);\r\n//\t\t data.setAttributevaluesList(attvalues);\r\n//\t\t System.out.println(data);\r\n//\t\t System.out.println(navieBayes.classifyInstance(navieBayes,data) );\r\n//\t\t navieBayes. predictClassProbalityOfData(data);\r\n\t\tSystem.out.println( navieBayes.getClassifyAccuracy(navieBayes, dataSet) );\r\n//\t\tovercast, mild, high, true\r\n//\t\tattvalues.add(\"sunny\");\r\n//\t\t attvalues.add(\"mild\");\r\n//\t\t attvalues.add(\"high\");\r\n//\t\t attvalues.add(\"TRUE\");\r\n//\t\tnavieBayes.classifyInstance(navieBayes, attvalues);\r\n\t}", "title": "" }, { "docid": "61c303dff56d544a134491674e7adb34", "score": "0.51200974", "text": "@Test(timeout = 4000)\n public void test34() throws Throwable {\n Discretize discretize0 = new Discretize();\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n Attribute attribute0 = new Attribute(\"vjsx8!w\");\n LinkedList<Locale.LanguageRange> linkedList0 = new LinkedList<Locale.LanguageRange>();\n ArrayList<String> arrayList1 = new ArrayList<String>();\n List<String> list0 = Locale.filterTags((List<Locale.LanguageRange>) linkedList0, (Collection<String>) arrayList1);\n List<String> list1 = Locale.filterTags((List<Locale.LanguageRange>) linkedList0, (Collection<String>) list0);\n Properties properties0 = new Properties();\n ProtectedProperties protectedProperties0 = new ProtectedProperties(properties0);\n Attribute attribute1 = new Attribute(\"@attribute\", list1, protectedProperties0);\n arrayList0.add(attribute1);\n Instances instances0 = new Instances(\"string\", arrayList0, 4);\n discretize0.setInputFormat(instances0);\n discretize0.calculateCutPoints();\n // Undeclared exception!\n try { \n discretize0.calculateCutPointsByEqualWidthBinning(3);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 3\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "title": "" }, { "docid": "6b1d18b7b844decf3ea2216d069ca6cc", "score": "0.5115384", "text": "public ArrayList<String> classify(String fileName, String modelName){\n\t\tgetWareHouseInstance(modelName);\r\n\t\tdouble temp = 0;\r\n\t\t\r\n\t\t//get the no. of categories that were made from the warehouse object and create a category-prob map which will be reused\r\n\t\tHashMap<String,Double> category_probMap = new HashMap<String,Double>();\r\n\t\tfor(String category : wareHouse.category_FrequencyMap.keySet()){\r\n\t\t\tcategory_probMap.put(category, (double)0);\r\n\t\t\ttemp += wareHouse.category_FrequencyMap.get(category);\r\n\t\t}\t\r\n\t\t\r\n\t\t//get the prior prob into a map\r\n\t\tdouble priorProb = 0;\r\n\t\tfor(String category : wareHouse.category_FrequencyMap.keySet()){\r\n\t\t priorProb = wareHouse.category_FrequencyMap.get(category)/temp;\r\n\t\t priorProb = Math.log(priorProb);\r\n\t\t\tcategory_priorProbMap.put(category, priorProb);\r\n\t\t}\t\r\n\t\t\r\n\t\t//create an arraList to store the classifications for each document(line)\r\n\t\tArrayList<String> classification = new ArrayList<String>();\r\n\t\t\r\n\t\t//read the file line by line and for each line {\r\n\t BufferedReader br = null;\r\n\t try{\r\n\t \tbr = new BufferedReader(new FileReader(fileName));\r\n\t \tString line;\r\n\t \tint documentNo = 0;\r\n\t \twhile((line = br.readLine()) != null){\r\n\t \t\t// a new document starts\r\n\t \t\tString[] words = line.split(\" \");\r\n\t \t\t// for each cateogory\r\n\t \t\t\tfor(String category : category_probMap.keySet()){\r\n\t \t\t\t\t//find p(c|line) and store it in the map\r\n\t \t\t\t\tdouble condProbOfCategoryGivenDoc = findCondProbOfCategoryGivenDoc(words,category);\r\n\t \t\t\t\tcategory_probMap.put(category, condProbOfCategoryGivenDoc);\r\n\t \t\t\t}\r\n\t \t\t\t\r\n\t \t\t\t// get the max prob and put the category into the arrayList\r\n\t \t\t\tdouble max = Double.NEGATIVE_INFINITY;\r\n\t \t\t\tclassification.add(documentNo, \"\");\r\n\t \t\t\tfor(String category : category_probMap.keySet())\r\n\t \t\t\t\tif(category_probMap.get(category) > max ){\r\n\t \t\t\t\t\tmax = category_probMap.get(category);\r\n\t \t\t\t\t\tclassification.set(documentNo, category);\r\n\t \t\t\t\t}\r\n\t \t\t\tdocumentNo++;\t\t\r\n\t \t\t}\r\n\t }catch(Exception e){\r\n\t \ttry {\r\n\t \t\tSystem.out.println(e.getMessage());\r\n\t\t\t} catch (Exception e1) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\tSystem.out.println(e1.getMessage());\r\n\t\t\t}\r\n\t } finally{\r\n\t \ttry {\r\n\t\t\t\tbr.close();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\tSystem.out.println(e.getMessage());\r\n\t\t\t}\r\n\t \t\r\n\t }\r\n\t return classification;\r\n\t\r\n\t}", "title": "" }, { "docid": "75fb64d6b27a96309267484eeb614356", "score": "0.51140714", "text": "private void computeRelevance() {\n double mean = 0;\n double variance = 0;\n double parameterControl;\n\n //computes the term variance values of the data\n TermVariance tv = new TermVariance(numFeatures);\n tv.loadDataSet(trainSet, numFeatures, numClass);\n tv.evaluateFeatures();\n relevanceFeature = tv.getFeatureValues();\n\n// for (int i = 0; i < numFeatures; i++) {\n// System.out.println(\"relevance f(\" + i + \") = \" + relevanceFeature[i]);\n// }\n //normalizes the relevance values by softmax scaling function\n for (int i = 0; i < numFeatures; i++) {\n mean += relevanceFeature[i];\n }\n mean /= numFeatures;\n\n for (int i = 0; i < numFeatures; i++) {\n variance += Math.pow(relevanceFeature[i] - mean, 2);\n }\n variance = Math.sqrt(variance / (numFeatures - 1));\n\n if (variance == 0) {\n variance = ERROR_RELEVANCE;\n }\n\n parameterControl = mean / variance;\n if (parameterControl == 0) {\n parameterControl = ERROR_RELEVANCE;\n }\n\n for (int i = 0; i < numFeatures; i++) {\n relevanceFeature[i] = (relevanceFeature[i] - mean) / (variance * parameterControl);\n relevanceFeature[i] = 1.0 / (1.0 + Math.pow(Math.E, -1 * relevanceFeature[i]));\n }\n\n// for (int i = 0; i < numFeatures; i++) {\n// System.out.println(\"norm relevance f(\" + i + \") = \" + relevanceFeature[i]);\n// }\n }", "title": "" }, { "docid": "e3b3397ff17455088ae70a1e4809cb81", "score": "0.51017153", "text": "public int classifyNominal(Instance paraInstance) {\n\t\t// Find the biggest one\n\t\tdouble tempBiggest = -10000;\n\t\tint resultBestIndex = 0;\n\t\tfor (int i = 0; i < numClasses; i++) {\n\t\t\tdouble tempPseudoProbability = Math.log(classDistributionLaplacian[i]);\n\t\t\tfor (int j = 0; j < numConditions; j++) {\n\t\t\t\tint tempAttributeValue = (int) paraInstance.value(j);\n\n\t\t\t\t// Laplacian smooth.\n\t\t\t\ttempPseudoProbability += Math\n\t\t\t\t\t\t.log(conditionalProbabilities[i][j][tempAttributeValue]);\n\t\t\t} // Of for j\n\n\t\t\tif (tempBiggest < tempPseudoProbability) {\n\t\t\t\ttempBiggest = tempPseudoProbability;\n\t\t\t\tresultBestIndex = i;\n\t\t\t} // Of if\n\t\t} // Of for i\n\n\t\treturn resultBestIndex;\n\t}", "title": "" }, { "docid": "18289a695f458687485e37dd4c525986", "score": "0.50930476", "text": "public double ClassVarianceCalculation(ArrayList<DataSetRow> data)\n {\n int totalAttributes=data.size();\n int numberOfZeroes;\n int numberOfOnes;\n int totalNumber;\n double pplus=(double)0.0;\n double pminus=(double)0.0;\n \n ArrayList<Integer> zeroIndexes;\n ArrayList<Integer> oneIndexes;\n ArrayList<Integer> classColumn=new ArrayList<>();\n classColumn=findAttributeValuesWithLabel(data,data.get(totalAttributes-1).attributeName);//Data.get(totalAttributes-1).attributeValues;//ExtractColumn(Data,totalAttributes-1);\n \n \n zeroIndexes=FindZeroIndexes(classColumn);\n oneIndexes=FindOneIndexes(classColumn);\n numberOfZeroes=zeroIndexes.size();\n numberOfOnes=oneIndexes.size();\n totalNumber=numberOfZeroes+numberOfOnes;\n \n pplus=(double)numberOfZeroes/totalNumber;\n pminus=(double)(numberOfOnes)/totalNumber;\n \n double classVariance=(double)(pplus*pminus);\n return classVariance;\n }", "title": "" }, { "docid": "112da2939bfb8f29bc95cd4ecc5737f4", "score": "0.50916356", "text": "public String predictNumeric(String e) {\n\n String[] features = e.split(\",\");\n\n if (node.containsKey(features[Integer.parseInt(feature)])) {\n return node.get(features[Integer.parseInt(feature)]).predict(e);\n\n } else if (Util.isNumeric(features[Integer.parseInt(feature)])) {\n String chosen = \"\";\n double[] bins = Util.getNumericArray(node.keySet().toArray(new String[node.keySet().size()]));\n Arrays.sort(bins);\n for (int i = 0; i < bins.length; i++) {\n if (Double.parseDouble(features[Integer.parseInt(feature)]) <= bins[i]) {\n\n chosen = String.format(\"%.2f\", bins[i]);\n break;\n }\n }\n if (chosen.equals(\"\")) chosen = String.valueOf(bins[bins.length - 1]);\n if (!node.containsKey(chosen)) chosen = String.format(\"%.1f\", Double.parseDouble(chosen));\n\n return node.get(chosen).predict(e);\n } else {\n return data.getMaxCategory();\n }\n }", "title": "" }, { "docid": "b3402771a6369eb18308db2f488aea23", "score": "0.50871074", "text": "public abstract double predict(DoubleMatrix1D u, DoubleMatrix1D v, DoubleMatrix1D s);", "title": "" }, { "docid": "5ef1a40fe12e30fda2880dfeeac08291", "score": "0.5075296", "text": "@Override\n\tpublic String classify(Drawing d) {\n\t\t\n\t\tHistogram<String> histogram = new Histogram<String>();\n\t\tfor(RecognizerAI rai: bags){\n\t\t\tString result = rai.classify(d);\n\t\t\thistogram.bump(result);\n\t\t}\n\t\t\n\t\treturn histogram.getPluralityWinner();\n\t}", "title": "" }, { "docid": "de85a6fc373a0f2fe76a59ca4ea7ff72", "score": "0.50701547", "text": "public double value(double[] utilisationData) {\n utilisationData = loader.castIntoNet(utilisationData);\n //Example input.\n //0\t0\t28\t324\t324\t324\t405\t30\n //100\t9\t37\t732\t732\t2600\t540\t81 \n MLData data = new BasicMLData(utilisationData);\n double output = network.classify(data);\n return loader.castFromNet(inputSize, output);\n }", "title": "" }, { "docid": "637699e9fdfbe541ed19cbd0dff7cc03", "score": "0.5068647", "text": "@Override\n public double evaluateSubset(BitSet subset) throws Exception {\n\t \n\t m_debuglog.log(subset.toString());\n\t \n\t int numAttributes = 0;\n\t double errorRate = 0;\n\t \n\t Random rand = new Random(System.currentTimeMillis());\n\t Instances trainInst = new Instances(m_trainInstances);\n\t trainInst.randomize(rand);\n\t \n\t Remove delTransform = new Remove();\n\t delTransform.setInvertSelection(true);\n\t \n\t for (int i = 0; i < m_numAttribs; i++)\n\t {\n\t\t if (subset.get(i) && i != m_classIndex)\n\t\t {\n\t\t\t numAttributes++;\n\t\t }\n\t }\n\t \n\t m_debuglog.log(\"Num attributes = \" + numAttributes);\n\t \n\t if (numAttributes <= 0)\n\t\t return Double.NEGATIVE_INFINITY;\n\n\t // set up an array of attribute indexes for the filter\n\t int[] featureArray = new int[numAttributes+1];\n\t int i, j;\n\t \n\t for (i = 0, j = 0; i < m_numAttribs; i++) {\n\t\t if (subset.get(i) && i != m_classIndex) {\n\t\t\t featureArray[j++] = i;\n\t\t }\n\t }\n\n\t featureArray[j] = m_classIndex;\n\t \n\t m_debuglog.log(\"Feature array = \" + featureArray.toString());\n\t \n\t delTransform.setAttributeIndicesArray(featureArray);\n\t delTransform.setInputFormat(trainInst);\n\t trainInst = Filter.useFilter(trainInst, delTransform);\n\n\t int folds = 3;\n\t trainInst.stratify(folds);\n\t \n\t for (int n = 0; n < folds; n++)\n\t {\n\n\t\t m_debuglog.log(\"Eval fold = \" + n);\n\t\t \n\t\t Instances train = trainInst.trainCV(folds, n);\n\t\t Instances test = trainInst.testCV(folds, n);\n\t\t \n\t\t // build the classifier\n\t\t m_Classifier.buildClassifier(train);\n\t\t \n\t\t m_Evaluation = new Evaluation(train);\n\t\t m_Evaluation.evaluateModel(m_Classifier, test);\n\n\t\t if (m_trainInstances.classAttribute().isNominal()) {\n\t\t\t errorRate += m_Evaluation.errorRate();\n\t\t } else {\n\t\t\t errorRate += m_Evaluation.meanAbsoluteError();\n\t\t }\n\n\t\t m_Evaluation = null;\n\t\t // return the negative of the error as search methods need to\n\t\t // maximize something\n\t }\n\t \n\n\t return -errorRate;\n\t \n// double num = 0.0;\n// double denom = 0.0;\n// float corr;\n// int larger, smaller;\n// // do numerator\n// for (int i = 0; i < m_numAttribs; i++) {\n// if (i != m_classIndex) {\n// if (subset.get(i)) {\n// if (i > m_classIndex) {\n// larger = i;\n// smaller = m_classIndex;\n// } else {\n// smaller = i;\n// larger = m_classIndex;\n// }\n// /*\n// * int larger = (i > m_classIndex ? i : m_classIndex); int smaller =\n// * (i > m_classIndex ? m_classIndex : i);\n// */\n// if (m_corr_matrix[larger][smaller] == -999) {\n// corr = correlate(i, m_classIndex);\n// m_corr_matrix[larger][smaller] = corr;\n// num += (m_std_devs[i] * corr);\n// } else {\n// num += (m_std_devs[i] * m_corr_matrix[larger][smaller]);\n// }\n// }\n// }\n// }\n//\n// // do denominator\n// for (int i = 0; i < m_numAttribs; i++) {\n// if (i != m_classIndex) {\n// if (subset.get(i)) {\n// denom += (1.0 * m_std_devs[i] * m_std_devs[i]);\n//\n// for (int j = 0; j < m_corr_matrix[i].length - 1; j++) {\n// if (subset.get(j)) {\n// if (m_corr_matrix[i][j] == -999) {\n// corr = correlate(i, j);\n// m_corr_matrix[i][j] = corr;\n// denom += (2.0 * m_std_devs[i] * m_std_devs[j] * corr);\n// } else {\n// denom +=\n// (2.0 * m_std_devs[i] * m_std_devs[j] * m_corr_matrix[i][j]);\n// }\n// }\n// }\n// }\n// }\n// }\n//\n// if (denom < 0.0) {\n// denom *= -1.0;\n// }\n//\n// if (denom == 0.0) {\n// return (0.0);\n// }\n//\n// double merit = (num / Math.sqrt(denom));\n//\n// if (merit < 0.0) {\n// merit *= -1.0;\n// }\n//\n// return merit;\n }", "title": "" }, { "docid": "6fb9f8ab66279731cbbad0fe0e922736", "score": "0.50597113", "text": "public abstract void trainAndClassify();", "title": "" }, { "docid": "5fd675276d6de83284b7a148ca6dcc84", "score": "0.5059633", "text": "@Test(timeout = 4000)\n public void test21() throws Throwable {\n RegressionByDiscretization regressionByDiscretization0 = new RegressionByDiscretization();\n Capabilities capabilities0 = regressionByDiscretization0.getCapabilities();\n TestInstances testInstances0 = TestInstances.forCapabilities(capabilities0);\n Instances instances0 = testInstances0.generate(\"{`vSB'pZn~rOk\");\n Evaluation evaluation0 = new Evaluation(instances0);\n Evaluation evaluation1 = new Evaluation(instances0, (CostMatrix) null);\n double[] doubleArray0 = new double[6];\n doubleArray0[0] = (double) 2;\n doubleArray0[1] = (double) (-1);\n Instances.test(testInstances0.DEFAULT_WORDS);\n doubleArray0[2] = (double) (-1);\n doubleArray0[3] = (double) 2;\n doubleArray0[4] = (double) (-1);\n doubleArray0[5] = (double) 1;\n SparseInstance sparseInstance0 = new SparseInstance(2.0, doubleArray0);\n try { \n evaluation0.evaluateModelOnce(doubleArray0, (Instance) sparseInstance0);\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // DenseInstance doesn't have access to a dataset!\n //\n verifyException(\"weka.core.AbstractInstance\", e);\n }\n }", "title": "" }, { "docid": "6f1fc26a6d967fc2261981cd74edc907", "score": "0.5043219", "text": "protected boolean step()\n {\n this.setErrorCount( 0 );\n\n if (this.getData().size() == 1)\n {\n // If there is only one data point, there is nothing to fit.\n InputOutputPair<? extends InputType, Double> first =\n this.getData().iterator().next();\n this.getResult().getExamples().clear();\n this.getResult().setBias( first.getOutput() );\n return false;\n }\n\n // Loop over all the training instances.\n for (InputOutputPair<? extends InputType, Double> example : this.getData())\n {\n if (example == null)\n {\n continue;\n }\n\n // Compute the predicted classification and get the actual\n // classification.\n final InputType input = example.getInput();\n final double actual = example.getOutput();\n final double prediction = this.result.evaluate( input );\n final double error = actual - prediction;\n\n // This is the update psuedo-code as listed in the book:\n // alphahat_i = alpha_i\n // alpha_i = alpha_i + y_i - epsilon * sign(alpha_i) \n // - sum alpha_j k(x_j, x_i)\n // if ( alphahat_i * alpha_i < 0 ) then alpha_i = 0\n // where when alpha_i is zero the value in [+1, -1] is used for\n // sign(alpha_i) that minimizes the size of the update.\n //\n // However, this code doesn't work as it is listed in the book.\n // Instead it adds an extra division by the value k(x_i, x_i)\n // to the update, making it:\n // alpha_i = alpha_i +\n // (y_i - epsilon * sign(alpha_i) - sum alpha_j k(x_j, x_i) )\n // / k(x_i, x_i)\n //\n // Also a check is made such that the weight value (alpha_i) is\n // not updated when the prediction error is less than the minimum\n // sensitivity.\n DefaultWeightedValue<InputType> support = this.supportsMap.get( example );\n final double oldWeight = support == null ? 0.0 : support.getWeight();\n\n double newWeight = oldWeight;\n// TODO: Determine if this check to see if the error is outside the minimum\n// sensitivity still preserves the support-vector nature of the algorithm or\n// if it makes it a more greedy algorithm such as the Perceptron algorithm.\n if (Math.abs( error ) >= this.minSensitivity)\n {\n double weightUpdate = error;\n\n // This part computes the epsilon * sign(alpha_i) to deal with\n // the case where alpha_i is zero, in which case the sign must\n // be either interpreted as -1 or +1 based on which provides\n // a smaller update.\n if (oldWeight == 0.0)\n {\n double positiveUpdate = weightUpdate - this.minSensitivity;\n double negativeUpdate = weightUpdate + this.minSensitivity;\n\n if (Math.abs( positiveUpdate ) <= Math.abs( negativeUpdate ))\n {\n weightUpdate -= this.minSensitivity;\n }\n else\n {\n weightUpdate += this.minSensitivity;\n }\n }\n else if (oldWeight > 0.0)\n {\n // This functions as -epsilon * sign(alpha_i) where\n // sign(alpha_i) = +1.\n weightUpdate -= this.minSensitivity;\n }\n else\n {\n // This functions as -epsilon * sign(alpha_i) where\n // sign(alpha_i) = -1.\n weightUpdate += this.minSensitivity;\n }\n\n // Divide the update by the kernel applied to itself, while\n // avoiding a divide-by-zero error.\n final double selfKernel = this.kernel.evaluate( input, input );\n if (selfKernel != 0.0)\n {\n weightUpdate /= selfKernel;\n }\n\n // Compute the new weight by adding the old weight and the\n // weight update.\n newWeight = oldWeight + weightUpdate;\n\n // This removes unneeded weights.\n if (oldWeight * newWeight < 0.0)\n {\n newWeight = 0.0;\n }\n }\n\n // Compute the weight to see if this was considered an \"error\".\n final double difference = newWeight - oldWeight;\n\n if (difference != 0.0)\n {\n // We need to change the kernel scalar function..\n this.setErrorCount( this.getErrorCount() + 1 );\n\n // We are going to update the weight for this example and the\n // global bias.\n final double oldBias = this.result.getBias();\n final double newBias = oldBias + difference;\n\n if (support == null)\n {\n // Add a support for this example.\n support = new DefaultWeightedValue<InputType>( input, newWeight );\n this.supportsMap.put( example, support );\n }\n else if (newWeight == 0.0)\n {\n // This example is no longer a support.\n this.supportsMap.remove( example );\n }\n else\n {\n // Update the weight for the support.\n support.setWeight( newWeight );\n }\n\n // Update the bias.\n this.result.setBias( newBias );\n }\n // else - The classification was correct, no need to update.\n }\n\n // Keep going while the error count is positive.\n return this.getErrorCount() > 0;\n }", "title": "" }, { "docid": "637d972468dff103a43839db7089af40", "score": "0.5039088", "text": "StatisticsClassification(DataHandleInternal inputHandle,\n DataHandleInternal outputHandle,\n String[] features,\n String clazz,\n ARXLogisticRegressionConfiguration config,\n WrappedBoolean interrupt,\n WrappedInteger progress) throws ParseException {\n\n // Init\n this.interrupt = interrupt;\n this.progress = progress;\n \n // Check and clean up\n double samplingFraction = (double)config.getMaxRecords() / (double)inputHandle.getNumRows();\n if (samplingFraction <= 0d) {\n throw new IllegalArgumentException(\"Sampling fraction must be >0\");\n }\n if (samplingFraction > 1d) {\n samplingFraction = 1d;\n }\n \n \n // Initialize random\n if (!config.isDeterministic()) {\n this.random = new Random();\n } else {\n this.random = new Random(config.getSeed());\n }\n \n // TODO: Feature is not used. Continuous variables are treated as categorical.\n ClassificationDataSpecification specification = new ClassificationDataSpecification(inputHandle, \n outputHandle, \n features,\n clazz,\n interrupt);\n \n // Train and evaluate\n int k = inputHandle.getNumRows() > config.getNumFolds() ? config.getNumFolds() : inputHandle.getNumRows();\n List<List<Integer>> folds = getFolds(inputHandle.getNumRows(), k);\n\n // Track\n int classifications = 0;\n double total = 100d / ((double)inputHandle.getNumRows() * (double)folds.size());\n double done = 0d;\n \n // For each fold as a validation set\n for (int evaluationFold = 0; evaluationFold < folds.size(); evaluationFold++) {\n \n // Create classifiers\n ClassificationMethod inputLR = new MultiClassLogisticRegression(specification, config);\n ClassificationMethod inputZR = new MultiClassZeroR(specification);\n ClassificationMethod outputLR = null;\n if (inputHandle != outputHandle) {\n outputLR = new MultiClassLogisticRegression(specification, config);\n }\n \n // Try\n try {\n \n // Train with all training sets\n boolean trained = false;\n for (int trainingFold = 0; trainingFold < folds.size(); trainingFold++) {\n if (trainingFold != evaluationFold) { \n for (int index : folds.get(trainingFold)) {\n checkInterrupt();\n inputLR.train(inputHandle, outputHandle, index);\n inputZR.train(inputHandle, outputHandle, index);\n if (outputLR != null && !outputHandle.isOutlier(index)) {\n outputLR.train(outputHandle, outputHandle, index);\n }\n trained = true;\n this.progress.value = (int)((++done) * total);\n }\n }\n }\n \n // Close\n inputLR.close();\n inputZR.close();\n if (outputLR != null) {\n outputLR.close();\n }\n \n // Now validate\n for (int index : folds.get(evaluationFold)) {\n \n // Check\n checkInterrupt();\n \n // If trained\n if (trained) {\n \n // Classify\n ClassificationResult resultInputLR = inputLR.classify(inputHandle, index);\n ClassificationResult resultInputZR = inputZR.classify(inputHandle, index);\n ClassificationResult resultOutputLR = outputLR == null ? null : outputLR.classify(outputHandle, index);\n classifications++;\n \n // Correct result\n String actualValue = outputHandle.getValue(index, specification.classIndex, true);\n \n // Maintain data about inputZR\n this.zeroRAverageError += resultInputZR.error(actualValue);\n this.zeroRAccuracy += resultInputZR.correct(actualValue) ? 1d : 0d;\n\n // Maintain data about inputLR\n boolean correct = resultInputLR.correct(actualValue);\n this.originalAverageError += resultInputLR.error(actualValue);\n this.originalAccuracy += correct ? 1d : 0d;\n this.originalMatrix.add(resultInputLR.confidence(), correct);\n\n // Maintain data about outputLR \n if (resultOutputLR != null) {\n correct = resultOutputLR.correct(actualValue);\n this.averageError += resultOutputLR.error(actualValue);\n this.accuracy += correct ? 1d : 0d;\n this.matrix.add(resultOutputLR.confidence(), correct);\n }\n }\n \n this.progress.value = (int)((++done) * total);\n }\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n }\n \n \n // Maintain data about inputZR\n this.zeroRAverageError /= (double)classifications;\n this.zeroRAccuracy/= (double)classifications;\n\n // Maintain data about inputLR\n this.originalAverageError /= (double)classifications;\n this.originalAccuracy /= (double)classifications;\n this.originalMatrix.pack();\n\n // Maintain data about outputLR \n if (inputHandle != outputHandle) {\n this.averageError /= (double)classifications;\n this.accuracy /= (double)classifications;\n this.matrix.pack();\n } else {\n this.averageError = this.originalAverageError;\n this.accuracy = this.originalAccuracy;\n this.matrix = this.originalMatrix;\n }\n \n this.numClasses = specification.classMap.size();\n this.numMeasurements = classifications;\n }", "title": "" }, { "docid": "7468f59a92ff9d7b9391dc3fd67cdbd1", "score": "0.5037502", "text": "public double[][] getClassInformation(Instances dataTrain, Instances dataTest){\r\n int numTrain = dataTrain.numInstances();\r\n int numTest = dataTest.numInstances();\r\n int numClasses = dataTrain.numClasses();\r\n double[][] dist = new double[numTrain + numTest][numClasses];\r\n for(int inst=0;inst<numTrain;inst++){\r\n Instance instance = dataTrain.instance(inst);\r\n int pos = (int)instance.classValue();\r\n dist[inst][pos] = 1;\r\n \r\n }\r\n double value = 0;\r\n for(int inst=0;inst<numTest;inst++){\r\n for(int classe=0;classe<numClasses;classe++){\r\n dist[inst + numTrain][classe] = value;\r\n }\r\n }\r\n return dist;\r\n }", "title": "" }, { "docid": "389295ddecf9766ff7ce8a139251de9a", "score": "0.50360566", "text": "private static double tuneThreshold(MultiLabelClassifier.ClassProbEstimator multiLabelClassifier, MultiLabelClfDataSet dataSet, int classIndex, double beta){\n int[] labels = DataSetUtil.toBinaryLabels(dataSet.getMultiLabels(),classIndex);\n if (MathUtil.arraySum(labels)<10){\n return 0.5;\n }\n double[] probs = new double[dataSet.getNumDataPoints()];\n for (int i=0;i<dataSet.getNumDataPoints();i++){\n probs[i] = multiLabelClassifier.predictClassProb(dataSet.getRow(i),classIndex);\n }\n\n return BinaryFMeasureTuner.tuneThreshold(probs,labels,beta);\n }", "title": "" }, { "docid": "5b13fa32d1357f854ee2ebcbe8bc71f5", "score": "0.5020119", "text": "public void ComputeClassificationAccuracy(double [][] FInput, double [][] YInput, double [][] WInput, double [] biasWInput)\n\t{\n\t\tthis.F = FInput;\n\t\tthis.Y = YInput;\n\t\tthis.W = WInput;\n\t\tthis.biasW = biasWInput;\n\t\t\n\t\ttrainLoss = AccuracyLossTrainSet();\n\t\ttestLoss = AccuracyLossTestSet();\n\t\t\n\t\ttrainMCR = GetMCRTrainSet();\n\t\ttestMCR = GetMCRTestSet();\n\t}", "title": "" }, { "docid": "e73f57488c7cd6de4553f0d276e46094", "score": "0.5016703", "text": "public HandClassifier getClassifier();", "title": "" }, { "docid": "2ab2ca8ddafe2d72a04fe049cb434770", "score": "0.5015341", "text": "private void cross_validation() {\n int i;\n int total_correct = 0;\n double[] target = new double[data_values.l];\n\n svm.svm_cross_validation(data_values, parameter,nr_fold,target);\n total_correct = 0;\n\n for(i=0; i< data_values.l; i++)\n if(target[i] == data_values.y[i])\n ++total_correct;\n accuracy_value = 100.0*total_correct/ data_values.l;\n\n\n Toast.makeText(getBaseContext(), \"Cross Validation Accuracy = \"+100.0*total_correct/ data_values.l+\"%\\n\", Toast.LENGTH_LONG).show();\n\n }", "title": "" }, { "docid": "d6e61b97be8100309c6ce18bab1cc4da", "score": "0.5006454", "text": "@Override\n\tpublic Double knn(ArrayList<Double> input, int kNeighbours, ArrayList<ArrayList<Double>> trainingData) {\n\n\t\ttrainingData.add(input); // Adds the input to the training data and change the name\n\t\tinputs = trainingData;\n\t\taddingToList(); // Adds data\n\n\t\tList<double[]> firstKNeighbours = D.subList(0, kNeighbours); // Gets the first k neighbours\n\n\t\tHashMap<Double, Integer> findMax = new HashMap<Double, Integer>(); // Will find the max\n\n\t\tfor (double[] item : firstKNeighbours) { // For each set of data\n\n\t\t\tdouble classIn = item[1]; // Finds the class\n\t\t\tInteger total = findMax.get(classIn); // Gets the class\n\n\t\t\tif (total == null) { // If the class does not exist\n\n\t\t\t\tfindMax.put(classIn, 1); // Adds it\n\n\t\t\t} else { // If the class does exist\n\n\t\t\t\ttotal += 1; // increments the total\n\t\t\t\tfindMax.put(classIn, total); // Adds back in the class\n\t\t\t}\n\t\t}\n\n\t\tint max = -1; // The max at the moment\n\t\tdouble classToOutput = -5; // The class to output\n\t\tboolean clash = false; // If there is a clash\n\n\t\tfor (Map.Entry<Double, Integer> entry : findMax.entrySet()) { // For each data entry in the hash map\n\n\t\t\tif (entry.getValue() > max) { // If the total is larger than the lastest\n\n\t\t\t\tmax = entry.getValue(); // Change max to that\n\t\t\t\tclassToOutput = entry.getKey(); // Change class to that key\n\t\t\t\tclash = false; // Set clash to false\n\n\t\t\t} else if (entry.getValue() == max) { // If the entry value is the same total\n\t\t\t\tclash = true; // Set clash to true\n\t\t\t}\n\t\t}\n\n\t\tif (clash == true) { // If clash is true return null\n\t\t\treturn null;\n\t\t} else { // Or return the class to output\n\t\t\treturn classToOutput;\n\t\t}\n\t}", "title": "" }, { "docid": "f6fe62aae1861f099b7cae036b6c2159", "score": "0.5005909", "text": "public static void main(String[] args) {\n\n\n double[] x = new double[TRAINING_DATA_SIZE];\n double[] y = new double[TRAINING_DATA_SIZE];\n double[] z = new double[TRAINING_DATA_SIZE];\n int[] outputClasses = new int[TRAINING_DATA_SIZE]; //Will contain either 1 or 0\n\n double[] weights = new double[4]; //1 weight per each variable and 1 for bias\n double localError;\n double totalError;\n int p;\n int outputClass;\n\n /////////// Generate training data set ///////////\n\n //100 of class 1, 100 of class 0, linearly separable\n for (int i = 0; i < TRAINING_DATA_SIZE / 2; i++) {\n x[i] = generateRandomDouble(2, 10);\n y[i] = generateRandomDouble(4, 8);\n z[i] = generateRandomDouble(3, 9);\n outputClasses[i] = 1;\n System.out.println(\"x: \" + x[i] + \"\\ty: \" + y[i] + \"\\tz: \" + z[i] + \"\\tclass: \" + outputClasses[i]);\n }\n\n for (int i = TRAINING_DATA_SIZE/2; i < TRAINING_DATA_SIZE; i++) {\n x[i] = generateRandomDouble(- 10, 5);\n y[i] = generateRandomDouble(- 3, 4);\n z[i] = generateRandomDouble(- 7, 2);\n outputClasses[i] = 0;\n System.out.println(\"x: \" + x[i] + \"\\ty: \" + y[i] + \"\\tz: \" + z[i] + \"\\tclass: \" + outputClasses[i]);\n }\n\n weights[0] = generateRandomDouble(0, 1); // weight for x\n weights[1] = generateRandomDouble(0, 1); // weight for y\n weights[2] = generateRandomDouble(0, 1); // weight for z\n weights[3] = generateRandomDouble(0, 1); // bias\n\n\n /////////// Train algorithm ///////////\n\n int iterationCount = 0;\n totalError = -1; // just to enter the loop without satisfying first condition\n while (totalError != 0 && iterationCount <= ITERATION_LIMIT) {\n totalError = 0;\n iterationCount++;\n\n //loop through all instances (one complete epoch)\n for (p = 0; p < TRAINING_DATA_SIZE; p++) {\n\n //summation equation\n double sum = x[p] * weights[0] + y[p] * weights[1] + z[p] * weights[2] + weights[3];\n outputClass = (sum >= THETA) ? 1 : 0;\n\n // update weights and bias\n localError = outputClasses[p] - outputClass;\n weights[0] += LEARNING_RATE * localError * x[p];\n weights[1] += LEARNING_RATE * localError * y[p];\n weights[2] += LEARNING_RATE * localError * z[p];\n weights[3] += LEARNING_RATE * localError;\n\n //summation of squared error (error over all instances), for calculating root mean squared error.\n totalError += (localError * localError);\n }\n /* Root Mean Squared Error */\n System.out.println(\"Iteration \" + iterationCount + \" : Root Mean Squared = \" + Math.sqrt(totalError /\n TRAINING_DATA_SIZE));\n }\n\n System.out.println\n (\"\\n==============================================================================================\\nDecision \" +\n \"boundary eqation:\");\n System.out.println(weights[0] + \"*x + \" + weights[1] + \"*y + \" + weights[2] + \"*z + \" + weights[3] + \" = 0\");\n System.out.println\n (\"==============================================================================================\");\n\n\n //Generate 10 new random points and check their classes.\n for (int j = 0; j < 10; j++) {\n double x1 = generateRandomDouble(- 10, 10);\n double y1 = generateRandomDouble(- 10, 10);\n double z1 = generateRandomDouble(- 10, 10);\n\n double sum = (x1 * weights[0]) + (y1 * weights[1]) + (z1 * weights[2]) + weights[3];\n outputClass = (sum >= THETA) ? 1 : 0;\n System.out.println(\"\\nNew test point:\");\n System.out.println(\"x = \" + x1 + \", y = \" + y1 + \", z = \" + z1);\n System.out.println(\"class = \" + outputClass);\n }\n\n }", "title": "" }, { "docid": "bb8634704a1731499677b452d959691e", "score": "0.5002667", "text": "@Test(timeout = 4000)\n public void test46() throws Throwable {\n Discretize discretize0 = new Discretize();\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n Attribute attribute0 = new Attribute(\"\\\"position\\\" has unknown type\");\n StringTokenizer stringTokenizer0 = new StringTokenizer(\"@attribute\", \"string\");\n Instances instances0 = new Instances(\"real\", arrayList0, 1);\n arrayList0.add(attribute0);\n boolean boolean0 = discretize0.m_MakeBinary;\n discretize0.setInputFormat(instances0);\n discretize0.setMakeBinary(true);\n BinarySparseInstance binarySparseInstance0 = new BinarySparseInstance(0);\n binarySparseInstance0.insertAttributeAt(0);\n instances0.add((Instance) binarySparseInstance0);\n BinarySparseInstance binarySparseInstance1 = new BinarySparseInstance(0);\n binarySparseInstance1.isMissing(attribute0);\n attribute0.value(1);\n instances0.add((Instance) binarySparseInstance1);\n Filter.useFilter(instances0, discretize0);\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n try { \n discretize0.setInputFormat(instances0);\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // weka.filters.unsupervised.attribute.Discretize: Class attribute not set!\n //\n verifyException(\"weka.core.Capabilities\", e);\n }\n }", "title": "" }, { "docid": "01a2f789987842ef9cbdf0b0ca386d69", "score": "0.49993956", "text": "public abstract int predict(CvMat inputs);", "title": "" }, { "docid": "9ca2e86de36721e5b16f637ec5d14e06", "score": "0.49944293", "text": "public static void main(String[] args) {\n final Classifier<String, String> bayesP =\n new BayesClassifier<String, String>(false);\n final Classifier<String, String> bayesA =\n new BayesClassifier<String, String>(false);\n\n\n for(String features: Data1.administrator_assistant)\n bayesP.learn(\"administrative assistant\", prepareText(features));\n for(String features: Data2.administrator_assistant)\n bayesP.learn(\"administrative assistant\", prepareText(features));\n for(String features: Data1.line_cook)\n bayesP.learn(\"cook\", prepareText(features));\n for(String features: Data2.line_cook)\n bayesP.learn(\"cook\", prepareText(features));\n for(String features: Data1.sales_manager)\n bayesP.learn(\"sales manager\", prepareText(features));\n for(String features: Data2.sales_manager)\n bayesP.learn(\"sales manager\", prepareText(features));\n\n for(String features: Data1.secretary)\n bayesP.learn(\"secretary\", prepareText(features));\n for(String features: Data2.secretary)\n bayesP.learn(\"secretary\", prepareText(features));\n for(String features: Data1.software_developer)\n bayesP.learn(\"software developer\", prepareText(features));\n for(String features: Data2.software_developer)\n bayesP.learn(\"software developer\", prepareText(features));\n boolean first = false;\n for(String features: Data.cook){\n if(first) {\n first = false;\n continue;\n }\n bayesP.learn(\"cook\", prepareText(features));\n }\n\n\n for(String features: Data.softwareDeveloper)\n bayesP.learn(\"software developer\", prepareText(features));\n\n System.out.println( // will output \"cook\"\n bayesP.classify(prepareText(Data.cook[0])).getCategory());\n System.out.println( // will output \"software developer\"\n bayesP.classify(prepareText(Data.sdTest[0])).getCategory());\n\n\n /*\n * The BayesClassifier extends the abstract Classifier and provides\n * detailed classification results that can be retrieved by calling\n * the classifyDetailed Method.\n *\n * The classification with the highest probability is the resulting\n * classification. The returned List will look like this.\n * [\n * Classification [\n * category=negative,\n * probability=0.0078125,\n * featureset=[today, is, a, sunny, day]\n * ],\n * Classification [\n * category=positive,\n * probability=0.0234375,\n * featureset=[today, is, a, sunny, day]\n * ]\n * ]\n */\n Collection<Classification<String, String>> res = ((BayesClassifier<String, String>) bayesP).classifyDetailed(\n prepareText(Data.sdTest[0]));\n System.out.println(res.iterator().next().getProbability());\n System.out.println(res.iterator().next().getProbability());\n System.out.println(bayesA);\n res = ((BayesClassifier<String, String>) bayesP).classifyDetailed(\n prepareText(Data.cookTest[0]));\n System.out.println(res.iterator().next().getProbability());\n /*\n * Please note, that this particular classifier implementation will\n * \"forget\" learned classifications after a few learning sessions. The\n * number of learning sessions it will record can be set as follows:\n */\n //bayes.setMemoryCapacity(500); // remember the last 500 learned classifications\n }", "title": "" }, { "docid": "31da8a3b2c33b5b914f0e223b01e2b9f", "score": "0.49920467", "text": "public abstract DoubleVector collapse();", "title": "" }, { "docid": "d9e82a09f51eb7d1b13beb776a504f2f", "score": "0.49906853", "text": "@Test(timeout = 4000)\n public void test27() throws Throwable {\n Discretize discretize0 = new Discretize();\n ArrayList<Attribute> arrayList0 = new ArrayList<Attribute>();\n Attribute attribute0 = new Attribute(\"\\\"position\\\"has unknown type\");\n arrayList0.add(attribute0);\n Instances instances0 = new Instances(\"date\", arrayList0, 2);\n instances0.toString();\n discretize0.setInputFormat(instances0);\n discretize0.calculateCutPoints();\n discretize0.setOutputFormat();\n discretize0.isNewBatch();\n double[] doubleArray0 = new double[8];\n doubleArray0[0] = 0.0;\n doubleArray0[1] = (double) 2;\n doubleArray0[2] = (double) 0;\n doubleArray0[3] = (double) 0;\n doubleArray0[4] = (double) 2;\n doubleArray0[5] = (double) 3;\n doubleArray0[6] = (double) 0;\n doubleArray0[7] = (double) 0;\n BinarySparseInstance binarySparseInstance0 = new BinarySparseInstance(4, doubleArray0);\n SparseInstance sparseInstance0 = new SparseInstance((SparseInstance) binarySparseInstance0);\n discretize0.convertInstance(sparseInstance0);\n // Undeclared exception!\n try { \n discretize0.getBinRangesString(68);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 68\n //\n verifyException(\"weka.filters.unsupervised.attribute.Discretize\", e);\n }\n }", "title": "" }, { "docid": "2a15258d94a3acff6c67421251043d06", "score": "0.4986379", "text": "public void featureDetected(Feature feature, FeatureDetector detector);", "title": "" } ]
ba54a092fab738678aaceac3256197e8
Time taken where the first array element contains seconds [0] and the second contains milliseconds [1].
[ { "docid": "6995a0ab8a79064816a308ba5d7926ed", "score": "0.7036918", "text": "public long[] timeTaken() {\n var seconds = SECONDS.between(getStart(), getEnd());\n var ms = MILLIS.between(getStart(), getEnd()) - 1000L * seconds;\n return new long[]{seconds, ms};\n }", "title": "" } ]
[ { "docid": "fda9e26becdd54e9abf4c7e448b553c7", "score": "0.66655564", "text": "public double getTimeSeconds()\n/* */ {\n/* 325 */ return this.timeMillis / 1000.0D;\n/* */ }", "title": "" }, { "docid": "eb850ba18146a43bb6d12ace01117ae1", "score": "0.65371776", "text": "public double getTotalTimeSeconds()\n/* */ {\n/* 215 */ return this.totalTimeMillis / 1000.0D;\n/* */ }", "title": "" }, { "docid": "19569de4421150314aa0e57009ac3235", "score": "0.65187496", "text": "Long analysisTimeSeconds();", "title": "" }, { "docid": "0f37ed229a622782fd15d7dd890fa6da", "score": "0.64989436", "text": "public static double getLatencyTime(){\r\n\t\t\tint size = Terminated_Queue.size();\r\n\t\t\tdouble[] latTimes = new double[size];\r\n\t\t\tfor (int i = 0; i < size; i++){\r\n\t\t\t\tlatTimes[i] = (double)Terminated_Queue.get(i).getLatency();\r\n\t\t\t}\r\n\t\t\tdouble latencyDev = standardDev(latTimes);\r\n\t\t\treturn latencyDev;\r\n\t\t}", "title": "" }, { "docid": "ff6df3cdb951e973ae10fd95a0161203", "score": "0.64074075", "text": "private static double calculateTime(TimeData ... results) {\n List<Instant> starts = Stream.of(results).map(res -> res.start).collect(toList());\n List<Instant> ends = Stream.of(results).map(res -> res.end).collect(toList());\n TimeData allThreads = new TimeData(Collections.min(starts), Collections.max(ends)); \n return allThreads.timeInSeconds();\n }", "title": "" }, { "docid": "659d60695567ed876d0eb1fd4268a99e", "score": "0.6388715", "text": "public double getElapsedTimeSeconds() {\n\t\treturn (double)(System.nanoTime() - t) / 1000000000.0;\n\t}", "title": "" }, { "docid": "cbfc0e47811098a507df76e0d121b967", "score": "0.6262203", "text": "Long getElapsedTime();", "title": "" }, { "docid": "44901a5657ec0610836945653661fa87", "score": "0.61570805", "text": "long getMsecs(int index);", "title": "" }, { "docid": "c1f7d41d5e294598916b5517833c7b20", "score": "0.6104812", "text": "public static double getResponseTime(){\r\n\t\t\tint size = Terminated_Queue.size();\r\n\t\t\tdouble[] resTimes = new double[size];\r\n\t\t\tfor (int i = 0; i < size; i++){\r\n\t\t\t\tresTimes[i] = (double)Terminated_Queue.get(i).getResponseTime();\r\n\t\t\t}\r\n\t\t\tdouble responseDev = standardDev(resTimes);\r\n\t\t\treturn responseDev;\r\n\t\t}", "title": "" }, { "docid": "5c9718c7496776c7efbd4bc61b60b839", "score": "0.6103385", "text": "int getTime2Runtime(int index);", "title": "" }, { "docid": "330d62fed61aac9b9274ea86e175b2d1", "score": "0.6033925", "text": "public double getTimeInSec()\n\t{\n\t\treturn ( end - start ) / 1000000000D;\n\t}", "title": "" }, { "docid": "c899241b4f979a1c9e861557fff4f63d", "score": "0.6016542", "text": "public static long msec(long t)\n/* */ {\n/* 46 */ return t / 1000L;\n/* */ }", "title": "" }, { "docid": "8a671e0ccf33f46fb276953b75c9ae0a", "score": "0.6002817", "text": "Long getTSecond();", "title": "" }, { "docid": "666ad8c46d170e870efe9cabd75796f0", "score": "0.5988751", "text": "long timeElapsed();", "title": "" }, { "docid": "01233ad0917cc4610dbd107ea376da0c", "score": "0.59720945", "text": "public native double get_comp_time();", "title": "" }, { "docid": "66f86e9360628067bac8124ba6d089bf", "score": "0.5967799", "text": "public float getTiming() { \n\t\treturn (float)((double)(end-start)/1000.0);\n\t}", "title": "" }, { "docid": "6d8b0a878d4471e4082f30ec56a79a65", "score": "0.596292", "text": "private long time() {\n\t\treturn System.nanoTime() - startTime;\n\t}", "title": "" }, { "docid": "144a9e323da78889f9dc07c7216d55ba", "score": "0.59567106", "text": "private long getTime(String[] time){\n long output;\n if(time.length == 3){\n output = Long.parseLong(time[0]) * 3600000;\n output += Long.parseLong(time[1]) * 60000;\n output += Long.parseLong(time[2]) * 1000;\n }\n else if(time.length == 2){\n output = Long.parseLong(time[0]) * 60000;\n output += Long.parseLong(time[1]) * 1000;\n }\n else{\n output = Long.parseLong(time[0]) * 1000;\n }\n\n return output;\n }", "title": "" }, { "docid": "6b1476e7ea8d9514cc1a9d63f1ea8915", "score": "0.59349924", "text": "public long computeTimeSpanUsec() {\n final int metaLen = packetStart.length;\n\n if (metaHead == metaTail) {\n // empty list\n return 0;\n }\n\n // head points to the next available node, so grab the previous one\n int beforeHead = (metaHead + metaLen - 1) % metaLen;\n return packetPtsUsec[beforeHead] - packetPtsUsec[metaTail];\n }", "title": "" }, { "docid": "9b16ca1c4f30739dbd63c39424766c47", "score": "0.59333104", "text": "public long getElapsedTime();", "title": "" }, { "docid": "34831cd6108eabfd06b1e0fad00eed91", "score": "0.592522", "text": "public int getMillis();", "title": "" }, { "docid": "e1865127a500b4848a64971ceab07319", "score": "0.5873802", "text": "long currentTimeMicros();", "title": "" }, { "docid": "e34cf5610401fb23318659863703f1de", "score": "0.5820597", "text": "private static double nano2seconds(long nanoTime){\n return (double)(nanoTime / 1_000_000_000.0);\n }", "title": "" }, { "docid": "c0b85ac11fa375726d22b5f06af4165f", "score": "0.58195764", "text": "public double time() {\n Vector url = new Vector();\n\n url.addElement(\"time\");\n url.addElement(\"0\");\n\n JSONArray response = _request(url);\n try {\n return (Double.parseDouble(response.get(0).toString()));\n } catch (JSONException ex) {\n ex.printStackTrace();\n }\n return 0;\n }", "title": "" }, { "docid": "e86d9a83467c57401f0c8966bc935482", "score": "0.5815147", "text": "public int millisecond() { return _millisecond; }", "title": "" }, { "docid": "e49d4ac595f4db90d4f1f6f18c7c1171", "score": "0.57873344", "text": "public double getTimeAsSeconds() \n {\n return TimeUnit.MILLISECONDS.convert(getTimeAsNanoseconds(), TimeUnit.NANOSECONDS) / 1000.0;\n }", "title": "" }, { "docid": "fbe838e99359854dc068cef4378524a6", "score": "0.5786935", "text": "public long totalSeconds() {\r\n if (this == ZERO) {\r\n return 0;\r\n }\r\n return (hours * 60L + minutes) * 60L + seconds + nanos / 1000000000L; // will not overflow\r\n }", "title": "" }, { "docid": "b3c790311c948952b2e79c0a20714366", "score": "0.5782175", "text": "public long getTime(TimeUnit timeUnit) {\n/* 357 */ return timeUnit.convert(getNanoTime(), TimeUnit.NANOSECONDS);\n/* */ }", "title": "" }, { "docid": "b5086b8c556ab585a7da1a842302e680", "score": "0.5780899", "text": "public double getTime(){\n return finalTime/1000;\n }", "title": "" }, { "docid": "8b299013a5b0182560f6668260beab1e", "score": "0.57771486", "text": "public int getSeconds();", "title": "" }, { "docid": "9bb14bddedd0c35e022b732760020a16", "score": "0.57586455", "text": "@SuppressWarnings({\n \"boxing\", \"unused\"\n })\n private static Long getElapsedTime(long time) {\n return (System.nanoTime() - time) / 1000000000;\n }", "title": "" }, { "docid": "2b3ef6d243c9d75d7d2467cf42e3f9dc", "score": "0.5757164", "text": "long getMicrosecondLength();", "title": "" }, { "docid": "c1ed843437785602e866696c1a172fde", "score": "0.574205", "text": "com.google.protobuf.Duration getTime();", "title": "" }, { "docid": "962e28be9d62a581f78cd2831313cf3e", "score": "0.5720019", "text": "TimeValue time();", "title": "" }, { "docid": "f30cc5431abedb15e1c1856fb21f2195", "score": "0.57056135", "text": "public long getElapsedTime() {\n\t\tlong elapsedTime = 0;\n\t\tlong curTime, prevTime;\n\t\tif (gpsList.size() < 2) {\n\t\t\treturn 0;\n\t\t}\n\t\t\n\t\tprevTime = gpsList.get(0).time;\n\t\tfor(int i = 0; i < gpsList.size(); i++) {\n\t\t\tcurTime = gpsList.get(i).time;\n\t\t\tif (!isPaused(prevTime, curTime)) {\n\t\t\t\telapsedTime += curTime - prevTime;\n\t\t\t}\n\t\t\tprevTime = curTime;\n\t\t}\n\t\treturn elapsedTime;\n\t}", "title": "" }, { "docid": "0053054ba61e6ec53d5a542497d3b5bc", "score": "0.5702061", "text": "int getTotalTime();", "title": "" }, { "docid": "bab88e18f4dee29ed39cca4bbcd56db7", "score": "0.5699497", "text": "public int getMilliseconds() {\n\t\treturn (int) (System.currentTimeMillis() - lstartTime);\n\t}", "title": "" }, { "docid": "0e918cfe56c38a45760cf3b05309b741", "score": "0.5699023", "text": "public int getSecond() {\n/* 637 */ return this.time.getSecond();\n/* */ }", "title": "" }, { "docid": "6a6677474e114bd72c4379955af8ee40", "score": "0.5683714", "text": "long getEventTime(int index);", "title": "" }, { "docid": "33f7018862c2943ad7b37f42c8cc208e", "score": "0.5668712", "text": "public double getTime();", "title": "" }, { "docid": "6298f84665dc40ab81d92124d9ce029e", "score": "0.56627744", "text": "public float calculeTimePerCicleMillis(int loops){\t\t\r\n\t\tfloat x = elapsedTime /(loops*nanosToMillis);\t\t\r\n\t\treturn Math.round(x*precisionMillis)/precisionMillis;\r\n\t}", "title": "" }, { "docid": "5cf45ebb172ac4d1e80b4aa054e1924a", "score": "0.5660995", "text": "private static String getTimeMillisForLog(Tuple t) {\n return Long.toString(t.getTimeMillis() - t.getTimeMillis() / 10000000 * 10000000);\n }", "title": "" }, { "docid": "c456a595d32374f93ffe565b5ded9cf2", "score": "0.56561476", "text": "private double getTmAverage(long[] stats) {\n double sum = 0;\n for (long stat : stats) {\n sum += stat;\n }\n return sum/stats.length;\n }", "title": "" }, { "docid": "b215be53eb61d8ea8711a70af97fb8a4", "score": "0.56510836", "text": "int getSampleMs();", "title": "" }, { "docid": "8a922c25258af79d1b21e07b5da36e32", "score": "0.56444544", "text": "long getCpuTimeInMegaCycles();", "title": "" }, { "docid": "a759ce881f7dc95df8191b970f85113c", "score": "0.564324", "text": "public long getTime()\n\t{\n\t\treturn (System.nanoTime() - initTime) / resolution;\n\t}", "title": "" }, { "docid": "4fda21afda67193d0617397f64363bd3", "score": "0.5627514", "text": "long getElapsedContainerMillis();", "title": "" }, { "docid": "47dff583f23f31a6555105131df9ec27", "score": "0.56030715", "text": "void timePassed(double dt);", "title": "" }, { "docid": "80946652b3675786b134da21a0187ae6", "score": "0.55922425", "text": "public long getTotalTimeMillis()\n/* */ {\n/* 208 */ return this.totalTimeMillis;\n/* */ }", "title": "" }, { "docid": "f9ea7933f70d6f90976695a656cfb24d", "score": "0.55774623", "text": "public long calculateElapsedTime()\n {\n long lastTime = System.nanoTime();\n long elapsedTime = lastTime - previousTime;\n previousTime = lastTime;\n\n measures.add(elapsedTime);\n count++;\n\n if(count>=frequency)\n {\n // calculate the average\n avg = average(measures);\n\n // empty the measurements lis\n measures.clear();\n\n // reset the counter\n count = 0;\n }\n\n return avg;\n\n }", "title": "" }, { "docid": "0f263f013b6411a336d1527b2af039be", "score": "0.5575988", "text": "public long getTime(){\n return (timerTime - (System.currentTimeMillis() - startTime))< 0 ? 0:timerTime - (System.currentTimeMillis() - startTime);\n }", "title": "" }, { "docid": "d8d29a836caf2d45dea4ed65f8ea553d", "score": "0.5532569", "text": "public long getTimeInSeconds(){\n long totalSeconds = elapsedTime / 1000;\n System.out.println(\"Aantal gewerkte seconden = \" + totalSeconds);\n return totalSeconds;\n }", "title": "" }, { "docid": "dab689f5fb35d916711c336f4d03290c", "score": "0.553192", "text": "public double getTime (LightRay input) {\n\t\tintersect (input);\n\t\treturn this.time;\n\t}", "title": "" }, { "docid": "92a8b0f087d3d038760ce7374bd7d6ef", "score": "0.5531528", "text": "int getTimeEstimated();", "title": "" }, { "docid": "ae1bb4c54b3dc9030c31095182245865", "score": "0.55309725", "text": "public long getMsecs(int index) {\n return msecs_.get(index);\n }", "title": "" }, { "docid": "21c913aed99593150cb3e2e24ab64bd8", "score": "0.55190104", "text": "double getTimeStep();", "title": "" }, { "docid": "654fcc2430cc26950965f7f1762189e7", "score": "0.55161685", "text": "public int getTimeTaken() {\n\t\tDate end = (endTime != null) ? endTime : new Date(); \n\t\treturn (int)((end.getTime() - startTime.getTime()) / 1000);\n\t}", "title": "" }, { "docid": "7e490e3e6dfe363d1c3a7431b2eab738", "score": "0.55131537", "text": "public static long sec(long t)\n/* */ {\n/* 37 */ return t / 1000000L;\n/* */ }", "title": "" }, { "docid": "5ae4531b534154eb9e7bf19898557377", "score": "0.54893386", "text": "public static long timeSorting(int[] array, StopWatch stopwatch) {\n stopwatch.start();\n InsertionSorter.sort(array);\n stopwatch.stop();\n return stopwatch.getElapsedTime();\n }", "title": "" }, { "docid": "bb82bf759df877e6176e15130cf663fa", "score": "0.5488751", "text": "long nowMilliseconds();", "title": "" }, { "docid": "6a323ea76669198f0bcf6c370af9eb9e", "score": "0.54832155", "text": "public long getMsecs(int index) {\n return msecs_.get(index);\n }", "title": "" }, { "docid": "91c07d641e80103197b995a4f41722a5", "score": "0.5482574", "text": "public float calculeTimePerCicleMicros(int loops){\t\t\r\n\t\tfloat x = elapsedTime /(loops*nanosToMicros);\t\t\r\n\t\treturn Math.round(x*precisionMicros)/precisionMicros;\r\n\t}", "title": "" }, { "docid": "3068a12f261372e34af421863578aa1f", "score": "0.5463902", "text": "public double timeInSeconds() {\n return Duration.between(start, end).toMillis() / 1000.0;\n }", "title": "" }, { "docid": "3463d9d93672d12d02b74027911eaaab", "score": "0.5457654", "text": "public static float getFrameTime() {\n\t\treturn timeSinceLast * 1f;\n\t}", "title": "" }, { "docid": "c2fc46a7d0679776fd04779d1b1057d2", "score": "0.5455899", "text": "public double getIntervalTime(int i) {\n if (!intervalsKnown) {\n calculateIntervals();\n }\n return times[indices[i]];\n }", "title": "" }, { "docid": "c6c518b78c4ff5dbd87d932a139fec30", "score": "0.54533035", "text": "private void recordTimeDiff() {\n long ts = SystemClock.elapsedRealtimeNanos();\n long diff = 0;\n\n if (0 == mStartTS) {\n Log.w (TAG, \"Tried to record time stamp when timing not started\");\n\n } else {\n diff = ts - mStartTS;\n\n mTimeDiffs[mDiffsIndex] = diff;\n //Log.d(TAG, \"recording time difff: \" + mTimeDiffs[mDiffsIndex]);\n ++mDiffsIndex;\n\n }\n\n }", "title": "" }, { "docid": "62d3a502c1cf8b8c76916686ec894c86", "score": "0.5452799", "text": "@Test\r\n public void testgetwaitTime()\r\n {\n Customer c = new Customer(5, 0.0);\r\n //call getserveTime--should return 0.0\r\n double time = c.getwaitTime();\r\n \r\n //compare a Theoretical array with an actual Array by casting time to an int\r\n int [] Theoretical = {0};\r\n int [] Actual = {(int)time};\r\n assertArrayEquals(Actual, Theoretical);\r\n }", "title": "" }, { "docid": "77da7e5446d8650ef3cd9dc9f162fe59", "score": "0.5430992", "text": "public static long elapsed()\r\n\t{\r\n\t\treturn (new aDate()).differenceToMS(date);\r\n\t}", "title": "" }, { "docid": "44cc928355b5d0ec7f5415b95f4d2610", "score": "0.5421346", "text": "@Test\r\n\tpublic void testTime() {\r\n\t\t\r\n\t\tRandom random = new Random();\r\n\t\t\r\n\t\tint[] a = new int[100000000];\r\n\t\ta = random.ints(100000000, 0, 100000000).toArray();\r\n\r\n\t\tint[] b = new int[100000000];\r\n\r\n\t\tSystem.arraycopy(a, 0, b, 0, 100000000);\r\n\r\n\t\tdouble repeated1Start = System.currentTimeMillis();\r\n\t\tQuestion1.repeatedNumber1(a);\r\n\t\tdouble repeated1End = System.currentTimeMillis();\r\n\t\tdouble repeated1Time = repeated1End - repeated1Start;\r\n\r\n\t\t// int[] b = {2,3,1,0,4,5,8};\r\n\t\tdouble repeated2Start = System.currentTimeMillis();\r\n\t\tQuestion1.repeatedNumber2(b);\r\n\t\tdouble repeated2End = System.currentTimeMillis();\r\n\t\tdouble repeated2Time = repeated2End - repeated2Start;\r\n\r\n\t\tSystem.out.println(repeated1Time);\r\n\t\tSystem.out.println(repeated2Time);\r\n\t}", "title": "" }, { "docid": "12c66b32651d9d7744ad806393d796da", "score": "0.53803164", "text": "public int getSecs() {\r\n\t\treturn secs;\r\n\t}", "title": "" }, { "docid": "34066a88772fa7f5930aa7d148d26932", "score": "0.5377922", "text": "public long getTotalTime() {\n return getTotalMeasurement();\n }", "title": "" }, { "docid": "02958eab6f8689dc0baa3339c27072cc", "score": "0.5374042", "text": "int getTime2RuntimeCount();", "title": "" }, { "docid": "e07a6db9007c7d883f3c4ca7fd491643", "score": "0.5373136", "text": "public int getElapsedTime() {\r\n return (int) (lastEventTime - startTime);\r\n }", "title": "" }, { "docid": "0f9f99ab93a4d6725a64e0ebf5f1524f", "score": "0.5372209", "text": "public long getTime() {\n/* 337 */ return getNanoTime() / 1000000L;\n/* */ }", "title": "" }, { "docid": "074ad62e071438fb63815b0ddd2f0af9", "score": "0.5367398", "text": "public long getTimeDifference() {\n return nanoToMili(diffies);\n }", "title": "" }, { "docid": "4132331d0252d0b0d124cabb6a81e6b5", "score": "0.5344825", "text": "public double getTime(){\n\t\treturn time;\n\t}", "title": "" }, { "docid": "7138684a9fdb008164c8e808eaf55475", "score": "0.53439426", "text": "@Test public void testFormatElapsedTime() {\r\n long oneSecond = DateUtils.MILLISECONDS_PER_SECOND;\r\n long twoSeconds = DateUtils.MILLISECONDS_PER_SECOND * 2;\r\n long oneMinute = DateUtils.MILLISECONDS_PER_MINUTE;\r\n long tenMinutes = DateUtils.MILLISECONDS_PER_MINUTE * 10;\r\n long elevenMinutes = DateUtils.MILLISECONDS_PER_MINUTE * 11;\r\n long oneHour = DateUtils.MILLISECONDS_PER_HOUR;\r\n long tenHours = DateUtils.MILLISECONDS_PER_HOUR * 10;\r\n long oneDay = DateUtils.MILLISECONDS_PER_DAY;\r\n\r\n assertEquals(\"00:00:00,001\", DateUtils.formatElapsedTime(1));\r\n assertEquals(\"00:00:00,002\", DateUtils.formatElapsedTime(2));\r\n assertEquals(\"00:00:00,999\", DateUtils.formatElapsedTime(oneSecond - 1));\r\n assertEquals(\"00:00:01,000\", DateUtils.formatElapsedTime(oneSecond));\r\n assertEquals(\"00:00:01,001\", DateUtils.formatElapsedTime(oneSecond + 1));\r\n assertEquals(\"00:00:01,002\", DateUtils.formatElapsedTime(oneSecond + 2));\r\n assertEquals(\"00:00:02,000\", DateUtils.formatElapsedTime(twoSeconds));\r\n assertEquals(\"00:00:59,999\", DateUtils.formatElapsedTime(oneMinute - 1));\r\n assertEquals(\"00:01:00,000\", DateUtils.formatElapsedTime(oneMinute));\r\n assertEquals(\"00:01:00,001\", DateUtils.formatElapsedTime(oneMinute + 1));\r\n assertEquals(\"00:01:01,001\", DateUtils.formatElapsedTime(oneMinute + oneSecond + 1));\r\n assertEquals(\"00:09:59,999\", DateUtils.formatElapsedTime(tenMinutes - 1));\r\n assertEquals(\"00:10:00,000\", DateUtils.formatElapsedTime(tenMinutes));\r\n assertEquals(\"00:10:59,999\", DateUtils.formatElapsedTime(elevenMinutes - 1));\r\n assertEquals(\"00:59:59,999\", DateUtils.formatElapsedTime(oneHour - 1));\r\n assertEquals(\"01:00:00,000\", DateUtils.formatElapsedTime(oneHour));\r\n assertEquals(\"01:00:00,001\", DateUtils.formatElapsedTime(oneHour + 1));\r\n assertEquals(\"09:59:59,999\", DateUtils.formatElapsedTime(tenHours - 1));\r\n assertEquals(\"10:00:00,000\", DateUtils.formatElapsedTime(tenHours));\r\n assertEquals(\"10:00:00,001\", DateUtils.formatElapsedTime(tenHours + 1));\r\n assertEquals(\"23:59:59,999\", DateUtils.formatElapsedTime(oneDay - 1));\r\n assertEquals(\"1 day 00:00:00,000\", DateUtils.formatElapsedTime(oneDay));\r\n assertEquals(\"1 day 00:00:00,001\", DateUtils.formatElapsedTime(oneDay + 1));\r\n assertEquals(\"2 days 00:00:12,222\", DateUtils.formatElapsedTime((oneDay * 2) + 12222));\r\n }", "title": "" }, { "docid": "5783320f3cacd50f061fa16b6a8d4eac", "score": "0.53437215", "text": "public long getTimeAsNanoseconds()\n {\n return now() - startTime;\n }", "title": "" }, { "docid": "57e1e796bd85c4794c7d1462a118f4fd", "score": "0.5325791", "text": "public int computeTotalTime(ArrayList<Talk> input_talks) {\n\t\tint total = 0;\n\t\tfor(Talk tk : input_talks){\n\t\t\ttotal+=tk.getDuration();\n\t\t}\n\t\treturn total;\n\t}", "title": "" }, { "docid": "ff09c02b04bec8178217466560bc60f2", "score": "0.5322963", "text": "public long getElapsedTime() {\n return (this.completedIntervals * this.m_pollIntervalInMillis);\n }", "title": "" }, { "docid": "086d5549579c4b0d3fcf7f29eee463c4", "score": "0.532229", "text": "void timePassed();", "title": "" }, { "docid": "086d5549579c4b0d3fcf7f29eee463c4", "score": "0.532229", "text": "void timePassed();", "title": "" }, { "docid": "54895311518593ccc65af76a4e902bec", "score": "0.5320433", "text": "public int getTime2();", "title": "" }, { "docid": "1809c7ff32fa4296d001b40f78cab3e6", "score": "0.5315482", "text": "public double getRuntime() {\n final double NANOSECONDS_PER_SECOND = TimeUnit.SECONDS.toNanos(1);\n return (System.nanoTime() - startTime) / NANOSECONDS_PER_SECOND;\n }", "title": "" }, { "docid": "31c3e8414e9bcb043b1edebe4b259df5", "score": "0.5314913", "text": "private String timeStringFromMiliSec(int ms){\n int duration_s = ms / 1000;\n int sec = duration_s % 60;\n int min = duration_s / 60;\n String elapsed = \"\";\n elapsed += (min < 10) ? \"0\" + min : min;\n elapsed += \":\";\n elapsed += (sec < 10) ? \"0\" + sec : sec;\n return elapsed;\n }", "title": "" }, { "docid": "ea6bef08f9737529abe91cb568bcf4f6", "score": "0.5313234", "text": "long startTime();", "title": "" }, { "docid": "3019919820c6653521aed30ef1cbb6ef", "score": "0.530876", "text": "public int toMilliseconds() {\n return (this._hour * 60 * 60 * 1000) +\n (this._minute * 60 * 1000) +\n (this._second * 1000) +\n this._millisecond;\n }", "title": "" }, { "docid": "7f93dfca76fce5d96694c9b59dcd3ffb", "score": "0.5301649", "text": "public long getTimeMillis()\n/* */ {\n/* 318 */ return this.timeMillis;\n/* */ }", "title": "" }, { "docid": "ce240f81ed1bcb6000d369e1c335290d", "score": "0.53002703", "text": "private static int secToMilliseconds(final int seconds) {\n return seconds * 1000;\n }", "title": "" }, { "docid": "4fc6b7822aeb00f6ecd2de9448048a61", "score": "0.5299147", "text": "public double getTime(){\n\t\treturn player.getDuration().getSeconds();\n\t}", "title": "" }, { "docid": "aa0fd5e036d5f1f0098d330c55194f96", "score": "0.5285851", "text": "public int waitTime(int current_time, int arr_time) { \n\n wait_time = current_time - arr_time; \n\n return wait_time; \n }", "title": "" }, { "docid": "9d5e4d9ac7169aa44185418c938648fa", "score": "0.5284415", "text": "public long getTime() {\n if (stopTime == -1) {\n if (startTime == -1) {\n return 0;\n }\n return (System.currentTimeMillis() - this.startTime);\n }\n return (this.stopTime - this.startTime);\n }", "title": "" }, { "docid": "7be08a00701ac43e55d3cc1d45b6fff2", "score": "0.52843076", "text": "public double getTime() { return mTime; }", "title": "" }, { "docid": "dba8683b8b7519aa6e93a7ef4518950c", "score": "0.5279601", "text": "public static long getElapsedTime(){\r\n long result = System.currentTimeMillis() - Timer.baseTime;\r\n return result;\r\n }", "title": "" }, { "docid": "fdc56acd2124a388bd18363ab4262839", "score": "0.5267191", "text": "public static long minuteBytesToMs(byte[] bytes) {\n long mins = (bytes[0] & 0xFF) | ((bytes[1] & 0xFF) << 8) | ((bytes[2] & 0x7F) << 16);\n return TimeUnit.MINUTES.toMillis(mins) + START_DATE;\n }", "title": "" }, { "docid": "3a0bbaa191d1a7a4c0643b363d4ac244", "score": "0.52635896", "text": "public long predictTime() \r\n\t{\r\n\t\treturn time;\r\n\t}", "title": "" }, { "docid": "ce97b2bcb09e731ed3c8a4e887bc2fb0", "score": "0.52542436", "text": "public int getPlayTimeSeconds() {\n\t\tint totalTime = 0; \n\t\tfor (Playable items : playableList) {\n\t\t\tif(items instanceof Playable) {\n\t\t\t\ttotalTime += items.getPlayTimeSeconds();\n\t\t\t}\n\t\t}\n\t\treturn totalTime;\n\t}", "title": "" }, { "docid": "0a30760bf60a130c72baf7e7dc3b482a", "score": "0.52516353", "text": "public long getElapsedTime(){\r\n return endTime - startTime;\r\n }", "title": "" }, { "docid": "7807968a6732629ab0b4a78389d96d9e", "score": "0.5250971", "text": "public double getTime() {\r\n\t\treturn time;\r\n\t}", "title": "" }, { "docid": "79fa37a0e1c4ebf5d2c2d919fc0315c0", "score": "0.5250483", "text": "public int getTime() {\n\t\tlong startTimeSeconds = this.startTime / 1000;\n\t\tlong timePassedBeforePauseSeconds = this.timePassedBeforePause / 1000;\n\t\tlong currentTimeSeconds = System.currentTimeMillis() / 1000;\n\t\tif (this.isRunning())\n\t\t\treturn (int) (timePassedBeforePauseSeconds + currentTimeSeconds - startTimeSeconds);\n\t\telse\n\t\t\treturn (int) timePassedBeforePauseSeconds;\n\t}", "title": "" } ]
16dd4fd12792baa710919b79aa50c0fc
Gets the invoice summary collection operations.
[ { "docid": "1394e037ed8e8b66445aff8b05e4f23d", "score": "0.69967514", "text": "IInvoiceSummaryCollection getSummaries();", "title": "" } ]
[ { "docid": "83a4b983bd9c3bc0545ee45e2e609420", "score": "0.66821396", "text": "IInvoiceSummary getSummary();", "title": "" }, { "docid": "c9068f7f44533933c7843daf8f2b0d5c", "score": "0.6579156", "text": "public com.sforce.soap._2006._04.metadata.SummaryOperations getSummaryOperation() {\r\n return summaryOperation;\r\n }", "title": "" }, { "docid": "06c5b2e64d13748c72c3959b7bc1d71b", "score": "0.61589706", "text": "public static java.util.Collection getOperationDescs() {\n return _myOperationsList;\n }", "title": "" }, { "docid": "06c5b2e64d13748c72c3959b7bc1d71b", "score": "0.61589706", "text": "public static java.util.Collection getOperationDescs() {\n return _myOperationsList;\n }", "title": "" }, { "docid": "06c5b2e64d13748c72c3959b7bc1d71b", "score": "0.61589706", "text": "public static java.util.Collection getOperationDescs() {\n return _myOperationsList;\n }", "title": "" }, { "docid": "06c5b2e64d13748c72c3959b7bc1d71b", "score": "0.61589706", "text": "public static java.util.Collection getOperationDescs() {\n return _myOperationsList;\n }", "title": "" }, { "docid": "06c5b2e64d13748c72c3959b7bc1d71b", "score": "0.61589706", "text": "public static java.util.Collection getOperationDescs() {\n return _myOperationsList;\n }", "title": "" }, { "docid": "4c1aa3d739b9d617850d122822f8c4ad", "score": "0.5893823", "text": "public List<Summary> getAllSummaries();", "title": "" }, { "docid": "a7cad2d6f5822f3e99246d13549509c7", "score": "0.5884418", "text": "@Nonnull\n ImmutableSet<Operation> getOperations();", "title": "" }, { "docid": "8105e77c9724172e77d40315ca5c6cf7", "score": "0.57694864", "text": "public OperationsInner operations() {\n return this.operations;\n }", "title": "" }, { "docid": "30a0d03a9b2ca9c483274dd74e9d4b66", "score": "0.56622416", "text": "String getSummary();", "title": "" }, { "docid": "bb7a14d5086bbc2abb39376f04ea97f9", "score": "0.56522506", "text": "List<Map<String, OperationStats>> getOperationsStats();", "title": "" }, { "docid": "6a947c445ef08f860600ffbf0be20355", "score": "0.5615392", "text": "public Collection<AbstractOperation> getOpsSet() {\r\n\t\treturn diff(this.getAddSet(), this.getRemSet());\r\n\t}", "title": "" }, { "docid": "fb177217372692a6ffe61cd4a151ba18", "score": "0.56141436", "text": "OperationsClient getOperations();", "title": "" }, { "docid": "fb177217372692a6ffe61cd4a151ba18", "score": "0.56141436", "text": "OperationsClient getOperations();", "title": "" }, { "docid": "1cd95097386401face3672a3143f0359", "score": "0.5614056", "text": "@Override\n\tpublic String getOperations() {\n\t\treturn _importHistoric.getOperations();\n\t}", "title": "" }, { "docid": "fa206366728237b7d52d1e98c23377de", "score": "0.5603321", "text": "java.lang.String getSummary();", "title": "" }, { "docid": "aaf65c97b527250f1f9b2780fbcba223", "score": "0.5515167", "text": "protected abstract SummarySetOperations<S> getSummarySetOperationsForIterate(Object[] data);", "title": "" }, { "docid": "1f41ac215fc2038272a41ddda1b45808", "score": "0.54914695", "text": "public synchronized List<Operation> operations() {\n\t\treturn operations;\n\t}", "title": "" }, { "docid": "9f04f34a21c6956e71ff93b30b0e9294", "score": "0.5408746", "text": "String getSummary(CodegenOperation codegenOperation) {\n String ret = null;\n\n if(codegenOperation.summary != null) {\n ret = codegenOperation.summary;\n } else if (codegenOperation.operationId != null) {\n ret = codegenOperation.operationId;\n } else {\n ret = codegenOperation.httpMethod;\n }\n return ret;\n }", "title": "" }, { "docid": "83f57a40906c388f72093037b3ca7d77", "score": "0.5400773", "text": "public interface IInvoiceCollection\n extends IPartnerComponentString, IEntityCollectionRetrievalOperations<Invoice, ResourceCollection<Invoice>>,\n IEntitySelector<String, IInvoice>\n{\n /**\n * Gets the available estimate operations.\n * \n * @return THe available estimate operations.\n */\n IEstimateCollection getEstimates();\n\n /**\n * Gets the partner's current account balance.\n * \n * @return invoice summary operations.\n */\n IInvoiceSummary getSummary();\n \n /**\n * Gets the invoice summary collection operations.\n * \n * @return The invoice summary collection operations.\n */\n IInvoiceSummaryCollection getSummaries();\n\n /**\n * Gets a single invoice operations.\n * \n * @param invoiceId The invoice id.\n * @return The invoice operations.\n */\n IInvoice byId(String invoiceId);\n \n /**\n * Gets all the invoices.\n * @return The invoices.\n */\n ResourceCollection<Invoice> get();\n \n /**\n * Queries invoices associated to the partner.\n * @param query The query.\n * @return The invoices.\n */\n ResourceCollection<Invoice> query(IQuery query);\n}", "title": "" }, { "docid": "07c157452effaee77350a33bddb8d591", "score": "0.5391451", "text": "ResourceCollection<Invoice> get();", "title": "" }, { "docid": "20ff981278f4f1b14356d6d98465033b", "score": "0.5361891", "text": "@GET\n\t\t\t@Path(\"/{id}/summary\")\n\t\t\t@Produces({\"application/xml\"})\n\t\t\tpublic Rows getLaunchimageSummaryRows() {\n\t\t\t\tRows rows = null;\n\t\t\t\ttry {\n\t\t\t\t\trows=new LaunchimageDao(uriInfo,header).getLaunchimageSummaryRows();\n\t\t\t\t} catch (AuthenticationException e) {\n\t\t\t\t\t rows=new TemplateUtility().getFailedMessage(e.getMessage());\n\t\t\t\t\t e.printStackTrace();\n\t\t\t\t} catch (Exception ex) {\n\t\t\t\t\tlogger.info( \"Error calling getLaunchimageRows()\"+ ex.getMessage());\n\t\t\t\t\t ex.printStackTrace();\n\t\t\t\t}\n\t\t\t\treturn rows;\n\t\t\t}", "title": "" }, { "docid": "3bb756988358d34b186da5fc36994e73", "score": "0.5361207", "text": "ListIterable<Operation<Handler>> getOperations();", "title": "" }, { "docid": "c6dae1d716683bd09d079e919ccc00ca", "score": "0.5354846", "text": "@GET\n\t\t\t@Path(\"/{id}/summary\")\n\t\t\t@Produces({\"application/xml\"})\n\t\t\tpublic Rows getPoorderinfoSummaryRows() {\n\t\t\t\tRows rows = null;\n\t\t\t\ttry {\n\t\t\t\t\trows=new PoorderinfoDao(uriInfo,header).getPoorderinfoSummaryRows();\n\t\t\t\t} catch (AuthenticationException e) {\n\t\t\t\t\t rows=new TemplateUtility().getFailedMessage(e.getMessage());\n\t\t\t\t\t e.printStackTrace();\n\t\t\t\t} catch (Exception ex) {\n\t\t\t\t\tlogger.info( \"Error calling getPoorderinfoRows()\"+ ex.getMessage());\n\t\t\t\t\t ex.printStackTrace();\n\t\t\t\t}\n\t\t\t\treturn rows;\n\t\t\t}", "title": "" }, { "docid": "8e0a87e1335d58a76c02dd273627bc74", "score": "0.5348123", "text": "protected abstract SummarySetOperations<S> getSummarySetOperationsForMerge(Object data);", "title": "" }, { "docid": "62d74532a8bc5d9df236a16ca7f379aa", "score": "0.5344909", "text": "public String GetSummary()\n {\n return \"\";\n }", "title": "" }, { "docid": "e4f2ff3e5e5fd98de782d581f31c7ec5", "score": "0.5283442", "text": "@java.lang.Override\n public int getIops() {\n return iops_;\n }", "title": "" }, { "docid": "e345a24af53e88dbb657348394b090c5", "score": "0.52742124", "text": "public ItemSummaryIfc getItemSummaryInstance()\n {\n return getItemSummaryInstance(getLocale());\n }", "title": "" }, { "docid": "6eddf3dae6c1b964e442cc2313b85350", "score": "0.5263779", "text": "@java.lang.Override\n public int getIops() {\n return iops_;\n }", "title": "" }, { "docid": "34e55249b4a064a9fa898073d5237190", "score": "0.52624625", "text": "public String toString() {\n return toSummaryString();\n }", "title": "" }, { "docid": "892f9b26a74cb826e376b37b9fa74d33", "score": "0.5254742", "text": "@Nonnull\n public com.microsoft.graph.security.requests.CaseOperationCollectionRequestBuilder operations() {\n return new com.microsoft.graph.security.requests.CaseOperationCollectionRequestBuilder(getRequestUrlWithAdditionalSegment(\"operations\"), getClient(), null);\n }", "title": "" }, { "docid": "5072ec8fee374c46d2503a8ba1d065be", "score": "0.52321106", "text": "@Override\r\n\tpublic String getSummary() {\n\t\treturn summary;\r\n\t}", "title": "" }, { "docid": "66ffbbebfea4d6964f2e169e2852a05a", "score": "0.5223739", "text": "public List<SiacDBilStatoOp> getSiacDBilStatoOps() {\n\t\treturn this.siacDBilStatoOps;\n\t}", "title": "" }, { "docid": "025295d38d6379e6a187b864fa848c8d", "score": "0.52137744", "text": "public synchronized Iterator<Operation> operationsIterator() {\n\t\treturn operations.iterator();\n\t}", "title": "" }, { "docid": "250a5666644c7215573d136482a9af85", "score": "0.5195311", "text": "public java.lang.String getSummary() {\n return summary;\n }", "title": "" }, { "docid": "af6ce17fefd5c02d1eeac1728212d237", "score": "0.51934344", "text": "public List<SiacRBilStatoOp> getSiacRBilStatoOps() {\n\t\treturn this.siacRBilStatoOps;\n\t}", "title": "" }, { "docid": "94da044ce0d5788675562cf6709855c4", "score": "0.51829904", "text": "public java.lang.String getSummary() {\n return summary;\n }", "title": "" }, { "docid": "d0fd0930a3f0931b1d53bc03dbdd8ffb", "score": "0.51779425", "text": "public List<TypeOperation> getAllTypeOperation();", "title": "" }, { "docid": "9a75e6274b55db5c7761c348264d066a", "score": "0.5153326", "text": "@AutoEscape\n\tpublic String getSummary();", "title": "" }, { "docid": "1bb57707093677179238911c003f79a5", "score": "0.5149476", "text": "@GET\n\t\t\t@Path(\"/{id}/summary\")\n\t\t\t@Produces({\"application/xml\"})\n\t\t\tpublic Rows getBudgetSummaryRows() {\n\t\t\t\tRows rows = null;\n\t\t\t\ttry {\n\t\t\t\t\trows=new BudgetDao(uriInfo,header).getBudgetSummaryRows();\n\t\t\t\t} catch (AuthenticationException e) {\n\t\t\t\t\t rows=new TemplateUtility().getFailedMessage(e.getMessage());\n\t\t\t\t\t e.printStackTrace();\n\t\t\t\t} catch (Exception ex) {\n\t\t\t\t\tlogger.info( \"Error calling getBudgetRows()\"+ ex.getMessage());\n\t\t\t\t\t ex.printStackTrace();\n\t\t\t\t}\n\t\t\t\treturn rows;\n\t\t\t}", "title": "" }, { "docid": "47461d108d9f600042b1c9e3aacdc5fd", "score": "0.51490194", "text": "public SystemStatisticsSystemStatistics get_iiop_statistics() throws java.rmi.RemoteException {\n if (super.cachedEndpoint == null) {\n throw new org.apache.axis.NoEndPointException();\n }\n org.apache.axis.client.Call _call = createCall();\n _call.setOperation(_operations[51]);\n _call.setUseSOAPAction(true);\n _call.setSOAPActionURI(\"urn:iControl:System/Statistics\");\n _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);\n _call.setOperationName(new javax.xml.namespace.QName(\"urn:iControl:System/Statistics\", \"get_iiop_statistics\"));\n\n setRequestHeaders(_call);\n setAttachments(_call);\n try { Object _resp = _call.invoke(new Object[] {});\n\n if (_resp instanceof java.rmi.RemoteException) {\n throw (java.rmi.RemoteException)_resp;\n }\n else {\n extractAttachments(_call);\n try {\n return (SystemStatisticsSystemStatistics) _resp;\n } catch (Exception _exception) {\n return (SystemStatisticsSystemStatistics) org.apache.axis.utils.JavaUtils.convert(_resp, SystemStatisticsSystemStatistics.class);\n }\n }\n } catch (org.apache.axis.AxisFault axisFaultException) {\n throw axisFaultException;\n}\n }", "title": "" }, { "docid": "cd161e6b57b453d30e7f130210f6281d", "score": "0.51414347", "text": "public String toString () \n\t{\n\t\t\n\t\treturn operationsPerformed;\n\t\t\n \t}", "title": "" }, { "docid": "9678dda1eb5381ff514a35abb6f3351c", "score": "0.5138193", "text": "public String getSummary() {\n\t\treturn (String) get_Value(\"Summary\");\n\t}", "title": "" }, { "docid": "3bdc179dc385bc4c72efef3903400b94", "score": "0.5124078", "text": "public cn.edu.nju.software.fabricservice.protomsg.Persistence.OpsStatusOrBuilder getOpsStatusOrBuilder() {\n return getOpsStatus();\n }", "title": "" }, { "docid": "df73e08e9f4c1a0d86425b56d235dfcb", "score": "0.5121956", "text": "public String orderSummary() {\n return this.burgerBuilder.getBurger().orderSummary();\n }", "title": "" }, { "docid": "0e84e1a36feb7710ce052ec7bbb494c8", "score": "0.511899", "text": "public String getSummary() {\n\t\treturn \"\";\n\t}", "title": "" }, { "docid": "b6f7581e90bfaa61d19ea528a1b0a738", "score": "0.5101921", "text": "public String getSummary() {\n return summary;\n }", "title": "" }, { "docid": "b6f7581e90bfaa61d19ea528a1b0a738", "score": "0.5101921", "text": "public String getSummary() {\n return summary;\n }", "title": "" }, { "docid": "30095fb99129c32f93b51ffc32e4f930", "score": "0.509951", "text": "public String getSummary() {\n return this.summary;\n }", "title": "" }, { "docid": "121f87cfdd7cb379e3c4e598dd8f0358", "score": "0.50814843", "text": "public cn.edu.nju.software.fabricservice.protomsg.Persistence.OpsStatus getOpsStatus() {\n return opsStatus_ == null ? cn.edu.nju.software.fabricservice.protomsg.Persistence.OpsStatus.getDefaultInstance() : opsStatus_;\n }", "title": "" }, { "docid": "b3a685719e5b6b20e6fecb0b969d7bf0", "score": "0.5073901", "text": "public TransactionSummaryIfc getTransactionSummaryInstance()\n {\n return getTransactionSummaryInstance(getLocale());\n }", "title": "" }, { "docid": "744ced8c8ed98b41dc9f4b028a57fe68", "score": "0.5071587", "text": "public String getSummary() {return \"\";}", "title": "" }, { "docid": "033d092f8c59ff2f2ae01c7287a7835c", "score": "0.5059014", "text": "public List<OpToPerform> getOperationsToPerform() {\r\n\t\treturn _operationsList;\r\n\t}", "title": "" }, { "docid": "32a3fb5198437201926f477f84636f24", "score": "0.5048363", "text": "public cn.edu.nju.software.fabricservice.protomsg.Persistence.OpsStatus getOpsStatus() {\n if (opsStatusBuilder_ == null) {\n return opsStatus_ == null ? cn.edu.nju.software.fabricservice.protomsg.Persistence.OpsStatus.getDefaultInstance() : opsStatus_;\n } else {\n return opsStatusBuilder_.getMessage();\n }\n }", "title": "" }, { "docid": "0afcb396f98e739ae961ffd7bdf410b0", "score": "0.5034836", "text": "public com.sforce.soap._2006._04.metadata.FilterItem[] getSummaryFilterItems() {\r\n return summaryFilterItems;\r\n }", "title": "" }, { "docid": "d2b80db2bccd5a8ba7eddadb2cde14ed", "score": "0.5031119", "text": "@GET\n\t\t\t@Path(\"/{id}/summary\")\n\t\t\t@Produces({\"application/xml\"})\n\t\t\tpublic Rows getQrinfoSummaryRows() {\n\t\t\t\tRows rows = null;\n\t\t\t\ttry {\n\t\t\t\t\trows=new QrinfoDao(uriInfo,header).getQrinfoSummaryRows();\n\t\t\t\t} catch (AuthenticationException e) {\n\t\t\t\t\t rows=new TemplateUtility().getFailedMessage(e.getMessage());\n\t\t\t\t\t e.printStackTrace();\n\t\t\t\t} catch (Exception ex) {\n\t\t\t\t\tlogger.info( \"Error calling getQrinfoRows()\"+ ex.getMessage());\n\t\t\t\t\t ex.printStackTrace();\n\t\t\t\t}\n\t\t\t\treturn rows;\n\t\t\t}", "title": "" }, { "docid": "b4a5f34191bba5739c9b4e3cd6bc08ca", "score": "0.50294185", "text": "public String getSummary() {\r\n return getName();\r\n }", "title": "" }, { "docid": "38c5a42b22161c8bcacb40ba3e9de243", "score": "0.50196505", "text": "java.lang.String getOperation();", "title": "" }, { "docid": "38c5a42b22161c8bcacb40ba3e9de243", "score": "0.50196505", "text": "java.lang.String getOperation();", "title": "" }, { "docid": "768095eb605cf249f5ec605314c1aa6f", "score": "0.4988454", "text": "public List<SiacRBilTipoStatoOp> getSiacRBilTipoStatoOps() {\n\t\treturn this.siacRBilTipoStatoOps;\n\t}", "title": "" }, { "docid": "44e58ec744731a19646e851abbc05ce2", "score": "0.4983003", "text": "public List<VMTypes.Summary> list() {\n return null;\n }", "title": "" }, { "docid": "b1652be5382b2e04a790d3284ee34c14", "score": "0.495806", "text": "public String getSummary() {\r\n\t\t// TODO This method is not implemented yet.\r\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "d20118e3269479d849cf27e8abac7a22", "score": "0.49244866", "text": "com.google.protobuf.ByteString\n getSummaryBytes();", "title": "" }, { "docid": "e5866a58a68ece1d1e502209b79dd331", "score": "0.49229598", "text": "@Transactional(readOnly = true)\n public List<OperationDTO> findAll() {\n log.debug(\"Request to get all Operations\");\n return operationRepository.findAll().stream()\n .map(operationMapper::toDto)\n .collect(Collectors.toCollection(LinkedList::new));\n }", "title": "" }, { "docid": "5a0498f0379f2bb20649840c454f0860", "score": "0.49217665", "text": "public static java.util.List getOperationDescByName(String methodName) {\n return (java.util.List)_myOperations.get(methodName);\n }", "title": "" }, { "docid": "435c8fc6b55194513e199307b1973137", "score": "0.4916035", "text": "public String[] getSummaryHeaders() {\r\n return null;\r\n }", "title": "" }, { "docid": "e8862637a973b7f0c308de352dcb376b", "score": "0.49025986", "text": "public Vector<ProductTerm> getCovers()\r\n\t{\r\n\t\treturn covers;\r\n\t}", "title": "" }, { "docid": "c3e8defadfd0ffe30529340691775b10", "score": "0.49014628", "text": "Collection<PointOfInterest> getAllPOIs();", "title": "" }, { "docid": "3d4302a7c1f3b838b0dae8e3922931d7", "score": "0.4895392", "text": "public OperationsDefinitionDisplay display() {\n return this.innerProperties() == null ? null : this.innerProperties().display();\n }", "title": "" }, { "docid": "61d338fecc4dce55ac38627f50b6373e", "score": "0.48948163", "text": "public StrColumn getSummary() {\n return delegate.getColumn(\"summary\", DelegatingStrColumn::new);\n }", "title": "" }, { "docid": "61d338fecc4dce55ac38627f50b6373e", "score": "0.48948163", "text": "public StrColumn getSummary() {\n return delegate.getColumn(\"summary\", DelegatingStrColumn::new);\n }", "title": "" }, { "docid": "e86993a9395233238eb9bcad539ed7eb", "score": "0.4892077", "text": "public static java.util.List getOperationDescByName(java.lang.String methodName) {\n return (java.util.List)_myOperations.get(methodName);\n }", "title": "" }, { "docid": "e86993a9395233238eb9bcad539ed7eb", "score": "0.4892077", "text": "public static java.util.List getOperationDescByName(java.lang.String methodName) {\n return (java.util.List)_myOperations.get(methodName);\n }", "title": "" }, { "docid": "e86993a9395233238eb9bcad539ed7eb", "score": "0.4892077", "text": "public static java.util.List getOperationDescByName(java.lang.String methodName) {\n return (java.util.List)_myOperations.get(methodName);\n }", "title": "" }, { "docid": "e86993a9395233238eb9bcad539ed7eb", "score": "0.4892077", "text": "public static java.util.List getOperationDescByName(java.lang.String methodName) {\n return (java.util.List)_myOperations.get(methodName);\n }", "title": "" }, { "docid": "d4903b5cde2f2134e715f5c471c2c037", "score": "0.48917973", "text": "public String getSummaryText();", "title": "" }, { "docid": "6cb0708511d3efc9b4ff19892f6e0549", "score": "0.48853135", "text": "private String ordersummary() {\n String s=\"Name: NITEESH\\n\" +\n \"Quntity: \" +\n i+\"\\nTotal: \" +\n \"$\"+i*10+\"\\nThnakyou!\";\n\n return s;\n }", "title": "" }, { "docid": "d55326b376b2aaeb65620ee176984ac3", "score": "0.48809394", "text": "public com.google.devtools.build.lib.buildeventstream.BuildEventStreamProtos.BuildMetrics.ActionSummaryOrBuilder getActionSummaryOrBuilder() {\n return getActionSummary();\n }", "title": "" }, { "docid": "2c00cd3177cda33b3740765b0f543d9e", "score": "0.4877389", "text": "@Override\n\tpublic RedisOperations<K, V> getOperations() {\n\t\treturn listOps.getOperations();\n\t}", "title": "" }, { "docid": "877040cd66b29a2b2193c69d61412307", "score": "0.48733276", "text": "@Override\n public List<String> collect() {\n List<String> result = new ArrayList<>();\n for (IFlowInvoke invoke : currentInvokes) {\n currentFlow = invoke.perform();\n }\n for (IAlgebraItem item : currentFlow) {\n result.add(item.perform().getResult().toString());\n }\n return result;\n }", "title": "" }, { "docid": "89bc535c75b3c92f86a2c7de605553a9", "score": "0.48646763", "text": "cn.edu.nju.software.fabricservice.protomsg.Persistence.OpsStatus getOpsStatus();", "title": "" }, { "docid": "016e4e1500945d783b4cc18e872b9b91", "score": "0.48526773", "text": "java.util.List<org.wso2.choreo.connect.discovery.api.Operation> \n getMethodsList();", "title": "" }, { "docid": "255b688fba60bb7f6939f0770459dcde", "score": "0.48451465", "text": "public cn.edu.nju.software.fabricservice.protomsg.Persistence.OpsStatusOrBuilder getOpsStatusOrBuilder() {\n if (opsStatusBuilder_ != null) {\n return opsStatusBuilder_.getMessageOrBuilder();\n } else {\n return opsStatus_ == null ?\n cn.edu.nju.software.fabricservice.protomsg.Persistence.OpsStatus.getDefaultInstance() : opsStatus_;\n }\n }", "title": "" }, { "docid": "4060f6d1e5e53366f53582a03a2efb14", "score": "0.48348504", "text": "int getComicsTotal();", "title": "" }, { "docid": "dd4bff6e02a122d918f19a2813f365c6", "score": "0.48318788", "text": "@GetMapping(\"/automatic-operations\")\n public List<AutomaticOperationDTO> getAllAutomaticOperations() {\n log.debug(\"REST request to get all AutomaticOperations\");\n return automaticOperationService.findAll();\n }", "title": "" }, { "docid": "aabb2940fca2709ba57b243a81a1185a", "score": "0.48245353", "text": "public Collection<Item> getItens();", "title": "" }, { "docid": "32e276a68cd23cfdb12675f500a03c4d", "score": "0.48223624", "text": "public long getOperationCount() {\r\n\t\treturn this.getOpsSet().size();\r\n\t}", "title": "" }, { "docid": "c30e52fa12064f91fcb99f43bbdf91a3", "score": "0.48210004", "text": "public Integer getCollection() {\n\t\treturn collection;\n\t}", "title": "" }, { "docid": "0eda1f0f51496f91149b2c6b22a9100b", "score": "0.4815235", "text": "public String getSummary() {\r\n NumberFormat currency = NumberFormat.getCurrencyInstance();\r\n String summary = \"\\n\"\r\n + \"Vehicle Cost (\" + currency.format(vehiclePrice) + \"/vehicle): \"\r\n + currency.format(manufactureCost) + \"\\n\"\r\n + \"Tanks Cost (\" + currency.format(fuelCellPrice) + \"/fuel cell): \"\r\n + currency.format(tanksCost) + \"\\n\"\r\n + \"Subtotal: \" + currency.format(subtotal) + \"\\n\"\r\n + \"Tax (7.25%): \" + currency.format(tax) + \"\\n\"\r\n + \"Total: \" + currency.format(total);\r\n return summary;\r\n }", "title": "" }, { "docid": "457622a4e8252e41c0275b5588be988e", "score": "0.48134184", "text": "@Override\r\n\tpublic List<InvoiceDetail> findAll() {\n\t\treturn (List<InvoiceDetail>) invoiceRepository.findAll();\r\n\t}", "title": "" }, { "docid": "e4b10c7c92b29f286e89f24c5b3375a5", "score": "0.4810706", "text": "public ServiceOperationDisplay display() {\n return this.display;\n }", "title": "" }, { "docid": "cdfa2868a1f9fac46859bb1a12a5ba2e", "score": "0.47999805", "text": "public void MostrarOperaciones() {\n System.out.println(\"Listado de Operaciones\");\n System.out.println(\"-------------------------\");\n\n for (LineaCredito op : lineascredito) {\n for (Operacion listado : op.getListaOperaciones()) {\n System.out.println(listado.getCodigoOperacion() + \" - \" + listado.getCodigoSocio() + \" - \" + listado.getTipo() + \" - \" + listado.getEstado() + \" - \" + listado.getMonto());\n }\n }\n System.out.println(\"-------------------------\");\n System.out.println();\n }", "title": "" }, { "docid": "1f20648754a153e12bcbb4235fef55d6", "score": "0.47985026", "text": "public String summaryInfo() {\n DecimalFormat decimalFormat = new DecimalFormat(\"#,##0.0##\");\n String output = \"----- Summary for \" + name + \" -----\\n\";\n output += \"Number of Cones: \" + coneList.size() + \"\\n\";\n output += \"Total Base Perimeter: \"\n + decimalFormat.format(totalBasePerimeter()) + \"\\n\";\n output += \"Total Base Area: \"\n + decimalFormat.format(totalBaseArea()) + \"\\n\";\n output += \"Total Slant Height: \"\n + decimalFormat.format(totalSlantHeight()) + \"\\n\";\n output += \"Total Side Area: \"\n + decimalFormat.format(totalSideArea()) + \"\\n\";\n output += \"Total Surface Area: \"\n + decimalFormat.format(totalSurfaceArea()) + \"\\n\";\n output += \"Total Volume: \"\n + decimalFormat.format(totalVolume()) + \"\\n\";\n output += \"Average Surface Area: \"\n + decimalFormat.format(averageSurfaceArea()) + \"\\n\";\n output += \"Average Volume: \"\n + decimalFormat.format(averageVolume());\n return output;\n }", "title": "" }, { "docid": "35dee0fd6e49153683bc8d251fc538f4", "score": "0.4785076", "text": "@Override\n\tpublic ICustomerUsageSummary getUsageSummary() {\n\t\tif (this.usageSummary == null) {\n\t\t\tthis.usageSummary = new CustomerUsageSummaryOperations(\n\t\t\t\t\tthis.getPartner(), customerId);\n\t\t}\n\t\treturn this.usageSummary;\n\t}", "title": "" }, { "docid": "66d46abafcea2c76d64523ea54dc653b", "score": "0.47844625", "text": "public String getOperation() {\n return operation;\n }", "title": "" }, { "docid": "cf86ca90acd7dcb06ec23c8622c53417", "score": "0.47788432", "text": "public String summaryInfo() {\r\n //use constructor to create a decimal format for the methods\r\n DecimalFormat df = new DecimalFormat(\"#,##0.0##\");\r\n String result = \"\";\r\n result += \"----- Summary for \" + getName() + \" -----\"; \r\n result += \"\\nNumber of Icosahedrons: \" + numberOfIcosahedrons();\r\n result += \"\\nTotal Surface Area: \" + df.format(totalSurfaceArea()); \r\n result += \"\\nTotal Volume: \" + df.format(totalVolume());\r\n result += \"\\nAverage Surface Area: \" + df.format(averageSurfaceArea());\r\n result += \"\\nAverage Volume: \" + df.format(averageVolume());\r\n result += \"\\nAverage Surface/Volume Ratio: \" \r\n + df.format(averageSurfaceToVolumeRatio());\r\n \r\n return result;\r\n }", "title": "" }, { "docid": "7f10bb5525def2e575e054f3da93d7de", "score": "0.47737288", "text": "public IdEObjectCollection getCollection() {\n \t\treturn collection;\n \t}", "title": "" }, { "docid": "0b7b7abb4b995f363997fa7ea1cf1e30", "score": "0.47666103", "text": "public Collection getAllAdds();", "title": "" }, { "docid": "e76e9becd17af712e64281cad3987300", "score": "0.47568157", "text": "public Map<String, BigDecimal> calcTotals() throws LogicException {\n\t\tDAOFactory daoFactory = Settings.getInstance().getDaoFactory();\n\t\tAccountOperationDAO aoDAO = daoFactory.getAccountOperationDAO();\n\t\tMap<String, BigDecimal> result = new HashMap<>();\n\n\t\ttry {\n\t\t\tfor (AccountOperation.Type type : AccountOperation.Type.values()) {\n\t\t\t\tBigDecimal total = aoDAO.calcTotal(type);\n\t\t\t\tif (total != null) {\n\t\t\t\t\tresult.put(type.name().toLowerCase(), total);\n\t\t\t\t} else {\n\t\t\t\t\tresult.put(type.name().toLowerCase(), new BigDecimal(0));\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (DAOException e) {\n\t\t\tthrow new LogicException(UNABLE_TOTAL_OPERATIONS, e);\n\t\t}\n\n\t\treturn result;\n\t}", "title": "" } ]
d7bcd4980525fa301f6ae2a9483c59c2
/ Diagnostic Finding stuff
[ { "docid": "7aef30016a0fdd09616e18de6b2c8000", "score": "0.0", "text": "public void onDiagnosticFindingPositiveClick(String i_test,\n\t\t\tString i_result, long i_date, String i_interpretation, int i_index) {\n\t\t// if index is -1, which means the user opens the fragments by using the \"+\" button, so we add a new textview to the consultation layout and add it to the global.\n\t\tif (i_index == -1) {\n\t\t\tTextView valueTV = new TextView(this);\n\t\t\tCalendar date = Calendar.getInstance();\n\n\t\t\tdate.clear();\n\n\t\t\tdate.setTimeInMillis(i_date);\n\n\t\t\tvalueTV.setText(i_test\n\t\t\t\t\t+ \", \"\n\t\t\t\t\t+ i_result\n\t\t\t\t\t+ \", \"\n\t\t\t\t\t+ date.getDisplayName(Calendar.MONTH, Calendar.SHORT,\n\t\t\t\t\t\t\tLocale.getDefault()) + \"-\"\n\t\t\t\t\t+ date.get(Calendar.DATE) + \"-\" + date.get(Calendar.YEAR)\n\t\t\t\t\t+ \", \" + i_interpretation);\n\n\t\t\tfinal DiagnosticFinding df = _globals.GetConsultation().AddDF(\n\t\t\t\t\ti_test, i_result, i_date, i_interpretation);\n\t\t\t\n\t\t\tvalueTV.setOnClickListener(new View.OnClickListener() {\n\t\t\t\t@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\tshowCreateDiagnosticFindingDialog(df);\n\t\t\t\t}\n\t\t\t});\n\n\t\t\tvalueTV.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT,\n\t\t\t\t\tLayoutParams.WRAP_CONTENT));\n\t\t\t((LinearLayout) _diagnosticFindingListLinearLayout)\n\t\t\t\t\t.addView(valueTV);\n\t\t} \n\t\t// if index is not -1, which means the user opens the fragments by clicking on the textview, so we edit the textview and save it to global\n\t\telse {\n\t\t\tTextView valueTV = (TextView) ((LinearLayout) _diagnosticFindingListLinearLayout)\n\t\t\t\t\t.getChildAt(i_index);\n\t\t\tCalendar date = Calendar.getInstance();\n\n\t\t\tdate.clear();\n\n\t\t\tdate.setTimeInMillis(i_date);\n\n\t\t\tvalueTV.setText(i_test\n\t\t\t\t\t+ \", \"\n\t\t\t\t\t+ i_result\n\t\t\t\t\t+ \", \"\n\t\t\t\t\t+ date.getDisplayName(Calendar.MONTH, Calendar.SHORT,\n\t\t\t\t\t\t\tLocale.getDefault()) + \"-\"\n\t\t\t\t\t+ date.get(Calendar.DATE) + \"-\" + date.get(Calendar.YEAR)\n\t\t\t\t\t+ \", \" + i_interpretation);\n\n\t\t\tint errCode = _globals.GetConsultation().SetDF(i_test, i_result,\n\t\t\t\t\ti_date, i_interpretation, i_index);\n\t\t\t\n\t\t\tif (errCode == -1) {\n\t\t\t\tSystem.out.println(\"df does not exists!\");\n\t\t\t}\n\t\t}\n\t}", "title": "" } ]
[ { "docid": "0504faab60798bfc8b5893dd4e7e9524", "score": "0.6203611", "text": "public void find();", "title": "" }, { "docid": "7038cb0b7c4274d0508e385281a60875", "score": "0.6163005", "text": "private static void search() {\n\t\t\r\n\t}", "title": "" }, { "docid": "85815394fdb8bc97742afaec8c181c48", "score": "0.60803825", "text": "public FindDiag() {\r\n\t\tsuper();\r\n\t}", "title": "" }, { "docid": "f9fdb128c8d80ebfce9be1a18f631943", "score": "0.6073669", "text": "@Override\r\n\tpublic void find() {\n\t\t\r\n\t}", "title": "" }, { "docid": "33207a5e91d884ce16ed3781ec4c49c1", "score": "0.5944799", "text": "DiagnosticResult attemptDiagnostic() throws UnexplainableException;", "title": "" }, { "docid": "6492c8459516b874340871a41e016f8b", "score": "0.5804598", "text": "public void find() throws Exception {\r\n Parse processIdCell = cells.at(1);\r\n Parse targetCell = cells.at(2);\r\n\r\n String streamExpression = processIdCell.text();\r\n String target = targetCell.text();\r\n String tokens[] = parseStreamExpression(streamExpression, processIdCell);\r\n if (tokens != null) {\r\n String processId = tokens[0];\r\n String streamId = tokens[1];\r\n CommandProcess p = getCommandProcess(processId);\r\n if (streamId.equals(\"stdout\")) {\r\n find(p.stdoutGatherer, target, p.commandCell);\r\n } else if (streamId.equals(\"stderr\")) {\r\n find(p.stderrGatherer, target, p.commandCell);\r\n } else\r\n streamExpressionError(\"Stream id not 'stdout' or 'stderr'\");\r\n }\r\n }", "title": "" }, { "docid": "141fdbc10abc9459a55d36137a2e1c81", "score": "0.5800831", "text": "public void showFindMode() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2a7334caee878afb72c86ee5d899dcb9", "score": "0.569164", "text": "public void examine(){\n\t\tSystem.out.println(lookCloser);\n\t}", "title": "" }, { "docid": "3dd0d1dec263f77260a1200e104b6cd8", "score": "0.5673083", "text": "public abstract String getDebugInfo();", "title": "" }, { "docid": "1d1ce6a433983789d5d68dc54b7c2a10", "score": "0.5608576", "text": "@Override\n\tpublic void research() {\n\t\tSystem.out.println(\"Syntax Students need to do a lot of research\");\n\t}", "title": "" }, { "docid": "8146657fb5b722d674f7e6ae764bd628", "score": "0.55967873", "text": "private static void debugReporting(StandardsRegistry reg) throws Exception {\n\t\t// reg.load();\n\t\t// reg.report();\n\n\t\treg.register(\"Arizona.World History.2006.D1000288\");\n//\t\treg.register(\"NSES.Science.1995.D10001D0\");\n//\t\treg.register(\"Arizona.The Arts.2006.D1000305\");\n\n\t\treg.report();\n\t\tString asnDocId = \"http://purl.org/ASN/resources/D1000288\";\n\t\tString asnDocKey = \"Arizona.World History.2006.D1000288\";\n\n\t\tString noRegKey = \"NSES.Science.1995.D10001D0\";\n\t\tString noRegId = \"http://purl.org/ASN/resources/D10001D0\";\n\n\t\tAsnDocInfo docInfo = reg.get(noRegId);\n\n\t\tif (docInfo == null) {\n\t\t\tprtln(\"doc not found\");\n\t\t}\n\t\telse {\n\t\t\tdocInfo.report();\n\t\t}\n\n\t\t// reg.register(\"2007-Colorado-Science-Model_Content_Standards_Science\")\n\n\t\t/*\n\t\t * prtln (\"\\nRegistry Contents\");\n\t\t * for (Iterator i = docs.iterator(); i.hasNext(); ) {\n\t\t * AsnDocInfo docInfo = (AsnDocInfo) i.next();\n\t\t * if (docInfo != null)\n\t\t * docInfo.report();\n\t\t * else\n\t\t * prtln (\"docInfo not found!\");\n\t\t * }\n\t\t */\n\t\t/*\n\t\t * String asnId = \"http://purl.org/ASN/resources/S1005D1E\";\n\t\t * prtln(\"\\nfinding node for \" + asnId);\n\t\t */\n\t\t/*\n\t\t * AsnStandardsNode node = reg.getStandardsNode(asnId);\n\t\t * if (node == null)\n\t\t * prtln(\"not found\");\n\t\t * else {\n\t\t * prtln(\"found: \" + node.getId());\n\t\t * AsnStandard std = node.getAsnStandard ();\n\t\t * prtln (std.toString());\n\t\t * }\n\t\t */\n\t\t// prtln (reg.getStandard(asnId).toString());\n\t\t// reg.compareWithCatDocs();\n\t}", "title": "" }, { "docid": "13069e95c49e6fb402bf88f6f24c8f95", "score": "0.54610527", "text": "public static void main(String[] args) {\n\r\n\t\tSystem.out.println(find(\"halleljjaskdfjs lsjflsjflj\", \"hal\"));\r\n\t}", "title": "" }, { "docid": "9415d2c90261023257387ae3b1ad4a0b", "score": "0.5460808", "text": "void identify();", "title": "" }, { "docid": "3619880ac32692fca9315cae1dda8517", "score": "0.54471457", "text": "private void showLocation(SAXParseException e) {\r\n String systemId = e.getSystemId();\r\n int line = e.getLineNumber();\r\n int col = e.getColumnNumber();\r\n if (systemId != null || line > -1 || col > -1) {\r\n System.out.print(\"*** (near\");\r\n if (systemId != null) {\r\n System.out.print(\" \" + systemId);\r\n }\r\n if (line > -1) {\r\n System.out.print(\" line \" + line);\r\n }\r\n if (col > -1) {\r\n System.out.print(\" column \" + col);\r\n }\r\n System.out.print(\")\\n\");\r\n }\r\n }", "title": "" }, { "docid": "ecbad84c1ce4706b07c1dcea12670696", "score": "0.54471177", "text": "public void positionFind(){\n\t\treturn;\n\t}", "title": "" }, { "docid": "36006aa4c23522934e5b62e8e5e74036", "score": "0.54052263", "text": "private static void displayMatchNotFound()\n {\n System.out.println();\n System.out.println(get_kANSI_RED() + \"Error! Match not found..\" + get_kANSI_RESET());\n System.out.println();\n }", "title": "" }, { "docid": "95e8d4a2a89ac7c9e951fe6a03d3b3fd", "score": "0.5398843", "text": "public void printViolations() {\n printViolations(System.err);\n }", "title": "" }, { "docid": "9eda8f62de70bbe85a641d34d9ca863f", "score": "0.5392169", "text": "@Override\r\n\tpublic void testFind() {\n\r\n\t}", "title": "" }, { "docid": "d4c45c4fbce7289d0d982245690ce27d", "score": "0.53558767", "text": "void sSearch();", "title": "" }, { "docid": "c93eb20d4709724f48f1841d51f5afc5", "score": "0.53302944", "text": "void report()\n {\n if (isNeeded(NEEDED)) {\n if ( (access_flags & ACC_STATIC) != 0 )\n System.out.print (\"static \");\n\n System.out.print (\"Method \" + cls.className + \".\" + \n name + signature);\n if (isNeeded(NEEDED_VIRTUALLY)) {\n System.out.print (\" (virtual invocation)\");\n }\n System.out.println();\n if (nativeRef != null) {\n System.out.println (\" --- have native code ---\");\n }\n else if (attributes.code != null) {\n attributes.code.report();\n }\n }\n else if (isNeeded(NEEDED_VIRTUALLY)) {\n System.out.println (\" [virtually needed Method \" + cls.className + \".\" + \n name + signature + \"]\");\n }\n\n if (Jump.codeOptions.verbosity >= 2) {\n if (isNeeded()) {\n for (int i=0; i<neededReasons.size(); i++) {\n System.out.println (\" needed for \" + neededReasons.elementAt(i));\n }\n }\n }\n\n if (isNeeded() && (vtableIndex >= 0)) {\n System.out.println (\" vtable = \" + vtableIndex);\n }\n if (effectiveMethod != null) {\n System.out.println (\" effective method = \" + effectiveMethod);\n }\n }", "title": "" }, { "docid": "8c9039422600304d8c1fc96af6f6edf1", "score": "0.5315898", "text": "Diagnostic createDiagnostic();", "title": "" }, { "docid": "9a692f72a92c38af7083127f1e8ad86f", "score": "0.52943385", "text": "private void printICompilationUnitInfo(IPackageFragment mypackage) throws JavaModelException {\n\t\tfor (ICompilationUnit unit : mypackage.getCompilationUnits()) {\n\t\t\tSystem.out.println(\"Source file \" + unit.getElementName());\n\n\t\t\tDocument doc = new Document(unit.getSource());\n\t\t\tSystem.out.println(\"Has number of lines: \" + doc.getNumberOfLines());\n\t\t\t/* this method is depricated, now we parse the java AST \n\t\t\tfor(int i = 0; i < doc.getNumberOfLines(); i++){\n\t\t\t\ttry {\n\t\t\t\t\tint offset = doc.getLineInformation(i).getOffset();\n\t\t\t\t\tint len = doc.getLineInformation(i).getLength();\n\t\t\t\t\tString line = doc.get(offset,len);\n\t\t\t\t\t\n\t\t\t\t\t// regex style\n\t\t\t\t\t//Matcher m = p.matcher(line);\n\t\t\t\t\t//if(m.find()){\n\t\t\t\t\t\n\t\t\t\t\tif(checkFunction(line)){\n\t\t\t\t\t\tSystem.out.println(\"Found known Android API function requiring permissoin XX\");\n\t\t\t\t\t\t\n\t\t\t\t\t\tSystem.out.println(\"\" + i + \": \" +\toffset + \",\"+ len + \":\" + line);\n\t\t\t\t\t\t\n\t\t\t\t\t\taddMarker((IFile)unit.getResource() ,\"This function requires permission XX!\", i, IMarker.SEVERITY_WARNING);\n\t\t\t\t\t}else{\n\t\t\t\t\t\t//System.out.println(\"NOTMATCH\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t} catch (BadLocationException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\t*/\n\t\t\t//TODO java only!\n\t\t\t// parse java and find all external calls to test against\n\t\t\t//printIMethods(unit); //not really intersted in the program's methods, only external ones\n\t\t\tprintAST(unit);\n\n\t\t}\n\t}", "title": "" }, { "docid": "64625d46ce37be54e8fa037d564f832b", "score": "0.52928823", "text": "boolean getTraceSearch();", "title": "" }, { "docid": "95a9fb11f7470a94dbaa268d7015c524", "score": "0.5287559", "text": "protected void checkForUnresolvedReferences() {\n\t\tfor (String name : labels.keySet()) {\n\t\t\tLabelSymbol sym = (LabelSymbol) labels.get(name);\n\t\t\tif (!sym.isDefined) {\n\t\t\t\tSystem.err.println(\"unresolved reference: \" + name);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "b5e28cd18f006c16272ea346993e1c3c", "score": "0.5269277", "text": "boolean hasIsCanBeFind();", "title": "" }, { "docid": "8194e0a222d7cdffc355e2fb8b94399a", "score": "0.5244229", "text": "boolean hasDebugInfo();", "title": "" }, { "docid": "5fa69c2d6f6f44137f31939a82502912", "score": "0.52366644", "text": "public static void explain100MSolution() {\n\n }", "title": "" }, { "docid": "053ce733b3d8bd745dc486c74e31098a", "score": "0.5232655", "text": "public void debug() {\r\n\tsynchronized (this) {\r\n\t int size = scripts.size();\r\n\t for (int i = 0; i < size; i++) {\r\n\t\tScript s = scripts.get(i);\r\n\t\tif (s != null) {\r\n\t\t System.out.println(i+\" => \"+s.scriptPath+\"(\"+s.useCnt+\")\");\r\n\t\t}\r\n\t }\r\n\t}\r\n }", "title": "" }, { "docid": "103f5b4ce563064b25dc2f738dcad2ac", "score": "0.52240425", "text": "private void problems() {\n for (SYMBOL sym : _termtab.values()) {\n if (sym.used == 0)\n System.err.printf(\"warning: <%s> not used (defined on line %d)\\n\",\n sym.name, Position.line(sym.set));\n\n if (sym.set == 0)\n throw S.parseError(format(\"<%s> not defined (used on line %d)\",\n sym.name, Position.line(sym.used)));\n }\n\n for (SYMBOL sym : _nontermtab.values()) {\n if (sym.used == 0 && sym != _goal_symbol)\n System.err.printf(\"warning: <%s> not used (defined on line %d)\\n\",\n sym.name, Position.line(sym.set));\n\n if (sym.set == 0 && !isact(sym))\n throw S.parseError(format(\"<%s> not defined (used on line %d)\",\n sym.name, Position.line(sym.used)));\n }\n }", "title": "" }, { "docid": "159ceafe873e9ab65c5d64d3095daa1f", "score": "0.5207408", "text": "public static void debugging() {\n\t\t\n\t\tMatchField matchField = MatchField.initMatchField();\n\t\t\n\t\t\n\t\tint wood = 0;\n\t\tint wool = 0;\n\t\tint grain = 0;\n\t\tint clay = 0;\n\t\tint ore = 0;\n\t\tint sand = 0;\n\t\t\n\t\tfor(int i = 0; i < matchField.getFields().length; i++)\n\t\t{\n\t\t\tif(matchField.getFields()[i].getResource() == RESOURCE.WOOD)\n\t\t\t\twood++;\n\t\t\telse if(matchField.getFields()[i].getResource() == RESOURCE.WOOL)\n\t\t\t\twool++;\n\t\t\telse if(matchField.getFields()[i].getResource() == RESOURCE.GRAIN)\n\t\t\t\tgrain++;\n\t\t\telse if(matchField.getFields()[i].getResource() == RESOURCE.CLAY)\n\t\t\t\tclay++;\n\t\t\telse if(matchField.getFields()[i].getResource() == RESOURCE.ORE)\n\t\t\t\tore++;\n\t\t\telse if(matchField.getFields()[i].getResource() == RESOURCE.SAND)\n\t\t\t\tsand++;\n\t\t}\n\t\t\n\t\tSystem.out.println(\"Anzahl der Felder: \");\n\t\tSystem.out.println(\"wood: \" + wood);\n\t\tSystem.out.println(\"wool: \" + wool);\n\t\tSystem.out.println(\"grain: \" + grain);\n\t\tSystem.out.println(\"clay: \" + clay);\n\t\tSystem.out.println(\"ore: \" + ore);\n\t\tSystem.out.println(\"sand: \" + sand);\n\t\t\n\t\tSystem.out.println(\"\\nFelder: \");\n\t\tfor(int i = 0; i < MatchField.FIELD_NUM; i++) {\n\t\t\tSystem.out.println(\"Feld \" + (i+1) + \":\" + matchField.getFields()[i].getResource() + \" --- num: \" + matchField.getFields()[i].getNumber()\n\t\t\t\t\t+ \" --- robber: \" + matchField.getFields()[i].isRobber());\n\t\t}\n\t\t\n\t\tSystem.out.println();\n\t\tfor(int i = 0; i < MatchField.CROSSING_NUM; i++) {\n\t\t\tSystem.out.println(\"Crossing: \" + (i+1) + \" --- port: \" + matchField.getCrossing(i).getPort());\n\t\t}\n\t}", "title": "" }, { "docid": "15364d02302f73e7d9dd75784920daa5", "score": "0.51834357", "text": "protected abstract void analyze(CLClause reason);", "title": "" }, { "docid": "424f5fe9a6a5426d683eef3894ca19e9", "score": "0.5163428", "text": "@Test \r\n\t public void findList() throws Exception{\n\t }", "title": "" }, { "docid": "143075ac643dd6ec05b62d0674a2272f", "score": "0.51598704", "text": "private void dumpState() {\n Collections.sort(locationalResult);\n for (TextChunk location : locationalResult) {\n location.printDiagnostics();\n\n System.out.println();\n }\n }", "title": "" }, { "docid": "961062aa5e962b9b1ac29e6869628e11", "score": "0.51576227", "text": "@Test(enabled = debug)\n\tpublic void fullMultilineTextSearchDebugTest() {\n\t\tSystem.err.println(\"Waiting 30 sec to allow open Developer console\");\n\t\tsleep (30000); // open Developer console\n\t\tWebElement element = wait.until(ExpectedConditions\n\t\t\t\t.visibilityOf(driver.findElement(By.cssSelector(elementCssSelector))));\n\t\ttry {\n\t\t\tWebElement result = super.findByCssSelectorAndInnerText(null,\n\t\t\t\t\telement.getText().replace(\"\\n\", \"\").replace(\"\\r\", \"\"), debug);\n\t\t\tif (result != null) {\n\t\t\t\tSystem.err.println(\"Result(text): \" + result.getText());\n\t\t\t\thighlight(result);\n\t\t\t} else {\n\t\t\t\tSystem.err.println(\"Nothing found.\");\n\t\t\t}\n\t\t} catch (NoSuchElementException e) {\n\t\t\tSystem.err.println(\"Exception (ignored): \" + e.toString());\n\t\t} catch (UnhandledAlertException e) {\n\t\t\t// ignore\n\t\t}\n\t}", "title": "" }, { "docid": "6842525c88a93a5ab1eee800fc1d6d24", "score": "0.51575166", "text": "public void analysis()\n {\n\n if( !listContainsRole(blueTeam, 1))\n System.out.println(\"You team does not have a tank.\");\n if( !listContainsRole(blueTeam, 2))\n System.out.println(\"You team does not have an attacker.\");\n if( !listContainsRole(blueTeam, 3))\n System.out.println(\"You team does not have a healer.\");\n\n //check to see if red team counters anything on the blue team\n\n checkForCounters(blueTeam, redTeam);\n }", "title": "" }, { "docid": "a258692494b7c4af16057279fb93f988", "score": "0.5149439", "text": "public void displaySearchByStudioDVDBanner () {\n\t io.print(\"=== Studio Results ===\");\n }", "title": "" }, { "docid": "1b206d3100ca9637edaa3ff1a810419a", "score": "0.514735", "text": "private void printDiagnosticHelp(Logger logger) {\n logger.info(INDENT + join(\" \", UTILITY_NAME, DIAGNOSTIC, PAGE_LOCKS + \" - dump page locks info.\"));\n logger.info(INDENT + join(\" \", UTILITY_NAME, DIAGNOSTIC, CONNECTIVITY + \" - show connectivity state.\"));\n\n logger.info(INDENT + \"Subcommands:\");\n\n Arrays.stream(DiagnosticSubCommand.values()).forEach(c -> {\n if (c.subcommand() != null) c.subcommand().printUsage(logger);\n });\n\n logger.info(\"\");\n }", "title": "" }, { "docid": "e716fa27c51a2358c80fd46c33126514", "score": "0.5142629", "text": "private Introspection() {}", "title": "" }, { "docid": "d67685a4076e4977967de3f9652f8be9", "score": "0.51406914", "text": "@Override\n\tpublic void search() {\n\t\t\n\t}", "title": "" }, { "docid": "d67685a4076e4977967de3f9652f8be9", "score": "0.51406914", "text": "@Override\n\tpublic void search() {\n\t\t\n\t}", "title": "" }, { "docid": "d67685a4076e4977967de3f9652f8be9", "score": "0.51406914", "text": "@Override\n\tpublic void search() {\n\t\t\n\t}", "title": "" }, { "docid": "b1d27692bddd9aea439a6e8dd6eeacb0", "score": "0.51351345", "text": "protected OT lFind(OT label) {\r\n\treturn sFind(label,true);\r\n}", "title": "" }, { "docid": "b12acbbea1ca37a9f94761d83fd7e29a", "score": "0.51172936", "text": "private static void generateDereferencableAnalysisReport() {\n\t\t\n\t}", "title": "" }, { "docid": "e5602cd9ba5a9f12308cb574b3efed29", "score": "0.51164645", "text": "public static void main(String[] args) throws Exception {\n execQuery(boolSearch());\n// highlightedSearch();\n// scorll();\n// \n }", "title": "" }, { "docid": "c2bdbd463f78a1c060c818f3d3800db7", "score": "0.51052064", "text": "public int _indexof(byte[] _searchfor) throws Exception{\nif (true) return _indexof2(_searchfor,(int) (0));\n //BA.debugLineNum = 111;BA.debugLine=\"End Sub\";\nreturn 0;\n}", "title": "" }, { "docid": "359b6e95db940f2591ae9304c4eb7ade", "score": "0.5090227", "text": "protected void searchAndReport(final boolean b, final String s, final String f) {\n if (b) {\n logging(s);\n }\n if (!b) {\n reportError(f);\n// logging(\"An error has occured\");\n// logging(f);\n// reportEndOfTest();\n// try {\n// takeScreenshot();\n// } catch (IOException e) {\n// logging(e.toString());\n// }\n// assertTrue(\"Error! \" + f, false);\n }\n }", "title": "" }, { "docid": "af7a21ca3d0449e2ffb16c6c71ff0ebf", "score": "0.50872487", "text": "@Test\n\tpublic void testFind() {\n\t}", "title": "" }, { "docid": "d00ffad96363115f7de655acd8aa33c7", "score": "0.5078718", "text": "void findConfig();", "title": "" }, { "docid": "3b473076f5d07f4cbaa0d208cd22ffa3", "score": "0.50785166", "text": "private void findID() {\n\n\t}", "title": "" }, { "docid": "795ff3924e0f25b79249ecb9b9b43675", "score": "0.50780696", "text": "private void reportElementNotFound(String sCommand) {\n\t\t\n\t\treportStepDtlsWithScreenshot(\"The element of a command \" + \"\\\"\"+ sCommand + \"\\\" not found\",\"The element of a command \" + \"\\\"\"+ sCommand + \"\\\" not found at step : \" + iStepCount+ \" : on the displayed page\", FAIL);\n\t}", "title": "" }, { "docid": "e00d28e4ddee764d6172d6ce09a12c04", "score": "0.50758797", "text": "void analyze() {\n\t\tboolean memory = Debug.get();\n\t\tDebug.set(true);\n\t\tint depth = 0;\n\t\tSystem.out.println();\n\t\tSystem.out.println(diluted(\"ANALYSIS\"));\n\t\tprintCells(Area.BLOCK, depth);\n\t\tprintCells(Area.HORIZONTAL, depth);\n\t\tprintCells(Area.VERTICAL, depth);\n\t\tDebug.set(memory);\n\t\tSystem.out.println();\n\t}", "title": "" }, { "docid": "ea7ea02176dfbe9af2d1ef48793d3d3d", "score": "0.5074018", "text": "private static void printInfo() {\n\t\tSystem.out.println(\"\\nApiMan: Scanner for liferay APIs.\\n\" +\n\t\t\t\"\");\n\t}", "title": "" }, { "docid": "1a6861e66d273448aee7a7358b1c5582", "score": "0.5070505", "text": "@Override\r\n\tpublic void search() {\n\t}", "title": "" }, { "docid": "c477ade69203aa514e904b97ce1c461f", "score": "0.5065915", "text": "public FindOK() {\n\t\t/* nothing */\n\t}", "title": "" }, { "docid": "2797cd77c264c1e38e08732056b81824", "score": "0.50602096", "text": "protected void find ( T theTarget )\n {\n found = false;\n location = first;\n previous = null;\n \n while ( location != null )\n {\n if ( location.getInfo().equals( theTarget ) )\n {\n found = true;\n \n break;\n }\n else\n {\n previous = location;\n location = location.getLink();\n }\n }\n }", "title": "" }, { "docid": "f44c344ce2274e10929e46d2e00e922f", "score": "0.5055424", "text": "private void debugSplit() {\n\t}", "title": "" }, { "docid": "347559200c6e0bce13f8b177db442032", "score": "0.5052012", "text": "private static void printLoadCodeErrors(LoadCodeResult loadCodeResult) {\n for ( Map.Entry<String, LoadCodeError> entry : loadCodeResult.getErrorsMap().entrySet() ) {\n System.out.println(\"Node \" + entry.getKey() + \": \" + entry.getValue());\n }\n }", "title": "" }, { "docid": "8f97742a958facd6134676e993cc217a", "score": "0.5051523", "text": "public void findReturnStatements() {\n\n //This is the all lines of code which is selected by the user.\n List<String> result = new ArrayList<>();\n\n //The result is stored in an array of words.\n String[] words = null;\n\n //Error count inside this method.\n int errorCount = 0;\n\n //Method counter.\n int methodCount = 0;\n\n //Return statement counter.\n int returnCount = 0;\n\n //This holds the line number of the code.\n int lineNum = 0;\n\n //Reads the all line in the selected code and stores it in the result variable.\n try {\n result = Files.readAllLines(Paths.get(selectedFilePath));\n\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n\n //eleminating the empty lines and the comments.\n for (java.util.Iterator<String> iterator = result.iterator(); iterator.hasNext();) {\n String v = iterator.next();\n if (v.trim().isEmpty() || v.trim().startsWith(\"/*\") || v.trim().endsWith(\"*/\") || v.trim().startsWith(\"//\")\n || v.trim().startsWith(\"*\") || v.trim().startsWith(\"import\")) {\n iterator.remove();\n }\n }\n\n for (String s : result) {\n\n //After every line, the line number is incremented by 1.\n lineNum++;\n\n //Words are splitted by the space.\n words = s.split(\" \");\n System.out.println(s);\n\n //iterating through the lines\n for (String word : words) {\n//\t\t\t\tif(word.contains(\"class\")) {\n//\t\t\t\t\tmethodCount-=1;\n//\t\t\t\t}\n//\t\t\t\t\n //eleminating the main method when counting methods\n if (word.contains(\"main\")) {\n methodCount -= 1;\n }\n\n //tracking methods by the brackets\n if (word.contains(\"){\")) {\n methodCount += 1;\n }\n\n //track the method by the brackets to identify the method count\n if (word.contains(\"}\")) {\n //methodCount = 1;\n char[] cReadline = word.toCharArray();\n int iReadLineLength = cReadline.length;\n\n for (int i = 0; i <= iReadLineLength; i++) {\n try {\n\n if (cReadline[i] == ')' && cReadline[i + 1] == ' ' && cReadline[i + 2] == '{') {\n methodCount = methodCount - 1;\n }\n } catch (ArrayIndexOutOfBoundsException e) {\n\n }\n }\n }\n //won't change the method count in those scenarios\n if (word.contains(\"if\")) {\n methodCount = methodCount;\n }\n\n if (word.contains(\"else if\")) {\n methodCount = methodCount;\n }\n\n if (word.contains(\"else\")) {\n methodCount = methodCount;\n }\n\n if (word.contains(\"switch\")) {\n methodCount = methodCount;\n }\n\n //tracking the return statements in the method\n if (word.contains(\"return\")) {\n returnCount += 1;\n //this.jTextArea2.append(s+\"Line number: \"+lineNum+\"\\n\");\n }\n\n }\n\n }\n System.out.println(methodCount);\n System.out.println(returnCount);\n //this.jTextArea2.append(\" \"+methodCount);\n //this.jTextArea2.append(\" \"+returnCount);\n\n if (methodCount == returnCount) {\n System.out.println(\"\");\n } else if (methodCount > 0 && returnCount == 0) {\n System.out.println(\"\");\n } else if (methodCount < returnCount) {\n if (methodCount > 0) {\n //Do not show anything\n } else {\n errors++;\n System.out.println(\"Multiple return statements occured\");\n this.jTextArea2.append(\"* Multipe return statements occured...\");\n //this.jTextArea2.append(\" \"+methodCount);\n //this.jTextArea2.append(\" \"+returnCount);\n //this.jTextArea2.append(s);\n this.jTextArea2.append(\"\\n\");\n this.jTextArea3.append(\"Try removing the additional return statements\");\n }\n }\n }", "title": "" }, { "docid": "f12e3f09cc92e2ebd0fa495ac193fec9", "score": "0.50378", "text": "private static String allSymbolsMatch() {\r\n\t\treturn \"No errors found. All symbols match.\";\r\n\t}", "title": "" }, { "docid": "3585598965435c5d3677fe0e1898b297", "score": "0.5035132", "text": "private void m2091j() {\n /*\n r9 = this;\n r8 = 1;\n r0 = r9.f1269g;\t Catch:{ FileNotFoundException -> 0x00d2 }\n r1 = r9.f1270h;\t Catch:{ FileNotFoundException -> 0x00d2 }\n r1 = r0.openFileInput(r1);\t Catch:{ FileNotFoundException -> 0x00d2 }\n r2 = android.util.Xml.newPullParser();\t Catch:{ XmlPullParserException -> 0x0030, IOException -> 0x007e }\n r0 = 0;\n r2.setInput(r1, r0);\t Catch:{ XmlPullParserException -> 0x0030, IOException -> 0x007e }\n r0 = 0;\n L_0x0012:\n if (r0 == r8) goto L_0x001c;\n L_0x0014:\n r3 = 2;\n if (r0 == r3) goto L_0x001c;\n L_0x0017:\n r0 = r2.next();\t Catch:{ XmlPullParserException -> 0x0030, IOException -> 0x007e }\n goto L_0x0012;\n L_0x001c:\n r0 = \"historical-records\";\n r3 = r2.getName();\t Catch:{ XmlPullParserException -> 0x0030, IOException -> 0x007e }\n r0 = r0.equals(r3);\t Catch:{ XmlPullParserException -> 0x0030, IOException -> 0x007e }\n if (r0 != 0) goto L_0x0051;\n L_0x0028:\n r0 = new org.xmlpull.v1.XmlPullParserException;\t Catch:{ XmlPullParserException -> 0x0030, IOException -> 0x007e }\n r2 = \"Share records file does not start with historical-records tag.\";\n r0.<init>(r2);\t Catch:{ XmlPullParserException -> 0x0030, IOException -> 0x007e }\n throw r0;\t Catch:{ XmlPullParserException -> 0x0030, IOException -> 0x007e }\n L_0x0030:\n r0 = move-exception;\n r2 = f1263a;\t Catch:{ all -> 0x00c7 }\n r3 = new java.lang.StringBuilder;\t Catch:{ all -> 0x00c7 }\n r3.<init>();\t Catch:{ all -> 0x00c7 }\n r4 = \"Error reading historical recrod file: \";\n r3 = r3.append(r4);\t Catch:{ all -> 0x00c7 }\n r4 = r9.f1270h;\t Catch:{ all -> 0x00c7 }\n r3 = r3.append(r4);\t Catch:{ all -> 0x00c7 }\n r3 = r3.toString();\t Catch:{ all -> 0x00c7 }\n android.util.Log.e(r2, r3, r0);\t Catch:{ all -> 0x00c7 }\n if (r1 == 0) goto L_0x0050;\n L_0x004d:\n r1.close();\t Catch:{ IOException -> 0x00ce }\n L_0x0050:\n return;\n L_0x0051:\n r0 = r9.f1268f;\t Catch:{ XmlPullParserException -> 0x0030, IOException -> 0x007e }\n r0.clear();\t Catch:{ XmlPullParserException -> 0x0030, IOException -> 0x007e }\n L_0x0056:\n r3 = r2.next();\t Catch:{ XmlPullParserException -> 0x0030, IOException -> 0x007e }\n if (r3 != r8) goto L_0x0064;\n L_0x005c:\n if (r1 == 0) goto L_0x0050;\n L_0x005e:\n r1.close();\t Catch:{ IOException -> 0x0062 }\n goto L_0x0050;\n L_0x0062:\n r0 = move-exception;\n goto L_0x0050;\n L_0x0064:\n r4 = 3;\n if (r3 == r4) goto L_0x0056;\n L_0x0067:\n r4 = 4;\n if (r3 == r4) goto L_0x0056;\n L_0x006a:\n r3 = r2.getName();\t Catch:{ XmlPullParserException -> 0x0030, IOException -> 0x007e }\n r4 = \"historical-record\";\n r3 = r4.equals(r3);\t Catch:{ XmlPullParserException -> 0x0030, IOException -> 0x007e }\n if (r3 != 0) goto L_0x00a1;\n L_0x0076:\n r0 = new org.xmlpull.v1.XmlPullParserException;\t Catch:{ XmlPullParserException -> 0x0030, IOException -> 0x007e }\n r2 = \"Share records file not well-formed.\";\n r0.<init>(r2);\t Catch:{ XmlPullParserException -> 0x0030, IOException -> 0x007e }\n throw r0;\t Catch:{ XmlPullParserException -> 0x0030, IOException -> 0x007e }\n L_0x007e:\n r0 = move-exception;\n r2 = f1263a;\t Catch:{ all -> 0x00c7 }\n r3 = new java.lang.StringBuilder;\t Catch:{ all -> 0x00c7 }\n r3.<init>();\t Catch:{ all -> 0x00c7 }\n r4 = \"Error reading historical recrod file: \";\n r3 = r3.append(r4);\t Catch:{ all -> 0x00c7 }\n r4 = r9.f1270h;\t Catch:{ all -> 0x00c7 }\n r3 = r3.append(r4);\t Catch:{ all -> 0x00c7 }\n r3 = r3.toString();\t Catch:{ all -> 0x00c7 }\n android.util.Log.e(r2, r3, r0);\t Catch:{ all -> 0x00c7 }\n if (r1 == 0) goto L_0x0050;\n L_0x009b:\n r1.close();\t Catch:{ IOException -> 0x009f }\n goto L_0x0050;\n L_0x009f:\n r0 = move-exception;\n goto L_0x0050;\n L_0x00a1:\n r3 = 0;\n r4 = \"activity\";\n r3 = r2.getAttributeValue(r3, r4);\t Catch:{ XmlPullParserException -> 0x0030, IOException -> 0x007e }\n r4 = 0;\n r5 = \"time\";\n r4 = r2.getAttributeValue(r4, r5);\t Catch:{ XmlPullParserException -> 0x0030, IOException -> 0x007e }\n r4 = java.lang.Long.parseLong(r4);\t Catch:{ XmlPullParserException -> 0x0030, IOException -> 0x007e }\n r6 = 0;\n r7 = \"weight\";\n r6 = r2.getAttributeValue(r6, r7);\t Catch:{ XmlPullParserException -> 0x0030, IOException -> 0x007e }\n r6 = java.lang.Float.parseFloat(r6);\t Catch:{ XmlPullParserException -> 0x0030, IOException -> 0x007e }\n r7 = new android.support.v7.internal.widget.t;\t Catch:{ XmlPullParserException -> 0x0030, IOException -> 0x007e }\n r7.<init>(r3, r4, r6);\t Catch:{ XmlPullParserException -> 0x0030, IOException -> 0x007e }\n r0.add(r7);\t Catch:{ XmlPullParserException -> 0x0030, IOException -> 0x007e }\n goto L_0x0056;\n L_0x00c7:\n r0 = move-exception;\n if (r1 == 0) goto L_0x00cd;\n L_0x00ca:\n r1.close();\t Catch:{ IOException -> 0x00d0 }\n L_0x00cd:\n throw r0;\n L_0x00ce:\n r0 = move-exception;\n goto L_0x0050;\n L_0x00d0:\n r1 = move-exception;\n goto L_0x00cd;\n L_0x00d2:\n r0 = move-exception;\n goto L_0x0050;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.support.v7.internal.widget.p.j():void\");\n }", "title": "" }, { "docid": "f230229f0d1d544d4c852f057d05e1cb", "score": "0.5033339", "text": "private void printDiagnostic(Image image) {\n\t\tSystem.out.printf(\"%s\\tCost: %.3f\\tLabel: %d\\t Guess: %d\\n\",(image.label == getGuess() ? \"CORRECT\" : \"WRONG\"),getCost(image.getOutput()), image.label, getGuess());\n\t}", "title": "" }, { "docid": "6dea03088ae258cd86342e682ad1ed5a", "score": "0.50329703", "text": "@Test\n\tpublic void getViolationsByPhysicalPath() {\n\t}", "title": "" }, { "docid": "77a93260ec922d9601d9f26400afe268", "score": "0.5031821", "text": "private String[] traceback(String aInit, String bInit, int a, int b, int result) {\n\t\t\n\t\tint value = result;\n\t\t\n\t\tString[] trace = findSolution(aInit, bInit, 0,0, \"\", \"\");\n\t\t\n\t\treturn trace;\n\t}", "title": "" }, { "docid": "b1568b1efac55e299dd36ba8d8edff60", "score": "0.50288254", "text": "public void generateResults(){\n \n List<String> unusedImports = eI.unusedImportDetection();\n HashMap<Integer, String> redundantModifiers = eI.redundantInterfaceModifiers();\n List<String> invalidGenerics = eI.invalidGenericUsage();\n List<String> nestedTernary = eI.detectNestedTernaryOperators();\n List<String> ternaryUsage = eI.detectTernaryOperators();\n List<String> modifierOrder = eI.detectModifierOrder();\n //System.out.println(eI.getFileName() + \" here1\");\n \n List<String> output = new ArrayList<>();\n output.add(\"-----------------------------------------------------------------------------------------------\");\n output.add(\"\\n----------------------------Code Issues Detected-----------------------------------\");\n output.add(\"\\n-----------------------------------------------------------------------------------------------\\n\");\n \n if(!unusedImports.isEmpty()){\n output.add(\"\\nUnused imports detected!\\n\");\n for(String unused : unusedImports){\n output.add(\"\\n\"+unused);\n }\n output.add(\"\\n\\n-----------------------------------------------------------------------------------------------\");\n output.add(\"\\nRecommendation: Remove unused imports to improve overall complilation time and maintainance time.\");\n output.add(\"\\n\\n-----------------------------------------------------------------------------------------------\");\n output.add(\"\\n--------------This issue can be fixed using the application--------------------\");\n output.add(\"\\n-----------------------------------------------------------------------------------------------\\n\");\n count++;\n }\n \n if(!redundantModifiers.isEmpty()){\n output.add(\"\\nRedundant access modifiers usage in interfaces detected!\\n\");\n for(Integer key : redundantModifiers.keySet()){\n String interfaceName = redundantModifiers.get(key);\n \n int indexOfInterface = eI.getIndexOf(interfaceName);\n String interfaceLine = eI.getLineOfCode(indexOfInterface); \n \n output.add(\"\\n\" + interfaceLine + \" : Line \" + (indexOfInterface + 1));\n output.add(\"\\n\" + eI.getLineOfCode(key + indexOfInterface) + \" : Line \" + (key + indexOfInterface + 1) + \"\\n\");\n }\n output.add(\"\\n\\n-----------------------------------------------------------------------------------------------\");\n output.add(\"\\nRecommendation: Remove the redundant access modifier from the interface method.\");\n output.add(\"\\nIf the interface is public, methods access modifier will public as well.\");\n output.add(\"\\nExample: \");\n output.add(\"\\npublic interface Clockwork {\");\n output.add(\"\\n\\tint getTimeNow();\");\n output.add(\"\\n};\");\n output.add(\"\\n\\n-----------------------------------------------------------------------------------------------\");\n output.add(\"\\n--------------This issue can be fixed using the application--------------------\");\n output.add(\"\\n-----------------------------------------------------------------------------------------------\\n\");\n count++;\n }\n \n if(!invalidGenerics.isEmpty()){\n output.add(\"\\nInvalid Generics Usage In Constructors detected!\\n\");\n for(String line : invalidGenerics){\n \n List<String> originalFile = eI.getOriginalFile();\n \n int indexOfLine = originalFile.indexOf(line); \n \n output.add(\"\\n\" + line.trim() + \" : Line \" + (indexOfLine + 1));\n }\n output.add(\"\\n\\n-----------------------------------------------------------------------------------------------\");\n output.add(\"\\nRecommendation: Remove generics usage in the constructor if the declaration already have generics \");\n output.add(\"\\nExample: List<String> newList = ArrayList<>()\");\n output.add(\"\\n\\n-----------------------------------------------------------------------------------------------\");\n output.add(\"\\n--------------This issue can be fixed using the application--------------------\");\n output.add(\"\\n-----------------------------------------------------------------------------------------------\\n\");\n count++;\n }\n \n if(!ternaryUsage.isEmpty()){\n output.add(\"\\nTernary operators usage detected!\\n\");\n for(String line : ternaryUsage){\n List<String> originalFile = eI.getOriginalFile();\n \n int indexOfLine = originalFile.indexOf(line); \n \n output.add(\"\\n\" + line.trim() + \" : Line \" + (indexOfLine + 1));\n }\n output.add(\"\\n\\n-----------------------------------------------------------------------------------------------\");\n output.add(\"\\nRecommendation: Ternary operators usage is not recommended. \"\n + \"\\nNesting ternary operator will increase congnitive complexity.\"\n + \"\\nConvert the nested ternary operators to if-else conditions\");\n output.add(\"\\n\\n-----------------------------------------------------------------------------------------------\");\n output.add(\"\\n--------------This issue can be fixed using the application--------------------\");\n output.add(\"\\n-----------------------------------------------------------------------------------------------\\n\");\n count++;\n }\n \n if(!nestedTernary.isEmpty()){\n output.add(\"\\nNested ternary operators detected!\\n\");\n for(String nested : nestedTernary){\n List<String> originalFile = eI.getOriginalFile();\n \n int indexOfLine = originalFile.indexOf(nested); \n \n output.add(\"\\n\" + nested.trim() + \" : Line \" + (indexOfLine + 1));\n }\n output.add(\"\\n\\n-----------------------------------------------------------------------------------------------\");\n output.add(\"\\nRecommendation: Ternary operators should not be nested. \"\n + \"\\nNesting ternary operator will increase congnitive complexity.\"\n + \"\\nConvert the nested ternary operators to if-else conditions\");\n output.add(\"\\n\\n-----------------------------------------------------------------------------------------------\"); \n output.add(\"\\n-----------------------------------------------------------------------------------------------\\n\");\n count++;\n }\n \n if(!modifierOrder.isEmpty()){\n output.add(\"\\nInvalid modifier order detected!\\n\");\n for(String mod : modifierOrder){\n List<String> originalFile = eI.getOriginalFile();\n \n int indexOfLine = originalFile.indexOf(mod); \n \n output.add(\"\\n\" + mod.trim() + \" : Line \" + (indexOfLine + 1));\n }\n output.add(\"\\n\\n-----------------------------------------------------------------------------------------------\");\n output.add(\"\\nRecommendation: Modifiers should be declared in the correct order. \"\n + \"\\nThe Java Language Specification recommends listing modifiers in the following order:\"\n + \"\\n public\"\n + \"\\n protected\"\n + \"\\n private\"\n + \"\\n abstract\"\n + \"\\n static\"\n + \"\\n final\"\n + \"\\n transient\"\n + \"\\n volatile\"\n + \"\\n synchronized\"\n + \"\\n native\"\n + \"\\n strictfp\"\n );\n output.add(\"\\n\\n-----------------------------------------------------------------------------------------------\"); \n output.add(\"\\n-----------------------------------------------------------------------------------------------\\n\");\n count++;\n }\n \n for(String detections : output){\n this.jTextArea1.append(detections);\n }\n \n this.jTextField1.setText(count + \"\");\n \n// for(int i = 0; i < this.lineByLineSize.size(); i++){\n// this.totalComplexity += this.lineByLineSize.get(i);\n// }\n// \n// DefaultTableModel dataModel = (DefaultTableModel) this.jTable1.getModel();\n// for(int i = 0; i < this.codeLines.size(); i++) {\n// Object o[] = new Object[2];\n// o[0] = this.codeLines.get(i);\n// o[1] = this.lineByLineSize.get(i);\n// dataModel.addRow(o);\n// }\n// this.jTable1.setAutoResizeMode(JTable.AUTO_RESIZE_SUBSEQUENT_COLUMNS);\n// \n// for (int i = 0; i < 1; i++) {\n// DefaultTableColumnModel colModel = (DefaultTableColumnModel) this.jTable1.getColumnModel();\n// TableColumn col = colModel.getColumn(i);\n// int width = 0;\n// int height = 0;\n//\n// TableCellRenderer renderer = col.getHeaderRenderer();\n// for (int r = 0; r < this.jTable1.getRowCount(); r++) {\n// renderer = this.jTable1.getCellRenderer(r, i);\n// Component comp = renderer.getTableCellRendererComponent(this.jTable1, this.jTable1.getValueAt(r, i),\n// false, false, r, i);\n// width = Math.max(width, comp.getPreferredSize().width);\n// height = Math.max(height, comp.getPreferredSize().height);\n// }\n// }\n// \n// this.jTextField1.setText(this.totalComplexity + \" \");\n// this.jTextField2.setText(this.commentsCount + \" \");\n// this.jTextField3.setText(Math.round(this.commentPercentage * 10000.0)/100.0 + \"% \");\n }", "title": "" }, { "docid": "de840f2ac9d35d65c830d3f93e767ad2", "score": "0.5027846", "text": "private void checkLineInformation() {\n for(KeywordInstance key : keywords) {\n switch(key.getKeyword()) {\n case \"public\" :\n createErrorWithKeyword(key, \"Public variable found.\", \"public\", \"public\");\n break;\n\n case \"constant\" :\n checkConstantSyntax(key);\n break;\n\n case \"variable\" :\n checkVariableSyntax(key);\n break;\n\n default :\n checkKeywordSpacing(key);\n\n }\n }\n }", "title": "" }, { "docid": "c68c52eaf5f49c0017e39709757b828a", "score": "0.50216573", "text": "@Override\n public int checkInformation() {\n return 2;\n }", "title": "" }, { "docid": "e98cc78f2a1d7245ed86906208cbd8f6", "score": "0.5015766", "text": "public void test_ErrWrn() {\n Itk.dbgMsgMethodInfo() ;\n\n Itk.dbgErr(\"foooooo\") ;\n Itk.dbgWrn(\"barrrrr\") ;\n Itk.dbgErr(\"serious\",\"hogehoge\") ;\n Itk.dbgWrn(\"normal\",\"fugafuga\") ;\n }", "title": "" }, { "docid": "5accd75bb31ff77cf3ee6d5901a57edd", "score": "0.501575", "text": "final private void printCandidates(){\n\t\tcl.printData();\n\t}", "title": "" }, { "docid": "fec7afafd80a20b7c9877fc2ad42c566", "score": "0.50136197", "text": "protected void analyzeStructure(ProgramAST program) { }", "title": "" }, { "docid": "e47a8940a09e1e2265cba5091edf5dae", "score": "0.5005226", "text": "public void runOn(){\n\t\tPoint foundGoal = search(Helper.toBooleanArr(maze), start, goal);\n\t\tHelper.printOutWithPath(Helper.toCharArr(input), foundGoal);\n\t}", "title": "" }, { "docid": "b3b3b9659b1b1ae7ee8387d22655cf84", "score": "0.5001712", "text": "void sm() {\n\t\tSystem.out.println(\" to check over loading n riding ->>child\");\n\t}", "title": "" }, { "docid": "ef6d7d9cedc56880449e8d44a0440ead", "score": "0.49971327", "text": "@Override\n\tpublic int search() {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "3e952e0868bc467a4dee64798b5ab332", "score": "0.49967766", "text": "@Override\n\tpublic void foundSSBegin() {\n\n\t}", "title": "" }, { "docid": "78191ca5ac5a94ced151d147ba2ff1e0", "score": "0.49960655", "text": "private static void runTestCWE9() {\r\n}", "title": "" }, { "docid": "5fdd8dcd73346d27c355efb362e795a9", "score": "0.498236", "text": "private static void runTestCWE4() {\r\n}", "title": "" }, { "docid": "29542b53ee79fdebb1b1609b739dc16a", "score": "0.49726486", "text": "public void performBasicSearch() {\n final ArrayList<Attribute> selectedAttributes = basicFindPanel.getSelectedAttributes();\n final String findString = basicFindPanel.getFindString();\n final boolean regex = basicFindPanel.hasRegex();\n final boolean ignoreCase = basicFindPanel.isIgnorecase();\n final boolean matchWholeWord = basicFindPanel.isExactMatch();\n final BasicFindPlugin basicfindPlugin = new BasicFindPlugin(type, selectedAttributes, findString, regex, ignoreCase, matchWholeWord, chkAddToSelection.isSelected());\n PluginExecution.withPlugin(basicfindPlugin).executeLater(graphNode.getGraph());\n }", "title": "" }, { "docid": "825f684d724875328d7f6876c704b071", "score": "0.4971647", "text": "public static void main(String[] args) {\n\t\tint[] a = new int[] { 11, 15, 17, 19, 23, 30, 35, 41, 45 };\n\t\tSystem.out.println(\"search \" + search(a, 0));\n\n\t}", "title": "" }, { "docid": "190f2d0b53cb17bebad57e2eb01efe51", "score": "0.49693495", "text": "private static void runTestCWE2() {\r\n}", "title": "" }, { "docid": "9ccbf4d0af361387ac7991284bb07ca1", "score": "0.4954123", "text": "public static void main( String[] args ) {\n\n\t\tboolean checked = false;\n\t\ttry{\n\t\t\tchecked = checkParams( args );\n\t\t} catch ( Exception e ){\n\t\t\tSystem.out.println( e.getMessage() );\n\t\t}\n\t\t\n\t\tif ( checked ) {\n\t\t\tif ( SearchConstant.PARAM_HELP.equals( args[0] ) )\n\t\t\t\tSystem.out.println( getHelp() );\n\t\t\t\n\t\t\telse{\n\t\t\t\t// TODO -> OK, maybe a Map <String,String>, for instance SearchConstan, value ???\n\t\t\t\tString fileToFind\t= null;\n\t\t\t\tString textInFile\t= null;\n\t\t\t\tString path\t\t\t= null;\n\t\t\t\t\n\t\t\t\t\n\t\t\t\ttry{\n\t\t\t\t\tint i = 0;\n\t\n\t\t\t\t\twhile(i < args.length) {\n\t\t\t\t\t\tif ( args[i].equalsIgnoreCase( SearchConstant.PARAM_FIND) )\n\t\t\t\t\t\t\tfileToFind = args[++i];\n\t\t\t\t\t\telse if ( args[i].equalsIgnoreCase( SearchConstant.PARAM_TEXT) )\n\t\t\t\t\t\t\ttextInFile = args[++i];\n\t\t\t\t\t\telse{\n\t\t\t\t\t\t\tpath = args[i];\n\t\t\t\t\t\t\ti++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} catch ( Exception e){\n\t\t\t\t\tSystem.out.println(\"Argument error, Type \" + SearchConstant.PARAM_HELP + \" for help\");\n\t\t\t\t}\n\n\t\t\t\tList<String> paths = null;\n\t\t\t\ttry {\n\t\t\t\t\tif ( fileToFind != null && path != null){\n\t\t\t\t\t\tpaths = getPaths(fileToFind, path, textInFile);\n\t\t\t\t\t\t\n\t\t\t\t\t\tif ( paths == null || paths.isEmpty() )\n\t\t\t\t\t\t\tSystem.out.println( \"No result found\" );\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tfor ( String completedPath:paths )\n\t\t\t\t\t\t\t\tSystem.out.println( completedPath );\n\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tSystem.out.println( e.getMessage() );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "6f90b4b523d4aef523e27f78a9485a72", "score": "0.4953915", "text": "@Override\n\tpublic void foundLine(int arg0, int arg1, int arg2) {\n\n\t}", "title": "" }, { "docid": "2d474f95bf47ff5e0fc1e8e7f004f98f", "score": "0.49535882", "text": "String describe();", "title": "" }, { "docid": "e9be2e53db2327570b7eac1c913013bb", "score": "0.49531642", "text": "private static int usage() {\n System.err.println(\"usage: bugreport --monkey MONKEYLOG --html HTML --logcat SYSTEMLOG\"\n + \" BUGREPORT\\n\");\n return 1;\n }", "title": "" }, { "docid": "dbbffa6e43f5acd3536c7017a290c073", "score": "0.4945536", "text": "public static void main(String[] args) {\n\t\tMoAndNullError obj=new MoAndNullError();\n\t\t//obj.search(null); //ambiguos compile time Error\n\t\t\n\t}", "title": "" }, { "docid": "c08bd768ec48fa89ecb956f71683f561", "score": "0.49441418", "text": "private static void test_SimpleInsertAndFind(IndexedFile indexedFile){\n\t\t\t++testRan;\n\t\t\tboolean passed = true;\n\t\t\tpassed = indexedFile.insertRecord(\"Snargle, Mount#United States#237\".toCharArray());\n\t\t\tpassed = indexedFile.findRecord(\"SnowShoe peak\".toCharArray());\n\t\t\tif(passed == true){\n\t\t\t\tSystem.out.println(\"----------------------------Passed SimpleInsertAndFind-----------------------------\");\n\t\t\t\t++numberOfPassingTest;\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"----------------------------Failed SimpleInsertAndFind------------------------------\");\n\t\t\t\t++numberOfFailingTest;\n\t\t\t}\n\t\t\t++testRan;\n\t\t\tpassed = indexedFile.findRecord(\"Pizza\".toCharArray());\n\t\t\tif(passed == false){\n\t\t\t\tSystem.out.println(\"Pizza is not in the list\");\n\t\t\t\tSystem.out.println(\"----------------------------Passed SimpleInsertAndFind#2-----------------------------\");\n\t\t\t\t++numberOfPassingTest;\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"----------------------------Failed SimpleInsertAndFind#2------------------------------\");\n\t\t\t\t++numberOfFailingTest;\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "92a44dae64dd54e6af4fa33ecb8a2040", "score": "0.49404556", "text": "public interface Diagnostic {\n\n\t/**\n\t * Get a unique id (description) of the diagnostic. Please stay alphanumeric\n\t * + space there. Ex : \"Checking universe file existence on the system\"\n\t * \n\t * @return\n\t */\n\tString getUniqueID();\n\n\t/**\n\t * Start the diagnostic and return a DiagnosticResult. Diagnostic should be\n\t * idempotent and leave the situation unchanged.\n\t * \n\t * @throws UnexplainableException\n\t * if something unexpected occured during the correction\n\t */\n\tDiagnosticResult attemptDiagnostic() throws UnexplainableException;\n\n\t/**\n\t * Return a correction for the diagnostic.\n\t * \n\t * @param diagnosticResult\n\t * diagnostic result.\n\t * @return a correction\n\t */\n\tCorrectiveAction getCorrection(DiagnosticResult diagnosticResult) throws NoResultException;\n\n\t/**\n\t * Initiate a new diagnostic result.\n\t * \n\t * @param success\n\t * true if the diagnostic is in success\n\t * @param machineMessage\n\t * the machine-readable message.\n\t * @param humanMessage\n\t * the human readable message.\n\t * @param universeService\n\t * the universe service.\n\t * @return a Diagnosticresult object\n\t */\n\tpublic default DiagnosticResult newResult(final boolean success, final String machineMessage,\n\t\t\tfinal String humanMessage, final DiagnosticStateService diagnosticStateService) {\n\t\tfinal DiagnosticResult.Builder result = DiagnosticResult.newBuilder();\n\t\tresult.setSuccess(success);\n\t\tresult.setHumanMessage(humanMessage);\n\t\tresult.setMachineMessage(machineMessage);\n\t\tresult.setStability(diagnosticStateService.computeDiagnosticStability(this, machineMessage));\n\t\tresult.setDiagnosticId(this.getUniqueID());\n\t\treturn result.build();\n\t}\n\n\t/**\n\t * A generic static method allowing to quickly provide a failing \"not\n\t * implemented\" diagnostic for a system.\n\t * \n\t * @param system\n\t * system\n\t * @param universeService\n\t * universe service\n\t * @return a list of diagnostic containing one failing \"not implemented\"\n\t * diagnostic.\n\t */\n\tpublic static List<Diagnostic> notImplemented(final SDBSystem system,\n\t\t\tfinal DiagnosticStateService diagnosticStateService) {\n\t\tfinal List<Diagnostic> result = new ArrayList<Diagnostic>();\n\n\t\tresult.add(new Diagnostic() {\n\n\t\t\t@Override\n\t\t\tpublic String getUniqueID() {\n\t\t\t\treturn system.getUniqueID() + \"-diagnostic-not-implemented\";\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic DiagnosticResult attemptDiagnostic() throws UnexplainableException {\n\t\t\t\treturn this.newResult(false, \"not-implemented\", \"No diagnostic implemented for this system\",\n\t\t\t\t\t\tdiagnosticStateService);\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic CorrectiveAction getCorrection(final DiagnosticResult diagnosticResult) throws NoResultException {\n\t\t\t\tthrow new NoResultException();\n\t\t\t}\n\n\t\t});\n\n\t\treturn result;\n\t}\n\n}", "title": "" }, { "docid": "6ac5d09fc16959c88c423d4e2638cb1a", "score": "0.49379835", "text": "void analyze(Collection<CsmErrorInfo> errors) throws Exception;", "title": "" }, { "docid": "adb19369ca76c7f5bc65ea5c42de3458", "score": "0.49346587", "text": "public static void main(String[] args) {\n\t\tTextSearch ts = new TextSearch(\"fewf.sdfwe.fweef.sds.\", \".\");\r\n\t\tSystem.out.println(ts.next() + \":\" + ts.getSourceText().substring(ts.getLastIndex(), ts.getIndex() - 1));\r\n\t\tSystem.out.println(ts.next() + \":\" + ts.getSourceText().substring(ts.getLastIndex(), ts.getIndex() - 1));\r\n\t\tSystem.out.println(ts.next() + \":\" + ts.getSourceText().substring(ts.getLastIndex(), ts.getIndex() - 1));\r\n\t\tSystem.out.println(ts.next() + \":\" + ts.getSourceText().substring(ts.getLastIndex(), ts.getIndex() - 1));\r\n\t\t// System.out.println(ts.next());\r\n\t\t// System.out.println(ts.next()+\":\"+ts.getBeforeText().substring(0,ts.getLastIndex()));\r\n\t\t// System.out.println(ts.next());\r\n\r\n\t}", "title": "" }, { "docid": "93e1107fb172458a6fbab8f85a676309", "score": "0.4934285", "text": "private void findInterceptions()\n {\n maxDepth = 0;\n arrayIteration = 1;\n\n while (arrayIteration < list.size())\n {\n nextDepth(1);\n arrayIteration ++;\n }\n\n\n output.append(maxDepth);\n\n\n }", "title": "" }, { "docid": "3c211130531f182e3e61feb52ddac441", "score": "0.49309504", "text": "void fail (String mode, String trace) {\r\n // System.out.println(\"Match failed (\"+mode+\") \"+trace);\r\n }", "title": "" }, { "docid": "7d34fb3013ba79023fc4370aa107f7e5", "score": "0.49306774", "text": "private static void runTestCWE7() {\r\n}", "title": "" }, { "docid": "c97eee1e6a81134435121f4039bed763", "score": "0.49302474", "text": "public void printUsage() {\n\t\tSystem.out.println(\"\\nUsage: ./weblog_helper --ip <IP>\" + \"\\n\" + \"IP: A valid source IP address or IP CIDR network\\n\");\n\t}", "title": "" }, { "docid": "d756524682e8fdac12678683bd971f36", "score": "0.4929487", "text": "private void scanKeyWords() {\n\t}", "title": "" }, { "docid": "e0bb397e25987245385dd8673d65e55d", "score": "0.49281922", "text": "public static void printAreas(String a, String b, String c) throws FileNotFoundException\n\t{\n\tString check = \"false\";\n\tString key = a + \"_\"+b+\"_\"+c;\n\tAVLTree<LSObject> AVLobj = new AVLTree<LSObject> ();\n DataCollection(\"Load_Shedding_All_Areas_Schedule_and_Map.clean.final.txt\",AVLobj);\n\t\n\ttry{\n\tString value2 = AVLobj.find(new LSObject(key,\"\")).data.getZones();\n\tSystem.out.format(\"match found was %s \",key);\n\tSystem.out.println(\"Which means load shedding of: \");\n\tSystem.out.format(\"Stage %s , on the %sth , at %s:00 \",a,b,c);\t\t\t\n\tSystem.out.format(\"At zone %s \",value2);\n\tSystem.out.println(\"\");\n\tSystem.out.format(\"Number of insert comparisons is %d \", AVLobj.countInsert());\n\tSystem.out.println(\"\");\n\tSystem.out.format(\"Number of search comparisons is %d \", AVLobj.countFind());\n\tSystem.out.println(\"\");\n\t }\n\tcatch(NullPointerException e) \n { \n\tSystem.out.format(\"no match was found for: %s\",key);\n\tSystem.out.println(\"\");\n\tSystem.out.format(\"Number of insert comparisons is %d \", AVLobj.countInsert());\n\tSystem.out.println(\"\");\n\tSystem.out.format(\"Number of search comparisons is %d \", AVLobj.countFind());\n\tSystem.out.println(\"\");} \t\t\t\n\t\t\t\t\n\t}", "title": "" }, { "docid": "016f5d2c5ac5817d3d1fdd01a5d77c32", "score": "0.4927517", "text": "private void errorTest2() {\n\t\t\r\n\t}", "title": "" }, { "docid": "04b40cd9b75e4dd015cf417831aa4518", "score": "0.49175197", "text": "private static void printUsage() {\r\n\t\tSystem.out.print(usageMsg);\r\n\t}", "title": "" }, { "docid": "d02f338502a675ab2ec0ee30aefb6aa6", "score": "0.4906356", "text": "private static void runTestCWE5() {\r\n}", "title": "" }, { "docid": "64647b6dac39ec9c88c808ff4d1c6e78", "score": "0.48930252", "text": "private boolean checkAvailableAndSetFindUtil()\n {\n final String[] findExecutables =\n { \"gfind\", \"find\" };\n for (final String findExec : findExecutables)\n {\n final String findExecutableOrNull = checkFindExecutable(findExec);\n if (findExecutableOrNull != null)\n {\n setAndLogFindExecutable(findExecutableOrNull);\n return true;\n }\n }\n return false;\n }", "title": "" }, { "docid": "a01c22485d1a85e5dc018597025f99e7", "score": "0.48918632", "text": "private static void test_findSimpleInsert(IndexedFile indexedFile){\n\t\tboolean passed = true;\n\t\t++testRan;\n\t\tpassed = indexedFile.insertRecord(\"Mountain Number 3#United States#22237\".toCharArray());\n\t\tpassed = indexedFile.findRecord(\"Mountain Number 3\".toCharArray());\n\t\tif(passed == true){\n\t\t\tSystem.out.println(\"----------------------Passed findSimpleInsert------------------------\");\n\t\t\t++numberOfPassingTest;\n\t\t} else {\n\t\t\tSystem.out.println(\"----------------------Failed findSimpleInsert-------------------------\");\n\t\t\t++numberOfFailingTest;\n\t\t}\n\t}", "title": "" }, { "docid": "6d4d4b2b9e46a58bf6702165b3bea1af", "score": "0.4890022", "text": "static int find(int x) {\n\t\treturn logFind(x);\n\t}", "title": "" }, { "docid": "25c5e0d78b8284b5d5fc754ef1c86b24", "score": "0.48897195", "text": "private void finalCatch (String selectorString, String...args) {\r\n \tif (Arrays.asList(args).contains(\"test\")) {\r\n \t\tLog.logEntry(Log.elemNotFound_error(selectorString));\r\n\t\t\tAssert.fail(Log.elemNotFound_error(selectorString));\r\n\t\t} else {\r\n\t\t\tLog.logEntry(Log.elemNotFound_warn(selectorString));\r\n\t\t}\r\n }", "title": "" }, { "docid": "ad539e03c278fe9ebbe75568245233e3", "score": "0.48857707", "text": "private static void runTestCWE1() {\r\n}", "title": "" } ]
6605df09109157649180145482b582f1
to sign in user
[ { "docid": "11c2a00bc12fca9e7f673e86cd649956", "score": "0.70275307", "text": "private void signIn() {\n // this will show up a popup to user with email id to be selected to login\n Intent signInIntent = mGoogleSignInClient.getSignInIntent(); // intent to select google account\n startActivityForResult(signInIntent, RC_SIGN_IN); // launch the intent\n }", "title": "" } ]
[ { "docid": "2c89290fef71f4c3a1074b703e412855", "score": "0.76269186", "text": "@Override\n public void signin() {\n }", "title": "" }, { "docid": "305de1e724ee53a29320d57b958c15f9", "score": "0.7483899", "text": "public void signIn(View view) {\n String name = username.getText().toString();\n String pass = password.getText().toString();\n UserAccount user = userManager.signIn(name, pass);\n if (user != null) {\n Intent intent = new Intent(this, MenuActivity.class);\n startActivity(intent);\n }\n }", "title": "" }, { "docid": "68fa8545482a166ddeb503a44f403e3f", "score": "0.7442237", "text": "public void userSignIn() {\n\n if (!exists()) {\n dBHandler.registerUser(password, userMail, userName, LocalDate.of(1997, 1, 1), false);\n exists();\n }\n\n //Redirect to HomePage\n try {\n ExternalContext externalContext = FacesContext.getCurrentInstance().getExternalContext();\n Map<String, Object> sessionMap = externalContext.getSessionMap();\n sessionMap.put(\"user\", user);\n sessionMap.put(\"univ\", universityName);\n\n FacesContext.getCurrentInstance().getExternalContext().redirect(\"faces/home.xhtml\");\n } catch (IOException ex) {\n Logger.getLogger(\"Could not redirect.\");\n }\n\n }", "title": "" }, { "docid": "b30ce02ab9605ead27d0bbec89748992", "score": "0.7351295", "text": "private void signIn(){\n Intent signInIntent = mClient.getSignInIntent();\n startActivityForResult(signInIntent, RC_SIGN_IN);\n }", "title": "" }, { "docid": "e2b3eea13107f6c7e444d31d228ce529", "score": "0.7319556", "text": "private void signIn() {\n Intent intent = mSignInClient.getSignInIntent();\n startActivityForResult(intent, RequestCodes.RC_SIGN_IN);\n }", "title": "" }, { "docid": "da515f244c4a8fb8d9b5043ac47e1c98", "score": "0.7286235", "text": "@Override\n protected void signIn(String userName, String password) {\n }", "title": "" }, { "docid": "00f0f423a048fa6058c3cecd6247aca0", "score": "0.7269414", "text": "void logInByOptionalSignIn();", "title": "" }, { "docid": "157fbd2793199d8c9830aff024d16ef7", "score": "0.7132652", "text": "public void signInUser() {\n String username = loginUsername.getText();\n String password = loginPassword.getText();\n\n Employee currentEmployee = database.loginEmployee(username, password);\n\n if (currentEmployee != null) {\n // Navigate elsewhere.\n crossfadeViews(welcomeUserContainer, loginContainer, employeeStackRoot, 150);\n populateWelcomeView(currentEmployee);\n\n } else {\n snackbar.enqueue(new SnackbarEvent(new JFXSnackbarLayout(\"Invalid username or password!\")));\n }\n }", "title": "" }, { "docid": "771b0ef3e79835877f449b4d8b5df101", "score": "0.70840406", "text": "public void onClick(View v) {\n signIn(editTextEmail.getText().toString(), editTextPassword.getText().toString());\n }", "title": "" }, { "docid": "771b0ef3e79835877f449b4d8b5df101", "score": "0.70840406", "text": "public void onClick(View v) {\n signIn(editTextEmail.getText().toString(), editTextPassword.getText().toString());\n }", "title": "" }, { "docid": "5e875bc43771d6062ace0bb3f1dc395f", "score": "0.70822924", "text": "private static void signIn() {\n\t\tCredentials user = getVerifiedUser(\"signIn\");\n\t\tif(user == null) {\n\t\t\treturn;\n\t\t}\n\t\tif(bankHash.containsKey(user)) {\n//\t\t\tSystem.out.println(\"Retrieving account details\");\n\t\t\tAccountInfo acc = bankHash.get(user);\n\t\t\tSystem.out.println(acc.getAccNum());\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"-1\");\n\t\t}\n\t\t\n//\t\tSystem.out.println(\"\\n\\n\");\n\t}", "title": "" }, { "docid": "16f9d4deeafdcd25e4076374d4e53632", "score": "0.7062081", "text": "private void signIn() {\n Intent signInIntent = mGoogleSignInClient.getSignInIntent();\n startActivityForResult(signInIntent, RC_SIGN_IN);\n }", "title": "" }, { "docid": "c25360d02376bd89929adc0b130757b2", "score": "0.7013289", "text": "public void signIn(){\n \n rememberMe();\n \n if(Validator.isEmpty(txtName.getText()) || Validator.isEmpty(fldPassword.getText())){\n JOptionPane.showMessageDialog(this, \"Don't leave these empty\");\n return;\n }\n \n disableAll();\n ChatClient.getAuthentication(txtName.getText(), fldPassword.getText());\n \n }", "title": "" }, { "docid": "d273c78c5a2f44b585b61779cc1157b8", "score": "0.6999467", "text": "void customizedSignIn(String emailAddress, String password);", "title": "" }, { "docid": "5c646cda87e8acba02e6c3a52ad88bbd", "score": "0.69925183", "text": "public Long signIn(Long userId);", "title": "" }, { "docid": "5c3dce4241866a0d5e66f43c14e11f83", "score": "0.6983087", "text": "private void signIn(){\n Intent signInIntent = mGoogleSignInClient.getSignInIntent();\n startActivityForResult(signInIntent, RC_SIGN_IN);\n }", "title": "" }, { "docid": "da103a9aa10ed42c9012dcacc4acc498", "score": "0.6966073", "text": "public void signInExistingUser(View v) {\n attemptLogin();\n }", "title": "" }, { "docid": "a91c92a829874728ebeeb1969b6f7a7f", "score": "0.69426984", "text": "private void signIn() {\n Intent signInIntent = Auth.GoogleSignInApi.getSignInIntent(mGoogleClient);\n startActivityForResult(signInIntent, SIGN_IN_REQUEST_CODE);\n }", "title": "" }, { "docid": "3628310b13fa43c23113f083976213fb", "score": "0.69123733", "text": "private void signin(){\n if(/*!validateEmail(edtUsername) ||*/ edtPassword.getText().toString().isEmpty())\n return;\n\n if(signinStatus.isShown())\n signinStatus.dismiss();\n signinStatus.setText(\"đang đăng nhập...\").setDuration(Snackbar.LENGTH_INDEFINITE).show();\n\n // dang nhap k can network: mat khau va username da duoc luu truoc do\n if(!pref.getString(R.string.pref_key_user_name, \"null\").equals(\"null\") &&\n !pref.getString(R.string.pref_key_user_password, \"null\").equals(\"null\")){\n\n if(edtUsername.getText().toString().equals(pref.getString(R.string.pref_key_user_name)) &&\n edtPassword.getText().toString().equals(pref.getString(R.string.pref_key_user_password))){\n\n signinStatus.setText(\"đăng nhập thành công\").setDuration(Snackbar.LENGTH_LONG).show();\n\n // chuyen den dashboard activity\n Intent in = new Intent(this, Dashboard.class);\n startActivity(in);\n\n return;\n }\n }\n\n\n\n mAuth.signInWithEmailAndPassword(edtUsername.getText().toString(), edtPassword.getText().toString())\n .addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if (!task.isSuccessful()) {\n // sign in fail\n if(signinStatus.isShown())\n signinStatus.dismiss();\n //signinStatus.setText(\"đăng nhập thất bại, vui lòng thử lại.\").setDuration(Snackbar.LENGTH_INDEFINITE).show();\n signinStatus.setText(task.getException().toString()).setDuration(Snackbar.LENGTH_INDEFINITE).show();\n\n }\n else {\n // User is signed in\n if(signinStatus.isShown())\n signinStatus.dismiss();\n signinStatus.setText(\"đăng nhập thành công\").setDuration(Snackbar.LENGTH_LONG).show();\n \n // chuyen layout\n gotoDashboard(task.getResult().getUser());\n }\n\n }\n });\n }", "title": "" }, { "docid": "ec169ba6832686767743e2fa0bc8da84", "score": "0.6898347", "text": "private void signIn() {\n mAuthStateListener = new FirebaseAuth.AuthStateListener() {\n @Override\n public void onAuthStateChanged(@NonNull FirebaseAuth firebaseAuth) {\n FirebaseUser user = firebaseAuth.getCurrentUser();\n if (user != null) {\n\n } else {\n /*Choose authentication providers*/\n List<IdpConfig> providers = Arrays.asList(\n new AuthUI.IdpConfig.PhoneBuilder().build(),\n new AuthUI.IdpConfig.GoogleBuilder().build());\n\n /*Create and launch sign-in intent*/\n startActivityForResult(\n AuthUI.getInstance()\n .createSignInIntentBuilder()\n .setAvailableProviders(providers)\n .build(),\n RC_SIGN_IN);\n }\n }\n };\n }", "title": "" }, { "docid": "6c9b928923b13d807347221a27cbd1ce", "score": "0.6829929", "text": "public void signIn() {\n startActivityForResult(MobirollerIntent.getGoogleSignInIntent(this, \"\"), 133);\n }", "title": "" }, { "docid": "c722cea8b26e9ccec69958bfc94e307d", "score": "0.67743975", "text": "@Override\n\t public void onClick(View v) {\n\t \tlogMeIn();\n\t \t\n\t \n\t \n\t }", "title": "" }, { "docid": "9e7391857aa9a0cf585a915ac0de5201", "score": "0.6740533", "text": "@Override\r\n public UserInfor login(UserInfor user)\r\n {\n return null;\r\n }", "title": "" }, { "docid": "3d8ad04a4c63843af38802a16287b5f2", "score": "0.6717541", "text": "private void doSignInProcess() {\n // If user exists, do nothing\n // If no user, start sign in process\n FirebaseUser user = mFAuth.getCurrentUser();\n if (user != null) {\n Toast.makeText(getApplicationContext(),\n getString(R.string.already_signed_in_toast) + \" \" +\n user.getDisplayName(),\n Toast.LENGTH_SHORT)\n .show();\n } else {\n Intent signInIntent = Auth.GoogleSignInApi.getSignInIntent(mApiClient);\n startActivityForResult(signInIntent, RC_LOGIN);\n }\n }", "title": "" }, { "docid": "cd40913335fa3e65ac674cf2dc9905a3", "score": "0.6683339", "text": "void login();", "title": "" }, { "docid": "cd40913335fa3e65ac674cf2dc9905a3", "score": "0.6683339", "text": "void login();", "title": "" }, { "docid": "6c2395a8f4e2344d9186f4d49c3b12c1", "score": "0.6653338", "text": "boolean isUserSignedIn();", "title": "" }, { "docid": "c5e42505cb1386008edd7e888d48186f", "score": "0.66151124", "text": "Login login();", "title": "" }, { "docid": "f5ec856c26a69fb08bd02731161946de", "score": "0.6608769", "text": "public String loginUser() {\n RequestContext rc = RequestContext.getCurrentInstance();\n boolean loggedIn = false;\n if (userNick != null && userNick.equals(\"name\") && password != null && password.equals(\"pass\")) {\n loggedIn = true;\n rc.addCallbackParam(\"loggedIn\", loggedIn);\n //FacesContext.getCurrentInstance().getExternalContext().redirect(appContext +\"/main/principal.xhtml\");\n return \"/main/principal.xhtml\";\n } else {\n rc.addCallbackParam(\"loggedIn\", loggedIn);\n return \"login.xhtml\";\n }\n }", "title": "" }, { "docid": "7786dd696a2668d2f9ef09eb3c449b95", "score": "0.660408", "text": "public void signin() {\n\tdriver.findElement(signin).click();\r\n\t}", "title": "" }, { "docid": "7b63b1bbf4db9024b45d2bbab3c99b6b", "score": "0.6567005", "text": "private void goSignInPage() {\n startActivityForResult(\n AuthUI.getInstance()\n .createSignInIntentBuilder()\n .setAvailableProviders(Arrays.asList(\n new AuthUI.IdpConfig.EmailBuilder().build(),\n new AuthUI.IdpConfig.GoogleBuilder().build()))\n .build(),\n RC_SIGN_IN);\n }", "title": "" }, { "docid": "883c6bff7f70ad17b7e0efa16f760ac0", "score": "0.6550082", "text": "public void signIn(View V)\n\n {\n final Dialog dialog = new Dialog(MainActivityLogin.this);\n dialog.setContentView(R.layout.loginactivity);\n dialog.setTitle(\"Login\");\n\n // get the Refferences of views\n final EditText editTextEmail =(EditText)dialog.findViewById(R.id.editTextEmailToLogin);\n final EditText editTextPassword=(EditText)dialog.findViewById(R.id.editTextPasswordToLogin);\n\n Button btnSignIn=(Button)dialog.findViewById(R.id.buttonSignIn);\n\n // Set On ClickListener\n btnSignIn.setOnClickListener(new View.OnClickListener() {\n\n public void onClick(View v) {\n // get The User name and Password\n String userName= editTextEmail.getText().toString();\n String password=editTextPassword.getText().toString();\n\n // fetch the Password form database for respective user name\n String storedPassword=loginDataBaseAdapter.getSinlgeEntry(userName);\n\n\n // check if the Stored password matches with Password entered by user\n if(password.equals(storedPassword))\n {\n Toast.makeText(MainActivityLogin.this, \"Congrats: Login Successfull\", Toast.LENGTH_LONG).show();\n dialog.dismiss();\n\n SharedPreferences login2 =\n getSharedPreferences(\"id.ac.unsyiah.elektro.mobile.bbcv2.PREF_BERSAMA\", Context.MODE_PRIVATE);\n login2.edit().putBoolean(\"cekLogin\", false).apply();\n login2.edit().putString(\"user\", userName).apply();\n\n Intent masuk=new Intent(getApplicationContext(),MainActivity.class);\n startActivity(masuk);\n finish();\n }\n else\n {\n Toast.makeText(MainActivityLogin.this, \"Email or Password does not match\", Toast.LENGTH_LONG).show();\n }\n }\n });\n\n dialog.show();\n }", "title": "" }, { "docid": "313367a01a11a8a3436025ef3c3768dc", "score": "0.6536621", "text": "@PostMapping(\"/signIn\")\n\t\tpublic String signIn(HttpServletRequest request, Model model){\n\t\t\treturn null;\n\t\t}", "title": "" }, { "docid": "778a9881b0e3f7192dc175b69010d4a2", "score": "0.6513147", "text": "private void startSignIn() {\n Intent intent = AuthUI.getInstance().createSignInIntentBuilder()\n .setAvailableProviders(Collections.singletonList(\n new AuthUI.IdpConfig.Builder(AuthUI.EMAIL_PROVIDER).build()))\n .setIsSmartLockEnabled(false)\n .build();\n\n startActivityForResult(intent, RC_SIGN_IN);\n mViewModel.setIsSigningIn(true);\n }", "title": "" }, { "docid": "7b5ccac5b994939dee5770804b3b64a7", "score": "0.64952075", "text": "public static void login(){\r\n }", "title": "" }, { "docid": "47656d54ee4bb086a0404f803e6aa1a0", "score": "0.64903855", "text": "public void loginClicked(String userId, String password);", "title": "" }, { "docid": "0968cd106316568c26c494cfb1a0037b", "score": "0.648869", "text": "private void signIn(String email, String password){\n mAuth.signInWithEmailAndPassword(email, password).addOnCompleteListener(this, new OnCompleteListener<AuthResult>() { //add to listener\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if (!task.isSuccessful()) { //when failed\n Toast.makeText(LoginActivity.this, \"SignIn--Authentication failed.\",Toast.LENGTH_LONG).show();\n } else {\n Intent signInIntent = new Intent(getBaseContext(), MainActivity.class);\n startActivity(signInIntent);\n }\n }\n });\n }", "title": "" }, { "docid": "f9b4a4e98272a61e0f856f9ded8fdbec", "score": "0.64687747", "text": "public String login() {\n User account= tmsFacade.login(userId, password);\n if(account!=null){\n HttpSession session = (HttpSession) FacesContext.getCurrentInstance().getExternalContext().getSession(false);\n session.setAttribute(\"User\", account);\n return \"/protected/home?faces-redirect=true\";\n }\n status=\"Invalid Login, Please Try again\"; \n return \"login\";\n }", "title": "" }, { "docid": "9052be174799e9457bd179c5ed8ac671", "score": "0.6467737", "text": "public void loginClick(View view) {\n\n User user=new User(12,\"Ram\");\n\n SessionManagement sessionManagement=new SessionManagement(LoginActivity.this);\n\n sessionManagement.saveSession(user);\n\n moveToMainActivity();\n }", "title": "" }, { "docid": "8f89277ebd3d7b19ece8f757c156a9b5", "score": "0.6462212", "text": "User getUserLoggedIn();", "title": "" }, { "docid": "dd59710723dbb1a681d9537481e971ee", "score": "0.6451932", "text": "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent myintent = new Intent(v.getContext(), Signin.class);\n\t\t\t\tstartActivityForResult(myintent, 0);\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "510d3c2bbac3a820c92ec5dece4a716b", "score": "0.64459676", "text": "@Override\n public void showSignIn() {\n navigator.handleOpeningAuthSign(getActivity());\n }", "title": "" }, { "docid": "6475aca18593ab0a25210a10c2089943", "score": "0.6444196", "text": "public void signIn(String username, String password)\n {\n Users s = Users.findInstance();\n boolean isUser = s.checkUser(username, password);\n boolean isOwner = s.checkIfOwner(username, password);\n if(isOwner)\n {\n User thisUser = s.getUser(username, password);\n new SellerInventory(thisUser);\n }\n else if(isUser)\n {\n User thisUser = s.getUser(username, password);\n new MainShop(thisUser);\n \n }\n }", "title": "" }, { "docid": "d602f259f1872c9dc2049f07fed20034", "score": "0.6438154", "text": "public Result doLogin() {\n\n String email = request().body().asFormUrlEncoded().get(\"email\")[0];\n String password = request().body().asFormUrlEncoded().get(\"password\")[0];\n String sessionId = getSessionId();\n User u = getUserService().getUser(email, password);\n if (u != null) {\n SessionService.instance.setUserIdForSession(sessionId, u.getId());\n session(\"sessionId\", sessionId);\n session(\"userId\", u.getId());\n } else {\n return ok(views.application.html.register.render(\"email Address or password incorrect\"));\n }\n return redirect(\"/characters\");\n }", "title": "" }, { "docid": "5b407c5dab835b9652f3ba9e51091205", "score": "0.64365226", "text": "public void signInClicked() {\n\t\tLog.e(\"SIGN IN\", \"CLICKED!\");\n\t\tmSignInClicked = true;\n\t\tmGoogleApiClient.connect();\n\t\t//FragMainMenu fragMainMenu= (FragMainMenu) getSupportFragmentManager().findFragmentByTag(FragMainMenu.class.getName());\n\t\t//fragMainMenu.setShowSignIn(false);\n\n\t\tSharedPreferences settings= getSharedPreferences(\"com.yacarex.animequiz\", 0);\n\t\tSharedPreferences.Editor editor= settings.edit();\n\t\teditor.putBoolean(\"AutoSignIn\", true);\n\t}", "title": "" }, { "docid": "e885f07807496ee64ed309469e0c6478", "score": "0.64191353", "text": "@Override\n public void onClick(View v) {\n realizarElLogIn(email.getText().toString(), password.getText().toString());\n }", "title": "" }, { "docid": "2b350033d3bee7356c973032982fbdb2", "score": "0.64174104", "text": "public void login() {\n\n }", "title": "" }, { "docid": "18ea0ff05529c6ed6f9b9099af79f2fb", "score": "0.64158684", "text": "void onSignInSucceeded();", "title": "" }, { "docid": "c901a2bfed882da3244a7d60d342c392", "score": "0.640264", "text": "void signIn(){\n GoogleSignInClient mGoogleSignInClient = GoogleSignIn.getClient(this, GoogleSignInOptions.DEFAULT_GAMES_SIGN_IN);\n\n //Performs the login into the google account\n Intent signInIntent = mGoogleSignInClient.getSignInIntent();\n startActivityForResult(signInIntent, RC_SIGN_IN);\n }", "title": "" }, { "docid": "e749014eb8cd73ec26d175d1d620cc8d", "score": "0.6400668", "text": "public Boolean signIn(View v){\n\n String email = editEmail.getText().toString();\n String password = editPassword.getText().toString();\n\n if(email.equals(\"\") || password.equals(\"\")){\n ToastClass.toastError(this, getString(R.string.error_empty_field));\n return false;\n }\n\n String action = \"signin\";\n\n Map<String, String> dataToPass = new HashMap<>();\n dataToPass.put(\"action\", action);\n dataToPass.put(\"email\", email);\n dataToPass.put(\"password\", password);\n\n //Avoid doing the request\n if(this.gs.getConnected() && email.equals(this.gs.getMyAccount().getEmail())){\n goToMainPage();\n }else{\n\n findViewById(R.id.login_background_gif).setVisibility(View.VISIBLE);\n loader.smoothToShow();\n loader.bringToFront();\n\n RequestClass.doRequestWithApi(this.getApplicationContext(), this.TAG, dataToPass, this::getMyAccount);\n }\n\n return true;\n }", "title": "" }, { "docid": "5af830124311b55c0934d720c99109af", "score": "0.6397345", "text": "public void goToSigninPage(){\n\t\tinfo(\"User Click To SignIn to navigate to SignIn Page\");\n\t\tclick(homePageElems.navigateSignupLink);\n\t}", "title": "" }, { "docid": "92c13e94d5361ba9b56b58f42373b2f3", "score": "0.6394234", "text": "public void signIn(View view) {\n final Intent intent = new Intent(this, FutureAppointmentsActivity.class);\n final String TAG = \"SignIn: \";\n\n // Prepare email and password strings to attempt to log in via Firebase.\n String email = editEmail.getText().toString();\n String password = editPassword.getText().toString();\n\n // Utilize the firebase signin Method\n mAuth.signInWithEmailAndPassword(email, password)\n .addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if (task.isSuccessful()) {\n // Sign in success, send an intent to the FutureAppointmentActivity\n Log.d(TAG, \"signInWithEmail:success\");\n startActivity(intent);\n } else {\n // If sign in fails, display a message to the user.\n Log.w(TAG, \"signInWithEmail:failure\", task.getException());\n Toast.makeText(MainActivity.this, \"Authentication failed.\",\n Toast.LENGTH_SHORT).show();\n }\n }\n });\n }", "title": "" }, { "docid": "b255b0885fdce3020f249b1331038d2e", "score": "0.638985", "text": "Tuser login(Tuser user);", "title": "" }, { "docid": "6e2b6dce796b7dec3d1841f2240544e0", "score": "0.63862383", "text": "public void loginBtnClick(View view){\n check_user_authentication();\n }", "title": "" }, { "docid": "433736cc7198d6348cfb139c570fddef", "score": "0.6386138", "text": "private void login() {\n String username = this.view.getUsername();\n String password = this.view.getPassword();\n\n List<Account> accounts = accountRepository.findBy(\"identifier\", username);\n if (accounts.size() < 1 || !accounts.get(0).validatePassword(password)) {\n this.view.showInvalidCredentials();\n } else {\n System.out.println(\"[INFO] User \" + accounts.get(0).getIdentifier() + \" just logged in\");\n this.view.resetFields();\n new HomeController(accounts.get(0));\n }\n }", "title": "" }, { "docid": "79f8e4abd2a543f13906f5faca0b887c", "score": "0.6380449", "text": "private void loginFirebase() {\n String email = Edtemail.getText().toString();\n String password = Edtpass.getText().toString();\n if (!TextUtils.isEmpty(email) && !TextUtils.isEmpty(password)) {\n mAuth.signInWithEmailAndPassword(email, password).addOnCompleteListener(new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if (task.isSuccessful()) {\n // Dang nhap thanh cong\n userID = FirebaseAuth.getInstance().getCurrentUser().getUid();\n startActivity(new Intent(LaunchActivity.this, ChooseActivity.class).putExtra(\"Uid\", userID));\n\n } else {\n // Dang nhap that bai\n Toast.makeText(LaunchActivity.this, \"Login Failure !\", Toast.LENGTH_LONG).show();\n }\n }\n });\n }\n }", "title": "" }, { "docid": "11e98c2c5ca1bafbe2b35e561f86fcf9", "score": "0.6379616", "text": "@Override\n public void loggedIn() {\n Log.d(TAG, \"logged in, exiting AuthenticationActivity\");\n Intent data = new Intent();\n data.putExtra(IE_LOGGED_IN, true);\n setResult(RESULT_OK, data);\n finish();\n }", "title": "" }, { "docid": "da43b5ffa10469bc0f88e517759cc5b0", "score": "0.63785535", "text": "private void goToLogin() {\n userData.setRegistrationUsername(username.getText());\n userData.setRegistrationPassword(password.getText());\n userData.setRegistrationPasswordRepeat(passwordRepeat.getText());\n\n SerializeUtil.serialize(UserData.USER_DATA_PATH.toString(), userData);\n\n UserInterfaceUtils.makeFadeOutTransition(\n \"/de/uniks/se1ss19teamb/rbsg/fxmls/login.fxml\", apnFade);\n }", "title": "" }, { "docid": "17fb253f87182707912f78aeb666e4f6", "score": "0.6373426", "text": "@And(\"^I am logged in$\")\n\tpublic void log_in(){\n\t\tsignInPage = new SignInPage(driver);\n\t\tsignInPage.LogIn(\"moe@test.com\", \"testtest\");\n\t}", "title": "" }, { "docid": "5082fdd8eef45e5fff264b52ad16c93e", "score": "0.6372323", "text": "@Override\n public void onClick(View v) {\n authParams = new AccountAuthParamsHelper(AccountAuthParams.DEFAULT_AUTH_REQUEST_PARAM).setIdToken().createParams();\n authService = AccountAuthManager.getService(LoginActivity.this, authParams);\n startActivityForResult(authService.getSignInIntent(), 8888);\n\n }", "title": "" }, { "docid": "49a2385dabbdf5dd9f92b646c75ed86a", "score": "0.63677144", "text": "public void autentication() {\n UserLogIn dialog = new UserLogIn(this, true);\n dialog.setVisible(true);\n if (!dialog.isVisible()) {\n if (UserLogIn.log == true) {\n menuLogIn.setEnabled(false);\n menuLogOut.setEnabled(true);\n JOptionPane.showConfirmDialog(null, \"Autenticazione riuscita\", \"Log in eseguita\", JOptionPane.DEFAULT_OPTION, JOptionPane.INFORMATION_MESSAGE);\n }\n }\n }", "title": "" }, { "docid": "535fef456872e057d04193547baf96cf", "score": "0.63606405", "text": "private void onSignInClicked() {\n Intent signInIntent = Auth.GoogleSignInApi.getSignInIntent(mGoogleApiClient);\n startActivityForResult(signInIntent, RC_SIGN_IN);\n\n }", "title": "" }, { "docid": "8ff8762e3aa8e8a64e85c22892b770f1", "score": "0.6354856", "text": "public void loginByCookie() {\n\t\tIntent intent = new Intent();\n\t\tintent.setAction(SplashActivity.ACTION_UPDATE_STATUS);\n\t\tBundle bundle = new Bundle();\n\t\tbundle.putString(SplashActivity.KEY_STATUS_TEXT, \"Signing...\");\n\t\tintent.putExtras(bundle);\n\t\tHeliApplication.getInstance().sendBroadcast(intent);\n\t\t// sent request to server\n\t\tAccountController.requestSignInByToken();\n\t}", "title": "" }, { "docid": "a8b8c99e5f628e735d1639f7bc9a4786", "score": "0.63507235", "text": "public void openSignin (View view) {\r\n Intent i = new Intent(this, SigninActivity.class);\r\n startActivity(i);\r\n this.finish();\r\n }", "title": "" }, { "docid": "4551f3818f5a3fa9444854108c091f45", "score": "0.633877", "text": "public String onLogInButton()\n {\n return memberModel\n .checkLogInCredentials(userName.getValue(), passwordField.getValue());\n }", "title": "" }, { "docid": "32b467a46a4cea7065764647c0d61688", "score": "0.6334823", "text": "boolean userSigning(String userId, String password) throws SQLException, ClassNotFoundException {\n if (Authenticator.validate(userId, password)) {\n loggedUser = User.of(userId);\n //gotoProfile();\n //eshop.home ob = new eshop.home();\n //ob.user(s1);\n //ob.setVisible(true);\n gotoCart();\n return true;\n } else {\n return false;\n }\n }", "title": "" }, { "docid": "980b995e581efb83a1e7a0b3de0603c0", "score": "0.63332915", "text": "private void button_signInActionPerformed(ActionEvent e) {\n\t}", "title": "" }, { "docid": "bc9969a759ea5d904dff302d6cc18059", "score": "0.6325532", "text": "@Override\r\n public void onClick(View v) {\n Intent i = new Intent(Signin.this,Register.class);\r\n i.putExtra(\"username\",enteredUsername);\r\n i.putExtra(\"password\",enteredPassword);\r\n startActivity(i);\r\n }", "title": "" }, { "docid": "cb6640c5cfe0795b823ee9b10cc29cb9", "score": "0.63212776", "text": "public void LogIn(View view) {\n Intent i = new Intent(this, Owner_Profile_Activity.class);\n startActivity(i);\n\n }", "title": "" }, { "docid": "bfdbecd7dd4e53ba0fea34d15f448dae", "score": "0.63099414", "text": "static void onAuthenticated() {\n \t//'username' is set in Session by Secure.authenticate\n \tString username = session.get(\"username\");\n \tList<SocialUser> socialUsers = SocialUser.findAll();\n \tList<User> users = User.findAll();\n \tUser loggedInUser = User.find(\"select u from User u where u.email = ?\", username).first();\n \tsession.put(SocialAuthC.USER, loggedInUser.socialUser.id);\n }", "title": "" }, { "docid": "3ddfce988f1556fdb7d37711ed5e3435", "score": "0.6307584", "text": "private void userLogin() {\n\n String uName =edtUserName.getText().toString().trim();\n String pass =edtPass.getText().toString().trim();\n\n if(uName.isEmpty()){\n edtUserName.setError(\"Eposta adresi boş !\");\n edtUserName.requestFocus();\n return;\n }\n if(!Patterns.EMAIL_ADDRESS.matcher(uName).matches()){\n edtUserName.setError(\"Eposta adresi\");\n edtUserName.requestFocus();\n return;\n }\n if(pass.isEmpty()){\n edtPass.setError(\"Şifre adresi boş !\");\n edtPass.requestFocus();\n return;\n }\n if(pass.length()<6){\n edtPass.setError(\"Minumum 6 karakter olmalıdır.\");\n edtPass.requestFocus();\n return;\n }\n\n\n // Firebase\"e email ve sifre ile giris islemi\n mAuth.signInWithEmailAndPassword(uName,pass).addOnCompleteListener(new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if(task.isSuccessful()){\n Toast.makeText(MainActivity.this, \"Giriş Yapılıyor LÜTFEN BEKLEYİNİZ...\", Toast.LENGTH_SHORT).show();\n Intent intent=new Intent(MainActivity.this,HomeActivity.class);\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(intent);\n\n }else{\n Toast.makeText(getApplicationContext(),task.getException().getMessage(),Toast.LENGTH_SHORT).show();\n\n }\n\n }\n });\n }", "title": "" }, { "docid": "fe5b13344211462c2c23130eaaf38ff5", "score": "0.62986714", "text": "public void userLogin(User user);", "title": "" }, { "docid": "f4cca6b10247a3e10563b8cfc8b4a941", "score": "0.62983555", "text": "public void loggedIn(){\n Intent intent = new Intent(getApplicationContext(), LoggedIn.class);\n startActivity(intent);\n }", "title": "" }, { "docid": "84a05678af8869bdc3acf7ff45d9990e", "score": "0.62970865", "text": "protected void signIn() {\n\n // Remoção, Requer o login toda vez que logar\n //Set<Scope> requiredScopes = new HashSet<>(2);\n //requiredScopes.add(Drive.SCOPE_FILE);\n //requiredScopes.add(Drive.SCOPE_APPFOLDER);\n //GoogleSignInAccount signInAccount = GoogleSignIn.getLastSignedInAccount(this);\n //if (signInAccount != null && signInAccount.getGrantedScopes().containsAll(requiredScopes)) {\n // initializeDriveClient(signInAccount);\n // } else {\n\n GoogleSignInOptions signInOptions =\n new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN)\n .requestScopes(Drive.SCOPE_FILE)\n .requestScopes(Drive.SCOPE_APPFOLDER)\n .build();\n\n GoogleSignInClient googleSignInClient = GoogleSignIn.getClient(this, signInOptions);\n startActivityForResult(googleSignInClient.getSignInIntent(), REQUEST_CODE_SIGN_IN);\n //}\n }", "title": "" }, { "docid": "56b11ac0eb08cef81dd55dcbb9e509f4", "score": "0.6272282", "text": "@RequestMapping(\"/login\")\n\tpublic String singInPage(Model model) {\n\t\t//Games games = new Games();\n\t\t//model.addAttribute(\"games\",games.getArray());\n\t\tif(userComponent.isLoggedUser()) {\t\n\t\t\treturn index(model);\t\t\n\t\t}\n\n\t\treturn \"signIn\";\n\t}", "title": "" }, { "docid": "258743a7f950eb2d58f7945387c3b927", "score": "0.6262816", "text": "@Override\n\tpublic void goToLogin() {\n\t\t\n\t}", "title": "" }, { "docid": "f609cd5c3bfa97c50b4493d3269b6654", "score": "0.6258826", "text": "public void logIn(String username);", "title": "" }, { "docid": "a85d442fea12dd88c5c014d4e390b01e", "score": "0.62536055", "text": "@Override\n protected String call() {\n try {\n User user = Login.loginUser(emailTextField.getText()\n .trim());\n LoggedUser.getInstance()\n .setUser(user);\n success = true;\n }\n catch (DatabaseException e) {\n signInText.setErrorText(e.getMessage());\n }\n return null;\n }", "title": "" }, { "docid": "80a301feeb6a5ebeebd5b2d856a0cbcd", "score": "0.6250666", "text": "@Override\n public void onClick(View v) {\n String username = etusername.getText().toString();\n String password = etpassword.getText().toString();\n loginUser(username, password);\n\n }", "title": "" }, { "docid": "7d091fcdf1db12b02fa30d35928476d3", "score": "0.6250164", "text": "User getLoggedInUser();", "title": "" }, { "docid": "7d091fcdf1db12b02fa30d35928476d3", "score": "0.6250164", "text": "User getLoggedInUser();", "title": "" }, { "docid": "16ddb22b84b5815d19d8c53ca0386982", "score": "0.6249199", "text": "public void signIn(final String email, final String password, final View view) {\n saveEmailSharedReferences(email);\n ApolloConnector.setupApollo().mutate(\n SignInMutation\n .builder()\n .data(ISignIn.builder().email(email).password(password).build())\n .build())\n .enqueue(new ApolloCall.Callback<SignInMutation.Data>() {\n\n @Override\n public void onResponse(@NotNull Response<SignInMutation.Data> response) {\n if (response.data() != null) {\n assert response.data().signIn != null;\n if (response.data().signIn != null) {\n boolean success = Boolean.valueOf(response.data().signIn.success);\n if (success) {\n assert response.data().signIn != null;\n String cargo = response.data().signIn.cargo;\n String token = response.data().signIn.token;\n String nombre = response.data().signIn.nombre;\n Token tokenSP = new Token(getApplicationContext());\n tokenSP.setStatus(true);\n tokenSP.setCargo(cargo);\n tokenSP.setToken(token);\n tokenSP.setNombre(nombre);\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n inside();\n }\n });\n } else {\n Snackbar.make(view,\n Objects.requireNonNull(Objects.requireNonNull(response.data().signIn()).message),\n Snackbar.LENGTH_SHORT)\n .show();\n }\n }\n }\n }\n\n @Override\n public void onFailure(@NotNull ApolloException e) {\n Snackbar.make(view, R.string.error_connection, Snackbar.LENGTH_SHORT)\n .show();\n }\n\n });\n }", "title": "" }, { "docid": "bc2ddff2782fa9a0933ad1ff2800e39a", "score": "0.62490875", "text": "public void attemptLogIn();", "title": "" }, { "docid": "203c1a489164a74c0c7c6dd7cd1cafeb", "score": "0.6246726", "text": "private void login() {\n\t\tSystem.out.println(\"Inserisci email!\");\n\t\tString email = readConsoleString();\n\t\tSystem.out.println(\"Inserisci password!\");\n\t\tString password = readConsoleString();\n\t\tuser = gestoredb.Autenticazione( password, email);\n\t\tif (user != null) {\n\t\t\tgestoredb.ReadDBspesa(gestorespesa, user.getRuolo(), user.getEmail());\n\t\t\tgestoredb.ReadDBlocker(gestorelocker);\n\t\t\tgestoredb.ReadDBspesaCOD(gestorespesa, user.getRuolo(), user.getEmail());\n\t\t\tswitch (user.getRuolo()) {\n\t\t\tcase CLIENTE: {\n\n\t\t\t\tWelcomeCliente();\n\n\t\t\t\tbreak;\n\n\t\t\t}\n\t\t\tcase COMMERCIANTE: {\n\n\t\t\t\tWelcomeCommerciante();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase CORRIERE: {\n\t\t\t\tWelcomeCorriere();\n\t\t\t\tbreak;\n\n\t\t\t}\n\t\t\tcase AMMINISTRATORE: {\n\t\t\t\tWelcomeAmministratore();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\thello();\n\t\t}\n\n\t}", "title": "" }, { "docid": "aa0f9632710263858c19210a2ba3aa87", "score": "0.62447757", "text": "boolean signIn(String userName,String password)\r\n {\r\n int flag=0,choice=0;\r\n \r\n for(int i=0; i<count; i++){ \r\n if(users.get(i).userName.compareTo(userName)==0 && users.get(i).password.compareTo(password)==0){ \r\n flag=1;\r\n accountIndex=i;\r\n break;\r\n }\r\n } \r\n if(flag==1){ //Valid account\r\n System.out.println(\"Welcome\\t\" + users.get(accountIndex).name);\r\n //op.displayMenu(users, accountIndex);\r\n \r\n return true;\r\n }\r\n else\r\n return false;\r\n \r\n }", "title": "" }, { "docid": "c046d686461fb677a405e1656fe3521a", "score": "0.6241573", "text": "@Override\n public void onClick(View view) {\n if(RegisterActivity.getUser() == null || RegisterActivity.getPassword() == null){\n Toast erroreLogin = Toast.makeText(getApplicationContext(),\"User inesistente! Effettuare la registrazione..\",Toast.LENGTH_SHORT);\n erroreLogin.show();\n }else if(username.getText().toString().equals(RegisterActivity.getUser())&& password.getText().toString().equals(RegisterActivity.getPassword())){\n /* Toast openHomePage = Toast.makeText(getApplicationContext(),\"Open Home Page\",Toast.LENGTH_SHORT);\n openHomePage.show();*/\n flag_login_session = true;\n Intent openHomePage = new Intent(LoginActivity.this,PortalsMainActivity.class);\n startActivity(openHomePage);\n }else{\n Toast erroreLogin = Toast.makeText(getApplicationContext(),\"Username o password errate! Riprovare..\",Toast.LENGTH_SHORT);\n erroreLogin.show();\n }\n\n }", "title": "" }, { "docid": "d36a1d7bc9fdf3795e908a19a42913ff", "score": "0.62405", "text": "public User login(String user, String pass);", "title": "" }, { "docid": "1d8ec8812892979b1fca21d381d9fa22", "score": "0.62389976", "text": "@Test(priority = 0, enabled = true)\n\tpublic void signIn() {\n\t\tlogger.info(\"signIn : validating sign in request...\");\n\t\tList<NewUser> newUserList = CommonUtils.readNewUserDataFromJson(Constants.NEWUSERFILE);\n\n\t\tfor (NewUser user : newUserList) {\n\t\t\tif (user.getFirstName().equals(\"Joe\") && user.getLastName().equals(\"Black\")) {\n\t\t\t\tauth.createAccount(user, getEmail());\n\n\t\t\t\tAssert.assertEquals(auth.getHeaderText(), Constants.MYACCOUNT);\n\t\t\t\tAssert.assertEquals(auth.getAccountText(), user.getFirstName() + \" \" + user.getLastName());\n\t\t\t\tAssert.assertTrue(auth.getInfoAccountText().contains(\"Welcome to your account.\"));\n\t\t\t\tAssert.assertTrue(auth.isLogoutDisplayed());\n\t\t\t\tAssert.assertTrue(auth.getUrl().contains(\"controller=my-account\"));\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "57ac09365d3e6cc7a1fbc68714aa3842", "score": "0.62226504", "text": "public User userLogin(User user);", "title": "" }, { "docid": "f95b46309d8c1c438a0a25a0e021bc1f", "score": "0.6216476", "text": "public void login(View v){\n final String id = ((EditText)findViewById(R.id.idName))\n .getText().toString();\n final String email = ((EditText)findViewById(R.id.email))\n .getText().toString();\n final String password = ((EditText)findViewById(R.id.password))\n .getText().toString();\n Log.d(\"AUTH\", email+\"/\"+password);\n\n auth.signInWithEmailAndPassword(email, password)\n .addOnCompleteListener(new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n if (!task.isSuccessful()){\n Log.d(\"onComplete\", \"登入失敗\");\n register(id,email, password,title);\n }\n else{\n //Jump into chatroom.xml\n Intent intent = new Intent();\n intent.setClass(MainActivity.this,Forum.class);\n //new一個Bundle物件,並將要傳遞的資料傳入\n Bundle bundle = new Bundle();\n bundle.putString(\"name\",id);//傳遞String\n\n //將Bundle物件傳給intent\n intent.putExtras(bundle);\n startActivity(intent);\n\n }\n }\n });\n }", "title": "" }, { "docid": "a45ef60499774e961f8f3a17fe66a53a", "score": "0.6214659", "text": "public void loginToApplication() {\n\t\t\r\n\t}", "title": "" }, { "docid": "c410a147c976483a386cf8f0a4495f2b", "score": "0.62084365", "text": "@Override\n\tpublic void toHomeActivity() \n\t{\n\t\tToast.makeText(getApplicationContext(), \n\t\t\t\t\"Credentials correct, logging in...\", \n\t\t\t\tToast.LENGTH_SHORT).show();\n\t\tIntent toHome = new Intent(this, HomeActivity.class);\n\t\tstartActivity(toHome);\n\t\tfinish();\n\t}", "title": "" }, { "docid": "e9c0a06629f0428931a45cbf81ce15c8", "score": "0.61908907", "text": "private void SignIn(){\n String email=emailaddr.getText().toString();\n String password=pass.getText().toString();\n\n if(email.isEmpty() || password.isEmpty()){\n Toast.makeText(LoginActivity.this, \"Email & password Can't be empty\",\n Toast.LENGTH_SHORT).show();\n return;\n }\n mAuth.signInWithEmailAndPassword(email, password)\n .addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {\n\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n Log.i(TAG,\"check2\");\n if (task.isSuccessful()) {\n // Sign in success, update UI with the signed-in user's information\n Log.d(TAG, \"signInWithEmail:success\");\n FirebaseUser user = mAuth.getCurrentUser();\n Intent intent=new Intent(LoginActivity.this, MainActivity.class);\n startActivity(intent);\n finish();\n\n } else {\n // If sign in fails, display a message to the user.\n Log.w(TAG, \"signInWithEmail:failure\", task.getException());\n Toast.makeText(LoginActivity.this, \"Authentication failed.\",\n Toast.LENGTH_SHORT).show();\n }\n }\n });\n\n }", "title": "" }, { "docid": "615ed894795fdbfdc793886f5725f838", "score": "0.6187108", "text": "private void LogInOrOut()\n\t{\n\t\tif(isAuthenticated())\n\t\t\tlogout();\n\t\telse\n\t\t{\n\t\t\tauth = browser = browser2 = false;\n\t\t\t//setAuthURL();\n\t\t\tbrowser = true;\n\n TumblrLogInOutTask task = new TumblrLogInOutTask();\n task.execute(\"\");\n\n\n\t\t}\t\n\t}", "title": "" }, { "docid": "4447a9fdf471780f97c5c226ec23418d", "score": "0.6184256", "text": "Authentication authentication();", "title": "" }, { "docid": "054b32ae319aef99aad80d623f59b2b5", "score": "0.61708814", "text": "void login(Account account);", "title": "" }, { "docid": "e3e2ba56e53ec45e7a9b3d56ede2e22f", "score": "0.61698484", "text": "public void switchToLogIn() {\n\t\tswitchScene(m_mainPane, LOGIN_ID);\n\t}", "title": "" }, { "docid": "38676ea6f5c39cd19e11dc7c4fe4f83b", "score": "0.6169543", "text": "public void RedirectToLogin (AppCompatActivity activity,FirebaseAuth firebaseAuth){\n if (firebaseAuth.getCurrentUser() == null){\n Intent i = new Intent(activity,Login.class);\n startActivity(i);\n overridePendingTransition(android.R.anim.fade_in,android.R.anim.fade_out);\n }\n }", "title": "" }, { "docid": "b11b219a5ff55f0a3332f770a126fd8f", "score": "0.6166939", "text": "public LoginPage clickSignInButton() {\n signIn.click();\n return this;\n }", "title": "" }, { "docid": "d0e97ccaa5e2c78e6db4739d108fceb5", "score": "0.61605096", "text": "public void onSignInClicked(View v) {\n startActivityForResult(new Intent(this, SignInActivity.class), REQUEST_EXIT);\n }", "title": "" } ]
098f119d6b3784c3fca8366cc57ef530
Updates on the health incident.
[ { "docid": "1884ab48b7b43f93d8848fdb950c2e5c", "score": "0.5389568", "text": "@ApiModelProperty(required = true, value = \"Updates on the health incident.\")\n\n public List<IncidentUpdate> getIncidentUpdates() {\n return incidentUpdates;\n }", "title": "" } ]
[ { "docid": "e950b058755a70d53284eac06a6604b9", "score": "0.7455951", "text": "public void updateHealth();", "title": "" }, { "docid": "e950b058755a70d53284eac06a6604b9", "score": "0.7455951", "text": "public void updateHealth();", "title": "" }, { "docid": "592b4a5afe425b81c28cc5743dfa0542", "score": "0.6549749", "text": "public void updateHealth(Integer health) {\n\t\thealthBarWidth -= health;\n\t}", "title": "" }, { "docid": "a61e98dfb82b72a02626e044cedd4329", "score": "0.6492407", "text": "public void incrementHealth() { ++health;}", "title": "" }, { "docid": "4ec975f8393445cd2fa566bc7319485a", "score": "0.6482219", "text": "public void updateHealth( int value){\n\t\thealth = health - value;\n\t\tString temp = \"Health: \" + health;\n\t\thealthLabel.setText(temp);\n\t}", "title": "" }, { "docid": "83d46dcb9c4d518ee2a69c745eef78ca", "score": "0.6416499", "text": "private void updateHealth(){\n //Update the bar\n playerHealth.setPlayerHealth(player.getHealthCurrent());\n opponentHealth.setOpponentHealth(opponent.getHealthCurrent());\n //Update the text\n opponentHealth.setHealthText(opponent.getHealthCurrent(), opponent.getHealthFull());\n playerHealth.setHealthText(player.getHealthCurrent(), player.getHealthFull());\n }", "title": "" }, { "docid": "c08680264f801336e694fb3fd6f750a4", "score": "0.6307957", "text": "public void unitHealthChanged(int health);", "title": "" }, { "docid": "f4823775265210c232414843b4d7fac7", "score": "0.6247236", "text": "public void setHealth(int newHealth){\r\n health = newHealth;\r\n }", "title": "" }, { "docid": "c647a85438bbec72bf6e20e0422d1a89", "score": "0.6231735", "text": "public void setHealth(int health) { this.health = health; }", "title": "" }, { "docid": "cf21b9a812f2df09f40eb2e8d2050c9a", "score": "0.6219961", "text": "@Override\r\n\tpublic void setHealth(int health) {\n\r\n\t}", "title": "" }, { "docid": "1c4394af344ab1fc581485dc7373af28", "score": "0.61476254", "text": "protected void setHealth(int health){\n this.health = health;\n }", "title": "" }, { "docid": "7fbc7cd59daf810cffcc12468e3f05e0", "score": "0.6122014", "text": "public void setHealth(int h)\r\n\t{\r\n\t\tcurrentHealth = h;\r\n\t}", "title": "" }, { "docid": "b89f8fefb61a3f25cebf7fc914accbce", "score": "0.6118381", "text": "@Override\n\tpublic void changeHealth() {\n\t\t\n\t}", "title": "" }, { "docid": "f01745ffb4d70415addfd6f62eb3a561", "score": "0.6110146", "text": "public void increaseHealth() {\n if (this.health > 0 && this.health <= 90) {\n this.health += 10;\n System.out.println(\"your health is \" + health + \"%\");\n } else if (this.health > 90) {\n this.health = 100;\n System.out.println(\"your health is \" + health + \"%\");\n }\n }", "title": "" }, { "docid": "4c9e70c305839039c28a1ddad85b3e78", "score": "0.608158", "text": "public void updateHealth(double delta) {\n health += delta;\n if(health < 0) health = 0;\n else if(health > 100) health = 100;\n }", "title": "" }, { "docid": "160a7e6571865f511c8ccb090c8e2cde", "score": "0.6035959", "text": "public void update() {\n this.status = patientBioEngine.getStatus();\n }", "title": "" }, { "docid": "abba26f0bdc31b518795dd9898480b2b", "score": "0.60281104", "text": "public void setHealth(int health) {\n this.health = health;\n }", "title": "" }, { "docid": "2204d5be7d261cb45c796e04138c90bb", "score": "0.6005516", "text": "public void setHealth() {\r\n health = 100;\r\n }", "title": "" }, { "docid": "13b32b68dc12210abf03620099422059", "score": "0.5998798", "text": "public void updateOpponentHealth( int value){\n\t\toppHealth = oppHealth - value;\n\t\tString temp = \"Health: \" + oppHealth;\n\t\toppHealthLabel.setText(temp);\n\t}", "title": "" }, { "docid": "07eb1182df9969f9e4e6e9a5f1304954", "score": "0.59940386", "text": "public void sethealth()\n {\n this.health =health;\n \n }", "title": "" }, { "docid": "bd67c6ad971f4819a24dad033fa1fdeb", "score": "0.59647286", "text": "@Override\n\tpublic void changeHealth() {\n\t\tsuper.setHealth(health = health + 0);\n\t}", "title": "" }, { "docid": "5d4866832c0cba7096449325a3dcd105", "score": "0.59533715", "text": "public int addHealth(int change);", "title": "" }, { "docid": "00d148603c9353ea61fd25157beff5c8", "score": "0.5933959", "text": "public void setHealth(int givenHealth){\n\t\thealth = givenHealth;\n\t}", "title": "" }, { "docid": "fb23cef3a3a2465d07dbbc4dc9a4463b", "score": "0.59248793", "text": "void setHealth(float health);", "title": "" }, { "docid": "ce03b4c078b2d7b268843540370081e4", "score": "0.5911437", "text": "public void HealthToFull(){\n\t\thealth=100;\n\t}", "title": "" }, { "docid": "550a76f475ac8c185c566017660791fc", "score": "0.5909632", "text": "@Override\n\tpublic String updateIncident(Incident i) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "7e6d48824c5f6c76d9936d14fb557029", "score": "0.5908658", "text": "public void setHealth(int health){\n\t\tthis.health = health;\n\t}", "title": "" }, { "docid": "0fdefedca55749b7f4195214e1e0f007", "score": "0.58829546", "text": "void reduceHealth(int h);", "title": "" }, { "docid": "dae59b5aa5b9932726104418f4c23b1d", "score": "0.5866752", "text": "private static void updateHiv(Connection conn, Long patientId, Byte status) throws SQLException {\r\n ArrayList patientValues = new ArrayList();\r\n patientValues.add(status);\r\n patientValues.add(patientId);\r\n String sql = \"UPDATE patient SET hiv_positive=? WHERE id=?;\";\r\n DatabaseUtils.create(conn, sql, patientValues.toArray());\r\n }", "title": "" }, { "docid": "013414a6b0626553cd052eda2744bd5b", "score": "0.5859567", "text": "public void setHealth(float health)\n {\n this.health = health;\n setChanged();\n notifyObservers();\n }", "title": "" }, { "docid": "3e1dfdc069282686814f9d3ad985c272", "score": "0.5855019", "text": "@Override\n\tpublic void setHealth(int i) {\n\n\t}", "title": "" }, { "docid": "cbade4fb4c69ec22e5485f23f7b80bcc", "score": "0.5842174", "text": "public void HealthGain() {\r\n health = 100;\r\n System.out.println(\"Health gained!\");\r\n System.out.println(\"Health = \" + health);\r\n changed();\r\n }", "title": "" }, { "docid": "0822653d3a3d2c9484e2b9bcc4d7923b", "score": "0.5812951", "text": "public void setHealth(int health) {\r\n\t\tthis.health = health;\r\n\t}", "title": "" }, { "docid": "0822653d3a3d2c9484e2b9bcc4d7923b", "score": "0.5812951", "text": "public void setHealth(int health) {\r\n\t\tthis.health = health;\r\n\t}", "title": "" }, { "docid": "dff1d11f8d5207a3d6fe792ffb469646", "score": "0.5809423", "text": "void setHealth(int l);", "title": "" }, { "docid": "970cd46a4d95cd4fba7e995b36c14588", "score": "0.5804269", "text": "public void Increase_Health(int health_inc){\n \t\n \tif (Health + health_inc >= Max_Health) // don't increase more than maximum\n \t{\n \t\tHealth = Max_Health; // safeguard to ensure health doesn't exceed maximum\n \t}\n \telse\n \t{\n \t\tHealth = Health + health_inc; // increase health\n \t}\n }", "title": "" }, { "docid": "853de974fdebab58f0126b861089b8e5", "score": "0.5727871", "text": "@Override\n\tpublic void setHealth(int increment) {\n\t\thealth+= increment;\n\t\tif(health <= 0){\n\t\t\tdie();\n\t\t}\n\t\tSystem.out.println(getHealth());\n\t}", "title": "" }, { "docid": "866139f22b2e3e03715f92bce9f829f5", "score": "0.5685133", "text": "OutputStatusIncident statusIncident(InputStatusIncident input);", "title": "" }, { "docid": "e3d7c133ab04d5cef613fbe3b3573f9a", "score": "0.56713873", "text": "public void setHealth( int value){\n\t\thealth = value;\n\t\tString temp = \"Health: \" + health;\n\t\thealthLabel.setText(temp);\n\t}", "title": "" }, { "docid": "95814b23c46aff8fcabddb9d41a8b010", "score": "0.5661238", "text": "public Health getHealth() {return this.health;}", "title": "" }, { "docid": "0d62d31178873adca7a791dd9e64fc8d", "score": "0.5629876", "text": "public void encounterPotion() {\n this.healthPoints += 10;\n }", "title": "" }, { "docid": "2b1af3d98a3f9567ebc1bcfd1ca2ab24", "score": "0.5612734", "text": "public int getHealth() { return this.health; }", "title": "" }, { "docid": "624f9190caf2fbdbf98c4e386094795d", "score": "0.561148", "text": "public void update(Inventory inventory);", "title": "" }, { "docid": "38b1bf38b60b87b24bb53041bbb9a98b", "score": "0.555816", "text": "@Override\n\tpublic void setHealth(int health) {\n\t\tsuper.setHealth(health);\n\t\tif(health <= 0) {\n\t\t\tBasicRequest request = new BasicRequest();\n\t\t\trequest.text = \"DIE\";\n\t\t\trequest.data = MultiplayerGameState.getUUID().toString();\n\t\t\tMultiplayerGameState.getClient().sendTCP(request);\n\t\t}\n\n\t}", "title": "" }, { "docid": "f3f2b0b1aa3ed28373348da9a4af02dc", "score": "0.55468935", "text": "public int gethealth()\n {\n return health;\n \n }", "title": "" }, { "docid": "4fe6baa449e9783473a4c11a24baa5ba", "score": "0.5542412", "text": "public void update() {\r\n try {\r\n InfoController i = bot.infoController;\r\n\r\n itemPerHour_T.textProperty().set(\"\" + i.itemPerHour);\r\n itemCount_T.textProperty().set(\"\" + i.itemCount);\r\n runtime_T.textProperty().set(\"\" + i.runtime);\r\n currentAction_T.textProperty().set(i.currentAction);\r\n\r\n }catch(Exception e){\r\n e.printStackTrace();\r\n }\r\n }", "title": "" }, { "docid": "2ce85992be1fa5324c698c4056b7137c", "score": "0.5489536", "text": "public void healthy()\n\t{\n\t\thealthyCount++;\n\t}", "title": "" }, { "docid": "0dbbc7f38865165b1e814f2347637e0f", "score": "0.547232", "text": "@Override\n public void changeHealth(RPGCharacter initiator, int hp)\n {\n notifyHealthChange(initiator, hp);\n\n setCurrentHealth(currentHealth + hp);\n\n if(currentHealth == 0)\n notifyDeath(initiator);\n }", "title": "" }, { "docid": "7556c9ba6a2741037c4ef5c439e7c667", "score": "0.54655236", "text": "public void manageHealth(int hp)\n {\n if (health + hp > maxHealth)\n {\n health = maxHealth;\n }\n else if (health + hp < 0)\n {\n \thealth = 0;\n }\n else\n {\n health += hp;\n }\n }", "title": "" }, { "docid": "bb99d26211354ef436cc07cce1eb0e86", "score": "0.5462862", "text": "public void onHeal(int health) {\r\n\r\n if (playerClass.equals(\"1\")) { // warrior class\r\n this.health += health;\r\n if (this.health + health >= WARRIOR_INTHEALTH) {\r\n this.health = WARRIOR_INTHEALTH;\r\n }\r\n } else if (playerClass.equals(\"2\")) { // thief class\r\n this.health += health;\r\n if (this.health + health >= THIEF_INTHEALTH) {\r\n this.health = THIEF_INTHEALTH;\r\n }\r\n }\r\n System.out.println(\"You find a healing elixr and are healed for \" + health + \"hp. You are now at \" + this.health+ \"health.\");\r\n\r\n }", "title": "" }, { "docid": "593d2159af455a8e94ce5c7545ebc5f5", "score": "0.54532415", "text": "public void HealthLoss() {\r\n health = health - 25;\r\n changed();\r\n if (health == 0) {\r\n System.out.println(\"Game Over!\");\r\n System.exit(0);\r\n }\r\n }", "title": "" }, { "docid": "1cbe7887c821c4fe89774671c089e071", "score": "0.5446803", "text": "protected int getHealth(){\n return this.health;\n }", "title": "" }, { "docid": "1eb54eefebf331aac3cb4e3f9698334e", "score": "0.5442917", "text": "public int getHealth(){\r\n return health;\r\n }", "title": "" }, { "docid": "7532fedbb248cd951c0209cc80943487", "score": "0.5441701", "text": "public void critical() { health -= 2;}", "title": "" }, { "docid": "9c787df3ce596921909515b868f4a600", "score": "0.5406221", "text": "public void setIncidentResource(IncidentResource incResource);", "title": "" }, { "docid": "eee55c0ba72001fffe08bf05034abb9f", "score": "0.54055643", "text": "@Override\n\tpublic void healthDisplay(int i) {\n\n\t}", "title": "" }, { "docid": "277b065fbd5927eccc5610a29c19c2b4", "score": "0.5401698", "text": "public int GetHealth() {\r\n return health;\r\n }", "title": "" }, { "docid": "db487af39318f448899bcdbb7f79e20b", "score": "0.5400397", "text": "public void updatePlayerHP(Player player, int health) {\n objectivePlayerHP.getScore(player.getName()).setScore(health);\n }", "title": "" }, { "docid": "b120004fb1f80c125b643c8242a2a85e", "score": "0.5398788", "text": "public void update() {\n SmartDashboard.updateValues();\n }", "title": "" }, { "docid": "705555a739827326bb8611f9dddde441", "score": "0.53839445", "text": "protected abstract void handleHealth(FacetHealthEvent event);", "title": "" }, { "docid": "40a44285a919956a8fc16ce313b77f49", "score": "0.5368658", "text": "@Override\r\n\tpublic int getHealth() {\n\t\treturn health;\r\n\t}", "title": "" }, { "docid": "94b904fa52ceacebb6d6369dee2f7c26", "score": "0.53599936", "text": "public int getHealth()\n {\n return health;\n }", "title": "" }, { "docid": "7d41a0b3228427e18b084b2e6af3fb45", "score": "0.53562844", "text": "public int getHealth(){\n\t\treturn health;\n\t}", "title": "" }, { "docid": "7d41a0b3228427e18b084b2e6af3fb45", "score": "0.53562844", "text": "public int getHealth(){\n\t\treturn health;\n\t}", "title": "" }, { "docid": "b165d0cd63061f397fe4fbc6b713c762", "score": "0.53343034", "text": "Inspection updateInspection(Inspection inspection);", "title": "" }, { "docid": "24d135ac1efae18ea91ccd4314357905", "score": "0.5333701", "text": "@Override\n\tpublic int getHealth() {\n\t\treturn health;\n\t}", "title": "" }, { "docid": "0bb79806de2dc07c6803b1ddbc43baee", "score": "0.53280693", "text": "@Override\n\tpublic void addHealth(int health) {\n\t\tif (currentState == EntityState.KNOCK_BACK || knockBackTimer > 0) {\n\t\t\treturn;\n\t\t}\n\t\tif (health < 0 && shielded) {\n\t\t\t// Don't alter current health\n\t\t} else {\n\t\t\tcurrentHealth += health;\n\t\t}\n\t\tif (currentHealth > maxHealth) {\n\t\t\tcurrentHealth = maxHealth;\n\t\t}\n\t}", "title": "" }, { "docid": "48952399cdc62fd07953ef0ec787abbe", "score": "0.53263694", "text": "@Override\r\n\tpublic int update(Habitacion h) {\n\t\treturn 0;\r\n\t}", "title": "" }, { "docid": "983e47eda78033819f59a16348d1762f", "score": "0.53192675", "text": "public void tick() { // head-up display updating method.\n\t\thealth = Game.Bounds((int) health, 0, 100); // locks the health values to 0-100.\n\t\tscore++; // adds score during the whole game.\n\t}", "title": "" }, { "docid": "79df061180040720046b96feea5f5342", "score": "0.5314392", "text": "@Override\r\n\t\tpublic void update(Patient obj) {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "d3c4931f74fae5677e6916e4f85f1094", "score": "0.5299111", "text": "public int getHealth() {\n return this.health;\n }", "title": "" }, { "docid": "e638866dac3f4e13fe43d672a882f014", "score": "0.52959406", "text": "private void notifyHealthChange(RPGCharacter initiator, int hp)\n {\n for(CharacterObserver observer : characterObservers)\n {\n observer.notifyHealthChange(initiator,this, hp);\n }\n }", "title": "" }, { "docid": "4ebc684c5998230289d11a3c6a677d2b", "score": "0.5289565", "text": "public void update() {\n\n }", "title": "" }, { "docid": "82a4ef2fae55593c550aa75e48b68855", "score": "0.527933", "text": "public static void setHealth(int health) {\n Person.health = health;\n }", "title": "" }, { "docid": "a48eeef09b88843602ff7eb84e9c7dcf", "score": "0.52641", "text": "public void update(){\n\t\titerate = bulletTrajectories.entrySet().iterator();\n\t\twhile (iterate.hasNext()){\n\t\t\tinstance = iterate.next();\n\t\t\t//System.out.println(\"size = \"+ instance.getValue().size);\n\t\t\thealth = (instance.getValue().get(2).x);\n\t\t\tif(health <= 0){\n\t\t\t\titerate.remove(); \n\t\t\t}\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "62b5711debb2559e0c1a4e0a9889bf4c", "score": "0.52351654", "text": "public void displayHealth()\n\t{\n\t\tif (health <= 0)\n\t\t{\n\t\t\tSystem.out.println(name+\" has been defeated!\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(name+\"'s Current Health: \"+healthF.format((double)health/100));\n\t\t}\n\t}", "title": "" }, { "docid": "77928b452c834e6fe3c175226d53e71d", "score": "0.52332205", "text": "public static void incrementCounter() {\n\t\tIncident.counter++;\n\t}", "title": "" }, { "docid": "99567ae6ac798c72bd6b3250cfb973ad", "score": "0.5230487", "text": "public int getHealth() {\r\n\t\treturn health;\r\n\t}", "title": "" }, { "docid": "99567ae6ac798c72bd6b3250cfb973ad", "score": "0.5230487", "text": "public int getHealth() {\r\n\t\treturn health;\r\n\t}", "title": "" }, { "docid": "99567ae6ac798c72bd6b3250cfb973ad", "score": "0.5230487", "text": "public int getHealth() {\r\n\t\treturn health;\r\n\t}", "title": "" }, { "docid": "9280bc2703d824bacf2e06f742389e9d", "score": "0.5225459", "text": "int getCurrentHealth();", "title": "" }, { "docid": "ab3976557a4fa7d030cef457863a1b60", "score": "0.5204919", "text": "@WebMethod(action = \"reportIncident\")\n OutputReportIncident reportIncident(InputReportIncident input);", "title": "" }, { "docid": "6dfec2d4a475e5360bf6a52fa2ff5817", "score": "0.5201436", "text": "@Override\n public void updateStatus(Orcid api, String message) {\n \n }", "title": "" }, { "docid": "46af6830c704391dbbed868e0ae36b68", "score": "0.51902246", "text": "public void updateStatus()\n {\n }", "title": "" }, { "docid": "7ca4bb05d8f03ed8af837a40b260f016", "score": "0.5179118", "text": "public abstract void healthFull(RPGEntity entity);", "title": "" }, { "docid": "60d01473402c63570d33101d501ad58c", "score": "0.51703143", "text": "public void update( CovidRecord in )\n {\n Last_Update = in.Last_Update;\n // Latitude\n // Longitude\n\n ConfirmedChange = in.Confirmed - Confirmed;\n DeathsChange = in.Deaths - Deaths;\n\n Confirmed = in.Confirmed;\n Deaths = in.Deaths;\n // Recovered\n // Active\n // CombinedKey\n }", "title": "" }, { "docid": "cf5f4bc80f6aa03fc1cb32259999404b", "score": "0.51701957", "text": "@Override\n public void heal(){\n if(this.health <= 0){\n System.out.println(\"Player is dead, Healing not possible\");\n }\n else{\n this.health = 100;\n System.out.println(this.getName() + \" is healed up. New health is \" + this.health);\n }\n }", "title": "" }, { "docid": "a9f00b8eb77eced4cac73015994f933e", "score": "0.51684505", "text": "public synchronized static void update()\n throws HaException, IOException {\n\n HaStatus status = null;\n\n /////\n // Has this node been activated\n ////\n if (activated == false) {\n return;\n }\n\n ////\n // Start up HA connection\n ////\n try {\n\n status = h.status();\n\n ////\n // Take the appropriate action for the local node\n ////\n updateLocalNode(h, status);\n\n }\n catch (Exception e) {\n throw new HaException(\"Failed to create HA connection\", e);\n }\n }", "title": "" }, { "docid": "a61abb28cd9b80dee89ad5ea1911addf", "score": "0.51683515", "text": "public int getHealth() {\n\t\treturn health;\n\t}", "title": "" }, { "docid": "a61abb28cd9b80dee89ad5ea1911addf", "score": "0.51683515", "text": "public int getHealth() {\n\t\treturn health;\n\t}", "title": "" }, { "docid": "a61abb28cd9b80dee89ad5ea1911addf", "score": "0.51683515", "text": "public int getHealth() {\n\t\treturn health;\n\t}", "title": "" }, { "docid": "21e21e379cc7e2d53da3dde080eeb4bd", "score": "0.5162752", "text": "@Override\n\tpublic Health health() {\n\t\treturn Health.up()\n\t\t\t\t//This can be used to include details\n\t\t\t\t.withDetail(\"response_code\", \"200\")\n\t\t\t\t.withDetail(\"response_message\", \"All is Well\")\n\t\t\t\t\t.build();\n\t\t\n\t\t//Can do conditional check and return status as well\n\t\t//For down status - Health.down().build\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "7cec39a788aaa8bddec17474325f4c8d", "score": "0.5155535", "text": "public void update(ScoreModel hpm) throws ScoreSysException;", "title": "" }, { "docid": "5693c5d9f583e958733e2e1cbcc8a5b3", "score": "0.51489335", "text": "private void reportHealth(boolean healthStatus) {\n UpdatedHealth updatedHealth = new UpdatedHealth(Entity.TREX, 1, healthStatus);\n this.surveillanceSystem.sendMessage(updatedHealth);\n }", "title": "" }, { "docid": "d0f5b848bcb370d8a1d4980aef3c7aa6", "score": "0.51406217", "text": "public void earnedHappiness(double happiness){\n mLifeTimeHappinessEarnings +=happiness;\n mSessionHappinessEarnings +=happiness;\n mThisCycleHappinessEarnings +=happiness;\n mCurrentHappines+=happiness;\n\n }", "title": "" }, { "docid": "47512a6e285ff251917b31309487bf04", "score": "0.5138078", "text": "public float getHealth(){\r\n return this.health;\r\n }", "title": "" }, { "docid": "e324d044be3451bbfa67f53daa33cf8a", "score": "0.5135304", "text": "@Override\r\n\tpublic int Update(Snack Entity , int id) {\n\t\treturn 0;\r\n\t}", "title": "" }, { "docid": "f0c4f6151154831f687301e55ac0914c", "score": "0.51338345", "text": "public void attacked() {\n\t\thealthLevel = healthLevel - attackPenalty;\n\t\tupdateMaxSpeed();\n\t\tSystem.out.println(\"Health=\" + healthLevel);\n//\t\tif (healthLevel <= 0) {\n\t\t\t// System.out.println(\"You have died\");\n//\t\t}\n\t\tupdateColor();\n\t}", "title": "" }, { "docid": "05f3b94321f76e891d4404f26944e16a", "score": "0.513305", "text": "public void setGoblinHealth(int hit) {\n health = hit;\n }", "title": "" }, { "docid": "d82f869dab5629bddaaedd50288adf8d", "score": "0.5130102", "text": "public final void setHealth (boolean healthy) {\n this.healthy = healthy;\n }", "title": "" } ]
b914598dde1e2e4b81b544273d3324cf
Returns the total count of items in the list
[ { "docid": "a06743b7cbd1d07d5f5b7b0415fa8f4d", "score": "0.0", "text": "@Override\n public int getItemCount() {\n return mTweets.size();\n }", "title": "" } ]
[ { "docid": "46ac8a953193691ccc236b9636cdc2f9", "score": "0.8095051", "text": "public int count() {\r\n\t\treturn list.size();\r\n\t}", "title": "" }, { "docid": "efd5c9db95db597ce3949fa67fa04c5b", "score": "0.8087866", "text": "public int count() {\n\t\treturn list.size();\r\n\t}", "title": "" }, { "docid": "e0f0b480e008ed5a52b4af3f5e7fcaf3", "score": "0.79090184", "text": "public int getTotalItemCount()\n {\n int[] total = {0};\n items.forEach(i -> total[0] = total[0] + i.getItemCount());\n return total[0];\n }", "title": "" }, { "docid": "0a772a01fed0ae8e9052fc38f895ca5b", "score": "0.7875019", "text": "public final int getTotal() {\n return items.size();\n }", "title": "" }, { "docid": "fcbf568dbabc92e050e1fec562d0ddc2", "score": "0.7717022", "text": "int getItemsCount();", "title": "" }, { "docid": "fcbf568dbabc92e050e1fec562d0ddc2", "score": "0.7717022", "text": "int getItemsCount();", "title": "" }, { "docid": "fcbf568dbabc92e050e1fec562d0ddc2", "score": "0.7717022", "text": "int getItemsCount();", "title": "" }, { "docid": "fcbf568dbabc92e050e1fec562d0ddc2", "score": "0.7717022", "text": "int getItemsCount();", "title": "" }, { "docid": "fcbf568dbabc92e050e1fec562d0ddc2", "score": "0.7717022", "text": "int getItemsCount();", "title": "" }, { "docid": "fcbf568dbabc92e050e1fec562d0ddc2", "score": "0.7717022", "text": "int getItemsCount();", "title": "" }, { "docid": "fcbf568dbabc92e050e1fec562d0ddc2", "score": "0.7717022", "text": "int getItemsCount();", "title": "" }, { "docid": "fcbf568dbabc92e050e1fec562d0ddc2", "score": "0.7717022", "text": "int getItemsCount();", "title": "" }, { "docid": "fcbf568dbabc92e050e1fec562d0ddc2", "score": "0.7717022", "text": "int getItemsCount();", "title": "" }, { "docid": "fcbf568dbabc92e050e1fec562d0ddc2", "score": "0.7717022", "text": "int getItemsCount();", "title": "" }, { "docid": "38cff60c485c84d8ec289a06ddfab250", "score": "0.7589728", "text": "public long count() {\n return internalList.size();\n }", "title": "" }, { "docid": "876f7ca3cab5310b005f0646d9d25817", "score": "0.75882965", "text": "public int getTotal()\n\t{\n\t\treturn eList.size();\n\t}", "title": "" }, { "docid": "742ecbf5e8a5c9e5a5996591d213579e", "score": "0.7558944", "text": "public int getCount() {\n\t\t\treturn list.size();\n\n\t\t}", "title": "" }, { "docid": "33d5bf07da199148a658807fd5577904", "score": "0.7553579", "text": "public int getTotalNumberOfItems() {\n\t\treturn totalNumberOfItems;\n\t}", "title": "" }, { "docid": "a6c7266ad1172dfeccde1a54adabe542", "score": "0.74845314", "text": "public int numberOfItems() {\n\t\treturn items.size();\n\t}", "title": "" }, { "docid": "39b2b13a0223558789de48d266788bbc", "score": "0.7479703", "text": "int getListCount();", "title": "" }, { "docid": "39b2b13a0223558789de48d266788bbc", "score": "0.7479703", "text": "int getListCount();", "title": "" }, { "docid": "39b2b13a0223558789de48d266788bbc", "score": "0.7479703", "text": "int getListCount();", "title": "" }, { "docid": "39b2b13a0223558789de48d266788bbc", "score": "0.7479703", "text": "int getListCount();", "title": "" }, { "docid": "39b2b13a0223558789de48d266788bbc", "score": "0.7479703", "text": "int getListCount();", "title": "" }, { "docid": "39b2b13a0223558789de48d266788bbc", "score": "0.7479703", "text": "int getListCount();", "title": "" }, { "docid": "39b2b13a0223558789de48d266788bbc", "score": "0.7479703", "text": "int getListCount();", "title": "" }, { "docid": "39b2b13a0223558789de48d266788bbc", "score": "0.7479703", "text": "int getListCount();", "title": "" }, { "docid": "39b2b13a0223558789de48d266788bbc", "score": "0.7479703", "text": "int getListCount();", "title": "" }, { "docid": "39b2b13a0223558789de48d266788bbc", "score": "0.7479703", "text": "int getListCount();", "title": "" }, { "docid": "39b2b13a0223558789de48d266788bbc", "score": "0.7479703", "text": "int getListCount();", "title": "" }, { "docid": "39b2b13a0223558789de48d266788bbc", "score": "0.7479703", "text": "int getListCount();", "title": "" }, { "docid": "39b2b13a0223558789de48d266788bbc", "score": "0.7479703", "text": "int getListCount();", "title": "" }, { "docid": "39b2b13a0223558789de48d266788bbc", "score": "0.7479703", "text": "int getListCount();", "title": "" }, { "docid": "39b2b13a0223558789de48d266788bbc", "score": "0.7479703", "text": "int getListCount();", "title": "" }, { "docid": "1b95ec989e5d65584b8e6912b0d37e6e", "score": "0.7446265", "text": "@Override\r\n\tpublic int finalListTotalCnt() {\n\t\treturn dao.finalListTotalCnt();\r\n\t}", "title": "" }, { "docid": "e0c9de7f33f02460f4efddc6e598ffdb", "score": "0.74302864", "text": "public int getTotalStateCount() {\n int stateCount = 0;\n int size = list.size();\n \n for (int i=0;i<size;i++) {\n stateCount += list.get(i).getStateCount();\n }\n \n return stateCount;\n }", "title": "" }, { "docid": "2e2fc218f3d7b0c3f33cde6463e82402", "score": "0.7400722", "text": "public int listAmount() {\n return count;\n }", "title": "" }, { "docid": "707f8eab47bfc57488f8e32aa20a2add", "score": "0.7394891", "text": "public int count(ListInfo listInfo) throws Exception {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "88b6f43a1ebcacc6c8df7af5dbfcf822", "score": "0.7394457", "text": "public int numItems()\n {\n return this.items.size();\n }", "title": "" }, { "docid": "e6f20a985f4d77f539d523226fc16ea8", "score": "0.7390882", "text": "public int size()\n {\n return list.size();\n }", "title": "" }, { "docid": "0ecbddd9579d3af05d66ead52359a8c8", "score": "0.7384519", "text": "public int numItems() {\n\t\t return count;\n\t}", "title": "" }, { "docid": "4d0c1003f54b479308bf4e402d3346b2", "score": "0.73841906", "text": "public int getCount() {\n\t\treturn list.size();\n\t}", "title": "" }, { "docid": "4d0c1003f54b479308bf4e402d3346b2", "score": "0.73841906", "text": "public int getCount() {\n\t\treturn list.size();\n\t}", "title": "" }, { "docid": "a95a33b101f00db5e635026dfcc36626", "score": "0.73837876", "text": "public int getTotalCount();", "title": "" }, { "docid": "ed639773d2d4e7c837cb7eb43d468ed1", "score": "0.7372133", "text": "public int size() {\n return list.size();\n }", "title": "" }, { "docid": "ed639773d2d4e7c837cb7eb43d468ed1", "score": "0.7372133", "text": "public int size() {\n return list.size();\n }", "title": "" }, { "docid": "11ccbaf9998e7d5e7d024cd1f6214975", "score": "0.736737", "text": "public int size(){\n return list.size();\n }", "title": "" }, { "docid": "47d5ce2c255c9dca411dec9959433e94", "score": "0.7345594", "text": "public int numberOfItems() {\n\n\t\treturn this.items.length;\n\t}", "title": "" }, { "docid": "6fe387f8b8ae7cbcb69b223f7029aef9", "score": "0.7343636", "text": "public int size(){\n\t\treturn list.size();\n\t}", "title": "" }, { "docid": "645fb557442bdffbda5d7fe88c04309c", "score": "0.73254776", "text": "public int size() {\n int count = 0;\n Node iterator = start;\n\n // iterate through list\n while (iterator != null) {\n count++;\n iterator = iterator.next;\n }\n\n return count;\n }", "title": "" }, { "docid": "409432d0b6513e357deee9e8635f15b0", "score": "0.7322284", "text": "public int size() {\r\n\t\treturn list.size();\r\n\t}", "title": "" }, { "docid": "409432d0b6513e357deee9e8635f15b0", "score": "0.7322284", "text": "public int size() {\r\n\t\treturn list.size();\r\n\t}", "title": "" }, { "docid": "094d56dbbd71cab5ad0b1f3864df8cac", "score": "0.73204875", "text": "public int size() {\n\t\treturn list.size();\n\t}", "title": "" }, { "docid": "094d56dbbd71cab5ad0b1f3864df8cac", "score": "0.73204875", "text": "public int size() {\n\t\treturn list.size();\n\t}", "title": "" }, { "docid": "dbdcd880696b4bb090a3e0abe4ab91cc", "score": "0.7309053", "text": "public int getTotalCount() {\n populate();\n return result.totalResults;\n }", "title": "" }, { "docid": "8e84ee787a75f8bf17b78c78ba9a71bf", "score": "0.72860444", "text": "public int getNumOfItems()\n\t{\n\t\treturn numOfItems;\n\t}", "title": "" }, { "docid": "8608122ac4032dce8ae24827e7bed066", "score": "0.72830003", "text": "public long getTotalItems() {\n\t\treturn totalItems;\n\t}", "title": "" }, { "docid": "85ea4ab972563027dfb4cacfe186d524", "score": "0.72715205", "text": "public int getTotalCount() { return totalCount; }", "title": "" }, { "docid": "cbc51c68c0179959a1e8f08b7839192a", "score": "0.72625375", "text": "public int getTotalCount() {\n return totalCount;\n }", "title": "" }, { "docid": "943fb4ced83be360bb36b5e8fe88a203", "score": "0.72588015", "text": "public int itemCount() {\n\t\treturn this.collection.size();\n\t}", "title": "" }, { "docid": "fbd273a8c124785467900ab25099616c", "score": "0.72385544", "text": "public int getItemsCount() {\n return items_.size();\n }", "title": "" }, { "docid": "fbd273a8c124785467900ab25099616c", "score": "0.72385544", "text": "public int getItemsCount() {\n return items_.size();\n }", "title": "" }, { "docid": "fbd273a8c124785467900ab25099616c", "score": "0.72385544", "text": "public int getItemsCount() {\n return items_.size();\n }", "title": "" }, { "docid": "fbd273a8c124785467900ab25099616c", "score": "0.72385544", "text": "public int getItemsCount() {\n return items_.size();\n }", "title": "" }, { "docid": "fbd273a8c124785467900ab25099616c", "score": "0.72385544", "text": "public int getItemsCount() {\n return items_.size();\n }", "title": "" }, { "docid": "fbd273a8c124785467900ab25099616c", "score": "0.72385544", "text": "public int getItemsCount() {\n return items_.size();\n }", "title": "" }, { "docid": "fbd273a8c124785467900ab25099616c", "score": "0.72385544", "text": "public int getItemsCount() {\n return items_.size();\n }", "title": "" }, { "docid": "ebdac1bdeadfdcfd5f3f7a6b2cd28d81", "score": "0.72381985", "text": "public int size() {\n return list.getSize();\n }", "title": "" }, { "docid": "c7228f056ee77247ce1375aeea7a3d21", "score": "0.72355866", "text": "public int size(){\n return(numItems);\n }", "title": "" }, { "docid": "1034d681c797ef1791a404638f816c09", "score": "0.7232129", "text": "public int size () { return list.size(); }", "title": "" }, { "docid": "80abaabdf16cd78bc06e6d6fbbe1ad86", "score": "0.72304565", "text": "public synchronized int size() {\n return list.size();\n }", "title": "" }, { "docid": "694d2ca9dc92dd7280e573a3d81cd66f", "score": "0.7227923", "text": "public int getCount() {\n\t\treturn mList.size();\n\t}", "title": "" }, { "docid": "c0605cf712a9536bab7547926391bc44", "score": "0.7226575", "text": "public int size() {\r\n return list.size();\r\n }", "title": "" }, { "docid": "4eff6ad285a8abff091864cf02fad10f", "score": "0.72234476", "text": "int getTotalCount();", "title": "" }, { "docid": "49bdd7dcd9aeddae64dcb67eba07c201", "score": "0.72151184", "text": "public int getListCount() {\n if (listBuilder_ == null) {\n return list_.size();\n } else {\n return listBuilder_.getCount();\n }\n }", "title": "" }, { "docid": "49bdd7dcd9aeddae64dcb67eba07c201", "score": "0.72151184", "text": "public int getListCount() {\n if (listBuilder_ == null) {\n return list_.size();\n } else {\n return listBuilder_.getCount();\n }\n }", "title": "" }, { "docid": "e36857c847aebcca2d6baedc825b1d7b", "score": "0.71908724", "text": "public int get_number_of_items() {\n\t\treturn this.number_of_items;\n\t}", "title": "" }, { "docid": "7f2e0db108acaa1a083ba4a8140a9687", "score": "0.7182307", "text": "public int size() {\n return list.size();\n }", "title": "" }, { "docid": "bbbd71cdc5ddaeaa4e0dd9883177ec39", "score": "0.7180049", "text": "public int countItems(ArrayList<String> list, String item) {\n int count = 0;\n for (int i = 0; i < list.size(); i++) {\n if (item.equals(list.get(i))) {\n count++;\n }\n }\n return count;\n \n }", "title": "" }, { "docid": "c89ddf264be9ae6aa495bc13f9e67ea6", "score": "0.71719813", "text": "public int getListCount() {\n return list_.size();\n }", "title": "" }, { "docid": "c89ddf264be9ae6aa495bc13f9e67ea6", "score": "0.71719813", "text": "public int getListCount() {\n return list_.size();\n }", "title": "" }, { "docid": "c89ddf264be9ae6aa495bc13f9e67ea6", "score": "0.71719813", "text": "public int getListCount() {\n return list_.size();\n }", "title": "" }, { "docid": "c89ddf264be9ae6aa495bc13f9e67ea6", "score": "0.71719813", "text": "public int getListCount() {\n return list_.size();\n }", "title": "" }, { "docid": "c89ddf264be9ae6aa495bc13f9e67ea6", "score": "0.71719813", "text": "public int getListCount() {\n return list_.size();\n }", "title": "" }, { "docid": "c89ddf264be9ae6aa495bc13f9e67ea6", "score": "0.71719813", "text": "public int getListCount() {\n return list_.size();\n }", "title": "" }, { "docid": "c89ddf264be9ae6aa495bc13f9e67ea6", "score": "0.71719813", "text": "public int getListCount() {\n return list_.size();\n }", "title": "" }, { "docid": "c89ddf264be9ae6aa495bc13f9e67ea6", "score": "0.71719813", "text": "public int getListCount() {\n return list_.size();\n }", "title": "" }, { "docid": "6f3498c5658787f6651b60a7b853dd14", "score": "0.7170148", "text": "public int size() {\n\t\treturn list.length;\n\t}", "title": "" }, { "docid": "6f3498c5658787f6651b60a7b853dd14", "score": "0.7170148", "text": "public int size() {\n\t\treturn list.length;\n\t}", "title": "" }, { "docid": "6f3498c5658787f6651b60a7b853dd14", "score": "0.7170148", "text": "public int size() {\n\t\treturn list.length;\n\t}", "title": "" }, { "docid": "f80dc2f30ccda892b00de4bbea809f03", "score": "0.7168772", "text": "@VTID(22)\r\n int getListCount();", "title": "" }, { "docid": "ab0c5ded6154dff002ee04f2f2567204", "score": "0.7168057", "text": "@Override\n\tpublic int size() {\n\t\treturn list.size();\n\t}", "title": "" }, { "docid": "ab0c5ded6154dff002ee04f2f2567204", "score": "0.7168057", "text": "@Override\n\tpublic int size() {\n\t\treturn list.size();\n\t}", "title": "" }, { "docid": "ab0c5ded6154dff002ee04f2f2567204", "score": "0.7168057", "text": "@Override\n\tpublic int size() {\n\t\treturn list.size();\n\t}", "title": "" }, { "docid": "fd852d39b9659ba48a9f7e4f32dc774b", "score": "0.71664065", "text": "public int getNumUsed()\n {\n return usedInList.size();\n }", "title": "" }, { "docid": "e0562dd324a402ffd55a88ec40ff94b4", "score": "0.7165697", "text": "public int size() {\n\treturn list.size();\n }", "title": "" }, { "docid": "fa8912d7b734b44558798e6e9cd58fb2", "score": "0.71648306", "text": "public static int getLength ()\n {\n return List.size();\n }", "title": "" }, { "docid": "02782be6bc4c5668569882b164a5431d", "score": "0.7162646", "text": "public int size() {\r\n\t\treturn list.length;\r\n\t}", "title": "" }, { "docid": "623c9911517bf8b1f4b5635ef84bfbac", "score": "0.7160732", "text": "public int getListCount() {\n return list_.size();\n }", "title": "" }, { "docid": "623c9911517bf8b1f4b5635ef84bfbac", "score": "0.7160732", "text": "public int getListCount() {\n return list_.size();\n }", "title": "" }, { "docid": "fa3c7a0536d597148350bdfe0f966c05", "score": "0.71565527", "text": "public int getListCount() {\n if (listBuilder_ == null) {\n return list_.size();\n } else {\n return listBuilder_.getCount();\n }\n }", "title": "" } ]
f677e372ff7f08789e432a77ec75c8a3
Log.d(ThePips.TAG,"(canPlay) Minutes: " + String.valueOf(this.getMinutes())); Log.d(ThePips.TAG,"(canPlay) Frequency: " + String.valueOf(this.getFrequency()));
[ { "docid": "0abf726b9642508dedc4fd74f147f643", "score": "0.72469044", "text": "private boolean canPlay(){\n\t\treturn this.getMinutes() % this.getFrequency() == 0.0;\n\t}", "title": "" } ]
[ { "docid": "1497b2dc7f9263a156beef3ebb113a39", "score": "0.6414041", "text": "public int time() {\r\n // YOUR CODE HERE\r\n \treturn time;\r\n \t\r\n }", "title": "" }, { "docid": "aa70a8b4f1ca9cb187f42ae81b0fecae", "score": "0.63858384", "text": "public String get_time() { return time; }", "title": "" }, { "docid": "09b046e141c614355421254a57ff70f0", "score": "0.63417417", "text": "public int getMinutes()\n {\n return minutes;\n }", "title": "" }, { "docid": "6873dcd70a57cf3cfe8bcad2d216cb0e", "score": "0.6245905", "text": "public int getTime(){\n return time;\n }", "title": "" }, { "docid": "4a70f25f53e24b04537a473dcb1a6456", "score": "0.6182751", "text": "public int getTime(){\n return timer;\n }", "title": "" }, { "docid": "e42e464aa691fc99407bbfc07ff480b2", "score": "0.6162902", "text": "@Override\n public abstract int getGameTimeInSeconds();", "title": "" }, { "docid": "befc604dc9832c71e6d15a19c0fd2183", "score": "0.6153151", "text": "int getMinute();", "title": "" }, { "docid": "45795210d09185ca2809239d340dd5c8", "score": "0.61509", "text": "public Integer getVideoTime() {\n return videoTime;\n }", "title": "" }, { "docid": "45795210d09185ca2809239d340dd5c8", "score": "0.61509", "text": "public Integer getVideoTime() {\n return videoTime;\n }", "title": "" }, { "docid": "92109a7542889cea712fa7c2b2985612", "score": "0.612933", "text": "void showTime(){\n\t\tSystem.out.println(\"Time is \"+hours+\":\"+minutes);\n\t}", "title": "" }, { "docid": "46e50d9c0975c1b37ba99df2523c69ce", "score": "0.6122162", "text": "int getMinutes();", "title": "" }, { "docid": "8abafd09247b8896333c604bbf3a4ef1", "score": "0.61026716", "text": "public int getmovieTime() {return movieTime;}", "title": "" }, { "docid": "2a70b5442987f96420ec84a48776babe", "score": "0.60725033", "text": "int getRainTime();", "title": "" }, { "docid": "e9a15a7f18f1601feb9b0ebc8c5e8aeb", "score": "0.60646236", "text": "public double getTime(){\n return time;\n }", "title": "" }, { "docid": "d20c3d8a345b02f62dff381e27fd1d37", "score": "0.6049782", "text": "public int getMinute()\n {\n return minute;\n }", "title": "" }, { "docid": "69ca19061073fac58ef357117875eec5", "score": "0.6049707", "text": "public String getTime(){\n return time;\n }", "title": "" }, { "docid": "48c02dc5393505802c5823c75061501c", "score": "0.6019203", "text": "public int getMinutes() {\n return minutes;\n }", "title": "" }, { "docid": "1c89942d1aa1a8f8007aa11633c8c946", "score": "0.6014472", "text": "int getSecondsLate();", "title": "" }, { "docid": "62838c93acbb6cb2ea67c3ee3332150c", "score": "0.59894955", "text": "String getShowTime() {\n return showTime;\n }", "title": "" }, { "docid": "ee7bd4ae2e7579d16b34815d6f72f933", "score": "0.59757096", "text": "int getMinTime();", "title": "" }, { "docid": "2ba056aba270cd45e0a6685bac96f2e7", "score": "0.5975334", "text": "public String getFps() {\n return fps;\n }", "title": "" }, { "docid": "74fd293d677bdec704e8e59804f36f29", "score": "0.59594864", "text": "int getEventTime();", "title": "" }, { "docid": "c36e69439b74b48df3bd72ec0a0d1af6", "score": "0.5943852", "text": "public String gettime(){\n\t\treturn time;\n\t}", "title": "" }, { "docid": "1121f380b90248d5762a2f568200ba13", "score": "0.59421676", "text": "int getMinutesUsed();", "title": "" }, { "docid": "79be62c36dba9015f07d99408f453c5b", "score": "0.593944", "text": "private void getTimer(){\n String str=timer.getText().toString();\n String[] split=str.split(\":\");\n min=Integer.parseInt(split[0]);\n sec=Integer.parseInt(split[1]);\n }", "title": "" }, { "docid": "8ebd24ffdf9944a791e50c58aa21ad30", "score": "0.5938916", "text": "public double getTime ()\r\n {\r\n return time;\r\n }", "title": "" }, { "docid": "ad45a16b53df81cdcfbd8e90aa6ff616", "score": "0.5921699", "text": "@Override\n public String toString() {\n return duration + \" min\\n\";\n }", "title": "" }, { "docid": "c45a147612a212df6c7b501046e224d4", "score": "0.5914028", "text": "public int getTime() {\n return time;\n }", "title": "" }, { "docid": "21293f858ead2b6b0c3dffe9eb0b8ea0", "score": "0.59045035", "text": "public float getTime()\n {\n \treturn time;\n }", "title": "" }, { "docid": "69d0f0dc415a1b288bce09933d445d91", "score": "0.59043086", "text": "public int getMoisture() {\r\n return moisture;\r\n }", "title": "" }, { "docid": "897548f368272b69b6e453b00ad990ad", "score": "0.5890871", "text": "public int time() {\n \treturn ticCount;\n }", "title": "" }, { "docid": "9101a8a941e4c3824d166c0581380fdb", "score": "0.5881307", "text": "public String getFps() {\n return fps;\n }", "title": "" }, { "docid": "705b350de017f97e8830ddef57175e92", "score": "0.5877431", "text": "@Test\n public void getMinuteTest() {\n assertEquals(59, hw1.getMinute());\n }", "title": "" }, { "docid": "9fdfb8b413d09203b757d97eae9d1afe", "score": "0.5868326", "text": "public String getTime()\n {\n return time;\n }", "title": "" }, { "docid": "531cab001716bd74926db93b931dd7eb", "score": "0.5845054", "text": "void showGameTime(int time);", "title": "" }, { "docid": "d810f900bf149ddb4f7d3eadf5c91f50", "score": "0.5838229", "text": "public int getTime() {\n \treturn (int)(mHour*60.0f + 0.5f) % 720;\n }", "title": "" }, { "docid": "02755571dddc9aafca05622c785ca7d4", "score": "0.5834884", "text": "public double GetSamplesPerSecond()\r\n {\r\n return( mSamplesPerSecond ); \r\n }", "title": "" }, { "docid": "979134453ccb5587093d6aa9348215fe", "score": "0.58320934", "text": "public double event_time() { return time; }", "title": "" }, { "docid": "954ff3c7ee0dac728c861f943faaceb6", "score": "0.58306456", "text": "int getCurrentBeat();", "title": "" }, { "docid": "ee5025ca2e351a1e26cae50c97122f9a", "score": "0.58276045", "text": "public int time(){\n \t\n \treturn tic_calltimes;\n \n }", "title": "" }, { "docid": "151ed7ef10d0b6d1652e0ad78e0ec9a8", "score": "0.5810523", "text": "public int getSettleTime() {\n //settleTime = settleTimePrefAdapter.getInt();\n return settleTime;\n }", "title": "" }, { "docid": "ead12e927c0971cfb50f525ede676f36", "score": "0.58077717", "text": "public long getTime ()\n {\n return time;\n }", "title": "" }, { "docid": "bf1eb2a7fd4ceb430232dd0d5461c2aa", "score": "0.58043814", "text": "private void readTimeData() {\r\n Fitness.getHistoryClient(this, GoogleSignIn.getLastSignedInAccount(this))\r\n .readDailyTotal(DataType.TYPE_ACTIVITY_SEGMENT)\r\n .addOnSuccessListener(\r\n new OnSuccessListener<DataSet>() {\r\n @Override\r\n public void onSuccess(DataSet dataSet) {\r\n int total =\r\n dataSet.isEmpty()\r\n ? 0\r\n : dataSet.getDataPoints().get(0).getValue(Field.FIELD_DURATION).asInt();\r\n\r\n double time = (double) total*0.00001667;\r\n if(time <60){\r\n mRunningActive.setText(String.valueOf(formatter.format(time))+\"\\nminutes\");\r\n Log.i(TAG, \"Total Time: \" + total);\r\n }\r\n else{\r\n double timeHr = (double)time/60;\r\n double timeMin = (double)time%60;\r\n mRunningActive.setText(String.valueOf(formatter1.format(timeHr))+\" Hrs\\n\"+\r\n String.valueOf(formatter1.format(timeMin)+\" mins\"));\r\n Log.i(TAG, \"Total Time: \" + total);\r\n }\r\n\r\n }\r\n })\r\n .addOnFailureListener(\r\n new OnFailureListener() {\r\n @Override\r\n public void onFailure(@NonNull Exception e) {\r\n Log.w(TAG, \"There was a problem getting the step count.\", e);\r\n }\r\n });\r\n }", "title": "" }, { "docid": "d66a0ee68b119993787c0ebf87706804", "score": "0.57984555", "text": "int getPlayings();", "title": "" }, { "docid": "8d8044425515aa2ec129d0d7b35ab754", "score": "0.5794179", "text": "int getNoteTime();", "title": "" }, { "docid": "8d8044425515aa2ec129d0d7b35ab754", "score": "0.5794179", "text": "int getNoteTime();", "title": "" }, { "docid": "8d8044425515aa2ec129d0d7b35ab754", "score": "0.5794179", "text": "int getNoteTime();", "title": "" }, { "docid": "8d8044425515aa2ec129d0d7b35ab754", "score": "0.5794179", "text": "int getNoteTime();", "title": "" }, { "docid": "bb75104aa4effab501c0ef0301473fde", "score": "0.57938325", "text": "public int getTime(){\r\n\t\treturn Time;\r\n\t}", "title": "" }, { "docid": "8a0150475d85ff46612ea9fa28fb620c", "score": "0.5788039", "text": "private String getMinutes()\n {\n if (LocalTime.now().getMinute() < 10)\n return \"0\" + LocalTime.now().getMinute();\n else\n return LocalTime.now().getMinute() + \"\";\n }", "title": "" }, { "docid": "88b1f7e17bbf8517259827ce502023cf", "score": "0.5782117", "text": "public int getTime() {\n return time;\n }", "title": "" }, { "docid": "88b1f7e17bbf8517259827ce502023cf", "score": "0.5782117", "text": "public int getTime() {\n return time;\n }", "title": "" }, { "docid": "88b1f7e17bbf8517259827ce502023cf", "score": "0.5782117", "text": "public int getTime() {\n return time;\n }", "title": "" }, { "docid": "46f7aced5983650b3e48b37cad013e9b", "score": "0.5780939", "text": "public int getMinute() {\n return minute;\n }", "title": "" }, { "docid": "070ba6821b89fcca48259a251460f6fc", "score": "0.5779399", "text": "@Override\n\tpublic int getTime() {\n\t\t// TODO Auto-generated method stub\n\t\treturn time;\n\t}", "title": "" }, { "docid": "18f654d5180eca2f28ef3d9a9f3221e0", "score": "0.5777878", "text": "public void getDuration() {\n duration = 7;\n System.out.println(\"Duration:\" +duration);\n\t}", "title": "" }, { "docid": "d91fc49938ab12c6c231b8b8681a69c9", "score": "0.57751966", "text": "public String getPlayInfo() {\n return playInfo;\n }", "title": "" }, { "docid": "fde623e99e39b70e772f68dfe410b79e", "score": "0.57658803", "text": "private String getTime()\n {\n return getHour() + \":\" + getMinutes() + \":\" + getSeconds();\n }", "title": "" }, { "docid": "181c99927b1769ae9e99630b39f8bc1c", "score": "0.57607615", "text": "int getMinuteLimit();", "title": "" }, { "docid": "6f6421adb5ee0f6989d7328d3c1f4bf3", "score": "0.5759777", "text": "public String getShowtime() {\n return showtime;\n }", "title": "" }, { "docid": "8374d0a27ff35adfe5360a6921e99dcd", "score": "0.57587135", "text": "public String getPassTime()\r\n {\r\n return passTime;\r\n }", "title": "" }, { "docid": "0d4828de48004bb3974ffb150de7363e", "score": "0.5753836", "text": "double getUserTime();", "title": "" }, { "docid": "547bc091bccf345230ae2c3e86f65c0d", "score": "0.5742429", "text": "@Override\n\tpublic String toString()\n\t{\n\t\tString timeSt;\n\t\tint hours = time / 60;\n\t\tString min = String.valueOf(time - (hours * 60));\n\n\t\tString hour;\n\t\tString ampm;\n\n\t\tif(hours > 12)\n\t\t{\n\t\t\thour = String.valueOf(hours - 12);\n\t\t\tampm = \"pm\";\n\t\t}\n\t\telse if (hours == 12)\n\t\t{\n\t\t\tampm = \"pm\";\n\t\t\thour = String.valueOf(hours);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tampm = \"am\";\n\t\t\thour = String.valueOf(hours);\n\t\t}\n\n\t\tif((time - (hours * 60)==0))\t{\t\t\t\t\n\t\t\ttimeSt = hour + \":\" + \"00\" + \" \" + ampm;\n\t\t\treturn timeSt;\n\t\t}\n\t\telse\n\t\t{\t\t\t\t\n\t\t\ttimeSt = hour + \":\" + min + \" \" + ampm;\n\t\t\treturn timeSt;\n\t\t}\n\n\n\t}", "title": "" }, { "docid": "2d9c27e1bcd44237150f63c46ac8ac38", "score": "0.57400256", "text": "public String getGameTime() {\n if (minute > 9) {\n return hour + TIME_DIVIDER + minute;\n }\n return hour + TIME_DIVIDER_UNDER_TEN + minute;\n }", "title": "" }, { "docid": "5c75b0d09d1c2dc428d37ef3f59caf55", "score": "0.5735401", "text": "public long getGameTime() {\n return System.currentTimeMillis() - mediator.getInitTime();\n }", "title": "" }, { "docid": "4015aa8e51fa6c62ac6e69d32c2be96e", "score": "0.5728307", "text": "float getPlaybackRate() { return m_Sink.AudioSink_GetPlaybackRate(); }", "title": "" }, { "docid": "cd2e426e07724d952275fca1c719886c", "score": "0.57270014", "text": "public int getTimerSeconds()\n {\n return timerSeconds;\n }", "title": "" }, { "docid": "0008b8e8180cfb88a464110c90f64534", "score": "0.5723681", "text": "MV getHz();", "title": "" }, { "docid": "4b6433b4235e0cc268a5b2e43aedeafd", "score": "0.5722666", "text": "public int getTalkInterval()\n {\n return 360;\n }", "title": "" }, { "docid": "618b9cc71ee4c6181162d3ab067b4285", "score": "0.56953555", "text": "@Override\n public int getTimeActivityStart() { return TIME_ACTIVITY_START; }", "title": "" }, { "docid": "96563d18ab0bf0eef8967b8a649713e4", "score": "0.56941366", "text": "public String getPlay() {\n return play;\n }", "title": "" }, { "docid": "cf4c2b6b97e3ff8d7c6c26d220376ee4", "score": "0.56902915", "text": "protected Integer mo6091h() {\n return Integer.valueOf(((MediaPlayer) this.f.get()).getDuration());\n }", "title": "" }, { "docid": "733ed75340b29b11b0698477fc01d7b3", "score": "0.5689804", "text": "public Double getMinutes() {\n return minutes;\n }", "title": "" }, { "docid": "9ce937531dbb117d054dae600100c7df", "score": "0.56865835", "text": "float getFrameTime();", "title": "" }, { "docid": "84805029300bf183e7f63bc3985b7172", "score": "0.5683072", "text": "public void checkMasjidTimeAndBroadcastStream() {\n\n\n Calendar c = Calendar.getInstance();\n int hrs = c.get(Calendar.HOUR_OF_DAY);//24\n int min = c.get(Calendar.MINUTE);//59\n String format;\n final int dayOfWeek = c.get(Calendar.DAY_OF_WEEK);\n String current_time;\n if (hrs == 0) {\n hrs += 12;\n format = \"AM\";\n } else if (hrs == 12) {\n format = \"PM\";\n } else if (hrs > 12) {\n hrs -= 12;\n format = \"PM\";\n } else {\n format = \"AM\";\n }\n\n if (hrs > 9 && min > 9) {\n current_time = String.valueOf(hrs) + \":\" + String.valueOf(min) + \" \" + format;\n } else if (hrs < 9 && min < 9) {\n current_time = \"0\" + String.valueOf(hrs) + \":\" + \"0\" + String.valueOf(min) + \" \" + format;\n } else if (hrs < 9 && min > 9) {\n current_time = \"0\" + String.valueOf(hrs) + \":\" + String.valueOf(min) + \" \" + format;\n } else {\n current_time = String.valueOf(hrs) + \":\" + \"0\" + String.valueOf(min) + \" \" + format;\n }\n\n\n int count = PreferenceManager.timeModels.size();\n if (dayOfWeek == 6) {\n removeTime(count, \"Zohr\");\n } else {\n removeTime(count, \"Juma\");\n }\n\n\n int count1 = PreferenceManager.timeModels.size();\n SimpleDateFormat parser = new SimpleDateFormat(\"hh:mm a\",Locale.ENGLISH);\n try {\n Date date2 = parser.parse(current_time);\n for (int i = 0; i < count1; i++) {\n // get_sal=false;\n TimeModel timeModel = PreferenceManager.timeModels.get(i);\n String start_time = timeModel.getStart_time();\n Date date1 = parser.parse(start_time);\n String nextTime = PreferenceManager.timeModels.get((i + 1) % count1).getStart_time();\n Date date3 = parser.parse(nextTime);\n\n if(i == count1-1){\n if(date2.before(date3)){\n String salah_name = PreferenceManager.timeModels.get((i + 1) % count1).getSalah_name();\n bus.brodcast(new MasjidTime(nextTime, salah_name));\n found = true;\n }\n\n } else if (date2.before(date3) && date2.after(date1)) {\n String salah_name = PreferenceManager.timeModels.get((i + 1) % count1).getSalah_name();\n bus.brodcast(new MasjidTime(nextTime, salah_name));\n found = true;\n }\n\n\n\n\n if (start_time.equals(current_time)) {\n\n bus.brodcast(new MasjidTime(start_time, timeModel.getSalah_name()));\n\n if (timeModel.getSalah_name().equals(\"Tahajud\")) {\n\n\n // android version >oreo\n String tahajud = \"Tahajud salah started\" + \" \" + start_time;\n showNotification(context, tahajud);\n voiceSong(start_time);\n playing_song_start_time = start_time;\n\n } else {\n String jumaText = timeModel.getSalah_name() + \" \" + \"salah started\" + \" \" + start_time;\n if (dayOfWeek == 6) {\n\n if (!timeModel.getSalah_name().equals(\"Zohr\")) {\n showNotification(context, jumaText);\n voiceSong(start_time);\n playing_song_start_time = start_time;\n }\n\n } else {\n if (!timeModel.getSalah_name().equals(\"Juma\")) {\n showNotification(context, jumaText);\n voiceSong(start_time);\n playing_song_start_time = start_time;\n }\n }\n }\n }\n\n\n }\n\n if (!found) {\n if (PreferenceManager.timeModels.size() != 0) {\n TimeModel timeModel = PreferenceManager.timeModels.get(0);\n bus.brodcast(new MasjidTime(timeModel.getStart_time(),timeModel.getSalah_name()));\n }\n\n }\n\n\n } catch (ParseException e) {\n e.printStackTrace();\n }\n\n }", "title": "" }, { "docid": "0f7acc723c16cec32341d565e67a0c08", "score": "0.5680946", "text": "public void timePassed() {\r\n\r\n }", "title": "" }, { "docid": "10b34f62dbbeff96030c42e817a63021", "score": "0.5672884", "text": "public double getClockTime() {\n return clockTime;\n }", "title": "" }, { "docid": "84893804b404f22484742e5f154a40e1", "score": "0.56716263", "text": "public abstract long getTimeToTurn();", "title": "" }, { "docid": "af1de707ef0c473a56e70c4d28fd98f0", "score": "0.56714433", "text": "@Override\n public void onTimeSet(TimePicker view, int hourOfDay, int minute) {\n msg = String.format(\"%d 시 %d 분\", hourOfDay, minute);\n startTime = Integer.toString((hourOfDay * 60) + minute);\n time.setText(msg);\n //Toast.makeText(MainActivity.this, msg, Toast.LENGTH_SHORT).show();\n }", "title": "" }, { "docid": "eba02517acff12966e1670e965198137", "score": "0.5659466", "text": "@Override\n public void timePassed() {\n//\n }", "title": "" }, { "docid": "2ad5e31ca069c431d3ec16f9e230394b", "score": "0.5651529", "text": "public function float GetTimeUsed()\n{\n return self.TimeUsed;\n}", "title": "" }, { "docid": "1e13b92ff297018390698aa30818e4d7", "score": "0.5642107", "text": "double getWallTime();", "title": "" }, { "docid": "48e87baf2e0843ee4c1ae36ecab5c4ae", "score": "0.5641668", "text": "public int ms() {\n return msTime;\n }", "title": "" }, { "docid": "5d116be68c383a3dae45d09b383203a0", "score": "0.5640614", "text": "public int getTime() {\n return this.time;\n }", "title": "" }, { "docid": "32508effb7a4ca6fcaa1be99e7d3ffc2", "score": "0.5638121", "text": "public int getPlaycount()\n\t{\n\t\treturn playcount;\n\t}", "title": "" }, { "docid": "4f0c47a337baabbdfd0833bdf1ed4974", "score": "0.5635385", "text": "public int getSpeed()\n {\n return speed;\n }", "title": "" }, { "docid": "e22a6f478d882aac118e1a63295671b1", "score": "0.56292206", "text": "@Override\n public void onReceive(Context context, Intent intent) {\n int min = intent.getIntExtra(MIN, -1);\n int sec = intent.getIntExtra(SEC, -1);\n if(min != -1 || sec != -1){\n setMin_cur(min);\n setSec_cur(sec);\n Log.e(\"PAT_LOG\", \"Timer Status: min: \" + min + \" sec: \" + sec);\n callbackTimer();\n }\n else{\n Log.e(\"PAT_LOG\", \"ERROR receiver not correct values transmitted\");\n }\n }", "title": "" }, { "docid": "a852c9ccabafb6756794d6b00a74e0ce", "score": "0.56291676", "text": "int getPlaybackPositionInSeconds();", "title": "" }, { "docid": "e6f91a05e2f9e3d6c07a8ccbfff3faae", "score": "0.5627324", "text": "public String getTime() {\n return time;\n }", "title": "" }, { "docid": "e6f91a05e2f9e3d6c07a8ccbfff3faae", "score": "0.5627324", "text": "public String getTime() {\n return time;\n }", "title": "" }, { "docid": "e6f91a05e2f9e3d6c07a8ccbfff3faae", "score": "0.5627324", "text": "public String getTime() {\n return time;\n }", "title": "" }, { "docid": "d5ad7ce80b21e560326e4396b8ea6459", "score": "0.56237984", "text": "public String getTiming() {\n return this.timing;\n }", "title": "" }, { "docid": "9d2ccefe77774b48cc7fd04c7064c347", "score": "0.5622151", "text": "public double getTime() {\n return time;\n }", "title": "" }, { "docid": "13f8e4aa8bf1c62abf07efc3dd2856f3", "score": "0.5620394", "text": "double getAutoDisableTime ();", "title": "" }, { "docid": "23a6726315aaaa35851bd49d40f98f38", "score": "0.5619023", "text": "public Time getTime() { return time; }", "title": "" }, { "docid": "ba87094946eb79ff37bdec54c6c23044", "score": "0.5604333", "text": "double getFrameRate();", "title": "" }, { "docid": "e7f234aa9cc2248ba8259f5f290f3fec", "score": "0.56029683", "text": "public int getSpeed()\n {\n return speed;\n }", "title": "" }, { "docid": "e0729db8e2e23297072cf1fc60edd94b", "score": "0.5602523", "text": "private long getTime() {\r\n \t\treturn (Sys.getTime() * 1000) / Sys.getTimerResolution();\r\n \t}", "title": "" }, { "docid": "5c983d54201d8398131bcbc391c7c7c6", "score": "0.55882597", "text": "public double getPM ()\n\t{\n\t\treturn PM;\n\t}", "title": "" }, { "docid": "9a4672561ca3a134a6b433e704d713ed", "score": "0.5585858", "text": "public String getTimeFormated(float timer) {\n String formatedTime = \"\", secFormat = \"\", minFormated = \"00\", hourFormated = \"\";\n int hours = (int) (timer / 3600);\n int minutes = (int) ((timer % 3600) / 60);\n int seconds = (int) (timer % 60);\n\n if (seconds > 9) {\n secFormat = String.valueOf(seconds);\n } else if (seconds < 10) {\n secFormat = \"0\" + seconds;\n }\n\n if (minutes > 9) {\n minFormated = String.valueOf(minutes);\n } else if (minutes < 10) {\n minFormated = \"0\" + minutes;\n }\n formatedTime = minFormated + \":\" + secFormat;\n\n if (hours > 0) {\n hourFormated = String.valueOf(hours);\n formatedTime = hourFormated + \":\" + formatedTime;\n }else{\n formatedTime = \"00:\"+minFormated + \":\" + secFormat;\n }\n\n Log.d(\"MainActivity\",formatedTime);\n return formatedTime;\n }", "title": "" } ]
412ca7abac61595e9300de058f494ad1
get the children for the state called.
[ { "docid": "77769b86912d6b27cdf37c9327dd5785", "score": "0.69037634", "text": "public ArrayList<State> getChildren() {\r\n State current = this;\r\n //stores the current elements, so we will not lose anything.\r\n start();\r\n total_time = new ArrayList<Integer>();\r\n //checks if torch is left or right.\r\n if (torch == 0) {\r\n //Find combinations for the left side.\r\n Combinations = Find_Comb(this.Left_side);\r\n //Move each combo and calculate total time.\r\n for (int i = 0; i < Combinations.size(); i++) {\r\n move_right_2(Combinations.get(i));\r\n tempo = new State(this.Left_side, this.Right_side, torch, tm, father, Croot, SumTime);\r\n //Evaluate the total time.\r\n evaluate();\r\n tempo.setTm(total_time.get(i));\r\n //add this children to children arraylist.\r\n children.add(tempo);\r\n //reset the elements, thus we are again in the same state as we started.\r\n reset();\r\n //set the father of this children.\r\n children.get(children.size()-1).setFather(current);\r\n }\r\n }else {\r\n //Same as the previous loop. The only difference is that this loop refers to right side.\r\n for (int i = 0; i < Right_side.size(); i++) {\r\n move_left_1(Right_side.get(i));\r\n tempo = new State(this.Left_side, this.Right_side, torch, tm, father, Croot, SumTime);\r\n evaluate();\r\n tempo.setTm(total_time.get(i));\r\n children.add(tempo);\r\n reset();\r\n children.get(children.size()-1).setFather(current);\r\n }\r\n }\r\n return children;\r\n }", "title": "" } ]
[ { "docid": "52b16c9efc778f1b1d98e063f8a46780", "score": "0.72473747", "text": "public Object[] children(){\n\t\treturn getExits().toArray();\n\t}", "title": "" }, { "docid": "77a686b9739da3a57c03f8ff69988020", "score": "0.7182976", "text": "public abstract Object[] getChildren();", "title": "" }, { "docid": "bd615a7517b7dd4a04630c03a14cbfec", "score": "0.7006944", "text": "java.util.List<io.cucumber.messages.Messages.FeatureChild> \n getChildrenList();", "title": "" }, { "docid": "3124a67d18488862cb31e00a5876c272", "score": "0.69728446", "text": "public ILogical[] getChildren() {\n return children;\n }", "title": "" }, { "docid": "b7cccbd47466b6f853794584239e0ed3", "score": "0.68986243", "text": "List<T> getChildren();", "title": "" }, { "docid": "700374cc66f81a48ea836467ef9f3187", "score": "0.6890328", "text": "public ArrayList<DP_State_Node> get_children()\n {\n ArrayList<DP_State_Node> children = new ArrayList<DP_State_Node>();\n for (DP_Decision edge : decisions.list_of_decisions) children.add(edge.target);\n return children;\n }", "title": "" }, { "docid": "05678d0f59100ef398259759e268343f", "score": "0.6869831", "text": "public String[] children (String f);", "title": "" }, { "docid": "be57d844077e6ed49e13c9efdfe7548a", "score": "0.67836344", "text": "public List<ResultSet> getChildren() {\n if (children == null) {\n if (daoSession == null) {\n throw new DaoException(\"Entity is detached from DAO context\");\n }\n ResultSetDao targetDao = daoSession.getResultSetDao();\n List<ResultSet> childrenNew = targetDao._queryResultSet_Children(id);\n synchronized (this) {\n if(children == null) {\n children = childrenNew;\n }\n }\n }\n return children;\n }", "title": "" }, { "docid": "357d215c6918c857294c65707e43e503", "score": "0.6773122", "text": "public List getChildren() {\n return children;\n }", "title": "" }, { "docid": "13c6eaa44a44ba94bad890a33b9876ef", "score": "0.67259026", "text": "java.util.List<io.cucumber.messages.Messages.RuleChild> \n getChildrenList();", "title": "" }, { "docid": "24a7e07bc8ed60d5f89d33843b15c175", "score": "0.67251337", "text": "public List<ParameterString> getChildren() {\n\t\tif (this.fertileChildren == null) {\n\t\t\texpand();\n\t\t}\n\t\treturn this.fertileChildren;\n\t}", "title": "" }, { "docid": "afe1d80a2055c48d1b06f2bd32077239", "score": "0.67047626", "text": "public SymphonyObject[] getChildren() {\n//\t\tsortChildren();\n\t\treturn children.toArray(new SymphonyObject[children.size()]);\n\t}", "title": "" }, { "docid": "8243a1391cd91df27e19c41bbe57512b", "score": "0.66716963", "text": "public int getChildren() {\n return children;\n }", "title": "" }, { "docid": "2321ccca082653d36778275a304261c8", "score": "0.66607845", "text": "ExplorerTreeNode [] getChildren();", "title": "" }, { "docid": "7fbd56e449d76ae37355c7875a30f643", "score": "0.6638921", "text": "public ArrayList getChildren() {\n return children;\n }", "title": "" }, { "docid": "b7e6aef56d4846ffaea2281687510bc7", "score": "0.66302115", "text": "public java.util.List<io.cucumber.messages.Messages.FeatureChild> getChildrenList() {\n if (childrenBuilder_ == null) {\n return java.util.Collections.unmodifiableList(children_);\n } else {\n return childrenBuilder_.getMessageList();\n }\n }", "title": "" }, { "docid": "dfbb1fadf27d8e3fa1960a5acf4d3176", "score": "0.6629534", "text": "public Set<Node> getChildren()\r\n/* 85: */ {\r\n/* 86:106 */ return this.children;\r\n/* 87: */ }", "title": "" }, { "docid": "a5a2b73fb34edc6ad1b3652700105ea3", "score": "0.66255045", "text": "public List<String> getChildren() {\n return children;\n }", "title": "" }, { "docid": "5148d386de47c7f06ef7df7206ec0d92", "score": "0.6617107", "text": "ICElement[] getChildren() throws CModelException;", "title": "" }, { "docid": "842b9d25d54e1f9c4af4e3587fabd15c", "score": "0.6600413", "text": "public java.util.List<io.cucumber.messages.Messages.FeatureChild> getChildrenList() {\n return children_;\n }", "title": "" }, { "docid": "25a73f9fe2e30b3beb2ae304679d0924", "score": "0.65985364", "text": "public ICVSRemoteResource[] getChildren() {\n \t\treturn children;\n \t}", "title": "" }, { "docid": "13641bab965770e630399ffb8a0e48c2", "score": "0.6570036", "text": "public List<INedElement> getChildren();", "title": "" }, { "docid": "433ab0227b4ac3638693a264842cbde2", "score": "0.65423125", "text": "public MultiNode[] getChildren() {\n\t\treturn copyChildren( children.length );\n\t}", "title": "" }, { "docid": "8f21db57ec58beb3f46459c8c4dcb20d", "score": "0.65260756", "text": "Enumeration getAllChildren() {\n Vector userChildren=new Vector(children.size());\n \tSceneGraphObjectRetained sgo;\n \t\n \tfor(int i=0; i<children.size(); i++) {\n \t sgo = (SceneGraphObjectRetained)children.get(i);\n \t if(sgo != null)\n \t\tuserChildren.add(sgo.source);\n \t else\n \t\tuserChildren.add(null);\n \t}\n \t\n return userChildren.elements();\n }", "title": "" }, { "docid": "b6c88e4d5e59995bbb60875e4a0ab6d8", "score": "0.65235794", "text": "public Iterator getChildren()\n {\n if( null == m_children ) return EMPTY_ITERATOR;\n else return m_children.iterator();\n }", "title": "" }, { "docid": "77c6dc3923afb7313a3d6e7da8f0b363", "score": "0.6519111", "text": "public Collection getChildren() {\r\n return children;\r\n }", "title": "" }, { "docid": "0def50f899b9404e349c8f3d0d1e9006", "score": "0.65073293", "text": "Iterable<Position<E>> children(Position<E> p);", "title": "" }, { "docid": "71138d866ef7e71a475c95f26147f6f0", "score": "0.64987564", "text": "public synchronized List<ShellThread> getChildren()\n\t{\n\t\tArrayList<ShellThread> copy = new ArrayList<ShellThread>();\n\t\tcopy.addAll(mChildren);\n\t\treturn copy;\n\t}", "title": "" }, { "docid": "9b7132a0d6e33a6997c2b5959324156b", "score": "0.64952147", "text": "public ArrayList<Node> getChildren();", "title": "" }, { "docid": "a2a8f47bca74a10cdb9fd9b1d5a19827", "score": "0.6487871", "text": "public java.util.List<? extends io.cucumber.messages.Messages.FeatureChildOrBuilder> \n getChildrenOrBuilderList() {\n if (childrenBuilder_ != null) {\n return childrenBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(children_);\n }\n }", "title": "" }, { "docid": "4a6e408877aa07b9c044568c6d9b64e2", "score": "0.64807004", "text": "public List<TreeNode> getChildren()\r\n {\r\n return _children;\r\n }", "title": "" }, { "docid": "1f365b9ec3d22931a8cd98daa1881f00", "score": "0.64801025", "text": "@GET(\"/user/me/children\")\n ChildrenResponse getChildren();", "title": "" }, { "docid": "b80da29d812784a8248e3682ace03be3", "score": "0.6475945", "text": "public String[] getChildren() {\n tree().expandPath(getTreePath());\n Object o[] = tree().getChildren(getTreePath().getLastPathComponent());\n if (o == null) {\n return new String[0];\n }\n String s[] = new String[o.length];\n for (int i = 0; i < o.length; i++) {\n s[i] = o[i].toString();\n }\n return s;\n }", "title": "" }, { "docid": "09c5f5964237cf42a5b03703b98c7744", "score": "0.64616126", "text": "public Group[] getChildren();", "title": "" }, { "docid": "7eee07ac89c709e786928aff6f97d478", "score": "0.6431185", "text": "io.cucumber.messages.Messages.FeatureChild getChildren(int index);", "title": "" }, { "docid": "5cc5fcda24b216b7916cd41699117a04", "score": "0.6411959", "text": "public int[] getChildren() {\n int index = 0;\n int[] children = new int[this.children.size()];\n\n for (int child : this.children) {\n children[index] = child;\n index++;\n }\n\n return children;\n }", "title": "" }, { "docid": "6475dfe6b7a862711f2c598492f64746", "score": "0.64091694", "text": "public List<ParseTree> getChildrens() {\n return new ArrayList<>(childrens);\n }", "title": "" }, { "docid": "cfe4cd87ecc7ee99501add188ed66cc8", "score": "0.6404718", "text": "@Override\n\tpublic Object[] getChildren(Object obj) {\n\t\tDrawBoard board = (DrawBoard)obj;\n\t\treturn board.children.toArray();\n\t\t//return children.toArray();\n\t}", "title": "" }, { "docid": "aa3fd76f4ecdf1a0d57307b3e30d876d", "score": "0.6395816", "text": "protected abstract D[] getChildren( S station );", "title": "" }, { "docid": "58095520494dd8f3286f218a2c253c5a", "score": "0.63786316", "text": "public Object[] getChildren(Object o) \n {\n IProject project = (IProject) o;\n if (project.isOpen()) \n {\n try \n {\n return project.members();\n } \n catch (CoreException e) \n {\n //don't get the children if there are problems with the project\n }\n }\n return NO_CHILDREN;\n }", "title": "" }, { "docid": "660fc4ce65e673b477995ca711f0c350", "score": "0.6378389", "text": "@Generated\n public List<Flex> getChildren() {\n if (children == null) {\n __throwIfDetached();\n FlexDao targetDao = daoSession.getFlexDao();\n List<Flex> childrenNew = targetDao._queryFlex_Children(id);\n synchronized (this) {\n if(children == null) {\n children = childrenNew;\n }\n }\n }\n return children;\n }", "title": "" }, { "docid": "67f7932d255d1cb99fddab91244b0c00", "score": "0.6373998", "text": "public java.util.List<io.cucumber.messages.Messages.RuleChild> getChildrenList() {\n if (childrenBuilder_ == null) {\n return java.util.Collections.unmodifiableList(children_);\n } else {\n return childrenBuilder_.getMessageList();\n }\n }", "title": "" }, { "docid": "a63ab875f4fcc29014402e1bb45ce92f", "score": "0.6368327", "text": "public java.util.List<io.cucumber.messages.Messages.FeatureChild.Builder> \n getChildrenBuilderList() {\n return getChildrenFieldBuilder().getBuilderList();\n }", "title": "" }, { "docid": "21fa17892e2790317e780782697b47d8", "score": "0.63604313", "text": "public BigDecimal getChildren() {\n\t\treturn children;\n\t}", "title": "" }, { "docid": "e6c937f8246c6dce45f1e77237617af9", "score": "0.63591474", "text": "public Node[] getChildren(){\n Node[] children = { containedStatement };\n return children;\n }", "title": "" }, { "docid": "9677cd5e8ce2578646a707e433ae0754", "score": "0.63499683", "text": "protected final MultiNode[] getChildNodes() {\n\t\treturn children;\n\t}", "title": "" }, { "docid": "111b7ed7355107b576604f598021a017", "score": "0.6346272", "text": "public java.util.List<? extends io.cucumber.messages.Messages.FeatureChildOrBuilder> \n getChildrenOrBuilderList() {\n return children_;\n }", "title": "" }, { "docid": "c9f2d7bac3e0e95bb0e1d50a19b69e43", "score": "0.63447773", "text": "public Object[] getChildren(Object element);", "title": "" }, { "docid": "dd7e0be283afb8b2b0aecb6511c39776", "score": "0.6335727", "text": "@Override\n public OpIterator[] getChildren() {\n return this.childOps;\n }", "title": "" }, { "docid": "d1e90a429a9bc2b4936db3d978b1d51e", "score": "0.6334644", "text": "public TreeObject[] getChildren()\r\n {\r\n return (TreeObject[]) children.toArray(new TreeObject[children.size()]);\r\n }", "title": "" }, { "docid": "b8244d69ba30b97889839ee7d9772573", "score": "0.6326376", "text": "java.util.List<? extends io.cucumber.messages.Messages.FeatureChildOrBuilder> \n getChildrenOrBuilderList();", "title": "" }, { "docid": "4bcab42bc5f3b70d1b14a3db3f3d5a51", "score": "0.6325696", "text": "public DataSourceTreeElement[] getChildren() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "fd3b642cd33bd5842bc006de94ca28c0", "score": "0.6319872", "text": "public LinkedList<Person> getChildren() {\n\t\tRelationShipManager rManager = RelationShipManager.getInstance();\n\t\tLinkedList<Person> lstChildren = rManager.getChildren(this);\n\t\treturn lstChildren;\n\t}", "title": "" }, { "docid": "b9d9a204e0759d5c28cd8aa4dcd29986", "score": "0.63140845", "text": "public FavoriteViewTreeNode [] getChildren() {\r\n return (FavoriteViewTreeNode []) children.toArray(\r\n new FavoriteViewTreeNode [children.size()]);\r\n }", "title": "" }, { "docid": "348e77f9e472b808c7ef15e4ec03dc65", "score": "0.63100696", "text": "public java.util.List<? extends io.cucumber.messages.Messages.RuleChildOrBuilder> \n getChildrenOrBuilderList() {\n if (childrenBuilder_ != null) {\n return childrenBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(children_);\n }\n }", "title": "" }, { "docid": "a91b65e3d5d3ebee3d57538b7e67d3ee", "score": "0.6309463", "text": "public SubmissionTarget[] getChildren() throws SubmissionTargetException\n {\n return (children != null) ? children : new SubmissionTarget[0];\n }", "title": "" }, { "docid": "520f3155ebde71362f46af24bae8f843", "score": "0.63067394", "text": "@Override\n\tpublic List<ModelData> getChildren() {\n\t\tList<ModelData> children = get(ItemKey.A_CHILDREN.name());\n\t\tif (children == null)\n\t\t\treturn new ArrayList<ModelData>();\n\t\treturn children;\n\t}", "title": "" }, { "docid": "872f0b7f495952ccbec73f4095817cff", "score": "0.63066787", "text": "protected List getModelChildren() {\n\t\treturn ((UmlModel) getModel()).getChildren();\n\t}", "title": "" }, { "docid": "49118336f5e0278a23522b2e2a2551d0", "score": "0.62987924", "text": "protected List<?> getVisibleEditPartChildren() {\n\t return getChildren();\r\n\t}", "title": "" }, { "docid": "1d09f6c450a40b90103c82e624f040f7", "score": "0.6297958", "text": "public <CA extends Attribute, CE extends Execution> List<Step<CA, CE>> getChildren();", "title": "" }, { "docid": "2cbd2d0f8ef3f567b528e5ca3708303b", "score": "0.62965393", "text": "@Override\n public Set<String> getAllChildrenNames() {\n return this.children.keySet();\n }", "title": "" }, { "docid": "1a7b0984a89d784f0d7b5f1127c529ab", "score": "0.6275903", "text": "@Override\n public Object[] getChildren(Object parentElement) {\n return manager.getChildren(parentElement);\n }", "title": "" }, { "docid": "ce9c852991373025fd017bbc74283ac9", "score": "0.6270124", "text": "public List<LexiconNode> getChildren() {\n return children;\n }", "title": "" }, { "docid": "6b0945f3867982e095c26383bef205ef", "score": "0.6267649", "text": "public List<Node> getChildren() {\n return children;\n }", "title": "" }, { "docid": "4054f52dc93fedb959b91a81eced81bd", "score": "0.6266915", "text": "public ArrayList<Board> getChildren() {\n ArrayList<Board> children = new ArrayList<>();\n Coordinate posOfZero = mapFromIntegerToCoord.get(0);\n\n if (posOfZero.X + 1 <= Constants.dimX - 1) {\n Board aBoard = new Board(this);\n aBoard.makeMove(grid[posOfZero.X + 1][posOfZero.Y]);\n children.add(aBoard);\n }\n if (posOfZero.Y + 1 <= Constants.dimY - 1) {\n Board aBoard = new Board(this);\n aBoard.makeMove(grid[posOfZero.X][posOfZero.Y + 1]);\n children.add(aBoard);\n }\n if (posOfZero.X - 1 >= 0) {\n Board aBoard = new Board(this);\n aBoard.makeMove(grid[posOfZero.X - 1][posOfZero.Y]);\n children.add(aBoard);\n }\n if (posOfZero.Y - 1 >= 0) {\n Board aBoard = new Board(this);\n aBoard.makeMove(grid[posOfZero.X][posOfZero.Y - 1]);\n children.add(aBoard);\n }\n return children;\n }", "title": "" }, { "docid": "3be1322d93b00b09b484f4f50b24fbca", "score": "0.62626547", "text": "public java.util.List<io.cucumber.messages.Messages.RuleChild.Builder> \n getChildrenBuilderList() {\n return getChildrenFieldBuilder().getBuilderList();\n }", "title": "" }, { "docid": "3d18b1651e7c31d2c7d5b06dca3ee897", "score": "0.6258591", "text": "public List<TreeNode> getChildrenList() {\n return childrenList;\n }", "title": "" }, { "docid": "223cc1f5b898bf75b69f793325083018", "score": "0.6243826", "text": "public ArrayList<EZElement> getChildren() {\n return children;\n }", "title": "" }, { "docid": "507a3072c4c629278c74e1bb59fe530b", "score": "0.6226302", "text": "public List<NamedNode> getCompleteChildren() {\n List<NamedNode> children = new ArrayList<NamedNode>();\n if (this.writeTree.getValue() != null) {\n for (NamedNode entry : this.writeTree.getValue()) {\n children.add(new NamedNode(entry.getName(), entry.getNode()));\n }\n } else {\n for (Map.Entry<ChildKey, ImmutableTree<Node>> entry : this.writeTree.getChildren()) {\n ImmutableTree<Node> childTree = entry.getValue();\n if (childTree.getValue() != null) {\n children.add(new NamedNode(entry.getKey(), childTree.getValue()));\n }\n }\n }\n return children;\n }", "title": "" }, { "docid": "cfecc80b50d4deef4e15f54a1a1def72", "score": "0.62254405", "text": "public Iterable<Node> children(Node n) {\n List<Node> snapshot = new ArrayList<>(4); // max capacity of 2\r\n if (n.NE != null) {\r\n snapshot.add(n.NE);\r\n snapshot.add(n.NW);\r\n snapshot.add(n.SW);\r\n snapshot.add(n.SE);\r\n }\r\n return snapshot;\r\n }", "title": "" }, { "docid": "64f7e51ddfae86f5d5ddbeb85db3dd5e", "score": "0.62245715", "text": "public List<Widget> getChildren() {\n return null;\n }", "title": "" }, { "docid": "6e0aea52100e2442eadcc7acaf99fc55", "score": "0.622108", "text": "public void createChildren(){\n\t\tif(EVALUATOR.isEndState(gameState)) return;\n\t\t\n\t\t//otherwise: generate new game states from the given one\n\t\tHashSet<GameState> states = createNextStates();\n\t\tint i=0;\n\t\tfor(GameState tmpgs : states){\n\t\t\ti++;\n\t\t\t//add result as new child\n\t\t\tchildren.add( new ABTreeNode(tmpgs, 1-evalType, level+1, Integer.toString(i)) );\n\t\t}//next i\t\t\n\t}", "title": "" }, { "docid": "6be4319913154afe42d1ba9e09a06b2d", "score": "0.6213382", "text": "public List<? extends SimpleTreeNode<E>> getChildren() {\n return Collections.unmodifiableList(children);\n }", "title": "" }, { "docid": "4acc89ae7bae474996953831dab0b044", "score": "0.6209844", "text": "public List<IMessageTreeItem> getChildren(){\n\t\treturn list;\n\t}", "title": "" }, { "docid": "bee32032925a4470cad0834616ee479c", "score": "0.6207844", "text": "List<TreeNode<T>> children();", "title": "" }, { "docid": "becd37dcaee132ab50737a41ef5eb824", "score": "0.62067884", "text": "@PropertyLocalName(\"Children\")\n public List<RequestRDF> getChildren() {\n return children;\n }", "title": "" }, { "docid": "48da65b5e436b3f7ea94a5056cb0e667", "score": "0.6199864", "text": "@NotNull\n @Override\n public TreeElement[] getChildren() {\n return new TreeElement[0];\n }", "title": "" }, { "docid": "48da65b5e436b3f7ea94a5056cb0e667", "score": "0.6199864", "text": "@NotNull\n @Override\n public TreeElement[] getChildren() {\n return new TreeElement[0];\n }", "title": "" }, { "docid": "663491760586761c82858d15156493ef", "score": "0.61860454", "text": "@Override\n public DbIterator[] getChildren() {\n return new DbIterator[]{child};\n }", "title": "" }, { "docid": "c379af1d90dc6a1332ab95a3cb0239ad", "score": "0.6177917", "text": "public List<ApplicantChild> getChildren() {\n if (children == null) {\n if (daoSession == null) {\n throw new DaoException(\"Entity is detached from DAO context\");\n }\n ApplicantChildDao targetDao = daoSession.getApplicantChildDao();\n List<ApplicantChild> childrenNew = targetDao._queryApplication_Children(id);\n synchronized (this) {\n if(children == null) {\n children = childrenNew;\n }\n }\n }\n return children;\n }", "title": "" }, { "docid": "518afb5314276aa82acfafac57353b65", "score": "0.61712873", "text": "public List<PluginInfo> getChildren() {\n return Collections.unmodifiableList(children);\n }", "title": "" }, { "docid": "42c5818c57aa4ddb78c7935f50a3f786", "score": "0.6170186", "text": "public MDChildren() {\r\n\t\tmLogger = Logger.getLogger(\"org.adl.util.debug.validator\");\r\n\t\tmChildren = new ArrayList<String>();\r\n\t\tmAllKidsValid = false;\r\n\r\n\t}", "title": "" }, { "docid": "7c5de9f9805cd599bd5e53f77670f867", "score": "0.616974", "text": "io.cucumber.messages.Messages.FeatureChildOrBuilder getChildrenOrBuilder(\n int index);", "title": "" }, { "docid": "f7efb8da9d9ab856f450ae3beda749a7", "score": "0.61667424", "text": "public List<AptedNode<D>> getChildren() {\n return children;\n }", "title": "" }, { "docid": "203802764346a680f8cf57a62794186c", "score": "0.61629945", "text": "@Override\n public DbIterator[] getChildren() {\n DbIterator[] children = {_c1, _c2};\n return children;\n }", "title": "" }, { "docid": "0003b41baecc3bcd89e39334573d7ba2", "score": "0.6157174", "text": "@RequestMapping(value=\"/treenode/{nodeName}/children\", method=RequestMethod.GET)\r\n\tpublic Collection<TreeNode> getChildren(@PathVariable String nodeName) throws Exception\r\n\t{\r\n\t\tSystem.out.print(\"Node name:\" + nodeName);\r\n\t\tTreeNode node = TreeNode.findNode(nodeName);\r\n\t\tif(node != null)\r\n\t\t{ \r\n\t\t\treturn node.findChildrenNodes();\r\n\t\t}\r\n\t\t\t\r\n\t\treturn null;\t\t\r\n\t}", "title": "" }, { "docid": "6766705fc248546aedfc1361ca07c309", "score": "0.6155841", "text": "public java.util.List<io.cucumber.messages.Messages.RuleChild> getChildrenList() {\n return children_;\n }", "title": "" }, { "docid": "1ea029fddfcb68d9d02b8f34457e1ee1", "score": "0.6155318", "text": "@Override\n public List<StreamletBaseImpl<?>> getChildren() {\n return real.getChildren();\n }", "title": "" }, { "docid": "a2bcc6912337c050804e3b4a093a526b", "score": "0.6154496", "text": "public Collection<GenericTreeNode<D>> getChildren()\n\t{\n\t\treturn children;\n\t\t// return new ArrayList<Node<D>>(children);\n\t}", "title": "" }, { "docid": "46c6e6a51607616c1859db18029592b0", "score": "0.6151807", "text": "public io.cucumber.messages.Messages.FeatureChildOrBuilder getChildrenOrBuilder(\n int index) {\n return children_.get(index);\n }", "title": "" }, { "docid": "b061ad5994ddde285104ee3a553924b6", "score": "0.6151796", "text": "public io.cucumber.messages.Messages.FeatureChild getChildren(int index) {\n return children_.get(index);\n }", "title": "" }, { "docid": "fff103f75008b77403d120880a1769a5", "score": "0.61286366", "text": "java.util.List<? extends io.cucumber.messages.Messages.RuleChildOrBuilder> \n getChildrenOrBuilderList();", "title": "" }, { "docid": "131765ebedbb3d1e78594dd381cfa6ff", "score": "0.6127338", "text": "public int getChildrenCount() {\n return children_.size();\n }", "title": "" }, { "docid": "131765ebedbb3d1e78594dd381cfa6ff", "score": "0.6127338", "text": "public int getChildrenCount() {\n return children_.size();\n }", "title": "" }, { "docid": "880eea810be315651d8a3bc4aa8d3263", "score": "0.6119036", "text": "public ConfigurationObject[] getAllChildren() {\r\n return (ConfigurationObject[]) children.values().toArray(new ConfigurationObject[children.size()]);\r\n }", "title": "" }, { "docid": "19992d9178ac21f1a69924e491d2ca71", "score": "0.6115247", "text": "public String[] getAllChildrenNames() {\r\n return (String[]) children.keySet().toArray(new String[children.size()]);\r\n }", "title": "" }, { "docid": "68afb207154031899282222373f4b8ab", "score": "0.6109287", "text": "public Map<Long, Group> getChildren() {\n return children;\n }", "title": "" }, { "docid": "1fd2d7766297251810372f0b9031dbcd", "score": "0.609999", "text": "Map<Widget, FastTreeItem> getChildWidgets() {\n return childWidgets;\n }", "title": "" }, { "docid": "746dad931d9500871b07d1b3dde20d12", "score": "0.6099352", "text": "public List<Scope> getChildren() {\n return Collections.unmodifiableList(children);\n }", "title": "" }, { "docid": "9d346199f883fc8025c9e7b62d8faff7", "score": "0.60980743", "text": "public double getChildren() {\r\n\t\treturn children;\r\n\t}", "title": "" } ]
f031a18d46ce91c25ea2a3806507dc68
Gets the edge type for the given label.
[ { "docid": "395c11bc10045a66d72053b3ca29a283", "score": "0.8318458", "text": "public int getEdgeType(Object label);", "title": "" } ]
[ { "docid": "63dfe9f086d64ce1adda465c47c159e3", "score": "0.710562", "text": "public int addEdgeType(Object label);", "title": "" }, { "docid": "bcfd3971e9b490b97caa6c307f29b94f", "score": "0.59934866", "text": "public Object getEdgeLabel(int id);", "title": "" }, { "docid": "e4008546e1d9bf2f0d26b459b5e820e7", "score": "0.57157886", "text": "public T fromLabel(final String label) {\n\t\tT outT = _fromLabel(label);\n\t\tif (_strict && outT == null) throw new IllegalArgumentException(\"NO existe un elemento del enum con descripcion = \" + label);\n\t\treturn outT;\n\t}", "title": "" }, { "docid": "bc4af49485202f2813bec781317c84dc", "score": "0.5605856", "text": "static EdgeLabel loadSqlgSchemaEdgeLabel(String edgeLabelName, VertexLabel outVertexLabel, VertexLabel inVertexLabel, Map<String, PropertyType> properties) {\n return new EdgeLabel(true, edgeLabelName, outVertexLabel, inVertexLabel, properties);\n }", "title": "" }, { "docid": "bba4ca230a6dcd4d2679d6f31fc20302", "score": "0.52938396", "text": "void addEdge(Node n1, Node n2, Object label);", "title": "" }, { "docid": "d585453ec3b0f6160a1a8b5be7fc072d", "score": "0.52837366", "text": "public LabelType label() {\n return ((labels.size() > 0) ? labels.get(0) : null);\n }", "title": "" }, { "docid": "413c745e5855f102327907db1a1d94fd", "score": "0.5277158", "text": "public EDGETYPE getTipToNeighbor() {\n VertexValueWritable vertex = getVertexValue();\n for (DIR d : DIR.values()) {\n if (vertex.degree(d) == 1 && vertex.degree(d.mirror()) == 0) {\n return vertex.getNeighborEdgeType(d);\n }\n }\n return null;\n }", "title": "" }, { "docid": "6d73054f27afade0858cba9c64a1898f", "score": "0.5237446", "text": "public Class getClass(String label){\n for (Class c : this.getClasses()) {\n if(c.getLabel().equals(label))\n return c;\n }\n return null;\n }", "title": "" }, { "docid": "679dc84d31aaea906256f191e50af602", "score": "0.5192563", "text": "@Override\n\t\tpublic String getEdgeName(VertexTalkEdge edge) {\n\t\t\treturn edge.getLabel();\n\t\t}", "title": "" }, { "docid": "db200496883c0f57481c5683448f800c", "score": "0.5178204", "text": "public void addEdge(Integer startVertexId, Integer endVertexId, T label);", "title": "" }, { "docid": "02c34096862bacb86ffedb0764c3d94c", "score": "0.51603943", "text": "Edge find(String edgeIdentifier);", "title": "" }, { "docid": "5b0cd9f28a9289a0aea01543fc164075", "score": "0.50046647", "text": "@Override\n\tprotected int getNeighbor(int vertex, int edgeLabel) {\n\t\treturn 2*vertex + edgeLabel + 1;\n\t}", "title": "" }, { "docid": "d190200141859074f6945e71fdfebc6a", "score": "0.49922982", "text": "public String getLabel(edu.uci.ics.jung.graph.Edge edge) {\n return edgeLabels.get(edge);\n }", "title": "" }, { "docid": "680f1656c25ccaa174de290ba8cd77ef", "score": "0.49849293", "text": "<T> T findEdge(Class<T> edgeClass, Object from, Object to);", "title": "" }, { "docid": "14a5880c4986c76db2fa2655d82a396f", "score": "0.49761832", "text": "public InstructionType getTypeByOpCode(String opCode) throws Exception{\n\t\tInstructionType type = opType.get(opCode);\n\t\tif(type != null) return type;\n\t\telse throw new Exception(\"Instruction Type not found for \\n opCode \"+opCode);\n\t}", "title": "" }, { "docid": "cab12c1dd3465daedb6c0b8f10c11b67", "score": "0.493305", "text": "String getConnectedEdgeName();", "title": "" }, { "docid": "d7f282566b34f10a03671becddec29b2", "score": "0.49109933", "text": "MessageType getType();", "title": "" }, { "docid": "6088bc50630888abf8174b220c863ab5", "score": "0.4782816", "text": "public String getStringByLabel(String label);", "title": "" }, { "docid": "91ecb171b4b2291b23635d94c66c5c5b", "score": "0.47807345", "text": "boolean hasEdgeOfType(String edgeIType);", "title": "" }, { "docid": "cc8e063938b8beaee3449f190d5b97ae", "score": "0.47797439", "text": "public T getEdgeKey(Edge<T, E> edge) {\n\t\treturn edge.nodeKey;\n\t}", "title": "" }, { "docid": "da24de11f77065e43b12154204b47f9f", "score": "0.4771198", "text": "public static CyEdge getCyEdge(String source_alias, String edge_name,\n \t\t\tString target_alias, String interaction_type) {\n \n \t\tedge_name = canonicalizeName(edge_name);\n \t\tCyEdge edge = Cytoscape.getRootGraph().getEdge(edge_name);\n \t\tif (edge != null) {\n \t\t\treturn edge;\n \t\t}\n \n \t\t// edge does not exist, create one\n \t\tCyNode source = getCyNode(source_alias);\n \t\tCyNode target = getCyNode(target_alias);\n \n \t\treturn getCyEdge(source, target, Semantics.INTERACTION, interaction_type, true, true);\n \t}", "title": "" }, { "docid": "81a313aa09825f4cb4f88156e94fdfdf", "score": "0.47447067", "text": "public CellType getType()\r\n/* 50: */ {\r\n/* 51:121 */ return CellType.LABEL;\r\n/* 52: */ }", "title": "" }, { "docid": "cd205c476d00a4e8f52b749bf7e5323e", "score": "0.47394013", "text": "public String getTypeLabel() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "329ea24f44e88192ef23e6fe286bc5ff", "score": "0.47182417", "text": "CyEdge getAnEdge(CyNode node);", "title": "" }, { "docid": "df101e479fb5875cee9608d932f0e80f", "score": "0.47099838", "text": "String kind();", "title": "" }, { "docid": "df101e479fb5875cee9608d932f0e80f", "score": "0.47099838", "text": "String kind();", "title": "" }, { "docid": "efb9c7975d41081bcc0e45aa4bc9b9c7", "score": "0.47062728", "text": "com.google.cloud.dataplex.v1.DiscoveryEvent.EntityType getType();", "title": "" }, { "docid": "efb9c7975d41081bcc0e45aa4bc9b9c7", "score": "0.47062728", "text": "com.google.cloud.dataplex.v1.DiscoveryEvent.EntityType getType();", "title": "" }, { "docid": "761fe1a1f95b29d57238dca030451cdb", "score": "0.46888846", "text": "public abstract N getEdgeTarget(E edge);", "title": "" }, { "docid": "6d0f4e4b09c5ec8bd36d4a7493179222", "score": "0.46693006", "text": "@Override\n protected void deleteEdgesByLabel(CassandraSessionPool.Session session,\n Id label) {\n if (this.direction() == Directions.IN) {\n return;\n }\n\n // Query edge id(s) by label index\n Set<String> ids = queryByLabelIndex(session, indexTable(), label);\n if (ids.isEmpty()) {\n return;\n }\n\n // Delete index\n Delete del = QueryBuilder.delete().from(indexTable());\n del.where(formatEQ(HugeKeys.LABEL, label.asLong()));\n session.add(del);\n\n // Delete edges by id(s)\n List<HugeKeys> idNames = idColumnName();\n\n Consumer<EdgeId> deleteEdge = (id) -> {\n List<Object> idValues = idColumnValue(id);\n assert idNames.size() == idValues.size();\n\n // Delete edges in OUT and IN table\n String table = this.edgesTable(id.direction());\n Delete delete = QueryBuilder.delete().from(table);\n for (int i = 0, n = idNames.size(); i < n; i++) {\n delete.where(formatEQ(idNames.get(i), idValues.get(i)));\n }\n session.add(delete);\n };\n\n for (String idValue : ids) {\n Id rawId = IdUtil.readString(idValue);\n EdgeId id = EdgeId.parse(rawId.asString()).directed(true);\n assert id.direction() == Directions.OUT;\n deleteEdge.accept(id);\n deleteEdge.accept(id.switchDirection());\n }\n }", "title": "" }, { "docid": "e97b4a0694d09cac87d62657bae68ce5", "score": "0.46613112", "text": "private Node getNode(String label) {\n\n\t\treturn this.nodeMap.get(label);\n\t}", "title": "" }, { "docid": "86710254583e8909b83fcc6fa7ad0eb4", "score": "0.46600267", "text": "<T> T edgeToObject(Edge edge);", "title": "" }, { "docid": "97d5e1c99bb37497deb2cde2ea581622", "score": "0.46487164", "text": "byte getType();", "title": "" }, { "docid": "51c87feb18383159217f6d892d3a6ef4", "score": "0.46422186", "text": "ElementType getType();", "title": "" }, { "docid": "3da2689b18b07d56cc8d94fcff50f93a", "score": "0.4637025", "text": "public EdgeLabelMaker directed();", "title": "" }, { "docid": "073b567095fcec52b2dfcd91305c5504", "score": "0.4632153", "text": "public static String getDiagramType(ArgoDiagram diagram) {\n String type = null;\n if (diagram instanceof UMLUseCaseDiagram) {\n type = USE_CASE_DIAGRAM;\n } else if (diagram instanceof UMLClassDiagram) {\n type = CLASS_DIAGRAM;\n } else if (diagram instanceof UMLDeploymentDiagram) {\n type = DEPLOYMENT_DIAGRAM;\n } else if (diagram instanceof UMLCollaborationDiagram) {\n type = COLLABORATION_DIAGRAM;\n } else if (diagram instanceof UMLSequenceDiagram) {\n type = SEQUENCE_DIAGRAM;\n } else if (diagram instanceof UMLStateDiagram) {\n type = STATE_DIAGRAM;\n }\n return type;\n }", "title": "" }, { "docid": "65997cdc88ef6787c61ad68337d5a065", "score": "0.46205503", "text": "EventType getType();", "title": "" }, { "docid": "7e179e3b0a22b402cf7e2d6f0e780b3a", "score": "0.46119705", "text": "public String[] getEdgeLabel(String targetNodeType, String nodeType)\n throws EdgeRuleNotFoundException {\n\n EdgeRuleQuery query = new EdgeRuleQuery.Builder(targetNodeType, nodeType).build();\n Multimap<String, EdgeRule> edgeRules = edgeIngestor.getRules(query);\n\n return edgeRules.values().stream().map(EdgeRule::getLabel).toArray(String[]::new);\n }", "title": "" }, { "docid": "c6dfa1c8a89916f6dfc342f68e315cb9", "score": "0.45898682", "text": "@Override\n\tpublic int getNodeInterfaceType(N node)\n\t{\n\t\tint type = 0;\n\t\tif (sourceNodes != null && sourceNodes.contains(node))\n\t\t{\n\t\t\ttype |= DirectionalEdge.SOURCE;\n\t\t}\n\t\tif (sinkNodes != null && sinkNodes.contains(node))\n\t\t{\n\t\t\ttype |= DirectionalEdge.SINK;\n\t\t}\n\t\treturn type;\n\t}", "title": "" }, { "docid": "0333c69f107e3bd423d4dd7c2f9344a9", "score": "0.45861074", "text": "com.example.protos.VehicleType.Enum getVehicleType();", "title": "" }, { "docid": "7c7ee510c47a705a8392105285f8d655", "score": "0.4575453", "text": "<T extends Edge> T objectToEdge(Object edge);", "title": "" }, { "docid": "9907e0c1930d66a194fd6291be531852", "score": "0.4567964", "text": "public java.lang.String getLabel() {\n java.lang.Object ref = label_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n label_ = s;\n return s;\n }\n }", "title": "" }, { "docid": "098d882db9bd7cc3fd7b2dbc5c6038ef", "score": "0.45570403", "text": "EndpointType getEndpointType();", "title": "" }, { "docid": "f50029674cb082b60a03632d8112a02f", "score": "0.4537907", "text": "static final public String TypeLabel() throws ParseException, jsdai.lang.SdaiException {\n String label = null;\n printDebug(\"In TypeLabel, starting\");\n // (label = TypeLabelId() | TypeLabelRef())\n label = TypeLabelId();\n printDebug(\"In TypeLabel, ending\");\n {if (true) return label;}\n throw new Error(\"Missing return statement in function\");\n }", "title": "" }, { "docid": "b3f605a0dbc3109b6d0a75d9ffd67e5a", "score": "0.45326462", "text": "public java.lang.String getType( );", "title": "" }, { "docid": "fa1f2c2d74afcc9e785ed71239b0a869", "score": "0.45181853", "text": "public static int instructionType(String name) {\n\t\tif (name == null)\n\t\t\tthrow new IllegalArgumentException(\"In struction name can't be null\");\n\t\tInteger type = opcodeType.get(name.toLowerCase());\n\t\tif (type == null)\n\t\t\tthrow new IllegalArgumentException(\"Unknown instruction name: \" + name);\n\t\treturn type;\n\t}", "title": "" }, { "docid": "70117cc058cbbf0662c5c1b47a9fa340", "score": "0.45124236", "text": "public String getLabel() {\n return getClass().getSimpleName();\n }", "title": "" }, { "docid": "9195a740a3cb283bda8f5bcd0231c78b", "score": "0.45014292", "text": "<T> T createEdge(Class<T> edgeClass, Object from, Object to, ODocument edge);", "title": "" }, { "docid": "b2b1998a0d13471d29847628072164fe", "score": "0.44821182", "text": "public Edge getEdge(String from, String to) {\r\n Integer index = findEdgeIndex(from, to);\r\n if (index == null)\r\n return null;\r\n return nodes.get(from).edges.get(index);\r\n }", "title": "" }, { "docid": "98b15fc8eb60d4b1a7701ec253b5650b", "score": "0.44814122", "text": "public TYPE getType();", "title": "" }, { "docid": "3f73bf7b1ed402686d714482b6030d57", "score": "0.44803873", "text": "public String getLabel() {\n return WNHelper.int2PointerType(this.type).getLabel();\n }", "title": "" }, { "docid": "358a1545cfe2281b7fd4584642517ae0", "score": "0.44707823", "text": "java.lang.String getType();", "title": "" }, { "docid": "358a1545cfe2281b7fd4584642517ae0", "score": "0.44707823", "text": "java.lang.String getType();", "title": "" }, { "docid": "358a1545cfe2281b7fd4584642517ae0", "score": "0.44707823", "text": "java.lang.String getType();", "title": "" }, { "docid": "358a1545cfe2281b7fd4584642517ae0", "score": "0.44707823", "text": "java.lang.String getType();", "title": "" }, { "docid": "358a1545cfe2281b7fd4584642517ae0", "score": "0.44707823", "text": "java.lang.String getType();", "title": "" }, { "docid": "358a1545cfe2281b7fd4584642517ae0", "score": "0.44707823", "text": "java.lang.String getType();", "title": "" }, { "docid": "358a1545cfe2281b7fd4584642517ae0", "score": "0.44707823", "text": "java.lang.String getType();", "title": "" }, { "docid": "807d42e154a1164a784af5e593811436", "score": "0.4465751", "text": "String type();", "title": "" }, { "docid": "807d42e154a1164a784af5e593811436", "score": "0.4465751", "text": "String type();", "title": "" }, { "docid": "807d42e154a1164a784af5e593811436", "score": "0.4465751", "text": "String type();", "title": "" }, { "docid": "807d42e154a1164a784af5e593811436", "score": "0.4465751", "text": "String type();", "title": "" }, { "docid": "807d42e154a1164a784af5e593811436", "score": "0.4465751", "text": "String type();", "title": "" }, { "docid": "807d42e154a1164a784af5e593811436", "score": "0.4465751", "text": "String type();", "title": "" }, { "docid": "807d42e154a1164a784af5e593811436", "score": "0.4465751", "text": "String type();", "title": "" }, { "docid": "807d42e154a1164a784af5e593811436", "score": "0.4465751", "text": "String type();", "title": "" }, { "docid": "807d42e154a1164a784af5e593811436", "score": "0.4465751", "text": "String type();", "title": "" }, { "docid": "807d42e154a1164a784af5e593811436", "score": "0.4465751", "text": "String type();", "title": "" }, { "docid": "807d42e154a1164a784af5e593811436", "score": "0.4465751", "text": "String type();", "title": "" }, { "docid": "b81dfd90e0d1050c23717793b4685c5a", "score": "0.44594356", "text": "EventMessageProto.EventMessage.EventType getEventType();", "title": "" }, { "docid": "67f080fd287630cbb60a0927530a624c", "score": "0.4458168", "text": "public static Entry.EventType getEventType(String type) {\n Entry.EventType retVal = Entry.EventType.ERROR;\n\n switch (type) {\n case \"INT\":\n retVal = EventType.INT;\n break;\n case \"BOOL\":\n retVal = EventType.BOOL;\n break;\n case \"MC\":\n retVal = EventType.MC;\n break;\n }\n\n return retVal;\n }", "title": "" }, { "docid": "57773f32bb8df61f681fe54b1cbc91f8", "score": "0.4457447", "text": "public java.lang.String getLabel() {\n java.lang.Object ref = label_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n label_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "8ef25daed29047d6f9b9bb3d309b8abc", "score": "0.44519153", "text": "public Kind kind();", "title": "" }, { "docid": "4e053585b520d64cb51cfad66c277ee8", "score": "0.44503772", "text": "public byte getType();", "title": "" }, { "docid": "8d73560bf0abdf65cdd8d4590e1613fb", "score": "0.44462627", "text": "@Override\r\n public int getFeatureIndex (String label)\r\n {\r\n return LabelsHolder.indices.get(label);\r\n }", "title": "" }, { "docid": "79e6862b353ba1eddf9b76f7c02ef045", "score": "0.44425464", "text": "public String getType() {\n\t\tString thisClassSimpleName = this.getClass().getSimpleName();\n\t\t// TODO: following an implicit name convention\n\t\tString eventName = thisClassSimpleName.substring(0, thisClassSimpleName.indexOf(\"Event\"));\n\t\treturn eventName;\n\t}", "title": "" }, { "docid": "b031900d20774ab003fc784aa4296924", "score": "0.4430492", "text": "public void ensureEdgeVertexLabelExist(Direction direction, VertexLabel vertexLabel) {\n if (direction == Direction.OUT) {\n Preconditions.checkState(vertexLabel.getSchema().equals(getSchema()), \"For Direction.OUT the VertexLabel must be in the same schema as the edge. Found %s and %s\", vertexLabel.getSchema().getName(), getSchema().getName());\n }\n SchemaTable foreignKey = SchemaTable.of(vertexLabel.getSchema().getName(), vertexLabel.getLabel() + (direction == Direction.IN ? Topology.IN_VERTEX_COLUMN_END : Topology.OUT_VERTEX_COLUMN_END));\n if (!foreignKeysContains(direction, vertexLabel)) {\n //Make sure the current thread/transaction owns the lock\n Schema schema = this.getSchema();\n schema.getTopology().lock();\n if (!foreignKeysContains(direction, vertexLabel)) {\n TopologyManager.addLabelToEdge(this.sqlgGraph, this.getSchema().getName(), EDGE_PREFIX + getLabel(), direction == Direction.IN, foreignKey);\n if (direction == Direction.IN) {\n this.uncommittedInVertexLabels.add(vertexLabel);\n vertexLabel.addToUncommittedInEdgeLabels(schema, this);\n } else {\n this.uncommittedOutVertexLabels.add(vertexLabel);\n vertexLabel.addToUncommittedOutEdgeLabels(schema, this);\n }\n SchemaTable vertexSchemaTable = SchemaTable.of(vertexLabel.getSchema().getName(), vertexLabel.getLabel());\n addEdgeForeignKey(schema.getName(), EDGE_PREFIX + getLabel(), foreignKey, vertexSchemaTable);\n this.getSchema().getTopology().fire(this, vertexSchemaTable.toString(), TopologyChangeAction.ADD_IN_VERTEX_LABELTO_EDGE);\n }\n }\n }", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.44248086", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.44248086", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.44248086", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.44248086", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.44248086", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.44248086", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.44248086", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.44248086", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.44248086", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.44248086", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.44248086", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.44248086", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.44248086", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.44248086", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.44248086", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.44248086", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.44248086", "text": "String getType();", "title": "" }, { "docid": "3d70722a646e0e99ae686fc8901e5297", "score": "0.4422911", "text": "int getTypeOfEPFD();", "title": "" }, { "docid": "a19b7a857b4f3b893d4bc5b958b11f5b", "score": "0.44209087", "text": "public ArtefactType getArtefactType(String name);", "title": "" }, { "docid": "f609c3f9a4746adb7d7609193c4c32b8", "score": "0.4413618", "text": "com.appscode.api.kubernetes.v1beta2.LabelSelector getSelector();", "title": "" }, { "docid": "135fdb5112c44ee8f8beb4cd0a849d0d", "score": "0.44111592", "text": "<T> T createEdge(Class<T> edgeClass, Object from, Object to);", "title": "" }, { "docid": "a7ad062c886d45cfe26e58b931878bee", "score": "0.44052902", "text": "public Edge addEdge(final Object id, final Vertex outVertex, final Vertex inVertex, final String label) {\n Vertex outVertexToSet = outVertex;\n if (outVertex instanceof EventVertex) {\n outVertexToSet = ((EventVertex) outVertex).getBaseVertex();\n }\n\n Vertex inVertexToSet = inVertex;\n if (inVertex instanceof EventVertex) {\n inVertexToSet = ((EventVertex) inVertex).getBaseVertex();\n }\n\n final Edge edge = this.baseGraph.addEdge(id, outVertexToSet, inVertexToSet, label);\n if (edge == null) {\n return null;\n } else {\n this.onEdgeAdded(edge);\n return new EventEdge(edge, this);\n }\n }", "title": "" }, { "docid": "098cd62f6638a3aab8dd459819ae90ae", "score": "0.43971485", "text": "<T> T findEdgeBetween(Class<T> edgeClass, Object first, Object second);", "title": "" } ]
0b2eae4696e3e160118645ed23588cfa
Open an exit stream from the final node in this circuit to the specified target address and port.
[ { "docid": "a98c22056e9c3f73fb52dde8494ba5bd", "score": "0.6753877", "text": "OpenStreamResponse openExitStream(IPv4Address address, int port);", "title": "" } ]
[ { "docid": "6e333f15e7c378ee78a0dd45a917e686", "score": "0.6539945", "text": "OpenStreamResponse openExitStream(String hostname, int port);", "title": "" }, { "docid": "f52ac279172dea7f81e111936c99b844", "score": "0.5406038", "text": "AddressEndPointOutputConnector createAddressEndPointOutputConnector();", "title": "" }, { "docid": "fca3070bf810047b5d14bb6794d7fd51", "score": "0.5123143", "text": "public void open(ITelnetOutputHandler outputHandler) throws IOException;", "title": "" }, { "docid": "9cbef9283fd88b11681815ca537907c7", "score": "0.50076586", "text": "protected void open() {\n\t\tif (this.output == null) {\n\t\t\ttry {\n\t\t\t\tsocket = new Socket(this.host, this.port);\n\t\t\t\tsocket.setTcpNoDelay(true);\n\t\t\t\toutput = socket.getOutputStream();\n\t\t\t} catch (Exception e) {\n\t\t\t\tlog(\"open: error: \" + e, e);\n\t\t\t\tthis.close();\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "f12bb8519d647accdf8ddd565d38a5cc", "score": "0.48580796", "text": "public void connectTo(InputPort inputPort) throws PortException;", "title": "" }, { "docid": "3273749943b86bfa373c9b2623831c64", "score": "0.48380327", "text": "OutPort getOutPort();", "title": "" }, { "docid": "3fe08580e808e63c6ce0e05b7f80a1c5", "score": "0.47702113", "text": "boolean sailTo(Port p);", "title": "" }, { "docid": "b9726614e947e8aa75a8fc592ec45468", "score": "0.47330147", "text": "AddressingEndpointOutputConnector createAddressingEndpointOutputConnector();", "title": "" }, { "docid": "62c5f34ca6c3b7696df8a23867a90787", "score": "0.47296494", "text": "public void close() {\n port.close();\n }", "title": "" }, { "docid": "b0a2cb0d6682744ec5a3c79c8d4db095", "score": "0.46475208", "text": "public int getOutPort();", "title": "" }, { "docid": "b8c5300be7ff569e282fa0b865efeadd", "score": "0.4622974", "text": "public final void entryRuleSinkNode() throws RecognitionException {\r\n try {\r\n // ../org.wsn.sennet.xtext.ui/src-gen/org/wsn/sennet/xtext/ui/contentassist/antlr/internal/InternalDSL.g:593:1: ( ruleSinkNode EOF )\r\n // ../org.wsn.sennet.xtext.ui/src-gen/org/wsn/sennet/xtext/ui/contentassist/antlr/internal/InternalDSL.g:594:1: ruleSinkNode EOF\r\n {\r\n before(grammarAccess.getSinkNodeRule()); \r\n pushFollow(FollowSets000.FOLLOW_ruleSinkNode_in_entryRuleSinkNode1201);\r\n ruleSinkNode();\r\n\r\n state._fsp--;\r\n\r\n after(grammarAccess.getSinkNodeRule()); \r\n match(input,EOF,FollowSets000.FOLLOW_EOF_in_entryRuleSinkNode1208); \r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n }\r\n return ;\r\n }", "title": "" }, { "docid": "63c45ccebcc949b79e59c31b068eb9a1", "score": "0.45810547", "text": "public void run() {\n try {\n f = b.bind(port).sync(); // (7)\n f.channel().closeFuture().sync();\n } catch (Exception e) {\n }\n }", "title": "" }, { "docid": "6ee29a566c1c971b9b83939fb08bf04a", "score": "0.4579017", "text": "Port createPort();", "title": "" }, { "docid": "d6caac13cf716d929facb09bd0a726ab", "score": "0.45759305", "text": "@Override\r\n\tpublic void exit(NodeImpl target) {\n\t}", "title": "" }, { "docid": "a02749f6016266ee0766cc785495b4ae", "score": "0.45452794", "text": "FailoverEndPointOutputConnector createFailoverEndPointOutputConnector();", "title": "" }, { "docid": "f8747be18f58e450fdd10c5aec1abec7", "score": "0.45391163", "text": "AddressEndPoint createAddressEndPoint();", "title": "" }, { "docid": "424453b4fd45b2b6ca0f9cd75e13432f", "score": "0.45285085", "text": "RouterMediatorTargetOutputConnector createRouterMediatorTargetOutputConnector();", "title": "" }, { "docid": "050f2d84112ce01fdb97b99c2a2179d7", "score": "0.45270103", "text": "Port getNextPort();", "title": "" }, { "docid": "644687c15dc8ff1c61dc1557473484f4", "score": "0.44982752", "text": "public InputPort getDestination();", "title": "" }, { "docid": "8b0b290462e547cfd0682c4f4260056a", "score": "0.44729665", "text": "public final void entryRuleLogPort() throws RecognitionException {\n try {\n // ../ca.queensu.cs.mase.urml.ui/src-gen/ca/queensu/cs/mase/ui/contentassist/antlr/internal/InternalUrml.g:286:1: ( ruleLogPort EOF )\n // ../ca.queensu.cs.mase.urml.ui/src-gen/ca/queensu/cs/mase/ui/contentassist/antlr/internal/InternalUrml.g:287:1: ruleLogPort EOF\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getLogPortRule()); \n }\n pushFollow(FOLLOW_ruleLogPort_in_entryRuleLogPort547);\n ruleLogPort();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getLogPortRule()); \n }\n match(input,EOF,FOLLOW_EOF_in_entryRuleLogPort554); if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }", "title": "" }, { "docid": "f7c84e20bb8411f29422494827debf5e", "score": "0.44681874", "text": "public final void entryRulePort() throws RecognitionException {\n try {\n // ../ca.queensu.cs.mase.urml.ui/src-gen/ca/queensu/cs/mase/ui/contentassist/antlr/internal/InternalUrml.g:314:1: ( rulePort EOF )\n // ../ca.queensu.cs.mase.urml.ui/src-gen/ca/queensu/cs/mase/ui/contentassist/antlr/internal/InternalUrml.g:315:1: rulePort EOF\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getPortRule()); \n }\n pushFollow(FOLLOW_rulePort_in_entryRulePort607);\n rulePort();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getPortRule()); \n }\n match(input,EOF,FOLLOW_EOF_in_entryRulePort614); if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }", "title": "" }, { "docid": "5aa44a65f7afd084962087384b1d6c59", "score": "0.44611162", "text": "NodeAddress connector();", "title": "" }, { "docid": "0b548d69eb076ed23478f61b69d7477d", "score": "0.44449782", "text": "public void eof() throws IOException {\n\t\t\tif(!outputOpen)\n\t\t\t\tthrow new IOException(\"Output on this port is already closed\");\n\t\t\toutputOpen = false;\n\t\t\tportStatusService.eof(this);\n\t\t}", "title": "" }, { "docid": "5ed4e8578e58c7ec1a1ac2f6d9742b35", "score": "0.44159228", "text": "FailoverEndPointWestOutputConnector createFailoverEndPointWestOutputConnector();", "title": "" }, { "docid": "84eacad8df79cabb54314ef6ec678b02", "score": "0.44141024", "text": "public InputPort getTarget() {\n return mTarget;\n }", "title": "" }, { "docid": "fa1ad6bde25a466fb61ef8150ad43852", "score": "0.44098774", "text": "public static EMAPortInstanceSymbol connectorTargetPort(EMAComponentInstanceSymbol inst, EMAConnectorInstanceSymbol c) {\n\n if(connectorInstanceTargetPortInstance.containsKey(c)){\n return connectorInstanceTargetPortInstance.get(c);\n }\n\n Iterator<String> parts = Splitters.DOT.split(c.getTarget()).iterator();\n Optional<String> instance = Optional.empty();\n Optional<String> instancePort;\n Optional<EMAPortInstanceSymbol> port;\n if (parts.hasNext()) {\n instance = Optional.of(parts.next());\n }\n if (parts.hasNext()) {\n instancePort = Optional.of(parts.next());\n instance = Optional.of(StringUtils.uncapitalize(instance.get()));\n /*Log.info(instance.get().toString(),\"before error\");\n for(EMAComponentInstanceSymbol symbol:inst.getSubComponents()){\n Log.info(symbol.toString(),\"found:\");\n }*/\n EMAComponentInstanceSymbol inst2 = inst.getSubComponent(instance.get()).get();\n port = inst2.getSpannedScope().<EMAPortInstanceSymbol>resolve(instancePort.get(), EMAPortInstanceSymbol.KIND);\n } else {\n instancePort = instance;\n\n port = inst.getSpannedScope().<EMAPortInstanceSymbol>resolve(instancePort.get(), EMAPortInstanceSymbol.KIND);\n }\n\n if (port.isPresent()) {\n connectorInstanceTargetPortInstance.put(c, port.get());\n return port.get();\n }\n\n if (c.getTargetPort() != null) {\n connectorInstanceTargetPortInstance.put(c,c.getTargetPort());\n return c.getTargetPort();\n }\n Log.info(c.getEnclosingScope().toString(), \"Scope:\");\n Log.info(c.toString(), \"Connector:\");\n Log.info(\"False target: \" + c.getTarget() + \" in: \" + c.getEnclosingScope().getName().get(), \"ImplementExecutionOrder\");\n Log.error(\"0xAC013 No target have been set for the connector symbol\");\n return null;\n }", "title": "" }, { "docid": "3ee107fab49b36719be7e24ec152a65b", "score": "0.4405675", "text": "public void setToPort(Integer toPort) {\n this.toPort = toPort;\n }", "title": "" }, { "docid": "9e0aa082702ae52dca95b152239af71b", "score": "0.440463", "text": "AddressEndPointInputConnector createAddressEndPointInputConnector();", "title": "" }, { "docid": "4164a4b06883e0e4f98d6b7b50d8a0d4", "score": "0.4387581", "text": "void generateConnectionTarget(JavaConnectionTarget target, LogicalConsumer consumer) throws Fabric3Exception;", "title": "" }, { "docid": "75a43105d017faa79b6336e907c81321", "score": "0.43785033", "text": "public void close() {\n listening = false;\r\n if (readingThread != null) {\r\n readingThread.interrupt();\r\n }\r\n readingThread = null;\r\n /*\r\n * try { closed.await(); } catch (Exception e) { Logging.logError(e); }\r\n */\r\n\r\n // TODO - suppose to remove listeners ???\r\n log.info(String.format(\"closed port %s\", portName));\r\n\r\n }", "title": "" }, { "docid": "75902ca39621f44643e8e142a0fe2ce7", "score": "0.43753418", "text": "HTTPEndPointOutputConnector createHTTPEndPointOutputConnector();", "title": "" }, { "docid": "7c1c5e64b137853dab66a584e162c469", "score": "0.43528894", "text": "public TrafficSimulator(OutputStream outputStream) {\r\n\t\toutStream = outputStream;\r\n\t}", "title": "" }, { "docid": "6677bc5d6f33b7c4a0a0171bada58e8a", "score": "0.4342105", "text": "CoordinationMasterPort createCoordinationMasterPort();", "title": "" }, { "docid": "89958e9af2c3f9b0bfae137172349eb6", "score": "0.43327248", "text": "long srcPort();", "title": "" }, { "docid": "f55a3f101f0053ee492664a655ed2ed6", "score": "0.43216068", "text": "SignalPort getOutPort();", "title": "" }, { "docid": "32eed413055aadf63d49cb8eaa6329ca", "score": "0.42892212", "text": "public IOutputPort getOutput();", "title": "" }, { "docid": "44773bfc89eba26d6ceb8c80d7c1f0db", "score": "0.42798713", "text": "public void PortClosing(String arg0) {\n\t\t\r\n\t}", "title": "" }, { "docid": "b800eeea4f61367ad979deef2fa3ab33", "score": "0.42706093", "text": "InboundEndpointSequenceOutputConnector createInboundEndpointSequenceOutputConnector();", "title": "" }, { "docid": "481067d6aefa70c2dd270d2aabe09656", "score": "0.42629525", "text": "public void closeSink(InputSink sink);", "title": "" }, { "docid": "d630208d70b2f34d8d317f6dd390e847", "score": "0.42557207", "text": "StreamSink getStreamSink() throws IOException;", "title": "" }, { "docid": "a1510d461ebd478c60110a3c635335af", "score": "0.42473158", "text": "OutputStream openOutStream() throws DownloadException;", "title": "" }, { "docid": "842cc8a7924a5e39c6294f75b3946acd", "score": "0.42426953", "text": "CoordinationSlavePort createCoordinationSlavePort();", "title": "" }, { "docid": "712063d36a61c0f9d7c617a335656d1f", "score": "0.42271212", "text": "public URI target() throws IOException {\t\t\t\n\t\t\tString target =\"http://www.smartdeveloperhub.com/org-harvester\";\n\t\t\tLOGGER.info(\"- Publishing \"+ target +\"..\");\n\t\t\treturn URI.create(target);\n\t }", "title": "" }, { "docid": "957b9f9584ef1400d9f031de0415bb04", "score": "0.42262977", "text": "Worker(Terminal terminal, String dstHost, int dstPort, int srcPort) {\r\n\t\ttry {\r\n\t\t\tthis.terminal = terminal;\r\n\t\t\tdstAddress = new InetSocketAddress(dstHost, dstPort);\r\n\t\t\tsocket = new DatagramSocket(srcPort);\r\n\t\t\tlistener.go();\r\n\t\t} catch (java.lang.Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "ea33b8d4fc3bc40d48d206cde5b8c506", "score": "0.42248392", "text": "public boolean openPort() {\n return openPort(m_hostName, m_portNumber);\n }", "title": "" }, { "docid": "8fc9ccc1fdca9fd9cac390470e07fe95", "score": "0.42010048", "text": "public void disconnect(){\n this.out.close();\n }", "title": "" }, { "docid": "a84d25f9bcaaa7a374e90f207da27345", "score": "0.41932902", "text": "LoadBalanceEndPointWestOutputConnector createLoadBalanceEndPointWestOutputConnector();", "title": "" }, { "docid": "4ef268db2c3a8102dfc86eb1c1978d5e", "score": "0.41904023", "text": "@Override\n\tprotected void onEnd() {\n\t\ttry {\n\t\t\tthis.peer.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "17a06bf8aa76fd1e2219bed5c7eaa9ae", "score": "0.4182555", "text": "LoadBalanceEndPointOutputConnector createLoadBalanceEndPointOutputConnector();", "title": "" }, { "docid": "8d539ebf24a40983a4ec7ff04719e7ff", "score": "0.41752625", "text": "public void close() {\n if (!_socket.isClosed()) {\n String addr = _socket.getLocalAddress().getHostAddress();\n int port = _socket.getLocalPort();\n Console.info(\"Closed UDP port \" + addr + \":\" + port + \".\");\n _socket.close();\n }\n }", "title": "" }, { "docid": "a728f5a77e3d8bf82d22df6304a5cb97", "score": "0.41726947", "text": "private void init (ObjectOutputStream output, String address, int port, String rawDataIP, int rawDataPort) {\n\t\tthis.output = output;\n\t\tif (address.equals(\"localhost\")) {\n\t\t\tthis.name = \"TCPpipe_port\" + port;\n\t\t} else {\n\t\t\tthis.name = \"TCTpipe_IP\" + address + \"_port\" + port;\n\t\t}\n\t\tthis.rawDataPort = rawDataPort;\n\t\tthis.rawDataIP = rawDataIP;\n\t\tmyThread = new Thread(this, myThreadName);\n\t\tmyThread.setDaemon(true);\n\t\tmyThread.start();\n\t}", "title": "" }, { "docid": "74432ef468cb91d8957b60809617f89b", "score": "0.41716254", "text": "public ConnectionForwarder(RepositoryConnection source, Runnable onClose) {\n impl = source;\n onCloseCallback = onClose;\n }", "title": "" }, { "docid": "ac2c304fe13e5f135414119591b9b2cf", "score": "0.41710663", "text": "void connect(InetSocketAddress address) throws IOException;", "title": "" }, { "docid": "210c68637aa05b33455f249ceea1f3f2", "score": "0.4163409", "text": "public Exit(String target, String description) {\n\t\tthis.description = description;\n\t\tthis.target = target;\n\t\tthis.hidden = false; // Normal exit is visible.\n\t\tthis.locked = false; // Normal exit is unlocked.\n\t}", "title": "" }, { "docid": "e9edb0dbf19581e775e5216235c17c48", "score": "0.41618857", "text": "@Override\n\tpublic void close() {\n\t\ttry {\n\t\t\tif (this.output != null) {\n\t\t\t\tthis.output.close();\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tthis.output = null;\n\t\t}\n\n\t\ttry {\n\t\t\tif (this.socket != null && (!this.socket.isClosed())) {\n\t\t\t\tthis.socket.close();\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tthis.socket = null;\n\t\t}\n\t}", "title": "" }, { "docid": "f48280150e9cdfd7bffa8fc7d254d80b", "score": "0.4158952", "text": "public long srcPort();", "title": "" }, { "docid": "9309448420655ae3ba904779bb1c8429", "score": "0.41413572", "text": "Connector connectTo(Element target);", "title": "" }, { "docid": "c1b472dbc7d0a563a021c38d353bb66e", "score": "0.41403738", "text": "long dstPort();", "title": "" }, { "docid": "eb4c2bd810e6519f082ffc05c0e1727c", "score": "0.41391513", "text": "@Override\n\tpublic void PortClosing(String arg0) {\n\t\t\n\t}", "title": "" }, { "docid": "e4cc8c12d9d7c84513dbf85393698dcd", "score": "0.41315213", "text": "ImageProxyServer(final String targetHost, final int targetPort) {\r\n \r\n \t\tthis.targetHost = targetHost;\r\n \t\tthis.targetPort = targetPort;\r\n \t}", "title": "" }, { "docid": "4453b1c9bb0255e89a9ffd421d1b02bb", "score": "0.41277632", "text": "public abstract Destination newRemotePrinter(RemoteNode rnode);", "title": "" }, { "docid": "bda72b718dc8b295b740d8a285076311", "score": "0.4125258", "text": "DefaultEndPointOutputConnector createDefaultEndPointOutputConnector();", "title": "" }, { "docid": "7fb693b400fd6b735a9987121d284349", "score": "0.4115048", "text": "@Override\n\tpublic void connectTo(Sink sink) {\n\t\t\n\t}", "title": "" }, { "docid": "502c10628d0607cbf06e13635a6dac8d", "score": "0.41066617", "text": "@Override\n\tpublic void shutdown() {\n\t\tshutdown = true;\n\t\treader.stop();\n\t\tout.write(\"Q\\r\\n\");\n\t\tout.flush();\n\t\ttry {\n\t\t\tis.close();\n\t\t\tos.close();\n\t\t\tport.close();\n\t\t\tout2.close();\n\t\t\tin.close();\n\t\t\techoSocket.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tSystem.out.println(\"[Bugduino] service stopped.\");\n\n\t}", "title": "" }, { "docid": "60d81868fcc5dc570dbada63eec19fca", "score": "0.410191", "text": "void bind(InetSocketAddress address) throws IOException;", "title": "" }, { "docid": "53c2eac4204d6e933e34976f70d6ea4b", "score": "0.40982208", "text": "ProxyOutSequenceOutputConnector createProxyOutSequenceOutputConnector();", "title": "" }, { "docid": "46d0fc128659d2f68553b647912f48da", "score": "0.4097982", "text": "NamedEndpointOutputConnector createNamedEndpointOutputConnector();", "title": "" }, { "docid": "776eaf7909319fb3a82401a6c6992b28", "score": "0.4095664", "text": "public void setRemotePort( int p )\n {\n this.remotePort = p;\n }", "title": "" }, { "docid": "6ac087a797370368afe0443ca230cdab", "score": "0.409331", "text": "@Override\n public void close() throws IOException {\n if (debugSink != null) {\n debugSink.close();\n }\n }", "title": "" }, { "docid": "03f39bcfab4eb3ec79378b4244cf640f", "score": "0.4089449", "text": "PortRef createPortRef();", "title": "" }, { "docid": "748a936dc4e57ff3ac41691911e96204", "score": "0.40871185", "text": "public void close()\r\n\t{\r\n\t\tthis.shouldExit = true;\r\n\t receiveSocket.close();\r\n\t}", "title": "" }, { "docid": "5a659a7aee9db6ca61b482ac1a3d797b", "score": "0.40848508", "text": "QueueOutputPipeTCP(String address, int port) throws UnknownHostException, IOException {\n\t\tObjectOutputStream out = null;\n\t\tfor (int i = 0; ; i++) {\n\t\t\ttry {\n\t\t\t\tout = new ObjectOutputStream (new Socket (address, port).getOutputStream());\n\t\t\t} catch (UnknownHostException e) {\n\t\t\t\tthrow e;\n\t\t\t} catch (IOException e) {\n\t\t\t\tif (i >= 1000) {\n\t\t\t\t\tthrow e;\n\t\t\t\t} else \n\t\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tbreak;\n\t\t}\n\t\tinit(out, address, port, \"localhost\", port + 1);\n\t}", "title": "" }, { "docid": "032da6fba53ca380c596eb18fda4417b", "score": "0.40847474", "text": "public Network withOpenPortRange(PortRange openPortRange) {\n setOpenPortRange(openPortRange);\n return this;\n }", "title": "" }, { "docid": "97f703080a18bb6ecb933403e4e27be9", "score": "0.40847474", "text": "@Override\n public void onExit() {\n try {\n out.close();\n in.close();\n socket.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "title": "" }, { "docid": "b54d8c272b5c2bea6a5b0d8257dc6ec2", "score": "0.4084654", "text": "CloneMediatorTargetOutputConnector createCloneMediatorTargetOutputConnector();", "title": "" }, { "docid": "6382ea6903a789e1a50ffe4c9114201c", "score": "0.407984", "text": "public interface OutputPort extends Port {\n\n\t/**\n\t * Connects to an input port.\n\t * \n\t * @throws PortException\n\t * if already connected.\n\t */\n\tpublic void connectTo(InputPort inputPort) throws PortException;\n\n\t/**\n\t * Disconnects the OutputPort from its InputPort. Note: As a side effect, disconnecting ports\n\t * may trigger PortExtenders removing these ports. In order to avoid this behaviour,\n\t * {@link #lock()} port first.\n\t * \n\t * @throws PortException\n\t * if not connected.\n\t */\n\tpublic void disconnect() throws PortException;\n\n\t/**\n\t * Delivers an object to the connected {@link InputPort} or ignores it if the output port is not\n\t * connected.\n\t */\n\tpublic void deliver(IOObject object);\n\n\t/** Returns the destination input port. */\n\tpublic InputPort getDestination();\n\n\t/**\n\t * Does the same as {@link #deliver(Object)} except that only meta data is delivered. This\n\t * method is called by the Operator's {@link MDTransformer}.\n\t */\n\tpublic void deliverMD(MetaData md);\n\n\t/**\n\t * Asks the owning operator\n\t * {@link Operator#shouldAutoConnect(OutputPort)}.\n\t */\n\tpublic boolean shouldAutoConnect();\n\n\tpublic void setConnectForDoWork();\n}", "title": "" }, { "docid": "e12744345d2ab7d5173a480ce1c5c423", "score": "0.40794188", "text": "public long dstPort();", "title": "" }, { "docid": "e3d3b2348446d1cc61c300dcc121e950", "score": "0.40763742", "text": "protected Socket openOutSocket(int port, InetAddress ip){\r\n Socket outSocket = null;\r\n try {\r\n outSocket = new Socket(ip,port);\r\n } catch (IOException ex) {\r\n Logger.getLogger(ClientToServerAction.class.getName()).log(Level.SEVERE, null, ex);\r\n System.out.println(\"problem connecting to server socket\");\r\n }\r\n return outSocket;\r\n }", "title": "" }, { "docid": "3ba9b6edc76b19d052fe0fe12561dc18", "score": "0.40748417", "text": "public final EObject entryRulePort() throws RecognitionException {\n EObject current = null;\n\n EObject iv_rulePort = null;\n\n\n try {\n // ../org.xtext.example.compoNantes/src-gen/org/xtext/example/compoNantes/parser/antlr/internal/InternalCompoNantes.g:249:2: (iv_rulePort= rulePort EOF )\n // ../org.xtext.example.compoNantes/src-gen/org/xtext/example/compoNantes/parser/antlr/internal/InternalCompoNantes.g:250:2: iv_rulePort= rulePort EOF\n {\n newCompositeNode(grammarAccess.getPortRule()); \n pushFollow(FOLLOW_rulePort_in_entryRulePort405);\n iv_rulePort=rulePort();\n\n state._fsp--;\n\n current =iv_rulePort; \n match(input,EOF,FOLLOW_EOF_in_entryRulePort415); \n\n }\n\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "title": "" }, { "docid": "3bcce978d188e85a22acd7f89429a9d9", "score": "0.40742755", "text": "public void sink();", "title": "" }, { "docid": "0e198a11726d20ada64389a05b5d2354", "score": "0.40697804", "text": "RouterTarget createRouterTarget();", "title": "" }, { "docid": "7a41adf9d0b31d4d41074966d78c0359", "score": "0.4051659", "text": "SiPort createSiPort();", "title": "" }, { "docid": "360f8aeff58ab137592691176fc24c38", "score": "0.40223616", "text": "protected SendPortConnectionInfo(SendPort port, ReceivePortIdentifier target) {\n this.port = port;\n this.target = target;\n }", "title": "" }, { "docid": "21094a9d0225a8f3c2303d7bf719b843", "score": "0.4008573", "text": "public void close() throws IOException {\n sink.eof();\n }", "title": "" }, { "docid": "6a73f7846dd7bf7432c893cde42975c2", "score": "0.40011507", "text": "public DestinationSimulationCase(Logger logger, boolean inOrOut) {\n super(logger);\n this.inOrOut = inOrOut;\n destination = new Point2D(Math.random()-L/2,Math.random()-L/2);\n\n }", "title": "" }, { "docid": "3477174116cc15ad38378ea5d0cc20c6", "score": "0.39987013", "text": "Endpoint shutdown () throws Exception;", "title": "" }, { "docid": "af5e148f905f3a03792be184218b2e71", "score": "0.3985458", "text": "NTLMMediatorOutputConnector createNTLMMediatorOutputConnector();", "title": "" }, { "docid": "d8b536eca693462741dbcd5b41014b24", "score": "0.39838445", "text": "ProxyOutputConnector createProxyOutputConnector();", "title": "" }, { "docid": "01ee88a6926bc56a61a4a155f5c79c79", "score": "0.39682648", "text": "abstract public OutputStream create_output_stream();", "title": "" }, { "docid": "90aa76a0f6cef1a98c6f0a03262c4c37", "score": "0.39638945", "text": "long getPort();", "title": "" }, { "docid": "8dcff5054758f905f66dab98724e0a1d", "score": "0.39615306", "text": "WirePort createWirePort();", "title": "" }, { "docid": "dce2cf27795d71da674606aff22b0612", "score": "0.39597082", "text": "public int getRemotePort();", "title": "" }, { "docid": "b97fe026cde1c140eaeb9c2c9de71729", "score": "0.39533076", "text": "Endpoint join () throws Exception;", "title": "" }, { "docid": "57fc8c590f2392fd32f217988a010b24", "score": "0.39532977", "text": "public Integer getToPort() {\n return this.toPort;\n }", "title": "" }, { "docid": "cebab84b4db2f92fc95b6949418bfbf4", "score": "0.39510357", "text": "public SimulinkOutPort getConnectedOuputPort(SimulinkBlock block, int portNumber) {\n\t\tSimulinkInPort inPort = block.getInPort(Integer.toString(portNumber));\n\n\t\treturn getConnectedOuputPort(inPort);\n\t}", "title": "" }, { "docid": "02ee1cf3bdc9622d06dd589826c2199e", "score": "0.39506692", "text": "public Port() {\r\n }", "title": "" }, { "docid": "a7b5a175cca9a1c12f6c002389f634a7", "score": "0.39475316", "text": "public void test_getLocalAddress_after_close() throws Exception {\n Socket s = new Socket();\n try {\n // Bind to an ephemeral local port.\n s.bind(new InetSocketAddress(\"localhost\", 0));\n TestCase.assertTrue(s.getLocalAddress().toString(), s.getLocalAddress().isLoopbackAddress());\n // What local port did we get?\n int localPort = s.getLocalPort();\n TestCase.assertTrue((localPort > 0));\n // Now close the socket...\n s.close();\n // The RI returns the ANY address but the original local port after close.\n TestCase.assertTrue(s.getLocalAddress().isAnyLocalAddress());\n TestCase.assertEquals(localPort, s.getLocalPort());\n } finally {\n s.close();\n }\n }", "title": "" }, { "docid": "b0e77e55fc8c047a41c70e81b986bfe0", "score": "0.39462364", "text": "RelayCell createRelayCell(int relayCommand, int streamId, CircuitNode targetNode);", "title": "" }, { "docid": "f23bc05f2c00449a3dac70fbf9fb3077", "score": "0.39433944", "text": "@Test\n\tpublic void cannotClosePortTest() {\n\t System.err.print(\"Could not close port: 10008.\");\n\t assertEquals(\"Could not close port: 10008.\", errContent.toString());\n\t}", "title": "" }, { "docid": "256e41a4f3792720e19fb660b70b12bf", "score": "0.3941157", "text": "AddressingEndpointInputConnector createAddressingEndpointInputConnector();", "title": "" } ]
aee94942887fb5a68caad66c84a564b7
Checks if a email change is legit
[ { "docid": "385a133916e3da8eaa3ba383fb6552eb", "score": "0.5705377", "text": "public boolean checkEmail(String email) {\n//\t\tif (email == null) {\n//\t\t\treturn false;\n//\t\t}\n//\t\tif (email.length() > 320 || email.length() < 6) {\n//\t\t\treturn false;\n//\t\t} // (?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|\"(?:[\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x21\\x23-\\x5b\\x5d-\\x7f]|\\\\[\\x01-\\x09\\x0b\\x0c\\x0e-\\x7f])*\")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x21-\\x5a\\x53-\\x7f]|\\\\[\\x01-\\x09\\x0b\\x0c\\x0e-\\x7f])+)\\])\n//\t\ttry {\n//\t\t\tInternetAddress emailAddr = new InternetAddress(email);\n//\t\t\temailAddr.validate();\n//\t\t} catch (AddressException ex) {\n//\t\t\treturn false;\n//\t\t}\n//\t\tif (EmailValidator.getInstance().isValid(email)) {\n//\t\t\tString s = new String(com.niton.media.ResurceLoader.readOutOfJarFile(\"com/niton/resources/emailvalid.txt\"));\n//\t\t\tfor (String ts : s.split(System.lineSeparator())) {\n//\t\t\t\tif (email.contains(ts)) {\n//\t\t\t\t\treturn true;\n//\t\t\t\t}\n//\t\t\t}\n//\t\t\tif (email.endsWith(\"ac.at\")) {\n//\t\t\t\treturn true;\n//\t\t\t}\n//\t\t\tif (email.endsWith(\"gv.at\")) {\n//\t\t\t\treturn true;\n//\t\t\t}\n//\t\t}\n//\t\treturn false;\n\t\treturn true;\n\t}", "title": "" } ]
[ { "docid": "d1309aa0d1f42ecdf863803bf024c997", "score": "0.71072286", "text": "private boolean checkMail(String email) {\n return rightEmailStructure(email);\n }", "title": "" }, { "docid": "a39c5ffa7d1ca85e9e6c4ccc980852c1", "score": "0.6522119", "text": "boolean hasRecoveryEmail();", "title": "" }, { "docid": "075d22cf513be8766356449b7396d41d", "score": "0.6352767", "text": "public boolean checkEmail(String Email);", "title": "" }, { "docid": "7044f648ca6a6e641443a669dbfdacff", "score": "0.6337859", "text": "@Override\n\tpublic boolean checkEmail(String email) {\n\t\treturn myDao.checkEmail(email);\n\t}", "title": "" }, { "docid": "b22668c3b75ab606f425b2bde885b47d", "score": "0.63363147", "text": "@Override\n\tpublic boolean updateEmail(PlayerAuth auth) {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "bf97f12ad775355071ec52b2f6f90df1", "score": "0.6293265", "text": "void esVerifyEmailUniqueness();", "title": "" }, { "docid": "fad4672ec6c8295f02754dc7aaec168f", "score": "0.6287451", "text": "public static boolean changeEmail(String oldEmail, String newEmail) {\n if (isSubscriberPresent(oldEmail) && !isSubscriberPresent(newEmail)) {\n subs.updateOne(new Document(\"email\", oldEmail),\n new Document(\"$set\", new Document(\"email\", newEmail)));\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "0a07297ac2edabc5317e8e93f3169fc2", "score": "0.62381244", "text": "public boolean verifyMailCamp(Mail tmp){\n return tmp.getReciver().size() != 0 &&\n tmp.getObject().length() != 0 &&\n tmp.getText().length() != 0;\n }", "title": "" }, { "docid": "faada8fb6758e3fc3c2f0f104c59ed77", "score": "0.62132275", "text": "@Smoke\n\tpublic void testIncorrectEmail() {\n\t\tmail = \"gmail@gmail\";\n\t\tassertEquals(\"Mail adress is correct and should be false\",false, ec.isEmailAdress(mail));\n\t}", "title": "" }, { "docid": "effdd5de30ef2d4d286d4d4d4bd2f6b8", "score": "0.6194519", "text": "@java.lang.Override\n public boolean hasEmail() {\n return entryCase_ == 4;\n }", "title": "" }, { "docid": "effdd5de30ef2d4d286d4d4d4bd2f6b8", "score": "0.6191523", "text": "@java.lang.Override\n public boolean hasEmail() {\n return entryCase_ == 4;\n }", "title": "" }, { "docid": "d216e273f7685f6c0fb3ab03e7e1d88e", "score": "0.6170507", "text": "@java.lang.Override\n public boolean hasEmail() {\n return entryCase_ == 4;\n }", "title": "" }, { "docid": "d216e273f7685f6c0fb3ab03e7e1d88e", "score": "0.6170507", "text": "@java.lang.Override\n public boolean hasEmail() {\n return entryCase_ == 4;\n }", "title": "" }, { "docid": "85c53e218eced143dcf3e7d5a5ef493f", "score": "0.61651987", "text": "private boolean checkEmail(String email) {\n return EMAIL_ADDRESS_PATTERN.matcher(email).matches();\n }", "title": "" }, { "docid": "71ff0fe571224c7adfee5a4671d1bfd4", "score": "0.61415464", "text": "private boolean checkMail(String host) {\n return false;\n }", "title": "" }, { "docid": "bfc8d5a8b4ee5b1221a21d57602f57e2", "score": "0.6135519", "text": "public boolean ifEmailNotAssigned(String email, Connection dbConnection) throws IOException, SQLException {\r\n\t\tboolean status = false;\r\n\t\t// ArrayList<String> mails = new ArrayList<>();\r\n\t\t//props = (new Utils()).getProperties();\r\n\t\tString tempEmail = \"\";\r\n\t\tString selectQuery = \"select emailId FROM employee1\";\r\n\r\n\t\ttry (Statement selectStatement = dbConnection.createStatement()) {\r\n\t\t\tResultSet rs = selectStatement.executeQuery(selectQuery);\r\n\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\t// mails.add(rs.getString(1));\r\n\t\t\t\ttempEmail = rs.getString(1);\r\n\t\t\t\tif (email.equals(tempEmail)) {\r\n\t\t\t\t\tstatus = true;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t\tif (status)\r\n\t\t\tregenerateEmail(tempEmail);\r\n\r\n\t\treturn status;\r\n\t}", "title": "" }, { "docid": "6e72216fa699d489da0cc4c1852c50d6", "score": "0.61266637", "text": "public void presentInvalidEmail(){\n System.out.println(\"Email is already used, please try again.\");\n }", "title": "" }, { "docid": "2b6cf9546f173d01b9570a86d5ba772c", "score": "0.6083294", "text": "private boolean CheckEmail() {\n\t\tString email = EmailTextField.getText();\n\n\t\t// if field is empty\n\t\tif (email.equals(\"\")) {\n\t\t\tif (!EmailTextField.getStyleClass().contains(\"error\"))\n\t\t\t\tEmailTextField.getStyleClass().add(\"error\");\n\t\t\tEmailNote.setText(\"* Please enter Email\");\n\t\t\treturn false;\n\t\t}\n\n\t\tString emailFormat = \"^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\\\\.[a-zA-Z0-9-]+)+$\";\n\n\t\t// if field is not in wanted format\n\t\tif (!email.matches(emailFormat)) {\n\t\t\tif (!EmailTextField.getStyleClass().contains(\"error\"))\n\t\t\t\tEmailTextField.getStyleClass().add(\"error\");\n\t\t\tEmailNote.setText(\"* Email must be _@_._\");\n\t\t\treturn false;\n\t\t}\n\n\t\tEmailTextField.getStyleClass().remove(\"error\");\n\t\tEmailNote.setText(\"*\");\n\t\treturn true;\n\t}", "title": "" }, { "docid": "3c3585a6dafbf62f60f378e0c9754f7b", "score": "0.6075118", "text": "@Override\n\tpublic boolean checkEmail(User user) {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "144855f71ac684f2d2e2e4beff5e43df", "score": "0.6055995", "text": "private void checkProfileByEmail(Profile newProfile) throws PjeeDatabaseException {\r\n\t\tProfile check = profileRepository.findByEmail(newProfile.getEmail());\r\n\t\tString currentUsername = context.getUsername();\r\n\t\tif (check != null && !check.getUser().getUsername().equals(currentUsername)) {\r\n\t\t\t// Logging\r\n\t\t\tlogger.warn(\"Email déjà utilisé\");\r\n\t\t\tthrow new PjeeDatabaseException(\"L'addresse email appartient déjà à quelqu'un d'autre\");\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "a79fea872dde129006101407df780741", "score": "0.6040558", "text": "private boolean isEmailValid(String email) {\n return email.contains(\"@\");\r\n }", "title": "" }, { "docid": "a79fea872dde129006101407df780741", "score": "0.6040558", "text": "private boolean isEmailValid(String email) {\n return email.contains(\"@\");\r\n }", "title": "" }, { "docid": "a79fea872dde129006101407df780741", "score": "0.6040558", "text": "private boolean isEmailValid(String email) {\n return email.contains(\"@\");\r\n }", "title": "" }, { "docid": "4b3ea59465f26e398f78c827f9e7ba1a", "score": "0.60305333", "text": "private boolean checkEmail(String email) {\n\t\tfor (int i = 0; i < studentList.size(); i++)\n\t\t\tif (studentList.get(i).getEmail().equals(email))\n\t\t\t\treturn true;\n\t\treturn false;\n\t}", "title": "" }, { "docid": "3df3b7e0a158125ab3c2a3e581a5eaa0", "score": "0.6026245", "text": "public static boolean checkEmail(String mail){\r\n\t\t\t\r\n\t\t\tboolean correctEmail = true;\r\n\t\t\t\r\n\t\t\tint i = mail.indexOf(\"@\");\r\n\t\t\tint j = mail.indexOf(\".\", i);\r\n\t\t\t\r\n\t\t\tif (i == 0) {\r\n\t\t\t\tcorrectEmail = false;\r\n\t\t\t}\r\n\t\t\tif (j == -1) {\r\n\t\t\t\tcorrectEmail = false;\r\n\t\t\t}\r\n\t\t\tif ((j-i) < 2) {\r\n\t\t\t\tcorrectEmail = false;\r\n\t\t\t}\r\n\t\t\tif (j == mail.length()-1) {\r\n\t\t\t\tcorrectEmail = false;\r\n\t\t\t}\r\n\t\t\treturn correctEmail;\r\n\t\t}", "title": "" }, { "docid": "145455bbb60f3b42033e16f7b6edcc5a", "score": "0.6025515", "text": "public void validateEmail(String email) {\n Query query = db.child(\"users\").orderByChild(\"email\").equalTo(email);\n ValueEventListener emailListener = new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n if (dataSnapshot.exists()){\n errorMessage = \"email already in use\";\n }\n notifyObservers();\n }\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n errorMessage = \"\";\n }\n };\n query.addListenerForSingleValueEvent(emailListener);\n }", "title": "" }, { "docid": "ef85b17209a6033db48f1291e3752990", "score": "0.6017333", "text": "private boolean controlloEmail() \n\t{\n\t\treturn true;\n\t}", "title": "" }, { "docid": "a9c5eb3f51744075b36d6a822f0f082a", "score": "0.59895986", "text": "boolean hasEmail();", "title": "" }, { "docid": "a9c5eb3f51744075b36d6a822f0f082a", "score": "0.5988871", "text": "boolean hasEmail();", "title": "" }, { "docid": "675de6d16e219c96f6c7a9098a147974", "score": "0.5986348", "text": "private boolean isEmailValid(String email) {\n return email.length() == 8;\n }", "title": "" }, { "docid": "89cc00dcf9b32a987d5c2fa400053824", "score": "0.59808236", "text": "private boolean rightEmailStructure(String email) {\n String patternString = \"^([\\\\w-]+(?:\\\\.[\\\\w-]+)*)@((?:[\\\\w-]+\\\\.)*\\\\w[\\\\w-]{0,66})\\\\.([a-z]{2,6}(?:\\\\.[a-z]{2})?)$\";\n return checkRegEx(patternString, email);\n }", "title": "" }, { "docid": "260ba33a8343ac7ffa2c59fc9dc13db0", "score": "0.5951989", "text": "boolean doesSendEmailEntryExist( String email );", "title": "" }, { "docid": "ba129ac280ebe0e7ba50000ca954659c", "score": "0.5951402", "text": "@Smoke\n\tpublic void testIncorrectEmailWithoutAtSign() {\n\t\tmail = \"tobias.ladewiggmail.com\";\n\t\tassertEquals(\"Mail adress is correct and should be false\",false, ec.isEmailAdress(mail));\n\t}", "title": "" }, { "docid": "b7c1af7217834c6988e61b4f6a0b24dc", "score": "0.5937398", "text": "@Override\n\tpublic void mailChanged(Mail mail) {\n\t\t\n\t}", "title": "" }, { "docid": "9427ad049d6dd5379b6f7ce1161f3008", "score": "0.59126306", "text": "public void setEmail(String newVal) {\r\n\t\temail = newVal;\r\n\t}", "title": "" }, { "docid": "366254146d9d0cafc75d92da70b8e83c", "score": "0.59084064", "text": "private boolean validEmailFormat () {\n String email = emailInput.getText().toString();\n String emailPattern = \"[a-zA-Z0-9_.]+@[a-zA-Z]+.[a-zA-Z]{2,}\";\n\n if (!email.matches(emailPattern)) {\n emailInput.setError(getResources().getString(R.string.email_error));\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "1026f6e7611f3cffe9f04bc760eef1cf", "score": "0.5889981", "text": "@Test(groups={\"smoke\",\"positive\",\"negative\"},enabled = false,dataProvider = \"updateEmailDataProvider\")\n public void updateEmail(String testEmail,boolean isNotFake){\n TestUtils.addTestToLog();\n thisPage\n .openEditAccountPage()\n .waitUntilEditElementIsLoaded();\n boolean alertOK=thisPage\n .fillEmailField(testEmail)\n .clickOnSubmitButton1()\n .fillOldPasswordField(MY_Password)\n .clickOnSubmitButtonOldPassword()\n .isSuccessAlert();\n if(isNotFake){\n assertTrue(alertOK, \"Success alert is shown\");\n mainPage.loadPage();\n thisPage.openEditAccountPage()\n .waitUntilEditElementIsLoaded();\n assertEquals(thisPage.getEmailElement().getAttribute(\"value\"), testEmail, \"Check new e-mail after reload\");\n\n mainPage\n .openMainPage()\n .logOut();\n boolean errorMess=\n loginPage\n .openLoginPage()\n .waitUntilLoginPageIsLoaded()\n .login(testEmail, MY_Password)\n .alertMessageInvalidEmail();\n\n assertFalse(errorMess, \"login with new E-mail\");\n // return old e-mail\n if(!errorMess)\n thisPage.openEditAccountPage()\n .waitUntilEditElementIsLoaded()\n .fillEmailField(MY_EMAIL)\n .clickOnSubmitButton1()\n .fillOldPasswordField(MY_Password)\n .clickOnSubmitButtonOldPassword();\n }\n else\n assertFalse(alertOK, \"Success alert not shown\");\n\n\n }", "title": "" }, { "docid": "0cb2c3e67a61770dea5bc932c51e98f2", "score": "0.5885837", "text": "private boolean isEmailValid(String email) {\n return email.contains(\"@\");\n }", "title": "" }, { "docid": "0cb2c3e67a61770dea5bc932c51e98f2", "score": "0.5885837", "text": "private boolean isEmailValid(String email) {\n return email.contains(\"@\");\n }", "title": "" }, { "docid": "0cb2c3e67a61770dea5bc932c51e98f2", "score": "0.5885837", "text": "private boolean isEmailValid(String email) {\n return email.contains(\"@\");\n }", "title": "" }, { "docid": "0cb2c3e67a61770dea5bc932c51e98f2", "score": "0.5885837", "text": "private boolean isEmailValid(String email) {\n return email.contains(\"@\");\n }", "title": "" }, { "docid": "0cb2c3e67a61770dea5bc932c51e98f2", "score": "0.5885837", "text": "private boolean isEmailValid(String email) {\n return email.contains(\"@\");\n }", "title": "" }, { "docid": "0cb2c3e67a61770dea5bc932c51e98f2", "score": "0.5885837", "text": "private boolean isEmailValid(String email) {\n return email.contains(\"@\");\n }", "title": "" }, { "docid": "0cb2c3e67a61770dea5bc932c51e98f2", "score": "0.5885837", "text": "private boolean isEmailValid(String email) {\n return email.contains(\"@\");\n }", "title": "" }, { "docid": "0cb2c3e67a61770dea5bc932c51e98f2", "score": "0.5885837", "text": "private boolean isEmailValid(String email) {\n return email.contains(\"@\");\n }", "title": "" }, { "docid": "0cb2c3e67a61770dea5bc932c51e98f2", "score": "0.5885837", "text": "private boolean isEmailValid(String email) {\n return email.contains(\"@\");\n }", "title": "" }, { "docid": "0cb2c3e67a61770dea5bc932c51e98f2", "score": "0.5885837", "text": "private boolean isEmailValid(String email) {\n return email.contains(\"@\");\n }", "title": "" }, { "docid": "0cb2c3e67a61770dea5bc932c51e98f2", "score": "0.5885837", "text": "private boolean isEmailValid(String email) {\n return email.contains(\"@\");\n }", "title": "" }, { "docid": "a507bebae17d5c1e36d9a89fd087521f", "score": "0.58791", "text": "@Smoke\n\tpublic void testCorrectEmail() {\n\t\tmail = \"toladewig@gmail.com\";\n\t\tassertEquals(\"Mail adress is correct and should be true\",true, ec.isEmailAdress(mail));\n\t}", "title": "" }, { "docid": "ec1ba8c71f727dc46083322423f41dda", "score": "0.58780247", "text": "public boolean isEmailInUse(String email);", "title": "" }, { "docid": "2abac2f24952d8883296666c12825290", "score": "0.58750147", "text": "public boolean hasRecoveryEmail() {\n return ((bitField0_ & 0x00000400) == 0x00000400);\n }", "title": "" }, { "docid": "079f3601b17678c93b5a0a2d858fdfd3", "score": "0.5871951", "text": "@Smoke\n\tpublic void testIncorrectEmailWithNumbersAtTheEnd() {\n\t\tmail = \"toaldewig@gmail.com678\";\n\t\tassertEquals(\"Mail adress is correct and should be false\",false, ec.isEmailAdress(mail));\n\t}", "title": "" }, { "docid": "436af28b4eddd11bd89b310bc49c7656", "score": "0.58620125", "text": "public boolean hasRecoveryEmail() {\n return ((bitField0_ & 0x00000100) == 0x00000100);\n }", "title": "" }, { "docid": "851c032f101cfb1d9a92af234a261672", "score": "0.5861412", "text": "boolean checkEmail(int userId, String email);", "title": "" }, { "docid": "f3d5b50404f4ffbba49774ce845f2c41", "score": "0.58371264", "text": "public boolean emailAvailable(String email) {\n boolean output = true;\n Node aux = first;\n \n while (aux != null) {\n if (aux.getObject().getEmail().equals(email)) {\n output = false;\n break;\n }\n \n aux = aux.getPrevious();\n }\n \n return output;\n }", "title": "" }, { "docid": "a0c3639ec10f21aa2342b29a1afe8e72", "score": "0.5833177", "text": "public boolean checkIncorrectEmailText() throws Exception {\n String expected_text = \"Email is required\";\n String actual_text = webDriverExplicitWait.until(ExpectedConditions.elementToBeClickable(emailValidator)).getText().trim();\n if (actual_text.equals(expected_text)) {\n return true;\n }\n Reporter.log(\"<br>Error text is not found. Expected value: \"+expected_text+\". Actual value: \"+actual_text+\".\");\n Reporter.log(takeScreenshot());\n return false;\n }", "title": "" }, { "docid": "970518c5d1a6a7ec25df27232d0adf3b", "score": "0.5810514", "text": "public boolean checkMailAdress(String email){\n if (!email.matches(\"[\\\\w\\\\.\\\\-]+@([\\\\w\\\\-]+\\\\.)+[\\\\w\\\\-]+\")) {\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "dd264e3b3557146687be3e618a517e64", "score": "0.580058", "text": "public boolean checkForgotMessage() throws Exception {\n\t\treturn browser.findElement(By.xpath(\"//div[@class='password-recovery-result js-password-recovery-result is-hidden']\"))\n\t\t\t\t.getText().contentEquals(\" You will receive an e-mail from us with instructions for resetting your password.\");\n\t}", "title": "" }, { "docid": "3feca352438f43f11a14d0b051675bf3", "score": "0.58003813", "text": "public boolean CheckEmailIsValid(String email) {\r\n if(email.length() == 0)\r\n {\r\n Toast.makeText(context, \"Please Enter your Email ID\", Toast.LENGTH_SHORT).show();\r\n return false;\r\n }\r\n\r\n\r\n else if(!Patterns.EMAIL_ADDRESS.matcher(email).matches())\r\n {\r\n Toast.makeText(context, \"Please Enter Correct email\", Toast.LENGTH_SHORT).show();\r\n return false;\r\n }\r\n else {\r\n return true;\r\n }\r\n }", "title": "" }, { "docid": "b939810765954a067bbcc83f87e35ffe", "score": "0.578993", "text": "private void editEmail() {\n\t\t\n\t}", "title": "" }, { "docid": "44d4c36020991a12beb37c389540a749", "score": "0.5789432", "text": "private static boolean emailTester (String testMail) {\n Pattern pattern = Pattern.compile(\"[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\\\.\"\n + \"[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@\"\n + \"(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\\\.)+[a-z0-9]\"\n + \"(?:[a-z0-9-]*[a-z0-9])?\", Pattern.CASE_INSENSITIVE);\n Matcher matcher = pattern.matcher(testMail);\n return (matcher.find());\n }", "title": "" }, { "docid": "219071690728449f7d9b8936d1fa261b", "score": "0.5789381", "text": "public boolean isValidEmail(String email){\n \n int dotCount = 0;\n int atCount = 0;\n \n \n for(int i = 0;i<email.length();i++){\n if(email.charAt(i)== '@'){\n atCount++;\n }\n \n if(email.charAt(i)=='.'){\n dotCount++;\n }\n }\n \n if(dotCount>0 && atCount == 1)\n {\n return true;\n }\n else{\n return false;\n }\n }", "title": "" }, { "docid": "a4f1a467cbf2b6cfede5827da1c83975", "score": "0.5785127", "text": "public String requestNewVerification()\r\n\t{\r\n\t\tlog.debug(\"verifing email with id = \" + emailId);\r\n\r\n\t\t//user making the change\r\n\t\tIrUser changeMakingUser = userService.getUser(userId, false);\r\n\t\t\r\n\t\t// if they are not an administrator or owner trying to change\r\n\t\t// an account that does not belong to them then deny\r\n\t\t// access \r\n\t\tif( !changeMakingUser.hasRole(IrRole.ADMIN_ROLE) && !changeMakingUser.equals(irUser))\r\n\t\t{\r\n\t\t\treturn \"accessDenied\";\r\n\t\t}\r\n\r\n\t\tUserEmail userEmail = userService.getEmail(emailId, false);\r\n\t\tuserEmail.setVerifiedFalse(TokenGenerator.getToken() );\r\n\t userService.sendAccountVerificationEmailForUser(userEmail.getToken(), userEmail.getEmail(), irUser.getUsername());\r\n\r\n\t\treturn \"added\";\r\n\t}", "title": "" }, { "docid": "d61275ecd0288547bead8c48e921bff4", "score": "0.57850623", "text": "@Override\r\n\tprotected void hasEmail() {\n\t\tSystem.out.println(\"Nope!\");\r\n\t}", "title": "" }, { "docid": "e20d31c3de4f2de61b5898a83739bd81", "score": "0.5771946", "text": "@Override\r\n public boolean test(String email) {\n String regex = \"^[\\\\w!#$%&'*+/=?`{|}~^-]+(?:\\\\.[\\\\w!#$%&'*+/=?`{|}~^-]+)*@(?:[a-zA-Z0-9-]+\\\\.)+[a-zA-Z]{2,6}$\";\r\n Pattern pattern = Pattern.compile(regex);\r\n Matcher matcher = pattern.matcher(email);\r\n return matcher.matches();\r\n }", "title": "" }, { "docid": "f812fb3e09025f312188ed41573dadfc", "score": "0.5766383", "text": "public void setMail(String new_mail) {\r\n this.mail = new_mail;\r\n }", "title": "" }, { "docid": "d0d16f7b57e05c44cc84559beca4dc96", "score": "0.5751208", "text": "@Test\n\tpublic void controlDiff() {\n\t\tDiff myDiff = DiffBuilder.compare(Input.fromFile(\"xml/Rule/clean_complete_email_rule.xml\"))\n\t\t .withTest(Input.fromFile(\"xml/Rule/diff_complete_email_rule.xml\"))\n\t\t .checkForSimilar()\n\t\t .build();\n\n\t\tAssert.assertFalse(myDiff.toString(), myDiff.hasDifferences());\n\t}", "title": "" }, { "docid": "a9e24e4dc42f6cbc0bf470ec63bcb8c3", "score": "0.5747846", "text": "void validateEmailAvailable(Integer userId, String email);", "title": "" }, { "docid": "a822230ce00103a18b28ceabe5d36fa9", "score": "0.572928", "text": "private boolean isValidEmail(String email) // No need to check if the field is empty\n {\n return Patterns.EMAIL_ADDRESS.matcher(email).matches();\n }", "title": "" }, { "docid": "8cc68348d6622421aa337c406514217e", "score": "0.5726685", "text": "private boolean validateMail(String eMail) {\n \t\tString pat = \"^[_A-Za-z0-9-\\\\+]+(\\\\.[_A-Za-z0-9-]+)*@\" + \"[A-Za-z0-9-]+(\\\\.[A-Za-z0-9]+)*(\\\\.[A-Za-z]{2,})$\";\n \t\tPattern pattern = Pattern.compile(pat);\n \t\tMatcher matcher = pattern.matcher(eMail);\n \t\treturn matcher.matches();\n \t}", "title": "" }, { "docid": "9ff2eefd89ef0cde5ec9eed84ad124ff", "score": "0.571764", "text": "boolean validateEmail(String email){\n if(email.contains(\"@\")){\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "7be22077b6c53673683feaaa763ed049", "score": "0.5716918", "text": "@Test\n\tvoid test_return_false_if_email_invalid() {\n\n\t\tassertFalse(clientValidator.isEmailAddress(\"test.com\"));\n\t\tassertFalse(clientValidator.isEmailAddress(\"test.\"));\n\t\tassertFalse(clientValidator.isEmailAddress(\"@test\"));\n\t\tassertFalse(clientValidator.isEmailAddress(\"@test@email\"));\n\t\tassertFalse(clientValidator.isEmailAddress(\"tes@@t.com\"));\n\n\t}", "title": "" }, { "docid": "a02b3c2035fa2cf98964f313ad2653d2", "score": "0.5711444", "text": "public boolean validateEmail(String email);", "title": "" }, { "docid": "843897804ce055dda3a5335e24456818", "score": "0.57054937", "text": "private boolean isEmailValid(String email) {\n return Patterns.EMAIL_ADDRESS.matcher(email).matches();\r\n }", "title": "" }, { "docid": "b808648f1b59f60c22c30bf2654d9ae6", "score": "0.57032734", "text": "@Override\n\tpublic boolean isExistingEmail(String email) {\n\t\tint result = sqlSessionTemplate.selectOne(getMapperId(\"emailCheck\"), email);\n\t\tif(result > 0)\n\t\t\treturn true;\n\t\t\n\t\treturn false;\n\t}", "title": "" }, { "docid": "fa277f524c69461729c5d0ba3bc23167", "score": "0.5689461", "text": "public boolean check(String emails) {\n String[] emailArray = emails.split(\";\");\n for (String email : emailArray) {\n String regex = \"^([_a-zA-Z0-9-]+(\\\\.[_a-zA-Z0-9-]+)*@[a-zA-Z0-9-]+(\\\\.[a-zA-Z0-9-]+)*(\\\\.[a-zA-Z]{1,6}))?$\";\n Pattern pattern = Pattern.compile(regex);\n Matcher matcher = pattern.matcher(email);\n if (!matcher.matches()) {\n return false;\n }\n }\n\n return true;\n }", "title": "" }, { "docid": "4fdb8eceeddfe53720a375c217178d14", "score": "0.56885785", "text": "private boolean isEmailValid(String email) {\n if (email.contains(\"@\")||email.length()==11){\n return true;\n }else {\n return false;\n }\n }", "title": "" }, { "docid": "02b36075b11721b6051c02cd6cf43ec7", "score": "0.5663981", "text": "@Override\n\tpublic boolean checkUserEmail(String email) {\n\t\tList users = (List) super.findByHQL(\"from TUser where email=?\",email);\n\t\treturn users.size()==0?false:true;\n\t}", "title": "" }, { "docid": "64884ec85260810dcf91778ae2fbd5ef", "score": "0.5660867", "text": "@SuppressWarnings(\"BooleanMethodIsAlwaysInverted\")\n public boolean validate(final String email) {\n\n Matcher matcher = pattern.matcher(email);\n return matcher.matches();\n\n }", "title": "" }, { "docid": "2c80ddc18f18d17aa1c4b008360b1a0e", "score": "0.56521887", "text": "public void emailValidation(){\n \n Validation v2 = new Validation();\n \n if(EmailB.getText().equals(\"\")){\n EmailV.setText(\"*Enter email\");\n }else if(v2.emailValidation(EmailB.getText()) == false){\n EmailV.setText(\"*Invalid email\"); \n }\n }", "title": "" }, { "docid": "553ba05562f5d9c6b11cc208493c571d", "score": "0.5626109", "text": "private void verifyInput(){\n String email = mEmailTextField.getText().toString();\n\n mEmailFieldFilled = !TextUtils.isEmpty(email);\n\n if(mEmailFieldFilled){\n mEmailMatchesPattern = checkPattern(email);\n }else{\n mEmailMatchesPattern = false;\n }\n\n if(mEmailFieldFilled && mEmailMatchesPattern ){\n emailAvailableRequest(email, new EmailAvailabilityRequestCallback() {\n @Override\n public void onSuccess() {\n mEmailAvailable = true;\n Log.d(LOG_TAG, \"Email available\");\n checkInput();\n }\n\n @Override\n public void onLoginError(String error) {\n mEmailAvailable = false;\n\n String loginRequestError = \"\";\n\n switch (error) {\n\n case \"500:1:Failed to connect to database\":\n loginRequestError = getString(R.string.db_connection_error);\n break;\n\n case \"400:1:Bad Input\":\n Log.d(LOG_TAG, \"Server was unable to retrieve data\");\n break;\n\n case \"406:1:Email taken\":\n loginRequestError = getString(R.string.email_taken_error);\n break;\n\n default:\n loginRequestError = \"Something went wrong, please try again later\";\n Log.wtf(LOG_TAG, \"EmailAvailabilityRequest Error: Unknown Error: \" + error);\n }\n\n Log.d(LOG_TAG, \"Email not available, Error: \" + loginRequestError);\n checkInput();\n }\n });\n\n }else{\n mEmailAvailable = false;\n }\n\n }", "title": "" }, { "docid": "7d9e39c177be31bd815849c80d69881f", "score": "0.5623853", "text": "public User validateNewEmail(String currentEmail, String newEmail) {\n //Check that email matches RegExpr\n\t\t/*if(!validateEmailPattern(newEmail)) {\n\t\t\tthrow new PasswordNotValidException(ExceptionMessage.EMAIL_NOT_VALID);\n\t\t}*/\n\n User userByNewEmail = findUserByEmail(newEmail);\n if (StringUtils.isNotBlank(currentEmail)) { //The user wants to update existing email\n\n User currentUser = findUserByEmail(currentEmail);\n if (currentUser == null) { //No user with such an email\n throw new UserNotFoundException(MessageFormat.format(\"User with email {0} does not exist\", currentEmail));\n }\n if (userByNewEmail != null && currentUser.getId() != (userByNewEmail.getId())) {\n throw new EmailExistException(MessageFormat.format(ExceptionMessage.EMAIL_ALREADY_EXISTS, currentEmail));\n }\n return currentUser;\n } else {\n\n if (userByNewEmail != null) {\n if (!userByNewEmail.isEnabled()) {\n //user with such email exists but he has not activated account\n //delete this user as we want to add/register him once more\n userRepository.deleteById(userByNewEmail.getId());\n } else {\n // User with such an email already exists\n throw new EmailExistException(MessageFormat.format(ExceptionMessage.EMAIL_ALREADY_EXISTS, currentEmail));\n }\n }\n\n return null;\n }\n }", "title": "" }, { "docid": "c2bdc69f3f7ff6c9d8e500b58a14827a", "score": "0.5617849", "text": "private boolean validateData(String mail, String pass) {\n\n return false;\n }", "title": "" }, { "docid": "37c90358d8817ebdcdfe2aced82d5b53", "score": "0.56164235", "text": "private void validationEmail( String email ) throws Exception {\r\n\t if ( email != null && email.trim().length() != 0 ) {\r\n\t if ( !email.matches( \"([^.@]+)(\\\\.[^.@]+)*@([^.@]+\\\\.)+([^.@]+)\" ) ) {\r\n\t throw new Exception( \"Merci de saisir une adresse mail valide.\" );\r\n\t }\r\n\t else {\r\n\t\t\t\tInteger nbMail = Manager.getInstance().countUsersMailUsed(email);\r\n\t\t\t\tif(nbMail != 0){\r\n\t\t\t\t\tthrow new Exception( \"L'adresse mail est déjà utilisée.\" );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t } else {\r\n\t throw new Exception( \"Merci de saisir une adresse mail.\" );\r\n\t }\r\n\t}", "title": "" }, { "docid": "26f2c9c4c5057eee764baf9c7cd34b01", "score": "0.5601298", "text": "boolean isEmailRegistered(String email);", "title": "" }, { "docid": "bc874732d181b4b828dbd3d2c09f2f94", "score": "0.5599162", "text": "boolean hasChangeNotification();", "title": "" }, { "docid": "bc874732d181b4b828dbd3d2c09f2f94", "score": "0.5599162", "text": "boolean hasChangeNotification();", "title": "" }, { "docid": "3d3ad82b38d558308ee7e65383d9ceda", "score": "0.55950755", "text": "public String getEmailCheck() {\n return emailCheck;\n }", "title": "" }, { "docid": "1d86ce0a75fbf812e6b95335b9b0e8f6", "score": "0.5594433", "text": "boolean hasOldValidFrom();", "title": "" }, { "docid": "03835c29ccac7da929e83b7993f6b148", "score": "0.5587595", "text": "private boolean validateEmail (){\n\n mail = email.getEditText().getText().toString().trim();\n\n if (TextUtils.isEmpty(mail)){\n email.setError(getString(R.string.fillthisfield));\n return false;\n } else {\n email.setError(null);\n return true;\n }\n }", "title": "" }, { "docid": "52aa6e07c282cc629b6d6f91ee48c43f", "score": "0.5581469", "text": "public ChangeEmail(){}", "title": "" }, { "docid": "1b3519eacd3dc38fdadf623e6a978e00", "score": "0.5577692", "text": "public Boolean checkMail(String mail){\n SQLiteDatabase db = this.getReadableDatabase();\n Cursor cursor = db.rawQuery(\"SELECT * FROM user WHERE email=?\", new String[]{mail});\n if(cursor.getCount()>0){\n return false;\n }else return true;\n }", "title": "" }, { "docid": "abb93cf3baa63d32e65e34bd864d0d07", "score": "0.5575455", "text": "private boolean mailisvalid(String email) {\n\t\tString regex = \"^[\\\\w\\\\d][\\\\w\\\\d\\\\_\\\\-\\\\.]{0,64}[\\\\w\\\\d]\\\\@[\\\\w\\\\d]{2,64}\\\\.[\\\\w\\\\d\\\\-]{2,10}$\";\n\t\treturn email.matches(regex);\n\t}", "title": "" }, { "docid": "1f914c195ce5964ce13d9c8b82c21cb6", "score": "0.5568085", "text": "private boolean emailExists( String email){\r\n\t\ttry{\r\n\t\tif (Validator.isNull(email)) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\tList<TaiKhoanNguoiDung> taiKhoanLst = TaiKhoanNguoiDungLocalServiceUtil.findByEmail(email);\r\n\t\t\r\n\t\tif ( taiKhoanLst.size() < 1) {\r\n\t\t\treturn false;\r\n\t\t}\t\t\r\n\t\t\r\n\t\tTaiKhoanNguoiDung taiKhoanNguoiDung = taiKhoanLst.get(0);\t\t\r\n\t\t\r\n\t\tif ( email.equals(taiKhoanNguoiDung.getEmail()) || (taiKhoanNguoiDung.getDaXoa() == FormatUtil.DA_XOA_DEACTIVATE)) {\t\t\r\n\t\t\t\t\t\r\n\t\t\t\treturn true;\t\t\t\r\n\t\t}\r\n\t\t}catch (Exception e) {\r\n\t\t\t// TODO: handle exception\r\n\t\t}\r\n\t\t\r\n\t\treturn false;\t\t\r\n\t}", "title": "" }, { "docid": "e5a3106dd971d029842f9b5227a561b2", "score": "0.55633813", "text": "private boolean isEmailValid(String email) {\n\t\treturn email.contains(\"@\") && email.contains(\".\");\n\t}", "title": "" }, { "docid": "f18a766d1171a37659f2458b8325e0e0", "score": "0.55630904", "text": "private String validateEmailAddress(String email){\n\t//get more validation methods or something to check that email address is valid!!!!\n\tif (email.equals(\"\")) \n\t\treturn \"Please fill in a valid Email Address\";\n\t\t\n\t\n\t//Check pattern of email.\n Pattern patternCheck = Pattern.compile(\"[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\\\\.[A-Za-z]{2,4}\");\n Matcher emailMatcher = patternCheck.matcher(email);\n\n if(!emailMatcher.matches()){\n \treturn(\"The email provided is invalid\");\n } \n\n\t//Check uniqueness of email. \n\tint a = db.IsBuyerOrSeller(email.toLowerCase());\n\tif ((a==0)||(a==1)) //The Email is already in the seller or buyer table.\n\t\treturn \"There is an account already linked to this Email Address.\";\n\treturn \"yes\";\n }", "title": "" }, { "docid": "dca5ac515224ba38aa3a5cad0bc74c5e", "score": "0.5560594", "text": "private boolean isValidEmailAddress(String email) {\n Matcher matcher = validEmailRegex .matcher(email);\n return matcher.find();\n }", "title": "" }, { "docid": "8a2d7192589e24d4bde812db5c36d4aa", "score": "0.5556093", "text": "public void setCheckEmail(Byte checkEmail) {\n this.checkEmail = checkEmail;\n }", "title": "" }, { "docid": "16cd77e6daff1a3ffdbcfd30c3caa1f1", "score": "0.5552921", "text": "private boolean validateEmail(){\r\n String emailInput=edtEmail.getText().toString().trim();\r\n if(emailInput.isEmpty()){\r\n edtEmail.setError(\"Field can't be empty!\");\r\n return false;\r\n }\r\n else {\r\n edtEmail.setError(null);\r\n return true;\r\n }\r\n }", "title": "" }, { "docid": "fb87c5946bd7358d3eb9fce9db6e728b", "score": "0.55515844", "text": "@Override\n\tpublic boolean hasemail(String email) {\n\t\treturn dao.hasemail(email);\n\t}", "title": "" } ]
87f73b6fd9b006cf9f2148272c6e999d
Convert the given object to string with each line indented by 4 spaces (except the first line).
[ { "docid": "80f70bbada262e8bf83a010dcff7ebda", "score": "0.0", "text": "private static String toIndentedString(java.lang.Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" } ]
[ { "docid": "9e6d1b5dcd4619e079c1bbb422051363", "score": "0.7617841", "text": "private String toIndentedString(Object o) {\nif (o == null) {\nreturn \"null\";\n}\nreturn o.toString().replace(\"\\n\", \"\\n \");\n}", "title": "" }, { "docid": "2d0895e2e9e966bbddff9ac3e2f3fdd0", "score": "0.7589105", "text": "private String toIndentedString(java.lang.Object o) {\nif (o == null) {\nreturn \"null\";\n}\nreturn o.toString().replace(\"\\n\", \"\\n \");\n}", "title": "" }, { "docid": "2c1073a22774d8f776617f693926e5f4", "score": "0.7497175", "text": "private String toIndentedString( Object o )\n {\n if ( o == null )\n {\n return \"null\";\n }\n return o.toString().replace( \"\\n\", \"\\n \" );\n }", "title": "" }, { "docid": "2c1073a22774d8f776617f693926e5f4", "score": "0.7497175", "text": "private String toIndentedString( Object o )\n {\n if ( o == null )\n {\n return \"null\";\n }\n return o.toString().replace( \"\\n\", \"\\n \" );\n }", "title": "" }, { "docid": "2c1073a22774d8f776617f693926e5f4", "score": "0.7497175", "text": "private String toIndentedString( Object o )\n {\n if ( o == null )\n {\n return \"null\";\n }\n return o.toString().replace( \"\\n\", \"\\n \" );\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.74606925", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.74606925", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.74606925", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.74606925", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.74606925", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.74606925", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.74606925", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.74606925", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.74606925", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.74606925", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.74606925", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.74606925", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.74606925", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.74606925", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.74606925", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.74606925", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.74606925", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.74606925", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.74606925", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.74606925", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.74606925", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.74606925", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.74606925", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.74606925", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.74606925", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.74606925", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.74606925", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.74606925", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.74606925", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.74606925", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.74606925", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.74606925", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.74606925", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.74606925", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.74606925", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.74606925", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.74606925", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.74606925", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.74606925", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.74606925", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.74606925", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.74606925", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.74606925", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.74606925", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.74606925", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.74606925", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.74606925", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.74606925", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.74606925", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.74606925", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.74606925", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.74606925", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.74606925", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.74606925", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.74606925", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.74606925", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.74606925", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.74606925", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.74606925", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.74606925", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.74606925", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.74606925", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.74606925", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.74606925", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.74606925", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.74606925", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.74606925", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.74606925", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.74606925", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.74606925", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.74606925", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.74606925", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.74606925", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.74606925", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.74606925", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.74606925", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.74606925", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.74606925", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.74606925", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.74606925", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.74606925", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.74606925", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.74606925", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.74606925", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.74606925", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.74606925", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.74606925", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.74606925", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.74606925", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.74606925", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.74606925", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.74606925", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.74606925", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.74606925", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.74606925", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" }, { "docid": "060c307f35bb4b6b5f41e4ead15defd6", "score": "0.74606925", "text": "private String toIndentedString(Object o) {\n if (o == null) {\n return \"null\";\n }\n return o.toString().replace(\"\\n\", \"\\n \");\n }", "title": "" } ]
1415c81b9cd1577d06f6401128634f94
Creates request message with the given method, host and request path.
[ { "docid": "51f178568122a41f56a4089eea75beca", "score": "0.62621605", "text": "public BasicHttpRequest(final Method method, final HttpHost host, final String path) {\n super();\n this.method = Args.notNull(method, \"Method\").name();\n this.scheme = host != null ? host.getSchemeName() : null;\n this.authority = host != null ? new URIAuthority(host) : null;\n this.path = path;\n }", "title": "" } ]
[ { "docid": "1d545d6ada8d5312716ba8ab0ced4a74", "score": "0.6698508", "text": "protected final RequestBuilder create(String substation, String method, String path,\n Object... args) {\n HttpHost target = host;\n if (StringUtils.isNotBlank(substation)) {\n String hostname = substation + \".\" + host.getHostName();\n target = new HttpHost(hostname, host.getPort(), host.getSchemeName());\n }\n return RequestBuilder.create(method).setUri(target.toURI() + String.format(path, args));\n }", "title": "" }, { "docid": "9d77ed4550f9ab5f9b1a5ba8004deefc", "score": "0.6574853", "text": "public IncomingRequest create(PortletRequest request, String method)\n throws IOException {\n\n HttpServletRequest httpServletRequest = PortalUtil.getOriginalServletRequest(PortalUtil.getHttpServletRequest(request));\n\n StringBuilder uri = new StringBuilder(HTTP_BASE_INCOMING_URL);\n\n StringBuilder query = new StringBuilder();\n Enumeration<String> parameters = request.getParameterNames();\n String sep = \"\";\n while (parameters.hasMoreElements()) {\n String name = parameters.nextElement();\n String[] values = request.getParameterValues(name);\n if (!name.equals(ACTION_PARAMETER)) {\n for (String value : values) {\n query.append(sep);\n query.append(name).append(\"=\").append(URLEncoder.encode(value, \"UTF-8\"));\n sep = \"&\";\n }\n }\n }\n\n ProtocolVersion protocolVersion = HttpVersion.HTTP_1_1.forVersion(1, 0);\n\n if (method.equals(\"GET\")) {\n if (!query.toString().isEmpty()) {\n if (!uri.toString().contains(\"?\")) {\n uri.append(\"?\");\n } else {\n uri.append(\"&\");\n }\n uri.append(query);\n }\n }\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"Creating Incoming request with method \" + method + \", URI \" + uri + \", protocoleVersion \" + protocolVersion);\n }\n IncomingRequest.Builder builder = IncomingRequest.builder(new BasicRequestLine(method, uri.toString(), protocolVersion));\n\n if (method.equals(\"POST\")) {\n // create entity\n InputStream inputStream = IOUtils.toInputStream(query.toString());\n\n if (inputStream != null) {\n // Copy entity-related headers\n InputStreamEntity entity = new InputStreamEntity(inputStream, query.length());\n String contentTypeHeader = httpServletRequest.getContentType();\n if (contentTypeHeader != null) {\n entity.setContentType(contentTypeHeader);\n }\n String contentEncodingHeader = httpServletRequest.getCharacterEncoding();\n if (contentEncodingHeader != null) {\n entity.setContentEncoding(contentEncodingHeader);\n }\n builder.setEntity(entity);\n }\n }\n\n\n HttpServletRequestContext context = new HttpServletRequestContext(httpServletRequest, null, null);\n builder.setContext(context);\n builder.setRemoteAddr(httpServletRequest.getRemoteAddr());\n builder.setRemoteUser(request.getRemoteUser());\n HttpSession session = httpServletRequest.getSession(false);\n if (session != null) {\n builder.setSessionId(session.getId());\n }\n builder.setUserPrincipal(request.getUserPrincipal());\n // Copy cookies\n javax.servlet.http.Cookie[] src = request.getCookies();\n\n if (src != null) {\n LOG.debug(\"Copying \" + src.length + \" cookie(s) to response.\");\n for (int i = 0; i < src.length; i++) {\n javax.servlet.http.Cookie c = src[i];\n BasicClientCookie dest = new BasicClientCookie(c.getName(), c.getValue());\n dest.setSecure(c.getSecure());\n dest.setDomain(c.getDomain());\n dest.setPath(c.getPath());\n dest.setComment(c.getComment());\n dest.setVersion(c.getVersion());\n builder.addCookie(dest);\n }\n }\n\n builder.setSession(new HttpServletSession(httpServletRequest));\n\n IncomingRequest incomingRequest = builder.build();\n return incomingRequest;\n\n }", "title": "" }, { "docid": "ad17b412c5aaeed62fac99c764ff8bbe", "score": "0.6507643", "text": "public SMTPRequest createRequest(String message);", "title": "" }, { "docid": "89f9e83a52486d42a7426fe8badec4aa", "score": "0.6297066", "text": "public BasicHttpRequest(final String method, final HttpHost host, final String path) {\n super();\n this.method = Args.notNull(method, \"Method name\");\n this.scheme = host != null ? host.getSchemeName() : null;\n this.authority = host != null ? new URIAuthority(host) : null;\n this.path = path;\n }", "title": "" }, { "docid": "3e03f613a4d9e41b8efd2a18e6dbcd0c", "score": "0.6267762", "text": "private static OAuthMessage newRequestMessage(OAuthAccessor accessor,\n Method method, String url, InputStream bodyStream, OAuthEngine engine)\n throws OAuthException, IOException, URISyntaxException {\n String methodStr = method.toString();\n if (methodStr == null) {\n methodStr = (String) accessor.getProperty(\"httpMethod\");\n if (methodStr == null) {\n methodStr = (String) accessor.consumer.getProperty(\"httpMethod\");\n if (methodStr == null) {\n methodStr = OAuthMessage.GET;\n }\n }\n }\n\n OAuthMessage message = new OAuthMessage(methodStr, url, null, bodyStream);\n engine.authMessage(accessor, message);\n\n return message;\n }", "title": "" }, { "docid": "fba67a84954862c25cdd330ac5ff1154", "score": "0.61171645", "text": "public BasicHttpRequest(final String method, final String path) {\n super();\n this.method = method;\n if (path != null) {\n try {\n setUri(new URI(path));\n } catch (final URISyntaxException ex) {\n this.path = path;\n }\n }\n }", "title": "" }, { "docid": "ad7ca3b75b7d66c447691c3ca71f25bf", "score": "0.6063585", "text": "private HttpRequestBase createRequest(HttpMethod method, String resource, List<NameValuePair> parameters) throws UnsupportedEncodingException, URISyntaxException\r\n { \r\n URI uri;\r\n \r\n // Generate URI\r\n // TODO: A bit of a kludge\r\n if(method == HttpMethod.GET || method == HttpMethod.DELETE)\r\n { \r\n // Create URI and insert parameters if needed\r\n uri = URIUtils.createURI(DEFAULT_SCHEME, DEFAULT_HOST, -1, resource, \r\n URLEncodedUtils.format(parameters, \"UTF-8\"), null);\r\n }\r\n else\r\n {\r\n // Create URI and insert parameters if needed\r\n uri = URIUtils.createURI(DEFAULT_SCHEME, DEFAULT_HOST, -1, resource, \r\n null, null);\r\n }\r\n \r\n // Make actual request\r\n switch (method)\r\n {\r\n \r\n // Create URL encoded values for GET and DELETE requests\r\n case GET:\r\n HttpGet returnGet = new HttpGet(uri);\r\n return returnGet;\r\n \r\n case DELETE:\r\n HttpDelete returnDelete = new HttpDelete(uri);\r\n return returnDelete;\r\n \r\n // Create multipart data for POST and PUT\r\n case PUT:\r\n HttpPut returnPut = new HttpPut(uri);\r\n returnPut.setEntity(createMultipart(parameters));\r\n return returnPut;\r\n \r\n case POST:\r\n HttpPost returnPost = new HttpPost(uri);\r\n returnPost.setEntity(createMultipart(parameters));\r\n return returnPost;\r\n \r\n default:\r\n return null; // Unreachable code\r\n }\r\n }", "title": "" }, { "docid": "b33c52cccc5a64239afd88fd31c934f8", "score": "0.6026032", "text": "public BasicHttpRequest(final Method method, final String path) {\n super();\n this.method = Args.notNull(method, \"Method\").name();\n if (path != null) {\n try {\n setUri(new URI(path));\n } catch (final URISyntaxException ex) {\n this.path = path;\n }\n }\n }", "title": "" }, { "docid": "6a32db6aa2e765972adf33c19efdeb54", "score": "0.60194474", "text": "public RestfulClient(String path, String requestMethod) {\n\n this.path = path;\n this.requestMethod = requestMethod;\n\n }", "title": "" }, { "docid": "d616e111b958ede2a3a35fc5908da7f1", "score": "0.5962309", "text": "public RequestSpecification createRequest() {\n request = given().log().all().spec(new RequestSpecBuilder().setBaseUri(ConfigReader.getProperty(\"baseURI\")).\n addHeader(\"Content-type\", \"application/json\").\n // addHeader(\"Authorization\", ConfigReader.getProperty(\"token\")).\n setContentType(ContentType.JSON).build());\n\n return request;\n }", "title": "" }, { "docid": "c86a949ccc7e831c6a7a3a6e5366d714", "score": "0.592192", "text": "private Response request(String method, String path, Object content) {\r\n try {\r\n\t\t\tURL url = new URL(\"http\", Bootstrap.IP_ADDRESS, Bootstrap.PORT, path);\r\n System.out.println(url);\r\n\t\t\tHttpURLConnection http = (HttpURLConnection) url.openConnection();\r\n http.setRequestMethod(method);\r\n http.setDoInput(true);\r\n if (content != null) {\r\n String contentAsJson = new Gson().toJson(content);\r\n http.setDoOutput(true);\r\n http.setRequestProperty(\"Content-Type\", \"application/json\");\r\n OutputStreamWriter output = new OutputStreamWriter(http.getOutputStream());\r\n output.write(contentAsJson);\r\n output.flush();\r\n output.close();\r\n }\r\n String responseBody;\r\n if (http.getResponseCode() < 400) {\r\n responseBody = IOUtils.toString(http.getInputStream());\r\n } else {\r\n responseBody = \"\";\r\n }\r\n\t\t\treturn new Response(http.getResponseCode(), responseBody);\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\tfail(\"Sending request failed: \" + e.getMessage());\r\n\t\t\treturn null;\r\n\t\t}\r\n }", "title": "" }, { "docid": "7c4b415c885e4c79b4167e53b7996b18", "score": "0.5856178", "text": "public HttpMethodRequestWrapper(HttpServletRequest request, String method)\r\n/* 47: */ {\r\n/* 48:91 */ super();\r\n/* 49:92 */ this.method = method;\r\n/* 50: */ }", "title": "" }, { "docid": "4ed921b0c49c7d0e265365e7e7228250", "score": "0.5779681", "text": "public static Request buildForwardMessage(Request req, ServerConf cfg) {\n\n\t\tList<RoutingPath> paths = req.getHeader().getPathList();\n\t\tif (paths != null) {\n\t\t\t// if this server has already seen this message return null\n\t\t\tfor (RoutingPath rp : paths) {\n\t\t\t\tif (cfg.getNodeId() == rp.getNodeId())\n\t\t\t\t\treturn null;\n\t\t\t}\n\t\t}\n\n\t\tRequest.Builder bldr = Request.newBuilder(req);\n\t\tHeader.Builder hbldr = bldr.getHeaderBuilder();\n\t\tRoutingPath.Builder rpb = RoutingPath.newBuilder();\n\t\trpb.setNodeId(cfg.getNodeId());\n\t\trpb.setTime(System.currentTimeMillis());\n\t\thbldr.addPath(rpb.build());\n\n\t\treturn bldr.build();\n\t}", "title": "" }, { "docid": "21d754455e1623fa366c0053e0c8354a", "score": "0.5731877", "text": "public Request(final HttpMethod method,\n final String route) {\n this.method = method;\n this.route = route;\n this.postParams = new HashMap<>();\n }", "title": "" }, { "docid": "1c1763eb590b9f5a93d60fd93bab318a", "score": "0.5713675", "text": "public Request createRequest(\n\t\tjavax.sip.address.URI requestURI,\n\t\tString method,\n\t\tCallIdHeader callId,\n\t\tCSeqHeader cSeq,\n\t\tFromHeader from,\n\t\tToHeader to,\n\t\tList via,\n\t\tMaxForwardsHeader maxForwards,\n\t\tContentTypeHeader contentType,\n\t\tbyte[] content)\n\t\tthrows ParseException {\n\t\tif (requestURI == null\n\t\t\t|| method == null\n\t\t\t|| callId == null\n\t\t\t|| cSeq == null\n\t\t\t|| from == null\n\t\t\t|| to == null\n\t\t\t|| via == null\n\t\t\t|| maxForwards == null\n\t\t\t|| content == null\n\t\t\t|| contentType == null)\n\t\t\tthrow new NullPointerException(\"missing parameters\");\n\n\t\tSIPRequest sipRequest = new SIPRequest();\n\t\tsipRequest.setRequestURI(requestURI);\n\t\tsipRequest.setMethod(method);\n\t\tsipRequest.setCallId(callId);\n\t\tsipRequest.setCSeq(cSeq);\n\t\tsipRequest.setFrom(from);\n\t\tsipRequest.setTo(to);\n\t\tsipRequest.setVia(via);\n\t\tsipRequest.setMaxForwards(maxForwards);\n\t\tsipRequest.setContent(content, contentType);\n\t\treturn sipRequest;\n\t}", "title": "" }, { "docid": "be368eca5bbec3592244b6897f91b657", "score": "0.57077235", "text": "public Request(final HTTPMethodType method, final String uri, final String HTTP_version) {\n super();\n this.method=method;\n this.uri=uri;\n this.HTTP_version=HTTP_version;\n }", "title": "" }, { "docid": "1881589abb705bbd39d2b065296fc62a", "score": "0.5685149", "text": "EasyRequest setMethod(String method);", "title": "" }, { "docid": "431d86b2d332171593a345e56aee705e", "score": "0.5668358", "text": "net.iGap.proto.ProtoRequest.Request getRequest();", "title": "" }, { "docid": "431d86b2d332171593a345e56aee705e", "score": "0.5668358", "text": "net.iGap.proto.ProtoRequest.Request getRequest();", "title": "" }, { "docid": "431d86b2d332171593a345e56aee705e", "score": "0.5668358", "text": "net.iGap.proto.ProtoRequest.Request getRequest();", "title": "" }, { "docid": "431d86b2d332171593a345e56aee705e", "score": "0.5668358", "text": "net.iGap.proto.ProtoRequest.Request getRequest();", "title": "" }, { "docid": "3eba9a0f5d73d914709619d1f52a7b02", "score": "0.56416553", "text": "@Override\n public R createRequest(IProtocolMessage p) {\n return null;\n }", "title": "" }, { "docid": "5afaf728539d83f8dabd960bc38a0b8a", "score": "0.5624797", "text": "String getRequestMethod();", "title": "" }, { "docid": "6ef1d254bd45f6f04a7f6c0533fb7955", "score": "0.5611913", "text": "public Request createRequest(\n\t\tURI requestURI,\n\t\tString method,\n\t\tCallIdHeader callId,\n\t\tCSeqHeader cSeq,\n\t\tFromHeader from,\n\t\tToHeader to,\n\t\tList via,\n\t\tMaxForwardsHeader maxForwards,\n\t\tbyte[] content,\n\t\tContentTypeHeader contentType)\n\t\tthrows ParseException {\n\t\tif (requestURI == null\n\t\t\t|| method == null\n\t\t\t|| callId == null\n\t\t\t|| cSeq == null\n\t\t\t|| from == null\n\t\t\t|| to == null\n\t\t\t|| via == null\n\t\t\t|| maxForwards == null\n\t\t\t|| content == null\n\t\t\t|| contentType == null)\n\t\t\tthrow new ParseException(\n\t\t\t\t\"JAIN-SIP Exception, some parameters are missing\"\n\t\t\t\t\t+ \", unable to create the request\\n\"\n\t\t\t\t\t+ \"requestURI = \" + requestURI\n\t\t\t\t\t+ \"method = \" + method\n\t\t\t\t\t+ \"callId = \" + callId\n\t\t\t\t\t+ \"cSeq = \" + cSeq\n\t\t\t\t\t+ \"from = \" + from\n\t\t\t\t\t+ \"to = \" + to\n\t\t\t\t\t+ \"via = \" + via\n\t\t\t\t\t+ \"maxForwards = \" + maxForwards\n\t\t\t\t\t+ \"content = \" + content\n\t\t\t\t\t+ \"contentType = \" + contentType + \"\\n\",\n\t\t\t\t0);\n\n\t\tSIPRequest sipRequest = new SIPRequest();\n\t\tsipRequest.setRequestURI(requestURI);\n\t\tsipRequest.setMethod(method);\n\t\tsipRequest.setCallId(callId);\n\t\tsipRequest.setCSeq(cSeq);\n\t\tsipRequest.setFrom(from);\n\t\tsipRequest.setTo(to);\n\t\tsipRequest.setVia(via);\n\t\tsipRequest.setMaxForwards(maxForwards);\n\t\tsipRequest.setHeader((ContentType) contentType);\n\t\tsipRequest.setMessageContent(content);\n\t\treturn sipRequest;\n\t}", "title": "" }, { "docid": "68a9cd75b60728ac098831ee5df7387e", "score": "0.56111795", "text": "public Request createRequest(\n\t\tjavax.sip.address.URI requestURI,\n\t\tString method,\n\t\tCallIdHeader callId,\n\t\tCSeqHeader cSeq,\n\t\tFromHeader from,\n\t\tToHeader to,\n\t\tList<ViaHeader> via,\n\t\tMaxForwardsHeader maxForwards,\n\t\tContentTypeHeader contentType,\n\t\tObject content)\n\t\tthrows ParseException {\n\t\tif (requestURI == null\n\t\t\t|| method == null\n\t\t\t|| callId == null\n\t\t\t|| cSeq == null\n\t\t\t|| from == null\n\t\t\t|| to == null\n\t\t\t|| via == null\n\t\t\t|| maxForwards == null\n\t\t\t|| content == null\n\t\t\t|| contentType == null)\n\t\t\tthrow new NullPointerException(\"Null parameters\\n\"\n\t\t\t\t\t+ \"requestURI = \" + requestURI\n\t\t\t\t\t+ \"method = \" + method\n\t\t\t\t\t+ \"callId = \" + callId\n\t\t\t\t\t+ \"cSeq = \" + cSeq\n\t\t\t\t\t+ \"from = \" + from\n\t\t\t\t\t+ \"to = \" + to\n\t\t\t\t\t+ \"via = \" + via\n\t\t\t\t\t+ \"maxForwards = \" + maxForwards\n\t\t\t\t\t+ \"content = \" + content\n\t\t\t\t\t+ \"contentType = \" + contentType + \"\\n\");\n\n\t\tSIPRequest sipRequest = new SIPRequest();\n\t\tsipRequest.setRequestURI(requestURI);\n\t\tsipRequest.setMethod(method);\n\t\tsipRequest.setCallId(callId);\n\t\tsipRequest.setCSeq(cSeq);\n\t\tsipRequest.setFrom(from);\n\t\tsipRequest.setTo(to);\n\t\tsipRequest.setVia(via);\n\t\tsipRequest.setMaxForwards(maxForwards);\n\t\tsipRequest.setContent(content, contentType);\n\n\t\treturn sipRequest;\n\t}", "title": "" }, { "docid": "ffcfe806316f988fc02098183ef24b23", "score": "0.55887944", "text": "public RequestMessage(Request request) {\n super(IntersectionManager.REQUESTS_TOPIC, request);\n }", "title": "" }, { "docid": "57364952670de07fa4f72f3098af21ff", "score": "0.5582154", "text": "public Request(String path, String token, HashMap<String, String> params, Object body) {\n this.path = path;\n this.token = token;\n this.params = params;\n this.body = body;\n }", "title": "" }, { "docid": "ef732b16cda7c6900b41b36e847c2228", "score": "0.55811644", "text": "private void buildRequest() throws IOException {\n if (isMethodWithBody()) {\n connection.setDoOutput(true);\n connection.setRequestProperty(\"Content-type\", contentType);\n\n if (body == null) {\n StringBuilder requestBuilder = new StringBuilder();\n for (Entry e : args) {\n requestBuilder.append(e.key).append('=').append(e.value).append('&');\n }\n requestBuilder.deleteCharAt(requestBuilder.length() - 1);\n connection.getOutputStream().write(requestBuilder.toString().getBytes(\"UTF-8\"));\n } else {\n try {\n byte[] bytes = new byte[32768];\n int read = 0;\n while ((read = body.read(bytes)) != -1) {\n connection.getOutputStream().write(bytes, 0, read);\n }\n } finally {\n body.close();\n }\n }\n }\n }", "title": "" }, { "docid": "c0cb00f51d0db30889eff5e598ffa0ce", "score": "0.55525684", "text": "private Response makeRequest(Method method, String requestString, Representation entity) {\r\n Reference reference = new Reference(this.dailyProjectDataHost + requestString);\r\n Request request = (entity == null) ? new Request(method, reference) : new Request(method,\r\n reference, entity);\r\n request.getClientInfo().getAcceptedMediaTypes().add(xmlMedia);\r\n ChallengeResponse authentication = new ChallengeResponse(scheme, this.userEmail, this.password);\r\n request.setChallengeResponse(authentication);\r\n if (this.isTraceEnabled) {\r\n System.out.println(\"DailyProjectDataClient Tracing: \" + method + \" \" + reference);\r\n if (entity != null) {\r\n try {\r\n System.out.println(entity.getText());\r\n }\r\n catch (Exception e) {\r\n System.out.println(\" Problems with getText() on entity.\");\r\n }\r\n }\r\n }\r\n Response response = this.client.handle(request);\r\n if (this.isTraceEnabled) {\r\n Status status = response.getStatus();\r\n System.out.println(\" => \" + status.getCode() + \" \" + status.getDescription());\r\n }\r\n return response;\r\n }", "title": "" }, { "docid": "0ed7f865cbfd385439ddd2704fb1e255", "score": "0.55486166", "text": "HttpMethod getMethod();", "title": "" }, { "docid": "76b8cf51931cba1bbc99992dca25977f", "score": "0.5544978", "text": "private Request createRequest(String requestLine) throws InitializationException {\n if (requestLine == null) {\n throw new InitializationException(REQUEST_INIT_EXCEPTION);\n }\n\n String[] current = requestLine.split(COMMAND_DELIMITER);\n if (current.length == 1) {\n throw new InitializationException(INPUT_TEXT_INIT_EXCEPTION);\n }\n\n Request request;\n try {\n request = new Request();\n CommandName commandName;\n\n String name = requestLine.substring(0, requestLine.indexOf(COMMAND_DELIMITER));\n String parameters = requestLine.substring(requestLine.indexOf(COMMAND_DELIMITER) + 1);\n commandName = CommandName.valueOf(name.toUpperCase());\n request.setCommandToRequest(commandName);\n String[] params = parameters.split(PARAMS_DELIMITER);\n setRequestParams(request, params);\n } catch (IllegalArgumentException e) {\n throw new InitializationException(e);\n }\n return request;\n }", "title": "" }, { "docid": "cb3fd8b6d20b9bb981a13cf7db674a28", "score": "0.55348694", "text": "private void formatRequest() {\t\n\t\tif (command.equals(\"GET\") || command.equals(\"HEAD\")) {\n\t\t\trequest = command + \" \" + path + \" \" + protocol + \"\\r\\n\" + \n\t\t\t\t\t\"Host: \" + hostname + \":\" + port + \"\\r\\n\";\n\t\t}\n\t\t\n\t\telse if (command.equals(\"PUT\")) {\n\t\t\tScanner scanner = new Scanner(System.in);\n\t\t\tSystem.out.println(\"Type your message (PUT):\\n\");\n\t\t\tString scanned = scanner.nextLine();\n\t\t\tscanner.close();\n\t\t\t\n\t\t\tint contentLength = scanned.length();\n\t\t\t\n\t\t\trequest = command + \" \" + path + \" \" + protocol + \"\\r\\n\" +\n\t\t\t\t\t\"Host: \" + hostname + \":\" + port + \"\\r\\n\" + \n\t\t\t\t\t\"Content-Type: text/txt\" + \"\\r\\n\" + \n\t\t\t\t\t\"Content-Length: \" + contentLength + \"\\r\\n\" + \"\\r\\n\" +\n\t\t\t\t\tscanned;\n\t\t}\n\t\telse if (command.equals(\"POST\")) {\n\t\t\tScanner scanner = new Scanner(System.in);\n\t\t\tSystem.out.println(\"Type your message (POST):\\n\");\n\t\t\tString scanned = scanner.nextLine();\n\t\t\tscanner.close();\n\t\t\tint contentLength = scanned.length();\n\t\t\t\n\t\t\trequest = command + \" \" + path + \" \" + protocol + \"\\r\\n\" +\n\t\t\t\t\t\"Host: \" + hostname + \":\" + port + \"\\r\\n\" + \n\t\t\t\t\t\"Content-Type: text/txt\" + \"\\r\\n\" + \n\t\t\t\t\t\"Content-Length: \" + contentLength + \"\\r\\n\" + \"\\r\\n\" +\n\t\t\t\t\tscanned;\n\t\t}\n\t}", "title": "" }, { "docid": "6694032b6021571c9361043928c87787", "score": "0.54959375", "text": "protected TCRequest createRequest(HttpServletRequest request) {\n return HttpObjectFactory.createRequest(request);\n }", "title": "" }, { "docid": "14b5d0b590ecd038d2fa50a320f5b99a", "score": "0.5488528", "text": "private String buildBeginMessage(HttpServletRequest request,String methodName){\n return Slf4jUtil.format(\"will [{}.{}],[{}]\", getClass().getSimpleName(), methodName, getRequestFullURL(request, UTF8));\n }", "title": "" }, { "docid": "e32998e34182610eb1e656c2bd863edc", "score": "0.5475945", "text": "String method(RequestT request);", "title": "" }, { "docid": "cad2618562198a6812d7b3d5b459512e", "score": "0.5440614", "text": "public static Request createRequest() {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "27d1b6563e701b718c1cc86748039baf", "score": "0.5398919", "text": "public NetHttpRequest buildRequest(String method, String url) throws IOException {\n Preconditions.checkArgument(supportsMethod(method), \"HTTP method %s not supported\", method);\n HttpURLConnection connection = this.connectionFactory.openConnection(new URL(url));\n connection.setRequestMethod(method);\n if (connection instanceof HttpsURLConnection) {\n HttpsURLConnection secureConnection = (HttpsURLConnection) connection;\n if (this.hostnameVerifier != null) {\n secureConnection.setHostnameVerifier(this.hostnameVerifier);\n }\n if (this.sslSocketFactory != null) {\n secureConnection.setSSLSocketFactory(this.sslSocketFactory);\n }\n }\n return new NetHttpRequest(connection);\n }", "title": "" }, { "docid": "cd45dfa4852f2dc504e111e7d1fcbc8c", "score": "0.53985983", "text": "public Request createRequest(\n\t\tURI requestURI,\n\t\tString method,\n\t\tCallIdHeader callId,\n\t\tCSeqHeader cSeq,\n\t\tFromHeader from,\n\t\tToHeader to,\n\t\tList via,\n\t\tMaxForwardsHeader maxForwards)\n\t\tthrows ParseException {\n\t\tif (requestURI == null\n\t\t\t|| method == null\n\t\t\t|| callId == null\n\t\t\t|| cSeq == null\n\t\t\t|| from == null\n\t\t\t|| to == null\n\t\t\t|| via == null\n\t\t\t|| maxForwards == null)\n\t\t\tthrow new ParseException(\n\t\t\t\t\"JAIN-SIP Exception, some parameters are missing\"\n\t\t\t\t\t+ \", unable to create the request\\n\"\n\t\t\t\t\t+ \"requestURI = \" + requestURI\n\t\t\t\t\t+ \"method = \" + method\n\t\t\t\t\t+ \"callId = \" + callId\n\t\t\t\t\t+ \"cSeq = \" + cSeq\n\t\t\t\t\t+ \"from = \" + from\n\t\t\t\t\t+ \"to = \" + to\n\t\t\t\t\t+ \"via = \" + via\n\t\t\t\t\t+ \"maxForwards = \" + maxForwards\n\t\t\t\t\t+ \"\\n\",\n\t\t\t\t0);\n\n\t\tSIPRequest sipRequest = new SIPRequest();\n\t\tsipRequest.setRequestURI(requestURI);\n\t\tsipRequest.setMethod(method);\n\t\tsipRequest.setCallId(callId);\n\t\tsipRequest.setCSeq(cSeq);\n\t\tsipRequest.setFrom(from);\n\t\tsipRequest.setTo(to);\n\t\tsipRequest.setVia(via);\n\t\tsipRequest.setMaxForwards(maxForwards);\n\n\t\treturn sipRequest;\n\t}", "title": "" }, { "docid": "f77f9098eb8bfb39f225f559bc23a0cd", "score": "0.5377489", "text": "private HttpRequest createRequest(String question) {\n HttpRequest request = Unirest.get(Urls.RECOGNISION\n .getUrl())\n .queryString(\"q\", question);\n return request;\n }", "title": "" }, { "docid": "414589fb53f60a92ffd76c0bf975d258", "score": "0.53336304", "text": "public final Object dynamicMethod(GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) {\n switch (C13651.f162xa1df5c61[method.ordinal()]) {\n case 1:\n return new Request();\n case 2:\n return new Builder((C13651) null);\n case 3:\n return newMessageInfo(DEFAULT_INSTANCE, \"\\u0000\\f\\u0000\\u0000\\u0001\\r\\f\\u0001\\u0000\\u0000\\u0001Ȉ\\u0002Ȉ\\u00032\\u0004Ȉ\\u0005Ȉ\\u0006Ȉ\\u0007Ȉ\\t\\t\\n\\u0002\\u000bȈ\\fȈ\\r\\t\", new Object[]{\"id_\", \"method_\", \"headers_\", HeadersDefaultEntryHolder.defaultEntry, \"path_\", \"host_\", \"scheme_\", \"query_\", \"time_\", \"size_\", \"protocol_\", \"reason_\", \"auth_\"});\n case 4:\n return DEFAULT_INSTANCE;\n case 5:\n Parser<Request> parser = PARSER;\n if (parser == null) {\n synchronized (Request.class) {\n parser = PARSER;\n if (parser == null) {\n parser = new GeneratedMessageLite.DefaultInstanceBasedParser<>(DEFAULT_INSTANCE);\n PARSER = parser;\n }\n }\n }\n return parser;\n case 6:\n return (byte) 1;\n case 7:\n return null;\n default:\n throw new UnsupportedOperationException();\n }\n }", "title": "" }, { "docid": "9efa94cab2ff718173e211b155c9ba28", "score": "0.5321402", "text": "public BasicHttpRequest(final String method, final String scheme, final URIAuthority authority, final String path) {\n super();\n this.method = Args.notNull(method, \"Method name\");\n this.scheme = scheme;\n this.authority = authority;\n this.path = path;\n }", "title": "" }, { "docid": "8569ef1d3f243c1c1e36b2aefb767602", "score": "0.53102624", "text": "protected ClientRequest buildRequest(String commandName, Map<String, Object> attributes) {\n ClientRequest request = new ClientRequest();\n request.setCommand(commandName);\n request.setAddress(getAddress());\n request.setAttributes(attributes);\n request.setRestfulRequest(false);\n request.setTimeoutMs(30000);\n return request;\n }", "title": "" }, { "docid": "911b3fa03f3ac3aa9f9831f236a51c44", "score": "0.5302496", "text": "public interface EasyRequest {\n /**\n * mime type of plain\n */\n String PLAIN = \"text/plain; charset=utf-8\";\n /**\n * mime type of form-data\n */\n String FORM = \"application/x-www-form-urlencoded\";\n /**\n * mime type of json\n */\n String JSON = \"application/json; charset=utf-8\";\n /**\n * mime type of xml\n */\n String XML = \"application/xml; charset=utf-8\";\n /**\n * mime type of soap v1.2\n */\n String SOAP12 = \"application/xml+soap; charset=utf-8\";\n\n /**\n * Set a proper url to the request\n * @param url the url to request, must be \"http\"/\"https\"\n * @return this request instance\n */\n EasyRequest setUrl(String url);\n\n /**\n * Get the url of this request\n * @return the url of this request\n */\n String getUrl();\n\n /**\n * Add key=value to the tail of the url\n * @param paramKey key\n * @param paramValue value\n * @return this request instance\n */\n EasyRequest addQueryParam(String paramKey, String paramValue);\n\n /**\n * Get the parameter value from url\n * @param paramKey the key of the parameter\n * @return the value of the parameter\n */\n String getQueryParam(String paramKey);\n\n /**\n * Set params for the request\n * @param paramMap map of the params\n * @return the request instance\n */\n EasyRequest setRequestParam(HashMap<String, String> paramMap);\n\n /**\n * Add a header to the request\n * @param headerName the name of the header\n * @param headerValue the value of the header\n * @return this request instance\n */\n EasyRequest addHeader(String headerName, String headerValue);\n\n /**\n * Set headers for the request\n * @param headerMap map of the headers\n * @return this request instance\n */\n EasyRequest setHeader(HashMap<String, String> headerMap);\n\n /**\n * Get the value of the specify header\n * @param headerName the name of the header\n * @return the value of the header\n */\n String getHeader(String headerName);\n\n /**\n * Add a cookie to the request\n * @param cookName the name of the cookie\n * @param cookValue the value of the cookie\n * @return this request instance\n */\n EasyRequest addCookie(String cookName, String cookValue);\n\n /**\n * Set cookies for the request\n * @param cookieMap map of the cookies\n * @return this request instance\n */\n EasyRequest setCookie(HashMap<String, String> cookieMap);\n\n /**\n * Set the body content of the request\n * @param mimeType specify the content type of the body\n * @param content the content of body\n * @return this request instance\n */\n EasyRequest setBody(String mimeType, String content);\n\n /**\n * Set the method of the request, default is GET\n * @param method the method of the request\n * @return this request instance\n */\n EasyRequest setMethod(String method);\n\n /**\n * Get the method of this request\n * @return the method\n */\n String getMethod();\n\n /**\n * Execute this request\n * @return the EasyResponse Object\n * @throws IOException some exception during connection\n */\n EasyResponse execute() throws IOException;\n}", "title": "" }, { "docid": "d46b3240f63b65e1c527b2523f689cc1", "score": "0.5299061", "text": "net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder();", "title": "" }, { "docid": "d46b3240f63b65e1c527b2523f689cc1", "score": "0.5299061", "text": "net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder();", "title": "" }, { "docid": "d46b3240f63b65e1c527b2523f689cc1", "score": "0.5299061", "text": "net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder();", "title": "" }, { "docid": "d46b3240f63b65e1c527b2523f689cc1", "score": "0.5299061", "text": "net.iGap.proto.ProtoRequest.RequestOrBuilder getRequestOrBuilder();", "title": "" }, { "docid": "bacec34d3d3f69198ee9cb4fae7854ec", "score": "0.529845", "text": "private static String createRequest() {\n List<OSPDataRequest> ospRequest = new ArrayList<OSPDataRequest>();\n OSPDataRequest osD = new OSPDataRequest();\n osD.setAction(OSPDataRequest.ActionEnum.ACCESS);\n osD.setRequesterId(OSP_ID);\n osD.setSubject(\"doctor\");\n osD.requestedUrl(\"personalInfo.patient.surname\");\n ospRequest.add(osD);\n\n return toJSONRequest(ospRequest);\n }", "title": "" }, { "docid": "795cf2d63eb6482054169776488cd363", "score": "0.5292632", "text": "public RequestBuilder(String url, HttpMethod method) {\r\n\t\tthis.baseURL = url;\r\n\t\tthis.method = method;\r\n\t}", "title": "" }, { "docid": "6b6e1600075da96ceeebf42c3e23bc66", "score": "0.5261976", "text": "public short route(Request request) {\n\t\t//check if it is the correct request\n\t\tMessageHeader header = request.getMessage().getHeader();\n\t\tRouteHeader rheader = header.getRouteHeader();\n\t\tint commonLen = rheader.getDepth();\n\n\t\tif (request.isLocallyStarted() || request.isMessageDelegated()) {\n\t\t\tmRouter.routeAtLevel(request.getMessage(), commonLen);\n\t\t} else {\n\t\t\tPGridHost host = header.getHost();\n\t\t\tString rPath = rheader.getKey();\n\t\t\tRouter.LOGGER.fine(\"received remote messeage from host \" + host.toHostString() + \" with path \" + rPath + \", and common len \" + rheader.getDepth() + \".\");\n\n\t\t\tint len = Utils.commonPrefix(mPGridP2P.getLocalPath(), rPath).length();\n\n\t\t\t// the common length of the paths are not as required => reply with 'Path Changed' code\n\t\t\tif ((len != commonLen) || (mPGridP2P.getLocalPath().length() == 0) && rPath.length() != 0) {\n\t\t\t\tRouter.LOGGER.fine(\"common length unequal do local common length => reply 'Path Changed'.\");\n\t\t\t\t/*SearchPathReplyMessage replyMsg = new SearchPathReplyMessage(msg.getGUID(), msg.getPath());\n\t\t\t\t\t\t\tmMsgMgr.sendMessage(host, replyMsg, null); */\n\t\t\t\treturn RouterACKMessage.CODE_WRONG_ROUTE;\n\t\t\t}\n\n\t\t\tint l0 = commonLen+1;\n\t\t\t// Check if this message is a dynamic joining of the network\n\t\t\tif (rPath.length() == 0) {\n\t\t\t\tRouter.LOGGER.fine(\"Remote path corrupted \\\"\" + rPath + \"\\\".\");\n\n\t\t\t} else {\n\t\t\t\t// dynamic load balancing\n\t\t\t\twhile ((mRandomizer.nextDouble() > 0.5) && (l0 < mPGridP2P.getLocalPath().length())) {\n\t\t\t\t\tl0++;\n\t\t\t\t}\n\t\t\t}\n\n\n\t\t\tif (l0 >= mPGridP2P.getLocalPath().length()) {\n\t\t\t\t// local peer is responsible for this message\n\t\t\t\tRouter.LOGGER.fine(\"local peer is responsible for this message.\");\n\t\t\t\tgetRouter().informLocalPeer(request.getMessage());\n\t\t\t} else {\n\t\t\t\t// try to find another peer\n\t\t\t\tRouter.LOGGER.fine(\"try to find another peer at level: \"+l0+\".\");\n\t\t\t\tPGridMessage msg = (PGridMessage) request.getMessage().clone();\n\n\t\t\t\tmsg.getHeader().getRouteHeader().setDepth(l0);\n\t\t\t\tmsg.getHeader().getRouteHeader().setKey(mPGridP2P.getLocalPath());\n\n\t\t\t\tmRouter.routeAtLevel(msg, l0);\n\t\t\t}\n\t\t}\n\n\t\treturn RouterACKMessage.CODE_OK;\n\t}", "title": "" }, { "docid": "9cf195cc39754d92b34c4f6bd526ee70", "score": "0.52562284", "text": "public HTTPMethod getMethod();", "title": "" }, { "docid": "9726db2685c3c33e994e96e9b3072d53", "score": "0.5240367", "text": "private Request dummyRequest() {\n return Request.create(Request.HttpMethod.GET, \"url\", new HashMap<>(), null, new RequestTemplate());\n }", "title": "" }, { "docid": "878eddff9699cf66bec8ffa3bca8c119", "score": "0.5202072", "text": "public RpcCall(RpcRequest request) {\n super(request);\n RpcRequest req = getRequest();\n String methodName = req.getMethod();\n if (methodName == null) {\n Class<? extends RpcCall> type = getClass();\n methodName = getMethodName(type);\n req.setMethod(methodName);\n }\n }", "title": "" }, { "docid": "52dbef4cc2d76873e3422e95b8cd382e", "score": "0.52002895", "text": "public Request() {\n this(DSL.name(\"request\"), null);\n }", "title": "" }, { "docid": "2cb92b24dce287c60639a85a3b94f83e", "score": "0.51883924", "text": "protected NetInfRequest(String host, String port, String pathPrefix) {\n\n Log.d(TAG, \"NetInfRequest()\");\n\n mHost = host;\n mPort = port;\n mPathPrefix = pathPrefix;\n\n // HTTP client with a timeout\n HttpParams httpParams = new BasicHttpParams();\n HttpConnectionParams.setConnectionTimeout(httpParams, TIMEOUT);\n HttpConnectionParams.setSoTimeout(httpParams, TIMEOUT);\n mClient = new DefaultHttpClient(httpParams);\n }", "title": "" }, { "docid": "8f51b5a7f4c756060eef2da5625b3269", "score": "0.51859075", "text": "protected HttpRequest createPostHttpRequest() throws IOException {\n HttpRequest.Builder builder = HttpRequest.newBuilder().POST(HttpRequest.BodyPublishers.ofString(request.toJsonBodyInsert()));\n setServiceUri(builder, request.getTheUuid());\n setStandardHeader(builder);\n setAuth(builder);\n return builder.build();\n }", "title": "" }, { "docid": "6e58cb2c8a6ada78edc21bba3454875e", "score": "0.51761335", "text": "protected RequestBundle createRequest(Bundle args) {\n return new RequestBundle(getEndPoint(args))\n .addQueryPath(getQueryPath(args))\n .addQueryData(getRequestData(args))\n .addQueryArray(getRequestArray(args))\n .setCache(mEventType.cacheTime);\n }", "title": "" }, { "docid": "8260f562ecba866d9f7b3f69e4460613", "score": "0.51670015", "text": "protected HttpRequest createPatchHttpRequest() throws IOException {\n HttpRequest.Builder builder = HttpRequest.newBuilder().POST(HttpRequest.BodyPublishers.ofString(request.toJsonBodyUpdate()));\n setServiceUri(builder, request.getTheUuid());\n setStandardHeader(builder);\n builder.setHeader(HEADER_METHOD_OVER,HEADER_PATCH);\n setAuth(builder);\n return builder.build();\n }", "title": "" }, { "docid": "1f2af550578e9fce87aa3e742cc2c40a", "score": "0.5151579", "text": "edu.usfca.cs.sift.Messages.RequestMsgOrBuilder getRequestMsgOrBuilder();", "title": "" }, { "docid": "49a5a97362ebfea58fade440936e015b", "score": "0.5146541", "text": "protected String createRequestURL() {\n\t\tif (!post && requestArguments != null) {\n\t\t\tStringBuffer b = new StringBuffer(url);\n\t\t\tEnumeration e = requestArguments.keys();\n\t\t\tif (e.hasMoreElements()) {\n\t\t\t\tb.append(\"?\");\n\t\t\t}\n\t\t\twhile (e.hasMoreElements()) {\n\t\t\t\tString key = (String) e.nextElement();\n\t\t\t\tString value = (String) requestArguments.get(key);\n\t\t\t\tb.append(key);\n\t\t\t\tb.append(\"=\");\n\t\t\t\tb.append(value);\n\t\t\t\tif (e.hasMoreElements()) {\n\t\t\t\t\tb.append(\"&\");\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn b.toString();\n\t\t}\n\t\treturn url;\n\t}", "title": "" }, { "docid": "1d9bd83a3881484012eb494090c2ccd7", "score": "0.51452893", "text": "protected abstract HttpRequestBase getRequest();", "title": "" }, { "docid": "9e6afda45f05a02271417d01ab128c1a", "score": "0.5143149", "text": "public interface HTTPRequest\r\n{\r\n\t/**\r\n\t * Gets the Host parameter as supplied by the client\r\n\t *\r\n\t * @return The host\r\n\t */\r\n\tpublic String getHost();\r\n\r\n\t/**\r\n\t * Get the entire request line, including method, path, etc\r\n\t * Returns null if the request line has not yet been received\r\n\t * @return the entire request line, including method, path, etc\r\n\t */\r\n\tpublic String getFullRequest();\r\n\r\n\t/**\r\n\t * Gets the entire url path as supplied by the client, including request parameters\r\n\t *\r\n\t * @return The host\r\n\t */\r\n\tpublic String getUrlPath();\r\n\r\n\t/**\r\n\t * Gets a specific parameter as parsed from request url\r\n\t *\r\n\t * @param name The parameter name\r\n\t * @return The parameter value\r\n\t */\r\n\tpublic String getUrlParameter(String name);\r\n\r\n\t/**\r\n\t * Gets whether a specific parameter is from request url\r\n\t *\r\n\t * @param name The parameter name\r\n\t * @return true if the parameter exists, false otherwise\r\n\t */\r\n\tpublic boolean isUrlParameter(String name);\r\n\r\n\t/**\r\n\t * Gets the key fields from the url/form parms\r\n\t *\r\n\t * @return The parameter names\r\n\t */\r\n\tpublic Set<String> getUrlParameters();\r\n\r\n\t/**\r\n\t * Gets the key fields from the url/form parms\r\n\t * and their values as a copied map\r\n\t *\r\n\t * @return The parameter names and values\r\n\t */\r\n\tpublic Map<String,String> getUrlParametersCopy();\r\n\r\n\t/**\r\n\t * The type of this request, or null if the request\r\n\t * line has not yet been received\r\n\t * @return the type of this request\r\n\t */\r\n\tpublic HTTPMethod getMethod();\r\n\r\n\t/**\r\n\t * Gets a request header as supplied by the client\r\n\t *\r\n\t * @param name The header name\r\n\t * @return The header value\r\n\t */\r\n\tpublic String getHeader(String name);\r\n\r\n\t/**\r\n\t * Gets the client's network address\r\n\t *\r\n\t * @return The clients network address\r\n\t */\r\n\tpublic java.net.InetAddress getClientAddress();\r\n\r\n\t/**\r\n\t * Gets the client's connected-to port\r\n\t *\r\n\t * @return The clients connected-to port\r\n\t */\r\n\tpublic int getClientPort();\r\n\r\n\t/**\r\n\t * Access the body of the request as an input stream\r\n\t * @return the body of the request as an input stream.\r\n\t */\r\n\tpublic InputStream getBody();\r\n\r\n\t/**\r\n\t * Return the value of a cookie sent to the server in this request.\r\n\t * @return the cookie value\r\n\t */\r\n\tpublic String getCookie(String name);\r\n\r\n\t/**\r\n\t * Return the query string, all the stuff in the request after the ?\r\n\t * @return the query string\r\n\t */\r\n\tpublic String getQueryString();\r\n\r\n\t/**\r\n\t * Gets the key cookie names\r\n\t *\r\n\t * @return The cookie names\r\n\t */\r\n\tpublic Set<String> getCookieNames();\r\n\r\n\t/**\r\n\t * Returns a list of multi-part sections from this request, or NULL\r\n\t * if either the data was not in multi-part form, or was parsed another\r\n\t * way. Keep in mind that multipart/form-data is places into UrlParameters,\r\n\t * along with urlencoded body data.\r\n\t * @return a list of multi-part sections from this request, or NULL\r\n\t */\r\n\tpublic List<MultiPartData> getMultiParts();\r\n\r\n\t/**\r\n\t * Returns whether the given encoding is acceptable, and to what\r\n\t * extent. If the value returned is 0, then the encoding given\r\n\t * is NOT acceptable. Any other value depends on the encoding.\r\n\t * @param type an encoding type, such as compress or gzip\r\n\t * @return the value of the coding that is acceptable\r\n\t */\r\n\tpublic double getSpecialEncodingAcceptability(String type);\r\n\r\n\t/**\r\n\t * Returns the FULL host as the requestor asked for it\r\n\t * This is like https://blahblah.com:8080\r\n\t * @return full host info\r\n\t */\r\n\tpublic String getFullHost();\r\n\r\n\t/**\r\n\t * If this is a ranged request, this will include a list of\r\n\t * all ranges requested as integer arrays. Each integer array\r\n\t * can be 1 or 2 dimensional, with the first dimension always\r\n\t * being \"from\" and the second (if available) the \"to\".\r\n\t * @return a list of integer arrays for ranges requested\r\n\t */\r\n\tpublic List<long[]> getRangeAZ();\r\n\r\n\t/**\r\n\t * Adds a new url parameter keypair, just as if it had been sent by the client.\r\n\t * Like the RequestObjects set, this can be used for inter-component\r\n\t * communication, and would be reflected if getFullUrl is called.\r\n\t * @param name the name of the parameter\r\n\t * @param value the value of the parameter\r\n\t */\r\n\tpublic void addFakeUrlParameter(String name, String value);\r\n\r\n\t/**\r\n\t * Removes a url parameter, just as if it had never been sent by the client.\r\n\t * Like the RequestObjects set, this can be used for inter-component\r\n\t * communication, and would be reflected if getFullUrl is called.\r\n\t * @param name the name of the parameter\r\n\t */\r\n\tpublic void removeUrlParameter(String name);\r\n\r\n\t/**\r\n\t * Gets a map of specific objects associated with this request.\r\n\t * These are definitely for inter-servlet-component\r\n\t * communication, but are not reflected in full urls,\r\n\t * and don't appear as url parameters.\r\n\t *\r\n\t * @return The objects map\r\n\t */\r\n\tpublic Map<String,Object> getRequestObjects();\r\n\r\n\t/**\r\n\t * Returns the http version of this request (1.0, 1.1, etc)\r\n\t * @return the http version of this reques\r\n\t */\r\n\tpublic float getHttpVer();\r\n}", "title": "" }, { "docid": "079b42747ec9372163970922dda40f0c", "score": "0.5137373", "text": "private HttpRequestBase getHttpRequest(HttpHost httpHost, ApiClientRequest request, AuthProvider authProvider)\n throws UnsupportedEncodingException {\n String httpAction = request.getHttpAction();\n String payload = null;\n String targetUrl = httpHost.toURI().toString() + request.getUri().toString();\n if (httpAction.equals(\"POST\")) {\n\n HttpPost httpPost = new HttpPost(request.getUri());\n if (signingAlgorithm != null && signingKeyId != null && signingKeyStr != null && encryptionKeyId != null &&\n encryptionKeyStr != null) {\n payload = EncryptionUtility.getInstance().sign(signingAlgorithm, signingKeyId, signingKeyStr,\n request.toJson(encryptionKeyId, encryptionKeyStr));\n } else {\n payload = request.toJson();\n }\n\n if (payload != null) {\n StringEntity sentity = new StringEntity(payload);\n\n sentity.setContentType(\"application/json\");\n\n httpPost.setEntity(sentity);\n }\n\n Map<String, String> headers = authProvider.generateAuthHeaders(payload, targetUrl, request.getHttpAction());\n for (Map.Entry<String, String> header : headers.entrySet()) {\n httpPost.addHeader(header.getKey(), header.getValue());\n }\n return httpPost;\n\n } else {\n HttpGet httpGet = new HttpGet(request.getUri());\n Map<String, String> headers = authProvider.generateAuthHeaders(payload, targetUrl, request.getHttpAction());\n for (Map.Entry<String, String> header : headers.entrySet()) {\n httpGet.addHeader(header.getKey(), header.getValue());\n }\n return httpGet;\n }\n }", "title": "" }, { "docid": "16a87604b347718fe955fbf3d35d6960", "score": "0.5137339", "text": "protected abstract SeShRequestInitial createInitialRequest();", "title": "" }, { "docid": "23d6d32803aaaaf7711c0b623a0e0b56", "score": "0.51366156", "text": "private Response sendRequest(String method, String url, Header h) {\n\t\tRequestSpecification given = given().contentType(\"application/json\");\n\t\tif (h != null)\n\t\t\tgiven.header(h);\n\t\tswitch (method) {\n\t\tcase \"GET\":\n\t\t\treturn given.when().get(url);\n\t\tcase \"POST\":\n\t\t\treturn given.when().post(url);\n\t\tcase \"PUT\":\n\t\t\treturn given.when().put(url);\n\t\tcase \"DELETE\":\n\t\t\treturn given.when().delete(url);\n\t\tdefault:\n\t\t\treturn given().when().get();\n\t\t}\n\t}", "title": "" }, { "docid": "7f7fbb64677f8037bdd23d83120872b4", "score": "0.5122038", "text": "protected abstract String makeRequest(Map<String, Object> context);", "title": "" }, { "docid": "81b19e87b41bac3e55179df81b67c3c3", "score": "0.51086354", "text": "public Builder<T, ID_T> setRequestPath(String requestPath) {\n this.requestPath = requestPath;\n return this;\n }", "title": "" }, { "docid": "4c9a7176d3b9f4b65996fbe759cf458b", "score": "0.51013017", "text": "String requestUrl(RequestT request);", "title": "" }, { "docid": "c6a38a806e0f984388501e39d202ffd8", "score": "0.5087845", "text": "public void call(int requestID, String host, int port, String objName, String methode, Object... args) {\r\n\t\tsynchronized (sockets) {\r\n\r\n\t\t\ttry {\r\n\t\t\t\tRequest re = new Request();\r\n\t\t\t\tre.requestID = requestID;\r\n\t\t\t\tre.obj = objName;\r\n\t\t\t\tre.methode = methode;\r\n\t\t\t\tre.args = args;\r\n\r\n\t\t\t\tbyte[] data = Decoder.request2Bytes(re);\r\n\t\t\t\tInetAddress inet;\r\n\r\n\t\t\t\tinet = InetAddress.getByName(host);\r\n\r\n\t\t\t\tSocketAddress sockAddr = new InetSocketAddress(inet, port);\r\n\r\n\t\t\t\tSocketListEntrie s = sockets.get(sockAddr);\r\n\r\n\t\t\t\tif (s == null || s.s.isClosed()) {\r\n\t\t\t\t\t//System.out.println(\"opening new Route\");\r\n\r\n\t\t\t\t\ts = new SocketListEntrie(new Socket(inet, port));\r\n\t\t\t\t\tsockets.put(sockAddr, s);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tsynchronized (s) {\r\n\t\t\t\t\ts.os.write(data);\r\n\t\t\t\t\ts.os.flush();\r\n\t\t\t\t}\r\n\t\t\t} catch (UnknownHostException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t} catch (IOException 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}\r\n\t}", "title": "" }, { "docid": "f097bc82a6c1435f127d6534c727e550", "score": "0.5077521", "text": "edu.usfca.cs.sift.Messages.RequestMsg getRequestMsg();", "title": "" }, { "docid": "95d18c860403c673d1e012fde9d0abe8", "score": "0.50748676", "text": "BirRequest createBIRrequest(com.eir.bir.request.model.BirRequest birInputRequest, Request request,String statusDescription);", "title": "" }, { "docid": "1be64f10a616f0ca8f52574642a503fd", "score": "0.50729907", "text": "@Override\n public String getMethod() {\n return PATH;\n }", "title": "" }, { "docid": "b9316dc6b534b9751f68e88db7ef9cc0", "score": "0.5065971", "text": "private StaticLangApiMessageFileView generateRequestFile(\n SchemaTransformationContext context, StaticLangApiMessageView messageView) {\n StaticLangApiMessageFileView.Builder apiFile = StaticLangApiMessageFileView.newBuilder();\n apiFile.templateFileName(REQUEST_TEMPLATE_FILENAME);\n addApiImports(context.getImportTypeTable());\n apiFile.schema(messageView);\n\n String outputPath = pathMapper.getOutputPath(null, context.getDocContext().getProductConfig());\n apiFile.outputPath(outputPath + File.separator + messageView.typeName() + \".java\");\n\n // must be done as the last step to catch all imports\n apiFile.fileHeader(fileHeaderTransformer.generateFileHeader(context));\n\n return apiFile.build();\n }", "title": "" }, { "docid": "07661b5c61bb34fc6906492204921afc", "score": "0.50545305", "text": "private static BasicHttpEntityEnclosingRequest createRealRequest(Request request) throws UnsupportedEncodingException {\n BasicHttpEntityEnclosingRequest realRequest = new BasicHttpEntityEnclosingRequest(request.getVerb(), request.getUrl());\n\n if (request.getContent() != null) {\n realRequest.setEntity(new StringEntity(request.getContent()));\n }\n\n Map<String, String> headers = request.getHeaders();\n\n for (String key : headers.keySet()) {\n realRequest.addHeader(key, headers.get(key));\n }\n\n return realRequest;\n }", "title": "" }, { "docid": "5dfcd26bc3a990f9431bb4f7461c4ac6", "score": "0.505281", "text": "public void setUri(String path, httpMethod method) {\n\t\tswitch (method) {\n\t\tcase GET:\n\t\t\tthis.request = new HttpGet(path);\n\t\t\treturn;\n\t\tcase PUT:\n\t\t\tthis.request = new HttpPut(path);\n\t\t\treturn;\n\t\tcase POST:\n\t\t\tthis.request = new HttpPost(path);\n\t\t\treturn;\n\t\tcase DELETE:\n\t\t\tthis.request = new HttpDelete(path);\n\t\t\treturn;\n\t\tdefault:\n\t\t\tlogger.error(\"Unknown method type \" + method);\n\t\t\treturn;\n\t\t}\n\t}", "title": "" }, { "docid": "f3c7443ddda9593631b01f3781434a18", "score": "0.50441", "text": "public HTTPRequest(String reqString)\n\t{\n\t\tint firstNewLine = reqString.indexOf(\"\\r\\n\");\n\t\tString firstLine = reqString.substring(0, firstNewLine);\n\t\tint firstSP = firstLine.indexOf(\" \");\n\t\tmethod = firstLine.substring(0, firstSP);\n\t\tint secondSP = firstLine.indexOf(\" \", firstSP + 1);\n\t\tif (secondSP == -1) {\n\t\t\trequestURI = firstLine.substring(firstSP + 1);\n\t\t\thttpVersion = null;\n\t\t} else {\n\t\t\trequestURI = firstLine.substring(firstSP + 1, secondSP);\n\t\t\thttpVersion = firstLine.substring(secondSP + 1);\n\t\t}\n\t\t\n\t\tint start = firstNewLine + \"\\r\\n\".length();\n\t\theaders = new HashMap<String, String>();\n\t\t\n\t\tif (start < reqString.length()) { // if any headers present\n\t\t\tint colonLocation = reqString.indexOf(\":\", start);\n\t\t\tint nextNewLine = reqString.indexOf(\"\\r\\n\", start);\n\t\t\tString currentKey = reqString.substring(start, colonLocation);\n\t\t\tString currentValue = reqString.substring(colonLocation + 1, nextNewLine);\n\t\t\t\n\t\t\tstart = nextNewLine + \"\\r\\n\".length();\n\t\t\twhile (start < reqString.length()) {\n\t\t\t\tnextNewLine = reqString.indexOf(\"\\r\\n\", start);\n\t\t\t\tif (reqString.charAt(start) == ' ' || reqString.charAt(start) == '\\t') {\n\t\t\t\t\tcurrentValue += reqString.substring(start, nextNewLine);\n\t\t\t\t} else {\n\t\t\t\t\theaders.put(currentKey, currentValue);\n\t\t\t\t\tcolonLocation = reqString.indexOf(\":\", start);\n\t\t\t\t\tnextNewLine = reqString.indexOf(\"\\r\\n\", start);\n\t\t\t\t\tcurrentKey = reqString.substring(start, colonLocation);\n\t\t\t\t\tcurrentValue += reqString.substring(colonLocation + 1, nextNewLine); \n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tstart = nextNewLine + \"\\r\\n\".length();\n\t\t\t}\n\t\t\t\n\t\t\theaders.put(currentKey, currentValue);\n\t\t}\n\t}", "title": "" }, { "docid": "2c323ebce0f4b37961e87897860a0bde", "score": "0.5032612", "text": "private static HttpURLConnection prepareURLCon(String requestMethod, String path) {\n\t\tHttpURLConnection urlc = null;\n\t\ttry {\n\t\t\tURL url = new URL(path);\n\t\t\turlc = (HttpURLConnection) url.openConnection();\n\t\t\turlc.setRequestMethod(requestMethod);\n\t\t} catch (ProtocolException e) {\n\t\t\tlogger.error(\"Method cannot be reset or POST method is invaild!!\"\n\t\t\t\t\t+ e);\n\t\t} catch (IOException e) {\n\t\t\tlogger.error(\"Connection cannot be estabilished!\" + e);\n\t\t}\n\t\turlc.setDoOutput(true);\n\t\turlc.setDoInput(true);\n\t\turlc.setUseCaches(false);\n\t\turlc.setAllowUserInteraction(false);\n\t\treturn urlc;\n\t}", "title": "" }, { "docid": "2a1bdd25a41dd8cf757be7cb88c9ff73", "score": "0.50234675", "text": "public Request(){}", "title": "" }, { "docid": "acb637d9aa71b8a8a131c2fd6fda1a5e", "score": "0.5016042", "text": "public static EmailAttachmentRequest newRequest() {\n return new EmailAttachmentRequest();\n }", "title": "" }, { "docid": "ab44971c10b30a96209ca12e2ddf0e58", "score": "0.50159585", "text": "String sendForBayouSmsHttp(String username, String password, String message, String phone, String requestAddress);", "title": "" }, { "docid": "2f913b3220c0eff00153e1dcbd429553", "score": "0.50084287", "text": "@Nonnull\n @Contract(\"_, _ -> new\")\n protected final RequestBuilder httpGet(@Nonnull String path, Object... args) {\n return RequestBuilder.get(String.format(path, args));\n }", "title": "" }, { "docid": "95778768b91fb078e04fbd28af38e366", "score": "0.50053936", "text": "public RequestMessage() {\n super();\n }", "title": "" }, { "docid": "134a9dccfc24df819351fcb4b8d8bc66", "score": "0.49914128", "text": "public RequestTemplate method(HttpMethod method) {\n checkNotNull(method, \"method\");\n this.method = method;\n return this;\n }", "title": "" }, { "docid": "4a92faadee3c75691001b9e6d55885b4", "score": "0.49866077", "text": "public interface HttpRequestFactory {\n\n\tHttpRequest createHttpRequest(URI uri, HttpMethod method) throws IOException;\n}", "title": "" }, { "docid": "ce4da8e5e248802dfa51eeb6c870456b", "score": "0.49558678", "text": "public String getRequestMessage(HttpServletRequest request);", "title": "" }, { "docid": "daacc9574856a413e0a6cec23938ffd1", "score": "0.49496934", "text": "public interface HttpRequest extends HttpMessage\n{\n\t/**\n\t * Returns the HTTP method of this request.\n\t */\n\tHttpMethod getHttpMethod();\n\n\t/**\n\t * Returns the request URI of this request.\n\t */\n\tString getRequestUri();\n}", "title": "" }, { "docid": "15847f6fab88ba72b8cec192c1489784", "score": "0.49454978", "text": "private static String doHttpMethodByParam(String connectionName, String requestURI, String method) {\r\n RestServiceAdapter restServiceAdapter = RestServiceAdapterFactory.newFactory().createRestServiceAdapter();\r\n restServiceAdapter.clearRequestProperties();\r\n restServiceAdapter.setConnectionName(connectionName);\r\n restServiceAdapter.setRequestMethod( method );\r\n restServiceAdapter.setRetryLimit(0);\r\n restServiceAdapter.setRequestURI(requestURI);\r\n\r\n String response = \"\";\r\n\r\n try {\r\n //TODO\r\n System.out.println(\"do\"+method+\" uri=>\" + requestURI);\r\n\r\n response = restServiceAdapter.send(\"\");\r\n\r\n } catch (Exception e) {\r\n Utility.ApplicationLogger.severe(e.getMessage());\r\n e.printStackTrace();\r\n\r\n int status = restServiceAdapter.getResponseStatus();\r\n // TODO:\r\n System.out.println(\"Status: \" +status);\r\n\r\n // pop up error message\r\n if(status != 200){\r\n AdfmfContainerUtilities.invokeContainerJavaScriptFunction(AdfmfJavaUtilities.getFeatureName(),\r\n \"navigator.notification.alert\",\r\n new Object[] {e.getMessage(), null, \"Server Error\", \"Ok\" });\r\n\r\n }\r\n }\r\n\r\n return response;\r\n }", "title": "" }, { "docid": "f2aa76eadf88cb59ca4d5a3f02355e26", "score": "0.49385923", "text": "public NetInfRequest(String host, String port, String pathPrefix,\n String hashAlg, String hash) {\n this(host, port, pathPrefix);\n\n Log.d(TAG, \"NetInfRequest()\");\n\n addQuery(\"hashAlg\", hashAlg);\n addQuery(\"hash\", hash);\n }", "title": "" }, { "docid": "02f869d8d2df9d1a2a6af315a510ecee", "score": "0.4935776", "text": "SendMessageAction.Builder send(Endpoint messageEndpoint);", "title": "" }, { "docid": "47e33074a62ea6ca7f86e9ffe224f94c", "score": "0.49325368", "text": "private String _makeCommand(String cmd) {\r\n \t\treturn new Uri.Builder()\r\n \t\t.scheme(\"http\")\r\n \t\t.authority(_getHostName())\r\n \t\t.path(\"index.cgi\")\r\n \t\t.appendPath(cmd)\r\n \t\t.build()\r\n \t\t.toString();\r\n \t}", "title": "" }, { "docid": "fd66dbb333cdd3bc71179ce2efe43445", "score": "0.4916279", "text": "public int sendRequest(Message aMesasge);", "title": "" }, { "docid": "95db2661a1af0390c653e4dff6644654", "score": "0.49121532", "text": "private Request(com.google.protobuf.GeneratedMessage.Builder builder) {\n super(builder);\n }", "title": "" }, { "docid": "0abb9d9770e329cda669f10beb02f9cd", "score": "0.49043941", "text": "public com.bytedance.retrofit2.client.Request.Builder method(java.lang.String r3, com.bytedance.retrofit2.mime.TypedOutput r4) {\n /*\n r2 = this;\n if (r3 == 0) goto L_0x0079\n int r0 = r3.length()\n if (r0 == 0) goto L_0x0071\n if (r4 == 0) goto L_0x0058\n boolean r0 = com.bytedance.retrofit2.s.a((java.lang.String) r3)\n if (r0 != 0) goto L_0x003b\n java.lang.String r0 = \"OPTIONS\"\n boolean r0 = r3.equals(r0)\n if (r0 != 0) goto L_0x003b\n java.lang.String r0 = \"DELETE\"\n boolean r0 = r3.equals(r0)\n if (r0 != 0) goto L_0x003b\n java.lang.String r0 = \"PROPFIND\"\n boolean r0 = r3.equals(r0)\n if (r0 != 0) goto L_0x003b\n java.lang.String r0 = \"MKCOL\"\n boolean r0 = r3.equals(r0)\n if (r0 != 0) goto L_0x003b\n java.lang.String r0 = \"LOCK\"\n boolean r0 = r3.equals(r0)\n if (r0 == 0) goto L_0x0039\n goto L_0x003b\n L_0x0039:\n r0 = 0\n goto L_0x003c\n L_0x003b:\n r0 = 1\n L_0x003c:\n if (r0 == 0) goto L_0x003f\n goto L_0x0058\n L_0x003f:\n java.lang.IllegalArgumentException r4 = new java.lang.IllegalArgumentException\n java.lang.StringBuilder r0 = new java.lang.StringBuilder\n java.lang.String r1 = \"method \"\n r0.<init>(r1)\n r0.append(r3)\n java.lang.String r3 = \" must not have a request body.\"\n r0.append(r3)\n java.lang.String r3 = r0.toString()\n r4.<init>(r3)\n throw r4\n L_0x0058:\n if (r4 != 0) goto L_0x006c\n boolean r0 = com.bytedance.retrofit2.s.a((java.lang.String) r3)\n if (r0 == 0) goto L_0x006c\n com.bytedance.retrofit2.mime.b r4 = new com.bytedance.retrofit2.mime.b\n r4.<init>()\n java.lang.String r0 = \"body\"\n java.lang.String r1 = \"null\"\n r4.a(r0, r1)\n L_0x006c:\n r2.method = r3\n r2.body = r4\n return r2\n L_0x0071:\n java.lang.IllegalArgumentException r3 = new java.lang.IllegalArgumentException\n java.lang.String r4 = \"method.length() == 0\"\n r3.<init>(r4)\n throw r3\n L_0x0079:\n java.lang.NullPointerException r3 = new java.lang.NullPointerException\n java.lang.String r4 = \"method == null\"\n r3.<init>(r4)\n throw r3\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.bytedance.retrofit2.client.Request.Builder.method(java.lang.String, com.bytedance.retrofit2.mime.TypedOutput):com.bytedance.retrofit2.client.Request$Builder\");\n }", "title": "" }, { "docid": "e94472760c811810af2f7b02c2a83f47", "score": "0.4895293", "text": "protected HttpPost newPostRequest(String path, HttpGetParam... urlParams) {\n return new HttpPost( buildRequestUrl( path, urlParams ) );\n }", "title": "" }, { "docid": "63cb587b7e9c0b547a393c107816186c", "score": "0.48890257", "text": "public HttpRequest(String host, String requestedFile) {\n this(host, 80, requestedFile);\n }", "title": "" }, { "docid": "a78f216456e9d53c9021d7d6681f437d", "score": "0.48863286", "text": "EncodedPayload create(SendRequest request);", "title": "" }, { "docid": "0ad5074a7e5768c2836578506f2c6291", "score": "0.4879987", "text": "public MessageCommObjForClient sendMessage(MessageCommObjForServer requestMessage);", "title": "" }, { "docid": "65f96faafb0c921ddc1cf4d740d1c472", "score": "0.48754036", "text": "public FTPRequest(String request) {\n\t\tfinal String[] requestTokens = request.split(\" \");\n\t\t_command = requestTokens[0];\n\t\t_argument = (requestTokens.length > 1) ? requestTokens[1] : null;\n\t}", "title": "" }, { "docid": "30458c2846e1f6b6d7a2b0c4480e2e73", "score": "0.4872985", "text": "public final void httpRequest(\n final Hypermessage.Request request,\n final Watcher watcher\n ) {\n if( request.schemeHostPort.scheme.secure ) {\n checkState(\n sslEngineFactory != null,\n \"Can't send \" + request + \" without an \" + SslEngineFactory.class.getSimpleName() + \".\"\n ) ;\n }\n checkStarted() ;\n\n connect(\n request.schemeHostPort.hostPort.asInetSocketAddressQuiet(),\n channelInitializer( request.schemeHostPort.scheme.secure ? sslEngineFactory : null )\n )\n .addListener( ( ChannelFutureListener ) future -> {\n @SuppressWarnings( \"ThrowableResultOfMethodCallIgnored\" )\n final Throwable cause = future.cause() ;\n if( cause == null ) {\n final Channel channel = future.channel() ;\n final ScheduledFuture< ? > timeoutFuture ;\n try {\n timeoutFuture = channel.eventLoop().schedule(\n () -> timeout( channel, watcher, request ),\n timeoutMs,\n TimeUnit.MILLISECONDS\n ) ;\n extractHandler( channel ).configure( request, watcher, timeoutFuture ) ;\n request.sendTo( channel ) ;\n LOGGER.debug( \"Sent \" + request + \".\" ) ;\n } catch( final RejectedExecutionException e ) {\n watcher.cancelled( request ) ;\n }\n } else {\n LOGGER.info( \"Failed to connect to \" + request.uri + \".\" ) ;\n watcher.failed( request, cause ) ;\n }\n } )\n ;\n }", "title": "" }, { "docid": "9f19eca988708c4c9ffeaa5c2b94f67b", "score": "0.4872059", "text": "public interface Request extends Message {\r\n\r\n /**\r\n * @return true if it is network request\r\n */\r\n boolean isNetworkRequest();\r\n\r\n /**\r\n * Creates a response for this request with the specifies result code.\r\n * Header and system avps from request has copy to answer.\r\n * @param resultCode result code of answer\r\n * @return answer object instance\r\n */\r\n Answer createAnswer(long resultCode);\r\n\r\n /**\r\n * Creates a response for this request with the specifies experement result code.\r\n * Header and system avps from request has copy to answer.\r\n * @param vendorId vendorId\r\n * @param experementalResultCode experement result code of answer\r\n * @return answer object instance\r\n */\r\n Answer createAnswer(long vendorId, long experementalResultCode);\r\n}", "title": "" } ]
855a86af054200391258be9df3d0825a
Sets the text on rank buttons for player 3
[ { "docid": "7afe0eac193bd4a07f9f1bda0ee66450", "score": "0.57045585", "text": "private void getCastlePlayer_3() {\r\n\r\n\t\tplayers = XmlOperation.ReadXML();\r\n\t\tPlayer player3 = players.get(2);\r\n\r\n\t\tif (player3.getRank1_castle() == 0)\r\n\t\t\trank1_3.setEnabled(false);\r\n\t\telse\r\n\t\t\trank1_3.setEnabled(true);\r\n\t\tif (player3.getRank2_castle() == 0)\r\n\t\t\trank2_3.setEnabled(false);\r\n\t\telse\r\n\t\t\trank2_3.setEnabled(true);\r\n\t\tif (player3.getRank3_castle() == 0)\r\n\t\t\trank3_3.setEnabled(false);\r\n\t\telse\r\n\t\t\trank3_3.setEnabled(true);\r\n\t\tif (player3.getRank4_castle() == 0)\r\n\t\t\trank4_3.setEnabled(false);\r\n\t\telse\r\n\t\t\trank4_3.setEnabled(true);\r\n\r\n\t\trank1_3.setText(\" Rank 1 : \" + player3.getRank1_castle());\r\n\t\trank2_3.setText(\" Rank 2 : \" + player3.getRank2_castle());\r\n\t\trank3_3.setText(\" Rank 3 : \" + player3.getRank3_castle());\r\n\t\trank4_3.setText(\" Rank 4 : \" + player3.getRank4_castle());\r\n\t\tstrategy3.setText(player3.getStrategy());\r\n\r\n\t}", "title": "" } ]
[ { "docid": "30c9c8827478a0e6c3e9e1480889cfc3", "score": "0.69602174", "text": "public void setWinText(String text) {\n\t\tturn.setText(\"Win : \");\n\t\tplayerButton.setFont(new Font(\"SansSerif\", Font.BOLD, 25));\n\t\tplayerButton.setForeground(Color.blue);\n\t\tplayerButton.setText(text);\n\t}", "title": "" }, { "docid": "8a3efddcbe1e7043fcdc61c292df2bd8", "score": "0.67606866", "text": "public void changePlayerLabel(int playerNum, String role, String score) {\n playerLabel.setText(\"Player \" + (playerNum + 1) + \"'s Hand (\" + role + \", score: \" + score + \")\");\n }", "title": "" }, { "docid": "6fdf2efc2d4fb20cf76f3fa729595ea1", "score": "0.65818447", "text": "private void clickPlayer3BTN(View view) {\n p3_counter++;\n scores.set(2, p3_counter);\n p3_counter_BTN.setText(String.format(String.valueOf(p3_counter)));\n }", "title": "" }, { "docid": "c6e06f3d3f7bc0c053ae7a5e0c8fa827", "score": "0.6423632", "text": "public void clickPlayer1BTN(View v){\n p1_counter++;\n scores.set(0, p1_counter);\n p1_counter_BTN.setText(String.format(String.valueOf(p1_counter)));\n }", "title": "" }, { "docid": "22305a1809a7d599f55f3205ef6c74e4", "score": "0.6353436", "text": "private void HandleRankCmd(Player player) { \r\n int fame = this.databaseHandler.loadPlayerFame(player.getName());\r\n int racha = (HandlePlayerFame.racha.containsKey(player.getName())) ? HandlePlayerFame.racha.get(player.getName()) : 0;\r\n String rank = this.ranks.GetRank(fame); \r\n int rankup = this.ranks.FameToRankUp();\r\n String nextRank = this.ranks.nextRankTitle();\r\n String tag = this.databaseHandler.getTag();\r\n \r\n player.sendMessage(\"\");\r\n player.sendMessage(PLUGIN);\r\n player.sendMessage(\" - \" + ChatColor.AQUA + \"Titulo: \" + ChatColor.RESET + rank);\r\n player.sendMessage(\" - \" + ChatColor.AQUA + tag + \": \" + ChatColor.RESET + fame);\r\n player.sendMessage(\" - \" + ChatColor.AQUA + \"Racha: \" + ChatColor.RESET + racha);\r\n \r\n if(rankup < 999999) {\r\n player.sendMessage(\" - \" + Lang.RANK_INFO.getText().replace(\"%rankup%\", String.valueOf(rankup))\r\n .replace(\"%tag%\", tag).replace(\"%nextRank%\",nextRank));\r\n }\r\n }", "title": "" }, { "docid": "9ec943a706acbced4727081841037ac8", "score": "0.6352533", "text": "private void setScore(){\n txtScoreOne.setText(String.valueOf(mPlayerModel.getPlayer(ONE).getScore()));\n txtScoreTwo.setText(String.valueOf(mPlayerModel.getPlayer(TWO).getScore()));\n txtScoreThree.setText(String.valueOf(mPlayerModel.getPlayer(THREE).getScore()));\n txtScoreFour.setText(String.valueOf(mPlayerModel.getPlayer(FOUR).getScore()));\n }", "title": "" }, { "docid": "ec87cde13027dadda37345ed786eb5c9", "score": "0.6343414", "text": "private void updateButtonText() \n\t{\n\t\tfor(GridButton button : buttons)\n\t\t{\n\t\t\tint i = button.getX(), j = button.getY();\n\t\t\tbutton.updateButton(mines.get(i, j));\n\t\t}\n\t}", "title": "" }, { "docid": "7e8af71e43abec686f3559ab2cfabf41", "score": "0.6343167", "text": "void setWinText(){\n TextView winTextView = (TextView) findViewById(R.id.winHandText);\n winTextView.setText( \"You won $\" + doubleUpPresenter.getWin() + \"!\" );\n TextView doubleUpText = (TextView)findViewById( R.id.doubleUpQuestionText );\n doubleUpText.setText( \"Double up to $\" + Integer.toString( doubleUpPresenter.getWin() * 2 ) + \"?\" );\n }", "title": "" }, { "docid": "ec7bbff0ff0786143b2f374799e198c8", "score": "0.62950605", "text": "private void setLabelYourChoice(String yourChoice) {\n TextView textView = findViewById(R.id.label_your_choice);\n textView.setText(yourChoice);\n this.yourChoice = yourChoice;\n Button button_play = findViewById(R.id.button_play);\n button_play.setVisibility(View.VISIBLE); //todo maybe check if it visible\n }", "title": "" }, { "docid": "59a4fd1b6f5632055dc91957ad21f86f", "score": "0.6290009", "text": "private void clickPlayer5BTN(View view) {\n p5_counter++;\n scores.set(4, p5_counter);\n p5_counter_BTN.setText(String.format(String.valueOf(p5_counter)));\n }", "title": "" }, { "docid": "a16144bef53dd11ee24c0b40c6b4ba1a", "score": "0.6253683", "text": "public void clickPlayer2BTN(View v) {\n p2_counter++;\n scores.set(1, p2_counter);\n p2_counter_BTN.setText(String.format(String.valueOf(p2_counter)));\n /*p2_counter_BTN.setText(Integer.toString(p2_counter));*/\n }", "title": "" }, { "docid": "04357d6de46cbc247710a140bb07c0ea", "score": "0.62457466", "text": "private void setButtonText() {\n\n if (isRecordingAudio) {\n recordAudioRecord.setText(R.string.record_button_stop);\n }\n else {\n recordAudioRecord.setText(R.string.record_audiorecord);\n }\n\n if (isPlayingAudio) {\n playAudioTrack.setText(R.string.play_button_stop);\n }\n else {\n playAudioTrack.setText(R.string.play_audiotrack);\n }\n }", "title": "" }, { "docid": "c0239c55339ed321117036c0c971764c", "score": "0.6231514", "text": "@Override\n\tprotected void setButtonText() {\n\t\tbutton.setText(R.string.conmitanalyze);\n\t}", "title": "" }, { "docid": "b12e421e7ae9b1928b239714fd507b17", "score": "0.61852056", "text": "private void setTextOnScoreButtons(int epoch) {\r\n\r\n\t\tepochlist = XmlOperation.ReadEpochXML();\r\n\t\tSystem.out.println(epoch);\r\n\t\tif (epoch == 1) {\r\n\r\n\t\t\tscore43_1[0][0].setText(\"\" + epochlist.get(0).getPlayer1_score());\r\n\t\t\tscore43_1[1][0].setText(\"\" + epochlist.get(0).getPlayer2_score());\r\n\t\t\tscore43_1[2][0].setText(\"\" + epochlist.get(0).getPlayer3_score());\r\n\t\t\tscore43_1[3][0].setText(\"\" + epochlist.get(0).getPlayer4_score());\r\n\t\t}\r\n\t\tif (epoch == 2) {\r\n\t\t\t\r\n\t\t\tscore43_1[0][1].setText(\"\" + epochlist.get(1).getPlayer1_score());\r\n\t\t\tscore43_1[1][1].setText(\"\" + epochlist.get(1).getPlayer2_score());\r\n\t\t\tscore43_1[2][1].setText(\"\" + epochlist.get(1).getPlayer3_score());\r\n\t\t\tscore43_1[3][1].setText(\"\" + epochlist.get(1).getPlayer4_score());\r\n\t\t}\r\n\t\tif (epoch == 3) {\r\n\t\t\tscore43_1[0][2].setText(\"\" + epochlist.get(2).getPlayer1_score());\r\n\t\t\tscore43_1[1][2].setText(\"\" + epochlist.get(2).getPlayer2_score());\r\n\t\t\tscore43_1[2][2].setText(\"\" + epochlist.get(2).getPlayer3_score());\r\n\t\t\tscore43_1[3][2].setText(\"\" + epochlist.get(2).getPlayer4_score());\r\n\t\t}\r\n\t\tif (epoch == 4) {\r\n\r\n\t\t\tscore43_2[0][0].setText(\"\" + epochlist.get(3).getPlayer1_score());\r\n\t\t\tscore43_2[1][0].setText(\"\" + epochlist.get(3).getPlayer2_score());\r\n\t\t\tscore43_2[2][0].setText(\"\" + epochlist.get(3).getPlayer3_score());\r\n\t\t\tscore43_2[3][0].setText(\"\" + epochlist.get(3).getPlayer4_score());\r\n\t\t}\r\n\t\tif (epoch == 5) {\r\n\t\t\tscore43_2[0][1].setText(\"\" + epochlist.get(4).getPlayer1_score());\r\n\t\t\tscore43_2[1][1].setText(\"\" + epochlist.get(4).getPlayer2_score());\r\n\t\t\tscore43_2[2][1].setText(\"\" + epochlist.get(4).getPlayer3_score());\r\n\t\t\tscore43_2[3][1].setText(\"\" + epochlist.get(4).getPlayer4_score());\r\n\t\t}\r\n\t\tif (epoch == 6) {\r\n\t\t\tscore43_2[0][2].setText(\"\" + epochlist.get(5).getPlayer1_score());\r\n\t\t\tscore43_2[1][2].setText(\"\" + epochlist.get(5).getPlayer2_score());\r\n\t\t\tscore43_2[2][2].setText(\"\" + epochlist.get(5).getPlayer3_score());\r\n\t\t\tscore43_2[3][2].setText(\"\" + epochlist.get(5).getPlayer4_score());\r\n\t\t}\r\n\r\n\t}", "title": "" }, { "docid": "cdf3ee7674b968b7f9cb51068144f4b5", "score": "0.61831105", "text": "private void clickPlayer4BTN(View view) {\n p4_counter++;\n scores.set(3, p4_counter);\n p4_counter_BTN.setText(String.format(String.valueOf(p4_counter)));\n }", "title": "" }, { "docid": "ef0837bf235447f9723b8777e8aacb23", "score": "0.6161868", "text": "void updateScoreText(){\n\t\tscoreText.setText(\"\" + score);\n\t}", "title": "" }, { "docid": "deca558de22ddad0c0c4dba9d9d3c1cb", "score": "0.60919726", "text": "public void setRanking(int rank) {\n this.ranking = rank;\n }", "title": "" }, { "docid": "405ee6aba56d2011338a20e9b3463591", "score": "0.60877854", "text": "private void setScoreText() {\n TextView scoreView = (TextView) findViewById(R.id.score);\n String points = Integer.toString(score.getPoints());\n scoreView.setText(points);\n }", "title": "" }, { "docid": "5978931af820f02f095ebda465dad773", "score": "0.60832053", "text": "public void setLabel2(){\n Player p = controller.getPlayerTwo();\n if(p instanceof Human){\n label2.setText(\"Player\\n\" +\n \"Score: \" + p.getPoints());\n }\n else{\n label2.setText(\"CPU\\n\" +\n \"Score: \" + p.getPoints());\n }\n }", "title": "" }, { "docid": "0e9fb2c794f1ba60eec5e4b9b84f148b", "score": "0.60563314", "text": "public void setText() {\n StringBuilder stringBuilder = new StringBuilder();\n\n //if game is not finished, display current player and move space\n if (!gameEnd) {\n //start with current player\n if (currentPlayer == 1) stringBuilder.append(\"O: \");\n else stringBuilder.append(\"X: \");\n\n //append possible move space\n if (currentGame == 0) stringBuilder.append(\"Move anywhere.\");\n else {\n stringBuilder.append(\"Move within game \");\n stringBuilder.append(currentGame);\n stringBuilder.append(\".\");\n }\n } else {\n if (currentPlayer == 1) stringBuilder.append(\"X: \");\n else if (currentPlayer == 2) stringBuilder.append(\"O: \");\n else stringBuilder.append(\"No one \");\n\n stringBuilder.append(\"has won the game!\");\n }\n\n winText.setText(stringBuilder.toString());\n double density;\n density = getResources().getDisplayMetrics().density;\n if (density < 2) {\n Toast toast = Toast.makeText(MainActivity.this, stringBuilder, Toast.LENGTH_SHORT);\n toast.show();\n }\n }", "title": "" }, { "docid": "f63ba1f2c53955580dcfc420c1212a2e", "score": "0.6054313", "text": "public void displayNumbersOfPlayersTeam1(int players) {\n TextView playerTeam1 = findViewById(R.id.playerTeam1);\n playerTeam1.setText(String.valueOf(players));\n }", "title": "" }, { "docid": "392c20979d640144448d7dedb345cc0a", "score": "0.60503906", "text": "private void updateScore() {\n\n textViewPlayer1.setText(\"Current Level: \" + Points);\n }", "title": "" }, { "docid": "7fce308c09fa0c441676ac6a6fd503c0", "score": "0.60470265", "text": "private void setText(String t){\n tvPreset.setText(getText(R.string.current_preset) + \" \" + t);\n }", "title": "" }, { "docid": "285b1147ff8d1ada1ec44e62baa7e8f5", "score": "0.6045209", "text": "private void btn3ActionPerformed(java.awt.event.ActionEvent evt) {\n scoreLabel.setText(\"3\");\n }", "title": "" }, { "docid": "1d2af44576e758677c0209e4835071c7", "score": "0.60302883", "text": "public void setWinnerLabel(String result) {\n\t\tlblWinTitle.setText(result);\n\t}", "title": "" }, { "docid": "955b21e9c9af2786fa87226d1ca6f360", "score": "0.602713", "text": "private void setNames(){\n txtNameOne.setText(mPlayerModel.getPlayer(ONE).getName());\n txtNameTwo.setText(mPlayerModel.getPlayer(TWO).getName());\n txtNameThree.setText(mPlayerModel.getPlayer(THREE).getName());\n txtNameFour.setText(mPlayerModel.getPlayer(FOUR).getName());\n }", "title": "" }, { "docid": "6c5306953ca6020f36939024da781dee", "score": "0.6021315", "text": "public void onClick(View v) {\n \t if (PlayerCurr.equals(\"J1\")) {\n \t\t tableStrings[7]=\"X\"; \t\t \n \t\t PlayerCurr=\"J2\";\n \t\t final TextView PlayerC = (TextView) findViewById(R.id.whoPlay);\n \t\t PlayerC.setText(\"Joueur 2 à vous de jouer \");\n \t }else {\n \t\t tableStrings[7]=\"O\"; \t\t \n \t\t PlayerCurr=\"J1\";\n \t\t final TextView PlayerC = (TextView) findViewById(R.id.whoPlay);\n \t\t PlayerC.setText(\"Joueur 1 à vous de jouer \");\n \t }\n \tRemplirListe();\n }", "title": "" }, { "docid": "01469ee89c3109dbfea3354804609c78", "score": "0.60111725", "text": "public void onClick(View v) {\n \t if (PlayerCurr.equals(\"J1\")) {\n \t\t tableStrings[5]=\"X\"; \t\t \n \t\t PlayerCurr=\"J2\";\n \t\t final TextView PlayerC = (TextView) findViewById(R.id.whoPlay);\n \t\t PlayerC.setText(\"Joueur 2 à vous de jouer \");\n \t }else {\n \t\t tableStrings[5]=\"O\"; \t\t \n \t\t PlayerCurr=\"J1\";\n \t\t final TextView PlayerC = (TextView) findViewById(R.id.whoPlay);\n \t\t PlayerC.setText(\"Joueur 1 à vous de jouer \");\n \t }\n \tRemplirListe();\n }", "title": "" }, { "docid": "e225a5e444d760921ac6b9992b3d510d", "score": "0.5998934", "text": "public void onClick(View v) {\n \t if (PlayerCurr.equals(\"J1\")) {\n \t\t tableStrings[6]=\"X\"; \t\t \n \t\t PlayerCurr=\"J2\";\n \t\t final TextView PlayerC = (TextView) findViewById(R.id.whoPlay);\n \t\t PlayerC.setText(\"Joueur 2 à vous de jouer \");\n \t }else {\n \t\t tableStrings[6]=\"O\"; \t\t \n \t\t PlayerCurr=\"J1\";\n \t\t final TextView PlayerC = (TextView) findViewById(R.id.whoPlay);\n \t\t PlayerC.setText(\"Joueur 1 à vous de jouer \");\n \t }\n \tRemplirListe();\n }", "title": "" }, { "docid": "99103c6018ae1cabea16fc0b253c21d4", "score": "0.59839183", "text": "private void updatePointsText() {\n textViewPlayer.setText(\"YOU: \" + playerPoints);\n textViewBot.setText(\"BOT: \" + botPoints);\n }", "title": "" }, { "docid": "f5ef6cdf5659c901da251476dddb7449", "score": "0.5981533", "text": "public void onClick(View v) {\n \t if (PlayerCurr.equals(\"J1\")) {\n \t\t tableStrings[8]=\"X\"; \t\t \n \t\t PlayerCurr=\"J2\";\n \t\t final TextView PlayerC = (TextView) findViewById(R.id.whoPlay);\n \t\t PlayerC.setText(\"Joueur 2 à vous de jouer \");\n \t }else {\n \t\t tableStrings[8]=\"O\"; \t\t \n \t\t PlayerCurr=\"J1\";\n \t\t final TextView PlayerC = (TextView) findViewById(R.id.whoPlay);\n \t\t PlayerC.setText(\"Joueur 1 à vous de jouer \");\n \t }\n \tRemplirListe();\n }", "title": "" }, { "docid": "13f07e44e913e6716d1f0a6a71c19791", "score": "0.59757286", "text": "public void onClick(View v) {\n \t if (PlayerCurr.equals(\"J1\")) {\n \t\t tableStrings[4]=\"X\"; \t\t \n \t\t PlayerCurr=\"J2\";\n \t\t final TextView PlayerC = (TextView) findViewById(R.id.whoPlay);\n \t\t PlayerC.setText(\"Joueur 2 à vous de jouer \");\n \t }else {\n \t\t tableStrings[4]=\"O\"; \t\t \n \t\t PlayerCurr=\"J1\";\n \t\t final TextView PlayerC = (TextView) findViewById(R.id.whoPlay);\n \t\t PlayerC.setText(\"Joueur 1 à vous de jouer \");\n \t }\n \tRemplirListe();\n }", "title": "" }, { "docid": "ae71b4e47444abe81a54d8fa7315c181", "score": "0.5967669", "text": "private void translateText() {\n\n\t\tthis.randomPlay1.setText(Internationalization.translate(\"play\"));\n\t\tthis.randomPlay2.setText(Internationalization.translate(\"play\"));\n\t\tthis.randomPlay3.setText(Internationalization.translate(\"play\"));\n\t\tthis.randomPlay4.setText(Internationalization.translate(\"play\"));\n\t\tthis.randomPlay5.setText(Internationalization.translate(\"play\"));\n\n\t\tthis.randomAdd1.setText(Internationalization.translate(\"add\"));\n\t\tthis.randomAdd2.setText(Internationalization.translate(\"add\"));\n\t\tthis.randomAdd3.setText(Internationalization.translate(\"add\"));\n\t\tthis.randomAdd4.setText(Internationalization.translate(\"add\"));\n\t\tthis.randomAdd5.setText(Internationalization.translate(\"add\"));\n\n\t\tthis.buttonRefresh.setText(Internationalization.translate(\"Refresh\"));\n\t\tthis.buttonAddAll.setText(Internationalization.translate(\"Add all to Playlist\"));\n\n\t}", "title": "" }, { "docid": "c8ee1ccff8f4dec1d974419bae30918b", "score": "0.596355", "text": "public static void displayRankingMenu() {\r\n\t\tSystem.out.println(\"\\n=====================RANKING QUERY MENU=====================\");\r\n\t\tSystem.out.println(\"1. Default Ranking.\");\r\n\t\tSystem.out.println(\"2. TfIdf Ranking.\");\r\n\t\tSystem.out.println(\"3. Okapi BM25 Ranking.\");\r\n\t\tSystem.out.println(\"4. Wacky Ranking.\");\r\n\t\tSystem.out.println(\"5. Exit from Ranked Query.\");\r\n\t\tSystem.out.println(\"======================================================\");\r\n\t}", "title": "" }, { "docid": "d9ba9dc471045a30aaad4c2c949859fb", "score": "0.5962137", "text": "void setPickCardText(){\n TextView winTextView = (TextView) findViewById(R.id.winHandText);\n winTextView.setText( \"Pick a card!!\" );\n TextView doubleUpText = (TextView)findViewById( R.id.doubleUpQuestionText );\n doubleUpText.setText( \"\" );\n }", "title": "" }, { "docid": "233d295c4a4b6ff62f4bce10e1d24a55", "score": "0.5957519", "text": "@Override\n public void setCharacterRank(String rank) {\n\n if (rank != null)\n for (int i = 0; i < AesSedai.aesSedaiRank.length; i++)\n if (rank.equals(AesSedai.aesSedaiRank[i][0])) {\n this.characterRank = rank;\n return; // success\n }\n\n this.characterRank = \"unknown\"; // not found\n }", "title": "" }, { "docid": "58b418226b4cb6ce5bbe96bab041ee89", "score": "0.5946448", "text": "@Override\n public void onClick(View v) {\n if (!player_Selected.isEmpty()) {\n tvDisplay.setText(tvDisplay.getText() + \"\\n\"+ player_Selected + \" has got a defensive rebound \");\n\n for (DB_Entity_Stats player : playersStats) {\n if (player.getName().equals(player_Selected) ) {\n int DefRebound = player.getDefrebound();\n DefRebound ++;\n player.setDefrebound(DefRebound);\n\n }\n }\n\n }\n }", "title": "" }, { "docid": "1d0403653778eff5f2583dbc6fd70903", "score": "0.594621", "text": "private void displayForTimon(int score) {\n TextView scoreView = (TextView) findViewById(R.id.timon_score);\n scoreView.setText(String.valueOf(score));\n }", "title": "" }, { "docid": "77b1afc2300a0d74fbf3f0c3b85c33d5", "score": "0.5934332", "text": "@Override\n public void onClick(View v) {\n if (!player_Selected.isEmpty()) {\n tvDisplay.setText(tvDisplay.getText() + \"\\n\"+ player_Selected + \" has missed 3 points \");\n\n for (DB_Entity_Stats player : playersStats) {\n if (player.getName().equals(player_Selected) ) {\n int FgAttempted = player.getFgattempted();\n int ThreePtAttempted = player.getThreeptattempted();\n ThreePtAttempted ++;\n FgAttempted ++;\n player.setFgattempted(FgAttempted);\n player.setThreeptattempted(ThreePtAttempted);\n\n }\n }\n\n }\n }", "title": "" }, { "docid": "2caa3e5ba46e86ec7f44471195790a04", "score": "0.5928026", "text": "public void setCurrentPlayer(String text)\n {\n currentPlayer = text;\n }", "title": "" }, { "docid": "85699d9557c69e3cdae4072cf77a09d1", "score": "0.5923776", "text": "public void setButtonText(String text) {\n\t getButton().setText(text);\n\t}", "title": "" }, { "docid": "cc09712f55cc2accdc9d07fb568e3c0e", "score": "0.59075487", "text": "@Override\n public void onClick(View v) {\n if (!player_Selected.isEmpty()) {\n tvDisplay.setText(tvDisplay.getText() + \"\\n\"+ player_Selected + \" has scored 3 points \");\n\n for (DB_Entity_Stats player : playersStats) {\n if (player.getName().equals(player_Selected)) {\n int Fgmade = player.getFgmade();\n int ThreePtMade = player.getThreeptmade();\n ThreePtMade++;\n Fgmade++;\n player.setFgmade(Fgmade);\n player.setThreeptmade(ThreePtMade);\n\n }\n }\n //player_Selected = \"\";\n }\n }", "title": "" }, { "docid": "18aead21c9411d9291720da483451845", "score": "0.5904391", "text": "public void setRank(int value) {\n this.rank = value;\n }", "title": "" }, { "docid": "18aead21c9411d9291720da483451845", "score": "0.5904391", "text": "public void setRank(int value) {\n this.rank = value;\n }", "title": "" }, { "docid": "e9b728a664cda5ff14581961a3bb6200", "score": "0.5880486", "text": "@SuppressLint(\"all\")\n private void display9R() {\n TextView textView9R = (TextView) findViewById(R.id.remark9);\n boolean remark9a = (score9 == 10);\n boolean remark9b = (score9 == 5);\n int i;\n if (remark9a) {\n i = R.string.correct_answer;\n textView9R.setText(i);\n textView9R.setTextColor(Color.rgb(0,250,0));\n }else if (remark9b) {\n i = R.string.partial_answer;\n textView9R.setText(i);\n textView9R.setTextColor(Color.rgb(0,0,250));\n }else {\n i = R.string.wrong_answer;\n textView9R.setText(i);\n textView9R.setTextColor(Color.rgb(250,0,0));\n }\n }", "title": "" }, { "docid": "8979cd983b6fec88f94dcb11d650e95b", "score": "0.5879083", "text": "public void updateScores()\n {\n int[] scores= DefaultPanel.getManager().getScores();\n for(int i=0; i<numTeams; i++)\n {\n pointLabels[i].setText(\"Team \" + (i+1) + \": \" + scores[i]);\n }\n if(!currQues.isFinalJeopardy())\n {\n \tmoney.setText(\"$\"+currQues.getCurrentValue());\n }\n }", "title": "" }, { "docid": "125522fe846eb470a8da3e9145776dab", "score": "0.587799", "text": "private void setLevelText() {\n TextView levelView = (TextView) findViewById(R.id.level);\n String currentLevel = Integer.toString(level.getLevel());\n levelView.setText(currentLevel);\n }", "title": "" }, { "docid": "c72d5d3b772e53b3fb9748ddd87b9ccb", "score": "0.587667", "text": "public void setRank(Integer rank);", "title": "" }, { "docid": "ec0c8c45aecdfabfa4b6dc27740b2ec4", "score": "0.58761394", "text": "public void setLabel1(){\n Player p = controller.getPlayerOne();\n if(p instanceof Ai){\n label1.setText(\"CPU\\n\" +\n \"Score: \" + p.getPoints());\n }\n else{\n label1.setText(\"Player\\n\" +\n \"Score: \" + p.getPoints());\n }\n }", "title": "" }, { "docid": "c340ab9c2a5738c2f08a1e3068f4c761", "score": "0.58738637", "text": "public void setRank(int rank)\n\t{\n\t\tthis.rank = rank;\n\t}", "title": "" }, { "docid": "5c0d2d69fc0ba4c384b8ce54feafe7b1", "score": "0.58728254", "text": "private void setSlideOutButtonText(boolean whichTeam){\n\t\tString teamName = null;\n\t\tif(whichTeam){\n\t\t\tteamName = _gti.getHomeTeam();\n\t\t}\n\t\telse{\n\t\t\tteamName = _gti.getAwayTeam();\n\t\t}\n\t\t_p1Button.setText(_gti.getPlayer(teamName, 0).getpname());\n\t\t_p2Button.setText(_gti.getPlayer(teamName, 1).getpname());\n\t\t_p3Button.setText(_gti.getPlayer(teamName, 2).getpname());\n\t\t_p4Button.setText(_gti.getPlayer(teamName, 3).getpname());\n\t\t_p5Button.setText(_gti.getPlayer(teamName, 4).getpname());\n\t}", "title": "" }, { "docid": "473a1c7d082dd1de514de7c3523f87a3", "score": "0.5870511", "text": "public void onClick(View v) {\n \t if (PlayerCurr.equals(\"J1\")) {\n \t\t tableStrings[3]=\"X\"; \n \t\t GagneOuPas(\"J1\");\n \t\t PlayerCurr=\"J2\";\n \t\t final TextView PlayerC = (TextView) findViewById(R.id.whoPlay);\n \t\t PlayerC.setText(\"Joueur 2 à vous de jouer \");\n \t }else {\n \t\t tableStrings[3]=\"O\"; \t\t \n \t\t PlayerCurr=\"J1\";\n \t\t final TextView PlayerC = (TextView) findViewById(R.id.whoPlay);\n \t\t PlayerC.setText(\"Joueur 1 à vous de jouer \");\n \t }\n \tRemplirListe();\n }", "title": "" }, { "docid": "79fd763ea8695667998ec38d171efe57", "score": "0.58702147", "text": "void howManyPlayers() {\n // Ask the user how many players there are\n displayText(\"How many players today?\");\n }", "title": "" }, { "docid": "abf476bf04000c6b85adbff7cc6103a8", "score": "0.58671516", "text": "private void updateScore(int newSelfScore, int newOpponentPlayerScore) {\n scoreText.setText(getString(R.string.game_score, newSelfScore, newOpponentPlayerScore));\n scoreText.setContentDescription(\n getString(R.string.game_score_talk_back, newSelfScore, newOpponentPlayerScore));\n }", "title": "" }, { "docid": "e155e856a9716d1ee6415f3c9364b49d", "score": "0.58656174", "text": "public void setRank( Integer rank ) {\n this.rank = rank;\n }", "title": "" }, { "docid": "dc380ad5ee442e3a88e03327ea884bb6", "score": "0.5854357", "text": "public void displayRanking() {\n\t\t// calculating the win and draw rate\n\t\tfor (int i = 0; i < newPlayerPos; i++) {\n\t\t\tif (playerTable[i].getGamePlayed() == 0) {\n\t\t\t\tplayerTable[i].setWinRate(0);\n\t\t\t\tplayerTable[i].setDrawRate(0);\n\t\t\t} else {\n\t\t\t\t// convert to the format of percentage\n\t\t\t\tplayerTable[i].setWinRate(100.0 * (double)playerTable[i].getGameWon() / \n\t\t\t\t\t\t\t\t\t\t (double)playerTable[i].getGamePlayed());\n\t\t\t\tplayerTable[i].setDrawRate(100.0 * (double)playerTable[i].getGameDrawn() / \n\t\t\t\t\t\t\t\t\t\t (double)playerTable[i].getGamePlayed());\n\t\t\t}\n\t\t}\n\t\t/*\n\t\t * after the three sorting, it can break ties first by draw and then by\n\t\t * username alphabetically\n\t\t */\n\t\tArrays.sort(playerTable, 0, newPlayerPos, Player.playerUserNameComparator);\n\t\tArrays.sort(playerTable, 0, newPlayerPos, Player.playerDrawRateComparator);\n\t\tArrays.sort(playerTable, 0, newPlayerPos, Player.playerWinRateComparator);\n\t\tSystem.out.println(\" WIN | DRAW | GAME | USERNAME\");\n\t\tif (newPlayerPos >= CommonConstant.MAXRANKINGPLAYERS) {\n\t\t\tfor (int i = 0; i < CommonConstant.MAXRANKINGPLAYERS; i++) {\n\t\t\t\tSystem.out.println(String.format(\" %3d%% | %3d%% | %2d | %s\", \n\t\t\t\t\t\t\t\t\t\t\t\t Math.round(playerTable[i].getWinRate()),\n\t\t\t\t\t\t\t\t\t\t\t\t Math.round(playerTable[i].getDrawRate()), \n\t\t\t\t\t\t\t\t\t\t\t\t playerTable[i].getGamePlayed(),\n\t\t\t\t\t\t\t\t\t\t\t\t playerTable[i].getUserName()));\n\t\t\t}\n\t\t} else {\n\t\t\tfor (int i = 0; i < newPlayerPos; i++) {\n\t\t\t\tSystem.out.println(String.format(\" %3d%% | %3d%% | %2d | %s\", \n\t\t\t\t\t\t\t\t\t\t\t\t Math.round(playerTable[i].getWinRate()),\n\t\t\t\t\t\t\t\t\t\t\t\t Math.round(playerTable[i].getDrawRate()), \n\t\t\t\t\t\t\t\t\t\t\t\t playerTable[i].getGamePlayed(),\n\t\t\t\t\t\t\t\t\t\t\t\t playerTable[i].getUserName()));\n\t\t\t}\n\t\t}\n\t\t// other functions need an array sorted by user name\n\t\tArrays.sort(playerTable, 0, newPlayerPos, Player.playerUserNameComparator);\n\t}", "title": "" }, { "docid": "b69742a74e4e9a0b42b45626a7e5ac26", "score": "0.58535385", "text": "public void displayScoreTeam1(int score) {\n TextView team1Score = findViewById(R.id.team1Score);\n team1Score.setText(String.valueOf(score));\n }", "title": "" }, { "docid": "12198833c0822a0851c9eb0fa6692ec1", "score": "0.58482635", "text": "private void updateRanking(Player player) {\r\n\r\n float pointsPlayer1 = getPointsFromPosition(gamePosition);\r\n float pointsPlayer2 = getPointsFromPosition(gamePosition*-1);\r\n\r\n //Print a message to summarize the game\r\n Debugger.print(\"There have been played \" + gameRounds + \" rounds!\");\r\n\r\n if(pointsPlayer1 > pointsPlayer2) {\r\n Debugger.print(player1Name + \" won the game by \" + pointsPlayer1 + \" to \" + pointsPlayer2); //Player 1 winner message\r\n }\r\n else if(pointsPlayer2 > pointsPlayer1) {\r\n Debugger.print(player2Name + \" won the game by \" + pointsPlayer2 + \" to \" + pointsPlayer1); //Player 2 winner message\r\n }\r\n else {\r\n Debugger.print(\"Nice Tie - The game ended in a draw\"); //Draw message\r\n }\r\n\r\n // Update the ranking tables\r\n Queries.updateRanking(player1, pointsPlayer1);\r\n Queries.updateRanking(player2, pointsPlayer2);\r\n\r\n }", "title": "" }, { "docid": "44d430e0a6c71b3552b63ba24e36a765", "score": "0.58437896", "text": "public void updatePlayScreen(String text){\n Label label = new Label(text);\n label.setPadding(new Insets(5.0));\n playScreen.setLeft(new Pane(label));\n }", "title": "" }, { "docid": "b5efb791785c71806edbb9142a7c7a6f", "score": "0.5838702", "text": "@SuppressLint(\"all\")\n private void display3R() {\n TextView textView3R = (TextView) findViewById(R.id.remark3);\n boolean remark3 = (score3 == 10);\n int i;\n if (remark3) {\n i = R.string.correct_answer;\n textView3R.setText(i);\n textView3R.setTextColor(Color.rgb(0,250,0));\n }else {\n i = R.string.wrong_answer;\n textView3R.setText(i);\n textView3R.setTextColor(Color.rgb(250,0,0));\n }\n }", "title": "" }, { "docid": "73352117c5aa9c5ddd00b20acfde2d6a", "score": "0.58352214", "text": "public void displayKickForTeamB(int score) {\n TextView scoreView = (TextView) findViewById(R.id.freekickb);\n scoreView.setText(String.valueOf(score));\n }", "title": "" }, { "docid": "1a162c0a29b1d24f88392e4d53d24845", "score": "0.5824618", "text": "public void setRanks(String ranks) {\r\n this.ranks = ranks;\r\n }", "title": "" }, { "docid": "cfcc994b57f6700b1746e2c0d1334264", "score": "0.5821125", "text": "public void onClick(View v) {\n \t if (PlayerCurr.equals(\"J1\")) {\n \t\t tableStrings[2]=\"X\"; \n \t\t GagneOuPas(\"J1\");\n \t\t PlayerCurr=\"J2\";\n \t\t final TextView PlayerC = (TextView) findViewById(R.id.whoPlay);\n \t\t PlayerC.setText(\"Joueur 2 à vous de jouer \");\n \t }else {\n \t\t tableStrings[2]=\"O\"; \t\t \n \t\t PlayerCurr=\"J1\";\n \t\t final TextView PlayerC = (TextView) findViewById(R.id.whoPlay);\n \t\t PlayerC.setText(\"Joueur 1 à vous de jouer \");\n \t }\n \tRemplirListe();\n }", "title": "" }, { "docid": "4ffe8c04ac5be851c0b589389a567ffb", "score": "0.58204424", "text": "public void setRank(int rank) {\n\t\tthis.rank = rank;\n\t}", "title": "" }, { "docid": "35ff992a760f7a9412b588b943e82d70", "score": "0.58085155", "text": "private void btn6ActionPerformed(java.awt.event.ActionEvent evt) {\n scoreLabel.setText(\"15\");\n }", "title": "" }, { "docid": "0b0ee4465071e41a47efa20465302838", "score": "0.58045226", "text": "private void enablePlayer3() {\r\n\t\ttile1_3 = players.get(2).getTile1();\r\n\t\ttile2_3 = players.get(2).getTile2();\r\n\t\ttile3_3 = players.get(2).getTile3();\r\n\r\n\t\tbtntile1_p3.setText(tile1_3.getTile_name());\r\n\t\tbtntile2_p3.setText(tile2_3.getTile_name());\r\n\t\tbtntile3_p3.setText(tile3_3.getTile_name());\r\n\r\n\t\tbtntile1_p3.setEnabled(true);\r\n\t\tbtntile2_p3.setEnabled(true);\r\n\t\tbtntile3_p3.setEnabled(true);\r\n\r\n\t\trank1_3.setEnabled(true);\r\n\t\trank2_3.setEnabled(true);\r\n\t\trank3_3.setEnabled(true);\r\n\t\trank4_3.setEnabled(true);\r\n\r\n\t\trank1_1.setEnabled(false);\r\n\t\trank2_1.setEnabled(false);\r\n\t\trank3_1.setEnabled(false);\r\n\t\trank4_1.setEnabled(false);\r\n\r\n\t\trank1_2.setEnabled(false);\r\n\t\trank2_2.setEnabled(false);\r\n\t\trank3_2.setEnabled(false);\r\n\t\trank4_2.setEnabled(false);\r\n\r\n\t\trank1_4.setEnabled(false);\r\n\t\trank2_4.setEnabled(false);\r\n\t\trank3_4.setEnabled(false);\r\n\t\trank4_4.setEnabled(false);\r\n\r\n\t}", "title": "" }, { "docid": "9ab99246c5783531829818b355344d06", "score": "0.5801931", "text": "private void setUpTextBoxes(){\n int humanScore = m_round.getHumanTournamentScore();\n int computerScore = m_round.getComputerTournamentScore();\n String engineText = m_round.getEngine().toString();\n String currentPlayer = m_round.getWhoIsPlaying().getPlayerString();\n\n fillUpTextView( (TextView) findViewById(R.id.humanTournamentScore), \"Human tournament score: \" + humanScore );\n fillUpTextView( (TextView) findViewById(R.id.computerTournamentScore), \"Computer tournament score \" + computerScore );\n fillUpTextView( (TextView) findViewById(R.id.engineTopTextView), \"Engine: \" + engineText );\n fillUpTextView( (TextView) findViewById(R.id.textViewHandText), currentPlayer + \" player's hand:\" );\n }", "title": "" }, { "docid": "936ffe73a3a4e74b5276d699f8808d6d", "score": "0.57880235", "text": "public void toggleRanking()\n {\n hideViews();\n viewRanking.display();\n }", "title": "" }, { "docid": "2191380b89e49779bc0680847ef54e50", "score": "0.57879937", "text": "private void setButtonText(String newText) {\n locationBtn.setText(newText);\n locationBtn.setTextColor(Color.parseColor(\"#000000\"));\n }", "title": "" }, { "docid": "50cb6496cb71c10a657a7b894aa3a24e", "score": "0.5787988", "text": "public void onClick(View v) {\n \t if (PlayerCurr.equals(\"J1\")) {\n \t\t tableStrings[0]=\"X\"; \n \t\t GagneOuPas(\"J1\");\n \t\t PlayerCurr=\"J2\";\n \t\t final TextView PlayerC = (TextView) findViewById(R.id.whoPlay);\n \t\t PlayerC.setText(\"Joueur 2 à vous de jouer \");\n \t\t\n \t }else {\n \t\t tableStrings[0]=\"O\"; \t\t \n \t\t PlayerCurr=\"J1\";\n \t\t final TextView PlayerC = (TextView) findViewById(R.id.whoPlay);\n \t\t PlayerC.setText(\"Joueur 1 à vous de jouer \");\n \t }\n \tRemplirListe();\n }", "title": "" }, { "docid": "66e86f79c745d7f9a1c8994e71742021", "score": "0.57836103", "text": "public void setText(int board, String text){\n switch(board) {\n case 0:\n \ttimer.setText(text); break;\n case 1:\n \tscore1.setText(text); break;\n case 2:\n \tscore2.setText(text); break;\n case 3:\n \tscore3.setText(text); break;\n case 4:\n \tscore4.setText(text); break;\n case 5:\n \twinnerBoard.setText(text); break;\n }\n }", "title": "" }, { "docid": "eebb1c8dfdab21b928f205dcd4c6b799", "score": "0.5781118", "text": "private void updateCurrentScores() {\n this.pOneScore.setText(\"P1: \" + Integer.toString(model.getPlayerOneScore()));\n this.pTwoScore.setText(\"P2: \" + Integer.toString(model.getPlayerTwoScore()));\n }", "title": "" }, { "docid": "865a3e7d0ffe5c9314bf5dc56eec84be", "score": "0.57800126", "text": "private void setScore(List<Player> players){\n txtScoreOne.setText(String.valueOf(players.get(0).getScore()));\n txtScoreTwo.setText(String.valueOf(players.get(1).getScore()));\n txtScoreThree.setText(String.valueOf(players.get(2).getScore()));\n txtScoreFour.setText(String.valueOf(players.get(3).getScore()));\n }", "title": "" }, { "docid": "c0b33a948587bcd7a834b39c866f8ed0", "score": "0.57774657", "text": "public static void setText(){\n\t\tGame.text = \"MANHATTAN\";\n\t\tGame.alphabet = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ?\";\n\t}", "title": "" }, { "docid": "f1b49877d305247bee61b58b33d2feab", "score": "0.5774726", "text": "private void displayForPumbaa(int score) {\n TextView scoreView = (TextView) findViewById(R.id.pumbaa_score);\n scoreView.setText(String.valueOf(score));\n }", "title": "" }, { "docid": "a618d33845515af6cc73585b4de99be4", "score": "0.5771747", "text": "@FXML\r\n private void turnName() {\r\n turn = (Label) RupTacToe.getScene().lookup(\"#playersTurn\");\r\n if(isSinglePlayer == false) {\r\n turn.setVisible(true);\r\n if(player.isTurn().equals(true)) {\r\n turn.setText(player.getPlayerName() + \"'s Turn\");\r\n } else {\r\n turn.setText(player2.getPlayerName() + \"'s Turn\");\r\n }\r\n }\r\n }", "title": "" }, { "docid": "5812bf57caeb4c696187845aa3da23be", "score": "0.57680726", "text": "public void displayForTeamB(int score){\n TextView scoreView = (TextView) findViewById(R.id.team_b_score);\n scoreView.setText(String.valueOf(score));\n }", "title": "" }, { "docid": "fc4311ef1c8ee5bbc2b90750930bf8af", "score": "0.5765306", "text": "protected void playerWin(){\n TextView betOutcomeText = (TextView) findViewById(R.id.betOutcomeText);\n checkJackPot();\n if(jackpotWinner == true)\n betOutcomeText.setText(\"JACKPOT!!\");\n else\n betOutcomeText.setText(\"WIN: \" + winnings);\n playerMoney += winnings;\n resetFruitTally();\n }", "title": "" }, { "docid": "f8bfc57ae03b5bd9f74e8bd5983a83e9", "score": "0.57640785", "text": "public void setTexts() {\n questionText.setText(question);\n resultText.setText(\" \");\n answer1Button.setText(answer1);\n answer2Button.setText(answer2);\n answer3Button.setText(answer3);\n answer4Button.setText(answer4);\n\n }", "title": "" }, { "docid": "e0381a536328d14c4bdd709855ae3d23", "score": "0.5764026", "text": "private void updateText() {\n\t\tspecialSymbol.setText(game.displaySpecialTileSlot());\n\n\t}", "title": "" }, { "docid": "617a2971a2a972c2ecbca50fa2db6995", "score": "0.5759712", "text": "public void SetButtonTexts() {\n \t\n \t\n \t\n \t\n String[] buttontitle = getResources().getStringArray(R.array.buttonchoices);\n \n Button[] temporarybtn = new Button[15];\n for(int iteration = 0; iteration <15; iteration++)\n {\n \t\n \ttemporarybtn[iteration] = (Button) findViewById(buttonID[iteration]);\n \ttemporarybtn[iteration].setTextAppearance(this, GetFont());\n \ttemporarybtn[iteration].setText(buttontitle[Populate(iteration)]);\n \t\n }\n \n }", "title": "" }, { "docid": "91401f6b780df050bae3f2e45e2cfe17", "score": "0.5759372", "text": "public void onClick(View v) {\n \t if (PlayerCurr.equals(\"J1\")) {\n \t\t tableStrings[1]=\"X\"; \n \t\t GagneOuPas(\"J1\");\n \t\t PlayerCurr=\"J2\";\n \t\t final TextView PlayerC = (TextView) findViewById(R.id.whoPlay);\n \t\t PlayerC.setText(\"Joueur 2 à vous de jouer \");\n \t }else {\n \t\t tableStrings[1]=\"O\"; \n \t\t GagneOuPas(\"J2\");\n \t\t PlayerCurr=\"J1\";\n \t\t \n \t\t final TextView PlayerC = (TextView) findViewById(R.id.whoPlay);\n \t\t PlayerC.setText(\"Joueur 1 à vous de jouer \");\n \t }\n \tRemplirListe();\n \t\n }", "title": "" }, { "docid": "349a61a3fad45bccdfe8134e6b8a93d6", "score": "0.57568157", "text": "private void btn10ActionPerformed(java.awt.event.ActionEvent evt) {\n scoreLabel.setText(\"100\");\n }", "title": "" }, { "docid": "7acfc7eb9f600098198f78370de3d349", "score": "0.5751126", "text": "@Override\n public void onClick(View v) {\n if (!player_Selected.isEmpty()) {\n tvDisplay.setText(tvDisplay.getText() + \"\\n\"+ player_Selected + \" has got a offensive rebound \");\n\n for (DB_Entity_Stats player : playersStats) {\n if (player.getName().equals(player_Selected) ) {\n int OffRebound = player.getOffrebound();\n OffRebound ++;\n player.setOffrebound(OffRebound);\n\n }\n }\n\n }\n }", "title": "" }, { "docid": "a150394a6cd337a40347aae385017afd", "score": "0.5742572", "text": "@Override\n public void onClick(View v) {\n if (!player_Selected.isEmpty()) {\n tvDisplay.setText(tvDisplay.getText() + \"\\n\"+ player_Selected + \" has missed a Free throw \");\n\n for (DB_Entity_Stats player : playersStats) {\n if (player.getName().equals(player_Selected) ) {\n int FgAttempted = player.getFgattempted();\n int FtAttempted = player.getFtattempted();\n FtAttempted ++;\n FgAttempted ++;\n player.setFgattempted(FgAttempted);\n player.setFtattempted(FtAttempted);\n\n }\n }\n\n }\n }", "title": "" }, { "docid": "687aab42b17e01c846f66d42cef9e132", "score": "0.5738389", "text": "public void showSwitcher(List<String> playersNicknames) {\n bodyContainer.add(playerContainer);\n int index=0;\n\n for (String player : playersNicknames) {\n Image scaledImage = (new ImageIcon(getClass().getResource(\"/GuiResources/couple\"+index+\".png\"))).getImage().getScaledInstance(200, 200, Image.SCALE_SMOOTH);\n PButton choice= new PButton(scaledImage);\n choice.setLayout(null);\n choice.addMouseListener(new PlayerMouseListener(player));\n playerContainer.add(choice);\n\n PLabel choiceName= new PLabel(\"<CENTER>\"+player+\"</CENTER>\");\n choiceName.setBounds(0,150,(playerContainer.getWidth()-40*(playersNicknames.size()-1))/playersNicknames.size(),20);\n choiceName.setFontSize(20);\n choice.add(choiceName);\n index++;\n }\n }", "title": "" }, { "docid": "ef8cce7221f88b67106e0deda9e80d68", "score": "0.573798", "text": "private void btn5ActionPerformed(java.awt.event.ActionEvent evt) {\n scoreLabel.setText(\"8\");\n }", "title": "" }, { "docid": "59505ab779c71a6c5abe363669a9a4e8", "score": "0.5736842", "text": "@Override\n public void onClick(View v) {\n if (!player_Selected.isEmpty()) {\n tvDisplay.setText(tvDisplay.getText() + \"\\n\"+ player_Selected + \" has earned a assist \");\n\n for (DB_Entity_Stats player : playersStats) {\n if (player.getName().equals(player_Selected) ) {\n int Assist = player.getAssist();\n Assist ++;\n player.setAssist(Assist);\n\n }\n }\n\n }\n }", "title": "" }, { "docid": "230a5e7dd58d7143e89f3d0892a5f51e", "score": "0.5735985", "text": "void setTurnText() {\n Context context = mBinding.get().getRoot().getContext();\n\n //get unformatted string\n String unformatted = context.getResources().getString(R.string.unformat_turn_display);\n\n //get turn number\n int turn = mTurn.getTurnNumber();\n\n //get active player name\n int activePlayer = mPlayerInfo.getActivePlayer();\n String name;\n if (activePlayer == DataModelConstants.PLAYER_ALICE) {\n name = context.getResources().getString(R.string.alice);\n }\n else {\n name = context.getResources().getString(R.string.bob);\n }\n\n //format the string\n String partial = String.format(unformatted, turn, name);\n //uses HTML to bold player name\n CharSequence formatted = UiUtil.formatHTML(partial);\n\n //set in turn display\n turnText.set(formatted);\n }", "title": "" }, { "docid": "ceae142c3371df528e5ef8c727ffd37e", "score": "0.57354087", "text": "private void setCharacter_name() {\n TextView character_name = findViewById(R.id.profileName);\n character_name.setText(player.getName());\n }", "title": "" }, { "docid": "d9864e6a5b298e57905ad44b1e222e0d", "score": "0.57307756", "text": "public void displayForBroncos(int score) {\n TextView scoreView = (TextView) findViewById(R.id.broncos_score);\n scoreView.setText(String.valueOf(score));\n }", "title": "" }, { "docid": "55ae86b854086e8b42b2632f510fd754", "score": "0.5729206", "text": "private void btn9ActionPerformed(java.awt.event.ActionEvent evt) {\n scoreLabel.setText(\"60\");\n }", "title": "" }, { "docid": "6bb809b5ae545cdc456dfc6b0e2b7b20", "score": "0.5726453", "text": "public void displayKickForTeamA(int score) {\n TextView scoreView = (TextView) findViewById(R.id.freekicka);\n scoreView.setText(String.valueOf(score));\n }", "title": "" }, { "docid": "0eab91b43d4ce55ca5a3b5052f09ef98", "score": "0.57234323", "text": "public void displayForTeamB(int score) {\n TextView scoreView = (TextView) findViewById(R.id.player_b_score);\n scoreView.setText(String.valueOf(score));\n }", "title": "" }, { "docid": "bb786febe20b4c9faf766fc3f27a37ba", "score": "0.57179534", "text": "public void displayScore() {\r\n\t\tscore.setText(name + \": $\" + JeopardyGUI.score1);\r\n\t}", "title": "" }, { "docid": "089a2453fa883785f00cb994fb4f1f88", "score": "0.5717389", "text": "@Override\n public void onClick(View v) {\n if (!player_Selected.isEmpty()) {\n tvDisplay.setText(tvDisplay.getText() + \"\\n\"+ player_Selected + \" has missed 2 points \");\n\n for (DB_Entity_Stats player : playersStats) {\n if (player.getName().equals(player_Selected) ) {\n int FgAttempted = player.getFgattempted();\n int TwoPtAttempted = player.getTwoptattempted();\n TwoPtAttempted ++;\n FgAttempted ++;\n player.setFgattempted(FgAttempted);\n player.setTwoptattempted(TwoPtAttempted);\n\n }\n }\n\n }\n }", "title": "" }, { "docid": "6ca4cc0cb8ce0f6e101cbb77cbabf4e2", "score": "0.57165605", "text": "public void displayWinner(){\r\n TextView winnerView = findViewById(R.id.winnerdisplay);\r\n winnerView.setBackgroundColor(Color.WHITE);\r\n\r\n if(game.getWinner() == null)\r\n winnerView.setText(\" Tie!\");\r\n else\r\n winnerView.setText(\" \" + game.getWinner().toString() + \" Won!\");\r\n\r\n disableButtons();\r\n }", "title": "" }, { "docid": "cd18f6bd0613b4aea2d54e6a7807df32", "score": "0.57047886", "text": "private void aiWon() {\n TextView label_who_won = findViewById(R.id.label_who_won);\n String won = \"Computer Won!\";\n label_who_won.setText(won);\n label_who_won.setVisibility(View.VISIBLE);\n TextView label_ai_count = findViewById(R.id.label_computer_count);\n int ai_count = Integer.parseInt(label_ai_count.getText().toString());\n ai_count++;\n label_ai_count.setText(String.valueOf(ai_count));\n }", "title": "" }, { "docid": "0029f47971b4275f3cd6d0f1b641024e", "score": "0.57032543", "text": "private void setNeutralButton(CharSequence text, View.OnClickListener listener) {\n btnCount++;\n btMiddle.setVisibility(View.VISIBLE);\n btMiddle.setText(text);\n btMiddle.setOnClickListener(listener);\n addSeparator();\n }", "title": "" }, { "docid": "764023b4354d686c0efe8ef04ed370a5", "score": "0.5691767", "text": "private void updateButtons()\n {\n trim.setEnabled(selectionActive);\n playStop.setText(selectionActive ? playSelectionLabel : playLabel);\n }", "title": "" } ]
ce84f86bfb76d22005860bbf11b18b20
Append new note to exisiting note
[ { "docid": "420337c4a1462923d2eaa8a6e5a13c2f", "score": "0.0", "text": "public void addTodo(Todo todo){\n\t\tthis.todo.add(todo);\n\t}", "title": "" } ]
[ { "docid": "ee6fad90e02e8e72f3d49bf2d5c79683", "score": "0.7835072", "text": "Note addNote(String text);", "title": "" }, { "docid": "d283509cfdfa8b5ff1c6570c047009c2", "score": "0.7704661", "text": "public void addNote(Note note){\n notes.add(note);\n }", "title": "" }, { "docid": "d86daa5f87203533920c8257962b9829", "score": "0.7685107", "text": "@Override\n public void addNotes(String note) {\n\t\tnotes=notes + \"\\n\" + DateUtilities.getDateString() + \":\" + note; \n\t}", "title": "" }, { "docid": "64ce487a9ca6719b50ddc9d274c56e5f", "score": "0.75255644", "text": "public void addNote(RelativeNote note) {\n this.notes.add(note);\n }", "title": "" }, { "docid": "10cd714145555ad2f0720fd4efa24734", "score": "0.7503484", "text": "public void addNotes(String note) {\n\t\tnotes = note;\n\t}", "title": "" }, { "docid": "1de3933801cc2e7044472b893c696b4a", "score": "0.7465701", "text": "@Override\n public final void addNotes(String note) {\n cumulativeNotes += note + \"\\n\";\n }", "title": "" }, { "docid": "2bb428b2595add2dcbe19ab82d85b621", "score": "0.74646443", "text": "public void addNote(Note note) {\n new AddNote().execute(note);\n }", "title": "" }, { "docid": "79c71f87c3a0726fee1fe186e40f863c", "score": "0.7349109", "text": "public void addNote(Note note){\n ensureCapacity(size + 1);\n notes[size] = note;\n size += 1;\n }", "title": "" }, { "docid": "eec0b8b9300871d537fc1b64c2f52d38", "score": "0.73197126", "text": "com.walgreens.rxit.ch.cda.StrucDocFootnote addNewFootnote();", "title": "" }, { "docid": "d6df991b10e341e06fda32c19f49969a", "score": "0.7191069", "text": "@Override\n\tpublic NoteBaseBean addNewNote(NoteBaseBean note) {\n\t\treturn notedao.addNewNote(note);\n\t}", "title": "" }, { "docid": "98e68cf84006dd5424ffcf9ec4432c6d", "score": "0.7118087", "text": "public String addNewNote() {\n final String title = genUniqueNoteTitle();\n addNewNote(title);\n return title;\n }", "title": "" }, { "docid": "fd095cc31f275565846be2114156a5ed", "score": "0.7097435", "text": "Note addNote(String text, ContextKind contextKind, long contextOid);", "title": "" }, { "docid": "fe09ef44662f0bf8abe983a821c9140f", "score": "0.70953506", "text": "@Override\n\tpublic int addNote(Note n) throws Exception {\n\t\treturn notedao.addNote(n);\n\t}", "title": "" }, { "docid": "231fa0f240c4858249f21a63ef4950cc", "score": "0.7021567", "text": "void addNote(Note n, int duration, int beat);", "title": "" }, { "docid": "ba4d8494cea8e1c53de3d79b0c58769f", "score": "0.6971348", "text": "@Override\r\n public void addNote(INote note) throws IllegalArgumentException {\r\n for (int i = note.getStart(); i < note.getStart() + note.getDuration(); i++) {\r\n INote noteAt = this.getNoteAt(this.pitchFactory.build(note.getPitch().getPitch()), i);\r\n if (noteAt != null && noteAt.getInstrument() == note.getInstrument()) {\r\n throw new IllegalArgumentException(\"A Note already exists at this location.\");\r\n }\r\n }\r\n this.notes.add(note);\r\n }", "title": "" }, { "docid": "f4d3654bcfd5996a46e641738b51ee9b", "score": "0.6953856", "text": "com.walgreens.rxit.ch.cda.StrucDocFootnoteRef addNewFootnoteRef();", "title": "" }, { "docid": "cb764a23330bdf47c6c0036f17c8918e", "score": "0.6845982", "text": "public void add(Note note) {\n\t\t\n\t\tthis.Titulo=note.Titulo;\n this.Texto = note.Texto;\n this.Foto = note.Foto;\n this.Sonido = note.Sonido;\n this.URL = note.URL;\n this.Archivo = note.Archivo;\n this.FechaEntrada = note.FechaEntrada;\n this.FechaEstimada = note.FechaEstimada;\n this.FechaRealizada = note.FechaRealizada;\n this.Prioridad = note.Prioridad;\n this.Estado = note.Estado;\n this.ProjectID = note.ProjectID;\n\n \n\n\t}", "title": "" }, { "docid": "64739ce9e0ed5eff7d23c99d47727c44", "score": "0.68400854", "text": "void add(StickyNote stickyNote) {\n stickyNotes.add(stickyNote);\n }", "title": "" }, { "docid": "e51db6aff159ea1ece35b2886034203e", "score": "0.6813647", "text": "void addNote() {\n\n if (idOfNote<SIZE) {\n author = signature();\n System.out.println(\"New note: \");\n Scanner inNewNote = new Scanner(System.in);\n String newNote = inNewNote.nextLine();\n Note note = new Note(newNote, author);\n notepad[idOfNote] = note;\n System.out.println(note);\n idOfNote++;\n operation();\n } else if (numberOfDeletedNotes>0) {\n Note[] newNotepad = new Note[notepad.length];\n\n int i=0;\n int j=0;\n while ((i<notepad.length)&(j<notepad.length)) {\n if (notepad[j] != null) {\n newNotepad[i] = notepad[j];\n i++;\n }\n j++;\n }\n idOfNote--;\n\n notepad = newNotepad;\n String author = signature();\n System.out.println(\"New note: \");\n Scanner inNewNote = new Scanner(System.in);\n String newNote = inNewNote.nextLine();\n Note note = new Note(newNote, author);\n notepad[idOfNote] = note;\n System.out.println(note);\n idOfNote++;\n operation();\n } else {\n System.out.println(\"Error: notepad is full. You should delete some notes to continue adding\");\n operation();\n }\n }", "title": "" }, { "docid": "2b55d88aab5865613f5ac84327b47f06", "score": "0.6779355", "text": "private void insertNote() {\n String courseIdString = String.valueOf(currentCourseId);\n // Read from the input fields and create strings from them\n String courseNoteString = mCourseNote.getText().toString().trim();\n if (courseNoteString.isEmpty()) {\n courseNoteString = null;\n }\n\n // Create the ContentValues object where column names are the keys,\n // and the input fields fro the note are the values\n ContentValues values = new ContentValues();\n values.put(NoteEntry.COLUMN_NOTES_ASSOCIATED_COURSE_ID, courseIdString);\n values.put(NoteEntry.COLUMN_NOTES, courseNoteString);\n\n // Determine if this is new or existing assessment b checking the mCurrentNoteUri\n // If URI is empty, it must be a new one\n if (mCurrentNoteUri == null) {\n // Insert a new row into the database and return the ID of the new row\n Uri newUri = getContentResolver().insert(NoteEntry.CONTENT_URI_NOTES, values);\n } else {\n // If not null, then it is an existing note and we have to update it\n int rowsAffected = getContentResolver().update(mCurrentNoteUri, values, null, null);\n }\n }", "title": "" }, { "docid": "7273cec2068a9bc098144fa67d09de74", "score": "0.676911", "text": "public void noteOn(NoteDefinition noteDefinition);", "title": "" }, { "docid": "acca4ecb67fd14919bd5563ea5c0a387", "score": "0.6735164", "text": "void addNote(int start, int end, int instrument, int pitch, int volume)\n throws IllegalArgumentException;", "title": "" }, { "docid": "82a5ccfb75ac375231ed6efe09862c27", "score": "0.67235917", "text": "private void addNoteToProperMelody(ASound newNote, Melody cur, int start) {\n cur.addNoteToBeat(newNote, start);\n }", "title": "" }, { "docid": "3c546f0d893ab56fa2bf17bd2fcab895", "score": "0.66994494", "text": "public void addNoteToDatabase(Note note) {\n SQLiteDatabase sqLiteDatabase = this.getWritableDatabase();\n\n ContentValues contentValues = new ContentValues();\n contentValues.put(ID_FIELD, note.getId());\n contentValues.put(TITLE_FIELD, note.getTitle());\n contentValues.put(DESC_FIELD, note.getDescription());\n contentValues.put(EX_FIELD, note.getExpiration()); //Added\n contentValues.put(DELETED_FIELD, getStringFromDate(note.getDeleted()));\n\n sqLiteDatabase.insert(TABLE_NAME, null, contentValues);\n\n }", "title": "" }, { "docid": "d6d240dfc6bc6d5c91b14772a48a94c9", "score": "0.6680574", "text": "public void addNote(double startBeat, double pitch, double dynamic,\n\t\t\tdouble duration) {\n\t\taddNote(startBeat, this.channel, this.instrument, pitch, dynamic,\n\t\t\t\tduration, this.articulation, this.pan);\n\t}", "title": "" }, { "docid": "37f8bec0c61980ee0d7e897eefcb42ec", "score": "0.66507035", "text": "public void addNote(double startBeat, double channel, double instrument,\n\t\t\tdouble pitch, double dynamic, double duration, double articulation,\n\t\t\tdouble pan) {\n\t\taddPhrase(startBeat, channel, instrument, new double[] { pitch },\n\t\t\t\tnew double[] { dynamic }, new double[] { duration },\n\t\t\t\tnew double[] { articulation }, new double[] { pan });\n\t}", "title": "" }, { "docid": "cead467123c28c5bb625f11a9966d028", "score": "0.66436166", "text": "@Override\n protected void logNote(long absoluteTimeNanos, String noteType, String note) {\n writeLine(absoluteTimeNanos, toFileString(noteType), toFileString(note));\n }", "title": "" }, { "docid": "1a49ca717f4b32b4e1b463702e15b71c", "score": "0.6636232", "text": "@Override\n\tpublic int addNote(Note n) throws Exception {\n\t\tthis.getHibernateTemplate().save(n);\n\t\treturn 1;\n\t}", "title": "" }, { "docid": "14bb8dfc816b851eefd0846e49a05726", "score": "0.66332495", "text": "public static void addNote( long id, @Required String note )\r\n\t{\r\n\r\n\t\tif( validation.hasErrors() || StringUtils.isBlank( note ) )\r\n\t\t{\r\n\t\t\trenderJSON( false );\r\n\t\t}\r\n\t\tMeeting meeting = Meeting.findById( id );\r\n\t\tSecurity.check( Security.getConnected().in( meeting.project ).can( \"editMeeting\" ) || Security.getConnected().meetingStatus( meeting.id ).equals( \"confirmed\" ) );\r\n\t\tArtifact n = new Artifact( \"Notes\", note );\r\n\t\tn.save();\r\n\t\tmeeting.artifacts.add( n );\r\n\t\tmeeting.save();\r\n\t\tLog.addUserLog( \"Added a note to a meeting\", n, meeting, meeting.project );\r\n\t\tCollaborateUpdate.update( meeting.project, \"reload('meetingNotes-\" + meeting.id + \"')\" );\r\n\t\trenderJSON( true );\r\n\r\n\t}", "title": "" }, { "docid": "37dc6bdee876ec29350ce30f6e2b137a", "score": "0.66236895", "text": "public void ajouterNote(int note) throws ErreurNotes{\n if ( (nbNotes >= nbMatieres) || ( note < 0 || note > 20) ) throw new\n ErreurNotes(nbNotes,nbMatieres,note);\n notes[nbNotes] = note;\n nbNotes++;\n\n }", "title": "" }, { "docid": "9b862958fc8cbc35e0c5b8018a326be4", "score": "0.6581206", "text": "@Override\n public void addMeetingNotes(int id, String text) {\n }", "title": "" }, { "docid": "65f6920fddb90f2bcd13c9b1b1760ef4", "score": "0.6551839", "text": "public void addNote(SingleNoteDisplay newNote) {\n getTab(ALL_NOTES).add(newNote);\n if (getTab(newNote.getNoteType()) == null) {\n addTab(newNote.getNoteType());\n }\n getTab(newNote.getNoteType()).add(new SingleNoteDisplay(newNote));\n }", "title": "" }, { "docid": "1f7964fbd0cfa23504969ff5adf1e374", "score": "0.65221345", "text": "public MutateResponse addNote(NoteData toAdd) throws NoteAlreadyExistsException {\n Note note = new Note();\n // New note's delta/length may be overridden while inserting into note list.\n note.setDelta(toAdd.getPosition());\n note.safeSetDuration(toAdd.getDuration());\n note.safeSetLength(toAdd.getDuration());\n note.setLyric(toAdd.getLyric());\n note.setNoteNum(PitchUtils.pitchToNoteNum(toAdd.getPitch()));\n if (toAdd.getEnvelope().isPresent()) {\n note.setEnvelope(toAdd.getEnvelope().get());\n }\n if (toAdd.getPitchbend().isPresent()) {\n note.setPitchbends(toAdd.getPitchbend().get());\n }\n if (toAdd.getConfigData().isPresent()) {\n note.setConfigData(toAdd.getConfigData().get());\n }\n\n int positionMs = toAdd.getPosition();\n NoteNode insertedNode = this.noteList.insertNote(note, positionMs);\n\n // Standardize note lengths and envelopes, in last -> first order.\n if (insertedNode.getNext().isPresent()) {\n insertedNode.getNext().get().standardize(standardizer, voicebank.get());\n }\n insertedNode.standardize(standardizer, voicebank.get());\n if (insertedNode.getPrev().isPresent()) {\n insertedNode.getPrev().get().standardize(standardizer, voicebank.get());\n }\n\n // Find neighbors to newly added note.\n Optional<NoteUpdateData> prevNote = Optional.absent();\n if (insertedNode.getPrev().isPresent()) {\n Note prevSongNote = insertedNode.getPrev().get().getNote();\n prevNote = Optional.of(\n new NoteUpdateData(\n positionMs - note.getDelta(),\n prevSongNote.getTrueLyric(),\n prevSongNote.getEnvelope(),\n prevSongNote.getPitchbends(),\n prevSongNote.getConfigData()));\n }\n Optional<NoteUpdateData> nextNote = Optional.absent();\n if (insertedNode.getNext().isPresent()) {\n // Modify the next note's portamento.\n Note nextSongNote = insertedNode.getNext().get().getNote();\n int nextStart = positionMs + note.getLength();\n pitchbends.removePitchbends(\n nextStart,\n nextSongNote.getLength(),\n nextSongNote.getPitchbends());\n pitchbends.addPitchbends(\n nextStart,\n nextSongNote.getLength(),\n nextSongNote.getPitchbends(),\n note.getNoteNum(),\n nextSongNote.getNoteNum());\n\n nextNote = Optional.of(\n new NoteUpdateData(\n nextStart,\n nextSongNote.getTrueLyric(),\n nextSongNote.getEnvelope(),\n nextSongNote.getPitchbends(),\n nextSongNote.getConfigData()));\n }\n\n // Add this note's pitchbends.\n int prevNoteNum = insertedNode.getPrev().isPresent()\n ? insertedNode.getPrev().get().getNote().getNoteNum()\n : note.getNoteNum();\n this.pitchbends.addPitchbends(\n positionMs,\n note.getLength(),\n note.getPitchbends(),\n prevNoteNum,\n note.getNoteNum());\n\n return new MutateResponse(\n ImmutableList.of(\n new NoteUpdateData(\n positionMs,\n note.getTrueLyric(),\n note.getEnvelope(),\n note.getPitchbends(),\n note.getConfigData())),\n prevNote,\n nextNote);\n }", "title": "" }, { "docid": "8e069c4fd86072039501053da9ca1980", "score": "0.65190756", "text": "void addNote(int time, Note note) { \n\t\tif (note.getNoteType() == 'W') {\n\t\t\tbeatMap.put(time, note);\n\t\t}\n\t\telse if (note.getNoteType() == 'H') {\n\t\t\tbeatMap.put(time, note);\n\t\t}\n\t\telse if (note.getNoteType() == 'Q') {\n\t\t\tbeatMap.put(time, note);\n\t\t}\n\t}", "title": "" }, { "docid": "6812443c2734a3ad7ca3720c01e5f727", "score": "0.6514427", "text": "private void onAddNewNote() {\n startActivity(new Intent(this, EditNoteActivity.class));\n\n }", "title": "" }, { "docid": "9e3d9ad1fa62cb86b22fb62743c1c0cf", "score": "0.6481347", "text": "@Override\r\n public void addNotes(INote... notes) {\r\n for (INote n : notes) {\r\n this.addNote(n);\r\n }\r\n }", "title": "" }, { "docid": "2546670e5f8c74a2648291c8d84cc2ff", "score": "0.6469808", "text": "public note(String note){\n this.note = note;\n }", "title": "" }, { "docid": "f89724b82843baa7ad02cafa52429bea", "score": "0.64666456", "text": "@RequiresApi(api = Build.VERSION_CODES.N)\n public void addNoteToDataBase(String text){\n String newText = validateSigns(text);\n Note note = new Note(newText);\n note.save(getApplicationContext());\n\n LocalVariables.notesList.texts.add(newText);\n LocalVariables.notesList.modifications = true;\n\n }", "title": "" }, { "docid": "d743d1c8c875e088b95e44457477d720", "score": "0.6446979", "text": "@Test\n public void createNewNote() {\n final CourseInfo course = sDataManager.getCourse(\"android_async\");\n final String noteTitle = \"Test note title\";\n final String noteText = \"This is the test note body\";\n\n // create a new note placeholder and return its index\n int noteIndex = sDataManager.createNewNote();\n // getting that particular note\n NoteInfo note = sDataManager.getNotes().get(noteIndex);\n // setting the note fields\n note.setCourse(course);\n note.setTitle(noteTitle);\n note.setText(noteText);\n\n // get note at that particular position\n NoteInfo compareNote = sDataManager.getNotes().get(noteIndex);\n // check if the fields of the note matches the fields we set\n assertEquals(compareNote.getCourse(), course);\n assertEquals(compareNote.getTitle(), noteTitle);\n assertEquals(compareNote.getText(), noteText);\n }", "title": "" }, { "docid": "1f5dac4eef20eb2433083b62c8d768af", "score": "0.644248", "text": "com.walgreens.rxit.ch.cda.StrucDocFootnote insertNewFootnote(int i);", "title": "" }, { "docid": "d06090c59aa826f912200d695c84db04", "score": "0.6442296", "text": "public void save(){\n String str = editText.getText().toString();\n textView.setText(str);\n data.createNote(str);\n\n //add \"add\" toast\n Toast.makeText(this,\"note added\",Toast.LENGTH_SHORT).show();\n //When the notes saved, finish this add activity.\n finish();\n }", "title": "" }, { "docid": "edc9f6d926be6c989f005515341b69ca", "score": "0.6390415", "text": "private void createNote() {\n\n ParseObject note = new ParseObject(\"note\");\n\n note.put(\"author\", ParseUser.getCurrentUser());\n note.put(\"title\", etTitle.getText().toString());\n note.put(\"note\", etNote.getText().toString());\n note.put(\"bothTitleAndNote\", etTitle.getText().toString() + \" -- \" + etNote.getText().toString());\n\n// note.saveInBackground();\n\n try {\n note.save();\n } catch (ParseException e) {\n e.printStackTrace();\n }\n\n //Finish and let previous activity know we created\n setResult(NotePadActivity.ACTION_CREATE);\n finish();\n }", "title": "" }, { "docid": "a5577f41dcd9339dc2bfdbe294d070f2", "score": "0.63747114", "text": "public void setNote(String note);", "title": "" }, { "docid": "a5577f41dcd9339dc2bfdbe294d070f2", "score": "0.63747114", "text": "public void setNote(String note);", "title": "" }, { "docid": "a5577f41dcd9339dc2bfdbe294d070f2", "score": "0.63747114", "text": "public void setNote(String note);", "title": "" }, { "docid": "cd2e577862a1bd6071e16fb0de8827cf", "score": "0.63545334", "text": "@Override\n public void onClick(View view) {\n WriteNewNote(view);\n }", "title": "" }, { "docid": "a4f33b218f2132789430a57202f5e271", "score": "0.6311314", "text": "public edu.umich.icpsr.ddi.NotesType addNewNotes()\n {\n synchronized (monitor())\n {\n check_orphaned();\n edu.umich.icpsr.ddi.NotesType target = null;\n target = (edu.umich.icpsr.ddi.NotesType)get_store().add_element_user(NOTES$2);\n return target;\n }\n }", "title": "" }, { "docid": "c8ec22cc377e6ae7ddc7b1ff7572dcb4", "score": "0.6292132", "text": "public void editNote(int noteIndex, String newNote){\n if (noteIndex < 0 || noteIndex > size - 1) {\n return;\n }\n notes[noteIndex] = new Note(newNote);\n }", "title": "" }, { "docid": "526aae832c2b55aee98e0d4799b0b28b", "score": "0.6262758", "text": "public void addNotes(List<INote> notes) {\r\n for (INote n : notes) {\r\n this.addNote(n);\r\n }\r\n }", "title": "" }, { "docid": "62870527d449e1ae519d7e4b5f147b50", "score": "0.6241243", "text": "public Builder note(String note) {\n this.note = note;\n return this;\n }", "title": "" }, { "docid": "7c4b3f118c1d4c562e1e07f58dfd5dd0", "score": "0.6239303", "text": "public void setNote(String note) {\n this.note = note;\n }", "title": "" }, { "docid": "7c4b3f118c1d4c562e1e07f58dfd5dd0", "score": "0.6239303", "text": "public void setNote(String note) {\n this.note = note;\n }", "title": "" }, { "docid": "7c4b3f118c1d4c562e1e07f58dfd5dd0", "score": "0.6239303", "text": "public void setNote(String note) {\n this.note = note;\n }", "title": "" }, { "docid": "7c4b3f118c1d4c562e1e07f58dfd5dd0", "score": "0.6239303", "text": "public void setNote(String note) {\n this.note = note;\n }", "title": "" }, { "docid": "a38479ac3c235dc75cd9b27309a42151", "score": "0.6235207", "text": "void setNotes( String note )\n\t{\n\t\tnotes = note; \n\t}", "title": "" }, { "docid": "28b3e44ef75879c3101a1d900cd91b7e", "score": "0.62104934", "text": "public void insert(Note note) {\n repository.insert(note);\n }", "title": "" }, { "docid": "24f6da19fa4a62b098eac7f3e30dd8ba", "score": "0.6194486", "text": "Note(String note) {\n this.note = note;\n }", "title": "" }, { "docid": "be42d822af6867b064146012ec717b14", "score": "0.6191191", "text": "public void addNote(View view) {\n Intent intent = new Intent(this, AddNote.class);\n startActivity(intent);\n\n }", "title": "" }, { "docid": "0e6061143214e9831466544a07f97dfb", "score": "0.6187208", "text": "public int addNote(Note note) {\n SQLiteDatabase db = this.getWritableDatabase();\n ContentValues values = new ContentValues();\n EasyDate date = EasyDate.now();\n\n values.put(COL_POSITION, note.getPosition());\n values.put(COL_TITLE, note.getTitle());\n values.put(COL_NOTE, note.getNote().toString());\n values.put(COL_COLOR, note.getColor());\n values.put(COL_CREATED, date.toString());\n values.put(COL_EDITED, date.toString());\n values.put(COL_ARCHIVED, note.getIsArchived() ? 1 : 0);\n values.put(COL_DELETED, note.getIsDeleted() ? 1 : 0);\n values.put(COL_TYPE, note.getType().name());\n values.put(COL_NOTE_EXTRA, note.getNote().getCardString());\n\n db.beginTransaction();\n\n int result = (int) db.insert(TABLE_NAME, null, values);\n clearNoteTags(result);\n addTagsToNote(result, note.getTags());\n\n db.setTransactionSuccessful();\n db.endTransaction();\n\n return result;\n }", "title": "" }, { "docid": "001ee974aca4cc1d67a08eda20015eff", "score": "0.6181258", "text": "NoteActivity createNoteActivity();", "title": "" }, { "docid": "ac485e1df23baa4d9f5f966eba9e16ef", "score": "0.6171905", "text": "com.walgreens.rxit.ch.cda.StrucDocFootnoteRef insertNewFootnoteRef(int i);", "title": "" }, { "docid": "cd2b1404e2401beb1a2a29fb7adc85e7", "score": "0.6161994", "text": "public void saveNote() {\n // TODO: make the binding 2-way.\n // Copy the text box contents to the in-memory representation of the `Note`.\n note.setTitle(binding.titleEditText.getText().toString());\n note.setContent(binding.contentEditText.getText().toString());\n\n // Save the note.\n if (note.getId() == 0) {\n data.insert(note).subscribe(new Consumer<NoteEntity>() {\n @Override\n public void accept(@NonNull NoteEntity noteEntity) {\n finish();\n }\n });\n } else {\n data.update(note).subscribe(new Consumer<NoteEntity>() {\n @Override\n public void accept(@NonNull NoteEntity noteEntity) {\n finish();\n }\n });\n }\n }", "title": "" }, { "docid": "8242a766906500829d2c2c7e54a793b0", "score": "0.6150373", "text": "OperativeNote createOperativeNote();", "title": "" }, { "docid": "543e82d293823c46cfbda6e867e4a47b", "score": "0.61177784", "text": "public void setNote(String note) {\n \t\tthis.note = note;\n \t}", "title": "" }, { "docid": "b5f441555fb49cab2b81491bdd0a8282", "score": "0.60993105", "text": "public static void newNote( long id )\r\n\t{\r\n\t\tMeeting meeting = Meeting.findById( id );\r\n\t\trender( meeting );\r\n\t}", "title": "" }, { "docid": "4a9da25bb7f90f3085905d0a519d832c", "score": "0.6091442", "text": "public Note create() {\n\n\t\tfinal UserAccount userAccount = LoginService.getPrincipal();\n\t\tfinal Auditor auditor = this.auditorService.findByUserAccount(userAccount);\n\n\t\tAssert.notNull(auditor);\n\n\t\tfinal Note res = new Note();\n\n\t\tfinal long nowMillis = System.currentTimeMillis() - 1000;\n\t\tfinal Date writtenMoment = new Date(nowMillis);\n\n\t\tres.setWrittenMoment(writtenMoment);\n\t\tres.setAuditor(auditor);\n\n\t\tauditor.getNotes().add(res);\n\n\t\treturn res;\n\t}", "title": "" }, { "docid": "f75f8d82bd2d9556c2a77be75ef7f24f", "score": "0.6058491", "text": "@RequestMapping(value = \"/notes/addNote\", method = RequestMethod.POST)\n @ResponseBody\n @Audit(type = ServiceType.NOTES)\n public SPResponse addNote(@RequestBody NoteForm noteForm,\n @RequestParam(defaultValue = \"false\") boolean newNote, Authentication authentication) {\n return ControllerHelper.process(notesControllerHelper::addNote, authentication, noteForm,\n newNote);\n }", "title": "" }, { "docid": "10f7d2041febb988c1d14ff447f9af61", "score": "0.6035293", "text": "public void setNote(String note) {\n\t\tthis.note = note;\n\t}", "title": "" }, { "docid": "dfb322372c0b0761d728a918743dac75", "score": "0.6030154", "text": "@Override\n\tpublic String createNote(String note) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "6916f4771e1597163728d8d9db33dbf9", "score": "0.60261637", "text": "@Override\r\n\tvoid takeNotes() {\n\t\t\r\n\t}", "title": "" }, { "docid": "94539768c021d614d8bd7bc43a1e2ab6", "score": "0.6013649", "text": "public void setNote(java.lang.String note) {\r\n this.note = note;\r\n }", "title": "" }, { "docid": "fc9fc8cb515cd7be1d9a564127bdc24c", "score": "0.5970376", "text": "public void setNotes(String aNotes){\r\n this.notes = aNotes;\r\n }", "title": "" }, { "docid": "c4ea76c3066121ef5c9eefdd889777d7", "score": "0.5963658", "text": "public void addNote() {\n\n pollCount = 0;\n\n // Vytvoreni poznamky\n String tmp = \"INSERT INTO quick_note (note_date, note_text) VALUES (?1, ?2)\";\n javax.persistence.Query query = getEntityManager().createNativeQuery(tmp);\n query.setParameter(1, quickNote.getNoteDate());\n query.setParameter(2, quickNote.getNoteText());\n query.executeUpdate();\n\n // Vyber prave vlozene poznamky\n tmp = \"select quickNote from QuickNote quickNote where quickNote.notePkId = (select max(n.notePkId) from QuickNote n)\";\n query = getEntityManager().createQuery(tmp);\n QuickNote note = (QuickNote) query.getSingleResult();\n\n // Prirazeni poznamky pocitaci\n tmp = \"INSERT INTO computer_note (computer_fk_id, note_fk_id) VALUES (?1, ?2)\";\n query = getEntityManager().createNativeQuery(tmp);\n query.setParameter(1, id);\n query.setParameter(2, note.getNotePkId());\n query.executeUpdate();\n\n Conversation.instance().end();\n try {\n Transaction.instance().commit();\n } catch (Exception e) {\n\n }\n super.initResultList();\n\n // Reset poznamky\n quickNote.setNoteText(\"\");\n quickNote.setNoteDate(new Date());\n }", "title": "" }, { "docid": "f4d7c3dd1f21b7934ec7921ef4d5cf72", "score": "0.5953073", "text": "public int createNote(String noteToCreate) {\n NotesEntity entity = new NotesEntity();\n // entity.setNotes(noteToCreate);\n\n return notesDao.save(entity);\n\n }", "title": "" }, { "docid": "ff349748036868f2b7f48e4ba04743f7", "score": "0.5946936", "text": "public CompositionBuilder<IMusicModel> addNote(int start, int end, int instrument,\n int pitch, int volume) {\n if (end - start == 0) {\n return this;\n }\n\n Note newNote = new Note(Pitch.getPitchAtVal(pitch % 12),\n (pitch / 12), volume, end - start, instrument);\n\n Melody cur = null;\n for (Melody m : this.melodies) {\n if (m.getInstrument() == instrument\n && (m.numOfBeats() <= start\n || (m.getIndexOfBeat(start) >= 0\n && !m.noteStartsAtExactBeat(start)\n && (!m.hasNotePlayingAt(start))\n || m.noteStartsAtExactBeat(start)\n && m.getNoteAtBeat(start).getDuration() == newNote.getDuration())\n && !m.hasNotePlayingAt(end - 1))) {\n cur = m;\n break;\n }\n }\n if (cur == null) {\n cur = new Melody(50, instrument);\n this.melodies.add(cur);\n }\n\n addNoteToProperMelody(newNote, cur, start);\n\n return this;\n }", "title": "" }, { "docid": "1466582b7710d88504d4787e6bd12257", "score": "0.59460914", "text": "public void updateNote()\r\n\t{\r\n\t\tnoteSize = note_Ta.getLength();\r\n\t\t\r\n\t\tAlert alert = new Alert(AlertType.CONFIRMATION);\r\n\t\talert.setTitle(\"Confirmation\");\r\n\t\talert.setHeaderText(null);\r\n\t\talert.setContentText(\"Voulez-vous modfier les notes ?\");\r\n\r\n\t\tOptional<ButtonType> result = alert.showAndWait();\r\n\t\t\r\n\t\tif(result.get() == ButtonType.OK)\r\n\t\t{\r\n\t\t\tthis.getPrincipalUiCtrl().getDatabase().executionQuery(\r\n\t\t\t\t\tString.format(\"call updateNote(\\\"%s\\\",\\\"%s\\\")\",\r\n\t\t\t\t\t\t\tpreviousObject.getIdProduct(),\r\n\t\t\t\t\t\t\tnote_Ta.getText()));\r\n\t\t}\r\n\t\t\r\n\t\tdisplayItems();\r\n\t}", "title": "" }, { "docid": "62382ada0209c55c0553ada5548a7500", "score": "0.5945671", "text": "public void setNotes(String notes)\n {\n this.notes = notes;\n }", "title": "" }, { "docid": "2f842d29f6f65df6bede0009eb790d85", "score": "0.5933119", "text": "HistoryAndPhysicalNote createHistoryAndPhysicalNote();", "title": "" }, { "docid": "590db853597f3045fe5a41b7939b8a60", "score": "0.5914711", "text": "public void setNotes(java.lang.String newNotes) {\n\tnotes = newNotes;\n}", "title": "" }, { "docid": "cd01a2f6396d4a4222a3f373de11d889", "score": "0.59046364", "text": "private void createNote(String newNoteTitle, String newNoteDescription) {\n\n WebDriverWait wait = getWait();\n\n WebElement newNoteButton = driver.findElement(By.id(\"new-note-button\"));\n\n wait.until(ExpectedConditions.elementToBeClickable(newNoteButton)).click();\n wait.until(ExpectedConditions.visibilityOfElementLocated(By.name(\"noteTitle\"))).sendKeys(newNoteTitle);\n wait.until(ExpectedConditions.visibilityOfElementLocated(By.name(\"noteDescription\"))).sendKeys(newNoteDescription);\n\n WebElement saveNote = driver.findElement(By.id(\"save-note-button\"));\n saveNote.click();\n\n }", "title": "" }, { "docid": "4354125c01a59f106e1ec4d0a40aa160", "score": "0.5896744", "text": "public void setNotes(String notes) {\n this.notes = notes;\n }", "title": "" }, { "docid": "54bbe1632c1adb33e953fd51ec4d2b6c", "score": "0.58734185", "text": "public void setNOTES(java.lang.CharSequence value) {\n this.NOTES = value;\n }", "title": "" }, { "docid": "e7ea2ee57b0cd8484fd2e91e89165e39", "score": "0.58507085", "text": "public BookmarkTimelineItem withNotes(String notes) {\n this.notes = notes;\n return this;\n }", "title": "" }, { "docid": "8a338f861f86421cb04ac4f748347bac", "score": "0.58381754", "text": "public void saveNote() {\n drawingView.setPhotoUri(photoUri);\n drawingView.SavingNote();\n }", "title": "" }, { "docid": "bb235930d5164d322809f4f3b9de3765", "score": "0.5835733", "text": "public static void add(IndexWriter writer, AssignmentNote assignmentNote, boolean modified) throws IOException {\n // add the document\n Document document = new Document();\n document.add(Field.Keyword(\"type\", \"activitynote\"));\n document.add(\n Field.Keyword(\n \"assignmentNoteId\", String.valueOf(assignmentNote.getId())));\n document.add(\n Field.Keyword(\n \"assignmentId\", String.valueOf(assignmentNote.getAssignmentId())));\n document.add(\n Field.Keyword(\n \"projectId\", String.valueOf(assignmentNote.getProjectId())));\n document.add(\n Field.Text(\n \"title\", ContentUtils.toText(assignmentNote.getDescription())));\n document.add(\n Field.Text(\n \"contents\",\n ContentUtils.toText(assignmentNote.getDescription())));\n if (modified) {\n document.add(\n Field.Keyword(\n \"modified\", String.valueOf(System.currentTimeMillis())));\n } else {\n document.add(\n Field.Keyword(\n \"modified\", String.valueOf(\n assignmentNote.getEntered().getTime())));\n }\n writer.addDocument(document);\n if (System.getProperty(\"DEBUG\") != null && modified) {\n System.out.println(\n \"AssignmentNoteIndexer-> Added: \" + assignmentNote.getId());\n }\n }", "title": "" }, { "docid": "253b5dd15b483a394d1a072bf0bedb35", "score": "0.5830694", "text": "@Override\r\n\tpublic void solrAddUpdateNote(Note note) {\n\t\tSolrInputDocument document = new SolrInputDocument();\r\n\t\t//solr仅仅存储4个属性\r\n\t\tdocument.setField(\"id\", note.getUuid());\r\n\t\tdocument.setField(\"note_id\", note.getNote_id());\r\n\t\tdocument.setField(\"note_content\", note.getNote_content());\r\n\t\tdocument.setField(\"is_die\", note.getIs_die());\r\n\t\ttry {\r\n\t\t\tsolrServer.add(document);\r\n\t\t\tsolrServer.commit();\r\n\t\t\tlogger.info(\"帖子\" + note.getNote_id() + \"成功添加到索引库\");\r\n\t\t} catch (SolrServerException e) {\r\n\t\t\tSystem.out.println(\"添加到索引库失败\");\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "4ea786117a1c47cf2872e61f110d8b8e", "score": "0.582042", "text": "public long insertNote(String note) {\n SQLiteDatabase database = this.getWritableDatabase();\n ContentValues values = new ContentValues();\n // id and timestamp will insert automaticaly\n values.put(Note.COLUMN_NOTE, note);\n\n //insert row\n long id = database.insert(Note.TABLE_NAME, null, values);\n database.close();\n\n // return newly inserted row id\n return id;\n }", "title": "" }, { "docid": "13a2b3a2dcae8526eedb3d0ccf0dff0f", "score": "0.58134085", "text": "public ResponseEntity<Lead> addNoteToLead(Note note, int id) {\n\t\t\n\t\tLead lead = dBLeadService.retrieveLead(id);\n\t\tlead.setLastTouched(LocalDate.now());\n\t\tnote.setIssueDate(LocalDate.now());\n\t\t\t\n\t\tlead.addNote(note);\n\n\t\treturn dBLeadService.saveLead(lead);\n\n\t}", "title": "" }, { "docid": "97a2637c599856b6a0c3ed75ef666d78", "score": "0.5805849", "text": "public void goToNote(Note note);", "title": "" }, { "docid": "6d898b651d64b718f7d3f9ea2815f695", "score": "0.58021104", "text": "Note updateNote(Note noteModel) throws Exception;", "title": "" }, { "docid": "75006eef54cad6fb0193e82c945a3b28", "score": "0.5793369", "text": "ReferralNote createReferralNote();", "title": "" }, { "docid": "66660184291b0bf4bcfdc05797a2cc95", "score": "0.57921314", "text": "public void setNotes(java.lang.String notes) {\n this.notes = notes;\n }", "title": "" }, { "docid": "0dbf4028b1b5921460f653b1f7190e90", "score": "0.5786929", "text": "public void reqAddUsingNote ( ArrayList<UseNoteData> noteList )\n\t{\n\t\twrite(ProtocolParser20.buildAddUsingNotes( noteList ));\n\t}", "title": "" }, { "docid": "1c02b6899052ba29f442be38284638e2", "score": "0.5785462", "text": "public ActionForward addNote(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {\n LOG.debug(\"Inside addNote Method of OleInvoiceAction\");\n OleInvoiceForm paymentForm = (OleInvoiceForm) form;\n OleInvoiceDocument paymentDocument = (OleInvoiceDocument) paymentForm.getDocument();\n int line = this.getSelectedLine(request);\n OleInvoiceItem item = (OleInvoiceItem) ((PurchasingAccountsPayableDocument) paymentForm.getDocument()).getItem(line);\n OleInvoiceNote note = new OleInvoiceNote();\n note.setNote(item.getNote());\n// boolean rulePassed = getKualiRuleService().applyRules(new OleNoteTypeEvent(purDocument,note));\n// if(rulePassed){\n item.getNotes().add(note);\n LOG.debug(\"Adding InvoiceNote to the InvoiceItem\");\n item.setNote(null);\n LOG.debug(\"Leaving addNote Method of OleInvoiceAction\");\n// }\n return mapping.findForward(OLEConstants.MAPPING_BASIC);\n }", "title": "" }, { "docid": "e0bdf691889dddf16e7315d8ac7d8631", "score": "0.5771332", "text": "public Note(Note newNote){\n this(newNote.getName(), newNote.getFrequency(), newNote.getVelocity(), newNote.getAttack(), \n newNote.getDecay(), newNote.getSustain(), newNote.getRelease());\n setIsActive(newNote.getIsActive());\n }", "title": "" }, { "docid": "9afc1fc08332fbf2c9b135d43427e51e", "score": "0.5767657", "text": "void changeNote() {\n System.out.println(\"Enter note id to edit: \");\n Scanner inCh = new Scanner(System.in);\n int idCh = inCh.nextInt();\n\n System.out.println(\"Enter your name ===>\");\n Scanner inAuthor = new Scanner(System.in);\n String author = inAuthor.nextLine();\n\n System.out.println(\"Edit: \");\n Scanner inEdit = new Scanner(System.in);\n String editNote = inEdit.nextLine();\n Note editN = new Note(editNote, author);\n notepad[idCh] = editN;\n\n System.out.println(\"Replaced with: \" + editN);\n operation();\n }", "title": "" }, { "docid": "b55f1552dc2e3d3e25960a2455a075e7", "score": "0.5766937", "text": "@Override\n public void addNewContact(String name, String notes) {\n }", "title": "" }, { "docid": "e7fd0d199d180ba3f44a5037421d73c0", "score": "0.5764579", "text": "void addSustain(Note n, int beat);", "title": "" }, { "docid": "6c50d6cd28792606b3e4eb04ee598dfd", "score": "0.5757219", "text": "public static Result createNote(Long aId) {\n return editNote(aId, 0L);\n }", "title": "" }, { "docid": "8ce7d182bb668217ac3259013d4898a3", "score": "0.5732567", "text": "private Note buildNote(){\n\n Note note = new Note();\n\n note.setDate(this.noteDate);\n note.setTitle(this.noteTitle.getText().toString());\n note.setHours(this.noteHours.getText().toString()+\":\"+this.noteMinutes.getText().toString());\n note.setParticipants(this.noteParticipants.getText().toString());\n note.setPlace(this.notePlace.getText().toString());\n\n return note;\n }", "title": "" }, { "docid": "88fa777b1576cf5b6b4ff5e839f38c5c", "score": "0.5716233", "text": "public boolean addNotesToAppointment(AppointmentDto appointment);", "title": "" } ]
812ee39cee05c8597629a57315d363ee
Constructs a new Application object for FaceSelect program
[ { "docid": "df6d7f12627685e9bd77a01b86790bf2", "score": "0.0", "text": "public Main() {\n\t\tsuper();\n\t}", "title": "" } ]
[ { "docid": "e6e1bc60736f465a1ad5ebd69911284e", "score": "0.6862162", "text": "Application createApplication();", "title": "" }, { "docid": "0362a3a40a87f761b6251bbe6fdb211f", "score": "0.6291209", "text": "public FanApp() {\n\t\tinitGUI();\n\t}", "title": "" }, { "docid": "a82142aae5fab85a2bb4597356743038", "score": "0.6128749", "text": "private static Application createApplication() {\n\t\tApplication application = new Application();\n\t\tapplication.setTeamName(\"TEST\");\n\t\tapplication.setApplicationName(\"testApp\");\n\n\t\tEnvironment qaEnvronment = new Environment();\n\t\tqaEnvronment.setName(\"QA\");\n\n\t\tServer server1 = new Server();\n\t\tserver1.setHostName(\"http://qawebserver/\");\n\t\tserver1.setInstanceName(WEBSERVER);\n\t\tserver1.setOperatingSystem(\"unix\");\n\n\t\tSoftwareComponent swc1 = new SoftwareComponent();\n\t\tswc1.setProcessName(\"httpd\");\n\t\tswc1.setServerComponentName(\"web server\");\n\n\t\tList<SoftwareComponent> swcList = new ArrayList<>();\n\t\tswcList.add(swc1);\n\t\tserver1.setSwComps(swcList);\n\n\t\tList<Server> webTierServerList = new ArrayList<>();\n\t\twebTierServerList.add(server1);\n\t\tqaEnvronment.setServerList(webTierServerList);\n\t\tapplication.addEnvironment(qaEnvronment);\n\n\t\treturn application;\n\t}", "title": "" }, { "docid": "d65b95ecd93d5e679d862d22f5734593", "score": "0.60574347", "text": "private static Application createApplication(List<String> applicationData) {\n Application application = new Application();\n application.setApplicantsName(applicationData.get(0));\n application.setApplicantsHeight(new BigDecimal(applicationData.get(1)));\n application.setApplicantsBmi(new BigDecimal(applicationData.get(2)));\n application.setApplicantsScore(Integer.parseInt(applicationData.get(3)));\n application.setApplicantsDefends(Integer.parseInt(applicationData.get(4)));\n return application;\n }", "title": "" }, { "docid": "c6a0211390653102b16df40ed8701ba4", "score": "0.60005903", "text": "private loadApplication(){}", "title": "" }, { "docid": "4d438566506cd356b0d251c9bf5f9813", "score": "0.59769446", "text": "public App(Env e) {\n \tmap = new Warehouse();\n aStar = new AStar();\n env = e;\n mainFrame = new MainFrame();\n mainFrame.setVisible(true); \n \n }", "title": "" }, { "docid": "739aa3d8800b3d3197f3868d9176dd98", "score": "0.59040433", "text": "public ApplicationDialog(Frame paramFrame, String paramString)\r\n/* */ {\r\n/* 78 */ super(paramFrame, paramString, 0);\r\n/* 79 */ setFilenameFilter(new ApplicationFilter(null));\r\n/* 80 */ this.modeCheckingEnabled = true;\r\n/* */ }", "title": "" }, { "docid": "d27253491f8e5dd98e2d7942098ebfb6", "score": "0.58952045", "text": "public static void main(String[] args) {\n\r\n JFrame pol = new JFrame();\r\n pol.getContentPane().add(new ApplicationInterface());\r\n pol.setVisible(true);\r\n pol.setSize(800, 800);\r\n\r\n }", "title": "" }, { "docid": "8cba42181e87e501ad0005bb2c8777dd", "score": "0.58404374", "text": "public Application() {\n tableModel = new FileProcessingResultTableModel();\n initComponents();\n }", "title": "" }, { "docid": "26b09133fc10fc459e0279cb741f1aa6", "score": "0.57628894", "text": "public ApplicationWindow() {\n super();\n initialize();\n }", "title": "" }, { "docid": "af1ebc6a2bed8f244e61b28e15260256", "score": "0.57495034", "text": "public SpreedApp() {\n\t\tinitialize();\n\t}", "title": "" }, { "docid": "ad4a1b5acf8a748e24335119d6bf2b04", "score": "0.5701963", "text": "public WMBGApplication() {\n\t\tsuper();\n\t\tWMBGApplication.instance = this;\n\t}", "title": "" }, { "docid": "dc879a1594ee640d4537b373417afb3a", "score": "0.56931883", "text": "private JFrame getApplicationFrame() {\n\t\tif (applicationFrame == null) {\n\t\t\tapplicationFrame = new JFrame();\n\t\t\tapplicationFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\tapplicationFrame.setSize(380, 241);\n\t\t\tapplicationFrame.setContentPane(getApplicationPane());\n\t\t\tapplicationFrame.setTitle(\"Application\");\n\t\t\tapplicationFrame.setResizable(false);\n\n\t\t\tbutton = new JToggleButton[] {butt1,butt2,butt3,butt4,butt5,butt6};\n\t\t\ttoggle = new JCheckBox[] {toggle1,toggle2,toggle3,toggle4,toggle5,toggle6};\n\t\t\tbuttonB = new JToggleButton[] {butt1b,butt2b,butt3b,butt4b,butt5b,butt6b};\n\n\t\t\tfor(int i=0;i<button.length;i++) {\n\t\t\t\tbutton[i].setFocusable(false);\n\t\t\t\ttoggle[i].setFocusable(false);\n\t\t\t\tbuttonB[i].setFocusable(false);\n\t\t\t}\n\t\t\t\n\t\t\tcont = new Cont(button,toggle);\n\t\t\tcont.start();\n\t\t\t\n\t\t\tgetOptionFrame().setVisible(true);\n\t\t}\n\t\treturn applicationFrame;\n\t}", "title": "" }, { "docid": "b35f7cfd74fad9e14933c121b1e46f92", "score": "0.56907755", "text": "public interface Application\r\n {\r\n /** Create a new application. Implementations should avoid overwriting \r\n existing apps with the same ID.\r\n */\r\n public void create(String appID, Enumeration args)\r\n throws ApplicationOpenException;\r\n\r\n /** Open an existing application\r\n */\r\n public void open(String appID, Enumeration args) \r\n throws ApplicationOpenException;\r\n\r\n /** Close this application. Preserve state, if appropriate.\r\n */\r\n public void close();\r\n\r\n /** Remove an application's persistent state. \r\n (USE WITH CARE!)\r\n */\r\n public void delete(String appID);\r\n\r\n /** Does an application called 'appID' exist?\r\n */\r\n public boolean exists(String appID);\r\n\r\n /** Get the ID of this application\r\n */\r\n public String getID();\r\n\r\n /** Get some information about this application\r\n */\r\n public String getInfo();\r\n \r\n /** Create a channel for this application\r\n */\r\n public Channel newChannel();\r\n }", "title": "" }, { "docid": "1457278bf1ce2d10c3b8abf79ab04b64", "score": "0.5672527", "text": "public void setApp(Main application) \n {\n this.application = application;\n\n }", "title": "" }, { "docid": "c733aa0bf85d7cba7970be57a0ae6b14", "score": "0.5650711", "text": "private static void buildApplicationInterface() {\n // Create the tabbed panes for the viewers\n //-------------------------------------------------------\n \tif (!VUE.isApplet())\n \t{\n \t\tmMapTabsLeft = new MapTabbedPane(\"*left\", true);\n \t\tmMapTabsRight = new MapTabbedPane(\"right\", false);\n \t}\n \telse\n \t\tmMapTabsLeft = new MapTabbedPane(\"*left\",true);//VueApplet.getMapTabbedPane();\n \n \n //-------------------------------------------------------\n // Create the split pane\n //-------------------------------------------------------\n \tmViewerSplit = buildSplitPane(mMapTabsLeft, mMapTabsRight);\n \tif (VUE.isApplet())\n \t{\n \t\tmViewerSplit.setBackground(new Color(244,244,244));\n \t\t\n \t}\n \t//GUI.applyToolbarColor(mMapTabsRight);\n \n //-------------------------------------------------------\n // create a an application frame and layout components\n //-------------------------------------------------------\n \n if (DEBUG.INIT) out(\"creating VueFrame...\");\n\n if (!VUE.isApplet())\n \tVUE.ApplicationFrame = new VueFrame();\n \n if (DEBUG.INIT) out(\"created VueFrame\");\n\n //------------------------------\n // Set popups heavyweight throughout the application\n //-------------------------------\n /* Originally doing this created some problems, but it looks like previous\n * changes I made in the heavyweight popup stuff have made. I can't find \n * a case where this would *really* help out on the mac so I'm strictly \n * using this for windows/unix right now. Unix because when i booted this \n * up in linux i noticed the same problem melanie reported on windows\n */\n //if (Util.isWindowsPlatform() || Util.isUnixPlatform())\n // if (VUE.isApplet())\n //PopupFactory.setSharedInstance(new VuePopupFactory(PopupFactory.getSharedInstance()));\n //-----------------------------------------------------------------------------\n // Man VUE Toolbar (map editing tool)\n //-----------------------------------------------------------------------------\n \n // The real tool palette window withtools and contextual tools\n VueToolbarController tbc = VueToolbarController.getController();\n \n ModelSelection.addListener(tbc);\n\n DockWindow toolbarDock = null;\n\n final JComponent toolbar;\n JPanel toolbarPanel = null; \n if (!VUE.isApplet())\n {\n \t if (VueToolPanel.IS_CONTEXTUAL_TOOLBAR_ENABLED)\n toolbar = tbc.getToolbar();\n else\n toolbar = tbc.getToolbar().getMainToolbar();\n \t \n \ttoolbarPanel = constructToolPanel(toolbar);\n \tif (ToolbarAtTopScreen) {\n toolbarDock = GUI.createToolbar(\"Toolbar\", toolbar);\n } else {\n ApplicationFrame.addComp(toolbarPanel, BorderLayout.NORTH);\n }\n }\n \n createDockWindows();\n\n \n final tufts.vue.gui.Screen screen = GUI.getScreenForWindow(null);\n \n if (!VUE.isApplet())\n {\n \t// GUI.createDockWindow(\"Font\").add(new FontEditorPanel()); // just add automatically?\n \t\n \t//final DockWindow fontDock = GUI.createToolbar(\"Font\", new FontPropertyPanel());\n \t// final DockWindow fontDock = GUI.createToolbar(\"Font\", new FontEditorPanel(LWKey.Font));\n \t//final DockWindow linkDock = GUI.createToolbar(\"Link\", new LinkPropertyPanel());\n \t//final DockWindow actionDock = GUI.createToolbar(\"Actions\", new VueActionBar());\n \t//final DockWindow fontDock = null;\n \t//final DockWindow linkDock = null;\n \t//final DockWindow actionDock = null;\n \t//fontDock.setResizeEnabled(false);\n \t//linkDock.setResizeEnabled(false);\n \n \t//pannerDock.setChild(linkDock);\n \n \t//fontDock.setChild(linkDock);\n \t\n \t//fontDock.setLowerRightCorner(GUI.GScreenWidth, GUI.GScreenHeight);\n \n \t/*\n \t * This isn't currently used now but I have a feeling it'll come back if not i'll remove it.\n \t */\n \t// Now that we have all the DockWindow's created the VueMenuBar, which needs the\n \t// list of Windows for the Window's menu. The order they appear in this list is\n \t// the order they appear in the Window's menu.\n \t//VUE.ToolWindows = new Object[] {\n \t\t//unused stuff.\n \t\t//searchDock,\n \t\t/* keywords goes here when its done*/\n \t\t//ObjectInspector, \t\n \t\t/* Linear View goes here when its done*/\n \t\t//MapInspector,\n \t\t/* node inspector */\n \t\t/*notes didn't end up getting its own window*/\n \t\t//outlineDock,\n \t\t//pannerDock, \t\n \t\t//DR_BROWSER_DOCK,\n \t\t//slideDock, \n \t\t//resourceDock,\n \t\t//formatDock, \n \t\t//htWindow,\n \t\t//pathwayDock, \n \t\t//actionDock,\n \t\t//fontDock,\n \t\t//linkDock,\n \t\t// toolbarDock, \n \t\t//};\n\n \t// adding the menus and toolbars\n \tif (DEBUG.INIT) out(\"setting JMenuBar...\");\n \tApplicationFrame.setJMenuBar(VueMenuBar.RootMenuBar = new VueMenuBar(/*VUE.ToolWindows*/));\n \tif (DEBUG.INIT) out(\"VueMenuBar installed.\");;\n \n \tif (true){\n \t\tApplicationFrame.addComp(mViewerSplit, BorderLayout.CENTER);\n \t}\n \telse{\n \t\tApplicationFrame.addComp(mMapTabsLeft, BorderLayout.CENTER);\n \t}\n \n \ttry {\n \t\tApplicationFrame.pack();\n \t} catch (ArrayIndexOutOfBoundsException e) {\n \t\tLog.error(\"OSX TIGER JAVA BUG at frame.pack()\", e);\n \t}\n \n \t/*\n \tif (SKIP_DR) {\n \tApplicationFrame.setSize(750,450);\n \t} else {\n \tApplicationFrame.setSize(800,600);\n \t// todo: make % of screen, make sure tool windows below don't go off screen!\n \t}\n \t */\n \n \t//if (DEBUG.INIT) out(\"validating frame...\");\n \tApplicationFrame.validate();\n \t//if (DEBUG.INIT) out(\"frame validated\");\n\n \t//int appWidth = (int) (GUI.GScreenWidth * 0.75);\n \t//int appHeight = (int) (GUI.GScreenHeight * 0.75);\n\n \t// If you've got a wide screen, leave at least 600\n \t// pixels at the right for two full 300pix DockWindow's\n \t/* VUE-795 replaces the default screen sizing logic...\n \t * if (GUI.GScreenWidth >= 1600) { \n \tint maxWidth = GUI.GScreenWidth - (GUI.GInsets.left + DockWindow.DefaultWidth * 2);\n \tif (appWidth > maxWidth)\n \tappWidth = maxWidth;\n \t\t}\n\n \tif (appWidth > 1600)\n \tappWidth = 1600;\n \tif (appHeight > 1024)\n \tappHeight = 1024;\n \t */\n\n \tint appWidth = (int) (screen.width * 0.90);\n \tint appHeight = (int) (screen.height * 0.90);\n \n \tif (screen.width > 1280) { \n appWidth = (int) (screen.width * 0.75);\n appHeight = (int) (screen.height * 0.90);\n \t}\n\n \tWindowPropertiesPreference wpframe = ApplicationFrame.getWindowProperties();\n \n \tDimension sz = wpframe.getWindowSize();\n \tPoint pos = wpframe.getWindowLocationOnScreen();\n \t\n \tif (wpframe.isEnabled() && !wpframe.isAllValuesDefaults() &&\n \t\t\tApplicationFrame.isPointFullyOnScreen(pos,sz))\n \t{\n if ((sz.getWidth() < 100) || (sz.getHeight() < 100))\n ApplicationFrame.setSize((int)appWidth, (int)appHeight);\n else \t\t\n ApplicationFrame.setSize((int)sz.getWidth(), (int)sz.getHeight());\n \n if ((pos.getX() < 0) || (pos.getY() < 0)) {\n ApplicationFrame.setLocation\n (screen.margin.left,\n screen.margin.top + (ToolbarAtTopScreen ? DockWindow.ToolbarHeight : 0));\n } else {\n ApplicationFrame.setLocation((int)pos.getX(),(int)pos.getY());\n }\n \t}\n \telse\n { \t \n ApplicationFrame.setSize(appWidth, appHeight);\n ApplicationFrame.setLocation\n (screen.margin.left,\n screen.margin.top + (ToolbarAtTopScreen ? DockWindow.ToolbarHeight : 0));\n \t}\n \t// MAC NOTE WITH MAXIMIZING: if Frame's current location y value\n \t// is less than whatever's it's maximized value is set to, maximizing\n \t// it will use the y value, not the max value. True even if set\n \t// y value after setting to maximized but before it's put on screen.\n \n \t//GUI.centerOnScreen(ApplicationFrame);\n\n /*-------------------------------------------------------\n \tfinal boolean loadTopDock = false;\n\n \tif (loadTopDock && DockWindow.getMainDock() != null) {\n \t\t// leave room for dock at top\n \t\tRectangle maxBounds = GUI.getMaximumWindowBounds();\n \t\tint adj = DockWindow.getCollapsedHeight();\n \t\tmaxBounds.y += adj;\n \t\tmaxBounds.height -= adj;\n \t\tApplicationFrame.setMaximizedBounds(maxBounds);\n \t}\n \n \tif (false) ApplicationFrame.setExtendedState(Frame.MAXIMIZED_BOTH);\n -------------------------------------------------------*/\n\n \t/*\n \tif (!SKIP_DR) {\n \tLWMap startupMap = null;\n \ttry {\n \tfinal java.net.URL startupURL;\n \tstartupURL = VueResources.getURL(\"resource.startmap\");\n \tstartupMap = OpenAction.loadMap(startupURL);\n \tstartupMap.setFile(null); // dissassociate startup map from it's file so we don't write over it\n \tstartupMap.setLabel(\"Welcome\");\n \tstartupMap.markAsSaved();\n \t} catch (Exception ex) {\n \tex.printStackTrace();\n \tVueUtil.alert(null, \"Cannot load the Start-up map\", \"Start Up Map Error\");\n \t}\n\n \ttry {\n \tif (startupMap != null)\n \tdisplayMap(startupMap);\n \t} catch (Exception ex) {\n \tex.printStackTrace();\n \tVueUtil.alert(null, \"Failed to display Start-up Map\", \"Internal Error\");\n \t}\n \n \t} else {\n \t//pannerTool.setVisible(true);\n \t}\n \t */\n\n \tif (FilesToOpen.size() == 0)\n \t\tVUE.displayMap(new LWMap(VueResources.getString(\"vue.main.newmap\")));\n\n \t// Generally, we need to wait until java 1.5 JSplitPane's have been validated to\n \t// use the % set divider location. Unfortunately there's a bug in at MacOS java\n \t// 1.5 BasicSplitPaneUI (it's not in the 1.4 version), where setKeepHidden isn't\n \t// being called when the divider goes to the wall via setDividerLocation, only when\n \t// the one-touch buttons are manually clicked. So, for example, if the user\n \t// de-maximizes the frame, suddenly a hidden split-pane will pop out! So, we've\n \t// hacked into the UI code, grabbed the damn right-one-touch button, grabbed\n \t// it's action listener, and here just call it directly...\n \t// \n \t// See javax.swing.plaf.basic.BasicSplitPaneDivider.OneTouchActionHandler.\n \t//\n \t// It appears on Windows we need to actually wait till the frame is shown also...\n\n \t// show before split adjust on pc\n \t//if (!Util.isMacPlatform())\n \t\tApplicationFrame.setVisible(true);\n \n \tif (SplitPaneRightButtonOneTouchActionHandler != null) {\n \t\tif (DEBUG.INIT) Util.printStackTrace(\"\\\"pressing\\\": \" + SplitPaneRightButtonOneTouchActionHandler);\n\n \t\t// Not reliable on PC unless we invokeLater\n \t\tif (!VUE.isApplet())\n \t\t{\n \t\t\tGUI.invokeAfterAWT(new Runnable() { public void run() {\n \t\t\tSplitPaneRightButtonOneTouchActionHandler.actionPerformed(null); \n \t\t\t}});\n \t\t}\n \t\t// this is also eventually getting eaten in java 1.5: no matter where\n \t\t// we put this call during init: will have to patch w/more hacking\n \t\t// or live with it. Actually, it get's eaten eventually in java 1.4.2\n \t\t// also.\n\n \t\t// Maybe because we maximized the frame before it was shown?\n \t\t// [ not making a difference]\n\n \t\t// Well. this is working at least the first time now by\n \t\t// doing it BEFORE the peers are created.\n \t\t//mViewerSplit.setResizeWeight(0.5d);\n \n \t} else {\n \t\t// for java 1.4.2\n \t\tmViewerSplit.setDividerLocation(1.0);\n \t}\n\n \t// can show after split adjust on mac (turns out: only on older, slower macs)\n \tif (Util.isMacPlatform()) {\n \t\tApplicationFrame.setVisible(true);\n \n\n\n if (SplitPaneRightButtonOneTouchActionHandler != null) {\n // This is backup: hit it one more time just in case, as on the\n // newer, faster intel Mac's, the timing is changed and the\n // above is no longer catching it.\n GUI.invokeAfterAWT(new Runnable() { public void run() {\n SplitPaneRightButtonOneTouchActionHandler.actionPerformed(null); \n }});\n }\n }\n \n }\n if (toolbarDock != null) {\n toolbarDock.suggestLocation(screen.top, screen.left);\n toolbarDock.setWidth(screen.width);\n toolbarDock.setVisible(true);\n }\n\n //-----------------------------------------------------------------------------\n //\n // Set locations for the inspector windows and make some of them visible\n //\n //-----------------------------------------------------------------------------\n\n \n positionDockWindows(screen);\n\n mapInspectorPanel.metadataPanel.refreshAll();\n \n \n \t//I'm just putting a comment in here becuase this seems odd to me, and I wanted it to be clear it was intentional.\n \t//\"As we move away from a \"datasource\" centric vision of VUE, the \"Content\" window should be collapsed when launching VUE\"\n \t//This will only take effect the first time VUE is started or when preference to remember window position is disabled.\n \t// -MK\n\n \tif (!formatDock.getWindowProperties().isEnabled())\n \t{\n \t\tformatDock.setLowerLeftCorner(VueResources.getInt(\"formatting.location.x\"),\n \t\t\tVueResources.getInt(\"formatting.location.y\")+100);\n// \tformatDock.setLocation(,\n // ); \t\n \t\n \t\tDockWindow.flickerAnchorDock();\n \tif (!VUE.isApplet())\n \t\tformatDock.setVisible(true);\n \t}\n \n }", "title": "" }, { "docid": "a56393db19667f402545ea68c70bd5f3", "score": "0.5647159", "text": "@DISPID(2020) //= 0x7e4. The runtime will prefer the VTID if present\r\n @VTID(40)\r\n ppt._Application application();", "title": "" }, { "docid": "073459b33149ed29bad57365b5796aea", "score": "0.5639973", "text": "@DISPID(2001) //= 0x7d1. The runtime will prefer the VTID if present\r\n @VTID(7)\r\n ppt._Application application();", "title": "" }, { "docid": "b18ecb00b0588e384f1645aa98a5d523", "score": "0.55233395", "text": "public static ComboBoxApp getApplication() {\n return Application.getInstance(ComboBoxApp.class);\n }", "title": "" }, { "docid": "e53d7f3456895c59133b384da0c031c9", "score": "0.5489246", "text": "@Override\n\tpublic void addApplication() {\n\t\t\n\t}", "title": "" }, { "docid": "7bc67a8670aff904ce1510e2a494d301", "score": "0.54773855", "text": "public static AnalyseApp getApplication() {\n return Application.getInstance(AnalyseApp.class);\n }", "title": "" }, { "docid": "22f13ba2589378e76891bd6ad56b4697", "score": "0.5464912", "text": "ApplicationDescriptor createApplicationDescriptor();", "title": "" }, { "docid": "4279d2f528fc4db191b1b7bbd3b2f239", "score": "0.5463481", "text": "ApplicationComponent createApplicationComponent();", "title": "" }, { "docid": "1025d26635e9c7939013e0c1284a2c55", "score": "0.5434339", "text": "public void setApp(Main application){\n\t\tthis.application = application;\n\t}", "title": "" }, { "docid": "6f6347813d06f94329fdcac54f0997cf", "score": "0.5424458", "text": "public static void main(String[] args) {\n\t\tApplication ex = new Application();\n\t\tex.setVisible(true);\n\t}", "title": "" }, { "docid": "baf55ce94f2b199d44ef17afae86915b", "score": "0.54213184", "text": "private App() {\n super(\"app\", null);\n }", "title": "" }, { "docid": "ad9f04a5c06719f872cbb3edd9f4478e", "score": "0.5409849", "text": "private Application()\n {\n }", "title": "" }, { "docid": "4627b70e4de30bf62f2030904f1d442a", "score": "0.5408682", "text": "public StockApp() {\n this.input = new InputReader();\n this.manager = new StockManager();\n new StockDemo(manager);\n }", "title": "" }, { "docid": "324b6e0646e270069675b3f7c3097fbd", "score": "0.53967416", "text": "private static void initApp() {\n data = new PhoneBook();\n functions = new HashMap<>();\n\n functions.put(1, new Pair<>(\"Add data\", MainApplication::addData));\n functions.put(2, new Pair<>(\"Check number\", MainApplication::checkNumber));\n functions.put(3, new Pair<>(\"Edit data\", MainApplication::editData));\n functions.put(4, new Pair<>(\"Remove data\", MainApplication::removeData));\n functions.put(5, new Pair<>(\"Exit application\", MainApplication::programExit));\n }", "title": "" }, { "docid": "e8965bca3ced66b38d410b7bbe55f491", "score": "0.53867394", "text": "public LocationApplication()\r\n { \r\n// \tFetchDeviceProperties();\r\n // Push a screen onto the UI stack for rendering.\r\n pushScreen(new UIScreen());\r\n }", "title": "" }, { "docid": "5a3e00d79ed9562ad03d6c4af8f60025", "score": "0.53859854", "text": "public static CodeAssistenceApp getApplication() {\n return Application.getInstance(CodeAssistenceApp.class);\n }", "title": "" }, { "docid": "69d3639fa1dbea972e34fd5984020396", "score": "0.53857595", "text": "private IApplication getApplication(String applicationToRun) throws CoreException {\n // Assume we are in 3.0 mode.\n // Find the name of the application as specified by the PDE JUnit launcher.\n // If no application is specified, the 3.0 default workbench application\n // is returned.\n IExtension extension = Platform.getExtensionRegistry().getExtension( Platform.PI_RUNTIME, Platform.PT_APPLICATIONS,\n applicationToRun );\n if (extension == null)\n return null;\n\n // If the extension does not have the correct grammar, return null.\n // Otherwise, return the application object.\n IConfigurationElement[] elements = extension.getConfigurationElements();\n if (elements.length > 0) {\n IConfigurationElement[] runs = elements[0].getChildren( \"run\" ); //$NON-NLS-1$\n if (runs.length > 0) {\n Object runnable = runs[0].createExecutableExtension( \"class\" ); //$NON-NLS-1$\n if (runnable instanceof IApplication)\n return (IApplication) runnable;\n }\n }\n\n return null;\n }", "title": "" }, { "docid": "f7e1c764fcbaa0d846853285409189b9", "score": "0.53842676", "text": "public void setApp(Main app) {\n application = app;\n }", "title": "" }, { "docid": "0c415286deb13fd159416235606587f6", "score": "0.5371244", "text": "@DISPID(61440) //= 0xf000. The runtime will prefer the VTID if present\n @VTID(7)\n _Application application();", "title": "" }, { "docid": "0c415286deb13fd159416235606587f6", "score": "0.5371244", "text": "@DISPID(61440) //= 0xf000. The runtime will prefer the VTID if present\n @VTID(7)\n _Application application();", "title": "" }, { "docid": "ec44dbb2d06ee15931b9923e8581a5a2", "score": "0.53525025", "text": "@DISPID(1000) //= 0x3e8. The runtime will prefer the VTID if present\r\n @VTID(7)\r\n word._Application application();", "title": "" }, { "docid": "53151edcb2de19946450e4fb7cfb2872", "score": "0.5350719", "text": "public mBaseApplication() {\r\n\r\n\t}", "title": "" }, { "docid": "9618ba9aa54bffde70051b02e596e10b", "score": "0.5350085", "text": "public ApplicationSelection(ApplicationSelection app) {\n\t\tthis.appName = app.appName;\n\t\tthis.selected = app.selected;\n\t\tthis.color = app.color;\n\t\tthis.ipAddressSelection = new HashMap<InetAddress, IPAddressSelection>(app.ipAddressSelection.size());\n\t\tfor (IPAddressSelection sel : app.ipAddressSelection.values()) {\n\t\t\tipAddressSelection.put(sel.getIpAddress(), new IPAddressSelection(sel));\n\t\t}\n\t}", "title": "" }, { "docid": "ff9d25ec39bf58009aa5140f773f5a93", "score": "0.53369033", "text": "public static SigeveApp getApplication()\n {\n return Application.getInstance( SigeveApp.class );\n }", "title": "" }, { "docid": "98a94e42e7db97d2f12920ffc7d4bac4", "score": "0.53334254", "text": "private static void main(String[] args){\n System.out.println(\"Is it working yet?\");\n GuiFace frame = new GuiFace();\n frame.setTitle(\"GUI Changing Face\");\n frame.setDefaultCloseOperation(EXIT_ON_CLOSE);\n frame.setVisible(true);\n }", "title": "" }, { "docid": "7f09dc7394d1232946be5088337cdbc8", "score": "0.5331", "text": "public org.globus.swift.language.ApplicationBinding addNewApplication()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.globus.swift.language.ApplicationBinding target = null;\n target = (org.globus.swift.language.ApplicationBinding)get_store().add_element_user(APPLICATION$0);\n return target;\n }\n }", "title": "" }, { "docid": "547e494a2717968427d114dd2c8ce2d8", "score": "0.5311122", "text": "public void setApp(Application app) {\n\t\t\r\n\t}", "title": "" }, { "docid": "2b964666a1ee7c8ec013b1cc3ad92d3d", "score": "0.53055114", "text": "public StApplicationRecord() {\n super(StApplication.ST_APPLICATION);\n }", "title": "" }, { "docid": "3c114f45b127bcc48a42aa11e66ca145", "score": "0.5301214", "text": "public static void main(String[] args) {\n launch(ComboBoxApp.class, args);\n }", "title": "" }, { "docid": "4e3b834b473be42e3f8eb363c1046409", "score": "0.5299624", "text": "public static void main(String[] args) {\n\t\tJFrame frame = new Application(\"The Mancala Game\");\n\t\tframe.setVisible(true);\n\t}", "title": "" }, { "docid": "99c7511a28e9bb58b6e5a9f25868c339", "score": "0.52933586", "text": "public Application GetAppModuleUsingFacesContext() {\n return getFacesContext().getApplication();\r\n }", "title": "" }, { "docid": "755b027c0437ca2b3c7646c517157ca6", "score": "0.52860886", "text": "public AbstractApp()\n {\n /* Nothing to do */\n }", "title": "" }, { "docid": "a066c8e44fcabbe0afa3ca96ced38fe7", "score": "0.5261607", "text": "public DGuiClientApp() {\r\n initComponents();\r\n initComponentsCustom();\r\n }", "title": "" }, { "docid": "c07f44280ad06df558145348d47c0ffd", "score": "0.52575153", "text": "protected void startApp() {\n\t\tmDisplay = Display.getDisplay(this);\n\t\tthis.createCommand();\n\t\ttry {\n\t\t\tthis.createList();\n\t\t} catch (RecordStoreNotOpenException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t}\n\t\tthis.createForm();\n\t\tmDisplay.setCurrent(mlist);\n\n\t}", "title": "" }, { "docid": "b3718fcf20f4d1b8a02be86f3e839644", "score": "0.5256979", "text": "public StockApp()\n {\n input = new InputReader();\n manager = new StockManager();\n demo = new StockDemo(manager);\n }", "title": "" }, { "docid": "0278e4119da57fa5e3f5e0d60a796cb9", "score": "0.52552253", "text": "public AppinfoExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "title": "" }, { "docid": "212d6445e4b2fad9a60c7dbdb7a64a9f", "score": "0.5233464", "text": "public Application(Model m) {\n\t\tthis.model = m;\n\t\tinitialize();\n\t}", "title": "" }, { "docid": "5797532b2734a541ac6f5d02a06451f9", "score": "0.5232049", "text": "public ChatAppController()\n\t{\n\t\tappView = new ChatBotView(this);\n\t\tbaseFrame = new ChatBotFrame(this);\n\t\tnotSoCleverBot = new ChatBot(\"Mr. not so clever\");\n\t\tstartMessage = \"Welcome to the \" + notSoCleverBot.getName() + \" ChatBot, type in you name.\";\n\t}", "title": "" }, { "docid": "6dc2e54f74a7e40f9d42e53a5a55ef54", "score": "0.5227309", "text": "@SuppressWarnings(\"unchecked\")\n \tpublic SwtDemoApplication() {\n \n \t\tsuper();\n \n \t\tString lnfClassName = System.getProperty(\"riena.lnf\", \"\"); //$NON-NLS-1$ //$NON-NLS-2$\n \t\tif (!StringUtils.isEmpty(lnfClassName)) {\n \t\t\ttry {\n \t\t\t\tClass lnfClass = this.getBundle().loadClass(lnfClassName);\n \t\t\t\tRienaDefaultLnf lnf;\n \t\t\t\tlnf = (RienaDefaultLnf) lnfClass.newInstance();\n \t\t\t\tLnfManager.setLnf(lnf);\n \t\t\t} catch (Exception e) {\n \t\t\t\te.printStackTrace();\n \t\t\t}\n \t\t}\n \n \t}", "title": "" }, { "docid": "a1dc97263d8daeb2cec1c990c1d864ee", "score": "0.52249706", "text": "public static App crearAleatorio() {\n \n final double VALORMAX = 1024;\n final double VALORMIN = 100;\n\n App aplicacion = new App();\n \n aplicacion.setDescripcion(generarDescripcion());\n aplicacion.setFechaCreacion(generarFecha());\n aplicacion.setTamanio(generarTamanio(VALORMAX, VALORMIN));\n \n return aplicacion;\n }", "title": "" }, { "docid": "cc3fe61fc390f59b27bebba6c4df3c61", "score": "0.52204084", "text": "public Builder setApplication(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n application_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "f21c005a5be04a8a35111c7a58213798", "score": "0.52151144", "text": "public FarkleServerApplication() {\n\t\tsingletons.add( new crud() ); // Example resource, to be removed later\n\t\tsingletons.add( new AuthenticatorFilter() ); // Authentication filter\n\t}", "title": "" }, { "docid": "a50803334e04ed254531d8078c3c2468", "score": "0.5206518", "text": "public static void main(String[] args) {\n createApplication();\n }", "title": "" }, { "docid": "b8d18a6104c16252a8cbcd604375b41e", "score": "0.5206496", "text": "public Application(Worker worker, Vacancy vacancy) {\n\t\tsuper();\n\t\tsetWorker(worker);\n\t\tsetVacancy(vacancy);\n\t\tthis.vacancy = vacancy;\n\t\tdateOpened = (long)SimulationEngine.getInstance().getTime();\n\t\toutcome = ApplicationOutcome.StillOpen;\n\t\tvacancy.addApplication(this);\n\t\tmodel = (ApplicationsModel) SimulationEngine.getInstance().getManager(ApplicationsModel.class.getCanonicalName());\n\t\tmodel.getApplicationList().add(this);\n\t}", "title": "" }, { "docid": "0036c3c4530977010e6ebe9413ceeaaf", "score": "0.5205354", "text": "public Application() throws StartUpException {\n this(null);\n }", "title": "" }, { "docid": "d6c4d497acd13a1e581925352a56bf34", "score": "0.51827097", "text": "public static void inicioApp() {\r\n\t\tnew view.FrmPrincipal();\r\n\t}", "title": "" }, { "docid": "314194c7b3d7c6015376d1a433dc0b69", "score": "0.51678866", "text": "private void startApplication() {\n Stage currentStage = (Stage) anchorPane.getScene().getWindow(); // close current stage\n\n Stage stage = new Stage();\n Pane pane = VistaNavigator.loader.load(getClass().getResource(Constants.SPLASH));\n Scene scene = new Scene(pane);\n stage.initStyle(StageStyle.UNDECORATED); // remove borders\n stage.setScene(scene);\n stage.initOwner(currentStage);\n\n currentStage.close();\n stage.show();\n }", "title": "" }, { "docid": "c31cbff73f36f4bc4deb949186d44aee", "score": "0.51672655", "text": "public static MainFrame getApp() { return app; }", "title": "" }, { "docid": "e45a0e81239f512e0f39f4e7ce6720f1", "score": "0.5166408", "text": "public OfficeUNOClientApp1() {\n }", "title": "" }, { "docid": "17a0a14bf9744758b0af3788560a13f2", "score": "0.5156711", "text": "public Application(long applicationId, String firstname, String surname, String email){\r\n this.applicationId = applicationId;\r\n this.firstname = firstname;\r\n this.surname = surname;\r\n this.email = email;\r\n }", "title": "" }, { "docid": "056e1d7234a02939f194f67d7c1ce1fb", "score": "0.5155437", "text": "private void initializeApplication() {\n DefaultEvent.initializeDefaults(\n Defaults.forApplication(mAppContext, mClientId)\n );\n mRedirectUri = createRedirectUri(mClientId);\n validateInputParameters();\n\n // Since network request is sent from the sdk, if calling app doesn't declare the internet permission in the\n // manifest, we cannot make the network call.\n checkInternetPermission();\n Logger.info(TAG, null, \"Create new public client application.\");\n }", "title": "" }, { "docid": "7e5ac4fbeae95515b3bfbf1130cc1ad8", "score": "0.5152532", "text": "@VTID(20)\r\n @ReturnValue(type=NativeType.Dispatch)\r\n com4j.Com4jObject application();", "title": "" }, { "docid": "7b36a08b8ae56561dab3048adedb1097", "score": "0.51435626", "text": "Program createProgram();", "title": "" }, { "docid": "7b36a08b8ae56561dab3048adedb1097", "score": "0.51435626", "text": "Program createProgram();", "title": "" }, { "docid": "7b36a08b8ae56561dab3048adedb1097", "score": "0.51435626", "text": "Program createProgram();", "title": "" }, { "docid": "9723f69ddfa2e541783becfa4d512996", "score": "0.51350945", "text": "public AppInfo() {}", "title": "" }, { "docid": "7dfe45e9d47c1ff7d8580eab682336ea", "score": "0.513448", "text": "public static synchronized Application getInstance() {\n if (app == null)\n app = new Application();\n return app;\n }", "title": "" }, { "docid": "bcf8aad24687ed86fc4715c3a2f11375", "score": "0.5131177", "text": "public static Applicant addApp(){\n\t\tApplicant newApp = new Applicant();\n\n\t\tdouble GPA = 0;\n\n String appName = askName();\n newApp.setApplicantName(appName);\n System.out.print(\"Enter Applicant GPA: \");\n\t\tGPA = keyboard.nextDouble();\n keyboard.nextLine();\n do {\n\t\t\ttry {\n\t\t\t\tnewApp.setApplicantGPA(GPA);\n\t\t\t} catch (InputMismatchException e) {\n\t\t\t\tSystem.out.println(\"Input has to be an integer that is greater than or equal to 0 and less than or equal to 4\");\n\t\t\t\tSystem.out.print(\"Please try again: \");\n\t\t\t\tGPA = keyboard.nextDouble();\n\t\t\t\tkeyboard.nextLine();\n\t\t\t}\n\t\t}while(GPA < 0 || GPA > 4);\n String college = askCollege();\n newApp.setApplicantCollege(college);\n String[] companies = askCompanies();\n newApp.setCompanyName(companies);\n String[] skills = askSkills();\n newApp.setApplicantSkills(skills);\n \n return newApp;\n\t}", "title": "" }, { "docid": "6469796bd4d051d50e81c4e6b4a5b637", "score": "0.5127309", "text": "public void setMainApplication(MainApp m){\n mainApplication = m;\n }", "title": "" }, { "docid": "12d4b549d3a45f02373d6ba8323c51c4", "score": "0.5123518", "text": "public IApplication getApplication();", "title": "" }, { "docid": "824a983e86cbf32d6ed94134eedc5238", "score": "0.51202345", "text": "public ActiveRenderingFunApplication() {\r\n }", "title": "" }, { "docid": "530d083fc2be2f60967c0b56bcd14794", "score": "0.51163805", "text": "@Override\n public void setMainApp(MainApp mainApp){\n this.mainApp = mainApp;\n eventFxChoiceBox.setItems(mainApp.getEventFXList());\n\n eventFxChoiceBox.getSelectionModel()\n .selectedIndexProperty()\n .addListener(getEventFxChoiceBoxListener());\n }", "title": "" }, { "docid": "966b2e05331cf26742a6767600dc9fbd", "score": "0.5113257", "text": "public MainPageApp() {\n initComponents();\n }", "title": "" }, { "docid": "9d27a14cd79c7c1343b4ef89890c1f90", "score": "0.5108867", "text": "public AppsManager() {\n initComponents();\n PromptSupport.setPrompt(\"Title\", txtTitle);\n PromptSupport.setPrompt(\"Slogan\", txtSlogan);\n PromptSupport.setPrompt(\"Footer\", txtFooter);\n PromptSupport.setPrompt(\"Meta\", txtMeta);\n getData();\n }", "title": "" }, { "docid": "39159725635072b9b24df5add85348d6", "score": "0.5108605", "text": "public void startApp() {\r\n\t\ttry {\r\n\t\t\tinit();\r\n\t\t\tshow();\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\tSystem.err.println(\"could not start Midlet startApp()\");\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "626bf26ec07d92c29f67393368ebed86", "score": "0.5106574", "text": "public static InterfaceServeurApp getApplication() {\n return Application.getInstance(InterfaceServeurApp.class);\n }", "title": "" }, { "docid": "1d42b3a0d1fe1a4ec906f0433bc702c6", "score": "0.5103245", "text": "public void beginApplication(){\n\t\t\n\t\t\n\t\tContext currentContext = Control.getMainMenu();\n\t\t\n\t\twhile( ! currentContext.isQuitRequested()){\n\t\t\t\n\t\t\tSystem.out.println(currentContext.getMenu());\n\t\t\t\n\t\t\t//get and validate input\n\t\t\tString input = this.in.nextLine();\n\t\t\tif( ! currentContext.validateInput(input)){\n\t\t\t\tSystem.out.println(currentContext.getErrorMessage(input));\n\t\t\t}else{\n\t\t\t\t//selection is valid. execute the option\n\t\t\t\tContext newContext = currentContext.executeOption(input);\n\t\t\t\t\n\t\t\t\tif(newContext != null){\n\t\t\t\t\tcurrentContext = newContext;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\tSystem.out.println(\"The application has terminated successfully.\");\n\t\t\n\t}", "title": "" }, { "docid": "92f9ef061baf1c4c5027fd6b8d6758ab", "score": "0.50995165", "text": "public static ApplicationRemoteBaseRulesApp getInstance() {\n\n if (instance == null) {\n //Instantiate new Application Base\n instance = new ApplicationRemoteBaseRulesApp();\n }\n\n return instance;\n }", "title": "" }, { "docid": "4b9c61b04c7f7cda5b9f1d475d3b2e93", "score": "0.5091834", "text": "public static void main(String[] args){\n new RobotFace().start();\n }", "title": "" }, { "docid": "98786c57b3c739a4779d76be1c92432a", "score": "0.5090487", "text": "public void init(VerdiApplication app) {\r\n\t\tthis.app = app;\r\n\t}", "title": "" }, { "docid": "eaa9f579b605aa9366a2a3e90cfb47e1", "score": "0.5085792", "text": "public static void main(String[] args)\n {\n ComboBoxFrame f;\n\n f = new ComboBoxFrame();\n f.setSize(400,200);\n f.setVisible(true);\n\n \n }", "title": "" }, { "docid": "b7408284ee1733c1d27ef7fe6139e2c3", "score": "0.5068061", "text": "@Override\n public play.api.Application asScala() {\n return application;\n }", "title": "" }, { "docid": "8bc5a84497606d7403fb03ab56fc8157", "score": "0.5067595", "text": "public ERXApplication application() {\n\t return ERXApplication.erxApplication();\n }", "title": "" }, { "docid": "6edd0d3924d930ade8d09c8e607436b7", "score": "0.50671184", "text": "public void setApp(Main application) {\n this.application = application;\n loginBox.getItems().clear();\n loginBox.setPromptText(this.application.getLoggedUser().getFirstName());\n loginBox.getItems().addAll(\"Log Out\");\n\n studentName.setText(this.application.getLoggedUser().getFirstName() + \" \" + this.application.getLoggedUser().getLastName());\n studentEmail.setText(this.application.getLoggedUser().getEmail());\n loginBox.valueProperty().addListener((observable, oldValue, newValue) -> {\n if (newValue != null) {\n if (newValue.equals(\"Log Out\")) {\n this.logout();\n }\n }\n\n });\n\n hashcountquestions = new HashMap<String, Integer>();\n List list = this.application.getSubjects();\n List subjectNames = new ArrayList<String>();\n for (Object subject : list) {\n subjectNames.add(((Subject) subject).getSubjectName());\n }\n selectsubjectdropdown.setItems(FXCollections.observableList(subjectNames));\n\n subjects = (ArrayList<Subject>) list;\n List difficultyLevelList = new ArrayList<String>();\n difficultyLevelList.add(\"Easy\");\n difficultyLevelList.add(\"Medium\");\n difficultyLevelList.add(\"Hard\");\n difficultyLevelList.add(\"Mixed\");\n difficultyselectdropdown.setItems(FXCollections.observableList(difficultyLevelList));\n selectsubjectdropdown.valueProperty().addListener((observable, oldValue, newValue) -> {\n reassignDifficulty();\n });\n\n difficultyselectdropdown.valueProperty().addListener((observable, oldValue, newValue) -> {\n reassignQuestionCount(newValue);\n });\n selectsubjectdropdown.getSelectionModel().select(0);\n reassignDifficulty();\n reassignQuestionCount(\"Easy\");\n\n makeActivityGraph();\n }", "title": "" }, { "docid": "f4024057f3451b7832c8bea238ad23ab", "score": "0.50645983", "text": "java.lang.String getApplication();", "title": "" }, { "docid": "50368f498cace8455c8e785a30fc71ad", "score": "0.50638187", "text": "public Application(String userHome) throws NoSettingsException, ResourceLoadingException {\n // TODO: Add test to ensure OCaml is installed / find the ocaml executable\n this.userHome = userHome;\n this.resourceManager = new ResourceManager( userHome );\n this.resourceManager.initializeUserDirectory();\n\n this.config = new Config( resourceManager.getUserSettingsPath() );\n this.interactionsManager = new InteractionsManager(\"ocaml\");\n\t this.debugManager = new DebugManager( \"\" );\n \n CompositeStyleSource compStyleSource = new CompositeStyleSource();\n try {\n compStyleSource.addStyleSource( new FileSystemStyleLoader( resourceManager.getUserStylesPath() ) );\n JarStyleLoader jarStyleLoader = new JarStyleLoader( resourceManager.getInstallationStylesListPath() );\n if( jarStyleLoader != null )\n compStyleSource.addStyleSource( jarStyleLoader );\n } catch( StyleParserException ex )\n {\n System.err.println(\"Unable to load styles from the file system.\");\n }\n this.styleSource = compStyleSource;\n\n windows = new ArrayList<MainWindow>();\n setupGui();\n\n /* Make sure we always clean up after starting up */\n Runtime.getRuntime().addShutdownHook( new ShutdownCleaner(this) );\n }", "title": "" }, { "docid": "b7b96bac696c5d87b42af9d8f529c19f", "score": "0.50606596", "text": "App buildApp() {\n for (StreamBuilder<? extends Event> sb : streamBuilders) {\n for (String peName : sb.pes) {\n ProcessingElement pe = getPE(peName);\n sb.stream.setPEs(pe);\n }\n }\n\n /* PE to Stream wiring. */\n Map<ProcessingElement, Collection<StreamBuilder<? extends Event>>> pe2streamMap = pe2stream.asMap();\n for (Map.Entry<ProcessingElement, Collection<StreamBuilder<? extends Event>>> entry : pe2streamMap.entrySet()) {\n ProcessingElement pe = entry.getKey();\n Collection<StreamBuilder<? extends Event>> streams = entry.getValue();\n\n if (pe != null && streams != null) {\n try {\n setStreamField(pe, streams);\n } catch (Exception e) {\n logger.error(\"Unable to build app.\", e);\n return null;\n }\n }\n }\n\n return this;\n }", "title": "" }, { "docid": "71c02ef1269e42f439162e9e30e8110e", "score": "0.5058414", "text": "public mainApp1() {\n initComponents();\n }", "title": "" }, { "docid": "fc842141803c354b0b825c5afd5faa33", "score": "0.5057724", "text": "public static void main(String[] args){\n\t\t/*Create the App on the event dispatching thread\n\t\t * main() is executed on the main thread. So that it cannot instantiate a App object\n\t\t * Instead, it must crate a Runnable object that executes on the event-dispatching thread,\n\t\t * and have this object create the GUI\n\t\t */\n\t\tSwingUtilities.invokeLater(new Runnable(){\n\t\t\tpublic void run(){\n\t\t\t\tnew App();\n\t\t\t}\t\t\t\n\t\t});\t\t\n\t}", "title": "" }, { "docid": "649ab787e914ea8c141f5a809bd3a9cf", "score": "0.50529873", "text": "public JFaceAppDemo3() {\n\t\tsuper(null);\n\t\tcreateActions();\n\t\taddCoolBar(SWT.FLAT);\n\t\taddMenuBar();\n\t\taddStatusLine();\n\t}", "title": "" }, { "docid": "73c641dc3a9af07996bf5d7195fec5ad", "score": "0.50510466", "text": "public static void main(String[] args) {\n\t\tMainApp m=new MainApp();\n\t\tm.show();\n\t}", "title": "" }, { "docid": "97c978439a15e2576ceb69bffd5c6b93", "score": "0.5044119", "text": "private void setupApplication() {\n mApplication = null;\n try {\n mApplication = (T) Instrumentation.newApplication(mApplicationClass, getContext());\n } catch (Exception e) {\n assertNotNull(mApplication);\n }\n mAttached = true;\n }", "title": "" }, { "docid": "019493128a47c1e322dd6e27e189b739", "score": "0.5030859", "text": "public appCrudBillsApplication() {\n initComponents();\n setLocationRelativeTo(null);\n }", "title": "" }, { "docid": "42684959ed5573280985d59625d151f4", "score": "0.5025873", "text": "public static void main(String[] args) {\n Comp213.FriendFaceClient.FriendFaceGUI ffg =\n new Comp213.FriendFaceClient.FriendFaceGUI();\n MetaClient mc = new MetaClient(ffg);\n mc.setVisible(true);\n }", "title": "" }, { "docid": "ca9e8a8b33950fe6e3c0f378f201d430", "score": "0.50213814", "text": "public static ExterminatorApp getApplication() {\n\t\t\n\t\treturn ExterminatorApp.app;\n\t\t\n\t}", "title": "" }, { "docid": "0af8d08f7f54f2331af11c515fb273d9", "score": "0.5021103", "text": "public static void createAndShowGUI() {\n //Create and set up the window.\n frame = new JFrame(\"Frugal Lab Application\");\n // frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n \n //Create and set up the content pane.\n MasterPanelFOrProjectPage mpf = new MasterPanelFOrProjectPage();\n mpf.addComponentToPane(frame.getContentPane());\n \n //Display the window.\n frame.pack();\n frame.setSize(800, 600);\n frame.setVisible(true);\n }", "title": "" } ]
25197b4cf814864ecd440f23b9149cb3
TODO Autogenerated method stub
[ { "docid": "aad9918b3ce8f7c6686dff51bafa9424", "score": "0.0", "text": "public static void main(String[] args) {\n\t\tfor(int i=10;i>=0;i--) {\n\t\t\tSystem.out.println(i);\n\t\t}\n\n\t}", "title": "" } ]
[ { "docid": "e5fa0eebc721dea67da872fd14413bc7", "score": "0.69744676", "text": "@Override\n\tpublic void formule() {\n\t\t\n\t}", "title": "" }, { "docid": "8b7f87c22e268a87686c66398c2c442b", "score": "0.6936331", "text": "@Override\r\n\t\t\tpublic void atras() {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "1acc57d42c31dee937ac33ea6f2a5b0b", "score": "0.6836411", "text": "@Override\r\n\tpublic void comer() {\n\t\t\r\n\t}", "title": "" }, { "docid": "ec76ff8d70ced9d8135ad33b23353b4d", "score": "0.6624367", "text": "@Override\r\n\t\t\tpublic void adelante() {\n\t\t\t\t\r\n\t\t\t}", "title": "" }, { "docid": "82ab90ffadf9b8d43e60c8510a33beba", "score": "0.6623182", "text": "@Override\r\n\tpublic void morirse() {\n\t\t\r\n\t}", "title": "" }, { "docid": "e3110a393bd4b870b4055aa9ed6efd87", "score": "0.66015315", "text": "@Override\n\tpublic void attaquer() {\n\t\t\n\t}", "title": "" }, { "docid": "a5f7a321f63abee65f0b9008f270490e", "score": "0.6594605", "text": "@Override\n\t\t\tpublic void competir() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "0b5b11f4251ace8b3d0f5ead186f7beb", "score": "0.65677965", "text": "@Override\n\tpublic void comer() {\n\t\t\n\t}", "title": "" }, { "docid": "0b5b11f4251ace8b3d0f5ead186f7beb", "score": "0.65677965", "text": "@Override\n\tpublic void comer() {\n\t\t\n\t}", "title": "" }, { "docid": "80d20df1cc75d8fa96c12c49a757fc43", "score": "0.65323734", "text": "@Override\n\tprotected void getExras() {\n\t\t\n\t}", "title": "" }, { "docid": "7756cbf76fd6363807e17834db326bbc", "score": "0.6501866", "text": "@Override\n\t\t\tpublic void avanzar() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "bdceff0dc4130d850ab15d702b785449", "score": "0.63844895", "text": "@Override\n\tprotected void generate() {\n\t\t\n\t}", "title": "" }, { "docid": "14f6250e215aa66dcffb123fd6b7fd74", "score": "0.63381773", "text": "@Override\n\tpublic void entzünden() {\n\n\t}", "title": "" }, { "docid": "cd03efba12b5473dcc457b910fd92a0e", "score": "0.63222265", "text": "@Override\n\t\t\tpublic void sprout() {\n\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "070e1adb9bfd59cb643407a2dabe9b7a", "score": "0.6291592", "text": "private void hinzufügen() {\n\t\t\r\n\t}", "title": "" }, { "docid": "469c90392fb12e4553574135278541f5", "score": "0.62385184", "text": "@Override\n\tpublic void attck() {\n\t\t\n\t}", "title": "" }, { "docid": "d3585587779dbdf33600e1670ca42099", "score": "0.6193195", "text": "@Override\n\tpublic void IngresoKromi() {\n\t}", "title": "" }, { "docid": "7c4f2f94b290de5507eb56a649c4fab9", "score": "0.61922914", "text": "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "title": "" }, { "docid": "10ead2e988bf977cb8edb2bacf974891", "score": "0.61546874", "text": "@Override\n\tprotected void init() {\n\t\t\n\t}", "title": "" }, { "docid": "093a096d6e96e05b160fe2406b1e8a2d", "score": "0.61053663", "text": "@Override\n\tpublic void parir() {\n\t\t\n\t}", "title": "" }, { "docid": "29cde3f10dab87cebafdd9412ef4b29f", "score": "0.6062187", "text": "@Override\r\n\tpublic void embala() {\n\t\t\r\n\t}", "title": "" }, { "docid": "7839d9b18f833d7ad1ccae8536c829da", "score": "0.60561824", "text": "@Override\r\n\tpublic void zielone_swiatlo() {\n\t\t\r\n\t}", "title": "" }, { "docid": "0cd47ce21776ffa50dd678180ffe94e5", "score": "0.6003824", "text": "public void ayak() {\n\t\t\r\n\t}", "title": "" }, { "docid": "c2c1f0ca9c7029b85142a2ab9536d708", "score": "0.5990595", "text": "@Override\n\tpublic void attaque() {\n\t\t\n\t}", "title": "" }, { "docid": "fa1a013b1df2f5f1062e1cc971135645", "score": "0.5987973", "text": "@Override\n\tpublic void mamar() {\n\t\t\n\t}", "title": "" }, { "docid": "70c63b539d1b6f883ad13008fbcaa6ce", "score": "0.59600407", "text": "@Override\n\tpublic void fiy(){\n\t\t\n\t}", "title": "" }, { "docid": "360bf42213adde0b962792c6cd6d8df7", "score": "0.5952374", "text": "@Override\r\n\t\tpublic void interg() {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "6f1e0cfaa7350cf143896dace56978f5", "score": "0.59270483", "text": "@Override\n\tpublic void respirar() {\n\t\t\n\t}", "title": "" }, { "docid": "8b18fd12dbb5303a665e92c25393fb78", "score": "0.59239364", "text": "@Override\n\tprotected void initData() {\n\t\t\n\t}", "title": "" }, { "docid": "dd66e8668788d27519d44caeb83b0c44", "score": "0.5923557", "text": "@Override\r\n\tpublic void operation() {\n\t\t\r\n\t}", "title": "" }, { "docid": "28237d6ae20e1aa35aaca12e05c950c9", "score": "0.5902906", "text": "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "title": "" }, { "docid": "28237d6ae20e1aa35aaca12e05c950c9", "score": "0.5902906", "text": "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "title": "" }, { "docid": "9808ba3c113b79c3677f2c08c09e60a1", "score": "0.59020513", "text": "@Override\n\tpublic void resert() {\n\t\t\n\t}", "title": "" }, { "docid": "e05db3dd501cfaf4d9d1b128ca673f1b", "score": "0.58988667", "text": "@Override\n\tprotected void formRes() {\n\n\t}", "title": "" }, { "docid": "7f91c82c66ced12c5b193d3c89d68e4c", "score": "0.5883667", "text": "@Override\n\tprotected void init() {\n\t}", "title": "" }, { "docid": "ea6be29351b2f6d99af3992f4a8fbd45", "score": "0.58685964", "text": "public void afficherEntreprise(){\r\n\t\t\r\n\t}", "title": "" }, { "docid": "3177b2be45c490e407b98d647e109c0d", "score": "0.58572376", "text": "@Override\n protected void initData()\n {\n\t\n }", "title": "" }, { "docid": "eea1284dac4ca57b790a13dcd1ad6bff", "score": "0.58401465", "text": "@Override\n protected void ucitaj() {\n //only because of 'extands rule'\n }", "title": "" }, { "docid": "e57f005733f2eb8590150b3f4542b844", "score": "0.5810564", "text": "@Override\n\tprotected void getData() {\n\t\t\n\t}", "title": "" }, { "docid": "af70f420bd21981aa44db6516064224d", "score": "0.58060104", "text": "@Override\n\tpublic int berechnen() {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "ce91051d32625345f2bf3562abbb93de", "score": "0.5794177", "text": "@Override\n\tprotected void inicializar() {\n\t}", "title": "" }, { "docid": "beee84210d56979d0068a8094fb2a5bd", "score": "0.5792378", "text": "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "title": "" }, { "docid": "94f32cdbe8afc400e05efbdb8d78c591", "score": "0.5788508", "text": "@Override\r\n\tpublic void borc_hesapla() {\n\t\t\r\n\t}", "title": "" }, { "docid": "54b1134554bc066c34ed30a72adb660c", "score": "0.57844025", "text": "@Override\n\tprotected void initData() {\n\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "2ded89a6dfb4a5cfce4bf00ee7993921", "score": "0.5774479", "text": "@Override\n\tpublic void init() {\n\t\t\n\t}", "title": "" }, { "docid": "aed26444304cfac4d695203c7d86e6c5", "score": "0.5769439", "text": "public void autTC05() {\r\n\r\n\t}", "title": "" }, { "docid": "9b56e05d631b1ea925ea2c139ee709ad", "score": "0.5763841", "text": "@Override\n\tpublic void adim7() {\n\n\t}", "title": "" }, { "docid": "5e6804b1ba880a8cc8a98006ca4ba35b", "score": "0.5761362", "text": "@Override\n public void init() {\n\n }", "title": "" }, { "docid": "518a761521ca9f5cb8a8055b32b72cda", "score": "0.57596046", "text": "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "title": "" }, { "docid": "a49b2d411619c6f2680e9b0e8c21a20f", "score": "0.57574755", "text": "private void erledigt() {\n\t\t\r\n\t}", "title": "" }, { "docid": "8aac1da26498753495658c2bb9044b21", "score": "0.5751961", "text": "@Override\n public int getOrder() {\n return 0;\n }", "title": "" }, { "docid": "2bbeae4f0e92c95ecc07204851be4769", "score": "0.57508", "text": "@Override\n\tpublic void nyalakan() {\n\t\t\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "2d614ed2ee5b3120f5ee8b427542ddc3", "score": "0.575025", "text": "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "title": "" }, { "docid": "8603393cbe27452fe30e396632c62eed", "score": "0.57415414", "text": "@Override\n\t\tpublic void postConstruct() {\n\t\t}", "title": "" }, { "docid": "37bf6e6ef01cf7dab163b5d3bedbc140", "score": "0.5740271", "text": "@Override\n\tpublic void som() {\n\t\t\n\t}", "title": "" }, { "docid": "92af0f4d75822a6723aebd9fcc92fafb", "score": "0.57394177", "text": "@Override\n protected void initData() {\n \n }", "title": "" }, { "docid": "c13e6a1b7c130afa9fb0f34225bea4ef", "score": "0.573645", "text": "protected void mo1555b() {\n }", "title": "" }, { "docid": "691b15fed469ddc176b9c9e6151dea65", "score": "0.5734636", "text": "@Override\n\tpublic void breathes()\n\t{\n\t\t\n\t}", "title": "" }, { "docid": "b143ffd983be4c8f41702b8f934b6f32", "score": "0.57337177", "text": "@Override\r\n\tpublic void init() {\n\r\n\t}", "title": "" }, { "docid": "0f7672ee5ac14b05f31da4e1e34d7b49", "score": "0.5725253", "text": "@Override\r\n\tpublic void test8() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t\r\n\t}", "title": "" }, { "docid": "a22a3abb4b9b5de4ed8c054da445e9b0", "score": "0.5724528", "text": "@Override\r\n\tpublic void jugar() {\n\r\n\t}", "title": "" }, { "docid": "7fd3ef4778cae98af386c2c7c0aa5995", "score": "0.57231057", "text": "@Override\r\n\tpublic void nmi() {\n\t\t\r\n\t}", "title": "" }, { "docid": "90a583a9686287e3374351dca59e3033", "score": "0.5721244", "text": "@Override\r\n\tpublic void abrir() {\n\r\n\t}", "title": "" }, { "docid": "d629c4ad6266d296b13a93bb0c7f8c66", "score": "0.57099986", "text": "@Override\r\n public void init()\r\n {\n\r\n }", "title": "" }, { "docid": "7aadbda143e84de0144f7a8dadde423d", "score": "0.5701067", "text": "@Override\n protected void initData() {\n\n }", "title": "" }, { "docid": "7aadbda143e84de0144f7a8dadde423d", "score": "0.5701067", "text": "@Override\n protected void initData() {\n\n }", "title": "" }, { "docid": "f375646c5bc224c29261414f3cb81b04", "score": "0.56984305", "text": "@Override\n public int qualiteRelation() {\n return 0;\n }", "title": "" }, { "docid": "5592333c90e75bae58a686b24b05d894", "score": "0.5693882", "text": "@Override\n public String toString() {\n return null;\n }", "title": "" }, { "docid": "b2858312446172fa25a799c5367d2043", "score": "0.56896037", "text": "Smelting(){\r\n\r\n\t\t}", "title": "" }, { "docid": "9f7ae565c79188ee275e5778abe03250", "score": "0.56881124", "text": "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "title": "" }, { "docid": "20b42a0c3fee6c140a112d40354f4298", "score": "0.5686577", "text": "@Override\r\n\tpublic void prepara() {\n\t\t\r\n\t}", "title": "" }, { "docid": "92b8246d78d46bf0f60b46e17e797540", "score": "0.5685193", "text": "@Override\n\tpublic void init () {\n\t}", "title": "" }, { "docid": "57f5caef4402cc8ce13e81561eaa9e43", "score": "0.56787807", "text": "@Override\r\n\tpublic void pickUp() {\n\t\t\r\n\t}", "title": "" }, { "docid": "152818b619dcfcd5190a2f48bc75fa5f", "score": "0.56757474", "text": "@Override\n\tpublic void adim6() {\n\n\t}", "title": "" }, { "docid": "b6c641fa6ba40a5b14cc33cb07aa0671", "score": "0.5669649", "text": "@Override\n\tprotected void initData() {\n\t}", "title": "" }, { "docid": "b6c641fa6ba40a5b14cc33cb07aa0671", "score": "0.5669649", "text": "@Override\n\tprotected void initData() {\n\t}", "title": "" }, { "docid": "131c7dcebe8ac7fd010381a03bd0f405", "score": "0.5667569", "text": "@Override\r\n\tprotected void initActb() {\n\t\t\r\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "9d94df716ebd35f7ec07df01763ae94c", "score": "0.5655942", "text": "@Override\n\tpublic void init() {\n\n\t}", "title": "" }, { "docid": "6392764d7ff297c1a478fc1669944649", "score": "0.5653691", "text": "@Override\n\tpublic void gostar_de_carne() {\n\t\t\n\t}", "title": "" }, { "docid": "2b53548295a92f80cb7814e7e3ead131", "score": "0.56503963", "text": "@Override\n\tString frighten() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "18c7036dd108c40b7a27469d8b92687c", "score": "0.5642345", "text": "@Override\n\tpublic void onLoadComplete() {\n\t\t\n\t}", "title": "" }, { "docid": "7b36e2fb2a778b8c30924f6f30758db2", "score": "0.56388146", "text": "private static void buscarId() {\n\t\t\r\n\t}", "title": "" }, { "docid": "9bcd15a2298e73719d7c7326027b093b", "score": "0.56369984", "text": "@Override\n\tprotected void getData() {\n\n\t}", "title": "" } ]
2973088e12dd65888402c0126ba8bf1c
Protected method for counting elevation of triangle's point with coordinates u,v
[ { "docid": "f28ed7472b3a67417ceb9dc6d1bdcc60", "score": "0.65077215", "text": "protected PointDT getElevation(double u, double v){\n\t\t//System.out.println(\"vypocet> \"+u+\" \"+v);\n\t\t//toStringa();\n\t\tdouble w = 1 - u - v;\n/*\t\tdouble x = b300.x*u + b030.x*v + b003.x*w;\n\n\t\t//double y = b300.y*u + b030.y*v + b003.y*w;\n\n*/\t\tdouble x = b300.x*Math.pow(w, 3) + b030.x*Math.pow(u,3) + b003.x*Math.pow(v,3)+\n\t\t\t\t\t3*b210.x*Math.pow(w, 2)*u + 3*b120.x*Math.pow(u,2)*w + 3*b201.x*Math.pow(w, 2)*v +\n\t\t\t\t\t3*b021.x*Math.pow(u, 2)*v + 3*b102.x*Math.pow(v, 2)*w + 3*b012.x*u*Math.pow(v,2)+ 6*b111.x*u*v*w;\n\t\t\n\t\tdouble y = b300.y*Math.pow(w, 3) + b030.y*Math.pow(u,3) + b003.y*Math.pow(v,3)+\n\t\t3*b210.y*Math.pow(w, 2)*u + 3*b120.y*Math.pow(u,2)*w + 3*b201.y*Math.pow(w, 2)*v +\n\t\t3*b021.y*Math.pow(u, 2)*v + 3*b102.y*Math.pow(v, 2)*w + 3*b012.y*u*Math.pow(v,2)+ 6*b111.y*u*v*w;\n\n\t\tdouble z = b300.z*Math.pow(w, 3) + b030.z*Math.pow(u,3) + b003.z*Math.pow(v,3)+\n\t\t3*b210.z*Math.pow(w, 2)*u + 3*b120.z*Math.pow(u,2)*w + 3*b201.z*Math.pow(w, 2)*v +\n\t\t3*b021.z*Math.pow(u, 2)*v + 3*b102.z*Math.pow(v, 2)*w + 3*b012.z*u*Math.pow(v,2)+ 6*b111.z*u*v*w;\n\n\t\t//\tSystem.out.println(b210.z);\n\t//\tSystem.out.println(y);\n\t//\tSystem.out.println(z);\n\t//\tSystem.out.println((new PointDT(x,y,z)).toString());\n\t\treturn new PointDT(x,y,z);\n\t}", "title": "" } ]
[ { "docid": "91bfb55924750b24dbe12277a5bbf0fa", "score": "0.56848377", "text": "@Override\r\nvoid findArea() {\r\n\tdouble area;\r\n\tarea = (this.dim1 * this.height)/2.0;// calculating area of triangle\r\n\tSystem.out.println(\"The area of a triangle with base \" + this.dim1 + \" and height \" + this.height + \" is \" +area); \r\n}", "title": "" }, { "docid": "329402f35635c72517864c99f449b1c5", "score": "0.5626719", "text": "public static int countTriangleByR(int r) {\n\t\tIntVector2D origin = new IntVector2D(0, 0);\n\t\tList<IntVector2D> points = new ArrayList<IntVector2D>();\n\t\tint MAX = (int) (r / Math.sqrt(2));\n\t\tfor (int x = -MAX; x <= MAX; x++) {\n\t\t\tfor (int y = -MAX; y <= MAX; y++) {\n\t\t\t\tpoints.add(new IntVector2D(x, y));\n\t\t\t}\n\t\t}\n\t\tint sum = 0;\n\t\tfor (int i = 0; i < points.size(); i++) {\n\t\t\tfor (int j = i + 1; j < points.size(); j++) {\n\t\t\t\tfor (int k = j + 1; k < points.size(); k++) {\n\t\t\t\t\tIntVector2D A = points.get(i);\n\t\t\t\t\tIntVector2D B = points.get(j);\n\t\t\t\t\tIntVector2D C = points.get(k);\n\t\t\t\t\tif(Util.isTriangle(A,B,C) && Util.triangleContainsPoint(A, B, C, origin)){\n\t\t\t\t\t\tsum ++;\n\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 sum;\n\t}", "title": "" }, { "docid": "e6c9c012d12d003bec5b8b9b428c0bf3", "score": "0.5533007", "text": "int getCoordinatesCount();", "title": "" }, { "docid": "6b45a427980d69debc9638b977129924", "score": "0.5460609", "text": "private double triangleArea(int x1, int y1, int x2, int y2, int x3, int y3) {\n\t\t// formula for the area of any triangle made of up three vertices (x1, y1), (x2, y2), and (x3, y3)\n\t\treturn Math.abs(0.5 * (x1*(y2-y3) + x2*(y3-y1)+ x3*(y1-y2)));\n\t}", "title": "" }, { "docid": "be8a1fe2004bd1deeb6886c680a9c9d9", "score": "0.54413706", "text": "@Override\r\nvoid findPerimeter() {\r\n\tdouble perim;\r\n\tperim = this.dim1 +this.dim2 + this.dim3;//calculating the perimeter of triangle\r\n\tSystem.out.println(\"The perimeter of a triangle with sides \" +this.dim1+ \" , \" + this.dim2 + \" , \" + this.dim3 + \" is \" +perim);\r\n\t\r\n}", "title": "" }, { "docid": "9f7834f676061cdbe2aecf11233ed036", "score": "0.5429119", "text": "private int addTriangle(int v1, double phalf, double p){\n if ((this.edgeTestType==0) && nTrianglesCurrent>=nTrianglesMax){\n System.err.println(\"*** In addTriangle, current number of triangles is too large, nothing added. current, max= \"+nTrianglesCurrent+\", \"+nTrianglesMax);\n return -1;\n }\n if ((this.edgeTestType==1) && (tg.getMaximumStubs()-tg.getNumberStubs())<6){\n System.err.println(\"*** In addTriangle, current number of stubs is within 6 of maximum, nothing added. current, max= \"+tg.getNumberStubs()+\", \"+tg.getMaximumStubs());\n return -2;\n }\n VertexGridCoordinates s = new VertexGridCoordinates(v1);\n double r=rnd.nextDouble();\n int v2=v1;\n int v3=v1;\n\n if (r<phalf){\n while (v2==v1) v2 = getIndex(rnd.nextInt(dimN), rnd.nextInt(dimX), s.y);\n while ((v3==v1) || (v3==v2)) v3 = getIndex(rnd.nextInt(dimN), rnd.nextInt(dimX), s.y);\n }\n else if(r<p){\n while (v2==v1) v2 = getIndex(rnd.nextInt(dimN), s.x,rnd.nextInt(dimY));\n while ((v3==v1) || (v3==v2)) v3 = getIndex(rnd.nextInt(dimN), s.x,rnd.nextInt(dimY));\n }\n else{\n while (v2==v1) v2 = rnd.nextInt(tg.getNumberVertices());\n while ((v3==v1) || (v3==v2)) v3 = rnd.nextInt(tg.getNumberVertices());\n }\n\n tg.increaseEdgeWeight(v1, v2, 1.0);\n tg.increaseEdgeWeight(v2, v3, 1.0);\n tg.increaseEdgeWeight(v3, v1, 1.0);\n System.out.println(\"T\"+nTrianglesCurrent+\"=(\"+v1+\",\"+v2+\",\"+v3+\")\");\n return ++nTrianglesCurrent;\n }", "title": "" }, { "docid": "b4d1167ce8c1a1fc38c6183b91e632d8", "score": "0.53928447", "text": "long getTotalVertices();", "title": "" }, { "docid": "0d86450f1245159b801b5f2174526489", "score": "0.5379301", "text": "int getNumberOfVertices();", "title": "" }, { "docid": "0e2f78caca6a3541e05be7f21bfdbf53", "score": "0.53741336", "text": "int numVertices();", "title": "" }, { "docid": "0e2f78caca6a3541e05be7f21bfdbf53", "score": "0.53741336", "text": "int numVertices();", "title": "" }, { "docid": "793e87cd14eb1bee97cbadfb84990ce4", "score": "0.53713816", "text": "@Test\n public void testTriangleCount() {\n System.out.println(\"triangleCount\");\n int[] S = null;\n TriangleCount instance = new TriangleCount();\n int expResult = 0;\n int result = instance.triangleCount(S);\n assertEquals(expResult, result);\n \n assertEquals(3, instance.triangleCount(new int[]{3,4,6,7}));\n assertEquals(4, instance.triangleCount(new int[]{4,4,4,4}));\n }", "title": "" }, { "docid": "6b22509d0beff7bb4c21f0207c67fd75", "score": "0.52938116", "text": "public int[][] getTriangles();", "title": "" }, { "docid": "8748814ea8164ce67706c3263184adf7", "score": "0.5278095", "text": "protected PointDT countDifferenceProduct (PointDT v1, PointDT v2){\n\t\treturn new PointDT(v1.x-v2.x,v1.y-v2.y,v1.z-v2.z);\n\t}", "title": "" }, { "docid": "d94277cb49471b4f8d1e31edc7045cae", "score": "0.5264442", "text": "public Coordinate area()\r\n {\r\n try\r\n {\r\n // point is a corner of the triangle\r\n Vector v1 = new Vector(_p1, _p2);\r\n Vector v2 = new Vector(_p1, _p3);\r\n v1.dot(v2); // check for linear dependence\r\n return new Coordinate(0.5).mult(v1.cross(v2).magnitude());\r\n } catch (IllegalArgumentException e)\r\n {\r\n return new Coordinate(0);\r\n }\r\n }", "title": "" }, { "docid": "0bd4d6489367d7c5d485a6f47e25539c", "score": "0.5253482", "text": "public int GetPolygonStep(){\n return step;\n }", "title": "" }, { "docid": "7c910a5de3af289077b7793cab077686", "score": "0.52527833", "text": "public static void calculateTriangleArea()\n {\n double height;\n double width;\n \n IO.output(\"Enter the width of the triange: \");\n width = IO.inputDouble();\n \n IO.output(\"Enter the height of the triangle: \");\n height = IO.inputDouble();\n \n double area = (width * height)/2;\n \n IO.outputln(\"The triangle area = \" + area);\n \n \n \n \n }", "title": "" }, { "docid": "482381fbaf825c8134302ab3da43f3c4", "score": "0.5223592", "text": "public int numVertices();", "title": "" }, { "docid": "fe73aeca6e6ae7fe11691260f9340b9c", "score": "0.5215346", "text": "public double getTriangleArea() {\n return triangleArea;\n }", "title": "" }, { "docid": "0626a5511452e5f8e6357cd2e5bd2fd6", "score": "0.5212571", "text": "int getPointsCount();", "title": "" }, { "docid": "0626a5511452e5f8e6357cd2e5bd2fd6", "score": "0.5212571", "text": "int getPointsCount();", "title": "" }, { "docid": "3a24b6f439814810c2605fb6f52f0b33", "score": "0.5197987", "text": "private double trapezoidMethod() {\n double area = 0;\n for (int i = 0; i < numOfPoints; i++) {\n double firstY = returnIntegralValue(i);\n double secondY = returnIntegralValue(i+1);\n area += ((secondY + firstY) * 1/2) * 1;\n }\n return area;\n }", "title": "" }, { "docid": "0d0239cdd62561e43ef909a94de80b7b", "score": "0.5191637", "text": "public int getVerticesCount();", "title": "" }, { "docid": "4d8f73f555c812e30e3c48b70715f176", "score": "0.51885045", "text": "public Elevation compute(final Point point) throws CorruptTerrainException,\n InvalidValueException, InvalidPointException, ComputableAreaException;", "title": "" }, { "docid": "ee6126b15d7c2d7aa5fd5dcd5e1d6f53", "score": "0.5180829", "text": "public int getDegree(Vertex v);", "title": "" }, { "docid": "8f7262f4c104ada3f491ccb93cd6c3b3", "score": "0.51546", "text": "private int determineXYZ(String line) {\n\t\tint xIndex = line.indexOf('X');\n\t\tint yIndex = line.indexOf('Y');\n\t\tint zIndex = line.indexOf('Z');\n\n\t\tif (!(xIndex == 0 || yIndex == 0 || zIndex == 0))\n\t\t\treturn 0;\n\n\t\tif (xIndex < 0 && yIndex < 0)\n\t\t\treturn Constants.ONLY_Z;\n\t\tif (yIndex < 0 && zIndex < 0)\n\t\t\treturn Constants.ONLY_X;\n\t\tif (xIndex < 0 && zIndex < 0)\n\t\t\treturn Constants.ONLY_Y;\n\t\tif (zIndex < 0 && xIndex > -1 && yIndex > -1) {\n\t\t\tif (xIndex < yIndex)\n\t\t\t\treturn Constants.X_Y;\n\t\t\telse\n\t\t\t\treturn Constants.Y_X;\n\t\t}\n\t\tif (zIndex > -1 && xIndex > -1 && yIndex < 0) {\n\t\t\tif (xIndex < zIndex)\n\t\t\t\treturn Constants.X_Z;\n\t\t\telse\n\t\t\t\treturn Constants.Z_X;\n\t\t}\n\t\tif (zIndex > -1 && xIndex < 0 && yIndex > -1) {\n\t\t\tif (yIndex < zIndex)\n\t\t\t\treturn Constants.Y_Z;\n\t\t\telse\n\t\t\t\treturn Constants.Z_Y;\n\t\t}\n\t\tif (xIndex < yIndex && yIndex < zIndex)\n\t\t\treturn Constants.X_Y_Z;\n\t\tif (xIndex < zIndex && zIndex < yIndex)\n\t\t\treturn Constants.X_Z_Y;\n\t\tif (yIndex < xIndex && xIndex < zIndex)\n\t\t\treturn Constants.Y_X_Z;\n\t\tif (yIndex < zIndex && zIndex < xIndex)\n\t\t\treturn Constants.Y_Z_X;\n\t\tif (zIndex < xIndex && xIndex < yIndex)\n\t\t\treturn Constants.Z_X_Y;\n\t\tif (zIndex < yIndex && yIndex < xIndex)\n\t\t\treturn Constants.Z_Y_X;\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "fdcbe1f7d79d13daeae8ca529490d17a", "score": "0.5145298", "text": "int getPoints();", "title": "" }, { "docid": "fdcbe1f7d79d13daeae8ca529490d17a", "score": "0.5145298", "text": "int getPoints();", "title": "" }, { "docid": "fdcbe1f7d79d13daeae8ca529490d17a", "score": "0.5145298", "text": "int getPoints();", "title": "" }, { "docid": "7e069612368f305d1ca107473d4ae156", "score": "0.51241213", "text": "@Test\n void testGetNormal() {\n Triangle tr=new Triangle(new Point3D(0, 0, 1), new Point3D(1, 0, 0), new Point3D(0, 1, 0));\n double sqrt3 = Math.sqrt(1d / 3);\n assertEquals( new Vector(sqrt3, sqrt3, sqrt3), tr.getNormal(new Point3D(1d / 3, 1d / 3, 1d / 3)),\"Bad normal to triangle\");\n }", "title": "" }, { "docid": "b1e14c2a4acd5a6a4581d85d5ac743a3", "score": "0.5119681", "text": "public double lengthCalc(){\r\n double baseOne, baseTwo, length;\r\n baseOne = Math.abs(getY1()-getY2());//the first base of the triangle\r\n baseTwo = Math.abs(getX1()-getX2());//the second base of the triangle\r\n length = Math.sqrt(baseOne+baseTwo);//the hypotenuse of the triangle which is the length of the line\r\n return length;\r\n }", "title": "" }, { "docid": "24fd2ce60f9bfb06670cb651794e4aab", "score": "0.51053387", "text": "private Triangle findTriangle(Vector<Point> pointsVec, Point p) {\n\t\tPoint[] arrayPoints = new Point[pointsVec.size()];\n\t\tpointsVec.toArray(arrayPoints);\n\n\t\tint size = arrayPoints.length;\n\t\tif (size < 3) {\n\t\t\treturn null;\n\t\t}\n\t\t// if we left with 3 points we return the triangle\n\t\telse if (size == 3) {\n\t\t\treturn new Triangle(arrayPoints[0], arrayPoints[1], arrayPoints[2]);\n\t\t} else {\n\t\t\tfor (int i = 0; i <= size - 1; i++) {\n\t\t\t\tPoint p1 = arrayPoints[i];\n\t\t\t\tint j = i + 1;\n\t\t\t\tint k = i + 2;\n\t\t\t\tif (j >= size) {\n\t\t\t\t\tj = 0;\n\t\t\t\t\tk = 1;\n\t\t\t\t}\n\t\t\t\t// check IndexOutOfBound\n\t\t\t\telse if (k >= size)\n\t\t\t\t\tk = 0;\n\t\t\t\tPoint p2 = arrayPoints[j];\n\t\t\t\tPoint p3 = arrayPoints[k];\n\t\t\t\t// check if the triangle is not re-entrant and not encloses p\n\t\t\t\tTriangle t = new Triangle(p1, p2, p3);\n\t\t\t\tif ((calcDet(p1, p2, p3) >= 0) && !t.contains(p)) {\n\t\t\t\t\tif (!t.fallInsideCircumcircle(arrayPoints))\n\t\t\t\t\t\treturn t;\n\t\t\t\t}\n\t\t\t\t// if there are only 4 points use contains that refers to point\n\t\t\t\t// on boundary as outside\n\t\t\t\tif (size == 4 && (calcDet(p1, p2, p3) >= 0) && !t.containsBoundaryIsOutside(p)) {\n\t\t\t\t\tif (!t.fallInsideCircumcircle(arrayPoints))\n\t\t\t\t\t\treturn t;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "a95691ea7500b308a74e71157d9c5a91", "score": "0.5098819", "text": "public static void drawLeftUpTriangle(int length){\r\n // TODO : complete the method\r\n\r\n }", "title": "" }, { "docid": "6ab2590e4792a243520159363d1e4e59", "score": "0.5089591", "text": "public static double elevationAngle(Velocity v) {\n\t\treturn Util.atan2_safe(v.vs(), v.gs());\n\t}", "title": "" }, { "docid": "3c50cbab044dd805308b80a31020a431", "score": "0.5080226", "text": "public int getNumCoords() { return _n; }", "title": "" }, { "docid": "6b6da3561f7f1c369ff3a5b3eb81c02d", "score": "0.50569445", "text": "public Double[] getInnerVertices(){\n Double[] arr = {myTriangleHeight/2.0, 0.0, myTriangleHeight, myTriangleHeight/2.0,\n myTriangleHeight/2.0, myTriangleHeight, 0.0, myTriangleHeight/2.0};\n return arr;\n }", "title": "" }, { "docid": "a90df3b701cdf41ceaf00edf82672a3f", "score": "0.5056789", "text": "private int numberOfBordering(int x, int y, int dir_x, int dir_y, int color) {\n int anz = 0;\n for (int i = x + dir_x, j = y + dir_y; i >= 0 && i < dim && j >= 0 && j < dim; i = i + dir_x, j = j + dir_y) {\n if (map[i][j] == color) {\n anz++;\n } else {\n return anz;\n }\n }\n return anz;\n }", "title": "" }, { "docid": "a1cdbae180d19ef8930b43c432ea5e44", "score": "0.50518495", "text": "public static void main(String[] args) {\n\t\tTriAngle t = new TriAngle();\r\n\t\tt.setBase(2.0);\r\n\t\tt.setHeight(2.0);\r\n\t\tSystem.out.println(t.area());\r\n\t\t//System.out.println(t.getBase()*t.getHeight()*0.5);\r\n\t\t\r\n\t}", "title": "" }, { "docid": "30ef6ccd9e2e9c1dcdf283cb75854df7", "score": "0.5050058", "text": "private int getPointCount() { return _pointCount; }", "title": "" }, { "docid": "3969aac48d276a3066b7b37c017dc07f", "score": "0.5040375", "text": "@Override\n public boolean onTouchEvent(MotionEvent event) {\n if (event.getActionMasked() == MotionEvent.ACTION_DOWN) {\n Point touch = new Point((int) event.getX(), (int) event.getY());\n Point[] trianglePoints = getTriangle();\n\n if (!isPointInsideTriangle(touch, trianglePoints[0], trianglePoints[1], trianglePoints[2])) {\n // ignore touch event outside triangle\n return false;\n }\n }\n\n return super.onTouchEvent(event);\n }", "title": "" }, { "docid": "c28e4a403f1a2ed31c2f6162ca3067eb", "score": "0.5035059", "text": "public int getPoints();", "title": "" }, { "docid": "d2ee09cb35ea528eec55f7775b838fea", "score": "0.503441", "text": "private int check(Point p1, Point p2, Point p3){\n\t\treturn (p2.y-p1.y)*(p3.x-p2.x)-(p3.y-p2.y)*(p2.x-p1.x);\n\t}", "title": "" }, { "docid": "028341b06163e0af7c7339ae7a85e56a", "score": "0.503365", "text": "private Integer[] getRelativeVerticeCoordinate(Point point) {\n\t\tdouble x = point.getX();\n\t\tdouble y = point.getY();\n\t\tint xVertice = 0;\n\t\tint yVertice = 0;\n\t\tif(!(Math.abs(x)<=radius)) {\n\t\t\tif(x<0) {\n\t\t\t\txVertice--;\n\t\t\t\tx = x + radius;\n\t\t\t}\n\t\t\telse {\n\t\t\t\txVertice++;\n\t\t\t\tx = x - radius;\n\t\t\t}\n\t\t\twhile(Math.abs(x) >= 2*radius) {\n\t\t\t\tif(x<0) {\n\t\t\t\t\txVertice--;\n\t\t\t\t\tx = x + 2*radius;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\txVertice++;\n\t\t\t\t\tx = x - 2*radius;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif(!(Math.abs(y)<=radius)) {\n\t\t\tif(y<0) {\n\t\t\t\tyVertice--;\n\t\t\t\ty = y + radius;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tyVertice++;\n\t\t\t\ty = y - radius;\n\t\t\t}\n\t\t\twhile(Math.abs(y) >= 2*radius) {\n\t\t\t\tif(y<0) {\n\t\t\t\t\tyVertice--;\n\t\t\t\t\ty = y + 2*radius;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tyVertice++;\n\t\t\t\t\ty = y - 2*radius;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn new Integer[]{xVertice, yVertice};\n\t}", "title": "" }, { "docid": "9d543d50233f3e82dde3a52b35f99cb3", "score": "0.5029539", "text": "@Test\r\n public void testTriang_4(){\r\n assertEquals(4,tri.Triang(1,2,7));\r\n assertEquals(4,tri.Triang(2,1,7));\r\n assertEquals(4,tri.Triang(1,7,2));\r\n assertEquals(4,tri.Triang(2,7,1));\r\n assertEquals(4,tri.Triang(7,2,1));\r\n assertEquals(4,tri.Triang(7,1,2));\r\n assertEquals(4,tri.Triang(2,2,7));\r\n assertEquals(4,tri.Triang(2,7,2));\r\n assertEquals(4,tri.Triang(7,2,2));\r\n }", "title": "" }, { "docid": "9d01f13ad8734ec307bc52f6dfe79ac7", "score": "0.50205255", "text": "public Vertex[] getTriangleVertices(final Polygon p) {\n\t\tVertex[] vertices = new Vertex[3];\n\t\tfor ( int i = 0; i < 3; i++ ) {\n\t\t\tvertices[i] = new Vertex();\n\t\t}\n\t\t// FIXME; change double to double in Vertex\n\t\tvertices[0].x = p.getExteriorRing().getPointN(0).getX();\n\t\tvertices[0].y = yFlag * p.getExteriorRing().getPointN(0).getY();\n\t\tvertices[0].z = p.getExteriorRing().getPointN(0).getCoordinate().z;\n\n\t\tvertices[1].x = p.getExteriorRing().getPointN(1).getX();\n\t\tvertices[1].y = yFlag * p.getExteriorRing().getPointN(1).getY();\n\t\tvertices[1].z = p.getExteriorRing().getPointN(1).getCoordinate().z;\n\n\t\tvertices[2].x = p.getExteriorRing().getPointN(2).getX();\n\t\tvertices[2].y = yFlag * p.getExteriorRing().getPointN(2).getY();\n\t\tvertices[2].z = p.getExteriorRing().getPointN(2).getCoordinate().z;\n\n\t\treturn vertices;\n\t}", "title": "" }, { "docid": "5355f90a911c12d26ab6330eebe46266", "score": "0.50178236", "text": "private float getRoadAltitude(Terrain t) {\n \tfloat x = points.get(0).getX();\n \tfloat y = points.get(0).getY();\n \treturn t.altitude(x, y);\n }", "title": "" }, { "docid": "d6b6f799e60f13368a4a27594ed0ac7e", "score": "0.500274", "text": "public static double apex_triangle(double a, TriangleIntegrate t) {\r\n double position_height = t.c;\r\n double b_pos = position_height;\r\n double factor_minus = a + b_pos;\r\n return factor_minus;\r\n }", "title": "" }, { "docid": "3d9e76e423256f2e66d8cc58b7bcbe9c", "score": "0.4998374", "text": "public int getNumTriangles() {\n if (mPrimitive == GL10.GL_TRIANGLES) {\n return mIndexBuffer.capacity() / 3;\n } else if (mPrimitive == GL10.GL_TRIANGLE_STRIP) {\n return mIndexBuffer.capacity() - 2;\n }\n return 0;\n }", "title": "" }, { "docid": "9dfe7f81e4b64b6a8237389ac198d943", "score": "0.49930915", "text": "private boolean inTriangle(Vector point) {\n return gtZero(point.minus(p2).dotProduct(cp2p1)) &&\n gtZero(point.minus(p3).dotProduct(cp3p2)) &&\n gtZero(point.minus(p1).dotProduct(cp1p3));\n }", "title": "" }, { "docid": "e194d12d075399d5d172bd2c4cbbd35e", "score": "0.49914157", "text": "public static native float calcHeatIndex(float temp, float dewPoint);", "title": "" }, { "docid": "76350a381b00cb19b8cd0b6fdcdcda6b", "score": "0.49792945", "text": "public int getPointCount() {\n return lineShape.getPointCount();\n }", "title": "" }, { "docid": "143e2293d56e8a15982fb26e26546b9b", "score": "0.49758556", "text": "public double[] GetTriangleVertices(final IShape shape) {\n\n\t\tPolygon polygon = (Polygon) shape.getInnerGeometry();\n\t\tdouble[] vertices = new double[9];\n\t\tfor ( int i = 0; i < 3; i++ ) {\n\t\t\tvertices[i * 3] = polygon.getExteriorRing().getPointN(0).getX();\n\t\t\tvertices[i * 3 + 1] = yFlag * polygon.getExteriorRing().getPointN(0).getY();\n\t\t\tvertices[i * 3 + 2] = 0.0d;\n\t\t}\n\t\treturn vertices;\n\t}", "title": "" }, { "docid": "1e260cf90aa7ac8b3f50ab0dbedd4260", "score": "0.49622217", "text": "public int juliaZ(double x0,double y0) {\r\n double xk,yk;\r\n int i;\r\n for (i=0;i<47;i++) {\r\n\r\n xk=x0*x0-y0*y0+p;\r\n yk=2*x0*y0+q;\r\n\r\n if (xk*xk+yk*yk>4) return i;\r\n x0=xk;\r\n y0=yk;\r\n }\r\n return i;\r\n }", "title": "" }, { "docid": "7fe0e58cbb82fcdece8f610b24ad226c", "score": "0.4956836", "text": "private void updateView() {\n\n System.out.println(\"--------------------------------\\n\" +\n \"Eye: \" + eye + \" azi: \" + azimuth + \" alt: \" +\n altitude + \" d: \" + distance );\n\n Triple a, b, c;\n\n e = eye; // just notation\n\n double azi = Math.toRadians(azimuth);\n double alt = Math.toRadians(altitude);\n double cosAzi = Math.cos( azi ), sinAzi = Math.sin( azi );\n double cosAlt = Math.cos( alt ), sinAlt = Math.sin( alt );\n \n // length is distance\n Triple aMinusE = new Triple( cosAlt*distance*cosAzi,\n cosAlt*distance*sinAzi,\n distance*sinAlt );\n a = e.plus(aMinusE);\nSystem.out.println(\"A: \" + a );\n eMinusA = e.minus(a);\nSystem.out.println(\"E-A: \" + eMinusA );\n\n bMinusA = Triple.zAxis.cross( eMinusA );\n bMinusA = bMinusA.normalized(); // make b-a have length 1\n b = a.plus(bMinusA);\n\n cMinusA = eMinusA.cross( bMinusA );\n cMinusA = cMinusA.normalized(); // make c-a have length 1\n c = a.plus(cMinusA);\n \n }", "title": "" }, { "docid": "b5279912e79f7c14986fdaac1d201d1c", "score": "0.49566728", "text": "public double getPerimeter(){\n return this.v1.distance(v2) + this.v2.distance(v3) + this.v3.distance(v1);\r\n }", "title": "" }, { "docid": "3b5b9a5069c9199a6d179fbd9c9b5e8f", "score": "0.49508598", "text": "public abstract double distanceAlongGeometry();", "title": "" }, { "docid": "09025faa504471c343f8709a655e3c34", "score": "0.49417463", "text": "public double getPerimeter(){\n return v1.distanceTo(v2) + v1.distanceTo(v3) + v2.distanceTo(v3);\n }", "title": "" }, { "docid": "c8ed4307322d208f857bc214071aad07", "score": "0.49318886", "text": "private Point[] getTriangle() {\n boolean left = alignment == Align.LEFT;\n Point a = new Point(left ? 0 : getWidth(), -1);\n Point b = new Point(left ? 0 : getWidth(), getHeight() + 1);\n Point c = new Point(left ? getWidth() : 0, getHeight() / 2);\n return new Point[]{a, b, c};\n }", "title": "" }, { "docid": "663040c2fe4d311194faada02127e4f4", "score": "0.49314994", "text": "private float getIntersectCoefficient(final float[] verticesTriangle) {\n\t\tfinal Vector3f triangleV0 = new Vector3f(verticesTriangle[0], verticesTriangle[1],\n\t\t\t\tverticesTriangle[2]);\n\t\tfinal Vector3f triangleV1 = new Vector3f(verticesTriangle[3], verticesTriangle[4],\n\t\t\t\tverticesTriangle[5]);\n\t\tfinal Vector3f triangleV2 = new Vector3f(verticesTriangle[6], verticesTriangle[7],\n\t\t\t\tverticesTriangle[8]);\n\n\t\tfinal Vector3f u = triangleV1.sub(triangleV0);\n\t\tfinal Vector3f v = triangleV2.sub(triangleV0);\n\n\t\tfinal Vector3f n = u.cross(v);\n\n\t\tif (n == new Vector3f(0, 0, 0)) { // triangle is degenerate\n\t\t\treturn Float.MAX_VALUE;\n\t\t}\n\n\t\tfinal Vector3f w0 = origin.sub(triangleV0);\n\t\tfinal float a = -1 * n.dot(w0);\n\t\tfinal float b = n.dot(dir);\n\n\t\tif (Math.abs(b) < 0.00001f) { // ray is parallel\n\t\t\treturn Float.MAX_VALUE;\n\t\t}\n\n\t\tfinal float r = a / b;\n\t\tif (r < 0f) { // ray points in other direction\n\t\t\treturn Float.MAX_VALUE;\n\t\t}\n\n\t\tfinal Vector3f intersectPointOfPlane = origin.add(dir.scale(r));\n\n\t\t// is I inside T?\n\t\tfloat uu, uv, vv, wu, wv, D;\n\t\tuu = u.dot(u);\n\t\tuv = u.dot(v);\n\t\tvv = v.dot(v);\n\t\tfinal Vector3f w = intersectPointOfPlane.sub(triangleV0);\n\t\twu = w.dot(u);\n\t\twv = w.dot(v);\n\t\tD = (uv * uv) - (uu * vv);\n\n\t\t// get and test parametric coords\n\t\tfloat s, t;\n\t\ts = ((uv * wv) - (vv * wu)) / D;\n\t\tif ((s < 0.0f) || (s > 1.0001f)) {\n\t\t\treturn Float.MAX_VALUE;\n\t\t}\n\t\tt = ((uv * wu) - (uu * wv)) / D;\n\t\tif ((t < 0.0f) || ((s + t) > 1.0001f)) {\n\t\t\treturn Float.MAX_VALUE;\n\t\t}\n\n\t\treturn r;\n\t}", "title": "" }, { "docid": "d0bb0488bec9e692f3dfdd2408c8bb6e", "score": "0.4930886", "text": "@Override\n\tpublic double getPerimeter() {\n\t\tdouble hypo = Math.sqrt((width * width) + (height * height)); //hypotenuse of triangle\n\t\treturn width + height + hypo;\n\t}", "title": "" }, { "docid": "880cf9cd651be87f8a5399206ae96b0c", "score": "0.49293837", "text": "private double getPathLengthToPlaneApprox(Hep3Vector xp, Hep3Vector eta, Hep3Vector h) {\n WTrack track = this;\n double a = track.a();\n Hep3Vector p0 = track.getP0();\n Hep3Vector x0 = track.getX0();\n double p = p0.magnitude();\n double rho = a / p;\n double A = VecOp.dot(eta, VecOp.cross(p0, h)) / p * 0.5 * rho;\n double B = VecOp.dot(p0, eta) / p;\n double C = VecOp.dot(VecOp.sub(x0, xp), eta);\n double t = B * B - 4 * A * C;\n if (t < 0) {\n if (_debug) {\n System.out.println(\" getPathLengthToPlaneApprox ERROR t is negative (\" + t + \")!\");\n System.out.println(\" p \" + p + \" rho \" + rho + \" a \" + a + \" A \" + A + \" B \" + B + \" C \" + C);\n System.out.println(\" track params: \" + track.paramsToString());\n System.out.println(\" xp \" + xp.toString());\n System.out.println(\" eta \" + eta.toString());\n System.out.println(\" h \" + h.toString());\n }\n return Double.NaN;\n\n }\n double root1 = (-B + Math.sqrt(t)) / (2 * A);\n double root2 = (-B - Math.sqrt(t)) / (2 * A);\n\n // choose the smallest positive solution\n double root = Math.abs(root1) <= Math.abs(root2) ? root1 : root2;\n\n if (_debug) {\n System.out.println(\" getPathLengthToPlaneApprox \");\n System.out.println(\" \" + track.paramsToString());\n System.out.println(\" xp \" + xp.toString());\n System.out.println(\" eta \" + eta.toString());\n System.out.println(\" h \" + h.toString());\n System.out.println(\" p \" + p + \" rho \" + rho + \" t \" + t + \" A \" + A + \" B \" + B + \" C \" + C);\n System.out.println(\" root1 \" + root1 + \" root2 \" + root2 + \" -> root \" + root);\n }\n return root;\n\n }", "title": "" }, { "docid": "17ae413d2dae6e7ac7d228acb4cab7d9", "score": "0.49173832", "text": "@Override\n\tpublic int cantidadArcos() {\n\t\tint suma = 0; \n\t\tfor (Vertice<T> vertice : verticess.values()) {\n\t\t\tsuma += vertice.getCantidadAdyacentes();\n\t\t}\n\t\treturn suma;\n\t}", "title": "" }, { "docid": "97f9dcfdb4aeb182d6fd57bd6d52f1c5", "score": "0.49112374", "text": "public void draw(int x, int y, final int z, double u, double v) {\n final boolean fromRight = u < 0;\n final boolean fromBottom = v < 0;\n u = Math.min(1, Math.abs(u));\n v = Math.min(1, Math.abs(v));\n\n final int x2;\n final double u1;\n final double u2;\n if (fromRight) {\n x2 = x + drawWidth;\n x = (int) Math.round(x2 - (drawWidth * u));\n u2 = this.u2;\n u1 = u2 - ((this.u2 - this.u1) * u);\n } else {\n x2 = (int) Math.round(x + (drawWidth * u));\n u1 = this.u1;\n u2 = ((this.u2 - u1) * u) + u1;\n }\n\n final int y2;\n final double v1;\n final double v2;\n if (fromBottom) {\n y2 = y + drawHeight;\n y = (int) Math.round(y2 - (drawHeight * v));\n v2 = this.v2;\n v1 = v2 - ((this.v2 - this.v1) * v);\n } else {\n y2 = (int) Math.round(y + (drawHeight * v));\n v1 = this.v1;\n v2 = ((this.v2 - v1) * v) + v1;\n }\n\n final Tessellator tessellator = Tessellator.getInstance();\n final BufferBuilder bufferbuilder = tessellator.getBuffer();\n bufferbuilder.begin(7, DefaultVertexFormats.POSITION_TEX);\n bufferbuilder.pos( x, y2, z).tex(u1, v2).endVertex();\n bufferbuilder.pos(x2, y2, z).tex(u2, v2).endVertex();\n bufferbuilder.pos(x2, y, z).tex(u2, v1).endVertex();\n bufferbuilder.pos( x, y, z).tex(u1, v1).endVertex();\n tessellator.draw();\n }", "title": "" }, { "docid": "16add120c02d4df43a44fc9c19634008", "score": "0.4904474", "text": "@Override\n public Double distance(double[] u, double[] v) {\n double x = 0;\n double y = 0;\n\n for (int i = 0; i < u.length; i++) {\n x += -u[i];\n y += -v[i];\n }\n\n x /= u.length;\n y /= v.length;\n\n double num = 0;\n double den1 = 0;\n double den2 = 0;\n for (int i = 0; i < u.length; i++) {\n num += (u[i] + x) * (v[i] + y);\n\n den1 += Math.abs(Math.pow(u[i] + x, 2));\n den2 += Math.abs(Math.pow(v[i] + x, 2));\n }\n\n return 1 - (num / (Math.sqrt(den1) * Math.sqrt(den2)));\n }", "title": "" }, { "docid": "23146a4642b395c5832b6b7061d1cb95", "score": "0.4902719", "text": "@Test\n public void cameraIntersectTriangle(){\n\n Triangle triangle = new Triangle(new Point3D(0,-1,2)\n ,new Point3D(1,1,2),new Point3D(-1,1,2));\n Camera camera = new Camera(Point3D.ZERO, new Vector(0,0,1), new Vector(0,-1,0));\n\n //T1 : Amount of intersections : [p0 = (0,0,0) ,3x3 ,3x3(hxw) ,d = 1] - [P1 = (0,-1,2) , P2 = (1,1,2), P3 = (-1,1,2)]\n int sumIntersections = 0;\n for (int i =0; i < 3; ++i){\n for (int j = 0; j <3; ++j){\n List<GeoPoint> intersectPoints = triangle.findIntersections(camera.constructRayThroughPixel(3,3,j,i,1,3,3));\n if (intersectPoints != null)\n sumIntersections += intersectPoints.size();\n }\n }\n assertEquals(\"Amount of intersections : [p0 = (0,0,0) ,3x3 ,3x3(hxw) ,d = 1] - [P1 = (0,-1,2) , P2 = (1,1,2), P3 = (-1,1,2)]\"\n ,1,sumIntersections);\n\n //T2 : Amount of intersections : [p0 = (0,0,0) ,3x3 ,3x3(hxw) ,d = 1] - [P1 = (0,-20,2) , P2 = (1,1,2), P3 = (-1,1,2)]\n triangle = new Triangle(new Point3D(0,-20,2)\n ,new Point3D(1,1,2),new Point3D(-1,1,2));\n // same camera\n sumIntersections = 0;\n for (int i =0; i < 3; ++i){\n for (int j = 0; j <3; ++j){\n List<GeoPoint> intersectPoints = triangle.findIntersections(camera.constructRayThroughPixel(3,3,j,i,1,3,3));\n if (intersectPoints != null)\n sumIntersections += intersectPoints.size();\n }\n }\n assertEquals(\"Amount of intersections : [p0 = (0,0,0) ,3x3 ,3x3(hxw) ,d = 1] - [P1 = (0,-20,2) , P2 = (1,1,2), P3 = (-1,1,2)]\"\n ,2,sumIntersections);\n }", "title": "" }, { "docid": "3c100644912dbd1138a312049d9ce2ae", "score": "0.48934504", "text": "public float elevationAt(int x, int y)\n {\n checkValidIndex(x, y);\n return elevations[parameters.linearSampleIndex(x, y)];\n }", "title": "" }, { "docid": "0b4a6c90b27063226553c0b03db3ac10", "score": "0.48924226", "text": "private static native void frzlev1(Object ELEV, int ELEV_byte_offset, Object P, int P_byte_offset, Object HT, int HT_byte_offset, Object T, int T_byte_offset, Object NLVLS, int NLVLS_byte_offset, Object PFRZ, int PFRZ_byte_offset, Object HFRZ, int HFRZ_byte_offset);", "title": "" }, { "docid": "2d349dbb165a6bab5f09f5f9c2db5807", "score": "0.4888134", "text": "int getNumV();", "title": "" }, { "docid": "7729c673cebd57e8c3d679665e5aacc4", "score": "0.48778847", "text": "public int getPoints(Window window) {\n int points;\n int lowerSetAmount;\n\n List<Cell> shadeThreeCells = window.getSameShadeCells(3);\n List<Cell> shadeFourCells = window.getSameShadeCells(4);\n\n if(shadeThreeCells.size() <= shadeFourCells.size())\n lowerSetAmount = shadeThreeCells.size();\n else\n lowerSetAmount = shadeFourCells.size();\n\n points = lowerSetAmount * 2;\n return points;\n }", "title": "" }, { "docid": "44a4c5b4a2edebc868a68cb76bd23239", "score": "0.48705718", "text": "@Override\r\n\tpublic double getPerimeter(){\r\n\t\t/**Given the sides, finds perimeter of triangle\r\n\t\t *Returns the perimeter of triangle */\r\n\t\tdouble Perimeter = this.getside1() + this.getside2() + this.getside3();\r\n\t\treturn Perimeter;\r\n\t}", "title": "" }, { "docid": "247e9e7ff2dadd8f000450730ffdcdaa", "score": "0.4870322", "text": "public List<Point> triangulate(){\n\t\t\n\t\tList<Point> list=new ArrayList<Point>();\n\t\t\n\t\tint n=this.polygon.size();\n\t\t\n\t\tboolean reflexVertex[]=new boolean[n];\n\t\tboolean leftChain[]=new boolean[n];\n\t\t\n\t\tint lowestPointIndex=0;\n\t\tint highestPointIndex=0;\n\t\t\n\t\tfor(int i=1;i<n;i++){\n\t\t\t\n\t\t\tPoint a=this.polygon.get(i);\n\t\t\tPoint lowest=this.polygon.get(lowestPointIndex);\n\t\t\tPoint highest=this.polygon.get(highestPointIndex);\n\t\t\t\n\t\t\tif(a.getY()>lowest.getY()){\n\t\t\t\tlowestPointIndex=i;\n\t\t\t}\n\t\t\t\n\t\t\tif(a.getY()<highest.getY()){\n\t\t\t\thighestPointIndex=i;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\tfor(int i=lowestPointIndex;i<highestPointIndex;i%=n){\n\t\t\t\n\t\t\tleftChain[i]=false;\n\t\t\tint previousi=(i-1+n)%n;\n\t\t\tint nexti=(i+n)%n;\n\t\t\t\n\t\t\tPoint previousP=this.polygon.get(previousi);\n\t\t\tPoint p=this.polygon.get(i);\n\t\t\tPoint nextP=this.polygon.get(nexti);\n\t\t\t\n\t\t\tif(previousP.orientation(p, nextP)==-1)\n\t\t\t\treflexVertex[i]=true;\n\t\t\telse reflexVertex[i]=false;\n\t\t\t\n\t\t\ti=i+1;\n\t\t\t\n\t\t}\n\t\tfor(int i=(highestPointIndex+1)%n;i<lowestPointIndex;i%=n){\n\t\t\t\n\t\t\tleftChain[i]=true;\n\t\t\tint previousi=(i-1+n)%n;\n\t\t\tint nexti=(i+n)%n;\n\t\t\t\n\t\t\tPoint previousP=this.polygon.get(previousi);\n\t\t\tPoint p=this.polygon.get(i);\n\t\t\tPoint nextP=this.polygon.get(nexti);\n\t\t\t\n\t\t\tif(previousP.orientation(p, nextP)==-1)\n\t\t\t\treflexVertex[i]=true;\n\t\t\telse reflexVertex[i]=false;\n\t\t\t\n\t\t\ti=i+1;\n\t\t\t\n\t\t}\n\t\t\n\t\tthis.sortPoints(reflexVertex, leftChain, n);\n\t\t\n\t\t\n\t\tStack<Integer> stack=new Stack<Integer>();\n\t\n\t\t\n\t\tstack.push(0);\n\t\tstack.push(1);\n\t\t\n\t\tfor(int i=2;i<n;i++){\n\t\t\t\n\t\t\t\n\t\t\tint topIndex=stack.peek(); \n\t\t\tPoint pi=this.polygon.get(i);\t\t\n\t\t\tPoint topP=this.polygon.get(topIndex);\n\t\t\t\n\t\t\t\n\t\t\tif(leftChain[i]==leftChain[topIndex]){\n\t\t\t\t\n\t\t\t\twhile(stack.size()>1 && !reflexVertex[topIndex]){\n\t\t\t\t\t\n\t\t\t\t\tstack.pop();\n\t\t\t\t\ttopIndex=stack.peek(); \t\t\n\t\t\t\t\ttopP=this.polygon.get(topIndex);\n\t\t\t\t\t\n\t\t\t\t\tlist.add(pi);\n\t\t\t\t\tlist.add(topP);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tstack.push(i);\n\t\t\t}else{\n\t\t\t\t\n\t\t\t\twhile(!stack.empty()){\n\t\t\t\t\t\n\t\t\t\t\tlist.add(pi);\n\t\t\t\t\tlist.add(this.polygon.get(stack.pop()));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tstack.push(topIndex);\n\t\t\t\tstack.push(i);\t\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\treturn list;\n\t}", "title": "" }, { "docid": "50dc0f87b7b94f0bc5fbc33dbb0d682a", "score": "0.4870119", "text": "public static void main(String[] args) {\n\t\tScanner input = new Scanner(System.in);\r\n System.out.print(\"Enter a point's x- and y-coordinates: \");\r\n double a = input.nextDouble();\r\n double b = input.nextDouble();\r\n if(a > 0 && b > 0 && a*-0.5 - b + 100 > 0)\r\n System.out.println(\"The point is in the triangle\");\r\n else\r\n System.out.println(\"The point is not in the triangle\");\r\n\r\n\t}", "title": "" }, { "docid": "a0f7be3ef1b42b8152101cf791be2aeb", "score": "0.48661253", "text": "private Double calculTrajet(Destination dpt, Destination arv){\n return 32.5*Math.sqrt(Math.pow(Double.valueOf(dpt.getLatitude()) - Double.valueOf(arv.getLatitude()),2)\n + Math.pow(Double.valueOf(dpt.getLongitude()) - Double.valueOf(arv.getLongitude()), 2));\n }", "title": "" }, { "docid": "1fbfbe5b7bcd41ffeadf50ae16fa6fbc", "score": "0.48644212", "text": "int inDegree(Vertex<V> vertex);", "title": "" }, { "docid": "f3dcd29d1a0b98cb674b5b5cbec78280", "score": "0.48639253", "text": "private void calculateVisibleVillages() {\n dCenterX = MapPanel.getSingleton().getCurrentPosition().x;\n dCenterY = MapPanel.getSingleton().getCurrentPosition().y;\n mVillagePositions = new HashMap<>();\n mAllyCount.clear();\n mTribeCount.clear();\n if (DataHolder.getSingleton().isLoading()) {\n //probably reloading data\n return;\n }\n\n dCurrentFieldWidth = GlobalOptions.getSkin().getCurrentFieldWidth(dCurrentZoom);\n dCurrentFieldHeight = GlobalOptions.getSkin().getCurrentFieldHeight(dCurrentZoom);\n\n //ceil\n iVillagesX = (int) Math.ceil((double) MapPanel.getSingleton().getWidth() / dCurrentFieldWidth);\n iVillagesY = (int) Math.ceil((double) MapPanel.getSingleton().getHeight() / dCurrentFieldHeight);\n //village start\n int xStartVillage = (int) Math.floor(dCenterX - iVillagesX / 2.0);\n int yStartVillage = (int) Math.floor(dCenterY - iVillagesY / 2.0);\n //double start\n\n double dXStart = dCenterX - (double) iVillagesX / 2.0;\n double dYStart = dCenterY - (double) iVillagesY / 2.0;\n\n //village end\n int xEndVillage = (int) Math.floor(dXStart + iVillagesX);\n int yEndVillage = (int) Math.floor(dYStart + iVillagesY);\n\n //correct village count\n viewStartPoint = new Point2D.Double(dXStart, dYStart);\n\n double dx = 0 - ((viewStartPoint.x - Math.floor(viewStartPoint.x)) * dCurrentFieldWidth);\n double dy = 0 - ((viewStartPoint.y - Math.floor(viewStartPoint.y)) * dCurrentFieldHeight);\n\n if (dx * dCurrentFieldWidth + iVillagesX * dCurrentFieldWidth < MapPanel.getSingleton().getWidth()) {\n xEndVillage++;\n }\n if (dy * dCurrentFieldHeight + iVillagesY * dCurrentFieldHeight < MapPanel.getSingleton().getHeight()) {\n yEndVillage++;\n }\n iVillagesX = xEndVillage - xStartVillage;\n iVillagesY = yEndVillage - yStartVillage;\n\n mVisibleVillages = new Village[iVillagesX + 1][iVillagesY + 1];\n\n int x = 0;\n int y = 0;\n Rectangle mapDim = ServerSettings.getSingleton().getMapDimension();\n for (int i = xStartVillage; i <= xEndVillage; i++) {\n for (int j = yStartVillage; j <= yEndVillage; j++) {\n if ((i < mapDim.getMinX()) || (i > mapDim.getMaxX()) || (j < mapDim.getMinY()) || (j > mapDim.getMaxY())) {\n //handle villages outside map\n mVisibleVillages[x][y] = null;\n } else {\n mVisibleVillages[x][y] = DataHolder.getSingleton().getVillages()[i][j];\n if (mVisibleVillages[x][y] != null) {\n Point villagePos = new Point((int) Math.floor(dx + x * dCurrentFieldWidth), (int) Math.floor(dy + y * dCurrentFieldHeight));\n mVillagePositions.put(mVisibleVillages[x][y], new Rectangle(villagePos.x, villagePos.y, (int) Math.floor(dCurrentFieldWidth), (int) Math.floor(dCurrentFieldHeight)));\n Tribe t = mVisibleVillages[x][y].getTribe();\n if (t != Barbarians.getSingleton()) {\n if (!mTribeCount.containsKey(t)) {\n mTribeCount.put(t, 1);\n } else {\n mTribeCount.put(t, mTribeCount.get(t) + 1);\n }\n Ally a = t.getAlly();\n if (a == null) {\n a = NoAlly.getSingleton();\n }\n if (!mAllyCount.containsKey(a)) {\n mAllyCount.put(a, 1);\n } else {\n mAllyCount.put(a, mAllyCount.get(a) + 1);\n }\n }\n }\n }\n y++;\n }\n x++;\n y = 0;\n }\n MapPanel.getSingleton().updateVirtualBounds(viewStartPoint);\n }", "title": "" }, { "docid": "2206fe80a266fe2005a658fdb897c42c", "score": "0.4858772", "text": "public static int triangle(int n) {\n\t\treturn n * (n + 1) / 2;\n\t}", "title": "" }, { "docid": "78bb53bbf8265c8f8017c5cff2bdbe33", "score": "0.4856721", "text": "private static void solve(final List<List<Integer>> triangle) {\n\n int level = 0;\n int index = 0;\n int lastLevel = triangle.size() - 1;\n long sum = triangle.get(level).get(index);\n\n while (level < lastLevel) {\n ++level;\n if (level == lastLevel) {\n // only need to pick the largest available number\n int pickL = triangle.get(level).get(index);\n int pickR = triangle.get(level).get(index + 1);\n\n sum += Math.max(pickL, pickR);\n } else if (level == lastLevel - 1) {\n // apply simple algorithm\n int pickL = triangle.get(level).get(index);\n int pickR = triangle.get(level).get(index + 1);\n\n int candL = triangle.get(level + 1).get(index);\n int candM = triangle.get(level + 1).get(index + 1);\n int candR = triangle.get(level + 1).get(index + 2);\n\n int left = Math.max(pickL + candL, pickL + candM);\n int right = Math.max(pickR + candR, pickR + candM);\n\n if (right == left) {\n System.out.println(\"Level #\" + level + \", index #\" + index + \" no hint!\");\n }\n\n if (right > left) {\n sum += pickR;\n ++index; // move right\n } else {\n sum += pickL; // move left\n }\n } else {\n // apply three level estimate\n int pickL = triangle.get(level).get(index);\n int pickR = triangle.get(level).get(index + 1);\n\n int candL = triangle.get(level + 1).get(index);\n int candM = triangle.get(level + 1).get(index + 1);\n int candR = triangle.get(level + 1).get(index + 2);\n\n int cll = triangle.get(level + 2).get(index);\n int clr = triangle.get(level + 2).get(index + 1);\n int cml = clr;\n int cmr = triangle.get(level + 2).get(index + 2);\n\n int crl = cmr;\n int crr = triangle.get(level + 2).get(index + 3);\n\n int left = Math.max(pickL + candL + Math.max(cll, clr), pickL + candM + Math.max(cml, cmr));\n int right = Math.max(pickR + candR + Math.max(crl, crr), pickR + candM + Math.max(cml, cmr));\n\n if (right == left) {\n System.out.println(\"Level #\" + level + \", index #\" + index + \" no hint!\");\n }\n\n if (right > left) {\n sum += pickR;\n ++index; // move right\n } else {\n sum += pickL; // move left\n }\n }\n }\n\n // 6683 for triangle.txt\n System.out.println(\"SUM IS \" + sum);\n }", "title": "" }, { "docid": "53fe82eb14ec262c116619db9401b986", "score": "0.48551878", "text": "private static int distanceBetweenPoints(int[] T, int[] R) {\n return ((R[0] - T[0]) * (R[0] - T[0])) + ((R[1] - T[1]) * (R[1] - T[1]));\n }", "title": "" }, { "docid": "bab8f36186795f652b6c50232a5e5ca1", "score": "0.4854695", "text": "public static void drawRightUpTriangle(int length){\r\n // TODO : complete the method\r\n\r\n }", "title": "" }, { "docid": "5f25b5bb3471685e6f0ef4f02e671663", "score": "0.48518363", "text": "public boolean ControlPolygonFlatEnough(Position[] V, int degree){\r\n\t\t//Index variable\r\n\t int i;\r\n\t double value;\r\n\t double max_distance_above;\r\n\t double max_distance_below;\r\n\t \r\n\t //Precision of root\r\n\t double error;\r\n\t double intercept_1,\r\n\t intercept_2,\r\n\t left_intercept,\r\n\t right_intercept;\r\n\t \r\n\t //Coefficients of implicit eqn for line from V[0]-V[deg]\r\n\t double a, b, c; \r\n\t double det, dInv;\r\n\t double a1, b1, c1, a2, b2, c2;\r\n\r\n\t /* \r\n\t * Derive the implicit equation for line connecting first\r\n\t * and last control points.\r\n\t */\r\n\t a = V[0].getY() - V[degree].getY();\r\n\t b = V[degree].getX() - V[0].getX();\r\n\t c = V[0].getX() * V[degree].getY() - V[degree].getX() * V[0].getY();\r\n\r\n\t max_distance_above = max_distance_below = 0.0;\r\n\t \r\n\t for (i = 1; i < degree; i++)\r\n\t {\r\n\t value = a * V[i].getX() + b * V[i].getY() + c;\r\n\t \r\n\t if (value > max_distance_above)\r\n\t {\r\n\t max_distance_above = value;\r\n\t }\r\n\t else if (value < max_distance_below)\r\n\t {\r\n\t max_distance_below = value;\r\n\t }\r\n\t }\r\n\r\n\t // Implicit equation for zero line \r\n\t a1 = 0.0;\r\n\t b1 = 1.0;\r\n\t c1 = 0.0;\r\n\r\n\t // Implicit equation for \"above\" line \r\n\t a2 = a;\r\n\t b2 = b;\r\n\t c2 = c - max_distance_above;\r\n\r\n\t det = a1 * b2 - a2 * b1;\r\n\t dInv = 1.0/det;\r\n\r\n\t intercept_1 = (b1 * c2 - b2 * c1) * dInv;\r\n\r\n\t // Implicit equation for \"below\" line \r\n\t a2 = a;\r\n\t b2 = b;\r\n\t c2 = c - max_distance_below;\r\n\r\n\t det = a1 * b2 - a2 * b1;\r\n\t dInv = 1.0/det;\r\n\r\n\t intercept_2 = (b1 * c2 - b2 * c1) * dInv;\r\n\r\n\t // Compute intercepts of bounding box \r\n\t left_intercept = Math.min(intercept_1, intercept_2);\r\n\t right_intercept = Math.max(intercept_1, intercept_2);\r\n\r\n\t error = right_intercept - left_intercept;\r\n\r\n\t return (error < EPSILON)? true : false;\r\n\t}", "title": "" }, { "docid": "602a88f250cb9024207f42882d165bab", "score": "0.48499453", "text": "public int numberOfVertices() {\n\t\treturn verticesToPoints.size();\n\t}", "title": "" }, { "docid": "9d68ba93e91a233931cd4f4844fa2097", "score": "0.48495677", "text": "int getGrau(int v) {\n\t\tint resp = 0;\n\t\tif (!direcionado) {\n\t\t\tresp = getAdjacentes(v).size();\n\t\t}\n\t\telse{\n\t\t resp = getAntecessores(v).size() + getSucessores(v).size();\n }\n\n\t\treturn resp;\n\t}", "title": "" }, { "docid": "240444ea7ec49f276cddf79d2bbb0ae9", "score": "0.48471308", "text": "private PointDT countVector(LinkedList list, PointDT P){\n\t\tIterator iter = list.iterator();\n\t\t\n\t\t//System.out.println(\"Normaly rovin\");\n\t\tdouble sumX = 0;\n\t\tdouble sumY = 0;\n\t\tdouble sumZ = 0;\n\t\twhile (iter.hasNext()){\n\t\t\tPointDT X = (PointDT) iter.next();\n\t\t\t//System.out.println(\"Normaly rovin\"+X.toString());\n\t\t\tsumX += X.x;\n\t\t\tsumY += X.y;\n\t\t\tsumZ += X.z;\n\t\t}\n\t\tdouble sum = Math.sqrt(Math.pow(sumX,2)+Math.pow(sumY, 2)+Math.pow(sumZ, 2));\n\t//\tdouble sum = 1;\n\t\treturn new PointDT((sumX/sum), (sumY/sum), (sumZ/sum));\n\t\t//return new PointDT((sumX), (sumY), (sumZ));\n\t}", "title": "" }, { "docid": "06a15bf77775c0120abb776e6856ac62", "score": "0.4842392", "text": "public abstract boolean isTriangle();", "title": "" }, { "docid": "1fc884e04ce6feed82d2fecd9fdfd9dd", "score": "0.48411807", "text": "public double getElevation() {\r\n return elevation;\r\n }", "title": "" }, { "docid": "5f4fcb91692dd96aa6eb42b27ed79f1b", "score": "0.48399818", "text": "double getPosz();", "title": "" }, { "docid": "f34ca62db54317118a92d0ff5902d000", "score": "0.48322606", "text": "public int countLength(Point to) {\n if ((x != to.x) && (y != to.y))\n System.out.println(\"distance count fails\");\n return abs(x - to.x) + abs(y - to.y);\n }", "title": "" }, { "docid": "7ff0201723004e83fef4a6a83c0123dc", "score": "0.4829251", "text": "int outDegree(Vertex<V> vertex);", "title": "" }, { "docid": "ca5f1e5e0c32404fae86b9eb2679c658", "score": "0.48182616", "text": "@Override\n public Float distance(float[] u, float[] v) {\n float x = 0;\n float y = 0;\n\n for (int i = 0; i < u.length; i++) {\n x += -u[i];\n y += -v[i];\n }\n\n x /= u.length;\n y /= v.length;\n\n float num = 0;\n float den1 = 0;\n float den2 = 0;\n for (int i = 0; i < u.length; i++) {\n num += (u[i] + x) * (v[i] + y);\n\n den1 += Math.abs(Math.pow(u[i] + x, 2));\n den2 += Math.abs(Math.pow(v[i] + x, 2));\n }\n\n return 1f - (num / ((float) Math.sqrt(den1) * (float) Math.sqrt(den2)));\n }", "title": "" }, { "docid": "cf99d497bd8c57bfbdb021e891691236", "score": "0.481407", "text": "public int getPointVie(){\n return this.pointVie;\n }", "title": "" }, { "docid": "e03e3d91f18dc2367c9b694d3c9269ef", "score": "0.4811926", "text": "private void drawTriangle (final float []vAll, final int v0, final int v1, \n\t\t\tfinal int v2, boolean solid)\n\t{\n\t\tfloat[] u=new float[3],v=new float[3],normal=new float[3];\n\t\tu[0] = vAll[v1] - vAll[v0];//v1[0] - v0[0];\n\t\tu[1] = vAll[v1+1] - vAll[v0+1];//v1[1] - v0[1];\n\t\tu[2] = vAll[v1+2] - vAll[v0+2];//v1[2] - v0[2];\n\t\tv[0] = vAll[v2] - vAll[v0];//v2[0] - v0[0];\n\t\tv[1] = vAll[v2+1] - vAll[v0+1];//v2[1] - v0[1];\n\t\tv[2] = vAll[v2+2] - vAll[v0+2];//v2[2] - v0[2];\n\t\tcrossProduct3(normal,u,v);\n\t\tnormalizeVector3 (normal);\n\n\t\tGL11.glBegin(solid ? GL11.GL_TRIANGLES : GL11.GL_LINE_STRIP);\n\t\tGL11.glNormal3f (normal[0], normal[1], normal[2]);\n\t\tGL11.glVertex3f (vAll[v0], vAll[v0+1], vAll[v0+2]);//, v0[0], v0[1], v0[2]);\n\t\tGL11.glVertex3f (vAll[v1], vAll[v1+1], vAll[v1+2]);//v1[0], v1[1], v1[2]);\n\t\tGL11.glVertex3f (vAll[v2], vAll[v2+1], vAll[v2+2]);//v2[0], v2[1], v2[2]);\n\t\tGL11.glEnd();\n\t}", "title": "" }, { "docid": "67de3dd0ecec5b8b70a0a432a04d9a16", "score": "0.48081598", "text": "private double triAngle(double[] u0,double[] u1,double[] u2, double[] u3)\n {\n double[] unorm = new double[3];\n double[] vnorm = new double[3];\n double[] temp = new double[3];\n double[] u10 = new double[3];\n double[] u20 = new double[3];\n double[] v10 = new double[3];\n double[] v20 = new double[3];\n double len;\n sub(u10, u1, u0);\n sub(u20, u2, u0);\n sub(v10, u2, u0);\n sub(v20, u3, u0);\n cross(temp, u10, u20);\n len = dist(temp, nullv);\n mult(unorm, temp, 1/len);\n cross(temp, v10, v20);\n len = dist(temp, nullv);\n mult(vnorm, temp, 1/len);\n cross(temp, unorm, vnorm);\n double dist;\n dist = dist(temp, nullv);\n if(dist > 0.9999999999) return 90;\n return 180 / Math.PI * Math.asin(dist);\n }", "title": "" }, { "docid": "14da31c0e240be79274cdfff07fc0b0e", "score": "0.48077354", "text": "int getOrdem(){\n\t\treturn num_vertices;\n\t}", "title": "" }, { "docid": "f27083a5ee25f813817e5d8694fc8063", "score": "0.48043942", "text": "int getPathDepthByType(ScatteredRay.Type type);", "title": "" }, { "docid": "c2b073fd5a39301c0ab76b1a630d73d8", "score": "0.4803317", "text": "private static Triangle findnext1(Point p, Triangle v) {\n\t\tif (p.pointLineTest(v.getA(), v.getB()) == Point.RIGHT && !v.getAbTriangle().isHalfplane())\n\t\t\treturn v.getAbTriangle();\n\t\tif (p.pointLineTest(v.getB(), v.getC()) == Point.RIGHT && !v.getBcTriangle().isHalfplane())\n\t\t\treturn v.getBcTriangle();\n\t\tif (p.pointLineTest(v.getC(), v.getA()) == Point.RIGHT && !v.getCaTriangle().isHalfplane())\n\t\t\treturn v.getCaTriangle();\n\t\tif (p.pointLineTest(v.getA(), v.getB()) == Point.RIGHT)\n\t\t\treturn v.getAbTriangle();\n\t\tif (p.pointLineTest(v.getB(), v.getC()) == Point.RIGHT)\n\t\t\treturn v.getBcTriangle();\n\t\tif (p.pointLineTest(v.getC(), v.getA()) == Point.RIGHT)\n\t\t\treturn v.getCaTriangle();\n\t\treturn null;\n\t}", "title": "" }, { "docid": "a0e32c52d5cfe67c0fd356300392d8e4", "score": "0.48029435", "text": "public abstract float analyzeGesture( Vector3[] instanceDirections, int instanceDirectionsCount );", "title": "" }, { "docid": "e675a8c4d2118d787be6f8d795e03499", "score": "0.47964293", "text": "static int countingValleys(int steps, String path) {\n int level = 0;\n int total=0;\n boolean below = true;\n for(int i=0; i<steps;i++){\n if(path.charAt(i)=='D'){\n level--;\n if(level<0 && below){\n total++;\n below= false;\n }\n }\n if(path.charAt(i)=='U'){\n level++;\n if(!below && level>-1) below = true;\n }\n\n }\n return total;\n }", "title": "" }, { "docid": "6f4847261cd510aa50013a14859aeb1c", "score": "0.47956848", "text": "public synchronized void calcPositions(V v) {\n Vector3f fvd = frVertexData.get(v);\n if(fvd == null) return;\n Point3f xyd = transform(v);\n \n double deltaLength = Math.max(EPSILON, fvd.length());\n // double deltaLength = Math.max(EPSILON, Math.sqrt(fvd.disp\n // .dot(fvd.disp)));\n \n Vector3f newDisp = new Vector3f(fvd);\n newDisp.scale((float)(Math.min(deltaLength, temperature)/deltaLength), fvd);\n // double newXDisp = fvd.getXDisp() / deltaLength\n // * Math.min(deltaLength, temperature);\n \n // if (Double.isNaN(newXDisp)) { \n // \tthrow new IllegalArgumentException(\n // \"Unexpected mathematical result in FRLayout:calcPositions [xdisp]\"); }\n //\n // double newYDisp = fvd.getYDisp() / deltaLength\n // * Math.min(deltaLength, temperature);\n // \n // \n // double newZDisp = fvd.getZDisp() / deltaLength\n // * Math.min(deltaLength, temperature);\n // System.err.println(\"deltaLength = \"+deltaLength);\n // System.err.println(v+\" was set to \"+xyd);\n \n xyd.add(newDisp);\n \n // xyd.set((float)(xyd.getX()+newXDisp), \n // \t\t(float)(xyd.getY()+newYDisp), \n // \t\t(float)(xyd.getZ()+newZDisp));\n // System.err.println(\"newXDisp=\"+newXDisp+\",newYDisp=\"+newYDisp+\",newZDisp=\"+newZDisp);\n // System.err.println(v+\" set to \"+xyd);\n \n double borderWidth = getSize().getRadius() / 50.0;\n double min = -getSize().getRadius() + borderWidth;\n double max = -min;\n \n double[] min_pos = new double[3];\n double[] max_pos = new double[3];\n for (int i = 0; i < 3; i++)\n {\n min_pos[i] = min + Math.random() * borderWidth * 2;\n max_pos[i] = max - Math.random() * borderWidth * 2;\n }\n \n \n xyd.set((float)Math.min(Math.max(xyd.getX(), min_pos[0]), max_pos[0]), \n (float)Math.min(Math.max(xyd.getY(), min_pos[1]), max_pos[1]),\n (float)Math.min(Math.max(xyd.getZ(), min_pos[2]), max_pos[2]));\n \n // double newXPos = xyd.getX();\n // if (newXPos < min) {\n // newXPos = min + Math.random() * borderWidth * 2.0;\n // } else if (newXPos > max) {\n // newXPos = max - Math.random()\n // * borderWidth * 2.0;\n // }\n //\n // double newYPos = xyd.getY();\n // if (newYPos < min) {\n // newYPos = min + Math.random() * borderWidth * 2.0;\n // } else if (newYPos > max) {\n // newYPos = max\n // - Math.random() * borderWidth * 2.0;\n // }\n //\n // double newZPos = xyd.getZ();\n // if (newZPos < min) {\n // newZPos = min + Math.random() * borderWidth * 2.0;\n // } else if (newZPos > max) {\n // newZPos = max\n // - Math.random() * borderWidth * 2.0;\n // }\n //\n // xyd.set((float)newXPos, (float)newYPos, (float)newZPos);\n }", "title": "" }, { "docid": "e37da17f6dc2178bbf951df9ba21ceb9", "score": "0.47940868", "text": "double getDist(double xDiff, double yDiff, double zDiff);", "title": "" }, { "docid": "cff269951879c8ca16c16bfa2f6ab150", "score": "0.47864744", "text": "int getTamanho(){\n\t\tint count = 0;\n\n if(!direcionado) {\n for (int i = 0; i < num_vertices; i++) {\n for (int j = i; j < num_vertices; j++) {\n if (mGrafo[i][j] != 0 && mGrafo[i][j] != -1) {\n count++;\n }\n }//fim for\n }\n }\n else {\n\n for (int i = 0; i < num_vertices; i++) {\n for (int j = 0; j < num_vertices; j++) {\n count++;\n }//fim for\n }\n }\n\t\treturn count;\n\t}", "title": "" }, { "docid": "fe720f63f5475dbff7255f9494860559", "score": "0.4783125", "text": "public void recursiveContourlineGeneration(Set<ITriangle> visitedTriangles, ITriangle triangle, IPoint borderPoint1, IPoint borderPoint2,\r\n\t\t\tList<IPoint> countourPoints, double depth) {\r\n\t\tIPoint p1 = (IPoint) triangle.getPoints().get(0);\r\n\t\tIPoint p2 = (IPoint) triangle.getPoints().get(1);\r\n\t\tIPoint p3 = (IPoint) triangle.getPoints().get(2);\r\n\t\tif (visitedTriangles.contains(triangle)) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t// intersects between p1 and p2\r\n\t\tif (intersectsPoints(borderPoint1, borderPoint2, depth, p1, p2)) {\r\n\t\t\tdouble percent = getLinearPercent(depth, p1, p2);\r\n\t\t\tdouble x = getLinearX(p1, p2, percent);\r\n\t\t\tdouble y = getLinearY(p1, p2, percent);\r\n\t\t\tvisitedTriangles.add(triangle);\r\n\t\t\tcountourPoints.add(new Point(x, y));\r\n\t\t\tITriangle nextTriangle = getNextContourTriangle(triangle, borderPoint1, borderPoint2, p1, p2);\r\n\t\t\tif (!visitedTriangles.contains(nextTriangle) && nextTriangle != null) {\r\n\t\t\t\trecursiveContourlineGeneration(visitedTriangles, nextTriangle, p1, p2, countourPoints, depth);\r\n\t\t\t}\r\n\t\t} else if (intersectsPoints(borderPoint1, borderPoint2, depth, p2, p1)) {\r\n\t\t\tdouble percent = getLinearPercent(depth, p2, p1);\r\n\t\t\tdouble x = getLinearX(p2, p1, percent);\r\n\t\t\tdouble y = getLinearY(p2, p1, percent);\r\n\t\t\tcountourPoints.add(new Point(x, y));\r\n\t\t\tvisitedTriangles.add(triangle);\r\n\t\t\tITriangle nextTriangle = getNextContourTriangle(triangle, borderPoint1, borderPoint2, p2, p1);\r\n\t\t\tif (!visitedTriangles.contains(nextTriangle) && nextTriangle != null) {\r\n\t\t\t\trecursiveContourlineGeneration(visitedTriangles, nextTriangle, p2, p1, countourPoints, depth);\r\n\t\t\t}\r\n\t\t} else if (intersectsPoints(borderPoint1, borderPoint2, depth, p3, p2)) {\r\n\t\t\tdouble percent = getLinearPercent(depth, p3, p2);\r\n\t\t\tdouble x = getLinearX(p3, p2, percent);\r\n\t\t\tdouble y = getLinearY(p3, p2, percent);\r\n\t\t\tcountourPoints.add(new Point(x, y));\r\n\t\t\tvisitedTriangles.add(triangle);\r\n\t\t\tITriangle nextTriangle = getNextContourTriangle(triangle, borderPoint1, borderPoint2, p3, p2);\r\n\t\t\tif (!visitedTriangles.contains(nextTriangle) && nextTriangle != null) {\r\n\t\t\t\trecursiveContourlineGeneration(visitedTriangles, nextTriangle, p3, p2, countourPoints, depth);\r\n\t\t\t}\r\n\t\t} else if (intersectsPoints(borderPoint1, borderPoint2, depth, p2, p3)) {\r\n\t\t\tdouble percent = getLinearPercent(depth, p2, p3);\r\n\t\t\tdouble x = getLinearX(p2, p3, percent);\r\n\t\t\tdouble y = getLinearY(p2, p3, percent);\r\n\t\t\tcountourPoints.add(new Point(x, y));\r\n\t\t\tvisitedTriangles.add(triangle);\r\n\t\t\tITriangle nextTriangle = getNextContourTriangle(triangle, borderPoint1, borderPoint2, p2, p3);\r\n\t\t\tif (!visitedTriangles.contains(nextTriangle) && nextTriangle != null) {\r\n\t\t\t\trecursiveContourlineGeneration(visitedTriangles, nextTriangle, p2, p3, countourPoints, depth);\r\n\t\t\t}\r\n\t\t} else if (intersectsPoints(borderPoint1, borderPoint2, depth, p3, p1)) {\r\n\t\t\tdouble percent = getLinearPercent(depth, p3, p1);\r\n\t\t\tdouble x = getLinearX(p3, p1, percent);\r\n\t\t\tdouble y = getLinearY(p3, p1, percent);\r\n\t\t\tcountourPoints.add(new Point(x, y));\r\n\t\t\tvisitedTriangles.add(triangle);\r\n\t\t\tITriangle nextTriangle = getNextContourTriangle(triangle, borderPoint1, borderPoint2, p3, p1);\r\n\t\t\tif (!visitedTriangles.contains(nextTriangle) && nextTriangle != null) {\r\n\t\t\t\trecursiveContourlineGeneration(visitedTriangles, nextTriangle, p3, p1, countourPoints, depth);\r\n\t\t\t}\r\n\t\t} else if (intersectsPoints(borderPoint1, borderPoint2, depth, p1, p3)) {\r\n\t\t\tdouble percent = getLinearPercent(depth, p1, p3);\r\n\t\t\tdouble x = getLinearX(p1, p3, percent);\r\n\t\t\tdouble y = getLinearY(p1, p3, percent);\r\n\t\t\tcountourPoints.add(new Point(x, y));\r\n\t\t\tvisitedTriangles.add(triangle);\r\n\t\t\tITriangle nextTriangle = getNextContourTriangle(triangle, borderPoint1, borderPoint2, p1, p3);\r\n\t\t\tif (!visitedTriangles.contains(nextTriangle) && nextTriangle != null) {\r\n\t\t\t\trecursiveContourlineGeneration(visitedTriangles, nextTriangle, p1, p3, countourPoints, depth);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}", "title": "" } ]
c7a6f3d03f4b34c75bafae6ac73aeccf
dato un char in input, restituisce l'oggetto enum
[ { "docid": "bf2b88570edde76bc742555107405cf7", "score": "0.55768126", "text": "public static ControlCHCostants getEnumFromChar(char ch) {\n\t\tfor (int i = 0; i<ControlCHCostants.values().length; i++)\n\t\t\tif (String.valueOf(ch).equalsIgnoreCase(ControlCHCostants.values()[i].toString()))\n\t\t\t\treturn ControlCHCostants.values()[i];\n\t\treturn null;\n\t}", "title": "" } ]
[ { "docid": "816eb0d471f1a5e18b00780021ed1630", "score": "0.6318705", "text": "public static void letra(){\n\t\tScanner sc=new Scanner(System.in);\n\t\tchar letra;\n\t\tSystem.out.println(\"Introduzca una letra: \");\n\t\tletra=sc.next().charAt(0);\n\t\t\n\t\tswitch(letra){\n\t\t\tcase 'a': case 'A':\n\t\t\tcase 'e':case 'E':\n\t\t\tcase 'i':case'I':\n\t\t\tcase 'o': case'O':\n\t\t\tcase'u': case 'U':\n\t\t\t\tSystem.out.println(\"Es una vocal\");\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tSystem.out.println(\"Es una consonante.\");\n\t\t}\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "5f62f92137db83b48a142fcf85aec8d2", "score": "0.62855697", "text": "public static int checkCharType(char input){\n\n // Scanner scanner = new Scanner(System.in);\n // System.out.println(\"Enter a Character : \");\n // char input = scanner.next().charAt(0);\n //scanner.close();\n\n if(input >='a' && input <= 'z'){\n System.out.println(\"Small case Letter.\");\n return 1;\n }\n else if(input >='A' && input <= 'Z'){\n System.out.println(\"Capital Letter.\");\n return 2;\n }\n else if(input >='0' && input <= '9'){\n System.out.println(\"A Digit.\");\n return 3;\n }\n else{\n System.out.println(\"Special Character.\");\n return 4;\n }\n }", "title": "" }, { "docid": "33dd0cc89064b0d58c3a7e7d570754a6", "score": "0.6200606", "text": "public T caseCharEnum(CharEnum object)\n {\n return null;\n }", "title": "" }, { "docid": "549173abc6acd79a13e840a98a876c3d", "score": "0.6077942", "text": "public static void main(String[]args){//inicio del main\r\n\r\n\tScanner in = new Scanner(System.in);// creacion del scanner\r\n\tSystem.out.println(\"Input Character\");//impresion del mensaje en consola\r\n\tchar C= in.next().charAt(0);//lectura del char\r\n\t\r\n\tSystem.out.println(\"The ASCII value of \" +C+ \" is : \"+(int) C);//casteo del caracter e impresion del resultado\r\n\t}", "title": "" }, { "docid": "6f0706be5ca7da75e665724eb136927c", "score": "0.60253185", "text": "char getEChar();", "title": "" }, { "docid": "e2af7342c58549e1e5003a779c58fe60", "score": "0.5970653", "text": "public static char playerInput(String player) {\r\n\t System.out.println(\"Enter the input to begin the game: X | O: \");\r\n\t char inputChar = value.next().charAt(0);\r\n\r\n\t return inputChar;\r\n\t }", "title": "" }, { "docid": "5dd51ea48658154b1b4c82271c9e98ea", "score": "0.5904532", "text": "private static char readOperation() {\n\t\tOut.println();\n\t\tOut.print(\"Bitte Operation auswaehlen: (a, z, e, n, l, p, x): \");\n\n\t\tString line = In.readLine().trim();\n\t\t//Student (Simon Sternbauer): I have added a method to show all appointments by typing in \"p\"\n\t\twhile (line.length() == 0 || ! line.startsWith(\"a\") && ! line.startsWith(\"z\") && \n\t\t\t\t! line.startsWith(\"e\") && ! line.startsWith(\"n\") && \n\t\t\t\t! line.startsWith(\"l\") && ! line.startsWith(\"x\") &&\n\t\t\t\t! line.startsWith(\"p\")) {\n\t\t\t// wrong operation code, repeat input of operation code\n\t\t\tOut.println();\n\t\t\tOut.print(\" Falsche Eingabe! Bitte Eingabe wiederholen: (a, z, e, n, l, x): \");\n\t\t\t \n\t\t\tline = In.readLine().trim();\n\t\t}\n\t\treturn line.charAt(0);\n\t}", "title": "" }, { "docid": "6ad328d32e7f51880874f870bcdde077", "score": "0.5877365", "text": "private static void task41() {\n System.out.println(\"Enter character: \");\n char ch = scanStr().charAt(0);\n\n System.out.println(\"ASCII value of \" + ch + \" is \" + (int)ch);\n }", "title": "" }, { "docid": "f0e2c23885acafce36b0f60b36dc1a02", "score": "0.58160436", "text": "private int char2Int(char _char){\n \tswitch(_char){\r\n \tcase 'A': case 'a': return 0; \r\n \tcase 'R': case 'r': return 1;\r\n \tcase 'N': case 'n': return 2; \t\r\n \tcase 'D': case 'd': return 3;\r\n \tcase 'C': case 'c': return 4;\r\n \tcase 'Q': case 'q': return 5;\r\n \tcase 'E': case 'e': return 6;\r\n \tcase 'G': case 'g': return 7;\r\n \tcase 'H': case 'h': return 8;\r\n \tcase 'I': case 'i': return 9;\r\n \tcase 'L': case 'l': return 10;\r\n \tcase 'K': case 'k': return 11;\r\n \tcase 'M': case 'm': return 12;\r\n \tcase 'F': case 'f': return 13;\r\n \tcase 'P': case 'p': return 14;\r\n \tcase 'S': case 's': return 15;\r\n \tcase 'T': case 't': return 16;\r\n \tcase 'W': case 'w': return 17;\r\n \tcase 'Y': case 'y': return 18;\r\n \tcase 'V': case 'v': return 19;\r\n \tcase 'B': case 'b': return 20;\r\n \tcase 'Z': case 'z': return 21;\r\n \tcase 'X': case 'x': return 22; \t\r\n \tdefault: return 23;\r\n \t}\r\n \t//\"A R N D C Q E G H I L K M F P S T W Y V B Z X *\"\r\n }", "title": "" }, { "docid": "283ae5c106c93d14dc7c5c0331ad627b", "score": "0.5801801", "text": "public static char inputChar(String p) {\n String c;\n while (true) {\n System.out.print(p);\n c = in.nextLine();\n if (c.length() == 1) {\n return c.charAt(0);\n } else {\n System.err.print(\"Must enter character, enter again! \");\n }\n }\n }", "title": "" }, { "docid": "ab710ab1f51429d01b663cf69db646db", "score": "0.57819706", "text": "public boolean characterInput(char c);", "title": "" }, { "docid": "3912a7014da285c8b5ac37ea512ff39b", "score": "0.5711245", "text": "public char cambiarSexoAChar(@SuppressWarnings(\"rawtypes\") JComboBox campoTexto) {\n\t\tString sexo = campoTexto.getSelectedItem().toString();\n\t\tif (sexo == \"Hombre\") {\n\t\t\treturn 'V';\n\t\t} else\n\t\t\treturn 'M';\n\t}", "title": "" }, { "docid": "656f8129a260414ce7dab8a3e3adf981", "score": "0.56720567", "text": "public void CasoChar(String caracter) throws IOException, Exception\r\n {\r\n String palabra = caracter + leerCaracter() + leerCaracter() + leerCaracter();\r\n switch (palabra.toUpperCase())\r\n {\r\n case \"CHR(\":\r\n String[] numero = leerPalabra(leerCaracter(), \")\");\r\n Matcher matcher = patronNUM.matcher(numero[0]);\r\n if (matcher.matches())\r\n {\r\n switch (numero[1])\r\n {\r\n case \")\":\r\n if (leerRango)\r\n {\r\n if (AnalizarRango(contenidoConjunto.get(contenidoConjunto.size() - 1), Integer.parseInt(numero[0])))\r\n {\r\n int inicio = contenidoConjunto.size() - 1; int fin = Integer.parseInt(numero[0]);\r\n for (int i = contenidoConjunto.get(inicio); i <= fin; i++)\r\n {\r\n contenidoConjunto.add(i);\r\n }\r\n leerRango = false;\r\n AnalizarSimbolo(leerCaracter());\r\n }\r\n }\r\n else\r\n {\r\n contenidoConjunto.add(Integer.parseInt(numero[0]));\r\n AnalizarSimbolo(leerCaracter());\r\n }\r\n break;\r\n default:\r\n Caracteres -= numero[1].length(); debeContinuar = false;\r\n E1(\"Se esperaba final de la definición del caracter en ASCII, no se cerro el parentesis.\");\r\n break;\r\n }\r\n }\r\n else\r\n {\r\n Caracteres -= numero[0].length(); debeContinuar = false;\r\n E1(\"No se definió de forma correcta el char por el método ASCII, se esperaba un número dentro de los parentesis.\");\r\n }\r\n break;\r\n default:\r\n Caracteres -= palabra.length(); debeContinuar = false;\r\n E1(\"Se esperaba la definición por código ASCII del elemento del conjunto \" + nombreConjunto);\r\n break;\r\n }\r\n }", "title": "" }, { "docid": "5e02eac8cea3317212286491cc02fd7e", "score": "0.56389254", "text": "public abstract char read_char();", "title": "" }, { "docid": "6084b55eb23d6500d74531e40b8136c4", "score": "0.5632315", "text": "public char getChar();", "title": "" }, { "docid": "6b43365eff226752860d3caaf42b0e77", "score": "0.56101364", "text": "public static char leerCaracter() { \n\t\tchar letra = sc.nextLine().charAt(0); // Lee una cadena y obtiene el primer caracter\n\t\treturn letra;\n\t}", "title": "" }, { "docid": "8e017211f009132fa3cb979b97d69dc6", "score": "0.56067", "text": "@Test\n public void test2() throws Throwable {\n SitNFe sitNFe0 = SitNFe.COM_DANFE;\n char char0 = sitNFe0.getValue();\n assertEquals('D', char0);\n }", "title": "" }, { "docid": "55c53158636f6805b698b35b5534b320", "score": "0.5594041", "text": "private char readChar() \n {\n \n String uInput = null;//user input\n do//do while loop to wait for a charater\n {\n try//collect user input\n {\n uInput = br.readLine();\n }\n catch(IOException ioe)//catch IOE\n {\n System.out.println(\"IO error trying to read number. Exiting now\");\n System.exit(1);\n }\n if(uInput.charAt(0)=='?')//special case for ? symbol\n {\n return uInput.charAt(0);\n }\n if(!Character.isLetter(uInput.charAt(0)))//check for charater\n {\n System.out.println(\"Invalid input, use ? for a list of commands\");\n System.out.printf(\"=> \");\n }\n }\n while(!Character.isLetter(uInput.charAt(0)));\n\n return uInput.charAt(0);//return character input\n \n }", "title": "" }, { "docid": "3205bec51a7785bb7f397a7d897f1c17", "score": "0.55907214", "text": "public static char checkInput() {\r\n\t\tchar ch = ' ';\r\n\t\tboolean check = true;\r\n\t\tdo {\r\n\t\t\ttry {\r\n\t\t\t\tch = input.next(\".\").charAt(0);\t\t// samo jedan karakter dozvoljen\r\n\t\t\t\tcheck = false;\r\n\t\t\t}\r\n\t\t\tcatch (Exception e) {\t\t// hvatanje greske\r\n\t\t\t\tSystem.out.println(\"Pogresan unos, samo jedan karakter dozvoljen! Probaj ponovo:\");\r\n\t\t\t\tinput.nextLine();\r\n\t\t\t}\r\n\t\t} while (check);\r\n\t\treturn ch;\r\n\t}", "title": "" }, { "docid": "c1b0e4cfef795897b05af11b475b4840", "score": "0.5577755", "text": "int peso(char signo){\n switch(signo){\r\n case '+':\r\n case '-':\r\n return 1;\r\n case '/':\r\n case '*':\r\n return 2;\r\n case '^':\r\n return 3;\r\n case '(':\r\n return 4;\r\n \r\n case ')':\r\n return 0;//caso especial\r\n default:\r\n return -1;\r\n }\r\n }", "title": "" }, { "docid": "164e7e1bebf7b11f4aee43ce05127678", "score": "0.55734026", "text": "public static char datochar(){\n try {\n char respuesta=dato().charAt(0);\n return respuesta;\n } catch (Exception e) {\n return('z');\n }\n }", "title": "" }, { "docid": "5a2807694bb91ebafec9ee2b718eb89c", "score": "0.5551705", "text": "public static void main(String[] args) {\n\n Scanner vowelconsonent =new Scanner(System.in);\n char ch;\n System.out.print(\"Enter your word = \");\n\n ch = vowelconsonent.next().charAt(0);\n\n\n if(ch=='A'||ch=='E'||ch=='I'||ch=='O'||ch=='U'||ch=='a'||ch=='e'||ch=='i'||ch=='o'||ch=='u'){\n\n System.out.print(\"vowel \"+ch);\n\n }else {\n\n System.out.print(\"consonent \");\n\n }\n\n }", "title": "" }, { "docid": "f05005b9c5d554911f7ac81eebade7a8", "score": "0.5543736", "text": "private String getType(char ch)\n\t{\n\t\tif (Character.isUpperCase(ch))\n\t\t{\n\t\t\treturn \"uppercase\";\n\t\t}\n\t\telse if (Character.isDigit(ch))\n\t\t{\n\t\t\treturn \"int\";\n\t\t}\n\t\telse if (Character.isLowerCase(ch))\n\t\t{\n\t\t\treturn \"lowercase\";\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn \"special\";\n\t\t}\n\t}", "title": "" }, { "docid": "4af259206a03eb7685b81602e7858f7f", "score": "0.5543715", "text": "public void setSezione(char sezione) {\r\n this.sezione = sezione;\r\n }", "title": "" }, { "docid": "df1eb5d404863ec50392d525925443c2", "score": "0.55416614", "text": "char readChar();", "title": "" }, { "docid": "cdd994252eba412a3fdaaf995a3ab899", "score": "0.55317456", "text": "private static void chooseLetter()\n {\n Scanner scanner = new Scanner(System.in);\n System.out.println(\"Choose a letter :: X or O : \");\n userLetter = scanner.next().toUpperCase().charAt(0);\n computerLetter = (userLetter == 'X') ? 'O' : 'X';\n }", "title": "" }, { "docid": "4ecbb4c97c2307265a4c2dfd0035f951", "score": "0.55314755", "text": "private char readChar() {\r\n\t\tInputStream in = System.in;\r\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(in));\r\n\t\tString line = null;\r\n\r\n\t\ttry {\r\n\t\t\tline = br.readLine();\r\n\t\t} catch (Exception e) {\r\n\r\n\t\t}\r\n\t\treturn line.toLowerCase().charAt(0);\r\n\t}", "title": "" }, { "docid": "685e784e94947032a4b1a5ea3b9c9240", "score": "0.5526545", "text": "public static char[] pedirPalabraSecreta() {\r\n // PedirPalabra\r\n Scanner leer = new Scanner(System.in);\r\n System.out.println(\"Introduce la palabra secreta\");\r\n String palabraSecreta = leer.nextLine();\r\n char[] cadena= palabraSecreta.toCharArray();\r\n for (int i = 0; i < cadena.length; i++) {\r\n cadena[i]=Character.toUpperCase(cadena[i]);\r\n }\r\n return cadena;\r\n }", "title": "" }, { "docid": "f533ae7b015df023d2a57cb838c2c2e1", "score": "0.5524841", "text": "public static void carColor() {\n System.out.println(\"Do you have a red car? \");\n char redCar= sc.next().charAt(0); \n }", "title": "" }, { "docid": "56100bc7b424aa8236dd4610499a9390", "score": "0.55140096", "text": "public static char typeScore() \n {\n\n System.out.println(\"\\t Do you have (S)AT scores or (A)CT scores?\");\n String response = console.next();\n \n if(response.equalsIgnoreCase(\"S\"))\n {\n return Character.toUpperCase(response.charAt(0)); \n }\n else if(response.equalsIgnoreCase(\"A\"))\n {\n return Character.toUpperCase(response.charAt(0));\n }\n else\n {\n throw new IllegalArgumentException(\"Invalid score type. Must be S, s, A, or a.\");\n }\n }", "title": "" }, { "docid": "e6d932d97989d8ee6ec563034d35f1d2", "score": "0.55096185", "text": "private ScalarEnum getInputType(final String inputType) {\n String temp = inputType.replaceAll(\"-\", \"_\");\n INPUT_TYPE answer = Arrays.stream(\n INPUT_TYPE.values()\n )\n .filter(value -> value.name().equals(temp))\n .findFirst()\n .orElse(INPUT_TYPE.unknown);\n return answer.getScalar();\n }", "title": "" }, { "docid": "5210ccd9dec2dd957214b2f43458306d", "score": "0.5488624", "text": "public static CommandEnum stringToEnum(String commandEnum) {\n if (lookup.containsKey(commandEnum)) {\n return lookup.get(commandEnum);\n } else {\n return CommandEnum.INVALID;\n }\n }", "title": "" }, { "docid": "c6df888ff0106a98f9536b4abb0c0e86", "score": "0.5482728", "text": "public char select_deposit() {\n\t\tScanner scan = new Scanner(System.in);\n\t\tchar type;\n\t\tdo {\n\t\t\tSystem.out.println(\"Would you like to deposit to (c)hecking balance or (s)aving balance?\");\n\t\t\ttype = scan.next().charAt(0);\n\t\t\ttype = Character.toLowerCase(type);\n\t\t} while(!(type != 'c' || type != 's'));\n\t\t\n\t\treturn type;\n\t}", "title": "" }, { "docid": "1b2078828cddb4723ba64ee21e7a9d6e", "score": "0.5448238", "text": "public static char readChar()\n \n {\n char c='0';\n String wort=\"xxxx\";\n try {\n wort=eingabe.readLine();\n c=wort.charAt(0);\n } catch(IOException e1) {\n System.out.println(\"Eingabefehler, bitte noch einmal!\");\n c=readChar();\n } catch(NumberFormatException e2) {\n if(wort.equals(\"\"))\n System.out.println(\"Bitte etwas eingeben, noch einmal:\");\n else {\n System.out.print(\"Fehler beim Format, \");\n System.out.println(\"bitte noch einmal!\");}\n c=readChar();\n }\n return c;\n }", "title": "" }, { "docid": "7281d6906ccf729e98aa62fd96728017", "score": "0.54476494", "text": "private int inputChange(char c) {\n\n int co = 0;\n if ((c == 'A') || (c == 'a') || (c == '1')) {\n co = 0;\n }\n if ((c == 'B') || (c == 'b') || (c == '2')) {\n co = 1;\n }\n if ((c == 'C') || (c == 'c') || (c == '3')) {\n co = 2;\n }\n if ((c == 'D') || (c == 'd') || (c == '4')) {\n co = 3;\n }\n if ((c == 'E') || (c == 'e') || (c == '5')) {\n co = 4;\n }\n if ((c == 'F') || (c == 'f') || (c == '6')) {\n co = 5;\n }\n if ((c == 'G') || (c == 'g') || (c == '7')) {\n co = 6;\n }\n if ((c == 'H') || (c == 'h') || (c == '8')) {\n co = 7;\n }\n return co;\n }", "title": "" }, { "docid": "f97714b195743a392c5d7896469d459b", "score": "0.5443295", "text": "Character getCode();", "title": "" }, { "docid": "c69670ab23d49b76e6aeb3bb22358d66", "score": "0.54140496", "text": "public static Accion estado(int estado, char character){\r\n\t\tswitch(estado){\r\n\t\tcase 0:\r\n\t\t\tif(character == ' ' || character == '\t' || character == '\\b' || character == '\\t' || character == '\\n'){ //Espacio o tabulador\r\n\t\t\t\treturn new Accion(0,0); //Leemos y vamos al estado 0\r\n\t\t\t}\r\n\t\t\tif(Character.toString(character).matches(\"[a-zA-Z]\")){//Cualquier letra (id o Palres) \r\n\t\t\t\treturn new Accion(2,1); //Leemos y concatenamos y vamos al estado 11\r\n\t\t\t}\r\n\t\t\tif(Character.toString(character).matches(\"[0-9]\")){//Numeros\r\n\t\t\t\treturn new Accion(2,2); //Leemos y concatenamos y vamos al estado 9\r\n\t\t\t}\r\n\t\t\tif (character == '{' || character == '}' || character == '(' ||\r\n\t\t\t\t\tcharacter == ')' ||character == ';' || character == ',') {\r\n\t\t\t\treturn new Accion(1,3);\r\n\t\t\t}\r\n\t\t\tif (character == '/') {\r\n\t\t\t\treturn new Accion(0,4);\r\n\t\t\t}\r\n\t\t\tif (character == '+') {\r\n\t\t\t\treturn new Accion(0,7);\r\n\t\t\t}\r\n\t\t\tif (character == '!') {\r\n\t\t\t\treturn new Accion (0,12);\r\n\t\t\t}\r\n\t\t\tif (character == '=') {\r\n\t\t\t\treturn new Accion (1,11);\r\n\t\t\t}\r\n\t\t\tif (character == '\"') {\r\n\t\t\t\treturn new Accion (2,10);\r\n\t\t\t}\r\n\t\t\t//Si encontramos un caracter especial (retorno de carro) lo ignoramos\r\n\t\t\tif(character == '\\r'){\r\n\t\t\t\treturn new Accion(0,0); //Leemos y vamos al estado 0\r\n\t\t\t}\r\n\t\t\tif (character == '\\0') {\r\n\t\t\t\tescribirToken(\"EOF\", \" \",AnManager.contadorLineas);\r\n\t\t\t\t//return new Accion(0,0); \r\n\t\t\t}\r\n\t\t\t//El caracter no concuerda: Error\r\n\t\t\tErrores.escribirError(\"Analizador lexico\",\"No se reconoce el caracter ( \"+character+\" )\" , AnManager.contadorLineas );\r\n\t\t\treturn new Accion(0,0); //Leemos car�cter err�neo y continuamos\r\n\t\t\t\r\n\t\tcase 1:\r\n\t\t\tif(Character.toString(character).matches(\"[\\\\w\\\\d]\")){//Numeros y letras\r\n\t\t\t\treturn new Accion(2,1); //Leemos y concatenamos y vamos al estado 11\r\n\t\t\t}else{\r\n\t\t\t\treturn new Accion(3,0); //No leemos, comprobamos palRes/id y vamos al estado 0\r\n\t\t\t}\r\n\t\tcase 2:\r\n\t\t\tif(Character.toString(character).matches(\"[0-9]\")){//Numeros\r\n\t\t\t\treturn new Accion(2,2); //Leemos y concatenamos y vamos al estado 9\r\n\t\t\t}else{\r\n\t\t\t\treturn new Accion(1,16); //No Leemos y vamos al estado 0\r\n\t\t\t}\r\n\t\tcase 3:\r\n\t\t\tif (character == ';') {\r\n\t\t\t\tescribirToken(\"PuntoComa\", \" \",AnManager.contadorLineas);\r\n\t\t\t\treturn new Accion (0,0);\r\n\t\t\t}\r\n\t\t\tif (character == ',') {\r\n\t\t\t\tescribirToken(\"Coma\", \" \",AnManager.contadorLineas);\r\n\t\t\t\treturn new Accion (0,0);\r\n\t\t\t}\r\n\t\t\tif (character == '{') {\r\n\t\t\t\tescribirToken(\"al\", \" \",AnManager.contadorLineas);\r\n\t\t\t\treturn new Accion (0,0);\r\n\t\t\t}\r\n\t\t\tif (character == '}') {\r\n\t\t\t\tescribirToken(\"cl\", \" \",AnManager.contadorLineas);\r\n\t\t\t\treturn new Accion (0,0);\r\n\t\t\t}\r\n\t\t\tif (character == '(') {\r\n\t\t\t\tescribirToken(\"ap\", \" \",AnManager.contadorLineas);\r\n\t\t\t\treturn new Accion (0,0);\r\n\t\t\t}\r\n\t\t\tif (character == ')') {\r\n\t\t\t\tescribirToken(\"cp\", \" \",AnManager.contadorLineas);\r\n\t\t\t\treturn new Accion (0,0);\r\n\t\t\t}\r\n\t\tcase 4:\r\n\t\t\tif(character == '/'){//Fin comentario\r\n\t\t\t\treturn new Accion(1,5); //Leemos y vamos al estado 5. Ignoramos comentario\r\n\t\t\t}else{\r\n\t\t\t\treturn new Accion(1,6); //Leemos y vamos al estado 5\r\n\t\t\t}\r\n\t\tcase 5:\r\n\t\t\tif (character == '\\n') {\r\n//\t\t\t\tescribirToken(\"EOL\", \"\",AnManager.contadorLineas); //GenTokensalto de linea\r\n\t\t\t\treturn new Accion (0,0);\r\n\t\t\t}\r\n\t\t\t//escribirToken(\"DobleBarra\", \">\", AnManager.contadorLineas);\r\n\t\t\treturn new Accion(0,5);\r\n\t\tcase 6:\r\n\t\t\tescribirToken(\"div\", \" \", AnManager.contadorLineas);\r\n\t\t\treturn new Accion(1,0);\r\n\t\tcase 7:\r\n\t\t\tif (character == '+') {\r\n\t\t\t\treturn new Accion (1,9);\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\treturn new Accion (1,8);\r\n\t\t\t}\r\n\t\tcase 8:\r\n\t\t\tescribirToken(\"suma\", \" \", AnManager.contadorLineas);\r\n\t\t\treturn new Accion (1,0);\r\n\t\tcase 9:\r\n\t\t\tescribirToken(\"Preincremento\", \" \", AnManager.contadorLineas);\r\n\t\t\treturn new Accion (0,0);\r\n\t\tcase 10:\r\n\t\t\tif (character == '\"') {\r\n\t\t\t\treturn new Accion (5,0);\r\n\t\t\t\t//return new Accion (2,15);\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\treturn new Accion(2,10); \r\n\t\t\t}\r\n\t\tcase 11:\r\n\t\t\tescribirToken(\"igual\", \"\", AnManager.contadorLineas);\r\n\t\t\treturn new Accion(0,0);\r\n\t\tcase 12:\r\n\t\t\tif (character == '=') {\r\n\t\t\t\treturn new Accion(1,13);\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\treturn new Accion(1,14);\r\n\t\t\t}\r\n\t\tcase 13:\r\n\t\t\tescribirToken(\"distinto\", \"\", AnManager.contadorLineas);\r\n\t\t\treturn new Accion (0,0);\r\n\t\tcase 14:\r\n\t\t\tescribirToken(\"negacion\", \"\", AnManager.contadorLineas);\r\n\t\t\treturn new Accion (1,0);\r\n\t\tcase 15:\r\n\t\t\treturn new Accion (5,0);//Generar token cadena\r\n\t\tcase 16:\r\n\t\t\treturn new Accion (4,0);//Generar token numero\r\n\t\t\r\n\t\tdefault:\r\n\t\t\treturn new Accion (1,0);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "5b252b3738039a0c829e15f04ad3c932", "score": "0.54115987", "text": "private static int transformHexCharToInt(byte val) throws HyracksDataException {\n switch (val) {\n case '0':\n return 0;\n case '1':\n return 1;\n case '2':\n return 2;\n case '3':\n return 3;\n case '4':\n return 4;\n case '5':\n return 5;\n case '6':\n return 6;\n case '7':\n return 7;\n case '8':\n return 8;\n case '9':\n return 9;\n case 'a':\n case 'A':\n return 10;\n case 'b':\n case 'B':\n return 11;\n case 'c':\n case 'C':\n return 12;\n case 'd':\n case 'D':\n return 13;\n case 'e':\n case 'E':\n return 14;\n case 'f':\n case 'F':\n return 15;\n default:\n throw new RuntimeDataException(ErrorCode.INVALID_FORMAT);\n }\n }", "title": "" }, { "docid": "513ab2a72c1091f3ed39a0e7ce0c9102", "score": "0.5408491", "text": "public void typeEvent(KeyEvent e) {\n char typed = e.getKeyChar();\n //if the char is not a number remove the char\n if (typed < '0' || typed > '9') {\n //input is illigal so put empty char insted of the sent char\n e.setKeyChar(Character.MIN_VALUE);\n } else {\n //update the text that is in the text filed and the value in the factory\n updateShapeFactory(updateValue(e));\n }\n //show the update\n repaint();\n }", "title": "" }, { "docid": "be498e9e27ff93997da1c1e208ebb662", "score": "0.5406757", "text": "private FunctionEnum(String value) {\n\t\tthis.value = value;\n\t}", "title": "" }, { "docid": "76a4c00a2b405b07085c4101adfaef4c", "score": "0.5393152", "text": "public char checkType(String line) {\n int index;\n List<String> iType = Arrays.asList(\"addi\", \"slti\", \"andi\", \"ori\", \"lw\", \"sw\", \"beq\");\n List<String> rType = Arrays.asList(\"add\", \"sub\", \"slt\", \"and\", \"or\", \"sll\",\"srl\", \"s\",\"jr\");\n List<String> jType = Arrays.asList(\"j\", \"jal\");\n\n if (line.indexOf(' ') != -1) {\n index = line.indexOf(' ');\n } else {\n return 'u';\n }\n String checkStr = line.substring(0, index);\n if (iType.contains(checkStr)) {\n return 'i';\n }\n if (rType.contains(checkStr)) {\n return 'r';\n }\n if (jType.contains(checkStr)) {\n return 'j';\n }\n return 'u';\n }", "title": "" }, { "docid": "3a1988b4fa152126b07726d3952b2782", "score": "0.53903615", "text": "private static boolean c(char paramChar)\r\n/* 680: */ {\r\n/* 681:674 */ return ((paramChar >= '0') && (paramChar <= '9')) || ((paramChar >= 'a') && (paramChar <= 'f')) || ((paramChar >= 'A') && (paramChar <= 'F'));\r\n/* 682: */ }", "title": "" }, { "docid": "b30cac659799be8dce2a535e10ec683d", "score": "0.5385553", "text": "protected String getChar(String asciiCode) {\n\t\tString result = null;\n\t\tif(asciiCode == null){\n\t\t\t//default\n\t\t\tresult = \"|\";\n\t\t}else if (asciiCode.startsWith(\"#\")\n\t\t\t\t&& asciiCode.length() > 1) {\n\t\t\tresult = String.valueOf(Character.toChars(Integer.valueOf(asciiCode\n\t\t\t\t\t.substring(1))));\n\t\t} else {\n\t\t\tresult = asciiCode;\n\t\t}\n\t\treturn result;\n\t}", "title": "" }, { "docid": "0157e35883131660f6bc5f1a1f5adfc8", "score": "0.53798264", "text": "CommandEnum(String commandEnum) {\n this.label = commandEnum;\n }", "title": "" }, { "docid": "94aff3dfd60cb6d03d7146dd3eba7e44", "score": "0.53658605", "text": "private static Flags parse(char c) {\n\t\t\tswitch (c) {\n\t\t\t\tcase '-':\n\t\t\t\t\treturn LEFT_JUSTIFY;\n\t\t\t\tcase '#':\n\t\t\t\t\treturn ALTERNATE;\n\t\t\t\tcase '+':\n\t\t\t\t\treturn PLUS;\n\t\t\t\tcase ' ':\n\t\t\t\t\treturn LEADING_SPACE;\n\t\t\t\tcase '0':\n\t\t\t\t\treturn ZERO_PAD;\n\t\t\t\tcase ',':\n\t\t\t\t\treturn GROUP;\n\t\t\t\tcase '(':\n\t\t\t\t\treturn PARENTHESES;\n\t\t\t\tcase '<':\n\t\t\t\t\treturn PREVIOUS;\n\t\t\t\tdefault:\n\t\t\t\t\tthrow new UnknownFormatFlagsException(String.valueOf(c));\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "d40af242a9307e80326c1ebbd5bebd94", "score": "0.5365642", "text": "private Token scanChar(LocatedChar firstChar) {\n\t\tStringBuffer buffer = new StringBuffer();\n\t\tif(input.peek().matchChar('#')) {\n\t\t\tbuffer.append(input.next().getCharacter());\n\t\t\tLocatedChar next = input.peek();\n\t\t\tif(next.matchChar('#') || Character.isDigit(next.getCharacter())) {\n\t\t\t\tbuffer.append(input.next().getCharacter());\n\t\t\t\treturn CharToken.make(firstChar, buffer.toString(),next.getCharacter());\n\t\t\t} \n\t\t\telse {\n\t\t\t\tlexicalError(firstChar, \"malformed char of form ##[0..9#]\");\n\t\t\t\treturn findNextToken();\n\t\t\t}\n\t\t} \n\t\telse if(input.peek().isOctal()) {\n\t\t\tappendSubsequentOctals(buffer);\n\t\t\tint val;\n\t\t\ttry {\n\t\t\t\tval = Integer.parseInt(buffer.toString(), 8);\n\t\t\t} catch (NumberFormatException e) {\n\t\t\t\tlexicalError(firstChar, \"char value out of integer bounds\");\n\t\t\t\treturn findNextToken();\n\t\t\t}\n\t\t\tif(isPrintableChar((char)val)) {\n\t\t\t\treturn CharToken.make(firstChar, buffer.toString(), (char)val);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tlexicalError(firstChar, \"char value not printable\");\n\t\t\t\treturn findNextToken();\n\t\t\t}\n\t\t}\n\t\telse if(isPrintableChar(input.peek().getCharacter())){\n\t\t\tLocatedChar next = input.next();\n\t\t\tbuffer.append(next.getCharacter());\n\t\t\treturn CharToken.make(firstChar, buffer.toString(), next.getCharacter());\n\t\t}\n\t\telse {\n\t\t\tlexicalError(firstChar, \"malformed char of form #@\");\n\t\t\treturn findNextToken();\n\t\t}\n\t}", "title": "" }, { "docid": "0be81bdd9baf520565f7b4e3ce0244a7", "score": "0.5350469", "text": "private int c2i(char c) {\n if (c >= 'A' && c <= 'Z')\n return c - 'A';\n else\n throw new BadCharException(c);\n }", "title": "" }, { "docid": "5f437eba87576925e512adbb03d18e37", "score": "0.5349453", "text": "char getSymbol();", "title": "" }, { "docid": "28e79c69daf4a9a53968ca7456b433fa", "score": "0.53489906", "text": "public static char readCharacter(String message){\n Scanner in = new Scanner(System.in);\n System.out.print(message);\n return in.next().charAt(0);\n }", "title": "" }, { "docid": "16b0029fa4618c86d6a2d74cfe608083", "score": "0.53463584", "text": "@Override\n\tpublic void parseInput() throws InvalidArgumentValueException {\n\t\t\n\t\t\n\t\ttry {\n\t\t\tstringArgBytes = stringToArrayOfByte(stringText.getText());\n\t\t} catch (NumberFormatException e) {\n\n\t\t\tthrow new InvalidArgumentValueException(\n\t\t\t\t\t\"This string cannot be converted to ASCII for some reason. Maybe there are non asci characters used in it\");\n\t\t}\n\t}", "title": "" }, { "docid": "04803e3be8d09d0d608eaa7286ecbe0e", "score": "0.5346067", "text": "private int mapCharToTransition(char c) {\n switch(c) {\n case '-':\n return 0;\n\n case '+':\n return 1;\n\n case '/':\n return 2;\n\n case '*':\n return 3;\n\n case ')':\n return 4;\n\n case '(':\n return 5;\n\n case '=':\n return 6;\n\n case ';':\n return 7;\n\n default:\n if (Character.isDigit(c)) return 8;\n if (Character.isLetter(c)) return 9;\n if (c == '\\n' || c == '\\r' || c == ' ' || c == '\\t') return 10;\n return 11;\n }\n }", "title": "" }, { "docid": "442dfbc543db09dd37272b3113e95308", "score": "0.534412", "text": "@Test\n\tpublic void testEnumSize1BadInput() throws Exception {\n\t\tCategory category = program.getListing()\n\t\t\t\t.getDataTypeManager()\n\t\t\t\t.getCategory(new CategoryPath(CategoryPath.ROOT, \"Category1\"));\n\t\tEnum enumm = createEnum(category, \"TestEnum\", 1);\n\t\tedit(enumm);\n\n\t\tEnumEditorPanel panel = findEditorPanel(tool.getToolFrame());\n\t\tassertNotNull(panel);\n\n\t\taddEnumValue();\n\n\t\twaitForSwing();\n\t\tDockingActionIf applyAction = getApplyAction();\n\t\tassertTrue(applyAction.isEnabled());\n\t\tassertTrue(panel.needsSave());\n\n\t\tJTable table = panel.getTable();\n\t\tEnumTableModel model = (EnumTableModel) table.getModel();\n\n\t\tassertEquals(\"New_Name\", model.getValueAt(0, NAME_COL));\n\t\tassertEquals(0L, model.getValueAt(0, VALUE_COL));\n\n\t\taddEnumValue();\n\n\t\tString editName = \"New_Name_(1)\";\n\t\tassertEquals(editName, model.getValueAt(1, NAME_COL));\n\t\tassertEquals(1L, model.getValueAt(1, VALUE_COL));\n\n\t\taddEnumValue();\n\n\t\tassertEquals(\"New_Name_(2)\", model.getValueAt(2, NAME_COL));\n\t\tassertEquals(2L, model.getValueAt(2, VALUE_COL));\n\n\t\tint row = getRowFor(editName);\n\n\t\teditValueInTable(row, \"0x777\");\n\n\t\trow = getRowFor(editName); // the row may have changed if we are sorted on the values col\n\t\tassertEquals(0x77L, model.getValueAt(row, VALUE_COL));\n\t}", "title": "" }, { "docid": "e59006fc4219ceb59b8f6c833436e4ef", "score": "0.534225", "text": "public char select_withdraw() {\n\t\tScanner scan = new Scanner(System.in);\n\t\tchar type;\n\t\tdo {\n\t\t\tSystem.out.println(\"Would you like to withdraw from (c)hecking balance or (s)aving balance?\");\n\t\t\ttype = scan.next().charAt(0);\n\t\t\ttype = Character.toLowerCase(type);\n\t\t} while(!(type != 'c' || type != 's'));\n\t\t\n\t\treturn type;\n\t}", "title": "" }, { "docid": "a75006721c953419ff46834b13ae1972", "score": "0.53202665", "text": "public static int convert(char c) {\n switch (c) {\n case 'A': return 0;\n case 'T': return 1;\n case 'G': return 2;\n case 'C': return 3;\n default: return 4;\n }\n }", "title": "" }, { "docid": "34de198f0fa171047f115cbbc00e4aa8", "score": "0.53152347", "text": "static int getValue(char c) {\n\t\tswitch(c) {\n\t\tcase 'A': return 0;\n\t\tcase 'C': return 1;\n\t\tcase 'G': return 2;\n\t\tcase 'T': return 3;\n\t\tdefault: return -1;\n\t\t}\n\t}", "title": "" }, { "docid": "c4548927590adbc337cf051f25fcb3ab", "score": "0.53077066", "text": "String getRune_lit();", "title": "" }, { "docid": "71bddedebe2ccffcb96ee5f8321d06bb", "score": "0.5302656", "text": "private static void ecrire (char car)\r\n\t{\n\t\tif (car >= ' ')\r\n\t\t{\r\n\t\t\tSystem.out.println (\"Caractere : \" + car );\r\n\t\t}\r\n\t\t// Sinon si c'est un caractere de controle, on affiche son code ascci\r\n\t\telse\r\n\t\t{\r\n\t\t\tSystem.out.println (\"Controle : code \" + (int) car);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "4040fe921df5f855ac0685aded43e5b0", "score": "0.5301652", "text": "R apply(char value);", "title": "" }, { "docid": "8a9ab59e2da462d7745a7951ad265014", "score": "0.5298293", "text": "public static SquareType fromChar (char symbol) {\n if (symbol == 'x') return SquareType.WALL;\n else if (symbol == ' ') return SquareType.CORRIDOR;\n else if (symbol == 'o') return SquareType.WAYOUT;\n return null;\n }", "title": "" }, { "docid": "94a98ed857367f67e4fd019d1b452bb9", "score": "0.52982765", "text": "char nextChar();", "title": "" }, { "docid": "f058015e0233e1fd647e15a6eb0f21ac", "score": "0.52914035", "text": "private static boolean contieneAtomo(FormaClausal fc, char atomo) {\n\t\treturn fc.formas.contains(String.valueOf(atomo));\n\t}", "title": "" }, { "docid": "570a04c459a2d877868dfcb97e818c12", "score": "0.52849865", "text": "public String getChar() {\n\t\tString asciiCode = getProperty(key_delimiter);\n\t\tCharacter c = null;\n\t\tif (asciiCode == null) {\n\t\t\tc = '|';\n\t\t} else if (asciiCode != null && asciiCode.startsWith(\"#\")\n\t\t\t\t&& asciiCode.length() > 1) {\n\t\t\tint i = Integer.valueOf(asciiCode.substring(1));\n\t\t\tc = new Character((char) i);\n\t\t} else if (asciiCode.length() == 1) {\n\t\t\tc = asciiCode.charAt(0);\n\t\t}\n\t\t\n\t\tString result = null;\n\t\t\n\t\tif (c != null){\n\t\t\tresult = String.valueOf(c);\n\t\t}\n\t\t\n\t\treturn result;\n\t}", "title": "" }, { "docid": "995a5a1388305d2a82f3fb9ee14e09c4", "score": "0.5279021", "text": "public String validateCurrencyType(){\n\n String currencyType = null;\n int option;\n boolean isBadOption = false;\n\n do{\n try {\n LOG.info(\"Input 1 for RON or input 2 for EUR: \");\n option = IOService.getInstance().readInteger();\n\n switch (option) {\n case 1:\n currencyType = \"RON\";\n isBadOption = true;\n break;\n case 2:\n currencyType = \"EUR\";\n isBadOption = true;\n break;\n default:\n LOG.warning(\"Not a valid option.\");\n break;\n }\n } catch (InputMismatchException e){\n LOG.warning( \"Incorrect entry. Please input 1 for RON or 2 for EUR.\" );\n }\n\n } while (!isBadOption);\n\n return currencyType;\n }", "title": "" }, { "docid": "0cd9c3617c793c08143769de95b394b8", "score": "0.5266854", "text": "private void typeKey(char keyChar) {\r\n if(keyChar == '1') {\r\n gameMode.typed(true);\r\n gameMode.setGameMode(1);\r\n }\r\n if(keyChar == '2') {\r\n gameMode.typed(true);\r\n gameMode.setGameMode(2);\r\n }\r\n if(keyChar == '3') {\r\n gameMode.typed(true);\r\n gameMode.setGameMode(3);\r\n }\r\n if(keyChar == '4') {\r\n gameMode.typed(true);\r\n gameMode.setGameMode(4);\r\n }\r\n if(keyChar == 's' || keyChar == 'S')\r\n restart.typed(true);\r\n if(keyChar == 'n' || keyChar == 'N')\r\n System.exit(0); // TODO: funciona estando en inselection y no deberia\r\n }", "title": "" }, { "docid": "ebd0b177cc50369314ac3a9f52adba03", "score": "0.5266119", "text": "public Multimedia.FORMATO pedirFormato(){\n int opcion = -1;\n boolean validado = false;\n Multimedia.FORMATO formato = Multimedia.FORMATO.ERROR;\n do{\n\n System.out.println(\"Elige un formato:\");\n System.out.println(\"1. CD\");\n System.out.println(\"2. DVD\");\n System.out.println(\"3. BLUE_RAY\");\n System.out.println(\"4 ARCHIVO\");\n try {\n opcion = Integer.parseInt(lector.nextLine());\n validado = true;\n if (opcion > 4 || opcion < 1) {\n validado = false;\n System.out.println(\"Por favor, introduce un numero entre el 1 y el 4\");\n }\n }catch (NumberFormatException nfe){\n System.out.println(\"Introduce un valor numerico entre el 1 y el 4\");\n }\n }while(!validado);\n\n switch (opcion){\n case 1:\n formato = Multimedia.FORMATO.CD;\n break;\n case 2:\n formato = Multimedia.FORMATO.DVD;\n break;\n case 3:\n formato = Multimedia.FORMATO.BLUE_RAY;\n break;\n case 4:\n formato = Multimedia.FORMATO.ARCHIVO;\n break;\n default:\n break;\n }\n return formato;\n\n }", "title": "" }, { "docid": "232e0aa72f0f076f5953647f1d9d6a89", "score": "0.526373", "text": "private boolean CHAR(char ch) {\r\n if (in >= input.length()) return false;\r\n int len = input.nextLength(in);\r\n int code = input.nextChar(in, len);\r\n if (code != ch) return false;\r\n in += len;\r\n return true;\r\n }", "title": "" }, { "docid": "a275a9911099f11d0bbb3f7abcf6e022", "score": "0.52597976", "text": "@Test\n\t@TestForIssue(jiraKey = \"HHH-4699\")\n\t@SkipForDialect(value = { Oracle8iDialect.class, AbstractHANADialect.class }, jiraKey = \"HHH-8516\",\n\t\t\tcomment = \"HHH-4699 was specifically for using a CHAR, but Oracle/HANA do not handle the 2nd query correctly without VARCHAR. \")\n\tpublic void testTrimmedEnumChar() throws SQLException {\n\t\tfinal Session s = openSession();\n final Connection connection = ((SessionImplementor)s).connection();\n final Statement statement = connection.createStatement();\n statement.execute(\"insert into EntityEnum (id, trimmed) values(1, '\" + Trimmed.A.name() + \"')\");\n statement.execute(\"insert into EntityEnum (id, trimmed) values(2, '\" + Trimmed.B.name() + \"')\");\n\n s.getTransaction().begin();\n\n // ensure EnumType can do #fromName with the trimming\n List<EntityEnum> resultList = s.createQuery(\"select e from EntityEnum e\").list();\n assertEquals( resultList.size(), 2 );\n assertEquals( resultList.get(0).getTrimmed(), Trimmed.A );\n assertEquals( resultList.get(1).getTrimmed(), Trimmed.B );\n\n // ensure querying works\n final Query query = s.createQuery(\"select e from EntityEnum e where e.trimmed=?\");\n query.setParameter( 0, Trimmed.A );\n resultList = query.list();\n assertEquals( resultList.size(), 1 );\n assertEquals( resultList.get(0).getTrimmed(), Trimmed.A );\n\n\t\tstatement.execute( \"delete from EntityEnum\" );\n\n s.getTransaction().commit();\n s.close();\n\t}", "title": "" }, { "docid": "95583777bbe1a9f75cd9f304cf16a2d3", "score": "0.52592146", "text": "@Override\n public String comer(String c)\n {\n c=\"Gato No puede Comer Nada\" ;\n \n return c;\n }", "title": "" }, { "docid": "591f230ca98abf42ff79d97469e48781", "score": "0.5256564", "text": "public static char readChar()\n {\n \tString ch = scanner.next();\n \treturn ch.charAt(0);\n }", "title": "" }, { "docid": "f6d619c4ee0e6cd7f4aa2f87c9827102", "score": "0.5255094", "text": "public char getSezione() {\r\n return this.sezione;\r\n }", "title": "" }, { "docid": "8019056e4e100fcd9d357c08a1099656", "score": "0.5253495", "text": "private static char askIfQuit() \n {\n Scanner input = new Scanner(System.in);\n\n\t System.out.print(\"Enter (q)uit to quit: \");\n\t char go = input.next().toLowerCase().charAt(0);\n\n\t return go;\n }", "title": "" }, { "docid": "ddec8828aa83b791e7d16b266611744b", "score": "0.5252164", "text": "public void setopcion(){\n this.opciones=read.next().charAt(0);\n System.out.println();\n }", "title": "" }, { "docid": "c171b9240bc2e90fd15173c79d7d1296", "score": "0.52488536", "text": "public char toChar() {\r\n//\t\t//Ant\r\n//\t\tif(hasAnt()){\r\n//\t\t\tif(this.ant.getColour() == 0){\r\n//\t\t\t\treturn '=';\r\n//\t\t\t}\r\n//\t\t\tif(this.ant.getColour() == 1){\r\n//\t\t\t\treturn '|';\r\n//\t\t\t}\r\n//\t\t}\r\n\t\t\r\n\t\t//Rock\r\n\t\tif(this.rocky){\r\n\t\t\treturn '#';\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t//Food\r\n\t\tif(this.food > 0){\r\n\t\t\t//Prints the food value,\r\n\t\t\t//if it is > 9, prints 9 instead\r\n\t\t\tif(this.anthill == 0){ //0 to 9\r\n\t\t\t\tif(this.food > 9){\r\n\t\t\t\t\treturn 48 + 9;\r\n\t\t\t\t}\r\n\t\t\t\treturn (char) (this.food + 48);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//Otherwise, food must be in an anthill\r\n\t\t\t//so give unique char value that acknowledges this\r\n\t\t\t//Greek isn't recognised by Notepad or the console (prints '?' instead)\r\n\t\t\t//Minimum food value is 1, so -1 from ascii codes\r\n\t\t\tif(this.anthill == 1){ //Upper case, 65 for Latin, 913 for Greek\r\n\t\t\t\tif(this.food > 9){\r\n\t\t\t\t\treturn (char) (64 + 9);\r\n\t\t\t\t}\r\n\t\t\t\treturn (char) (64 + this.food);\r\n\t\t\t}\r\n\t\t\tif(this.anthill == 2){ //Lower case, 97 for Latin, 945 for Greek\r\n\t\t\t\tif(this.food > 9){\r\n\t\t\t\t\treturn (char) (96 + 9);\r\n\t\t\t\t}\r\n\t\t\t\treturn (char) (96 + this.food);\r\n\t\t\t}\r\n\t\t\t//Else error, cannot be less than 0 or more than 2 anthills\r\n\t\t\tLogger.log(new WarningEvent(\"Cell anthill value not 0, 1 or 2\"));\r\n\t\t\treturn 0;\t//Null char value\r\n\t\t}\r\n\t\t\r\n\t\t//Anthill\r\n\t\tif(this.anthill > 0){\r\n\t\t\tif(this.anthill == 1){\r\n\t\t\t\treturn '+';\r\n\t\t\t}\r\n\t\t\tif(this.anthill == 2){\r\n\t\t\t\treturn '-';\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n//\t\t//Markers\r\n//\t\tfor(int i = 0; i < this.markers.length; i++){\r\n//\t\t\tfor(boolean marker : this.markers[i]){\r\n//\t\t\t\tif(marker){\r\n//\t\t\t\t\tif(i == 0){\r\n//\t\t\t\t\t\treturn '[';\r\n//\t\t\t\t\t}else if(i == 1){\r\n//\t\t\t\t\t\treturn ']';\r\n//\t\t\t\t\t}else{\r\n//\t\t\t\t\t\treturn '?';\r\n//\t\t\t\t\t}\r\n//\t\t\t\t}\r\n//\t\t\t}\t\t\r\n//\t\t}\r\n\t\t\r\n\t\treturn '.';\r\n\t}", "title": "" }, { "docid": "c216763e5860b92e550ac63b8e08fa78", "score": "0.5244453", "text": "private TipoFonteRendaEnum(Short codigo, String descricao) {\n\t\tthis.codigo = codigo;\n\t\tthis.descricao = descricao;\n\t}", "title": "" }, { "docid": "9c041fc96fe13cc0813a1d8e28a3cb31", "score": "0.52436167", "text": "public static int charToInt(char c) \n\t{\n\t\tswitch (c) \n\t\t{\n\t\tcase '0':\n\t\t\treturn 0;\n\t\tcase '1':\n\t\t\treturn 1;\n\t\tcase '2':\n\t\t\treturn 2;\n\t\tcase '3':\n\t\t\treturn 3;\n\t\tcase '4':\n\t\t\treturn 4;\n\t\tcase '5':\n\t\t\treturn 5;\n\t\tcase '6':\n\t\t\treturn 6;\n\t\tcase '7':\n\t\t\treturn 7;\n\t\tcase '8':\n\t\t\treturn 8;\n\t\tcase '9':\n\t\t\treturn 9;\n\t\tcase 'A':\n\t\t\treturn 10;\n\t\tcase 'B':\n\t\t\treturn 11;\n\t\tcase 'C':\n\t\t\treturn 12;\n\t\tcase 'D':\n\t\t\treturn 13;\n\t\tcase 'E':\n\t\t\treturn 14;\n\t\tcase 'F':\n\t\t\treturn 15;\n\t\tcase 'G':\n\t\t\treturn 16;\n\t\tcase 'H':\n\t\t\treturn 17;\n\t\tcase 'I':\n\t\t\treturn 18;\n\t\tcase 'J':\n\t\t\treturn 19;\n\t\tcase 'K':\n\t\t\treturn 20;\n\t\tcase 'L':\n\t\t\treturn 21;\n\t\tcase 'M':\n\t\t\treturn 22;\n\t\tcase 'N':\n\t\t\treturn 23;\n\t\tcase 'O':\n\t\t\treturn 24;\n\t\tcase 'P':\n\t\t\treturn 25;\n\t\tcase 'Q':\n\t\t\treturn 26;\n\t\tcase 'R':\n\t\t\treturn 27;\n\t\tcase 'S':\n\t\t\treturn 28;\n\t\tcase 'T':\n\t\t\treturn 29;\n\t\tcase 'U':\n\t\t\treturn 30;\n\t\tcase 'V':\n\t\t\treturn 31;\n\t\tcase 'W':\n\t\t\treturn 32;\n\t\tcase 'X':\n\t\t\treturn 33;\n\t\tcase 'Y':\n\t\t\treturn 34;\n\t\tcase 'Z':\n\t\t\treturn 35;\n\t\tcase '-':\n\t\t\treturn 36;\n\t\tdefault:\n\t\t\treturn -1;\n\t\t}\n\t}", "title": "" }, { "docid": "c45449fbce95a854eb7d4a509e2d7e78", "score": "0.5243423", "text": "public static char toChar(Character ch, char defaultValue) {\n/* 150 */ if (ch == null) {\n/* 151 */ return defaultValue;\n/* */ }\n/* 153 */ return ch.charValue();\n/* */ }", "title": "" }, { "docid": "05380218b3128c505dd1a1e94f67d2ab", "score": "0.52397066", "text": "EnumLiteralExp createEnumLiteralExp();", "title": "" }, { "docid": "63655b7a947020f76a79979013e2bdc0", "score": "0.5223237", "text": "@Test\n\tpublic void Convertir1Test () {\n\t\tString resultado = MontoEscrito.convertir(\"8\");\n\t\tString esperado = \"OCHO\";\n\t\tassertEquals(esperado, resultado);\n\t\t}", "title": "" }, { "docid": "9cc804ac5b408289c4f36f522e50ac53", "score": "0.52232367", "text": "void init(char c);", "title": "" }, { "docid": "a553d46edecad316a46a435787f8faa5", "score": "0.5221533", "text": "boolean updateCharacterType(CharacterType t);", "title": "" }, { "docid": "ede5349d556c396eb6aa4c2731a35474", "score": "0.5218943", "text": "private boolean esDigito(char letra)\n\t{\n\t\t\n\t\tboolean esDigito;\n\t\tswitch (letra) {\n\t\tcase '0':\n\t\t\t esDigito=true;\n\t\t\t break;\n\t\tcase '1':\n\t\t\t esDigito=true;\n\t\t\t break;\n\t\tcase '2':\n\t\t\t esDigito=true;\n\t\t\t break;\n\t\tcase '3':\n\t\t\t esDigito=true;\n\t\t\t break;\n\t\tcase '4':\n\t\t\t esDigito=true;\n\t\t\tbreak;\n\t\tcase '5':\n\t\t\t esDigito=true;\n\t\t\tbreak;\n\t\tcase '6':\n\t\t\t esDigito=true;\n\t\t\tbreak;\n\t\tcase '7':\n\t\t\t esDigito=true;\n\t\t\tbreak;\n\t\tcase '8':\n\t\t\t esDigito=true;\n\t\t\tbreak;\n\t\tcase '9':\n\t\t\t esDigito=true;\n\t\t\tbreak;\n\n\t\tdefault: esDigito = false;\n\t\t\tbreak;\n\t\t}\n\t\n\t\treturn esDigito;\n\t}", "title": "" }, { "docid": "c2f84e37e5bd4e3ecbb20b44949db094", "score": "0.5218222", "text": "public char getUserGuess(){\n char letter = '\\u0000';\n if(mGuessEditText.getText().toString().toLowerCase().length() != 0)\n letter = mGuessEditText.getText().toString().toLowerCase().charAt(0);\n return letter;\n }", "title": "" }, { "docid": "c6b335b921ccdf9d27f461d9d23e972c", "score": "0.5211313", "text": "public static Attribute.Type charToType(final char charType) {\r\n\t\t\r\n\t\tString type = String.valueOf(charType);\r\n\t\tif (type.equalsIgnoreCase(\"I\")) {\r\n\t\t\treturn Type.Int;\r\n\t\t} else if (type.equalsIgnoreCase(\"C\")) {\r\n\t\t\treturn Type.Char;\r\n\t\t} else if (type.equalsIgnoreCase(\"D\")) {\r\n\t\t\treturn Type.DateTime;\r\n\t\t} else if (type.equalsIgnoreCase(\"L\")) {\r\n\t\t\treturn Type.Long;\r\n\t\t} else {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\t\r\n\t}", "title": "" }, { "docid": "e4b740ec9ce710c94b566112a8a413ea", "score": "0.5209764", "text": "static int charToInt(char c) {\n if (c >= 'A' && c <= 'Z') return c - 'A';\n else if (c >= 'a' && c <= 'z') return c - 'a' + 26;\n else return -1;\n }", "title": "" }, { "docid": "3b43b9b70071da8d97fec5b5a2bd88a5", "score": "0.5208594", "text": "private boolean isChar(char c){\n\t\tif(Character.isISOControl(c))\n\t\t\treturn false;\n\t\treturn true;\n\t}", "title": "" }, { "docid": "58dc9cb2e9bba48dfc6cd78de8465cee", "score": "0.52070075", "text": "public static int toIntValue(char ch, int defaultValue) {\n/* 240 */ if (!isAsciiNumeric(ch)) {\n/* 241 */ return defaultValue;\n/* */ }\n/* 243 */ return ch - 48;\n/* */ }", "title": "" }, { "docid": "00605d970ec49f9d6bd668c48f885a32", "score": "0.5206683", "text": "public static boolean validatenum(String str) {\n\t\tchar[] s=str.toCharArray();\n\t\tfor(int i=0;i<str.length();i++) {\n\t\t\tchar temp=s[i];\n\t\t\ts[i]=temp; \n\t\t}\n\t\tchar ch;\n\t\tboolean capital=false;\n\t\tboolean lower=false;\n\t\tboolean num=false;\n\t\tboolean spc=false;\n\t\tfor(int i=0; i<s.length; i++) {\n\t\t\tch=s[i];\n\t\t\tif(s.length>9) {\n\t\t\t\tif(Character.isDigit(ch)) {\n\t\t\t\t\tSystem.out.println(\"digit char: \"+ch);\n\t\t\t\t\tnum=true;\n\t\t\t\t}\n\t\t\t\telse if(Character.isUpperCase(ch)) {\n\t\t\t\t\tSystem.out.println(\"upper char: \"+ch);\n\t\t\t\t\tcapital=true;\n\t\t\t\t}\n\t\t\t\telse if(Character.isLowerCase(ch)) {\n\t\t\t\t\tSystem.out.println(\"lower char: \"+ch);\n\t\t\t\t\tlower=true;\n\t\t\t\t}\n\t\t\t\telse if((int)ch==(int)'$'|| (int)ch==(int)'#') {\n\t\t\t\t\tSystem.out.println(\"special char: \"+ch);\n\t\t\t\t\tspc=true;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println(\"Extra :\"+ch);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\t\n\t\t}\n\t\tif(num && spc && lower && capital) {\n\t\t\tSystem.out.println(\"String is valid :\" + \"num: \"+num+\" spc: \"+spc+\" lower: \"+lower+\" capital: \"+capital);\n\t\t\treturn true;\n\t\t}\n\t\t//System.out.println(\"String is valid :\" + \"num: \"+num+\" spc: \"+spc+\" lower: \"+lower+\" capital: \"+capital);\n\t\treturn false;\n\t}", "title": "" }, { "docid": "192966ba1105535c52634754a65cffc0", "score": "0.5206577", "text": "@Test\n\tpublic void ascii()\n\t{\n\t\tchar ch ='a';\n\t\tint c =ch;\n\t\t\n\t\tint ascci =(int)ch;\n\t\t\n\t\tSystem.out.println(c);\n\t\tSystem.out.println(ascci);\n\t\t\n\t}", "title": "" }, { "docid": "bb8d1e9766f9aa963c3ce43ee59af209", "score": "0.5206333", "text": "public static char toChar(String str, char defaultValue) {\n/* 195 */ if (StringUtils.isEmpty(str)) {\n/* 196 */ return defaultValue;\n/* */ }\n/* 198 */ return str.charAt(0);\n/* */ }", "title": "" }, { "docid": "5db5343626bcce845ecbf9612502e97c", "score": "0.52027625", "text": "private boolean isAlfabetico(char unChar) {\r\n\t\tswitch (unChar) {\r\n\t\tcase 'A':\r\n\t\t\treturn true;\r\n\t\tcase 'B':\r\n\t\t\treturn true;\r\n\t\tcase 'C':\r\n\t\t\treturn true;\r\n\t\tcase 'D':\r\n\t\t\treturn true;\r\n\t\tcase 'E':\r\n\t\t\treturn true;\r\n\t\tcase 'F':\r\n\t\t\treturn true;\r\n\t\tcase 'G':\r\n\t\t\treturn true;\r\n\t\tcase 'H':\r\n\t\t\treturn true;\r\n\t\tcase 'I':\r\n\t\t\treturn true;\r\n\t\tcase 'J':\r\n\t\t\treturn true;\r\n\t\tcase 'K':\r\n\t\t\treturn true;\r\n\t\tcase 'L':\r\n\t\t\treturn true;\r\n\t\tcase 'M':\r\n\t\t\treturn true;\r\n\t\tcase 'N':\r\n\t\t\treturn true;\r\n\t\tcase 'Ñ':\r\n\t\t\treturn true;\r\n\t\tcase 'O':\r\n\t\t\treturn true;\r\n\t\tcase 'P':\r\n\t\t\treturn true;\r\n\t\tcase 'Q':\r\n\t\t\treturn true;\r\n\t\tcase 'R':\r\n\t\t\treturn true;\r\n\t\tcase 'S':\r\n\t\t\treturn true;\r\n\t\tcase 'T':\r\n\t\t\treturn true;\r\n\t\tcase 'U':\r\n\t\t\treturn true;\r\n\t\tcase 'V':\r\n\t\t\treturn true;\r\n\t\tcase 'W':\r\n\t\t\treturn true;\r\n\t\tcase 'X':\r\n\t\t\treturn true;\r\n\t\tcase 'Y':\r\n\t\t\treturn true;\r\n\t\tcase 'Z':\r\n\t\t\treturn true;\r\n\t\tcase 'a':\r\n\t\t\treturn true;\r\n\t\tcase 'b':\r\n\t\t\treturn true;\r\n\t\tcase 'c':\r\n\t\t\treturn true;\r\n\t\tcase 'd':\r\n\t\t\treturn true;\r\n\t\tcase 'e':\r\n\t\t\treturn true;\r\n\t\tcase 'f':\r\n\t\t\treturn true;\r\n\t\tcase 'g':\r\n\t\t\treturn true;\r\n\t\tcase 'h':\r\n\t\t\treturn true;\r\n\t\tcase 'i':\r\n\t\t\treturn true;\r\n\t\tcase 'j':\r\n\t\t\treturn true;\r\n\t\tcase 'k':\r\n\t\t\treturn true;\r\n\t\tcase 'l':\r\n\t\t\treturn true;\r\n\t\tcase 'm':\r\n\t\t\treturn true;\r\n\t\tcase 'n':\r\n\t\t\treturn true;\r\n\t\tcase 'ñ':\r\n\t\t\treturn true;\r\n\t\tcase 'o':\r\n\t\t\treturn true;\r\n\t\tcase 'p':\r\n\t\t\treturn true;\r\n\t\tcase 'q':\r\n\t\t\treturn true;\r\n\t\tcase 'r':\r\n\t\t\treturn true;\r\n\t\tcase 's':\r\n\t\t\treturn true;\r\n\t\tcase 't':\r\n\t\t\treturn true;\r\n\t\tcase 'u':\r\n\t\t\treturn true;\r\n\t\tcase 'v':\r\n\t\t\treturn true;\r\n\t\tcase 'w':\r\n\t\t\treturn true;\r\n\t\tcase 'x':\r\n\t\t\treturn true;\r\n\t\tcase 'y':\r\n\t\t\treturn true;\r\n\t\tcase 'z':\r\n\t\t\treturn true;\r\n\t\tcase ' ':\r\n\t\t\treturn true;\r\n\t\tcase '*':\r\n\t\t\treturn true;// debido a búsquedas\r\n\t\tdefault:\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "e1970457a2fd7d0ba01a4ad9cb7334f4", "score": "0.5200172", "text": "public static int charToNybbl(char c) {\n int val;\n switch (c) {\n case '0':\n val = 0;\n break;\n case '1':\n val = 1;\n break;\n case '2':\n val = 2;\n break;\n case '3':\n val = 3;\n break;\n case '4':\n val = 4;\n break;\n case '5':\n val = 5;\n break;\n case '6':\n val = 6;\n break;\n case '7':\n val = 7;\n break;\n case '8':\n val = 8;\n break;\n case '9':\n val = 9;\n break;\n case 'A':\n case 'a':\n val = 10;\n break;\n case 'B':\n case 'b':\n val = 11;\n break;\n case 'C':\n case 'c':\n val = 12;\n break;\n case 'D':\n case 'd':\n val = 13;\n break;\n case 'E':\n case 'e':\n val = 14;\n break;\n case 'F':\n case 'f':\n val = 15;\n break;\n default:\n throw new NumberFormatException(\"Invalid character '\" + c\n + \"' is not hex\");\n }\n return val;\n }", "title": "" }, { "docid": "ab5b6b5a08999348f4bff2df31e69f97", "score": "0.51993066", "text": "static int baseToInt(char c)\n\t{\n\t\tif(c == 'a' || c == 'A')\n\t\t{\n\t\t\treturn 0;\n\t\t}\n\t\tif(c == 'c' || c == 'C')\n\t\t{\n\t\t\treturn 1;\n\t\t}\n\t\tif(c == 'g' || c == 'G')\n\t\t{\n\t\t\treturn 2;\n\t\t}\n\t\treturn 3;\n\t}", "title": "" }, { "docid": "59b032d633f144c7bd59387af53f0d7d", "score": "0.5198798", "text": "char getReadChar();", "title": "" }, { "docid": "5e2c37bfa75052ca6c9642a44e5677e5", "score": "0.5197703", "text": "@Test\n public void input_C_() throws ValueOutOfBoundsException, MalformedNumberException {\n final RomanArabicConverter rac = new RomanArabicConverter(\"C\");\n assertEquals(100, rac.toArabic());\n assertEquals(\"C\", rac.toRoman());\n }", "title": "" }, { "docid": "2bbe9b2936d2372537935dc2403089a9", "score": "0.5195307", "text": "public static void main (String[]args){\n \r\n char AMayuscula = 'A', AMinuscula = 'a';\r\n // cast explicito de tipo - (AMayuscula + 1) el resultado es int\r\n char BMayuscula = (char) (AMayuscula + 1);\r\n \r\n System.out.println('\\n');\r\n System.out.println(BMayuscula);\r\n\t}", "title": "" }, { "docid": "e57f4072d7c9079def5dd190d1f4877c", "score": "0.51856637", "text": "public void testEnum() {\n assertNotNull(MazeCell.valueOf(MazeCell.UNEXPLORED.toString()));\n assertNotNull(MazeCell.valueOf(MazeCell.INVALID_CELL.toString()));\n assertNotNull(MazeCell.valueOf(MazeCell.CURRENT_PATH.toString()));\n assertNotNull(MazeCell.valueOf(MazeCell.FAILED_PATH.toString()));\n assertNotNull(MazeCell.valueOf(MazeCell.WALL.toString()));\n }", "title": "" }, { "docid": "9fdaa1a9eb909af3a9e9ca1deee86f20", "score": "0.5177055", "text": "private void validCharachter() throws DisallowedCharachter {\n if (!test.equals(\"X\") && !test.equals(\"O\")) {\n throw (new DisallowedCharachter());\n }\n }", "title": "" }, { "docid": "5929ff81f37c68ad86b6e24a262433dd", "score": "0.51744777", "text": "public static void main(String[] args) {\n\r\n\t\tchar n;\r\n\t\tScanner teclado=new Scanner (System.in);\r\n\t\tSystem.out.println(\"Introduce un valor al caracter\");\r\n\t\t\r\n\t\tn = teclado.nextLine().charAt(0); // Asigno el valor leido por teclado a la variable n\r\n\t\tSystem.out.println(\"El valor de la variable es \" + n);\r\n\t\tteclado.close();\r\n\t}", "title": "" }, { "docid": "142e6b567c2ccb4990a53ec8370b263a", "score": "0.5172667", "text": "@Test\n public void shouldParseCHAR() {\n printTest(\"shouldParseCHAR()\");\n String typeString = getDataTypeString(DataTypes.DTYPE_CHAR);\n String content = typeString;\n\n DdlTokenStream tokens = getTokens(content);\n\n DataType dType = parser.parse(tokens);\n\n Assert.assertNotNull(\"DataType was NOT found for Type = \" + typeString, dType);\n Assert.assertEquals(\"Wrong DataType found\", typeString, dType.getName());\n\n content = typeString + \" (255)\";\n tokens = getTokens(content);\n\n dType = parser.parse(tokens);\n\n Assert.assertNotNull(\"DataType was NOT found for Type = \" + typeString, dType);\n Assert.assertEquals(\"Wrong DataType found\", typeString, dType.getName());\n Assert.assertEquals(\"DataType length is not correct\", 255, dType.getLength());\n }", "title": "" }, { "docid": "f95c4fcfe757a91d169d16b31f17d98e", "score": "0.51673347", "text": "public char keyboardReadChar() {\n BufferedReader myReader = new BufferedReader(new InputStreamReader(System.in));\n char charItem = ' ';\n try {\n charItem = (char) myReader.read();\n } // try\n catch (IOException IOError) {\n System.out.println(\"Read Error in Termio.KeyboardReadChar method\");\n } // catch\n return charItem;\n }", "title": "" } ]
3948c5ded44c7609a0687ee5823d3069
Sets the "Orgref" element
[ { "docid": "aa9b7b2e19d42a910f9ef7dde2fc9cd5", "score": "0.86085284", "text": "void setOrgRef(gov.nih.nlm.ncbi.www.OrgRefDocument.OrgRef orgRef);", "title": "" } ]
[ { "docid": "a9f954acdd8191fc4d570580d0148d2a", "score": "0.69298846", "text": "gov.nih.nlm.ncbi.www.OrgRefDocument.OrgRef addNewOrgRef();", "title": "" }, { "docid": "beaa4732c030d094706fe68c3291d0cf", "score": "0.6835301", "text": "void setOrg(gov.nih.nlm.ncbi.www.SeqdescDocument.Seqdesc.Org org);", "title": "" }, { "docid": "410ff6d8f9fd9fa3004662563b069a09", "score": "0.6548692", "text": "public com.fretron.Model.Consignment.Builder setOrgId(java.lang.String value) {\n validate(fields()[3], value);\n this.orgId = value;\n fieldSetFlags()[3] = true;\n return this;\n }", "title": "" }, { "docid": "90c891d6a38ea87d7feaff69d6f1f51f", "score": "0.64931625", "text": "public com.fretron.Model.LoadType.Builder setOrgId(java.lang.String value) {\n validate(fields()[2], value);\n this.orgId = value;\n fieldSetFlags()[2] = true;\n return this;\n }", "title": "" }, { "docid": "b33fb24cc3cac983d046c558c5f3c517", "score": "0.6488625", "text": "public void setOrgId(Number value) {\n setAttributeInternal(ORGID, value);\n }", "title": "" }, { "docid": "4892fedb4cfb8a18630f762216e4ba51", "score": "0.64659005", "text": "public void setOrgId(java.lang.String value) {\n this.orgId = value;\n }", "title": "" }, { "docid": "4892fedb4cfb8a18630f762216e4ba51", "score": "0.64659005", "text": "public void setOrgId(java.lang.String value) {\n this.orgId = value;\n }", "title": "" }, { "docid": "4892fedb4cfb8a18630f762216e4ba51", "score": "0.64659005", "text": "public void setOrgId(java.lang.String value) {\n this.orgId = value;\n }", "title": "" }, { "docid": "135323e7f621c8a55f8d4dcbd5c465c3", "score": "0.64616", "text": "public com.fretron.Model.FreightSalesOrder.Builder setOrgId(java.lang.String value) {\n validate(fields()[2], value);\n this.orgId = value;\n fieldSetFlags()[2] = true;\n return this;\n }", "title": "" }, { "docid": "9af6538fd0ce902a56a667bcf06603df", "score": "0.6381464", "text": "public void setAD_Org_ID (int AD_Org_ID);", "title": "" }, { "docid": "9af6538fd0ce902a56a667bcf06603df", "score": "0.6381464", "text": "public void setAD_Org_ID (int AD_Org_ID);", "title": "" }, { "docid": "9af6538fd0ce902a56a667bcf06603df", "score": "0.6381464", "text": "public void setAD_Org_ID (int AD_Org_ID);", "title": "" }, { "docid": "9af6538fd0ce902a56a667bcf06603df", "score": "0.6381464", "text": "public void setAD_Org_ID (int AD_Org_ID);", "title": "" }, { "docid": "9af6538fd0ce902a56a667bcf06603df", "score": "0.6381464", "text": "public void setAD_Org_ID (int AD_Org_ID);", "title": "" }, { "docid": "9af6538fd0ce902a56a667bcf06603df", "score": "0.6381464", "text": "public void setAD_Org_ID (int AD_Org_ID);", "title": "" }, { "docid": "bc5451dd21a07b5cb5c3dafe459301ed", "score": "0.6373811", "text": "public void setOrgId(java.lang.String param){\n \n if (param != null){\n //update the setting tracker\n localOrgIdTracker = true;\n } else {\n localOrgIdTracker = true;\n \n }\n \n this.localOrgId=param;\n \n\n }", "title": "" }, { "docid": "60c6ec46f7b2d6aae3ab18144810d732", "score": "0.6279287", "text": "gov.nih.nlm.ncbi.www.OrgRefDocument.OrgRef getOrgRef();", "title": "" }, { "docid": "27c61c804b82f3db8ed4d7242818dda9", "score": "0.6250056", "text": "public com.github.PushEvent.Builder setOrg(com.github.Organization value) {\n validate(fields()[3], value);\n this.orgBuilder = null;\n this.org = value;\n fieldSetFlags()[3] = true;\n return this;\n }", "title": "" }, { "docid": "8db62d8d9a7ef15f8a60b1f6186f6594", "score": "0.6156826", "text": "public void setOrganization(String in) {this.storableUpdate(); this.organization = in;}", "title": "" }, { "docid": "d5d4116189d6e304f44112817d68d187", "score": "0.61223435", "text": "public void setOrgId(java.math.BigInteger orgId){\n this.orgId = orgId;\n }", "title": "" }, { "docid": "a1371bb93231e5870cf1d12d6907406f", "score": "0.6055461", "text": "gov.nih.nlm.ncbi.www.SeqdescDocument.Seqdesc.Org addNewOrg();", "title": "" }, { "docid": "c2e4826c871bff7b89ebdd6ec414cc47", "score": "0.602733", "text": "public void setOrgAcc(com.hps.july.persistence.Account anOrgAcc) throws java.rmi.RemoteException {\n\tthis.getOrgAccLink().set(anOrgAcc);\n}", "title": "" }, { "docid": "59d458f822de8d52a385beea7c26b9be", "score": "0.580615", "text": "void setReference(Object ref);", "title": "" }, { "docid": "9d824c95e1bea17e38965510174de44b", "score": "0.5797241", "text": "public void setOrgId(String orgId) {\n this.orgId = orgId == null ? null : orgId.trim();\n }", "title": "" }, { "docid": "f6978e95a1cf54d0423c72ee2a5f2a21", "score": "0.57799387", "text": "public void setRef(RBTNode ref)\n {\n this.ref = ref;\n }", "title": "" }, { "docid": "184dd1becbda3bc9410c671132e0a4d7", "score": "0.5729302", "text": "public void setOrganizationRelease(OrganizationRelease param){\n \n this.localOrganizationRelease=param;\n \n\n }", "title": "" }, { "docid": "831dce385818a71aa995479a1e57d6f8", "score": "0.57239217", "text": "public void setPOReference (String POReference);", "title": "" }, { "docid": "47d103442e776260e410db3f0481fb7e", "score": "0.5662877", "text": "public com.github.PushEvent.Builder setOrgBuilder(com.github.Organization.Builder value) {\n clearOrg();\n orgBuilder = value;\n return this;\n }", "title": "" }, { "docid": "73956dcbfd55f4c58c098954b29521f7", "score": "0.5653577", "text": "public void setReferenceliste(String newRef) {\n ref = newRef;\n }", "title": "" }, { "docid": "95ef5afaf91d3f98a218138a6f267eb3", "score": "0.56527865", "text": "Reference getOrganization();", "title": "" }, { "docid": "801d0733e372b1fa4d83081b03711023", "score": "0.5614467", "text": "void setReference(String reference);", "title": "" }, { "docid": "97a5799a9483e7caea11aeef99bdbeed", "score": "0.56022304", "text": "public void setOrgId(String orgId) {\n this.orgId = orgId;\n }", "title": "" }, { "docid": "c1342dfac89c6d0bc89b84149ecd5df3", "score": "0.5585246", "text": "public void setOrganizationDetail(OrganizationDetail param){\n \n this.localOrganizationDetail=param;\n \n\n }", "title": "" }, { "docid": "24bde531865a134926d413e1b07a9f6d", "score": "0.5583102", "text": "public void setRef(String ref)\n {\n this.ref = ref;\n }", "title": "" }, { "docid": "d31132df6b47cb8ad39ad1e1462b5a81", "score": "0.5514922", "text": "void unsetOrg();", "title": "" }, { "docid": "ba7c64af806c2052095b8ec5ea0df82d", "score": "0.5514461", "text": "public Builder withOrganization(String org){\n\t\t\tassertNotInvalidated(getClass(), rev);\n\t\t\trev.organization = org;\n\t\t\treturn this;\n\t\t}", "title": "" }, { "docid": "482f25118d8ef30d1a37f352f510a1b9", "score": "0.5509191", "text": "public void setAD_OrgTrx_ID (int AD_OrgTrx_ID);", "title": "" }, { "docid": "7a1adb1868ab9fb5aeca501a6c4a7389", "score": "0.55063957", "text": "public void setOwner(com.hps.july.persistence.Organization arg0) throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException {\n\n instantiateEJB();\n ejbRef().setOwner(arg0);\n }", "title": "" }, { "docid": "93daef27530a082a917e0191527d29ff", "score": "0.54792446", "text": "public Organization getOrg(){\n return this.org;\n }", "title": "" }, { "docid": "9d8829d23a327f59d318cee115faa9bc", "score": "0.5469004", "text": "public void setOrganizationName(java.lang.String param){\n localOrganizationNameTracker = true;\n \n this.localOrganizationName=param;\n \n\n }", "title": "" }, { "docid": "9f7029e8aa21f8f5f273e426d84f16b5", "score": "0.54673547", "text": "public void setReference(Reference ref) {\r\n\t\tfinal String SIGNATURE = \"setReference()\";\r\n\t\tTRACE.entering(SIGNATURE, new Object[] {ref});\r\n\t\tthis.reference = ref;\r\n\t\tTRACE.exiting(SIGNATURE);\t\t\r\n }", "title": "" }, { "docid": "bbae8ac9011b842c4389ccdc023f68a3", "score": "0.54418385", "text": "public void setOrgName(String orgName) {\r\n this.orgName = orgName == null ? null : orgName.trim();\r\n }", "title": "" }, { "docid": "79756e87477c498e08679346374180f9", "score": "0.54317725", "text": "public com.fretron.Model.Consignment.Builder clearOrgId() {\n orgId = null;\n fieldSetFlags()[3] = false;\n return this;\n }", "title": "" }, { "docid": "9514631afedab8b92958946f79c37e6b", "score": "0.53785706", "text": "gov.nih.nlm.ncbi.www.SeqdescDocument.Seqdesc.Org getOrg();", "title": "" }, { "docid": "b7962310042b1aeace5c2a85f0f0119b", "score": "0.5377932", "text": "public void setOrganizationName(java.lang.String value);", "title": "" }, { "docid": "16c35b4ec20ceab16ce84dabb512f4f2", "score": "0.5374625", "text": "public void secondarySetOwner(com.hps.july.persistence.Organization arg0) throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException {\n\n instantiateEJB();\n ejbRef().secondarySetOwner(arg0);\n }", "title": "" }, { "docid": "b1c14220a4d3acc919d226e9b7822f47", "score": "0.53738385", "text": "@Test\n public void setExternalRefTest() {\n Integer id = null;\n StringWrapper externalRef = null;\n // Void response = api.setExternalRef(id, externalRef);\n\n // TODO: test validations\n }", "title": "" }, { "docid": "fd97021e316674f763595039995b62ca", "score": "0.5370256", "text": "void setReftype(gov.nih.nlm.ncbi.www.PubdescDocument.Pubdesc.Reftype reftype);", "title": "" }, { "docid": "9b0af269f08289616dad894ec2596c86", "score": "0.5355602", "text": "public void setRef(String ref) {\n\t\tthis.ref = ref;\n\t}", "title": "" }, { "docid": "c9ade98b9842fbf57a095c0cb17e44e3", "score": "0.53448", "text": "public void setOrgId(Long orgId) {\n this.orgId = orgId;\n }", "title": "" }, { "docid": "c9ade98b9842fbf57a095c0cb17e44e3", "score": "0.53448", "text": "public void setOrgId(Long orgId) {\n this.orgId = orgId;\n }", "title": "" }, { "docid": "c9ade98b9842fbf57a095c0cb17e44e3", "score": "0.53448", "text": "public void setOrgId(Long orgId) {\n this.orgId = orgId;\n }", "title": "" }, { "docid": "90c0a10a45e5f9c07f5a8f4c8592e805", "score": "0.53383124", "text": "public com.fretron.Model.LoadType.Builder clearOrgId() {\n orgId = null;\n fieldSetFlags()[2] = false;\n return this;\n }", "title": "" }, { "docid": "857f4ff6c5682f9f7b8a54fd64b3647f", "score": "0.5333244", "text": "public String getOrgId() {\n return orgId;\n }", "title": "" }, { "docid": "857f4ff6c5682f9f7b8a54fd64b3647f", "score": "0.5333244", "text": "public String getOrgId() {\n return orgId;\n }", "title": "" }, { "docid": "3be300196114fbf1247b4b8b87813ac1", "score": "0.5323069", "text": "public java.lang.String getOrgId(){\n return localOrgId;\n }", "title": "" }, { "docid": "c5b57b5b6553396923ab06f8c5e71ad9", "score": "0.53162867", "text": "public void setReference(org.omg.CORBA.Object aValue)\n {\n String ior = getORB().object_to_string(aValue);\n setReference(ior);\n }", "title": "" }, { "docid": "c55d1b3d5241c175c63c22f86dbb750e", "score": "0.52966785", "text": "public com.fretron.Model.FreightSalesOrder.Builder clearOrgId() {\n orgId = null;\n fieldSetFlags()[2] = false;\n return this;\n }", "title": "" }, { "docid": "f0bf95823ea53c7f819ee9f36152c03f", "score": "0.5292706", "text": "private void setReferenceProperty(String entityName, FieldMetaData editViewField) {\n\t\t//about the reference property...the logic goes this way\n\t\t//if the reference property exists in the edit view annotation then use that reference property and ensure the same exists in the list\n\t\t//view meta information for the association property. If it does not exist then we need to add that\n\t\t//if the reference property does not exist in the edit view then try to fetch the same in the list view and also ensure that the same is\n\t\t//present in the association list view meta data\n\t\t//else try to use the id property as the reference property\n\t\tString propertyName = editViewField.getName();\n\t\tDataType dataType = DataType.valueOf(editViewField.getDataType());\n\t\tif (DataType.REFERENCE.equals(dataType) || DataType.COLLECTION.equals(dataType)) {\n\t\t\tString referenceProperty = editViewField.getReferenceProperty();\n\t\t\tListViewMetaData associationListMeta = editViewField.getAssociationListMeta();\n\t\t\t//get the list view meta for the association class\n\t\t\tListViewMetaData associatedEntityListViewMeta = listViewMetaCache.get(editViewField.getPropertyJavaType().getName());\n\t\t\t//if this is blank take it from the list view\n\t\t\tif (StringUtils.isBlank(referenceProperty)) {\n\t\t\t\tListViewMetaData listMetaData = listViewMetaCache.get(entityName);\n\t\t\t\tList<ColumnMetaData> columns = listMetaData.getColumns();\n\t\t\t\tColumnMetaData relevantColumn = (ColumnMetaData)CollectionUtils.find(columns, new ColumnFinderPredicate(propertyName));\n\t\t\t\tif (relevantColumn != null) {\n\t\t\t\t\treferenceProperty = relevantColumn.getReferenceProperty();\n\t\t\t\t\tif (StringUtils.isNotBlank(referenceProperty)) {\n\t\t\t\t\t\teditViewField.referenceProperty(referenceProperty);\n\t\t\t\t\t\t//if this is null then create one and add the column to it\n\t\t\t\t\t\t//else ensure the column exists\n\t\t\t\t\t\tif (associationListMeta == null) {\n\t\t\t\t\t\t\t//and create a duplicate of that\n\t\t\t\t\t\t\tassociationListMeta = new ListViewMetaData(associatedEntityListViewMeta);\n\t\t\t\t\t\t\tassociationListMeta.getColumns().clear();\n\t\t\t\t\t\t\t//ensure that the reference property column exists\n\t\t\t\t\t\t\tColumnMetaData referenceColumnMetaData \n\t\t\t\t\t\t\t\t= (ColumnMetaData)CollectionUtils.find(associatedEntityListViewMeta.getColumns(), new ColumnFinderPredicate(referenceProperty));\n\t\t\t\t\t\t\tif (referenceColumnMetaData != null) {\n\t\t\t\t\t\t\t\tassociationListMeta.addColumn(new ColumnMetaData(referenceColumnMetaData).order(0).hidden(false));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\teditViewField.associationListMeta(associationListMeta);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t//if the reference property does not exist in the association meta object then need to create one\n\t\t\t\t\t\t\tif (CollectionUtils.find(associationListMeta.getColumns(), new ColumnFinderPredicate(referenceProperty)) == null) {\n\t\t\t\t\t\t\t\tColumnMetaData referenceColumnMetaData \n\t\t\t\t\t\t\t\t\t= (ColumnMetaData)CollectionUtils.find(associatedEntityListViewMeta.getColumns(), new ColumnFinderPredicate(referenceProperty));\n\t\t\t\t\t\t\t\tif (referenceColumnMetaData != null) {\n\t\t\t\t\t\t\t\t\tassociationListMeta.addColumn(new ColumnMetaData(referenceColumnMetaData).order(100).hidden(false));\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//if the reference property is still null then try to use the id property of the associated class as the reference property\n\t\t\t\tif (StringUtils.isBlank(referenceProperty)) {\n\t\t\t\t\trelevantColumn = associatedEntityListViewMeta.getIdColumn();\n\t\t\t\t\tif (relevantColumn != null) {\n\t\t\t\t\t\teditViewField.referenceProperty(relevantColumn.getName());\n\t\t\t\t\t\treferenceProperty = editViewField.getReferenceProperty();\n\t\t\t\t\t\tif (associationListMeta == null) {\n\t\t\t\t\t\t\t//and create a duplicate of that\n\t\t\t\t\t\t\tassociationListMeta = new ListViewMetaData(associatedEntityListViewMeta);\n\t\t\t\t\t\t\tassociationListMeta.getColumns().clear();\n\t\t\t\t\t\t\t//ensure that the reference property column exists\n\t\t\t\t\t\t\tassociationListMeta.addColumn(new ColumnMetaData(relevantColumn).order(0).hidden(false));\n\t\t\t\t\t\t\teditViewField.associationListMeta(associationListMeta);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t//if the reference property does not exist in the association meta object then need to create one\n\t\t\t\t\t\t\tif (CollectionUtils.find(associationListMeta.getColumns(), new ColumnFinderPredicate(referenceProperty)) == null) {\n\t\t\t\t\t\t\t\tassociationListMeta.addColumn(new ColumnMetaData(relevantColumn).order(100).hidden(false));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t\n\t\t\t\tif (associationListMeta == null) {\n\t\t\t\t\t//and create a duplicate of that\n\t\t\t\t\tassociationListMeta = new ListViewMetaData(associatedEntityListViewMeta);\n\t\t\t\t\tassociationListMeta.getColumns().clear();\n\t\t\t\t\teditViewField.associationListMeta(associationListMeta);\n\t\t\t\t} \n\t\t\t\t\n\t\t\t\t//if the reference property does not exist in the association meta object then need to create one\n\t\t\t\tif (CollectionUtils.find(associationListMeta.getColumns(), new ColumnFinderPredicate(referenceProperty)) == null) {\n\t\t\t\t\tColumnMetaData referenceColumnMetaData \n\t\t\t\t\t\t= (ColumnMetaData)CollectionUtils.find(associatedEntityListViewMeta.getColumns(), new ColumnFinderPredicate(referenceProperty));\n\t\t\t\t\tif (referenceColumnMetaData != null) {\n\t\t\t\t\t\tassociationListMeta.addColumn(new ColumnMetaData(referenceColumnMetaData).order(100).hidden(false));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif(DataType.COLLECTION.equals(dataType)){\n\t\t\t\tsetCollectionReference(entityName, editViewField);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "1cf2c0d3c1c9e1b1b55d39f2d367124b", "score": "0.52614415", "text": "public Builder setOrganization(\n app.onepass.apis.Organization.Builder builderForValue) {\n if (organizationBuilder_ == null) {\n organization_ = builderForValue.build();\n onChanged();\n } else {\n organizationBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }", "title": "" }, { "docid": "4d896d7a43a8b99e807d012472fd6542", "score": "0.5241235", "text": "public void setReferenceExpr(Expression expr) {\n\t\tsetElementAt(expr, 0);\n\t}", "title": "" }, { "docid": "f7a350240eb1c5f67dd9b2fd6add0cb3", "score": "0.5239756", "text": "public void setOrganization(String sOrganization)\r\n {\r\n this.m_sOrganization = sOrganization;\r\n }", "title": "" }, { "docid": "c3d4bd2d3938c68d83e8c5ed9e48aaa3", "score": "0.52297384", "text": "public void setOrgIds(String orgIds) {\n this.orgIds = orgIds == null ? null : orgIds.trim();\n }", "title": "" }, { "docid": "6ce4452953ecf51e7e05268b02ba3fc1", "score": "0.5229705", "text": "public void setReferees (String ref1, String ref2, String ref3, String com) {\n refs[0] = ref1;\n refs[1] = ref2;\n if (\"\".equals(ref3)) {\n refs[2] = null;\n }\n else {\n refs[2] = ref3;\n }\n if (\"\".equals(com)) {\n refs[3] = null;\n }\n else {\n refs[3] = com;\n }\n }", "title": "" }, { "docid": "bc1786fef67b25e16018738fb620933f", "score": "0.5227927", "text": "public void setThirdPartyOrg(java.lang.String thirdPartyOrg) {\r\n this.thirdPartyOrg = thirdPartyOrg;\r\n }", "title": "" }, { "docid": "95b850b48b0dc3cfa33abc75d4d2a4f7", "score": "0.5226008", "text": "public void secondarySetOrgAcc(com.hps.july.persistence.Account anOrgAcc) throws java.rmi.RemoteException {\n\tthis.getOrgAccLink().secondarySet(anOrgAcc);\n}", "title": "" }, { "docid": "c065275d4c7c9d57bed08b84ccb0fc1a", "score": "0.52214277", "text": "boolean isSetOrg();", "title": "" }, { "docid": "c1ac1128dcf4b1bf6c4fb7f9c9ab6470", "score": "0.5207956", "text": "public void setIdRef(Long idRef) {\r\n\t\tthis.idRef = idRef;\r\n\t}", "title": "" }, { "docid": "9126b9155c63386e39a07e5fcb47153d", "score": "0.5185994", "text": "public java.lang.String getOrgId() {\n return orgId;\n }", "title": "" }, { "docid": "9126b9155c63386e39a07e5fcb47153d", "score": "0.5185994", "text": "public java.lang.String getOrgId() {\n return orgId;\n }", "title": "" }, { "docid": "9126b9155c63386e39a07e5fcb47153d", "score": "0.5185994", "text": "public java.lang.String getOrgId() {\n return orgId;\n }", "title": "" }, { "docid": "2293cf313d51640aad89e436a5b1c93a", "score": "0.5185447", "text": "public void setOrdenFabricacion(OrdenFabricacion ordenFabricacion)\r\n/* 91: */ {\r\n/* 92:102 */ this.ordenFabricacion = ordenFabricacion;\r\n/* 93: */ }", "title": "" }, { "docid": "0be5246719d9bb909393f28405f72b2e", "score": "0.51810116", "text": "public void setOrganizationVersion(java.lang.String param){\n localOrganizationVersionTracker = true;\n \n this.localOrganizationVersion=param;\n \n\n }", "title": "" }, { "docid": "f2d1e7885b08957b2f4e0a6cd11ea7e0", "score": "0.5176183", "text": "public com.github.PushEvent.Builder clearOrg() {\n org = null;\n orgBuilder = null;\n fieldSetFlags()[3] = false;\n return this;\n }", "title": "" }, { "docid": "8954c14652276077c44230cbb3ef0d81", "score": "0.51674455", "text": "public Builder setOrganization(app.onepass.apis.Organization value) {\n if (organizationBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n organization_ = value;\n onChanged();\n } else {\n organizationBuilder_.setMessage(value);\n }\n\n return this;\n }", "title": "" }, { "docid": "e25b72f80bd8c41cc816d87741f6b84d", "score": "0.5165177", "text": "public java.lang.String getOrgId() {\n return orgId;\n }", "title": "" }, { "docid": "e25b72f80bd8c41cc816d87741f6b84d", "score": "0.5165177", "text": "public java.lang.String getOrgId() {\n return orgId;\n }", "title": "" }, { "docid": "e25b72f80bd8c41cc816d87741f6b84d", "score": "0.5165177", "text": "public java.lang.String getOrgId() {\n return orgId;\n }", "title": "" }, { "docid": "4d9c27bfc090202867ed6e07c5bc6b09", "score": "0.5161889", "text": "protected com.ibm.ivj.ejb.associations.interfaces.SingleLink getOrgAccLink() {\n\tif (orgAccLink == null)\n\t\torgAccLink = new LeasePayOrderToOrgAccLink(this);\n\treturn orgAccLink;\n}", "title": "" }, { "docid": "ac22485df8772e0ca7e3ae87b878a677", "score": "0.5160727", "text": "public void setRefid( final Reference reference )\n throws BuildException\n {\n if( !m_extensions.isEmpty() ||\n !m_extensionsFilesets.isEmpty() )\n {\n throw tooManyAttributes();\n }\n final Object object =\n reference.getReferencedObject( getProject() );\n if( object instanceof ExtensionSet )\n {\n final ExtensionSet other = (ExtensionSet)object;\n m_extensions.addAll( other.m_extensions );\n m_extensionsFilesets.addAll( other.m_extensionsFilesets );\n }\n else\n {\n final String message =\n reference.getRefId() + \" doesn\\'t refer to a ExtensionSet\";\n throw new BuildException( message );\n }\n\n super.setRefid( reference );\n }", "title": "" }, { "docid": "e273585098ff5e12347cd8b0e3cfc9f6", "score": "0.5151693", "text": "public void setOrganizationId(Guid param){\n localOrganizationIdTracker = param != null;\n \n this.localOrganizationId=param;\n \n\n }", "title": "" }, { "docid": "e273585098ff5e12347cd8b0e3cfc9f6", "score": "0.5151693", "text": "public void setOrganizationId(Guid param){\n localOrganizationIdTracker = param != null;\n \n this.localOrganizationId=param;\n \n\n }", "title": "" }, { "docid": "539c930e043e3d8062898e6805ed0620", "score": "0.51468706", "text": "public String getOrgName() {\r\n return orgName;\r\n }", "title": "" }, { "docid": "2aa0e6111426d3b1c57f437c31791b5f", "score": "0.5143631", "text": "public void setSaleOrg(String saleOrg)\n {\n this.saleOrg = saleOrg == null ? null : saleOrg.trim();\n }", "title": "" }, { "docid": "e79f1b2fa03c1266eb10b680de725744", "score": "0.5139679", "text": "Update withOrgCreationSource(OrgCreationSource orgCreationSource);", "title": "" }, { "docid": "cc25f56b08ce78b43067c0bc94ef3d95", "score": "0.5139667", "text": "public void setDocletPathRef(Reference r) {\n if (doclet == null) {\n doclet = new DocletInfo();\n doclet.setProject(getProject());\n }\n doclet.createPath().setRefid(r);\n }", "title": "" }, { "docid": "58ca86c3bf6041aa181c938973e19e44", "score": "0.5137967", "text": "public void setSalesOffice(com.fretron.Model.OrgOffice value) {\n this.salesOffice = value;\n }", "title": "" }, { "docid": "58ca86c3bf6041aa181c938973e19e44", "score": "0.5137967", "text": "public void setSalesOffice(com.fretron.Model.OrgOffice value) {\n this.salesOffice = value;\n }", "title": "" }, { "docid": "4edac1c6c70f26b9999507bf181489e6", "score": "0.5130723", "text": "@XmlElement\n public String getOrganization() {\n return organization;\n }", "title": "" }, { "docid": "4ca017ace3d7f5a98c1907103a4fc917", "score": "0.51268", "text": "public void setDoc(srcastra.astra.sys.classetransfert.Document_T doc) { \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n this.doc= doc;\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n }", "title": "" }, { "docid": "55ed64e13cb5f1ef7b25ca55fbbf70e5", "score": "0.51254046", "text": "public void setJP_Line_OrgTrx_Value (String JP_Line_OrgTrx_Value);", "title": "" }, { "docid": "a5e74c2a9c0ebf4e09d578e142470547", "score": "0.5121855", "text": "public void setOrganisation(String organisation) { this.organisation = organisation; }", "title": "" }, { "docid": "6f060b1a39263ae96bb46b7294917f13", "score": "0.5118856", "text": "public void setJP_Line_OrgTrx_ID (int JP_Line_OrgTrx_ID);", "title": "" }, { "docid": "ecec560a737154813d3e73f66547a96d", "score": "0.5115155", "text": "void xsetValue(gov.nih.nlm.ncbi.www.PubdescDocument.Pubdesc.Reftype.Value value);", "title": "" }, { "docid": "98442335a7d9d5c680f9277cb1e764e5", "score": "0.5103846", "text": "public Long getOrgId() {\n return orgId;\n }", "title": "" }, { "docid": "98442335a7d9d5c680f9277cb1e764e5", "score": "0.5103846", "text": "public Long getOrgId() {\n return orgId;\n }", "title": "" }, { "docid": "98442335a7d9d5c680f9277cb1e764e5", "score": "0.5103846", "text": "public Long getOrgId() {\n return orgId;\n }", "title": "" }, { "docid": "af760155310554a8f2123b2b1bbb2094", "score": "0.50654566", "text": "public com.github.Organization getOrg() {\n return org;\n }", "title": "" }, { "docid": "080f08287e2dad77e640bd02129a89ee", "score": "0.5062524", "text": "public void setOrgCode(String orgCode) {\r\n this.orgCode = orgCode == null ? null : orgCode.trim();\r\n }", "title": "" }, { "docid": "7a3dac342e320772f0b438197f3923dd", "score": "0.5048859", "text": "public com.github.Organization getOrg() {\n return org;\n }", "title": "" } ]
3be3454b860dad032e8fae90140f59c3
/ pushes node (node != null) onto the stack as new head element
[ { "docid": "83236070280923e8194858831cd34d27", "score": "0.6282553", "text": "public void push(StringNode node) {\n\t\thead = new Entry(head, node);\n\t}", "title": "" } ]
[ { "docid": "5afb4a4c9687d9ae0e52e7beaaf5b2c5", "score": "0.72967356", "text": "@Override\n public E push(final E obj) {\n top = new Node<E>(obj, top);\n return null;\n }", "title": "" }, { "docid": "b2cca1f3a34866a800912ad5a3e9effb", "score": "0.7066454", "text": "public void push(T item){\n\tStackNode<T> t = new StackNode<T>(item);\n\tt.next = top;\n\ttop = t;\n\n}", "title": "" }, { "docid": "d5cdc6d72a5caf42f8f2d28ae7c82c9e", "score": "0.7050005", "text": "public void push(T elem) {\n if (topNode == null) {\n topNode = new Node(elem, null, null);\n startNode = topNode;\n } else {\n Node newTop = new Node(elem, null, topNode);\n topNode.setNext(newTop);\n topNode = newTop;\n }\n }", "title": "" }, { "docid": "4374add7344b8b6a1156e962058ec246", "score": "0.7019292", "text": "public void head() {\n\n pushHead(valueStack.pop());\n }", "title": "" }, { "docid": "cc2bd5c3b6f390e77bcfa19ca27f22f5", "score": "0.7017656", "text": "@Override\n public E push(E obj) {\n if (head == null) { // Add to an isEmpty list.\n head = new Node<>(obj);\n tail = head;\n head.data = obj;\n ++size;\n return head.data;\n } else {\n Node< E > newNode = new Node<>(obj);\n tail.next = newNode;\n newNode.prev = tail;\n tail = newNode;\n ++size;\n return newNode.data;\n }\n }", "title": "" }, { "docid": "f892de412cb7fba762ecf5bf973374b8", "score": "0.70131254", "text": "@Override\r\n\t public void push(String item) \r\n\t { \r\n\t\tsz++;\r\n\t\tListNode newnode = new ListNode(item);\r\n\t\tif(isEmpty())\r\n\t\t{\r\n\t\t\ttop = newnode;\r\n\t\t}//end if\r\n\t\telse\r\n\t\t{\r\n\t\t\tnewnode.next = top;\r\n\t \t\ttop = newnode;\r\n\t\t}//end else\r\n\t }", "title": "" }, { "docid": "e0b3a33dd9bd7950d92a917525550aaf", "score": "0.69946736", "text": "void push(Node item){\n\t\tNode t = new Node();\n\t\tt.info = item.info;\n\t\tt.pointer = top;\n\t\ttop = t;\n\t}", "title": "" }, { "docid": "b873ce699f97f11f35b53728297b98c8", "score": "0.6972918", "text": "public void push() {\n top++;\n if (top >= stack.length) {\n Mapping newstack[] = new Mapping[stack.length * 2];\n System.arraycopy(stack, 0, newstack, 0, stack.length);\n stack = newstack;\n }\n if (traceEnabled)\n log.trace(\"NSPush (\" + stack.length + \")\");\n stack[top] = null;\n }", "title": "" }, { "docid": "04e86e28ea438845f55bfad33c4eda45", "score": "0.69636244", "text": "public stackList (node phead){\n this._head=phead;\n }", "title": "" }, { "docid": "7d3970148c1407900c863fd362e22c43", "score": "0.69591767", "text": "@Override\n public boolean push(T value) {\n traceCall(\"push(\"+value+\")\"); // Ignore these trace methods\n\n // Make the new node containing the new element\n Node<T> toPush = new Node<T>(value);\n\n // Case where there is no head (stack is empty)\n if (isHeadless()) {\n setEmptyHead(toPush); // Make new top\n endCall(\"Empty \"+type.toLowerCase()+\": \"+type.toLowerCase()+\" is now '\"+value+\"'.\"); // Ignore these trace methods\n return true;\n }\n // Case where stack isn't empty\n addAtHead(toPush); // Make new top\n\n endCall(\"Pushed: '\"+value+\"'.\"); // Ignore these trace methods\n return true;\n }", "title": "" }, { "docid": "d1c27668992cc3bbd57ac61ceaac0fd6", "score": "0.6953042", "text": "public void push (G pData){\n _head=new node (pData, _head, null);\n }", "title": "" }, { "docid": "cb737df4aac486995a60ddee7b12f35e", "score": "0.68521273", "text": "static Node push( Node head_ref, int new_data) \n{ \n Node new_node = new Node(); \n new_node.data = new_data; \n new_node.next = (head_ref); \n (head_ref) = new_node; \n return head_ref; \n}", "title": "" }, { "docid": "217c49dce069ba941c3c8a77862e30e9", "score": "0.67802227", "text": "public void Push(Object data)\n {\n if(isEmpty())\n top = new Node(data);\n else\n {\n Node n = new Node(data, top);\n top = n;\n }\n }", "title": "" }, { "docid": "7eb26265f95a05025b0b46a903ca278c", "score": "0.6774", "text": "public void push(AnyType x) {\r\n stackTop = new ListNode<AnyType>(x, stackTop);\r\n }", "title": "" }, { "docid": "92a30a1267020a89d21950bf91efa7fd", "score": "0.676247", "text": "public void push( E elem ) {\n if(elem == null){\n \t throw new EmptyStackException(\"Null is not a valid element\");\n }\n else{\t\n \t top = new Elem<E>( elem, top );\n }\n }", "title": "" }, { "docid": "ba2837ca7ab6cbcf456469e1f875adcd", "score": "0.67604864", "text": "public void push(Item item) {\n Node oldfirst = first;\n\n first = new Node();\n first.item = item;\n first.next = oldfirst;\n }", "title": "" }, { "docid": "c677c7a485daf6021a3ebc54ed8dcf47", "score": "0.67364955", "text": "void push(int new_data)\r\n {\r\n Node new_node=new Node(new_data);//new node created\r\n new_node.next=head;//adress of previous head node at head is assigned to next of new node\r\n head=new_node;//adress of new node to head\r\n }", "title": "" }, { "docid": "71701cb627f35359fd0a33f406305d48", "score": "0.67348886", "text": "public void push(T data){\n MyNode<T> tnode=new MyNode<T>(data,null);\n if(top==null)\n top=tnode;\n else{\n tnode.setNextRef(top);\n top = tnode;\n }\n size++;\n }", "title": "" }, { "docid": "281133281a510a55830b6614b58c0180", "score": "0.6730818", "text": "public void push( Point s ) {\n top = new Node( s, top );\n }", "title": "" }, { "docid": "ede2890d15fcbd49130a698326f9fbe8", "score": "0.6725146", "text": "@Override\n\tpublic void push(E e) {\n\t\ttop = new LinkNode<E>(e, null, top);\n\t\tlength++;\n\t}", "title": "" }, { "docid": "ad4ec8c7cfa2085f00f6545de2295770", "score": "0.67148864", "text": "public void push(T elem) {\n\t\t// TODO\n\t\tLLNode<T> newNode = new LLNode<T>(elem);\n\t\tnewNode.link = top;\n\t\tcounter++;\n\t\ttop = newNode;\n\t}", "title": "" }, { "docid": "92e1077ed1668263b3f4211d9c5e5027", "score": "0.66759276", "text": "public void push(Object object){\n Node node = new Node(object);\n node.setNextPtr(head);\n node.setBackPtr(null);\n head = node;\n\n if(isEmpty()){\n tail = node;\n }else{\n node.getNextPtr().setBackPtr(node);\n }\n\n size++;\n }", "title": "" }, { "docid": "2d505fcb0604934c755bb609415bb123", "score": "0.6672912", "text": "private static Node push(Node head, int i) {\n Node ptr = head;\n Node new_node = new Node(i);\n new_node.next = ptr;\n head = new_node;\n return head;\n }", "title": "" }, { "docid": "197cb7d494d2e9f04c5de708c92cc703", "score": "0.66490823", "text": "public void push(Item element) {\n\t\tNode newnode = new Node(element);\n\t\tif (isEmpty()) {\n\t\t\tnewnode.previous = null;\n\t\t\tnewnode.next = null;\n\t\t\tfirst = newnode;\n\t\t\tlast = first;\n\t\t\tsize++;\n\t\t\treturn;\n\t\t}\n\t\tNode oldfirst = first;\n\t\tfirst = newnode;\n\t\toldfirst.previous = first;\n\t\tfirst.next = oldfirst;\n\t\tfirst.previous = null;\n\t\tsize++;\n\t}", "title": "" }, { "docid": "61a9797ecdbbe027c55621a7893d899e", "score": "0.66235566", "text": "public synchronized void push(E element){\n\t\tif(null == element)\n\t\t\treturn;\n\t\tif(null == head){\n\t\t\thead = new Node<E>(element, null, null);\n\t\t\tlast = head;\n\t\t\tsize ++;\n\t\t\treturn;\n\t\t}\n\t\tif(size < MAX_LENGTH ){\n\t\t\tNode<E> temp = new Node<E>(element);\n\t\t\ttemp.next = head;\n\t\t\thead.previous = temp;\n\t\t\thead = temp;\n\t\t\tsize ++;\n\t\t\treturn;\n\t\t}\n\t\tlast = last.previous;\n\t\tlast.next = null;\n\t\tNode<E> temp = new Node<E>(element);\n\t\ttemp.next = head;\n\t\thead.previous = temp;\n\t\thead = temp;\n\t}", "title": "" }, { "docid": "96c962094de766f446663bef1b459445", "score": "0.6565053", "text": "public void push(T new_data){\n Node new_node = new Node(new_data);//Create a new node\n new_node.next = top; //Set the newNode next value as the top of the stack\n top= new_node;//Set the top of the stack as the newNode\n count++;\n }", "title": "" }, { "docid": "a51da31c1d76b722f488c3b4f37de489", "score": "0.65033203", "text": "public MinStack() {\n head=new Node(-1,-1);\n }", "title": "" }, { "docid": "fb5f41e4e2b8db6fab9f23e60044163f", "score": "0.65010875", "text": "public void push(T object)\r\n { \r\n stackList.insertAtFront(object); \r\n }", "title": "" }, { "docid": "26c7af3590953c385bff02096b150197", "score": "0.64982593", "text": "public void push(int x) {\n\n\t\tNode coolNode = new Node(x, head); //Create a new node with the value being x and the head = head.\n\t\t//System.out.printf(\"you just pushed %d onto the stack.\\n\", x);\n head = coolNode; //Setting the head to the new Node.\n\t}", "title": "" }, { "docid": "47e65b512cd451af2b344fa7461707f1", "score": "0.649723", "text": "public void push(CharNode node){\n\t\tCharNode previoustop = top;\n\t\t//creating a new top for the pushed node i added and setting the\n\t\t//next pointer to the previous top\n\t\ttop = new CharNode(node._data,previoustop);\n\t\t\n\n\t}", "title": "" }, { "docid": "698acdc24d7b7926fe84cb8730f0c21e", "score": "0.6486912", "text": "public void push(K item) {\r\n\t\tListNode <K> LN=new ListNode<K>(item, null);\r\n\t\tif (erstes==null)\r\n\t\t{\r\n\t\terstes=LN;\r\n\t\tletztes=LN;\r\n\t\t}\r\n\t\telse{\r\n\t\t\tletztes.next=LN;\r\n\t\t\tletztes=LN;\t\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "91698ac179137af8d75280ab1e7adab3", "score": "0.6451282", "text": "public void push(E value) {\r\n\t\tNode<E> reference=new Node<E>(value,null);\r\n\t\tsize++;\r\n\t\tif(top==null) {\r\n\t\t\ttop=reference;\r\n\t\t}\r\n\t\telse {\r\n\t\t\treference.link=top;\r\n\t\t\ttop=reference;\r\n\r\n\t\t}\r\n\r\n\t}", "title": "" }, { "docid": "7e89b8c9bc950182efe0f7642ed65fac", "score": "0.6442618", "text": "void prepend(Object entry){\r\n \t//case for list not having any elements\r\n \tif(size==0){\r\n Node newN = new Node (entry);\r\n front = newN;\r\n back= newN;\r\n size++;\r\n } else {\r\n Node n= new Node (entry);\r\n front.previous=n;\r\n n.next=front;\r\n front=n;\r\n size++;\r\n cursorIndex++;\r\n }\r\n }", "title": "" }, { "docid": "5dcc968913180d7332cfdcafb79ab86f", "score": "0.64222175", "text": "public void push(Object obj){\n Node n = new Node(obj);\n if(_size == 0){\n _start = n;\n _end = n;\n } else {\n _end.setNext(n);\n n.setPrevious(_end);\n _end = n;\n }\n _size++;\n }", "title": "" }, { "docid": "2fbae7cb6aa2819531820f0d69bb0208", "score": "0.6401464", "text": "public void push(int data){\n if(this.head==null){\n this.head = new Node(data) ;\n }\n else{\n Node newNode = new Node(data) ;\n newNode.next = this.head ;\n this.head = newNode ;\n }\n }", "title": "" }, { "docid": "5b5c38159ebb3508c64a518f5840832e", "score": "0.63897467", "text": "public void pushL(char c)\r\n\t{\r\n\t\tNode node = new Node();\r\n\t\tnode.ch = c;\r\n\t\tnode.next = top;\r\n\t\ttop = node;\r\n\t\tsize++;\r\n\t\t/*Node current = new Node(c,null);\r\n\t\tif(top == null)\r\n\t\t\ttop = current;\r\n\t\telse\r\n\t\t{\r\n\t\t\tcurrent.setLink(top);//will add node\r\n\t\t\ttop = current;\r\n\t\t\tsize++;//increasing amount of nodes\r\n\t\t}//end else statement*/\r\n\t}", "title": "" }, { "docid": "9dcb5703125d7b4368e21d075e5b531c", "score": "0.6373786", "text": "public void push_back(int newItem)\n {\n // if head node is null, make head and tail node contain the first node\n if ( head == null)\n {\n head = new Node(newItem);\n tail=head; // when first item is enqueued, head and tail are the same\n }\n else\n {\n Node newNode = new Node(newItem);\n tail.setNext(newNode);\n tail=newNode; \n }\n numberOfElements++;\n }", "title": "" }, { "docid": "fe911bb1bfd0da0e825b2cf070ab96e4", "score": "0.6366942", "text": "public void addToHead( String item)\n {\n head = new Node( item, head);\n }", "title": "" }, { "docid": "b72daeeecbdb74af2fc4d848d62427f4", "score": "0.6359629", "text": "public void push(T value) {\r\n Node newNode = new Node(value, this.top);\r\n this.top = newNode;\r\n }", "title": "" }, { "docid": "9abb34e7694fa692e375ab30318ab267", "score": "0.63529193", "text": "public void addFront(T newEntry){\n\t\tNode newNode = new Node(newEntry);\n\t\tif (isEmpty()){\n\t\t\thead = newNode;\n\t\t\ttail = newNode;}\n\t\telse{\n\t\t\tnewNode.next = head;\n\t\t\thead = newNode;\n\t\t}\n\t}", "title": "" }, { "docid": "fa0b0bbaad34f4dba767d560bacdd879", "score": "0.6344825", "text": "public void push(float numericValue) {\n\t\tNode n = new Node(numericValue);\n\t\tif(head == null){\n\t\t\thead = n;\n\t\t\ttop++;\n\t\t\treturn;\n\t\t}\n\t\tn.link = head;\n\t\thead = n;\n\t\ttop++;\n\t\treturn;\n\t}", "title": "" }, { "docid": "d220ce6339f3f8869e2190c3059ff356", "score": "0.63208795", "text": "protected void Push_Node(CDasherNode Node) {\r\n \t\t\r\n \t\tif(Node.ChildCount() == 0)\r\n \t\t\tNode.PopulateChildren();\r\n \t}", "title": "" }, { "docid": "5cf82742fe7a0ba57b3c1735c4846cc1", "score": "0.63183206", "text": "public void push(T newEntry) {\n ensureCapacity();\n topIndex++;\n stack[topIndex] = newEntry;\n }", "title": "" }, { "docid": "2d612d1c06a2e419e9aea25b71db3fa0", "score": "0.6317972", "text": "@Override\n\tpublic void push(T newEntry) {\n\t\tresize();\n\t\tstack[topIndex-1] = newEntry;\n\t\ttopIndex--;\n\t}", "title": "" }, { "docid": "0e538169f07dcffea68f30e774c788e3", "score": "0.63132817", "text": "public void push(E element){\n myStack.push(element);\n }", "title": "" }, { "docid": "a3a69ba0f8a9c0cfb51d46b765f464c4", "score": "0.63129157", "text": "private boolean push_stack(CirInstanceNode node) {\r\n\t\tif(this.visited.contains(node)) return false;\r\n\t\telse {\r\n\t\t\tthis.stack.push(new CirDFSNodeElement(node, direction));\r\n\t\t\tthis.visited.add(node); return true;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "07a9ee1b826bd6855e17777c88cc156c", "score": "0.6312797", "text": "@Override\r\n\tpublic void addFirst(E element) {\n\t\tNode n = new Node ((Object)element);\r\n\t\tn.setNext(this.Head);\r\n\t\tthis.Head = n;\r\n\t\tthis.size++;\r\n\t}", "title": "" }, { "docid": "24271b2ef2a09943f0fd9b89985bf823", "score": "0.6306084", "text": "public void addFirst(E element) {\n\t\tSNode<E> newNode = new SNode<E>(element); \n\t\tsize++;\n\n\t\tif (head == null) {\n\t\t\thead = newNode;\n\t\t\ttail = head; \n\t\t}\n\t\telse\n\t\t{\n\t\t\tnewNode.next = head; \n\t\t\thead = newNode; \n\t\t}\n\t}", "title": "" }, { "docid": "0b290682f5b97df87a8cbce307fdfbc1", "score": "0.630094", "text": "public void push(int x){\n\t\t// creating temporary node.\n\t\tNode tmp=new Node();\n\t\t\n\t\t// checking either stack is full or not.\n\t\tif(tmp==null){\n\t\t\tSystem.out.println(\"Stack is Full!\");\n\t\t}\n\t\t\n\t\ttmp.data=x;\n\t\ttmp.next=top;\n\t\ttop=tmp;\n\t}", "title": "" }, { "docid": "01e269a2c5e84d68b5a62fb56fc7ed09", "score": "0.6290768", "text": "@SuppressWarnings({ \"unchecked\", \"rawtypes\" })\n\tpublic <T> void push(T new_data) \n { \n /* 1 & 2: Allocate the Node & \n Put in the data*/\n Node new_node = new Node(new_data); \n \n /* 3. Make next of new Node as head */\n new_node.next = head; \n \n /* 4. Move the head to point to new Node */\n head = new_node; \n }", "title": "" }, { "docid": "8360cbc9f97a1c82192d26384e52a224", "score": "0.6285716", "text": "public void addFirst(Item item) { // insert the item at the front\n\n if (item == null)\n\n throw new NullPointerException();\n\n Node newFront = front;\n\n front = new Node();\n\n front.prev = null;\n\n front.item = item;\n\n if (isEmpty()) {\n\n front.next = null;\n\n end = front;\n\n } else {\n\n front.next = newFront;\n\n newFront.prev = front;\n\n }\n\n N++;\n\n }", "title": "" }, { "docid": "901acbbd38bc76507ca6032f8e11642f", "score": "0.62768936", "text": "public void push(T element)\r\n {\r\n if (size() == stack.length) \r\n expandCapacity();\r\n\r\n stack[top] = element;\r\n top++;\r\n }", "title": "" }, { "docid": "a5baae50e17215c40a844b29ed92aabf", "score": "0.6276522", "text": "public void insertAtStart(T data)\n {\n head = new Node<T>(head, data);\n }", "title": "" }, { "docid": "5a41dc7601947bbedc44dac21af50675", "score": "0.6270208", "text": "public void push(Object data)\n\t{\n\t\tif(head>=stack.length)//the stack is full\n\t\t\treturn;\n\t\tstack[head]=(T)data;\n\t\thead++;\n\t\t\n\t}", "title": "" }, { "docid": "72858f3d47cd2eb404250c71d219f2e0", "score": "0.62687016", "text": "public boolean push(T s){\n boolean pushed = false;\n if (isEmpty())\n {\n t.add(s);\n startPointer++; \n endPointer = startPointer + 1; \n pushed = true;\n\n }\n else\n {\n t.add(s);\n endPointer++; //increments the stackPointer after adding an element\n pushed = true;\n }\n return pushed;\n }", "title": "" }, { "docid": "03dfb3a027d99b38e60b8d986885c26e", "score": "0.6260029", "text": "@Override\n\tpublic void push(E obj){\n\t\t\n\tstack.push(obj);\t\n\t}", "title": "" }, { "docid": "bd6839b93c2db22550691e7d2a1b7d04", "score": "0.6257716", "text": "public Stack() {\n this.headNode = null;\n this.length = 0;\n }", "title": "" }, { "docid": "8a7c609aa486926135e78a5ea2819886", "score": "0.62439954", "text": "public void addFirst(AnyType item)\n {\n head = new Node<AnyType>(item, head);\n }", "title": "" }, { "docid": "5b62c526c400388334efe51354b4d409", "score": "0.6242059", "text": "public void push(E data){\n\tNode<E> temp= new Node(data);\n\tl.setNext(temp);\n\tp=temp;\n }", "title": "" }, { "docid": "dc9220864c877d3803a51e1b81c0dd8b", "score": "0.6232685", "text": "public void push2(T item) {\n\t\tStackNode<T> node = new StackNode<T>(item);\n\t\tif (top == null) //this is the first node being added\n\t\t\tnode.min = (int) node.data;\n\t\telse if ((int)item < top.min) { //the node added is the new minimum \n\t\t\tnode.min = (int)item; \n\t\t}\n\t\telse { //the node added is not the new minimum\n\t\t\tnode.min = top.min;\n\t\t}\n\t\tnode.next = top;\n\t\ttop = node;\n\t}", "title": "" }, { "docid": "101cb0d4e161ae5f64f7c25cb2fdf536", "score": "0.6231335", "text": "public void push(int data) {\n if (head == null) {\n this.pushHead(data);\n return;\n }\n\n Node new_node = new Node(data);\n Node temp = head;\n while (temp.next != null)\n temp = temp.next;\n\n new_node.previous = temp;\n new_node.next = null;\n temp.next = new_node;\n\n }", "title": "" }, { "docid": "1ce5fb1afa28201ca49a26d26912ca94", "score": "0.6228769", "text": "public void push(int new_data) \n\t{ \n\t\t//Allocate new node and putting data \n\t\tNode new_node = new Node(new_data); \n\n\t\t//Make next of new node as head \n\t\tnew_node.next = head; \n\n\t\t//Move the head to point to new Node \n\t\thead = new_node; \n\t}", "title": "" }, { "docid": "6195db73157d8454a69b12ff0c64c1ef", "score": "0.6216048", "text": "public MinStack() {\n list = new LinkedList<Node>();\n }", "title": "" }, { "docid": "b6a3f15950c03e715a8f2d4c7e09c2d9", "score": "0.6205517", "text": "public void push(T item) {\n\t\t\tif(size>capacity) return;\n\t\t\t\n\t\t\tStackNode<T> t = new StackNode<T>(item);\n\t\t\tsize++;\n\t\t\tif(size == 1) bottom = t;\n\t\t\tif(top != null) {\n\t\t\t\ttop.above = t;\n\t\t\t}\n\t\t\tt.next = top;\n\t\t\ttop = t;\n\t\t}", "title": "" }, { "docid": "f3cb67dbfe600459775bbf16b9016023", "score": "0.61898464", "text": "public void push(T dataPushed) {\n Node<T> newNode = new Node<T>(dataPushed, headNode);\n headNode = newNode;\n length++;\n }", "title": "" }, { "docid": "828acd2c1d2101c4d5400d4debedafa1", "score": "0.6189362", "text": "public LinkedStack( ) {\n top = null;\n }", "title": "" }, { "docid": "77a5a9c9261797473712319eb58e7327", "score": "0.6178566", "text": "public void insertFirst(E obj){\n\t\tSLLNode<E> newNode = new SLLNode<>(obj, head);\n\t\tif (isEmpty()) tail = head;\n\t\thead = newNode;\t\n\t\tsize++;\n\t}", "title": "" }, { "docid": "adb59388b92f86ac6a72251979d681d9", "score": "0.6178428", "text": "private static Node push1(Node head2, int data) \r\n\t\t{\n\t\t\tNode new_node=new Node();\r\n\t\t\tnew_node.data=data;\r\n\t\t\tnew_node.next=head2;\r\n\t\t\thead2=new_node;\r\n\t\t\treturn head2;\r\n\t\t}", "title": "" }, { "docid": "e98f27753d65a43d044aa5771d76d179", "score": "0.61665636", "text": "public void push(T element){\n stack[index++] = element;\n }", "title": "" }, { "docid": "3aaed59cc3aa7bf702c76a52cd34aacc", "score": "0.61645293", "text": "public boolean push(Object obj)\n\t{\n\t\tif(nextEmpty !=10)\n\t\t{\n\t\t\tSystem.out.println(\"SimpleStack push\");\n\t\t\tmyElements[nextEmpty] = obj;\n\t\t\tnextEmpty++;\n\t\t\treturn true;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t}", "title": "" }, { "docid": "e4a38287737c44a8c4ac5371ce63b4e4", "score": "0.6161866", "text": "public void addFirst(E obj) {\t\t\n\t\tNode<E> newNode = new Node<E>(obj);\n\t\tif(head == null) {\n\t\t\ttail = newNode;\n\t\t}\n\t\tnewNode.next = head;\n\t\thead = newNode;\n\t\tsize++;\n\t}", "title": "" }, { "docid": "a60ca9dcece70a52fb392230ddcb46a9", "score": "0.6156185", "text": "public void push(E data) {\n\t\t// case 1: no list\n\t\tif (top == null) {\n\t\t\ttop = new NodeD<E>(data, null, null);\n\t\t}\n\t\t// case 2: is a list\n\t\telse {\n\t\t\ttop = new NodeD<E>(data, top, null);\n\t\t\ttop.getNext().setPrev(top);\n\t\t}\n\t}", "title": "" }, { "docid": "219629f5def8877a350494894638dd1c", "score": "0.61411923", "text": "public void addFirst(E item) {\n head = new Node<>(item, head);\n size++;\n }", "title": "" }, { "docid": "6550d0effa87da6219c943c2428896e7", "score": "0.6138004", "text": "void push(Element element);", "title": "" }, { "docid": "231fd218e6666b03b91af40cb808bab2", "score": "0.61374366", "text": "private void AddToHead(Node node) {\n node.next = head.next;\n head.next = node;\n node.prev = head;\n node.next.prev = node;\n }", "title": "" }, { "docid": "0da0a0dcac51d663f92165cf271dc35d", "score": "0.61210066", "text": "public void push(int value){\n Node node = new Node(value);\n\n if(topNode == null){\n topNode = node;\n firstNode = node;\n }else{\n node.next = topNode;\n topNode.previous = node;\n topNode = node;\n }\n size++;\n }", "title": "" }, { "docid": "b9f706880f914e7c9c6d66fea55ae8ab", "score": "0.6119", "text": "public LinkedStack() {\n top = null;\n }", "title": "" }, { "docid": "832cce32e540a12a240676ce11144a37", "score": "0.6114902", "text": "@Override\n\tpublic void addFirst(E element)\n\t{\n\t\tif (size == 0)\n\t\t{\n\t\t\tNode node = new Node(element, null, null);\n\t\t\thead = node;\n\t\t\ttail =node;\n\t\t}\n\t\t\t\n\t\telse \n\t\t{\n\t\t\tNode node = new Node(element, head, null);\n\t\t\thead.prev = node;\n\t\t\thead = node;\n\t\t}\n\t\t\n\t\tsize++;\n\n\t}", "title": "" }, { "docid": "8c869dfac1d63081018bce76c850aa58", "score": "0.61121666", "text": "public void addFirst(T item)\r\n\t{\r\n\t\tSystem.out.println(\"------------Add First------------ >> \" + item);\r\n\t\thead = new Node<T>(item, head);\r\n\t}", "title": "" }, { "docid": "4f4ad4d6ea3172cbbef89fe6f0641f39", "score": "0.6109099", "text": "static public void push(int new_data) {\n\t\t/*\n\t\t * 1 & 2: Allocate the Node & Put in the data\n\t\t */\n\t\tNode new_node = new Node(new_data);\n\n\t\t/* 3. Make next of new Node as head */\n\t\tnew_node.next = head;\n\n\t\t/* 4. Move the head to point to new Node */\n\t\thead = new_node;\n\t}", "title": "" }, { "docid": "29b215112ffd9cfc00e71bb3bf6ba1ce", "score": "0.61001337", "text": "public void addFirst(Node<T> node){\n Node<T> temp = head;\r\n // point head to new node\r\n head = node;\r\n //insert the rest of the list behind the head\r\n head.next = temp;\r\n count++;\r\n //if the list has only 1 element then Head and Tail should\r\n //both point to the new node\r\n if(count == 1)\r\n {\r\n tail = head;\r\n }\r\n }", "title": "" }, { "docid": "1e84cf576cc88670f0213ec026eee1c2", "score": "0.6094899", "text": "public void addAtHead(T data){\n\t\t\n\t\tNode<T> newNode = new Node<T>(data,null);\n\t\t\n\t\tif(head == null)\n\t\t{\n\t\t\thead = newNode;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tnewNode.setNext(head);\n\t\t\thead = newNode;\n\t\t}\n\t}", "title": "" }, { "docid": "6ed8957b453ff76b5448e7fb8524001b", "score": "0.60915506", "text": "public void insertFirst(K elem) {\r\n\t\tListNode newHead = new ListNode();\r\n\t\tnewHead.setData(elem);\r\n\t\tnewHead.setNext(head);\r\n\t\thead = newHead;\r\n\t\tzlr++;\r\n\t}", "title": "" }, { "docid": "a4a176611aad625e1b222cbc94276ffd", "score": "0.60819346", "text": "private void pushLeftmostNodeRecord(BinaryNode<T> node) {\n if (node != null) {\n visited.push(node); // push this node\n checkChild.push(false); // record that it is on the left\n pushLeftmostNodeRecord(node.left); // continue looping\n }\n }", "title": "" }, { "docid": "a851b570dd363f9c3b53bbaf875f0aa4", "score": "0.608176", "text": "public void push(int new_data)\n {\n /* 1 & 2: Allocate the Node &\n Put in the data*/\n Node new_node = new Node(new_data);\n\n /* 3. Make next of new Node as head */\n new_node.next = head;\n\n /* 4. Move the head to point to new Node */\n head = new_node;\n }", "title": "" }, { "docid": "a851b570dd363f9c3b53bbaf875f0aa4", "score": "0.608176", "text": "public void push(int new_data)\n {\n /* 1 & 2: Allocate the Node &\n Put in the data*/\n Node new_node = new Node(new_data);\n\n /* 3. Make next of new Node as head */\n new_node.next = head;\n\n /* 4. Move the head to point to new Node */\n head = new_node;\n }", "title": "" }, { "docid": "5662f4ab3ddeb8ef395a173d1530e380", "score": "0.60786265", "text": "private static Node addBefore (Node head, int data) {\n Node node = new Node(data);\n if (head != null) {\n node.next = head;\n }\n return node;\n }", "title": "" }, { "docid": "ae115eaba6b43739d9076c9b25071537", "score": "0.6078322", "text": "public StackLinkedList(){\n top=null;\n size=0;\n }", "title": "" }, { "docid": "e90976addcd8b7b297040a13f1ab8f0d", "score": "0.6075111", "text": "public void push(Object obj){\n //check if obj is not null\n if (obj != null){ \n //check if top is 1000\n if (top == 1000){\n //print Stack is full\n System.out.println(\"Stack is full\");\n }\n else{\n //the top of theStack is set to obj\n this.theStackArray[top] = obj;\n //increment top\n top++;\n }\n }\n else{\n //print error message and exit the program\n System.err.println(\"Error! Invalid parameter\"); \n System.exit(-1);\n }\n }", "title": "" }, { "docid": "d32015e858d390213d216c31a886f32c", "score": "0.607469", "text": "public void addToFront(Object obj)\r\n\t{\r\n\t\tfront = new ObjectNode(obj,front);\r\n\t}", "title": "" }, { "docid": "fcb3e40b8e265b15b105d0776edfb345", "score": "0.60740185", "text": "public void push(int val) {\n Node newNode = new Node(val);\n\n // if stack is empty (size == 0)\n if (head == null) {\n head = newNode;\n // if stack has only one element, head and tail should point the same node\n tail = head;\n size++;\n return;\n }\n\n // new node will be the last element-tail of stack\n tail.next = newNode;\n tail = newNode;\n size++;\n }", "title": "" }, { "docid": "5b6c7652a01a712596099812e2e2b76b", "score": "0.6072201", "text": "void add(T value){\n\tstackNewest.push(value);\n\t}", "title": "" }, { "docid": "f6ba364e4aa567760b1ab8b689a0b15b", "score": "0.6071516", "text": "public void push(Item item){\n stack.push(item);\n }", "title": "" }, { "docid": "38b3ea5afd42bc778bc2890b9c99e455", "score": "0.60711664", "text": "public void addFirst(Object data) {\n\t\tNode nn = new Node(data, this.head, this.head.next);\n\t\tthis.head.next.prev = nn;\n\t\tthis.head.next = nn;\n\t\tthis.size ++;\n\t}", "title": "" }, { "docid": "6ba346915ebe1043ab297796f76769bc", "score": "0.6068982", "text": "public void setHead(Node head){\r\n\t\tthis.head = head;\r\n\t}", "title": "" }, { "docid": "fb1f9cfa660f19a110341b3c318a5ef2", "score": "0.60678875", "text": "public void push(T data){\n StackNode<T> stackNode = new StackNode<>();\n stackNode.setData(data);\n stackNode.setNext(root);\n\n this.root = stackNode;\n }", "title": "" }, { "docid": "5894b34729302c5b39b89c25c83dfbbf", "score": "0.605074", "text": "public void addAtHead(T val) {\n Node<T> newNode= new Node(val);\n if(this.head == null){\n this.head = newNode;\n } else {\n newNode.next = this.head;\n head = newNode;\n }\n }", "title": "" }, { "docid": "5124f9b2a52fdb1daa171f860d605cbb", "score": "0.6049717", "text": "@Override\n\tpublic void addFirst(E element) {\n\n\t\t// If the list is empty create a new node object and set it as both the\n\t\t// head and tail object.\n\t\tif (size == 0) {\n\t\t\t// Create the new head node\n\t\t\thead = new Node(element, null, head);\n\n\t\t\t// Set tail to the head\n\t\t\ttail = head;\n\n\t\t\t// Increment the size\n\t\t\tsize++;\n\t\t}\n\t\t// If the list has more than one object create a new node object and set\n\t\t// it to head.\n\t\telse {\n\t\t\t// Create the new node\n\t\t\tNode newNode = new Node(element, null, head);\n\n\t\t\t// Set the old head to point its previous to the new head object\n\t\t\thead.previous = newNode;\n\n\t\t\t// Set the head to the new node\n\t\t\thead = newNode;\n\n\t\t\t// Increment the size\n\t\t\tsize++;\n\t\t}\n\n\t}", "title": "" }, { "docid": "a54f879bc8e1f03ac80ef5483db3b5c1", "score": "0.60455996", "text": "public void addFirst(T elem){ // add an element to the beginning of the list O(1)\r\n\r\n if(isEmpty()){ // if list is empty:\r\n head = tail = new Node<T> ( elem, null, null); // head & tail = new node with both pointers set to null\r\n } else{ // if list is not empty:\r\n head.prev = new Node<T> (elem, null, head); // head's previous pointer = newly created node\r\n head = head.prev; // move pointer back to beginning of list\r\n }\r\n size++; // increment size of linked list\r\n }", "title": "" }, { "docid": "de8acc3bfbc336cf7374ad80e7b00592", "score": "0.604347", "text": "void push(int x) {\n\t\tLinkedNode newNode = new LinkedNode(x);\n \tnewNode.next = front;\n \tfront = newNode;\n \tcount++;\n\t}", "title": "" } ]
cfd5cd90526bb91c9bf9c8b7f9606661
Use this factory method to create a new instance of this fragment using the provided parameters.
[ { "docid": "a7297c0ebfecfb1c74c85289196c4a45", "score": "0.0", "text": "public static SearchConceptsFragment newInstance() {\n SearchConceptsFragment fragment = new SearchConceptsFragment();\n return fragment;\n }", "title": "" } ]
[ { "docid": "a2af29062fb94542c4294b2bb254b8cb", "score": "0.70400536", "text": "public static Faqfragment newInstance() {\n Faqfragment fragment = new Faqfragment();\n Bundle args = new Bundle();\n\n\n return fragment;\n }", "title": "" }, { "docid": "b2eb26f89a2f4a7564b1307b0d2765fc", "score": "0.70380276", "text": "public RestoFragment() {\n }", "title": "" }, { "docid": "c306b4b504b4e8a0d12daf3687744b2f", "score": "0.7017672", "text": "public static UsefulInfoFragment newInstance() {\n UsefulInfoFragment fragment = new UsefulInfoFragment();\n Bundle args = new Bundle();\n// args.putString(ARG_PARAM1, param1);\n fragment.setArguments(args);\n return fragment;\n }", "title": "" }, { "docid": "daf81e1896d0dc48b04cce1a7a171090", "score": "0.69703346", "text": "public static ExploreFragment newInstance() {\n ExploreFragment fragment = new ExploreFragment();\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 }", "title": "" }, { "docid": "47d0519a0079766cdccb64c547c1b5b1", "score": "0.69235283", "text": "public TyomaaFragment() {\n\n }", "title": "" }, { "docid": "806fabfa8259b0043ad810d6e4ca5f58", "score": "0.6893503", "text": "static SearchFragment newInstance() {\n Log.d(TAG, \"[newInstance] + Begin\");\n SearchFragment fragment = new SearchFragment();\n\n // Supply num input as an argument.\n // Bundle args = new Bundle();\n // args.putInt(\"num\", num);\n // f.setArguments(args);\n return fragment;\n }", "title": "" }, { "docid": "f0ef35a1e8cbd0700680a2aa71b2f905", "score": "0.6827733", "text": "public static Fragment newInstance() {\n\t\tFragment frag = new HomeSearchResultFragment();\n\n\t\treturn frag;\n\t}", "title": "" }, { "docid": "3d3dcda03fa62bd1c3530c0f50c7c18a", "score": "0.6801501", "text": "@Override\n protected Fragment createFragment() {\n return new ForecasterToolsFragment();\n }", "title": "" }, { "docid": "b1b316bf7ddfdfae2df7274d390bbf33", "score": "0.67928874", "text": "@Override\n protected Fragment createFragment() {\n Email email = (Email) getIntent().getSerializableExtra(EXTRA_EMAIL);\n\n // create fragment\n Fragment fragment = MyDetailFragment.newInstance(email);\n return fragment;\n }", "title": "" }, { "docid": "a80c3a35a17eb96915518cb64a0b58bf", "score": "0.67909604", "text": "static ListingsFragment newInstance() {\n// Bundle args = new Bundle();\n// args.putString(ARG_PARAM1, param1);\n// args.putString(ARG_PARAM2, param2);\n// fragment.setArguments(args);\n return new ListingsFragment();\n }", "title": "" }, { "docid": "bad49bed5531dee3d0b166835ea0a2b3", "score": "0.67819923", "text": "public FavouriteFragment() {\n }", "title": "" }, { "docid": "cd5d8978ca19dd21b0668672edfc4cb3", "score": "0.677843", "text": "public static PdfPagingFragment newInstance() {\r\n PdfPagingFragment fragment = new PdfPagingFragment();\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 }", "title": "" }, { "docid": "e13a041e08d3ac6cb97c03eb2a220f76", "score": "0.67630714", "text": "public static CreateFragment newInstance(){\n CreateFragment frag = new CreateFragment();\n return frag;\n }", "title": "" }, { "docid": "902138fbd25b2afd94eec99cdf47c694", "score": "0.6743683", "text": "public EventoFragment() {\n }", "title": "" }, { "docid": "902138fbd25b2afd94eec99cdf47c694", "score": "0.6743683", "text": "public EventoFragment() {\n }", "title": "" }, { "docid": "74a53a9ae7fe0c46c7393a0fdfd8ad17", "score": "0.67419034", "text": "public static PesananFragment newInstance() {\n PesananFragment fragment = new PesananFragment();\n Bundle args = new Bundle();\n args.putInt(ARG_SECTION_NUMBER, 2);\n fragment.setArguments(args);\n return fragment;\n }", "title": "" }, { "docid": "7d9f7c0bd388242152e94dd3fa75e488", "score": "0.67229205", "text": "public static HomeFragment newInstance() {\n HomeFragment fragment = new HomeFragment();\n Bundle args = new Bundle();\n //args.putInt(ARG_SECTION_NUMBER, sectionNumber);\n fragment.setArguments(args);\n return fragment;\n }", "title": "" }, { "docid": "55fa34a297af40fa1372b8e6cf429f94", "score": "0.6716566", "text": "public BlankFragment() {\n // Required empty public constructor\n }", "title": "" }, { "docid": "434297bae665a1ff17cb845b2c8c469d", "score": "0.67062426", "text": "public ChatFragment() {}", "title": "" }, { "docid": "3f0b3980cc7a0c81a182d433a5a3687d", "score": "0.6694574", "text": "public ChatFragment() {\n }", "title": "" }, { "docid": "1f3492dd82b784e92e7f2599bf90c3f5", "score": "0.669257", "text": "public NearbyFragment() {\n }", "title": "" }, { "docid": "1a13381399209e1cd3a1edda377f17a8", "score": "0.66833997", "text": "@Override\n\tprotected Fragment createFragment() {\n\t\treturn new ForeGroundFragment();\n\t}", "title": "" }, { "docid": "88447f64aeb7d7b586fa13b1fe1d9e5c", "score": "0.66819376", "text": "@Override\n protected Fragment createFragment() {\n if (getIntent().getStringExtra(EXTRA_SUBREDDIT) != null) {\n return PostListFragment.newInstance(getIntent().getStringExtra(EXTRA_SUBREDDIT));\n } else {\n return PostListFragment.newInstance();\n }\n }", "title": "" }, { "docid": "b85bb2a6edd98474871e2b3e3e5c739a", "score": "0.6673524", "text": "public static BerandaFragment newInstance() {\n BerandaFragment fragment = new BerandaFragment();\n Bundle args = new Bundle();\n return fragment;\n }", "title": "" }, { "docid": "3c7478791c9840cde665c1aa890d2772", "score": "0.66358674", "text": "public MainContentFragment() {\n }", "title": "" }, { "docid": "62fd63df15f8328a00a132546c67eb94", "score": "0.6635804", "text": "public ManageFragment() {\n }", "title": "" }, { "docid": "794acfc04e184ee4afa73f16cce9f5fe", "score": "0.6632863", "text": "public static Fragment newInstance() {\n Fragment fragment = new HelpOthersFragment();\n return fragment;\n }", "title": "" }, { "docid": "75fcd9dd56e83c1a22490e82bf8747aa", "score": "0.6610293", "text": "public KolaFragment() {\n }", "title": "" }, { "docid": "528bf893c44faa7c5b49b103c2eb6297", "score": "0.6596178", "text": "public static RedBlueGoalFragment newInstance() {\n RedBlueGoalFragment fragment = new RedBlueGoalFragment();\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 }", "title": "" }, { "docid": "af147967442ab50ffaee50d42d5eb57e", "score": "0.65955657", "text": "public ExploreFragment() {\n // Required empty public constructor\n }", "title": "" }, { "docid": "50e9b8230909a922dbc531df9f479db3", "score": "0.65896213", "text": "public static MessageFragment newInstance() {\n MessageFragment fragment = new MessageFragment();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }", "title": "" }, { "docid": "ff6c964c99e172a12b905f9997f27d49", "score": "0.6569166", "text": "public NationalFragment() {\n }", "title": "" }, { "docid": "e58a2854d4941778cb54322263f42303", "score": "0.6568229", "text": "public static ContentFragment newInstance() {\n ContentFragment fragment = new ContentFragment();\n return fragment;\n }", "title": "" }, { "docid": "162937ad273495e97c8880f72caa3602", "score": "0.6567144", "text": "public static PostureFragment newInstance() {\n PostureFragment fragment = new PostureFragment();\n return fragment;\n }", "title": "" }, { "docid": "66f9e649c606d3fc9f8a7d4a31b58b60", "score": "0.6566831", "text": "public MessageFragment() {\n }", "title": "" }, { "docid": "27107c9321b942ce2a17a732516aa41b", "score": "0.6562181", "text": "public static FeedFragment newInstance(FeedModel param1) {\n FeedFragment fragment = new FeedFragment();\n Bundle args = new Bundle();\n args.putSerializable(ARG_PARAM1, param1);\n fragment.setArguments(args);\n return fragment;\n }", "title": "" }, { "docid": "217423113adb3afe7ec14b29a186f963", "score": "0.6559468", "text": "public ManagerFragment() {\n }", "title": "" }, { "docid": "a8b8c9f5765864d422e90b8d14988eef", "score": "0.65486044", "text": "public static FragmentHasilDes newInstance(String param1, String param2) {\n FragmentHasilDes fragment = new FragmentHasilDes();\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 }", "title": "" }, { "docid": "5aef56f5d24d2056ee026357d2ec85d7", "score": "0.65478814", "text": "public BookSelectionFragment() {\n }", "title": "" }, { "docid": "3ff26ca9f19414e7562a31541e33a1bd", "score": "0.65461195", "text": "public NewsListFragment() {\n\t}", "title": "" }, { "docid": "f07bcf8f83015006f854fbc674606614", "score": "0.654315", "text": "public ArticleFragment() {\n super();\n }", "title": "" }, { "docid": "759b83712303e560f29830a020240b2f", "score": "0.6543029", "text": "public BookDetailFragment() {\n }", "title": "" }, { "docid": "d18858b997dcd39f059cdd44de56dcca", "score": "0.6540628", "text": "abstract Fragment newFragment(String formatString);", "title": "" }, { "docid": "6d8ace8bce1a14625e47fd2e97b96c7f", "score": "0.65299386", "text": "public static BookmarkEditorFragment newInstance() {\n return newInstance(new Bookmark());\n }", "title": "" }, { "docid": "eced52a16e5094126ca26849c4604e50", "score": "0.65223575", "text": "public static FragmentAccount newInstance() {\n FragmentAccount fragment = new FragmentAccount();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }", "title": "" }, { "docid": "59f8cbd1a7ccc2c7c7189fe97b041408", "score": "0.6520496", "text": "public DraftsFragment() {\n }", "title": "" }, { "docid": "ac4665e52e92e890d4bbf0c992956c6c", "score": "0.65150976", "text": "public InitialFragment() {\n }", "title": "" }, { "docid": "ebddadffca6f4afeff78a7887a99ea16", "score": "0.6513105", "text": "public static Facebook4Fragment newInstance(String param1, String param2) {\n Facebook4Fragment fragment = new Facebook4Fragment();\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 }", "title": "" }, { "docid": "7fd5a09e5c7654e9c07983d0a230d5fe", "score": "0.650597", "text": "@SuppressWarnings(\"unused\")\n public static ChatFragment newInstance() {\n ChatFragment fragment = new ChatFragment();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }", "title": "" }, { "docid": "c7fe55b9100ef4d0d65d2e9185889117", "score": "0.64964473", "text": "public static BookmarkFragment newInstance(String param1, String param2) {\n BookmarkFragment fragment = new BookmarkFragment();\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 }", "title": "" }, { "docid": "1a8c46f9836bf1961818d1cf4fe34777", "score": "0.6492155", "text": "public MainFragment() {\n // Required empty public constructor\n }", "title": "" }, { "docid": "13235084b218b823b6697604b8dae1db", "score": "0.6491643", "text": "@Override\r\n\tprotected Fragment createFragment() {\n\t\treturn new PCalcHelpFragment();\r\n\t}", "title": "" }, { "docid": "e1e7cab80d620c129d863ff948424522", "score": "0.6488363", "text": "public ProfileFragment() {\n }", "title": "" }, { "docid": "e1e7cab80d620c129d863ff948424522", "score": "0.6488363", "text": "public ProfileFragment() {\n }", "title": "" }, { "docid": "2d173dc1ec5ccf7a7857c03afff7ea2e", "score": "0.6486485", "text": "public BookDetailFragment()\n {\n }", "title": "" }, { "docid": "805b7466841e58086c92e5739c5294bb", "score": "0.6485311", "text": "public static QuestionFragment newInstance(String param1, String param2) {\n QuestionFragment fragment = new QuestionFragment();\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 }", "title": "" }, { "docid": "4f9ef1e2f1b04d79d85ccc5c11e32d37", "score": "0.6482359", "text": "public static WeatherFragment newInstance(String param1) {\n WeatherFragment fragment = new WeatherFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n fragment.setArguments(args);\n return fragment;\n }", "title": "" }, { "docid": "4682342814742e99887edc24b60d4bf4", "score": "0.6481893", "text": "public static FavFragment newInstance(String param1, String param2) {\n FavFragment fragment = new FavFragment();\n Bundle args = new Bundle();\n\n args.putString(ARG_PARAM1, param1);\n args.putString(ARG_PARAM2, param2);\n fragment.setArguments(args);\n currentFragment = fragment;\n return fragment;\n }", "title": "" }, { "docid": "44032ddf2070d7f760b5ea67e663c2d7", "score": "0.64784926", "text": "public ItemFragment() {\n }", "title": "" }, { "docid": "ae168d6cbe28c207d44374f09626c524", "score": "0.64754456", "text": "public SearchFragment() {\n }", "title": "" }, { "docid": "d6ee974b761fdef42e75cea0791850f7", "score": "0.6452945", "text": "public static BaseFragment createInstance() {\n final BaseFragment fragment = new AboutFragment();\n final Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }", "title": "" }, { "docid": "a4bb06529d9a490d3e1871b51a89ae3d", "score": "0.6451249", "text": "public AppFragment() {\n }", "title": "" }, { "docid": "daf67b5d734108306308887af948b6d6", "score": "0.6450396", "text": "public CopyOfSongCustomFragment() {}", "title": "" }, { "docid": "1dbceab66234e2cad1040fe11940a160", "score": "0.64466864", "text": "public RecordBookmarkFragment() {\r\n }", "title": "" }, { "docid": "76b37d0d84b3b911f33aa3dc1dbbdd93", "score": "0.64448315", "text": "public DetailFragment() {\n // Required empty public constructor\n }", "title": "" }, { "docid": "446eaf461e8ed460db6a168ae0303c63", "score": "0.64446723", "text": "public DetailPagingFragment() {\n }", "title": "" }, { "docid": "94ee1686f11ca89ff84867c6d97db0d2", "score": "0.644371", "text": "public static MyRssFeedsFragment newInstance() {\n MyRssFeedsFragment fragment = new MyRssFeedsFragment();\n return fragment;\n }", "title": "" }, { "docid": "6349d3edba3a1a520644d0a2dc35fb77", "score": "0.64430225", "text": "public ArticleDetailFragment() {\n }", "title": "" }, { "docid": "6349d3edba3a1a520644d0a2dc35fb77", "score": "0.64430225", "text": "public ArticleDetailFragment() {\n }", "title": "" }, { "docid": "6349d3edba3a1a520644d0a2dc35fb77", "score": "0.64430225", "text": "public ArticleDetailFragment() {\n }", "title": "" }, { "docid": "6d8090797cc57d97f66ecd535380a9b1", "score": "0.6442091", "text": "public static Fragment_Spice_Third newInstance(String param1, String param2) {\n Fragment_Spice_Third fragment = new Fragment_Spice_Third();\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 }", "title": "" }, { "docid": "55dc06c396b7a816e298a2d9c9b62300", "score": "0.64415574", "text": "public ItemDetailsFragment(){}", "title": "" }, { "docid": "2dd7d3766c2932babc3806d135bf1dbd", "score": "0.6437705", "text": "public static FemmeFragment newInstance(String param1, String param2) {\r\n FemmeFragment fragment = new FemmeFragment();\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 }", "title": "" }, { "docid": "579493bdbb17c62d9e7cf33fb036a4af", "score": "0.6436585", "text": "public BaseFragment()\n {\n }", "title": "" }, { "docid": "7ce15b05cd76763d1a72fa7da4c2c000", "score": "0.6436338", "text": "public static BahasaFragment newInstance(String param1, String param2) {\n BahasaFragment fragment = new BahasaFragment();\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 }", "title": "" }, { "docid": "49b3eeb481d731223dceba7c254fbd35", "score": "0.6434217", "text": "public GrupoFragment() {\r\n // Required empty public constructor\r\n }", "title": "" }, { "docid": "ae8c35c00246a779e6f78c03296c58f3", "score": "0.6434045", "text": "public RecentsFragment() { }", "title": "" }, { "docid": "f1860c071ee9593d07c1c5c2a6dcf2d2", "score": "0.64312863", "text": "public FragmentRecent() {\n }", "title": "" }, { "docid": "fbb08a0e3459ad9e20e90deb47966458", "score": "0.6427475", "text": "public static view_task_fragment newInstance(String param1, String param2) {\n view_task_fragment fragment = new view_task_fragment();\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 }", "title": "" }, { "docid": "8408ae2b4276d9b4adc60b4c7c6c5042", "score": "0.642672", "text": "public PlayFragment() {\n }", "title": "" }, { "docid": "d5fea8521e5822b742f30cfa5b3a66bc", "score": "0.6423266", "text": "public static FavFragment newInstance(String param1, String param2) {\n FavFragment fragment = new FavFragment();\n Bundle args = new Bundle();\n\n fragment.setArguments(args);\n return fragment;\n }", "title": "" }, { "docid": "bb89137414f3d48f8997d69d64b48af2", "score": "0.64231724", "text": "@SuppressLint(\"ValidFragment\")\n public ProfileFragment() {\n }", "title": "" }, { "docid": "5cf886ea8571ed57d771c16f389cb477", "score": "0.6408049", "text": "public EventManagerFragment() {\n }", "title": "" }, { "docid": "7746c09d04a79a832bbce6333d1eeadf", "score": "0.6407652", "text": "public static EventsFragment newInstance() {\n EventsFragment fragment = new EventsFragment();\n\n return fragment;\n }", "title": "" }, { "docid": "3a1c24684337850c4bd09b3d3b541682", "score": "0.6406772", "text": "public static MineFragment newInstance(String param1, String param2) {\n MineFragment fragment = new MineFragment();\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 }", "title": "" }, { "docid": "3a1c24684337850c4bd09b3d3b541682", "score": "0.6406772", "text": "public static MineFragment newInstance(String param1, String param2) {\n MineFragment fragment = new MineFragment();\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 }", "title": "" }, { "docid": "3a1c24684337850c4bd09b3d3b541682", "score": "0.6406772", "text": "public static MineFragment newInstance(String param1, String param2) {\n MineFragment fragment = new MineFragment();\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 }", "title": "" }, { "docid": "afb00679043927acc7d1ab54c856b0e4", "score": "0.6401363", "text": "public static EmailFragment newInstance() {\n EmailFragment fragment = new EmailFragment();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }", "title": "" }, { "docid": "a46078760932b90d3bed041970948b02", "score": "0.63974696", "text": "public static MainFragment newInstance() {\n MainFragment f = new MainFragment();\n return f;\n }", "title": "" }, { "docid": "e35c12fbb0e50c7179bb8102da555272", "score": "0.63938093", "text": "public static NewTripFragment newInstance() {\n NewTripFragment fragment = new NewTripFragment();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }", "title": "" }, { "docid": "d9ecc88fb2848b751386a61a3b993c1e", "score": "0.6391079", "text": "public HabitHistoryFragment() {}", "title": "" }, { "docid": "aadf161d9a39fb0523a2bbba898626b3", "score": "0.63891554", "text": "@Override\n\tprotected Fragment createFragment() {\n\t\treturn new CrimeListFragment();\n\t}", "title": "" }, { "docid": "6b3a8936dca315ffdc8f846867de5b0a", "score": "0.6387518", "text": "public static DetallesFrag newInstance(int param1) {\n DetallesFrag fragment = new DetallesFrag();\n Bundle args = new Bundle();\n args.putInt(ARG_PARAM1, param1);\n fragment.setArguments(args);\n return fragment;\n }", "title": "" }, { "docid": "9ec4c37824e1f478f24da3f5fe26393c", "score": "0.6387233", "text": "public static SettingFragment newInstance() {\n SettingFragment fragment = new SettingFragment();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }", "title": "" }, { "docid": "63f6556013fe6ee716327fd2f9f8ccc0", "score": "0.6386835", "text": "public ArtistFragment() {\n }", "title": "" }, { "docid": "96c9c3f2c2168c726f70ec8a3ae00649", "score": "0.63845664", "text": "public SectionDetailFragment() {\n }", "title": "" }, { "docid": "ab706b2e1309c9dc2b37d4959d699bcb", "score": "0.6384512", "text": "public static MyprofileBookmarkFragment newInstance(String param1, String param2) {\n MyprofileBookmarkFragment fragment = new MyprofileBookmarkFragment();\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 }", "title": "" }, { "docid": "be6ff4fc618a4d65b3cdc110acf34cf9", "score": "0.63836586", "text": "public static InterFragment newInstance(String param1, String param2) {\n InterFragment fragment = new InterFragment();\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 }", "title": "" }, { "docid": "409013612a26c3a60ee8c7c8658cbb37", "score": "0.6380406", "text": "public FixturesFragment() {\n }", "title": "" }, { "docid": "7f57f0ed7fbb7bb29a37be80b6881bb6", "score": "0.63775283", "text": "public static KnowFragment newInstance(String param1) {\n KnowFragment fragment = new KnowFragment();\n Bundle args = new Bundle();\n args.putString(ARG_SHOW_TEXT, param1);\n fragment.setArguments(args);\n return fragment;\n }", "title": "" }, { "docid": "2d1a8ea0d162f6e59d68f4b346959f0a", "score": "0.6376946", "text": "public static ChartFragment newInstance(String param1) {\n ChartFragment fragment = new ChartFragment();\n Bundle args = new Bundle();\n args.putString(ARG_PARAM1, param1);\n fragment.setArguments(args);\n return fragment;\n }", "title": "" } ]
65d6982af866826a1419afd1e9c9a8be
Test of insert method, of class VenteMod.
[ { "docid": "0d9d19462d8f1a9a84fe1c2c7c7ed233", "score": "0.79827696", "text": "@Test\n public void testInsert() {\n System.out.println(\"insert\");\n Vente table = null;\n VenteMod instance = new VenteMod();\n boolean expResult = false;\n boolean result = instance.insert(table);\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "title": "" } ]
[ { "docid": "7a115f7f32020986bcaaabf1d8f34476", "score": "0.736459", "text": "public void insert(){\n\t\t\n\t}", "title": "" }, { "docid": "ce73b4f3d92944f6b32b5ba54f845f1a", "score": "0.7352017", "text": "@Override\r\n\tpublic void insertar() {\n\t\t\r\n\t}", "title": "" }, { "docid": "b2b5f1be3d331e2529bb88fc1f3c628b", "score": "0.7314236", "text": "@Test\n public void testInsert() {\n System.out.println(\"insert\");\n Student student = null;\n int position = 0;\n Course instance = new Course();\n instance.insert(student, position);\n }", "title": "" }, { "docid": "ad6654b1e6b6d3919921c5a18381609c", "score": "0.7308397", "text": "@Test\r\n\tpublic void testInsert() {\n\t}", "title": "" }, { "docid": "06757dadaa4b5860bb961b1beec1ed01", "score": "0.72676283", "text": "@Test\n\tpublic void testInserir() {\n\t\tArvoreDeBusca arvore = new ArvoreRedBlack();\n\t\tRandom random = new Random();\n\t\t\n\t\tfor (int i = 0; i < 10; i++) {\n\t\t\tarvore.inserir(random.nextInt(100));\n\t\t}\n\t\t\n\t\tarvore.infoPreOrder();\n\t}", "title": "" }, { "docid": "d77e17fb66f74719beb26af65402f0ba", "score": "0.7242958", "text": "@Override\n\tpublic void insertar() {\n\t}", "title": "" }, { "docid": "b1834d8e94ee821577e6e3ebc9c04fb1", "score": "0.72208786", "text": "@Test\n public void testInsert() {\n fixture.setRoot(0);\n assertNotNull(fixture.insert(1, fixture.root()));\n assertEquals(new Integer(1), fixture.left(fixture.root()).getElement());\n }", "title": "" }, { "docid": "16bfc5dc48ffec064522239933cd0740", "score": "0.71982825", "text": "@Test\n public void testInsert() {\n System.out.println(\"insert\");\n String nombres = \"\";\n String apellidos = \"\";\n String codigo = \"\";\n String color = \"\";\n String descripcion = \"\";\n listarDAO instance = new listarDAO();\n instance.insert( nombres,apellidos,codigo,color,descripcion);\n // TODO review the generated test code and remove the default call to fail.\n //fail(\"The test case is a prototype.\");\n }", "title": "" }, { "docid": "53c7dde697b3c1ff67d5314681885712", "score": "0.7151445", "text": "public void testExecutionInsert(){\n\t\t\n\t\tSystem.out.println(\" ====================== \");\n\t\tSystem.out.println(\" testExecutionInsert \");\n \t\tSystem.out.println(\" ====================== \");\n\t\t\n// \t\tPrologLocalDB database = new PrologLocalDB(\"dbTest\",th);\n//\t\t\n//\t\tclass InsertRequest implements IRequest{\n//\t\t\tpublic String toString(){\n//\t\t\t\treturn \"assert(pippo(3,4)).\";\n//\t\t\t}\n//\t\t}\n//\t\t\n//\t\tArrayList<SolveInfo> ret = database.executeRequest( new InsertRequest() );\n\t\n\t\t//NB: se stampo th non ottengo nulla in quanto è solo la config iniziale\n\t\t//System.out.println(database);\n\t\t\n//\t\tassertSame(1,ret.size());\n \t\tfail();\n\t}", "title": "" }, { "docid": "cd4964d5aa10ba54c7ae84cd632d2bae", "score": "0.71453506", "text": "@Override\n\tpublic void insert() {\n\n\t}", "title": "" }, { "docid": "68cd08567dc817d9c8b538221b9e104a", "score": "0.71412075", "text": "@Override\n\tpublic void insert() {\n\t\t\n\t}", "title": "" }, { "docid": "68cd08567dc817d9c8b538221b9e104a", "score": "0.71412075", "text": "@Override\n\tpublic void insert() {\n\t\t\n\t}", "title": "" }, { "docid": "daef948fe1d3eac0ba2ac48e42310294", "score": "0.7128885", "text": "private static void inserir() {\n\r\n\t}", "title": "" }, { "docid": "48dc57d99dfc231ed840a6c3d81987c4", "score": "0.7070051", "text": "public void test_insert_Basic_Tx() {\r\n doTest_create(_help);\r\n doTest_insert(_help);\r\n }", "title": "" }, { "docid": "dfe3eab6bc9d560a158705283ce1efe6", "score": "0.7041588", "text": "int insert(ClazzTest record);", "title": "" }, { "docid": "7598001208262939fb2776ec74ae6b7d", "score": "0.7034223", "text": "public void testInsert(){\n\t\tcontrol.setColumn(\"testColumn\");\n\t\tassertTrue(control.insert(db));\n\t\tassertEquals(db.query,\"insert into testTable (testColumn) values(testInsertValues)\");\n\t}", "title": "" }, { "docid": "66b149b4c4a0ffaa976b5a0123bfadc5", "score": "0.6997217", "text": "public void testBaseInsert() {\n\t\t\n\t\tSystem.out.println(\" ====================== \");\n\t\tSystem.out.println(\" testBaseInsert \");\n \t\tSystem.out.println(\" ====================== \");\n\t\t\n\t\ttry {\n\t\t\t\n\t\t\tint rs = stmt.executeUpdate(\" insert into employee (id,salary,name) values (100,1000,'babo');\");\n\t\t\t\n\t\t\tassertEquals(1, rs);\n\t\t\t\n\t\t\tstmt.executeQuery(\" select * from employee;\");\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\tfail(\" ExecuteQuery ha ritornato: \" + e);\n\t\t}\n\t\t\n\t\tassertTrue(true);\n\t\t\n\t}", "title": "" }, { "docid": "5f532daa2887e867c60b37234729563b", "score": "0.69786364", "text": "@Test\n void insertSuccess() {\n Concept newConcept = new Concept();\n int concept_id = dao.insert(newConcept);\n assertNotEquals(0, concept_id);\n Concept insertedConcept = dao.getById(concept_id);\n assertEquals(\"somethng expecteds\", insertedConcept.getName());\n }", "title": "" }, { "docid": "2480ef9c1f34c24ca33a22bc8bbbd0c8", "score": "0.6940469", "text": "public abstract boolean insert(T t);", "title": "" }, { "docid": "92b5f426119f1a5629e7e53976e4361e", "score": "0.69081587", "text": "private void insertion()\n\t\t{\n\t\t}", "title": "" }, { "docid": "55580ee59b93f2f48852d8610b0f8a11", "score": "0.6825009", "text": "public void testShortInsert() {\n\t\t\n\t\tSystem.out.println(\" ====================== \");\n\t\tSystem.out.println(\" testShortInsert \");\n \t\tSystem.out.println(\" ====================== \");\n\t\t\n\t\ttry {\n\t\t\t\n\t\t\tint rs = stmt.executeUpdate(\" insert into employee values (100,'babo',1000);\");\n\t\t\t\n\t\t\tassertEquals(1, rs);\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\tfail(\" ExecuteQuery ha ritornato: \" + e);\n\t\t}\n\t\t\n\t\tassertTrue(true);\n\t\t\n\t}", "title": "" }, { "docid": "01e09d4c8859ff87317d1969673550c6", "score": "0.6820272", "text": "int insert(SubstituteDriverModel record);", "title": "" }, { "docid": "bca35657e61f4244b230680039d24298", "score": "0.6819077", "text": "@Test\n public void testInsertar_MTuLlave() {\n System.out.println(\"insertar\");\n MTuLlave intLlave = null;\n InterDAO instance = new InterDAOImpl();\n boolean expResult = false;\n boolean result = instance.insertar(intLlave);\n assertEquals(expResult, result);\n }", "title": "" }, { "docid": "6157f69e1d1e5c05306867d06f91f04a", "score": "0.68180543", "text": "int insert(Test record);", "title": "" }, { "docid": "565da8525153e436f439719749920722", "score": "0.68074054", "text": "public abstract int insert(T t);", "title": "" }, { "docid": "b7e5f1aa5519924d4eba010281e73e36", "score": "0.68070745", "text": "@Override\r\n\tpublic void insert(Livraison nouveau) {\n\r\n\t}", "title": "" }, { "docid": "ce0069d3470237c0d9dcb30aa4491b36", "score": "0.6794471", "text": "int insert(IotAdmin record);", "title": "" }, { "docid": "8c3783649a9bd3dab6ba68a840e23e83", "score": "0.6789225", "text": "@Test\n public void testInsertar_MTigo() {\n System.out.println(\"insertar\");\n MTigo intRecarga = null;\n InterDAO instance = new InterDAOImpl();\n boolean expResult = false;\n boolean result = instance.insertar(intRecarga);\n assertEquals(expResult, result);\n }", "title": "" }, { "docid": "8056e0461d9b9d3b6d5278ee82180cf2", "score": "0.67771864", "text": "@Override\n\tpublic void insert(Vendedor obj) {\n\t\t\n\t}", "title": "" }, { "docid": "6f6b1a2f0f9e31a70cc32f91ba648ec9", "score": "0.6771599", "text": "@Override\r\n\tpublic void insert() {\n\t\tdao.insert();\r\n\t}", "title": "" }, { "docid": "f2dd1d4f5219d363f1750ba04a41ed57", "score": "0.67657", "text": "public void testInsert() {\n this.server.enqueue(new MockResponse().setBody(\"{'result'='0'}\"));\n\n int result = this.web.insert(this.model);\n\n Assert.assertTrue(result >= 0);\n }", "title": "" }, { "docid": "a7f5c7c2a7fa1f2160c7c91382489372", "score": "0.6762682", "text": "@Test\n void insertSuccess() {\n MenuAPI newApi = new MenuAPI (\"Newbie\");\n int insertId = apiDao.insert(newApi);\n newApi.setId(insertId);\n MenuAPI actualInsertApi = apiDao.getById(newApi.getId());\n assertNotNull(actualInsertApi);\n assertEquals(newApi, actualInsertApi);\n\n }", "title": "" }, { "docid": "a838fed7f28d9c3be3414db134715065", "score": "0.6760813", "text": "public void testInsert() {\r\n bst.insert(42);\r\n bst.insert(12);\r\n bst.insert(31);\r\n bst.insert(11);\r\n bst.insert(5);\r\n bst.insert(77);\r\n bst.insert(72);\r\n assertEquals(bst.size(), 7);\r\n }", "title": "" }, { "docid": "830a752381c3f46e4ff1530983a30129", "score": "0.6751436", "text": "@Test\n public void testInsert(){\n System.out.println();\n }", "title": "" }, { "docid": "3eacf0961d4c6b193379ce06962d6e7c", "score": "0.67448986", "text": "int insert(InteTreatDO record);", "title": "" }, { "docid": "17969f8c8932aeb8ff6f402c7fe546cd", "score": "0.67434037", "text": "int insert(Vedio record);", "title": "" }, { "docid": "48a421df623794a55d97942a375bccd4", "score": "0.67385304", "text": "public abstract void insert(Object obj);", "title": "" }, { "docid": "e8420969f0b3981db87e93aa8a8a6ea8", "score": "0.67383534", "text": "@Test\n\tpublic void testFindAndInsert(){\n\t\tBinarySearchTree bst = new BinarySearchTree();\n\t\tPerson p = new Person(\"test\", \"test\", \"test\");\n\t\tbst.insert(p);\n\t\tassetTrue(bst.find(p));\n\t}", "title": "" }, { "docid": "9f4b405fc197b9a608db9d6234b504cc", "score": "0.6731587", "text": "@Test\n public void testInsertar_MTuRed() {\n System.out.println(\"insertar\");\n MTuRed intRecarga = null;\n InterDAO instance = new InterDAOImpl();\n boolean expResult = false;\n boolean result = instance.insertar(intRecarga);\n assertEquals(expResult, result);\n }", "title": "" }, { "docid": "ea21220f6e1929bb28fbf959258d06a9", "score": "0.6726055", "text": "@Test\n public void testInsertar_MSoluciones() {\n System.out.println(\"insertar\");\n MSoluciones intRecarga = null;\n InterDAO instance = new InterDAOImpl();\n boolean expResult = false;\n boolean result = instance.insertar(intRecarga);\n assertEquals(expResult, result);\n }", "title": "" }, { "docid": "d91154fc091a06bb3dfebee1420702fe", "score": "0.67162424", "text": "@Override\r\n\tint insert(SolarMan record);", "title": "" }, { "docid": "128eb9565787406d8bc73ff32d855cc3", "score": "0.66943985", "text": "@Test\r\n\tvoid testInsert() throws SQLException { \r\n\t\tProduit produit = new Produit(22, \"test\", 50, \"blabla\", \"url\", 1, 10);\r\n\t\tProduitDao dao = new ProduitDaoImpl();\r\n\t\tdao.insert(produit);\r\n\t\tassertEquals(22, produit.getId()); \r\n\t\tassertEquals(produit.toString(), dao.findById(22).toString()); \r\n\t}", "title": "" }, { "docid": "82e90eda76a3255abde566bd5bb34594", "score": "0.6693939", "text": "@Test\n public void testInsert_2() {\n fixture.setRoot(0);\n Node<Integer> left = fixture.addLeft(fixture.root(), 1);\n\n assertNotNull(fixture.insert(2, fixture.root()));\n assertEquals(new Integer(2), fixture.right(fixture.root()).getElement());\n }", "title": "" }, { "docid": "e52c724d619ae08fe08ab4a97ed67d14", "score": "0.6690582", "text": "@Test\n public void testInsertRecord() throws Exception {\n System.out.println(\"insertRecord\");\n Table table = null;\n ArrayList<String> values = null;\n Database instance = new DatabaseImpl();\n instance.insertRecord(table, values);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "title": "" }, { "docid": "c2b0922d0954d8b50f1f1602ef7cff73", "score": "0.6685745", "text": "int insert(DSLotteryBetEntity record);", "title": "" }, { "docid": "78426a5927567f18728eacd1ecc8b4af", "score": "0.66751385", "text": "int insertSelective(ClazzTest record);", "title": "" }, { "docid": "a7e0de1feed49e77c515888607cbde9d", "score": "0.666132", "text": "@Override\n public void insert( Enchere enchere ) throws BusinessException {\n\n }", "title": "" }, { "docid": "f94472845083ab29a904dfe7119e15ec", "score": "0.6648246", "text": "@Test\n public void testInsertar_MNequi() {\n System.out.println(\"insertar\");\n MNequi intNequi = null;\n InterDAO instance = new InterDAOImpl();\n boolean expResult = false;\n boolean result = instance.insertar(intNequi);\n assertEquals(expResult, result);\n }", "title": "" }, { "docid": "a8c9533b4d733c8b9e9af07baca3e756", "score": "0.66431105", "text": "@org.junit.jupiter.api.Test\n void insert() {\n int[] val = new int[]{-50,-50,-100,0,-1000,1000};\n test = new myBinarySearchTreeNode(val);\n assertEquals(val[0],test.myValue);\n assertEquals(val[2],test.left.myValue);\n assertEquals(val[3],test.right.myValue);\n //no 3rd level of nodes\n assertEquals(val[4],test.left.left.myValue);\n assertNull(test.left.right);\n assertNull(test.right.left);\n assertEquals(val[5],test.right.right.myValue);\n }", "title": "" }, { "docid": "e4148296bb5ad5a47b5ad20b5eaf2742", "score": "0.66394967", "text": "int insert(InspectPerinfo record);", "title": "" }, { "docid": "923e146c03be86fc2801e96b6a85b2c7", "score": "0.66379774", "text": "int insert(TSbZwycWlg record);", "title": "" }, { "docid": "b62c8c75226117890c15a500d76956e7", "score": "0.66279584", "text": "@Test\n public void testInsert() throws Exception {\n System.out.println(\"insert\");\n PhdCurriculum pCurriculum = new PhdCurriculum();\n PhdCurriculumManager instance = PhdCurriculumManager.getInstance();\n pCurriculum.setName(\"Informatica\");\n pCurriculum.setDescription(\"descrizione\");\n pCurriculum.setFK_Professor(\"CTLGMM91A71B519A\");\n instance.insert(pCurriculum);\n \n PhdCurriculum result = instance.getPhdCurriculumById(\"Informatica\");\n assertNotNull(result);\n \n tearDown();\n }", "title": "" }, { "docid": "3bf29ac63069a271a1e48ea8a024d5b5", "score": "0.66275394", "text": "@Test\n public void test1Insert() {\n System.out.println(\"prueba de tipo de documento metodo insert\");\n StateNumberGroupDAO dao = StateNumberGroupFactory.create(StateNumberGroup.class);\n if (dao.find(st.getNameState()) == null) {\n dao.insert(st);\n } \n assertEquals(dao.find(st.getNameState()), st);\n }", "title": "" }, { "docid": "6347fcf1477421b81cd18102e1e9722b", "score": "0.6621262", "text": "@Override\n\tpublic void insert(GaProfesion t) throws Exception {\n\t\t\n\t}", "title": "" }, { "docid": "8c1feafc0ead6944b3e70243ca4df338", "score": "0.66204286", "text": "int insert(OperOrderEntity record);", "title": "" }, { "docid": "ffa0dcbffd0a0b547bdd72d2a1553ba1", "score": "0.6618124", "text": "int insert(XiaojiaoData record);", "title": "" }, { "docid": "12cfb514dd2f434e7098f804a7d35d34", "score": "0.6615517", "text": "int insert(InveEdu record);", "title": "" }, { "docid": "3b07f6b8ae9aa2f998672f9ce3a98dd8", "score": "0.6614392", "text": "@Test\n public void testInsertToNew()\n {\n }", "title": "" }, { "docid": "fc438f32bc61fe45393b80203a5bdca4", "score": "0.6613565", "text": "int insert(TSugInfo record);", "title": "" }, { "docid": "10599c4dac480795cb66c60c6173855e", "score": "0.66049975", "text": "int insert(CmsAdmin record);", "title": "" }, { "docid": "f1b92604d099a849d99e6cf384cf29b3", "score": "0.6592022", "text": "@Test\n void insertSuccess() {\n\n User newUser = new User(\"FredFlintstone\", \"fflintstone55\", true, \"Monday\");\n int id = genericDao.insert(newUser);\n assertNotEquals(0,id);\n User insertedUser = (User)genericDao.getById(id);\n assertEquals(newUser, insertedUser);\n }", "title": "" }, { "docid": "2353daa60ec55e7eedf878851f936a0a", "score": "0.6565472", "text": "public void insert(T info);", "title": "" }, { "docid": "d18f9b9b9f1b1a1aa35551574b03ac6d", "score": "0.6563738", "text": "int insert(TdtbcDependencia record);", "title": "" }, { "docid": "296b13081eb7dc287313ccbfd81d7460", "score": "0.6561939", "text": "int insert(TbTableEightRelationEntity record);", "title": "" }, { "docid": "08e320ca204d3fe8a574a5b516bca221", "score": "0.65602964", "text": "@Test\n public void testInserir() {\n lista.inserir(e1);\n assertEquals(1, lista.len()); //Se a função len retornar 1, significa que um objeto foi adionado a lista\n lista.inserir(e2);\n lista.inserir(e3);\n assertNotNull(lista.remover(1)); //Como um exame com o Tipo 1 foi adicionado na lista, ele deve ser removido\n //normalmente, retornando um true\n assertFalse(lista.len() != 2); //Se os tres objetos forem inseridos corretamente e depois um objeto for removido\n // não tem como o tamanho da lista ser diferente de 2\n }", "title": "" }, { "docid": "9807db146c0bc42d10fc8dec3c76e7c8", "score": "0.65528256", "text": "int insert(SupervisorEntidad record);", "title": "" }, { "docid": "7f308502e78fc02f7d94e02fbaaeca66", "score": "0.6550879", "text": "@Test\r\n public void testInsertBanco() throws Exception {\r\n System.out.println(\"insertBanco\");\r\n Banco banco = new Banco(3,\"banco2\");\r\n BancoDAOImp instance = new BancoDAOImp();\r\n boolean expResult = true;\r\n boolean result = instance.insertBanco(banco);\r\n assertEquals(expResult, result);\r\n }", "title": "" }, { "docid": "daf70062e90b19efa3ebd598febc8fd6", "score": "0.6546808", "text": "int insert(TypechoOptions record);", "title": "" }, { "docid": "14bc01aa84a489b5679d855280b2aa1e", "score": "0.6546284", "text": "@Test\n\tpublic void testInsertEE() {\n\t\tBinarySearchTree<String> bst = new BinarySearchTree<String>();\n\t\tassertEquals(0, bst.size());\n\t\tassertNull(bst.root());\n\t\ttry {\n\t\t\tbst.insert(null, \"apple\");\n\t\t\tfail();\n\t\t} catch (NullPointerException npe) {\n\t\t\tassertEquals(\"The key or element to add cannot be null.\", npe.getMessage());\n\t\t\tassertEquals(0, bst.size());\n\t\t\tassertNull(bst.root());\n\t\t}\n\t\ttry {\n\t\t\tbst.insert(\"fruit\", null);\n\t\t\tfail();\n\t\t} catch (NullPointerException npe) {\n\t\t\tassertEquals(\"The key or element to add cannot be null.\", npe.getMessage());\n\t\t\tassertEquals(0, bst.size());\n\t\t\tassertNull(bst.root());\n\t\t}\n\t\tbst.insert(\"1\", \"1\");\n\t\tassertNotNull(bst.root());\n\t\tassertEquals(1, bst.size());\n\t\tassertEquals(\"1\", bst.lookUp(\"1\"));\n\t\ttry {\n\t\t\tbst.insert(\"1\", \"1\");\n\t\t\tfail();\n\t\t} catch (IllegalArgumentException iae) {\n\t\t\tassertEquals(\"The given key is a duplicate.\", iae.getMessage());\n\t\t\tassertEquals(1, bst.size());\n\t\t\tassertEquals(\"1\", bst.lookUp(\"1\"));\n\t\t}\n\t\tbst.insert(\"3\", \"3\");\n\t\tassertEquals(2, bst.size());\n\t\tassertEquals(\"3\", bst.lookUp(\"3\"));\n\t\tString expected = \"1 3, \";\n\t\tassertEquals(expected, bst.elementsInLevelOrder());\n\t\ttry {\n\t\t\tbst.insert(\"1\", \"1\");\n\t\t\tfail();\n\t\t} catch (IllegalArgumentException iae) {\n\t\t\tassertEquals(\"The given key is a duplicate.\", iae.getMessage());\n\t\t\tassertEquals(2, bst.size());\n\t\t\tassertEquals(\"1\", bst.lookUp(\"1\"));\n\t\t\tassertEquals(\"3\", bst.lookUp(\"3\"));\n\t\t}\n\t\ttry {\n\t\t\tbst.insert(\"3\", \"3\");\n\t\t\tfail();\n\t\t} catch (IllegalArgumentException iae) {\n\t\t\tassertEquals(\"The given key is a duplicate.\", iae.getMessage());\n\t\t\tassertEquals(2, bst.size());\n\t\t\tassertEquals(\"1\", bst.lookUp(\"1\"));\n\t\t\tassertEquals(\"3\", bst.lookUp(\"3\"));\n\t\t}\n\t\t\n\t\tbst.insert(\"2\", \"2\");\n\t\tassertEquals(3, bst.size());\n\t\tassertEquals(\"2\", bst.lookUp(\"2\"));\n\t\texpected = \"2, 1, 3, \";\n\t\tassertEquals(expected, bst.elementsInLevelOrder());\n\t\t\n\t\tbst.insert(\"9\", \"9\");\n\t\tassertEquals(4, bst.size());\n\t\tassertEquals(\"9\", bst.lookUp(\"9\"));\n\t\texpected = \"2, 1, 3 9, \";\n\t\tassertEquals(expected, bst.elementsInLevelOrder());\n\t\t\n\t\tbst.insert(\"6\", \"6\");\n\t\tassertEquals(5, bst.size());\n\t\tassertEquals(\"6\", bst.lookUp(\"6\"));\n\t\texpected = \"2 6, 1, 3, 9, \";\n\t\tassertEquals(expected, bst.elementsInLevelOrder());\n\t\t\n\t\tbst.insert(\"5\", \"5\");\n\t\tassertEquals(6, bst.size());\n\t\tassertEquals(\"5\", bst.lookUp(\"5\"));\n\t\texpected = \"2 6, 1, 3 5, 9, \";\n\t\tassertEquals(expected, bst.elementsInLevelOrder());\n\t\t\n\t\tbst.insert(\"4\", \"4\");\n\t\tassertEquals(7, bst.size());\n\t\tassertEquals(\"4\", bst.lookUp(\"4\"));\n\t\texpected = \"4, 2, 6, 1, 3, 5, 9, \";\n\t\tassertEquals(expected, bst.elementsInLevelOrder());\n\t\t\n\t\tbst = new BinarySearchTree<String>();\n\t\tbst.insert(\"1\", \"1\");\n\t\tassertEquals(1, bst.size());\n\t\tassertEquals(\"1\", bst.lookUp(\"1\"));\n\t\t\n\t\tbst.insert(\"2\", \"2\");\n\t\tassertEquals(2, bst.size());\n\t\tassertEquals(\"2\", bst.lookUp(\"2\"));\n\t\texpected = \"1 2, \";\n\t\tassertEquals(expected, bst.elementsInLevelOrder());\n\t\t\n\t\tbst.insert(\"4\", \"4\");\n\t\tassertEquals(3, bst.size());\n\t\tassertEquals(\"4\", bst.lookUp(\"4\"));\n\t\texpected = \"2, 1, 4, \";\n\t\tassertEquals(expected, bst.elementsInLevelOrder());\n\t\t\n\t\tbst.insert(\"5\", \"5\");\n\t\tassertEquals(4, bst.size());\n\t\tassertEquals(\"5\", bst.lookUp(\"5\"));\n\t\texpected = \"2, 1, 4 5, \";\n\t\tassertEquals(expected, bst.elementsInLevelOrder());\n\t\t\n\t\tbst.insert(\"6\", \"6\");\n\t\tassertEquals(5, bst.size());\n\t\tassertEquals(\"6\", bst.lookUp(\"6\"));\n\t\texpected = \"2 5, 1, 4, 6, \";\n\t\tassertEquals(expected, bst.elementsInLevelOrder());\n\t\t\n\t\tbst.insert(\"7\", \"7\");\n\t\tassertEquals(6, bst.size());\n\t\tassertEquals(\"7\", bst.lookUp(\"7\"));\n\t\texpected = \"2 5, 1, 4, 6 7, \";\n\t\tassertEquals(expected, bst.elementsInLevelOrder());\n\t\t\n\t\tbst.insert(\"8\", \"8\");\n\t\tassertEquals(7, bst.size());\n\t\tassertEquals(\"8\", bst.lookUp(\"8\"));\n\t\texpected = \"5, 2, 7, 1, 4, 6, 8, \";\n\t\tassertEquals(expected, bst.elementsInLevelOrder());\n\t\t\n\t\tbst = new BinarySearchTree<String>();\n\t\tbst.insert(\"8\", \"8\");\n\t\tassertEquals(1, bst.size());\n\t\tassertEquals(\"8\", bst.lookUp(\"8\"));\n\t\t\n\t\tbst.insert(\"7\", \"7\");\n\t\tassertEquals(2, bst.size());\n\t\tassertEquals(\"7\", bst.lookUp(\"7\"));\n\t\texpected = \"7 8, \";\n\t\tassertEquals(expected, bst.elementsInLevelOrder());\n\t\t\n\t\tbst.insert(\"6\", \"6\");\n\t\tassertEquals(3, bst.size());\n\t\tassertEquals(\"6\", bst.lookUp(\"6\"));\n\t\texpected = \"7, 6, 8, \";\n\t\tassertEquals(expected, bst.elementsInLevelOrder());\n\t\t\n\t\tbst.insert(\"5\", \"5\");\n\t\tassertEquals(4, bst.size());\n\t\tassertEquals(\"5\", bst.lookUp(\"5\"));\n\t\texpected = \"7, 5 6, 8, \";\n\t\tassertEquals(expected, bst.elementsInLevelOrder());\n\t\t\n\t\tbst.insert(\"4\", \"4\");\n\t\tassertEquals(5, bst.size());\n\t\tassertEquals(\"4\", bst.lookUp(\"4\"));\n\t\texpected = \"5 7, 4, 6, 8, \";\n\t\tassertEquals(expected, bst.elementsInLevelOrder());\n\t\t\n\t\tbst.insert(\"3\", \"3\");\n\t\tassertEquals(6, bst.size());\n\t\tassertEquals(\"3\", bst.lookUp(\"3\"));\n\t\texpected = \"5 7, 3 4, 6, 8, \";\n\t\tassertEquals(expected, bst.elementsInLevelOrder());\n\t\t\n\t\tbst.insert(\"2\", \"2\");\n\t\tassertEquals(7, bst.size());\n\t\tassertEquals(\"2\", bst.lookUp(\"2\"));\n\t\texpected = \"5, 3, 7, 2, 4, 6, 8, \";\n\t\tassertEquals(expected, bst.elementsInLevelOrder());\n\t}", "title": "" }, { "docid": "36bfffef94006d49a6ccb02c728d56ab", "score": "0.65432817", "text": "int insert(Intention record);", "title": "" }, { "docid": "8d189a5639a8e79bab77b6c93202b5e6", "score": "0.65261996", "text": "int insert(TSbZnycKgg record);", "title": "" }, { "docid": "8871c5ddcf5f4b86e5f923ff526ae7cd", "score": "0.6516521", "text": "int insert(TStar record);", "title": "" }, { "docid": "617b9b91bc198f9a1a8074df4a0a02e3", "score": "0.65117264", "text": "int insert(PageComponent record);", "title": "" }, { "docid": "d2880e7c7196b7cea49416a2055e1766", "score": "0.6499346", "text": "int insertSelective(IotAdmin record);", "title": "" }, { "docid": "6a43152ab8414316a03c0c9ebc8b49ee", "score": "0.64862996", "text": "@Override\r\n\tpublic void insertTestTb(TestTb testTb) {\n\t\ttestTbDao.insertTestTb(testTb);\r\n\t\t\r\n//\t\tthrow new RuntimeException();\r\n\t}", "title": "" }, { "docid": "6dded60685de039f7fa02b7015ad2623", "score": "0.6484604", "text": "@Test\n\tpublic void testInserisciDipendenteValorizzato() {\n\t\tassertEquals(\"redirect:/load\", tester.inserisciDipendente(d));\n\t\tverify(dao, times(1)).inserisciDip(d);\n\t}", "title": "" }, { "docid": "940894c75954206d43b1ff5dbab85107", "score": "0.64814204", "text": "@Test\n\tpublic void testInsertEvent() {\n\t\t/**\n\t\t * @TODO: Call insertEvent Create event object by setting appropriate\n\t\t * values Assert the status of insertEvent method\n\t\t */\n\n\t\tint status = eventServiceImpl.insertEvent(newevent);\n\t\tassertEquals(1, status);\n\n\t}", "title": "" }, { "docid": "550ab4f0dc33fd784f8c274382b7098e", "score": "0.64732236", "text": "@Test\n public void testInsertSorted()\n {\n }", "title": "" }, { "docid": "f58356a73851c4a3ea7e344cb44b5fb1", "score": "0.6467056", "text": "int insert(EmExperiment record);", "title": "" }, { "docid": "24565c7f0faf47e37a203c230044ebab", "score": "0.6461085", "text": "@Test\n public void testInsertRowToNew()\n {\n }", "title": "" }, { "docid": "227423f0bd49a72002d6526e0f7376ae", "score": "0.64590204", "text": "@Test\r\n\tpublic void testInsert(){\n\t\tDBConnection connector = new DBConnection(\"dbtest2\");\r\n\t\tint id = -1;\r\n\t\ttry {\r\n\t\t\tconnector.connect();\r\n\t\t\tid= connector.insert(\"TestUser\", \"TestEmail\", \"TestWebpage\",\"TestSummary\", \"TestComments\");\r\n\t\t}catch (Exception e){\r\n\t\t\te.printStackTrace();\r\n\t\t}finally {\r\n\t\t\tconnector.close();\r\n\t\t}\r\n\t\t\r\n\t\tAssert.assertEquals(true, id>-1);\t\t\t\t\t\t\r\n\t}", "title": "" }, { "docid": "1101911741cbc653bc5106f745fc0d54", "score": "0.6455837", "text": "@Test\n public void testInsertar_List() {\n System.out.println(\"insertar\");\n List<MImpresion> impresiones = null;\n InterDAO instance = new InterDAOImpl();\n boolean expResult = false;\n boolean result = instance.insertar(impresiones);\n assertEquals(expResult, result);\n }", "title": "" }, { "docid": "1301857462e360a58e927bc53587d07f", "score": "0.64545596", "text": "@Override\n\tpublic void preInsert() {\n\t\t\n\t}", "title": "" }, { "docid": "4b00e880c6a42bee4ab41dc1cca5fd69", "score": "0.6453209", "text": "int insert(OrderItem record);", "title": "" }, { "docid": "4b00e880c6a42bee4ab41dc1cca5fd69", "score": "0.6453209", "text": "int insert(OrderItem record);", "title": "" }, { "docid": "8cbd212f054793b55e5ebe4d5d2693f1", "score": "0.6452316", "text": "int insert(ContentManage record);", "title": "" }, { "docid": "0d7b031c0300f1b992fbf0830b7d76b4", "score": "0.6448816", "text": "int insert(T_eamil record);", "title": "" }, { "docid": "9627e254e2f97eb5debea9902c1b5434", "score": "0.6445484", "text": "int insert(THjjczzEihz record);", "title": "" }, { "docid": "168ea8e911bbff6b67d267ba373f9cf5", "score": "0.6444985", "text": "abstract long insert(MODEL model);", "title": "" }, { "docid": "cec80229cac2b5270e74db5687d24e96", "score": "0.64431447", "text": "int insert(TVisitorZj record);", "title": "" }, { "docid": "67be5340021da979503652f3195163dc", "score": "0.6442834", "text": "@Test\n void insertSuccess() {\n UserDao userDao = new UserDao();\n User user = userDao.getById(1);\n String newUTLocation = \"ILCHI\";\n int newUTNumPOI = 6;\n String newUTRating = \"2\";\n String newUTComment = \"Wonderfully awesome, except for that traffic\";\n Date today = new Date();\n //Usertrip newUserTrip = new Usertrip(user, newUTLocation, newUTNumPOI,newUTRating, newUTComment, today);\n //user.addTrip(newUserTrip);\n //int id = dao.insert(newUserTrip);\n //assertNotEquals(0, id);\n //Usertrip insertedUserTrip = (Usertrip) dao.getById(id);\n //assertNotNull(insertedUserTrip);\n //assertEquals(newUTLocation, insertedUserTrip.getCityLocation());\n //assertNotNull(insertedUserTrip.getUser());\n //assertEquals(\"Dave\", insertedUserTrip.getUser().getFirstName());\n }", "title": "" }, { "docid": "92bd275a7bf851ab1af87d1b971f53c3", "score": "0.6438214", "text": "public boolean insert() throws SQLException ;", "title": "" }, { "docid": "4624bcf17a856a57bab2b4a310242793", "score": "0.64337724", "text": "int insert(AnliData record);", "title": "" }, { "docid": "6bf6fbf6ec175878365d147ecacb685b", "score": "0.6428342", "text": "void insert(TbHoms record);", "title": "" }, { "docid": "48f3b57f5a04a2a927c729650bd5eb72", "score": "0.64177525", "text": "@Test\n public void testInsert() {\n System.out.println(\"insert\");\n User user = new User(4,\"login\",\"password\");\n UserDal instance = new UserDal();\n int expResult = 1;\n int result = instance.insert(user);\n assertEquals(expResult, result);\n }", "title": "" }, { "docid": "59cab36c0c9332d281456c8bbeb03e8a", "score": "0.64153385", "text": "int insert(ShopEntity record);", "title": "" }, { "docid": "67bdb978310a293dbdced5d076d62635", "score": "0.6414592", "text": "@Test\n public void a_insertTindakan() {\n System.out.println(\"1. serviceInsertTindakan\");\n expNoTindakan = \"TIND.0001\";\n expNmTindakan = \"GV Sedang\";\n expTindakanSpesialis = \"Sp.Mt\";\n expKetTindakan = \"Tindakan pada spesialis bedah\";\n\n td.setNoTindakan(expNoTindakan);\n td.setNmTindakan(expNmTindakan);\n td.setTindakanSpesialis(expTindakanSpesialis);\n td.setKetTindakan(expKetTindakan);\n instance.serviceInsertTindakan(td);\n\n tabelModelTindakan.setData(instance.serviceGetAllDataTindakanByNo(expNoTindakan));\n assertEquals(expNoTindakan, tabelModelTindakan.getValueAt(0, 0));\n assertEquals(expNmTindakan, tabelModelTindakan.getValueAt(0, 1));\n assertEquals(expTindakanSpesialis, tabelModelTindakan.getValueAt(0, 2));\n assertEquals(expKetTindakan, tabelModelTindakan.getValueAt(0, 3));\n }", "title": "" }, { "docid": "cf43eefac83af4225545a1628d707dca", "score": "0.6410172", "text": "T insert(T entity);", "title": "" }, { "docid": "2d31320435d8b0d0a2b87f5b6318a035", "score": "0.64077735", "text": "int insert(PlayerCommanderEntry record);", "title": "" }, { "docid": "fd5afde77f966750d7968f096d7bac63", "score": "0.64076465", "text": "int insert(ExamRecordInfoEntity record);", "title": "" } ]
a7b42640eb2b3c7657ce575eb71a9d73
The RDBMS instances. repeated .sdxsvccommon.RdbmsInstance rdbmsInstances = 1 [(.options.FieldExtension.pagingResult) = true];
[ { "docid": "c4e4506fb0e405828a002c907c796920", "score": "0.60250086", "text": "public com.cloudera.thunderhead.service.sdxsvccommon.SDXSvcCommonProto.RdbmsInstance.Builder getRdbmsInstancesBuilder(\n int index) {\n return getRdbmsInstancesFieldBuilder().getBuilder(index);\n }", "title": "" } ]
[ { "docid": "8e5cb35b7b783a2d91f3fb9ceb734fd1", "score": "0.8146481", "text": "java.util.List<com.cloudera.thunderhead.service.sdxsvccommon.SDXSvcCommonProto.RdbmsInstance> \n getRdbmsInstancesList();", "title": "" }, { "docid": "8e5cb35b7b783a2d91f3fb9ceb734fd1", "score": "0.8146481", "text": "java.util.List<com.cloudera.thunderhead.service.sdxsvccommon.SDXSvcCommonProto.RdbmsInstance> \n getRdbmsInstancesList();", "title": "" }, { "docid": "5d82ded320179fbe04f9e6639bc84fc4", "score": "0.81095135", "text": "@java.lang.Override\n public java.util.List<com.cloudera.thunderhead.service.sdxsvccommon.SDXSvcCommonProto.RdbmsInstance> getRdbmsInstancesList() {\n return rdbmsInstances_;\n }", "title": "" }, { "docid": "5d82ded320179fbe04f9e6639bc84fc4", "score": "0.81095135", "text": "@java.lang.Override\n public java.util.List<com.cloudera.thunderhead.service.sdxsvccommon.SDXSvcCommonProto.RdbmsInstance> getRdbmsInstancesList() {\n return rdbmsInstances_;\n }", "title": "" }, { "docid": "59b68d4486642bf5ffe57a3a30abf258", "score": "0.78511083", "text": "@java.lang.Override\n public java.util.List<? extends com.cloudera.thunderhead.service.sdxsvccommon.SDXSvcCommonProto.RdbmsInstanceOrBuilder> \n getRdbmsInstancesOrBuilderList() {\n return rdbmsInstances_;\n }", "title": "" }, { "docid": "59b68d4486642bf5ffe57a3a30abf258", "score": "0.78511083", "text": "@java.lang.Override\n public java.util.List<? extends com.cloudera.thunderhead.service.sdxsvccommon.SDXSvcCommonProto.RdbmsInstanceOrBuilder> \n getRdbmsInstancesOrBuilderList() {\n return rdbmsInstances_;\n }", "title": "" }, { "docid": "7d76688970407cb73e00290117a18142", "score": "0.7830474", "text": "java.util.List<? extends com.cloudera.thunderhead.service.sdxsvccommon.SDXSvcCommonProto.RdbmsInstanceOrBuilder> \n getRdbmsInstancesOrBuilderList();", "title": "" }, { "docid": "7d76688970407cb73e00290117a18142", "score": "0.7830474", "text": "java.util.List<? extends com.cloudera.thunderhead.service.sdxsvccommon.SDXSvcCommonProto.RdbmsInstanceOrBuilder> \n getRdbmsInstancesOrBuilderList();", "title": "" }, { "docid": "b128df8696d6952897ccdf8e5760ba8f", "score": "0.7760696", "text": "public java.util.List<com.cloudera.thunderhead.service.sdxsvccommon.SDXSvcCommonProto.RdbmsInstance> getRdbmsInstancesList() {\n if (rdbmsInstancesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(rdbmsInstances_);\n } else {\n return rdbmsInstancesBuilder_.getMessageList();\n }\n }", "title": "" }, { "docid": "b128df8696d6952897ccdf8e5760ba8f", "score": "0.7760696", "text": "public java.util.List<com.cloudera.thunderhead.service.sdxsvccommon.SDXSvcCommonProto.RdbmsInstance> getRdbmsInstancesList() {\n if (rdbmsInstancesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(rdbmsInstances_);\n } else {\n return rdbmsInstancesBuilder_.getMessageList();\n }\n }", "title": "" }, { "docid": "a7e8685474e44a2a74ae51000f4293ce", "score": "0.7714215", "text": "com.cloudera.thunderhead.service.sdxsvccommon.SDXSvcCommonProto.RdbmsInstance getRdbmsInstances(int index);", "title": "" }, { "docid": "a7e8685474e44a2a74ae51000f4293ce", "score": "0.7714215", "text": "com.cloudera.thunderhead.service.sdxsvccommon.SDXSvcCommonProto.RdbmsInstance getRdbmsInstances(int index);", "title": "" }, { "docid": "02cff4847d28e6d092dba67a863e4a08", "score": "0.7661987", "text": "@java.lang.Override\n public com.cloudera.thunderhead.service.sdxsvccommon.SDXSvcCommonProto.RdbmsInstance getRdbmsInstances(int index) {\n return rdbmsInstances_.get(index);\n }", "title": "" }, { "docid": "02cff4847d28e6d092dba67a863e4a08", "score": "0.7661987", "text": "@java.lang.Override\n public com.cloudera.thunderhead.service.sdxsvccommon.SDXSvcCommonProto.RdbmsInstance getRdbmsInstances(int index) {\n return rdbmsInstances_.get(index);\n }", "title": "" }, { "docid": "467d63fc1d27cca7c196569ee95abbb2", "score": "0.7556245", "text": "public java.util.List<? extends com.cloudera.thunderhead.service.sdxsvccommon.SDXSvcCommonProto.RdbmsInstanceOrBuilder> \n getRdbmsInstancesOrBuilderList() {\n if (rdbmsInstancesBuilder_ != null) {\n return rdbmsInstancesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(rdbmsInstances_);\n }\n }", "title": "" }, { "docid": "467d63fc1d27cca7c196569ee95abbb2", "score": "0.7556245", "text": "public java.util.List<? extends com.cloudera.thunderhead.service.sdxsvccommon.SDXSvcCommonProto.RdbmsInstanceOrBuilder> \n getRdbmsInstancesOrBuilderList() {\n if (rdbmsInstancesBuilder_ != null) {\n return rdbmsInstancesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(rdbmsInstances_);\n }\n }", "title": "" }, { "docid": "7032b1b7585dd8c1e8f302ba7ec1a63d", "score": "0.7327465", "text": "@java.lang.Override\n public int getRdbmsInstancesCount() {\n return rdbmsInstances_.size();\n }", "title": "" }, { "docid": "7032b1b7585dd8c1e8f302ba7ec1a63d", "score": "0.7327465", "text": "@java.lang.Override\n public int getRdbmsInstancesCount() {\n return rdbmsInstances_.size();\n }", "title": "" }, { "docid": "7eeb2b649566cfa8a066fbab28105d71", "score": "0.7320989", "text": "com.cloudera.thunderhead.service.sdxsvccommon.SDXSvcCommonProto.RdbmsInstance getRdbms();", "title": "" }, { "docid": "7eeb2b649566cfa8a066fbab28105d71", "score": "0.7319848", "text": "com.cloudera.thunderhead.service.sdxsvccommon.SDXSvcCommonProto.RdbmsInstance getRdbms();", "title": "" }, { "docid": "50d775cf670c963bcc9c956b43176efb", "score": "0.7250587", "text": "@java.lang.Override\n public com.cloudera.thunderhead.service.sdxsvccommon.SDXSvcCommonProto.RdbmsInstanceOrBuilder getRdbmsInstancesOrBuilder(\n int index) {\n return rdbmsInstances_.get(index);\n }", "title": "" }, { "docid": "50d775cf670c963bcc9c956b43176efb", "score": "0.7250587", "text": "@java.lang.Override\n public com.cloudera.thunderhead.service.sdxsvccommon.SDXSvcCommonProto.RdbmsInstanceOrBuilder getRdbmsInstancesOrBuilder(\n int index) {\n return rdbmsInstances_.get(index);\n }", "title": "" }, { "docid": "8365b0f5d6497fa21b5e12b2cfb11a40", "score": "0.7178634", "text": "public com.cloudera.thunderhead.service.sdxsvccommon.SDXSvcCommonProto.RdbmsInstance getRdbmsInstances(int index) {\n if (rdbmsInstancesBuilder_ == null) {\n return rdbmsInstances_.get(index);\n } else {\n return rdbmsInstancesBuilder_.getMessage(index);\n }\n }", "title": "" }, { "docid": "8365b0f5d6497fa21b5e12b2cfb11a40", "score": "0.7178634", "text": "public com.cloudera.thunderhead.service.sdxsvccommon.SDXSvcCommonProto.RdbmsInstance getRdbmsInstances(int index) {\n if (rdbmsInstancesBuilder_ == null) {\n return rdbmsInstances_.get(index);\n } else {\n return rdbmsInstancesBuilder_.getMessage(index);\n }\n }", "title": "" }, { "docid": "ec0f7c26aeabaa0eb734d6c46cbd0ca3", "score": "0.7159526", "text": "com.cloudera.thunderhead.service.sdxsvccommon.SDXSvcCommonProto.RdbmsInstanceOrBuilder getRdbmsInstancesOrBuilder(\n int index);", "title": "" }, { "docid": "ec0f7c26aeabaa0eb734d6c46cbd0ca3", "score": "0.7159526", "text": "com.cloudera.thunderhead.service.sdxsvccommon.SDXSvcCommonProto.RdbmsInstanceOrBuilder getRdbmsInstancesOrBuilder(\n int index);", "title": "" }, { "docid": "2699dc60e01f45db6686fd79d25f0269", "score": "0.70087427", "text": "int getRdbmsInstancesCount();", "title": "" }, { "docid": "2699dc60e01f45db6686fd79d25f0269", "score": "0.70087427", "text": "int getRdbmsInstancesCount();", "title": "" }, { "docid": "0185e79969a57bac434e8dcacc91cb05", "score": "0.6994642", "text": "public int getRdbmsInstancesCount() {\n if (rdbmsInstancesBuilder_ == null) {\n return rdbmsInstances_.size();\n } else {\n return rdbmsInstancesBuilder_.getCount();\n }\n }", "title": "" }, { "docid": "0185e79969a57bac434e8dcacc91cb05", "score": "0.6994642", "text": "public int getRdbmsInstancesCount() {\n if (rdbmsInstancesBuilder_ == null) {\n return rdbmsInstances_.size();\n } else {\n return rdbmsInstancesBuilder_.getCount();\n }\n }", "title": "" }, { "docid": "77e67be255456fe0e1b4fbaa612a383e", "score": "0.6898984", "text": "@java.lang.Override\n public com.cloudera.thunderhead.service.sdxsvccommon.SDXSvcCommonProto.RdbmsInstance getRdbms() {\n return rdbms_ == null ? com.cloudera.thunderhead.service.sdxsvccommon.SDXSvcCommonProto.RdbmsInstance.getDefaultInstance() : rdbms_;\n }", "title": "" }, { "docid": "77e67be255456fe0e1b4fbaa612a383e", "score": "0.6898533", "text": "@java.lang.Override\n public com.cloudera.thunderhead.service.sdxsvccommon.SDXSvcCommonProto.RdbmsInstance getRdbms() {\n return rdbms_ == null ? com.cloudera.thunderhead.service.sdxsvccommon.SDXSvcCommonProto.RdbmsInstance.getDefaultInstance() : rdbms_;\n }", "title": "" }, { "docid": "f9de0ae095c97a9fb29233aaf705650c", "score": "0.68395036", "text": "com.cloudera.thunderhead.service.sdxsvccommon.SDXSvcCommonProto.RdbmsInstanceOrBuilder getRdbmsInstanceOrBuilder();", "title": "" }, { "docid": "f9de0ae095c97a9fb29233aaf705650c", "score": "0.68395036", "text": "com.cloudera.thunderhead.service.sdxsvccommon.SDXSvcCommonProto.RdbmsInstanceOrBuilder getRdbmsInstanceOrBuilder();", "title": "" }, { "docid": "5448568811b9794a5a99fa59bf378d88", "score": "0.68270904", "text": "public com.cloudera.thunderhead.service.sdxsvccommon.SDXSvcCommonProto.RdbmsInstance getRdbms() {\n if (rdbmsBuilder_ == null) {\n return rdbms_ == null ? com.cloudera.thunderhead.service.sdxsvccommon.SDXSvcCommonProto.RdbmsInstance.getDefaultInstance() : rdbms_;\n } else {\n return rdbmsBuilder_.getMessage();\n }\n }", "title": "" }, { "docid": "5448568811b9794a5a99fa59bf378d88", "score": "0.6826011", "text": "public com.cloudera.thunderhead.service.sdxsvccommon.SDXSvcCommonProto.RdbmsInstance getRdbms() {\n if (rdbmsBuilder_ == null) {\n return rdbms_ == null ? com.cloudera.thunderhead.service.sdxsvccommon.SDXSvcCommonProto.RdbmsInstance.getDefaultInstance() : rdbms_;\n } else {\n return rdbmsBuilder_.getMessage();\n }\n }", "title": "" }, { "docid": "bf15b05eb0505c2ffbe04937443676bc", "score": "0.6804154", "text": "com.cloudera.thunderhead.service.sdxsvccommon.SDXSvcCommonProto.RdbmsInstance getRdbmsInstance();", "title": "" }, { "docid": "bf15b05eb0505c2ffbe04937443676bc", "score": "0.6804154", "text": "com.cloudera.thunderhead.service.sdxsvccommon.SDXSvcCommonProto.RdbmsInstance getRdbmsInstance();", "title": "" }, { "docid": "7c74eea00726142b2147b1fd671ffc0f", "score": "0.6788753", "text": "@java.lang.Override\n public com.cloudera.thunderhead.service.sdxsvccommon.SDXSvcCommonProto.RdbmsInstance getRdbmsInstance() {\n return rdbmsInstance_ == null ? com.cloudera.thunderhead.service.sdxsvccommon.SDXSvcCommonProto.RdbmsInstance.getDefaultInstance() : rdbmsInstance_;\n }", "title": "" }, { "docid": "7c74eea00726142b2147b1fd671ffc0f", "score": "0.6788753", "text": "@java.lang.Override\n public com.cloudera.thunderhead.service.sdxsvccommon.SDXSvcCommonProto.RdbmsInstance getRdbmsInstance() {\n return rdbmsInstance_ == null ? com.cloudera.thunderhead.service.sdxsvccommon.SDXSvcCommonProto.RdbmsInstance.getDefaultInstance() : rdbmsInstance_;\n }", "title": "" }, { "docid": "bdd34a70c4ab7593ee4e5c75eaa5078d", "score": "0.6767129", "text": "public com.cloudera.thunderhead.service.sdxsvccommon.SDXSvcCommonProto.RdbmsInstanceOrBuilder getRdbmsInstancesOrBuilder(\n int index) {\n if (rdbmsInstancesBuilder_ == null) {\n return rdbmsInstances_.get(index); } else {\n return rdbmsInstancesBuilder_.getMessageOrBuilder(index);\n }\n }", "title": "" }, { "docid": "bdd34a70c4ab7593ee4e5c75eaa5078d", "score": "0.6767129", "text": "public com.cloudera.thunderhead.service.sdxsvccommon.SDXSvcCommonProto.RdbmsInstanceOrBuilder getRdbmsInstancesOrBuilder(\n int index) {\n if (rdbmsInstancesBuilder_ == null) {\n return rdbmsInstances_.get(index); } else {\n return rdbmsInstancesBuilder_.getMessageOrBuilder(index);\n }\n }", "title": "" }, { "docid": "15df99dd097b67f017f96620872fbca6", "score": "0.6739895", "text": "public com.cloudera.thunderhead.service.sdxsvccommon.SDXSvcCommonProto.RdbmsInstance getRdbmsInstance() {\n if (rdbmsInstanceBuilder_ == null) {\n return rdbmsInstance_ == null ? com.cloudera.thunderhead.service.sdxsvccommon.SDXSvcCommonProto.RdbmsInstance.getDefaultInstance() : rdbmsInstance_;\n } else {\n return rdbmsInstanceBuilder_.getMessage();\n }\n }", "title": "" }, { "docid": "15df99dd097b67f017f96620872fbca6", "score": "0.6739895", "text": "public com.cloudera.thunderhead.service.sdxsvccommon.SDXSvcCommonProto.RdbmsInstance getRdbmsInstance() {\n if (rdbmsInstanceBuilder_ == null) {\n return rdbmsInstance_ == null ? com.cloudera.thunderhead.service.sdxsvccommon.SDXSvcCommonProto.RdbmsInstance.getDefaultInstance() : rdbmsInstance_;\n } else {\n return rdbmsInstanceBuilder_.getMessage();\n }\n }", "title": "" }, { "docid": "332a52ccfccb2c5364bd8c1e7fcb805a", "score": "0.6728752", "text": "@java.lang.Override\n public com.cloudera.thunderhead.service.sdxsvccommon.SDXSvcCommonProto.RdbmsInstanceOrBuilder getRdbmsInstanceOrBuilder() {\n return getRdbmsInstance();\n }", "title": "" }, { "docid": "332a52ccfccb2c5364bd8c1e7fcb805a", "score": "0.6728752", "text": "@java.lang.Override\n public com.cloudera.thunderhead.service.sdxsvccommon.SDXSvcCommonProto.RdbmsInstanceOrBuilder getRdbmsInstanceOrBuilder() {\n return getRdbmsInstance();\n }", "title": "" }, { "docid": "aaaa6618b7b1ac91e2883166f04d732b", "score": "0.67041993", "text": "com.cloudera.thunderhead.service.sdxsvccommon.SDXSvcCommonProto.RdbmsInstanceOrBuilder getRdbmsOrBuilder();", "title": "" }, { "docid": "aaaa6618b7b1ac91e2883166f04d732b", "score": "0.6702421", "text": "com.cloudera.thunderhead.service.sdxsvccommon.SDXSvcCommonProto.RdbmsInstanceOrBuilder getRdbmsOrBuilder();", "title": "" }, { "docid": "72859f3821e79f89c50694d653c5894d", "score": "0.6667312", "text": "public com.cloudera.thunderhead.service.sdxsvccommon.SDXSvcCommonProto.RdbmsInstance.Builder addRdbmsInstancesBuilder() {\n return getRdbmsInstancesFieldBuilder().addBuilder(\n com.cloudera.thunderhead.service.sdxsvccommon.SDXSvcCommonProto.RdbmsInstance.getDefaultInstance());\n }", "title": "" }, { "docid": "72859f3821e79f89c50694d653c5894d", "score": "0.6667312", "text": "public com.cloudera.thunderhead.service.sdxsvccommon.SDXSvcCommonProto.RdbmsInstance.Builder addRdbmsInstancesBuilder() {\n return getRdbmsInstancesFieldBuilder().addBuilder(\n com.cloudera.thunderhead.service.sdxsvccommon.SDXSvcCommonProto.RdbmsInstance.getDefaultInstance());\n }", "title": "" }, { "docid": "6f7fa913515d1d1f05b9cbc160b84e7b", "score": "0.6655805", "text": "public java.util.List<com.cloudera.thunderhead.service.sdxsvccommon.SDXSvcCommonProto.RdbmsInstance.Builder> \n getRdbmsInstancesBuilderList() {\n return getRdbmsInstancesFieldBuilder().getBuilderList();\n }", "title": "" }, { "docid": "6f7fa913515d1d1f05b9cbc160b84e7b", "score": "0.6655805", "text": "public java.util.List<com.cloudera.thunderhead.service.sdxsvccommon.SDXSvcCommonProto.RdbmsInstance.Builder> \n getRdbmsInstancesBuilderList() {\n return getRdbmsInstancesFieldBuilder().getBuilderList();\n }", "title": "" }, { "docid": "4477e421644582c823b242deafa64e70", "score": "0.663501", "text": "public Builder clearRdbmsInstances() {\n if (rdbmsInstancesBuilder_ == null) {\n rdbmsInstances_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n } else {\n rdbmsInstancesBuilder_.clear();\n }\n return this;\n }", "title": "" }, { "docid": "4477e421644582c823b242deafa64e70", "score": "0.663501", "text": "public Builder clearRdbmsInstances() {\n if (rdbmsInstancesBuilder_ == null) {\n rdbmsInstances_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n } else {\n rdbmsInstancesBuilder_.clear();\n }\n return this;\n }", "title": "" }, { "docid": "6834ddb5c7101a884f6d854e161c6c3a", "score": "0.6621725", "text": "public Builder addAllRdbmsInstances(\n java.lang.Iterable<? extends com.cloudera.thunderhead.service.sdxsvccommon.SDXSvcCommonProto.RdbmsInstance> values) {\n if (rdbmsInstancesBuilder_ == null) {\n ensureRdbmsInstancesIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, rdbmsInstances_);\n onChanged();\n } else {\n rdbmsInstancesBuilder_.addAllMessages(values);\n }\n return this;\n }", "title": "" }, { "docid": "6834ddb5c7101a884f6d854e161c6c3a", "score": "0.6621725", "text": "public Builder addAllRdbmsInstances(\n java.lang.Iterable<? extends com.cloudera.thunderhead.service.sdxsvccommon.SDXSvcCommonProto.RdbmsInstance> values) {\n if (rdbmsInstancesBuilder_ == null) {\n ensureRdbmsInstancesIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, rdbmsInstances_);\n onChanged();\n } else {\n rdbmsInstancesBuilder_.addAllMessages(values);\n }\n return this;\n }", "title": "" }, { "docid": "3be9b4175c80f5c34b6c932e7a015182", "score": "0.65417916", "text": "public com.cloudera.thunderhead.service.sdxsvccommon.SDXSvcCommonProto.RdbmsInstanceOrBuilder getRdbmsInstanceOrBuilder() {\n if (rdbmsInstanceBuilder_ != null) {\n return rdbmsInstanceBuilder_.getMessageOrBuilder();\n } else {\n return rdbmsInstance_ == null ?\n com.cloudera.thunderhead.service.sdxsvccommon.SDXSvcCommonProto.RdbmsInstance.getDefaultInstance() : rdbmsInstance_;\n }\n }", "title": "" }, { "docid": "3be9b4175c80f5c34b6c932e7a015182", "score": "0.65417916", "text": "public com.cloudera.thunderhead.service.sdxsvccommon.SDXSvcCommonProto.RdbmsInstanceOrBuilder getRdbmsInstanceOrBuilder() {\n if (rdbmsInstanceBuilder_ != null) {\n return rdbmsInstanceBuilder_.getMessageOrBuilder();\n } else {\n return rdbmsInstance_ == null ?\n com.cloudera.thunderhead.service.sdxsvccommon.SDXSvcCommonProto.RdbmsInstance.getDefaultInstance() : rdbmsInstance_;\n }\n }", "title": "" }, { "docid": "6020a6ce968f8f23b22d569c7a35d3cd", "score": "0.6432157", "text": "@java.lang.Override\n public com.cloudera.thunderhead.service.sdxsvccommon.SDXSvcCommonProto.RdbmsInstanceOrBuilder getRdbmsOrBuilder() {\n return getRdbms();\n }", "title": "" }, { "docid": "6020a6ce968f8f23b22d569c7a35d3cd", "score": "0.6431633", "text": "@java.lang.Override\n public com.cloudera.thunderhead.service.sdxsvccommon.SDXSvcCommonProto.RdbmsInstanceOrBuilder getRdbmsOrBuilder() {\n return getRdbms();\n }", "title": "" }, { "docid": "fe0b02fa523c03f8d9459f571053ebca", "score": "0.62949187", "text": "public com.cloudera.thunderhead.service.sdxsvccommon.SDXSvcCommonProto.RdbmsInstanceOrBuilder getRdbmsOrBuilder() {\n if (rdbmsBuilder_ != null) {\n return rdbmsBuilder_.getMessageOrBuilder();\n } else {\n return rdbms_ == null ?\n com.cloudera.thunderhead.service.sdxsvccommon.SDXSvcCommonProto.RdbmsInstance.getDefaultInstance() : rdbms_;\n }\n }", "title": "" }, { "docid": "fe0b02fa523c03f8d9459f571053ebca", "score": "0.6294889", "text": "public com.cloudera.thunderhead.service.sdxsvccommon.SDXSvcCommonProto.RdbmsInstanceOrBuilder getRdbmsOrBuilder() {\n if (rdbmsBuilder_ != null) {\n return rdbmsBuilder_.getMessageOrBuilder();\n } else {\n return rdbms_ == null ?\n com.cloudera.thunderhead.service.sdxsvccommon.SDXSvcCommonProto.RdbmsInstance.getDefaultInstance() : rdbms_;\n }\n }", "title": "" }, { "docid": "e4bc077401177690b9dc2522f32eec2f", "score": "0.6243302", "text": "public com.google.protobuf.ByteString\n getRdbmsBytes() {\n java.lang.Object ref = rdbms_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n rdbms_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "e4bc077401177690b9dc2522f32eec2f", "score": "0.6242569", "text": "public com.google.protobuf.ByteString\n getRdbmsBytes() {\n java.lang.Object ref = rdbms_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n rdbms_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "e4bc077401177690b9dc2522f32eec2f", "score": "0.6242569", "text": "public com.google.protobuf.ByteString\n getRdbmsBytes() {\n java.lang.Object ref = rdbms_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n rdbms_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "458481885c3fc1cfbb014c3cc0dcc267", "score": "0.61489326", "text": "@java.lang.Override\n public com.google.protobuf.ByteString\n getRdbmsBytes() {\n java.lang.Object ref = rdbms_;\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 rdbms_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "458481885c3fc1cfbb014c3cc0dcc267", "score": "0.614883", "text": "@java.lang.Override\n public com.google.protobuf.ByteString\n getRdbmsBytes() {\n java.lang.Object ref = rdbms_;\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 rdbms_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "458481885c3fc1cfbb014c3cc0dcc267", "score": "0.614883", "text": "@java.lang.Override\n public com.google.protobuf.ByteString\n getRdbmsBytes() {\n java.lang.Object ref = rdbms_;\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 rdbms_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "title": "" }, { "docid": "1e4361126fd56df1a4ff9aa2a727ccdc", "score": "0.6086935", "text": "public Builder addRdbmsInstances(com.cloudera.thunderhead.service.sdxsvccommon.SDXSvcCommonProto.RdbmsInstance value) {\n if (rdbmsInstancesBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureRdbmsInstancesIsMutable();\n rdbmsInstances_.add(value);\n onChanged();\n } else {\n rdbmsInstancesBuilder_.addMessage(value);\n }\n return this;\n }", "title": "" }, { "docid": "1e4361126fd56df1a4ff9aa2a727ccdc", "score": "0.6086935", "text": "public Builder addRdbmsInstances(com.cloudera.thunderhead.service.sdxsvccommon.SDXSvcCommonProto.RdbmsInstance value) {\n if (rdbmsInstancesBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureRdbmsInstancesIsMutable();\n rdbmsInstances_.add(value);\n onChanged();\n } else {\n rdbmsInstancesBuilder_.addMessage(value);\n }\n return this;\n }", "title": "" }, { "docid": "6b2c85b2b9330642b013fd53b782745f", "score": "0.6034093", "text": "com.google.protobuf.ByteString\n getRdbmsBytes();", "title": "" }, { "docid": "6b2c85b2b9330642b013fd53b782745f", "score": "0.6034093", "text": "com.google.protobuf.ByteString\n getRdbmsBytes();", "title": "" }, { "docid": "6b2c85b2b9330642b013fd53b782745f", "score": "0.6034093", "text": "com.google.protobuf.ByteString\n getRdbmsBytes();", "title": "" }, { "docid": "705789921ef5d9e47c3ce4307ba8d061", "score": "0.6010724", "text": "public static String[] getInstances() {\n\t\t//JsonArray a = new JsonArray(session.getDatabaseInstances(dbName));\n\t\tString inst = Platform.getProperty(\"dtdl.instances\"); //$NON-NLS-1$\n\t\tif(StringUtil.isNotEmpty(inst)) {\n\t\t\treturn StringUtil.splitString(inst, ',', true);\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "ccb9f1c131984b5a75426012f0213c99", "score": "0.5983838", "text": "java.util.List<com.cloudera.thunderhead.service.sdxsvccommon.SDXSvcCommonProto.Instance> \n getInstancesList();", "title": "" }, { "docid": "ccb9f1c131984b5a75426012f0213c99", "score": "0.5981943", "text": "java.util.List<com.cloudera.thunderhead.service.sdxsvccommon.SDXSvcCommonProto.Instance> \n getInstancesList();", "title": "" }, { "docid": "6f1a116b2714a5834b53b7123a51f1c0", "score": "0.597858", "text": "public java.lang.String getRdbms() {\n java.lang.Object ref = rdbms_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n rdbms_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "6f1a116b2714a5834b53b7123a51f1c0", "score": "0.5978534", "text": "public java.lang.String getRdbms() {\n java.lang.Object ref = rdbms_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n rdbms_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "6f1a116b2714a5834b53b7123a51f1c0", "score": "0.5978534", "text": "public java.lang.String getRdbms() {\n java.lang.Object ref = rdbms_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n rdbms_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "title": "" }, { "docid": "c6e61c2957dedb3d8dea9baba0f6396c", "score": "0.5923649", "text": "@java.lang.Override\n public java.lang.String getRdbms() {\n java.lang.Object ref = rdbms_;\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 rdbms_ = s;\n return s;\n }\n }", "title": "" }, { "docid": "c6e61c2957dedb3d8dea9baba0f6396c", "score": "0.5923168", "text": "@java.lang.Override\n public java.lang.String getRdbms() {\n java.lang.Object ref = rdbms_;\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 rdbms_ = s;\n return s;\n }\n }", "title": "" }, { "docid": "c6e61c2957dedb3d8dea9baba0f6396c", "score": "0.5923168", "text": "@java.lang.Override\n public java.lang.String getRdbms() {\n java.lang.Object ref = rdbms_;\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 rdbms_ = s;\n return s;\n }\n }", "title": "" }, { "docid": "4765476f4a03ebecf5480052a853b3c5", "score": "0.58162767", "text": "public com.cloudera.thunderhead.service.sdxsvccommon.SDXSvcCommonProto.RdbmsInstance.Builder getRdbmsInstanceBuilder() {\n \n onChanged();\n return getRdbmsInstanceFieldBuilder().getBuilder();\n }", "title": "" }, { "docid": "4765476f4a03ebecf5480052a853b3c5", "score": "0.58162767", "text": "public com.cloudera.thunderhead.service.sdxsvccommon.SDXSvcCommonProto.RdbmsInstance.Builder getRdbmsInstanceBuilder() {\n \n onChanged();\n return getRdbmsInstanceFieldBuilder().getBuilder();\n }", "title": "" }, { "docid": "e0460f8d402a57447b6fd3894b1ef017", "score": "0.57909554", "text": "public static List getAllInstances() //used for validation\r\n\t{\r\n\t\treturn instances;\r\n\t}", "title": "" }, { "docid": "c9f0fb6690f74d51afbb3d0c068b6198", "score": "0.57815385", "text": "public Builder setRdbmsInstances(\n int index, com.cloudera.thunderhead.service.sdxsvccommon.SDXSvcCommonProto.RdbmsInstance value) {\n if (rdbmsInstancesBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureRdbmsInstancesIsMutable();\n rdbmsInstances_.set(index, value);\n onChanged();\n } else {\n rdbmsInstancesBuilder_.setMessage(index, value);\n }\n return this;\n }", "title": "" }, { "docid": "c9f0fb6690f74d51afbb3d0c068b6198", "score": "0.57815385", "text": "public Builder setRdbmsInstances(\n int index, com.cloudera.thunderhead.service.sdxsvccommon.SDXSvcCommonProto.RdbmsInstance value) {\n if (rdbmsInstancesBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureRdbmsInstancesIsMutable();\n rdbmsInstances_.set(index, value);\n onChanged();\n } else {\n rdbmsInstancesBuilder_.setMessage(index, value);\n }\n return this;\n }", "title": "" }, { "docid": "0564d0cf6d5277cfb2c5e884d50154fd", "score": "0.57344645", "text": "@java.lang.Override\n public java.util.List<com.cloudera.thunderhead.service.sdxsvccommon.SDXSvcCommonProto.Instance> getInstancesList() {\n return instances_;\n }", "title": "" }, { "docid": "0564d0cf6d5277cfb2c5e884d50154fd", "score": "0.5732444", "text": "@java.lang.Override\n public java.util.List<com.cloudera.thunderhead.service.sdxsvccommon.SDXSvcCommonProto.Instance> getInstancesList() {\n return instances_;\n }", "title": "" }, { "docid": "9ae218ac6f7b9e095fd866c7d9ace8cb", "score": "0.57281554", "text": "public Builder setRdbms(com.cloudera.thunderhead.service.sdxsvccommon.SDXSvcCommonProto.RdbmsInstance value) {\n if (rdbmsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n rdbms_ = value;\n onChanged();\n } else {\n rdbmsBuilder_.setMessage(value);\n }\n\n return this;\n }", "title": "" }, { "docid": "9ae218ac6f7b9e095fd866c7d9ace8cb", "score": "0.57258785", "text": "public Builder setRdbms(com.cloudera.thunderhead.service.sdxsvccommon.SDXSvcCommonProto.RdbmsInstance value) {\n if (rdbmsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n rdbms_ = value;\n onChanged();\n } else {\n rdbmsBuilder_.setMessage(value);\n }\n\n return this;\n }", "title": "" }, { "docid": "fde6bf7ab34ae6bd3922465c1d687d0f", "score": "0.5724329", "text": "public com.sforce.soap.enterprise.QueryResult getProcessInstances() {\n return processInstances;\n }", "title": "" }, { "docid": "58f74e92eecfec335182822b0ac7afae", "score": "0.571063", "text": "public java.util.List<com.cloudera.thunderhead.service.sdxsvccommon.SDXSvcCommonProto.Instance> getInstancesList() {\n if (instancesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(instances_);\n } else {\n return instancesBuilder_.getMessageList();\n }\n }", "title": "" }, { "docid": "58f74e92eecfec335182822b0ac7afae", "score": "0.57088846", "text": "public java.util.List<com.cloudera.thunderhead.service.sdxsvccommon.SDXSvcCommonProto.Instance> getInstancesList() {\n if (instancesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(instances_);\n } else {\n return instancesBuilder_.getMessageList();\n }\n }", "title": "" }, { "docid": "e204e5d4993f27a18c4780c1a7e16bf4", "score": "0.5618014", "text": "java.util.List<? extends com.cloudera.thunderhead.service.sdxsvccommon.SDXSvcCommonProto.InstanceOrBuilder> \n getInstancesOrBuilderList();", "title": "" }, { "docid": "e204e5d4993f27a18c4780c1a7e16bf4", "score": "0.56177664", "text": "java.util.List<? extends com.cloudera.thunderhead.service.sdxsvccommon.SDXSvcCommonProto.InstanceOrBuilder> \n getInstancesOrBuilderList();", "title": "" }, { "docid": "066bb9b1452ffda8cf99bbe789b92798", "score": "0.5597563", "text": "public boolean hasRdbmsInstance() {\n return rdbmsInstanceBuilder_ != null || rdbmsInstance_ != null;\n }", "title": "" }, { "docid": "066bb9b1452ffda8cf99bbe789b92798", "score": "0.5597563", "text": "public boolean hasRdbmsInstance() {\n return rdbmsInstanceBuilder_ != null || rdbmsInstance_ != null;\n }", "title": "" }, { "docid": "6f6238578d99dc90e23050c3cfde53f5", "score": "0.5596646", "text": "public Builder addRdbmsInstances(\n int index, com.cloudera.thunderhead.service.sdxsvccommon.SDXSvcCommonProto.RdbmsInstance value) {\n if (rdbmsInstancesBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureRdbmsInstancesIsMutable();\n rdbmsInstances_.add(index, value);\n onChanged();\n } else {\n rdbmsInstancesBuilder_.addMessage(index, value);\n }\n return this;\n }", "title": "" } ]
a26c4be461750eb80cad61e5b6efbe81
Property mutator, does nothing if not overloaded.pointsNumber.
[ { "docid": "b6ac0f407f9d702551cad245181761fc", "score": "0.6244691", "text": "public void setPointsNumber(REAL pointsNumber) { /*throw new UnsupportedOperationException();*/ }", "title": "" } ]
[ { "docid": "ae45bdfc5762642e2e9ddad2542545bf", "score": "0.5693573", "text": "public abstract double setPoints(OfflinePlayer player, double points);", "title": "" }, { "docid": "4d3b2a0ecdeb8ec9c997e06897f1ec14", "score": "0.561198", "text": "void setPoints(int points);", "title": "" }, { "docid": "b09b873b8218347393e418e09e507047", "score": "0.5598379", "text": "public void setPoints(int points){\n this.points = points;\n }", "title": "" }, { "docid": "c85629f12b58cc4ecbbb08e46756cfba", "score": "0.5541055", "text": "public void mutated();", "title": "" }, { "docid": "234095e401a9886b0039621d3c5e0019", "score": "0.5501891", "text": "@java.lang.Override\n public boolean hasPointsPerPick() {\n return ((bitField0_ & 0x00000040) != 0);\n }", "title": "" }, { "docid": "66a8527ceb2b81afb0b48e4cfdc42e80", "score": "0.54573613", "text": "public REAL getPointsNumber() { return REALnull.NI; /* should be NA, but that causes trouble for string-literal hibernated properties. */ }", "title": "" }, { "docid": "74c85eeaab58e20403e7d0ecd5527d08", "score": "0.54403967", "text": "@java.lang.Override\n public boolean hasPointsPerPick() {\n return ((bitField0_ & 0x00000100) != 0);\n }", "title": "" }, { "docid": "2a32e24d79980866f277be865296364f", "score": "0.54278195", "text": "@Test\n public void testSetOldPosition() {\n lp = new LinearPotentiometer();\n int r = lp.getOldPosition();\n lp.setOldPosition(100);\n assertNotEquals(r, lp.getOldPosition());\n assertEquals(lp.getOldPosition(), 100);\n }", "title": "" }, { "docid": "74ecc0b79b8044b5c9efc60660335137", "score": "0.5420639", "text": "@java.lang.Override\n public boolean hasMsperpoint() {\n return ((bitField0_ & 0x00000004) != 0);\n }", "title": "" }, { "docid": "e0dea3ae37a41c4f50d784f5324bf066", "score": "0.5398401", "text": "@java.lang.Override\n public boolean hasMsperpoint() {\n return ((bitField0_ & 0x00000004) != 0);\n }", "title": "" }, { "docid": "ed0abcd15cb7dd7638df8f8f6de71b96", "score": "0.52961874", "text": "public void setX(int x) {this.x = x; }", "title": "" }, { "docid": "4710166f4443263e79c7ad8fd9b89c84", "score": "0.5262278", "text": "@Test\n public void testSetPosition() {\n lp = new LinearPotentiometer();\n int r = lp.getPosition();\n lp.setPosition(100);\n assertNotEquals(r, lp.getPosition());\n assertEquals(lp.getPosition(), 100);\n }", "title": "" }, { "docid": "dfa23b3c67530aac00128dde22e618bc", "score": "0.52547127", "text": "@JsonGetter(\"points_multiplier\")\r\n @JsonInclude(JsonInclude.Include.NON_NULL)\r\n @JsonSerialize(using = OptionalNullable.Serializer.class)\r\n protected OptionalNullable<Integer> internalGetPointsMultiplier() {\r\n return this.pointsMultiplier;\r\n }", "title": "" }, { "docid": "06b6c8332caf7766263df136fafafa31", "score": "0.52428246", "text": "public void setXY(Point pxy) {\r\n\t\txy = pxy; // saying xy = pxy\r\n\t}", "title": "" }, { "docid": "468df8337d9a638e771ea852970bf7a9", "score": "0.52265966", "text": "public void setPoint(Integer point) {\n this.point = point;\n }", "title": "" }, { "docid": "6ce9bed361a94310848daf95fd1fefdb", "score": "0.52162325", "text": "public void setNumber1(Double number1) {\n this.number1 = number1;\n }", "title": "" }, { "docid": "c36e57a995f4858687220cab480da4bd", "score": "0.52107364", "text": "public void setNumber(Number number);", "title": "" }, { "docid": "e582fe91c21ce1fe995c222a88ec940c", "score": "0.52016145", "text": "protected final void setProperty() {\n\t\tif (currentValueValid && editable) {\n\t\t\tif (setMethod != null) {\n\t\t\t\ttry {\n\t\t\t\t\tsetMethod.invoke(target, currentObjectValue);\n\t\t\t\t} catch (IllegalArgumentException e) {\n\t\t\t\t\tlogger.error(\"Unable to set property\", e);\n\t\t\t\t} catch (IllegalAccessException e) {\n\t\t\t\t\tlogger.error(\"Unable to set property\", e);\n\t\t\t\t} catch (InvocationTargetException e) {\n\t\t\t\t\tlogger.error(\"Unable to set property\", e);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "b6f4226f3a64aee38aae3c5455dfecfe", "score": "0.5169238", "text": "public int getPoints(){\n return this.points;\n }", "title": "" }, { "docid": "c1f0cb22a81b4929d5f1ed249bcde67b", "score": "0.5167456", "text": "protected int getPoints() \r\n {\r\n return points;\r\n }", "title": "" }, { "docid": "91e130f8b0379ad6f17b477dbc9c2609", "score": "0.51166826", "text": "public void invalidateProperties ()\n {\n _property = _argumentProperty = INVALID_PROPERTY;\n }", "title": "" }, { "docid": "8a617113808bff49f552939f5e8c6ca4", "score": "0.5091971", "text": "public boolean hasPoint() {\n return ((bitField0_ & 0x00000010) == 0x00000010);\n }", "title": "" }, { "docid": "913fb6a6d1e768aaf0d50efdd5a8bd25", "score": "0.50899607", "text": "public boolean hasPoint() {\n return ((bitField0_ & 0x00000010) == 0x00000010);\n }", "title": "" }, { "docid": "78709702e46b863b2a533df1dff81847", "score": "0.50888455", "text": "public int getPoints(){\n return points;\r\n }", "title": "" }, { "docid": "a9d8247b0d6c010f77b887bbe8b5915d", "score": "0.50763315", "text": "public void usePoint() {\n _pts++;\n resetMax();\n }", "title": "" }, { "docid": "f6dd034d03e420fddb0f8c8aa87c8257", "score": "0.506097", "text": "public abstract void set(float x, float y);", "title": "" }, { "docid": "e0b676f38eccf958ced4e9207eaf5b73", "score": "0.50575024", "text": "@Override\n public void setProperty(int arg0, Object arg1) {\n\n }", "title": "" }, { "docid": "b6cdf581d595bdc7a9fdf1aa275ee197", "score": "0.5056315", "text": "private Points() {\r\n\t\t// initialization with default values\r\n\t\treset();\r\n\t}", "title": "" }, { "docid": "55e0e35d6eaa2c2d81ab725a2b82cb2c", "score": "0.5054375", "text": "public void changePoints(double inc){\n points += inc;\r\n }", "title": "" }, { "docid": "fd9152184ad18d586469b9bcd2c9ff92", "score": "0.5049883", "text": "public abstract void setPawns();", "title": "" }, { "docid": "f239d8f6c77861df82eb6bd29aa3833a", "score": "0.5047709", "text": "@Override\r\n\tpublic int update(Persona p) {\n\t\treturn 0;\r\n\t}", "title": "" }, { "docid": "de7dd5796c15302755f7f9d5a9c4191b", "score": "0.50320166", "text": "public void setPosition(Point p);", "title": "" }, { "docid": "11347dbbbe803291fe57f771da310656", "score": "0.50083286", "text": "protected void addToPoints(int num) {\r\n\t\tpoints += num;\r\n\t}", "title": "" }, { "docid": "0976c5579fd436085b649096fb2ede0a", "score": "0.50013256", "text": "@Override\r\n\tpublic void setProperty(int arg0, Object arg1) {\n\t\t\r\n\t}", "title": "" }, { "docid": "5614fe14bbd13b1e47b42dfa9a7c84c7", "score": "0.49975616", "text": "public int getPointsAllowed() {\n return pointsAllowed;\n }", "title": "" }, { "docid": "45bb42ad6f11178c84ad4b4319f89e05", "score": "0.49908546", "text": "private void resetPoints()\r\n\t{\r\n\t\tpoints = 0;\r\n\t\tview.updatePoints(0);\r\n\t}", "title": "" }, { "docid": "3f1850379d58ee240f5bbed43b930385", "score": "0.49907994", "text": "public void setPosicion(Point posicion)\n {\n ...\n }", "title": "" }, { "docid": "87ad02462639c6176d26c97c5dc71855", "score": "0.49841192", "text": "public int getPoints()\n {\n return _points;\n }", "title": "" }, { "docid": "f1ffe6409ec960245f2a1aca004383f1", "score": "0.4984025", "text": "default boolean isSetter() { return !isGetter(); }", "title": "" }, { "docid": "f06b359f287569fe8d797c0c934e1e83", "score": "0.49834174", "text": "protected final void setPoints(Point[] thePoints) {\r\n\t\tthis.points = thePoints;\r\n\t}", "title": "" }, { "docid": "8b6401c2efae657fe56be0d8c35bb9f0", "score": "0.49697372", "text": "@Override\n\tprotected void updateProperty(String id, Object oldValue, Object value) {\n\n\t}", "title": "" }, { "docid": "b25e0a894662d165e49e60420b0f247a", "score": "0.49643692", "text": "public void setUpdatePeri(int v) \n {\n \n if (this.updatePeri != v)\n {\n this.updatePeri = v;\n setModified(true);\n }\n \n \n }", "title": "" }, { "docid": "f66087612357df0ca3b3facab1fb7e54", "score": "0.49557513", "text": "public int getPoints() {\n return this.points;\n }", "title": "" }, { "docid": "b76875ccc8dc54caafc80e8c4854e182", "score": "0.49453843", "text": "int mutator() {\n\t\t\tthis.num = 34;\n\t\t\treturn 56;\n\t\t}", "title": "" }, { "docid": "3eb160fa14af1efefe94f9d17c4fcf3a", "score": "0.49453595", "text": "void canBeModified() { }", "title": "" }, { "docid": "b8775885654dd48be883c3dfffa12013", "score": "0.4942596", "text": "@Override\r\n\tpublic int update(Personas p) {\n\t\treturn 0;\r\n\t}", "title": "" }, { "docid": "ed8a8f73a6315e9da2445025669ed9cb", "score": "0.4938577", "text": "public void setPoint(int point) {\n this.point = point;\n }", "title": "" }, { "docid": "25599f156dfdbf0e480c5ac210f9fd95", "score": "0.49365878", "text": "public interface NumberUpdatable\r\n{\r\n\t/**\r\n\t * Updates the class with the specified double\r\n\t * \r\n\t * @param value the raw value, interpreted by the implementing class\r\n\t */\r\n\tpublic void update(double value);\r\n\t\r\n\t/**\r\n\t * Returns the value displayed by the class.\r\n\t * \r\n\t * @return the value displayed by the class\r\n\t */\r\n\tpublic double getValue();\r\n}", "title": "" }, { "docid": "b202b5e249f2bac52e20ba20778d8bef", "score": "0.49349567", "text": "private void newPoints()\r\n\t{\r\n\t\tpoints += difficulty;\r\n\t\tview.updatePoints(++points);\r\n\t}", "title": "" }, { "docid": "bbfb47d9cf207868156f6b36fa3b6783", "score": "0.49240902", "text": "public int getPoints(){\r\n\t\treturn points;\r\n\t}", "title": "" }, { "docid": "37193a3446aeebf782f13b3b51cef988", "score": "0.4912167", "text": "public void setPoint( Float point ) {\n this.point = point;\n }", "title": "" }, { "docid": "b45eb5cf1f6f8f3c4fff86ed07e62594", "score": "0.49114424", "text": "public boolean hasSideEffectsOtherThanGetters();", "title": "" }, { "docid": "e907bf9977d23009e28435cc10b2ff1a", "score": "0.49082536", "text": "public abstract void setSpeed(double newSpeed);", "title": "" }, { "docid": "6b8606b2cf59266dc1d2e07b35dcfec0", "score": "0.49071327", "text": "@Override\n\tpublic void update(Property property) {\n\t\t\n\t}", "title": "" }, { "docid": "54426e5fcd2eaf9f565cbea408ec9d7f", "score": "0.4900834", "text": "public abstract void setPONumber(String PONumber);", "title": "" }, { "docid": "f6a499fd0a6e5cb3f01fd580cea0ffde", "score": "0.48860466", "text": "@java.lang.Override\n public int getPointsPerPick() {\n return pointsPerPick_;\n }", "title": "" }, { "docid": "44a913c96dfce84907989c0e300af481", "score": "0.4884035", "text": "public int getPoints(){\n\t\treturn points;\n\t}", "title": "" }, { "docid": "2162ed7a2bbe1313487b4c55eb8ff902", "score": "0.48825222", "text": "public synchronized void resetPoints() {\n points = null;\n }", "title": "" }, { "docid": "2bf2d4dc1e28d48621e1a3c7b48610c8", "score": "0.4879385", "text": "public static void setPlus(BoardPoint p) {\n }", "title": "" }, { "docid": "601cae51fe62f7c5065458cee8069700", "score": "0.48623192", "text": "public Builder clearPoint() {\n bitField0_ = (bitField0_ & ~0x00000010);\n point_ = 0;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "5277bec3a662f7a76947380893892a5e", "score": "0.48595417", "text": "public void addPoints() {\r\n\t\tscore.addPoints();\r\n\t\tchangedScore = false;\r\n\t}", "title": "" }, { "docid": "202c68f824a308ce365bada0df10a674", "score": "0.48506355", "text": "public int getPointsToGive() {return pointsToGive; }", "title": "" }, { "docid": "09e79c500cfceb7a1266402a4618c4d6", "score": "0.48489755", "text": "public int getPoints() {\n return points;\n }", "title": "" }, { "docid": "09e79c500cfceb7a1266402a4618c4d6", "score": "0.48489755", "text": "public int getPoints() {\n return points;\n }", "title": "" }, { "docid": "09e79c500cfceb7a1266402a4618c4d6", "score": "0.48489755", "text": "public int getPoints() {\n return points;\n }", "title": "" }, { "docid": "bcf1e65de37173e03fa4e81c98c7c00c", "score": "0.48477185", "text": "@Override\n\tpublic int updateByPrimaryKeySelective(Point record) {\n\t\treturn pointMapper.updateByPrimaryKeySelective(record);\n\t}", "title": "" }, { "docid": "2e212b2ecacff7ed7816a2041367140a", "score": "0.4843245", "text": "@Override\n\tpublic Object getPoint(){\n\t\treturn point;\n\t}", "title": "" }, { "docid": "5a91e8b816d02e36de16a539b0c8359e", "score": "0.48413098", "text": "void setX(int x) {\n this.x = x;\n }", "title": "" }, { "docid": "5a91e8b816d02e36de16a539b0c8359e", "score": "0.48413098", "text": "void setX(int x) {\n this.x = x;\n }", "title": "" }, { "docid": "2e169144b293d74cad84b8e4ae5600c6", "score": "0.48404625", "text": "public Builder clearPointsPerPick() {\n bitField0_ = (bitField0_ & ~0x00000100);\n pointsPerPick_ = 0;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "75154252974a3aa85e19c4612de3c539", "score": "0.48371768", "text": "public List<Point> getPoints ()\r\n {\r\n return Collections.unmodifiableList(points);\r\n }", "title": "" }, { "docid": "5bd6da1646896e818e157dba59d299de", "score": "0.48371544", "text": "public void setBump(){\n //TODO\n }", "title": "" }, { "docid": "1f26ad7cdbba6cd86335a4520b7a02ce", "score": "0.48339188", "text": "public double getPoints() {\r\n\t\treturn points;\r\n\t}", "title": "" }, { "docid": "c3a591df4f20529d935fe7b99fc6c4b7", "score": "0.48284382", "text": "@java.lang.Override\n public boolean hasXpPoints() {\n return ((bitField0_ & 0x00000001) != 0);\n }", "title": "" }, { "docid": "578bef92f6402a3f094b1e379cb91a9c", "score": "0.4824701", "text": "@JsonIgnore\r\n public Integer getPointsMultiplier() {\r\n return OptionalNullable.getFrom(pointsMultiplier);\r\n }", "title": "" }, { "docid": "5e16ad456212f5fb66fd2e6d5e94374f", "score": "0.48191223", "text": "public void setProperty(int arg0, Object arg1) {\n\t\t\r\n\t}", "title": "" }, { "docid": "985646f316e56964a098c7b2dba55a29", "score": "0.48164666", "text": "public int getPoints() {\n return this.points;\n }", "title": "" }, { "docid": "1ef64304eb8f9d30cb7d883cc15e2f9f", "score": "0.48121363", "text": "public GeoPoint() {\n set(0,0);\n }", "title": "" }, { "docid": "137471cf48cbccd227606ef054f5475c", "score": "0.4807034", "text": "public void setLocation(Point point);", "title": "" }, { "docid": "683d6fd6f7dd2b40283c342ba974196b", "score": "0.4797883", "text": "public final void setPoint(PhotometryPoint point) {\n PhotometryPoint oldPoint = this.point;\n this.point = point;\n propertyChangeSupport.firePropertyChange(PROP_POINT, oldPoint, point);\n }", "title": "" }, { "docid": "9b01a2ac0d4c3a0613d33cc2022ab296", "score": "0.47954816", "text": "@java.lang.Override\n public boolean hasXpPoints() {\n return ((bitField0_ & 0x00000001) != 0);\n }", "title": "" }, { "docid": "5caa418ae15a5d32c4c1e62d6babeb69", "score": "0.47896016", "text": "private void setX(double p_x)\n {\n this.x = p_x;\n }", "title": "" }, { "docid": "10ff9bb851e5759d711911a39e7c0014", "score": "0.47842008", "text": "public Builder setPoint(int value) {\n bitField0_ |= 0x00000010;\n point_ = value;\n onChanged();\n return this;\n }", "title": "" }, { "docid": "58035cdbb104690decbd50063b331af3", "score": "0.47837883", "text": "public void setNumberOfPoints(int newValue) {\n\t\tpoints = newValue;\n\t\tcalculateEnd();\n\t}", "title": "" }, { "docid": "09abdf882f9e32c8efee699818634c0d", "score": "0.47793546", "text": "public boolean getMaybeOverloadedGetter () {\r\n // An overloaded getter property would have one getter and no setters,\r\n // since the convention would be to write the overloaded setter on the\r\n // main property, not the \"As...\" property.\r\n if (getters.size() != 1 || setters.size() != 0) return false;\r\n\r\n // An overloaded getter would have a different overloaded name.\r\n // Note that we can use object identity here.\r\n if (name == nameWithoutOverload) return false;\r\n\r\n // In principle, the As... part should be a reference to the return\r\n // type of the getter (e.g. AsString). But that won't necessarily be\r\n // true, so we don't check it.\r\n return true;\r\n }", "title": "" }, { "docid": "087664cf1841b9de58b148e42471699f", "score": "0.47790036", "text": "public int getPoints() {\r\n\t\treturn points;\r\n\t}", "title": "" }, { "docid": "25e86ad5f6555c13058ab3ba31f196aa", "score": "0.4773384", "text": "public void setPoints(String points) {\n this.points = points == null ? null : points.trim();\n }", "title": "" }, { "docid": "61e6e9534b9e3fe7c9e46f7f5a10f98f", "score": "0.47733092", "text": "public Pointing(float points)\n\t{\n\t\tsuper(UtilConfig.NO_KEY, Tools.generateUniqueKey());\n\t\tthis.points = points;\n\t}", "title": "" }, { "docid": "8becc3761ce06a1197d41a9a92f2ec53", "score": "0.47725654", "text": "public void setPoint(Object point) {\n\t\tthis.point = point;\n\t}", "title": "" }, { "docid": "7a7350bbc018420ce0309b5a19409a50", "score": "0.47691134", "text": "@java.lang.Override\n public int getPointsPerPick() {\n return pointsPerPick_;\n }", "title": "" }, { "docid": "802d92d5858f9917bcf4fad1b40fe517", "score": "0.47673768", "text": "public SimplePoint (SimplePoint point)\r\n {\r\n super(point);\r\n }", "title": "" }, { "docid": "52ba80bb075aae7269a1bb7e3d6ff10d", "score": "0.47614646", "text": "public void setLotteryPoint(Integer lotteryPoint) {\n this.lotteryPoint = lotteryPoint;\n }", "title": "" }, { "docid": "9f3528c52b7d7955f99ec7dbcf13c137", "score": "0.47574395", "text": "@Override\n\tpublic void setPoint(ObstacleBase o, Player player) {\n\t\tint point = o.getValue() * DESTROY;\n\t\tplayer.setScore(player.getScore() + point);\n\t}", "title": "" }, { "docid": "adfce786f87b6bcfa242b6c748ba73f4", "score": "0.47566026", "text": "public void set(double x, double y) {\n this.x = x;\n this.y = y;\n }", "title": "" }, { "docid": "347c3d6d52d6a5b14648459e00f4b7d2", "score": "0.47542474", "text": "@Override\n\tpublic boolean update(Sport obj) {\n\t\treturn false;\n\t}", "title": "" }, { "docid": "349c1e469a27922589b22833aba9bbc1", "score": "0.47532612", "text": "@Override\n\tpublic void set(double speed) {\n\t\tsuper.set(speed);\n\t}", "title": "" }, { "docid": "ec43deb2d48e41e2ea04af618ffa8c85", "score": "0.475279", "text": "private void setPoints(double[] points) {\n this.points = new Point[numberOfPoints];\n for (int i = 0; i <numberOfPoints ; i++) {\n if( i == 0 || i == numberOfPoints -1){\n\n this.points[i]= new Point(points[i], 0);\n }\n else{\n\n this.points[i]= new Point(points[i], 1);\n\n }\n }\n }", "title": "" }, { "docid": "e2b1383fbe0880c82d1d720a5bf22dd8", "score": "0.47525665", "text": "@Override\n public void setX(double x) {\n this.x = x;\n }", "title": "" }, { "docid": "939a235bb3754a165efbd189fb0e0dfb", "score": "0.47480056", "text": "public void pointsReset () {\n pointsForTeamA = 0;\n displayForTeamA(pointsForTeamA);\n pointsForTeamB = 0;\n displayForTeamB(pointsForTeamB);\n }", "title": "" }, { "docid": "2070ff3831ffbc66836809b1fbb7b588", "score": "0.4743621", "text": "public void setPoint(Point pointA){\n\t\ta = pointA;\n\t\t\n\t}", "title": "" } ]
72792afe2cb654b17ed85b80afab6970
This program reads the integers between 1 and 100 and counts the occurrences of each. Initialize array.
[ { "docid": "0a1ad5ef4173f95a8581f35618ad2835", "score": "0.6615054", "text": "public static void main(String[] args) {\n\t\tint[] counts = new int[100]; \r\n\t\t\r\n\t\t// Welcome the user.\r\n\t\t\r\n\t\tSystem.out.println(\"Welcome to the Occurrence Counter Program.\");\r\n\t\tSystem.out.println(\"This program counts the occurrences of the numbers you enter.\");\r\n\r\n\t\t// Prompt the user to enter integers between 1 and 100\r\n\t\tSystem.out.print(\"Please enter integers between 1 and 100 with 0 being your last entry: \");\r\n\r\n\t\t// Call count method.\r\n\t\tcount(counts);\r\n\r\n\t\t// Display results.\r\n\t\tfor (int i = 0; i < counts.length; i++) {\r\n\t\t\tif (counts[i] > 0)\r\n\t\t\t\tSystem.out.println((i + 1) + \"\\t\" + \" occurs \" + counts[i] +\r\n\t\t\t\t\t\" time\" + (counts[i] > 1 ? \"s\" : \"\"));\r\n\t\t}\r\n\t}", "title": "" } ]
[ { "docid": "47e224768b27fcf777c9981891454bf3", "score": "0.7229877", "text": "public static void main(String[] args) {\n Scanner scanner = new Scanner (System.in);\n int n = scanner.nextInt();\n int[] counts = new int[100];\n for ( int i = 0; i < 100; ++i )\n counts[i] = 0;\n for ( int i = 0; i < n; ++i ) {\n int x = scanner.nextInt();\n ++counts[x];\n }\n scanner.close();\n for ( int i = 0; i < 100; ++i ) System.out.print( counts[i] + \" \" );\n System.out.println();\n }", "title": "" }, { "docid": "fa362d2c2e958a6d30def7aa2bd0cd97", "score": "0.71709657", "text": "public static void count(int[] counts){\r\n\t\tScanner input = new Scanner(System.in);\r\n\t\tint number; // holds user input\r\n\t\tdo {\r\n\t\t\tnumber = input.nextInt();\r\n\t\t\tif (number >= 1 && number <= 100)\t\r\n\t\t\t\tcounts[number - 1]++;\r\n\t\t} while (number != 0);\r\n\t\t\r\n\t}", "title": "" }, { "docid": "cf4ae68f41b001a29c75965b6452c8d2", "score": "0.694891", "text": "public static void main(String[] args) {\n\t\tScanner input = new Scanner(System.in);\r\n\t\tint i;\r\n\t\tint [] mylist =new int[150];\r\n\t\tSystem.out.print(\"Enter the integers between 1 and 100: \");\r\n\t\tint number = input.nextInt();\r\n\t\twhile(number!=0) {\r\n\t\t\tif (number <= 100 && number >= 0) {\r\n\t\t\t\tmylist[number]=mylist[number]+1;\r\n\t\t\t}\r\n\t\t\tnumber = input.nextInt();\r\n\t\t}\r\n\t\tif(number==0) {\r\n\t\t\tfor(i=1;i<=100;i++) {\r\n\t\t\t\tif(mylist[i]==1) {\r\n\t\t\t\t\tSystem.out.println(i +\" occurs \" +mylist[i] +\" time\");\r\n\t\t\t\t}\r\n\t\t\t\tif(mylist[i]>1) {\r\n\t\t\t\t\tSystem.out.println(i +\" occurs \" +mylist[i] +\" times\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "630664a8cc4a6cc9ba1851dfff2d7762", "score": "0.6616083", "text": "public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n while (scanner.hasNext()) {\n int n = scanner.nextInt();\n int[] A = new int[n];\n for (int i = 0; i < n; i++) {\n A[i] = scanner.nextInt();\n }\n System.out.println(count(A, n));\n }\n }", "title": "" }, { "docid": "7ba8e9e8ac464dbc39a2e938889da723", "score": "0.6547754", "text": "public static int[] count(int[] array){\n //Initialize variables for each digit.\n int count1 = 0;\n int count2 = 0;\n int count3 = 0;\n int count4 = 0;\n int count5 = 0;\n int count6 = 0;\n int count7 = 0;\n int count8 = 0;\n int count9 = 0;\n //For each item in the array, check which number it is.(1-9)\n //Increase that number count by 1.\n for(int i = 0; i < (array.length); i++){\n if(array[i] == 1){\n count1 ++;\n }\n else if(array[i] == 2){\n count2 ++;\n }\n else if(array[i] == 3){\n count3 ++;\n }\n else if(array[i] == 4){\n count4 ++;\n }\n else if(array[i] == 5){\n count5 ++;\n }\n else if(array[i] == 6){\n count6 ++;\n }\n else if(array[i] == 7){\n count7 ++;\n }\n else if(array[i] == 8){\n count8 ++;\n }\n else if(array[i] == 9){\n count9 ++;\n }\n }\n\n //Assign the counter amount into the array\n int[] amounts = {count1, count2, count3, count4, count5, count6, count7, count8, count9};\n\n //return the array\n return(amounts);\n }", "title": "" }, { "docid": "0f04ce6194c600dc8128cefe165b4b93", "score": "0.6468262", "text": "public static void main(String[] args) throws IOException {\n\t\tint n = readInt(), m = readInt();\n\t\tint[] freq = new int[m+1];\n\t\tint total = 0;\n\t\tint count = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tint x = readInt();\n\t\t\tfreq[x]++;\n\t\t\tif (freq[x] == 1) {\n\t\t\t\ttotal++;\n\t\t\t}\n\t\t\tif (total == m) {\n\t\t\t\tcount++;\n\t\t\t\ttotal = 0;\n\t\t\t\tArrays.fill(freq, 0);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count+1);\n\t}", "title": "" }, { "docid": "b7b25a708367ee48527bbf3f814536ae", "score": "0.6339671", "text": "public static int[] histogram (int[] ages)\n {\n \t// If ages array has no elements, return an array that has one element of 0 to show that no ages were contained in the ages array\n \t\n \tif(ages.length == 0)\n \t{\n \t\tint[] agesCount = new int[1];\n \t\tagesCount[0] = 0;\n \t\treturn agesCount;\n \t}\n \t\n \t// Find maximum age in the ages array to then determine size of the list that will be returned\n \t\n \tint maxAge = ages[0];\n \t\n \tfor(int i = 1; i < ages.length; i++)\n \t\tif(ages[i] > maxAge)\n \t\t\tmaxAge = ages[i];\n \t\n \tint arraySize = maxAge + 1;\n \t\n \t// Create the array that will be returned based on the size determined above\n \t\n \tint[] agesCount = new int[arraySize];\n \t\n \t// Loop through the ages array and increment the agesCount array depending on the values taken from the ages array\n \t\n \tfor (int temp : ages)\n\t\t\tagesCount[temp] += 1;\n \t\n return agesCount; // You will write this method as part of programming assignment #7. \n }", "title": "" }, { "docid": "07f110adcf736e4ec8bda32dd0261c4e", "score": "0.6315321", "text": "public static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\r\n\t\t\tSystem.out.println(\"Enter the numbers \");\r\n\t\t\tint[] counts=new int[10];\r\n\t\t\tint num;\r\n\t\t\tfor(int i=0;i<10;i++) {\r\n\t\t\t\tcounts[(int)(Math.random()*10)]++;\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\"Count for each number 0 and 9\");\r\n\t\t\tfor(int i=0;i<counts.length;i++) {\r\n\t\t\t\tSystem.out.println(i+ \"s: \"+counts[i]);\r\n\t\t\t}\r\n\t}", "title": "" }, { "docid": "6261a38c1ee71a0764c325e9185249fc", "score": "0.6232586", "text": "public static int[] histogram(int[] scores, int numCounters)\n {\n int[] hist = new int[numCounters];\n for(int score:scores)\n {\n hist[score]++;\n }\n return hist;\n }", "title": "" }, { "docid": "b3ab976ebfa75bbc28c0b3597f03756d", "score": "0.61612904", "text": "public static void main(String[] args) {\n\t\tint arr[] = {1,5,3,1,2,5,7};\r\n\t\t//all elements are in range 1 to N (7 here)\r\n\t\t//find frequency of each element in O(N) and space complexity 1.\r\n\t\tfor(int i = 0; i < arr.length; i++) {\r\n\t\t\t//add any random number (say 10, greater than length)\r\n\t\t\t//to index 1 less than arr[i]\r\n\t\t\t//%10 to prevent overflow in case value comes out to be greater than allowed length\r\n\t\t\tarr[arr[i]%10 - 1] += 10;\r\n\t\t}\r\n\t\tfor(int i = 0; i < arr.length; i++) {\r\n\t\t\tSystem.out.println(\"Frequency of \" +(i+1) +\" is \"+ (arr[i]/10));\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "b6fd75dc64cc587bffa89308d5c00eb8", "score": "0.61176014", "text": "public static void main(String[] args) {\n\n\t\tint arr[] = { 2, 3, 3, 2, 5 };\n\t\tfindCounts(arr, arr.length);\n\n\t\tint arr1[] = { 1 };\n\t\tfindCounts(arr1, arr1.length);\n\n\t\tint arr3[] = { 4, 4, 4, 4 };\n\t\tfindCounts(arr3, arr3.length);\n\n\t\tint arr2[] = { 1, 3, 5, 7, 9, 1, 3, 5, 7, 9, 1 };\n\t\tfindCounts(arr2, arr2.length);\n\n\t\tint arr4[] = { 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3 };\n\t\tfindCounts(arr4, arr4.length);\n\n\t\tint arr5[] = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 };\n\t\tfindCounts(arr5, arr5.length);\n\n\t\tint arr6[] = { 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1 };\n\t\tfindCounts(arr6, arr6.length);\n\t}", "title": "" }, { "docid": "11bfd82f91fc7ecdd1d44b5aeaba0045", "score": "0.6094562", "text": "public static void main(String[] args) {\r\n\r\n\t\tint n=439;\r\n\r\n\t\tint count = 1;\r\n\t\tint binary[] = new int[32];\r\n\t\tint i = 0;\r\n\t\twhile (n > 0) {\r\n\t\t\tbinary[i] = n % 2;\r\n\t\t\tn = n / 2;\r\n\t\t\ti++;\r\n\t\t}\r\n\r\n\t\tfor (int j = i - 1; j >= 0; j--) {\r\n\r\n\t\t\tString str = String.valueOf(i);\r\n\t\t\t\r\n\t\tString ar[]=str.split(\"0\");\r\n\t\t\t\r\n\t\tif(ar.length>1)\r\n\t\t{\r\n\t\t\tcount++;\r\n\t\t}\r\n\t\t/*\t\r\n\t\t\tif (binary[j] == 1 && binary[j + 1] == 1) {\r\n\t\t\t\tcount++;\r\n\t\t\t}\r\n\r\n\t\t\tSystem.out.print(binary[j]);\r\n*/\r\n\t\t}\r\n\t\tSystem.out.print(count);\r\n\t\t/*scanner.close();*/\r\n\t}", "title": "" }, { "docid": "c3bf02e3be1958d605f25075f5d2043e", "score": "0.6071446", "text": "public static void main(String[] args) {\n\t\tint a[] = {3,4,4,6,1,4,4};\n\t\tint counter[] = new int[5];\n\t\tint max_counter = 0;\n\t\tint start_line = 0;\n\t\tfor(int i=0;i<a.length;i++) {\n\t\t\n\t\t\tint x = a[i] - 1;\n\t\t\t\n\t\t\tif(a[i] > counter.length) {\n\t\t\t\t//max counter\n\t\t\t\tstart_line = max_counter;\n\t\t\t}else {\n\t\t\t\tif(counter[x] < start_line) {\n\t\t\t\t\tcounter[x] = counter[x] + start_line;\n\t\t\t\t}\n\t\t\t\t\tcounter[x]++;\n\t\t\t\t\t\n\t\t\t\t\tif(counter[x] > max_counter) {\n\t\t\t\t\t\tmax_counter = counter[x];\n\t\t\t\t\t}\n\t\t\t}\t\n\t\t}\n\t\t\n\t\tfor(int i=0;i<counter.length;i++) {\n\t\t\tif(counter[i] < start_line) {\n\t\t\t\tcounter[i] = start_line;\n\t\t\t}\n\t\t\t\t\n\t\t}\n\t\t\n\t\tSystem.out.println(Arrays.toString(counter));\n\t\t\n\t\t\n\t}", "title": "" }, { "docid": "81a0e1ae13250b8df14053b94555a97b", "score": "0.6049931", "text": "public static void countingSort(int[] input) {\n int max = getMax(input);\n\n // Do counting sort for every digit. Note that instead\n // of passing digit number, exp is passed. exp is 10^i\n // where i is current digit number\n for (int exp = 1; (max / exp) > 0; exp *= 10) {\n count(input, exp);\n if (exp >= 1000000000) {\n break;\n }\n }\n }", "title": "" }, { "docid": "78c56b905dc16b65805037ef607684dc", "score": "0.6033139", "text": "private static int findSpecialInteger(int[] arr) {\n int percentage = (arr.length * 25) / 100;\n int[] count = new int[100000];\n for (int i=0; i < arr.length; i++) {\n count[arr[i]]++;\n }\n for (int j =0; j < count.length; j++) {\n if (count[j] > percentage) {\n return j;\n }\n }\n return 0;\n }", "title": "" }, { "docid": "35310c2a9b96de7eb1306deeb923f11c", "score": "0.6000355", "text": "static int[] countBits(int num){\n\t\t\n\t\tint[] result = new int[num+1];\n\t\t\n\t\tfor(int i = 0 ; i <= num; i++){\n\t\t\tresult[i] = countEach(i);\n\t\t\tSystem.out.print(result[i]+\" \");\n\t\t}\n\t\treturn result;\n\t}", "title": "" }, { "docid": "1dff5e1e65e3dea3b443b3cfab758881", "score": "0.5997851", "text": "public static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\r\n\t\t//System.out.println(Integer.toBinaryString(31));\r\n\t\tint n = in.nextInt();\r\n\t\tint[] arr = new int[n];\r\n\t\tfor(int i = 0 ;i < n; i++) {\r\n\t\t\tarr[i] = in.nextInt();\r\n\t\t}\r\n\t\tArrays.sort(arr);\r\n\t\tint[] arr1 = new int[n];\r\n\t\tint co = 0;\r\n\t\tfor(int i = n- 1; i >= 0; i--) {\r\n\t\t\tarr1[co++] = arr[i];\r\n\t\t}\r\n\t\tString[] str = new String[n];\r\n\t\tfor(int i = 0; i < n; i++) {\r\n\t\t\tstr[i] = Integer.toBinaryString(arr1[i]);\r\n\t\t}\r\n\t\tint[] countArr = new int[n];\r\n\t\tint[] countArr1 = new int[n];\r\n\t\tTreeSet<Integer> set = new TreeSet<Integer>(); \r\n\t\tfor(int i = 0; i < n; i++) {\r\n\t\t\tcountArr[i] = 0;\r\n\t\t\tfor(int j = 0; j < str[i].length(); j++) {\r\n\t\t\t\tif(String.valueOf(str[i].charAt(j)).equals(\"1\")) {\r\n\t\t\t\t\tcountArr[i]++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tset.add(countArr[i]);\r\n\t\t}\r\n\t\tint[] arrCpy = new int[set.size()];\r\n\t\tint ct = set.size() - 1;\r\n\t\tIterator<Integer> it = set.iterator();\r\n\t\twhile(it.hasNext()) {\r\n\t\t\tarrCpy[ct--] = it.next();\r\n\t\t}\r\n\t\tfor(int i = 0; i < arrCpy.length; i++) {\r\n\t\t\tfor(int j = 0; j < n; j++) {\r\n\t\t\t\tif(arrCpy[i] == countArr[j]) {\r\n\t\t\t\t\tSystem.out.println(arr1[j]);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "5db690a052469b5f41387f93cc2379af", "score": "0.5929158", "text": "public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n int size = in.nextInt();\n int[] a = new int[100];\n for (int i = 0; i < size; i++) {\n int j = in.nextInt();\n a[j] = a[j] + 1;\n }\n\n for(int n : a){\n System.out.print(n+\" \");\n }\n System.out.println(\"\");\n }", "title": "" }, { "docid": "3248e926723d4def649f2b14ef13c771", "score": "0.5905554", "text": "static int birthdayCakeCandles(int[] arr) {\n\n\t\tint max = 0;\n\t\tint count = 0;\n\n\t\tfor (int i = 0; i < arr.length; i++) {\n\t\t\tif (max < arr[i]) {\n\t\t\t\tmax = arr[i];\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < arr.length; i++) {\n\t\t\tif (max == arr[i]) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\n\t\treturn count;\n\t}", "title": "" }, { "docid": "a81c90a2fa8cc8828fe8e051ab7f876b", "score": "0.5864082", "text": "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int[] arr = new int[n];\n ArrayList<Integer> set = new ArrayList<>();\n for(int i=0;i<n;i++)\n {\n arr[i] = sc.nextInt();\n \n if(!set.contains(arr[i]))\n set.add(arr[i]);\n }\n \n HashMap<Integer,Integer> map = new HashMap<>();\n for(int i:arr)\n {\n if(map.containsKey(i))\n map.put(i,map.get(i)+1);\n else\n map.put(i,1);\n }\n \n for(int i:set)\n {\n System.out.println(i+\" : \"+map.get(i));\n }\n \n \n }", "title": "" }, { "docid": "44b19bd53507eb5f7af773e5189d2f61", "score": "0.5837756", "text": "public static int Main()\n\t{\n\t\tint[] num = new int[16];\n\t\tint i;\n\t\tint k;\n\t\tint j;\n\t\tint count;\n\t\tfor (;;) //????\n\t\t{\n\t\t\ti = -1; //?????i?count\n\t\t\tcount = 0;\n\t\t\tdo\n\t\t\t{\n\t\t\t\ti++;\n\t\t\t\tnum[i] = Integer.parseInt(ConsoleInput.readToWhiteSpace(true));\n\t\t\t\tif (num[0] == -1) //?????????-1???\n\t\t\t\t{\n\t\t\t\t\treturn 0;\n\t\t\t\t}\n\t\t\t} while (num[i] != 0); //????0??\n\t\t\tfor (j = 0 ; j <= i - 1 ; j++)\n\t\t\t{\n\t\t\t\tfor (k = j ; k <= i - 1 ; k++)\n\t\t\t\t{\n\t\t\t\t\tif ((num[j] == 2 * num[k]) || (num[j] * 2 == num[k])) //????\n\t\t\t\t\t{\n\t\t\t\t\t\tcount++; //??\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.print(count);\n\t\t\tSystem.out.print(\"\\n\");\n\t\t}\n\t}", "title": "" }, { "docid": "fa74d84599844f3c758cf99ea87156e9", "score": "0.5834542", "text": "public static int[] scanFile(String fileName){\n File file = new File(fileName);\n int[] freqNums = new int[94];\n //try catch in case the file doesn't exist\n try {\n Scanner scan = new Scanner(file);\n //loop to look at each word in the file\n while (scan.hasNext()) {\n String s = scan.next();\n //loop to look at each character in the word\n for(int i = 0; i < s.length(); i++){\n if((int)s.charAt(i)-32 <= 94)\n freqNums[(int)s.charAt(i)-32] = freqNums[(int)s.charAt(i)-32] + 1;\n }\n //accounts for all the spaces\n freqNums[0] = freqNums[0]+1;\n }\n scan.close();\n //gets rid of the imaginary last space\n freqNums[0] = freqNums[0]-1;\n }\n catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n return freqNums;\n }", "title": "" }, { "docid": "3a1e24e34432dc11d13d0d54d8e2584a", "score": "0.58262455", "text": "public static void main(String[] args) {\n\r\n\t\tint input1=123,input2=456,input3=345,input4=5043;\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tString in1 = Integer.toString(input1);\r\n\t\tString in2 = Integer.toString(input2);\r\n\t\tString in3 = Integer.toString(input3);\r\n\t\tString in4 = Integer.toString(input4);\r\n\t\t\r\n\t\t\r\n\t\tStringBuilder obj = new StringBuilder();\r\n\r\n\t\tobj.append(in1);\r\n\t\tobj.append(in2);\r\n\t\tobj.append(in3);\r\n\t\tobj.append(in4);\r\n\r\n\t\tString str = obj.toString();\t\r\n\t\tchar ch[] = str.toCharArray();\r\nint count[] = new int[10];\r\n\r\n\t\tfor(int i = 0 ;i < ch.length;i++)\r\n\t\t{\r\n\t\t\tcount[ Character.getNumericValue(ch[i]) ]++;\r\n\r\n\t\t}\r\n\r\n\tint max= 0,value=0;\r\n\r\n\tfor(int i = 0 ; i < count.length;i++)\r\n\t{\r\n\t\tif( max <= count[i])\r\n\t\t\t\t{max = count[i];\r\n\t\t\t\tvalue = i;\t\r\n\t\t\t\t}\r\n\t}\r\n\r\n\t\t\r\n\t\tSystem.out.println(Arrays.toString(count ));\r\n\t\tSystem.out.println(max);\r\n\t\tSystem.out.println(value);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "title": "" }, { "docid": "32664ed9fd7a60f39cecb179b201ec84", "score": "0.5814486", "text": "public static void main(String[] args) \n {\n Scanner input=new Scanner(System.in);\n int N=input.nextInt();\n int M=input.nextInt();\n int tree[]=new int[N];\n int count[]=new int[N];\n Arrays.fill(count,1);\n for(int i=0;i<M;i++)\n {\n int u1=input.nextInt();\n int v1=input.nextInt();\n tree[u1-1]=v1;\n count[v1-1]+=count[u1-1];\n int root=tree[v1-1];\n while(root!=0)\n {\n count[root-1]+=count[u1-1];\n root=tree[root-1];\n }\n }\n int counter=-1;\n for(int i=0;i<count.length;i++)\n {\n if(count[i]%2==0)\n counter++;\n }\n System.out.println(counter);\n }", "title": "" }, { "docid": "07bcb78868bbb65c23d726991e8363e1", "score": "0.581386", "text": "public int getCount(){\n int c = 0;\n for(String s : this.counts){\n c += Integer.parseInt(s);\n }\n return c;\n }", "title": "" }, { "docid": "a30b37f9896daaced6f97a9793a8c964", "score": "0.5795504", "text": "static int sumOf1To100nos() {\r\n\t\t \r\n\t\t int sum =0;\r\n\t\t \r\n\t\t for(int i=1; i<=100;i++) {\r\n\t\t\t sum+=i;\r\n\t\t }\r\n\t\t \r\n\t\t return sum;\r\n\t }", "title": "" }, { "docid": "537b4433b7fab3bcb5bc553058c8cbe0", "score": "0.5784514", "text": "public static void countSort(int arr[], int n, int exp)\n {\n int output[] = new int[n]; // output array\n int i;\n int count[] = new int[10];\n Arrays.fill(count, 0);\n\n // Store count of occurrences in count[]\n for (i = 0; i < n; i++)\n {\n count[(arr[i] / exp) % 10]++;\n }\n\n // Change count[i] so that count[i] now contains\n // actual position of this digit in output[]\n for (i = 1; i < 10; i++)\n {\n count[i] += count[i - 1];\n }\n\n // Build the output array\n for (i = n - 1; i >= 0; i--)\n {\n output[count[(arr[i] / exp) % 10] - 1] = arr[i];\n count[(arr[i] / exp) % 10]--;\n }\n\n // Copy the output array to arr[], so that arr[] now\n // contains sorted numbers according to curent digit\n for (i = 0; i < n; i++)\n {\n arr[i] = output[i];\n }\n }", "title": "" }, { "docid": "657a66ce0d25c134b9f9b617fb6526c8", "score": "0.57793486", "text": "public static void main(String[] args) {\n List<Integer> nums = new ArrayList<>(Arrays.asList(5, 7, 3, 7, 2, 8, 3, 7, 2));\n //Map<Integer, Integer> numCount = countOccurance(nums);\n Map<Integer, Long> numCount = nums.stream().collect(Collectors.groupingBy(num -> num, Collectors.counting()));\n Set<Integer> numSet = new LinkedHashSet<>(nums);\n numSet.forEach(num -> System.out.println(num + \" \" + numCount.get(num)));\n }", "title": "" }, { "docid": "af81a5bc034527240a129ed39c5b6cfa", "score": "0.57711935", "text": "public static int[] intiArray(int num){\n\t\tint[] numArray = new int[num];\n\t\tfor(int i = 0; i < num; i++){\n\t\t\tnumArray[i] = i+1;\n\t\t}\n\t\treturn numArray;\n\t}", "title": "" }, { "docid": "20632544de20a4527aeb14bc9d08bd87", "score": "0.57654107", "text": "public static void main(String[] args) {\n\t\tint d;\n\t\tint index = -1;\n\t\tint count=0;\n\t\tint max=1;\n List <Integer>list=new ArrayList<Integer>();\n Scanner input = new Scanner(System.in);\n d=input.nextInt();\n while(d!=0)\n {\n \tlist.add(d);\n \td=input.nextInt();\n }\n System.out.println(list.get(index)+\"出现了\"+max+\"次\");\n //System.out.println(index);\n //求其他出现最多次数的字符。\n \n\t}", "title": "" }, { "docid": "6fd069e70d16107727c6c8159b9cc731", "score": "0.57571113", "text": "public static <T> void countingSort(T[] array, ToInteger<T> toInt) {\n \n // The maximum value in the array (once we calculate it)\n int maxVal = 0;\n // A. Find the maximum value in the array\n //add loop here\n // The occurrences of each value (once we calculate them)\n int[] counts = new int[maxVal+1];\n // B. tabulate the occurrences of each value\n //add loop here\n\n // The initial places for each value (once we calculate them)\n int[] nextPlace = new int[maxVal+1];\n // C. Determine the initial next place for each value\n nextPlace[0] = 0;\n //add loop here\n\n // The auxiliary array into which to sort the array\n @SuppressWarnings(\"unchecked\")\n T[] aux = (T[]) new Object[array.length];\n // D. Sort the items into aux\n //add loop here\n\n // E. move them back to array\n //add loop here\n }", "title": "" }, { "docid": "e31962138c8a21bec2edf5c517359162", "score": "0.57486373", "text": "public static int countFives(int [] num)\n{\n // Create a static method called getSum which sums an array of ints\n int i;\n int total = 0;\n for(i=0;i < num.length;i++)\n {\n \tif(num[i] == 5) {\n \t\ttotal += 1;\n \t}\n }\n return total;\n}", "title": "" }, { "docid": "d641316bbddd6264a55091b0d0f26494", "score": "0.5734837", "text": "public static void countSort(int[] n) {\n\t\tint max = n[0], min = n[0];\r\n\t\tfor (int i = 1; i < n.length; i++) {\r\n\t\t if (n[i] > max)\r\n\t\t max = n[i];\r\n\t\t else if (n[i] < min)\r\n\t\t min = n[i];\r\n\t\t}\r\n\t\t\r\n\t\t// Now calculate the array size, this will be max - min + 1\r\n\t\tint numValues = max - min + 1;\t\r\n\t\tint[] counts = new int[numValues];\r\n\t\t\r\n\t\t// Now mark the indexes in the new array where we have the values.\r\n\t\t// index value of 1 means we have only one value, index value of 2 means we\r\n\t\t// have 2 values with same number and so on.\r\n\t\tfor (int i = 0; i < n.length; i++) {\r\n\t\t\tcounts[n[i] - min]++;\r\n\t\t}\r\n\t\t\r\n\t\t// Now start the actual sort. Now at this point we don't care about the values in n\r\n \t// as we have already marked the indexes in counts.\r\n\t\tint outputPos = 0;\r\n\t\t// Now iterate over the new array in sequence, and see where we don't have default\r\n\t\t// value of 0, and use that index in output.\r\n\t\tfor (int i = 0; i < numValues; i++) {\r\n\t\t for (int j = 0; j < counts[i]; j++) {\r\n\t\t\t\tn[outputPos] = i + min;\r\n\t\t\t\toutputPos++;\r\n\t\t }\r\n\t\t}\t\t\r\n\t}", "title": "" }, { "docid": "ce6772076b484d43a98cabf6484229ca", "score": "0.57336056", "text": "public int[] array1To100() {\n int[] sirDeLa1La100 = new int[100];\n for (int i = 0; i < sirDeLa1La100.length; i++) {\n sirDeLa1La100[i] = i + 1;\n }\n return sirDeLa1La100;\n }", "title": "" }, { "docid": "21b546af7f74d1e02ea4e126531931fa", "score": "0.57295996", "text": "public static void main(String[] args) {\n\t\tint a[]=takeInput();\n\t\tSystem.out.println(count(a, 0));\n\t\t\n\n\t}", "title": "" }, { "docid": "8cac84ec897a69e99394a466ca72c108", "score": "0.5729347", "text": "public static void main(String[] args) {\n\t\tint[] arr = { 4, 1, 1, 4, 2, 3, 4, 4, 1, 2, 4, 9, 3 };\n\t\tint number;\n\t\tint count = 1;\n\t\tint maxCount = 1;\n\t\tint index=0;\n\t\tfor (int i = 0; i < arr.length; i++) {\n\t\t\tnumber = arr[i];\n\t\t\tfor (int j = i + 1; j < arr.length; j++) {\n\t\t\t\tif (number == arr[j]) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (maxCount < count) {\n\t\t\t\tmaxCount = count;\n\t\t\t\tindex = i;\n\t\t\t}\n\t\t\tcount=1;\n\t\t}\n\t\tSystem.out.println(arr[index]+\"->\"+maxCount+\" times\");\n\t}", "title": "" }, { "docid": "49d26927827628acad2e2b5d0e9a6483", "score": "0.5725693", "text": "public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int primesTill = scan.nextInt();\n\n int[] arr = new int[30];\n arr[0] = 2;\n arr[1] = 3;\n arr[2] = 5;\n arr[3] = 7;\n arr[4] = 11;\n int tracker = 5;\n for(int i = 11; i <= primesTill; i = i+ 2) {\n if (i % 3 == 0)\n continue;\n if (i % 5 == 0)\n continue;\n if (i % 7 == 0)\n continue;\n if (i % 11 == 0)\n continue;\n arr[tracker] = i;\n tracker++;\n }\n\n for(int i : arr) {\n if(i == 0)\n break;\n else\n System.out.println(i);\n }\n }", "title": "" }, { "docid": "5ca490f1f47dd30ae235680e4bbb3899", "score": "0.57095695", "text": "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint n; //100,000 \n\t\twhile((n=sc.nextInt())!=0) {\n\t\t\t\n\t\t\tlong[] hist = new long[n];\n\t\t\tfor(int i=0; i<n; i++) {\n\t\t\t\t// 1,000,000,000\n\t\t\t\thist[i] = sc.nextLong();\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}\n\n\t}", "title": "" }, { "docid": "fc3248e399de2359e36be062d131c804", "score": "0.5683975", "text": "public static void main(String[] args)throws IOException {\n int n = 5; //Integer.parseInt(rd.readLine());\n// String str[] = rd.readLine().split(\" \");\n// int arr[] = new int[n];\n// for(int i=0; i<n; i++){\n// arr[i] = Integer.parseInt(str[i]);\n// }\n int arr[] = {1, 3, 2, 1, 2};\n int freq = 0;\n Arrays.sort(arr);\n for(int i=0; i<n-1; i++){\n if(arr[i] != arr[i+1]){\n freq++;\n break;\n }\n i++;\n }\n if(freq==0) {\n System.out.println(arr[n-1]); //the unique no is tha last no\n }\n else{\n System.out.println(freq); //unique no is somewhere in between\n }\n }", "title": "" }, { "docid": "ef7c486fe54ff84b1f1822146c2c9860", "score": "0.56744385", "text": "public static void main(String[] args) throws NumberFormatException, IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint t = Integer.parseInt(br.readLine());\n\t\tchar[] input = br.readLine().toCharArray();\n\t\tint[] arr = new int[26];\n\t\tfor (int i = 0; i < input.length; i++) {\n\t\t\tarr[input[i] - 'A']++;\n\t\t}\n\t\t\n\t\tint count = 0;\n\t\tfor (int i = 1; i < t; i++) {\n\t\t\tchar[] candidates = br.readLine().toCharArray();\n\t\t\tint[] scores = new int[26];\n\t\t\tfor (int j = 0; j < candidates.length; j++) {\n\t\t\t\tscores[candidates[j] - 'A']++;\n\t\t\t}\n\t\t\t\n\t\t\tif (similar(arr, scores)) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(count);\n\t}", "title": "" }, { "docid": "8270c95e115cc8e9f983d90a8fc6929b", "score": "0.5674111", "text": "public static void main(String args[]) {\n int a = 0;\r\n int b = 0;\r\n int u = 0;\r\n\r\n //Declaring scanner object\r\n Scanner capture = new Scanner(System.in);\r\n System.out.println(\"How many input values [MAX: 30]?\");\r\n\r\n //Taking input\r\n int x = capture.nextInt();\r\n ArrayList<Integer> Digits = new ArrayList<>();\r\n System.out.println(\"Enter \" + x + \" numbers.\");\r\n\r\n //Declaring and initializing HashMap object\r\n HashMap<Integer, Integer> Occur = new HashMap<>();\r\n\r\n // Initialize Hashmap\r\n for(int i=0;i<10;i++){\r\n Occur.put(i,0);\r\n }\r\n\r\n\r\n\r\n\r\n int tmp = x;\r\n // Initialize ArrayList\r\n while(tmp>0){\r\n Digits.add(capture.nextInt());\r\n tmp--;\r\n }\r\n\r\n\r\n\r\n // ----------------------------\r\n while (b < x) {\r\n if (Occur.get(Digits.get(b)) != null) {\r\n int cnt = Occur.get(Digits.get(b)) + 1;\r\n Occur.put(Digits.get(b), cnt);\r\n }\r\n else {\r\n Occur.put(Digits.get(b), 1);\r\n }\r\n b++;\r\n }\r\n\r\n int height = 0;\r\n System.out.println(\"\\nNumber Occurrence\");\r\n\r\n height = 0;\r\n for(Map.Entry<Integer,Integer> entry : Occur.entrySet()){\r\n if(entry.getValue()>0){\r\n System.out.println(entry.getKey() + \" \" + entry.getValue());\r\n }\r\n if(entry.getValue()>height){\r\n height = entry.getValue();\r\n }\r\n }\r\n\r\n System.out.println(\"================= Vertical bar =================\");\r\n\r\n //Printing histogram\r\n int h = height;\r\n while ( h > 0) {\r\n\r\n System.out.print(\"| \"+h+\" | \");\r\n\r\n int g = 0;\r\n while (g < 10) {\r\n if(Occur.get(g) != null) {\r\n int kallen = Occur.get(g);\r\n if(kallen >= h)\r\n {\r\n System.out.print(\"* \");\r\n }\r\n else\r\n {\r\n System.out.print(\" \");\r\n }\r\n }\r\n else\r\n {\r\n System.out.print(\" \");\r\n }\r\n g++;\r\n }\r\n System.out.print(\"\\n\");\r\n h--;\r\n }\r\n System.out.println(\"================================================\");\r\n System.out.print(\"| N |\");\r\n while ( u < 10 ) {\r\n System.out.print(\" \"+ u );\r\n u++;\r\n }\r\n System.out.println(\"\\n================================================\");\r\n }", "title": "" }, { "docid": "206bc9ea6c517776f75fbed2bedbeb01", "score": "0.5667171", "text": "public StringCount[] GetCounts() \n\t{\n\t\tStringCount[] counts = new StringCount[numEntries];\n int entries = 0;\n \n for(int i = 0; i < tableSize; i++)\n {\n if(table[i] != null)\n {\n insertionSort(new StringCount(table[i].key, table[i].value), counts, entries);\n entries++;\n }\n }\n\t\treturn counts;\n\t}", "title": "" }, { "docid": "2213eab264c0e6f57ceee9642364f145", "score": "0.5661089", "text": "public static List<Integer> countingSort(List<Integer> arr) {\n // Write your code here\n int[] frequencyArray = new int[100];\n for (int i = 0; i < arr.size(); i++) {\n int arrValue = arr.get(i);\n int frequency = frequencyArray[arrValue];\n frequencyArray[arrValue] = frequency + 1;\n }\n return Arrays.stream(frequencyArray).boxed().collect(Collectors.toList());\n }", "title": "" }, { "docid": "55f1d8c60a22970cc772ac5cd78ac008", "score": "0.56559515", "text": "public static void main(String[] args) {\n\t\tArrays.fill(arr, 1);\n\t\tlong startTime = System.nanoTime();\n\t\t// Traverse till square root of MAX\n\t\t// Using logic similar to sieve of eratosthenes to\n\t\t// populate factor sum array\n\t\tint limit = (int)Math.sqrt(MAX);\n\t\tfor (int i = 2; i <= limit; ++i) {\n\t\t\tint j = i+i;\n\t\t\tint count = 2;\n\t\t\twhile (j <= MAX){\n\t\t\t\t// As we already add count (j/i) to the factor sum when adding i,\n\t\t\t\t// we don't add when i is equal to or greater than count\n\t\t\t\tif (i < count) {\n\t\t\t\t\t// Adding i and count (j/i) to the factor sum of j\n\t\t\t\t\tarr[j] += i;\n\t\t\t\t\tarr[j] += count;\n\t\t\t\t}\n\t\t\t\tj += i;\n\t\t\t\tcount++;\n\t\t\t} \n\t\t}\n\t\t\n\t\tint count = 0;\n\t\tSystem.out.println(\"The following are amicable numbers\");\n\t\tfor (int i = 2; i <= MAX; ++i) {\n\t\t\tint num = arr[i];\n\t\t\tif (num <= MAX && num > i) {\n\t\t\t\tif (arr[num] == i) {\n\t\t\t\t\tSystem.out.println(count+\": \"+i+\" and \"+num);\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tlong endTime = System.nanoTime();\n\t\tdouble duration = timeInSec(endTime,startTime) ;\n\t\tSystem.out.println(\"Run time \" + duration + \" : secs\");\t\t\n\t}", "title": "" }, { "docid": "4196b23f9888963fb9b99f7343079696", "score": "0.56520647", "text": "public static void main(String[] args){\n System.out.println(countSummations(100));\n }", "title": "" }, { "docid": "66cbf929a3be461e2a6f80a140881b41", "score": "0.563028", "text": "int sizeOfScansArray();", "title": "" }, { "docid": "ab0e7aea9008c229af59d9d6a11ac4fa", "score": "0.5617924", "text": "public static void main(String[] args) {\n\r\n\t\tint arr[]={2, 3, 2, 4, 5, 12, 2, 3, 3, 3, 12};\r\n\t\tMap<Integer,Data> map = new HashMap<>();\r\n\t\tfor(int a :arr)\r\n\t\t{\r\n\t\t\tif(map.containsKey(a))\r\n\t\t\t{\r\n\t\t\t\tmap.get(a).incrementFrequency();\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tmap.put(a, new Data(a));\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tSet<Data> sortedData = new TreeSet<>(map.values());\r\n\t\tList<Integer> result = new ArrayList<>();\r\n\t\tfor(Data d : sortedData)\r\n\t\t{\r\n\t\t\tfor(int i=0;i<d.frequency;i++)\r\n\t\t\t\tresult.add(d.number);\r\n\t\t}\r\n\t\tSystem.out.println(result);\r\n\t}", "title": "" }, { "docid": "165441250de2156046aefaaf3b0e4099", "score": "0.5612908", "text": "public static void main(String[] args) {\nScanner sc=new Scanner(System.in);\r\nint num=sc.nextInt();\r\nint count=0;\r\nwhile(num!=0)\r\n{\r\n\tint n1=num%10;\r\n\tcount++;\r\n\tnum/=10;\r\n}\r\nSystem.out.println(count);\r\n\t}", "title": "" }, { "docid": "7954eab454e4ff3afcdd96a096d85ae6", "score": "0.5612239", "text": "public static void main(String[] args) {\n\t\tCountingSort sort = new CountingSort();\r\n//\t\tint A[] = {3,44,38,5,47,15,36,26,27,2,46,4,19,50,48};\r\n\t\tint A[] = {4, 2, 5, 6, 7};\r\n\t\tint B[] = sort.countingSort(A, 15);\r\n\t\tfor (int i = 0; i < B.length; i++) {\r\n\t\t\tSystem.out.println(B[i]);\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "60352405e9d95a9af8664a3fb1c5a206", "score": "0.56074625", "text": "public static int getCount(int[] numArray, int val)\n\t{\n\t\tint count = 0;\n\t\tfor(int i = 0; i < numArray.length; i++)\n\t\t\tif(numArray[i] == val)\t\n\t\t\t\tcount++;\n\t\treturn count;\n\t}", "title": "" }, { "docid": "8c829f5375925ff80bf94a3099dae130", "score": "0.5607038", "text": "public static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\tint n = in.nextInt();\n\t\tint room[] = new int[n];\n\t\tint count = 0;\n\t\tint sum = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\troom[i] = in.nextInt();\n\t\t\tsum += room[i];\n\t\t}\n\t\tsum /= n;\n\t\tfor (int i = 0; i < room.length; i++) {\n\t\t\tif (room[i] - sum > 0) {\n\t\t\t\tcount += (room[i] - sum);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\n\t}", "title": "" }, { "docid": "539cc61255f35028cd9106b18492af5c", "score": "0.560626", "text": "public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint[] arr = new int[10];\n\n\t\tfor(int i=0; i<arr.length; i++) {\n\t\t\tarr[i] = scan.nextInt();\n\t\t}\n\n\t\tint[] mod = new int[10];\n\t\tfor(int i=0; i<arr.length; i++) {\n\t\t\tmod[i] = arr[i]%42;\n\t\t}\n\n\t\tArrays.sort(mod);\n\n\t\tint count = 1;\n\t\tfor(int i=0; i<mod.length-1; i++) {\n\t\t\t\tif(mod[i] != mod[i+1])\n\t\t\t\t\tcount++;\n\t\t\t}\n\n\t\tSystem.out.println(count);\n\n\n\t}", "title": "" }, { "docid": "0d7766e2d82e7ed4d3b5e18510e6cbd4", "score": "0.55951655", "text": "public static void main(String[] args) throws IOException {\n\t\tList<Integer> list = new ArrayList<>();\n\t\tint size = 0;\n\t\tint i = 0;\n\t\twhile (size < 1000000) {\n\t\t\tclear();\n\t\t\ti++;\n\t\t\tint candidate = i;\n\t\t\tboolean possible = true;\n\t\t\twhile (candidate != 0) {\n\t\t\t\tint num = candidate % 10;\n\t\t\t\tif (arr[num] != 0) {\n\t\t\t\t\tpossible = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tarr[num]++;\n\t\t\t\tcandidate /= 10;\n\t\t\t}\n\t\t\tif (possible) {\n\t\t\t\tlist.add(i);\n\t\t\t\tsize++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\t\tString input = br.readLine();\n\t\twhile (!input.equals(\"0\")) {\n\t\t\tint index = Integer.parseInt(input);\n\t\t\tsb.append(list.get(index-1)).append(System.lineSeparator());\n\t\t\tinput = br.readLine();\n\t\t}\n\t\t\n\t\tSystem.out.print(sb.toString());\n\t}", "title": "" }, { "docid": "8b764e0a5f4ea8dde5ad7b2a81c6f8b7", "score": "0.55911714", "text": "public void countOfLetters()\n {\n Scanner sc = new Scanner(System.in);\n //Ask an user to enter a string\n System.out.print(\"Enter a string: \");\n //Read next line as string and assign it value to String str\n String str = sc.nextLine();\n\n //Create a new int array with 26 elements\n int []Letters = new int[26];\n\n //For each index in str\n for(int i = 0; i < str.length(); i++)\n {\n //Get current character\n char c = str.toLowerCase().charAt(i);\n //Get char as int\n int val = (int)c;\n //If char is letter\n if(val >= 97 && val <= 122)\n {\n //Increment a value at position of this letter\n Letters[c-'a']++;\n }\n }\n //Get sum of the array\n int Sum = Arrays.stream(Letters).sum();\n //For each index in Letters\n for(int i = 0; i<Letters.length; i++)\n {\n //If value of current position > 0 then print count of this letter at given string and its percentage\n if(Letters[i] > 0)\n {\n System.out.printf(\"The count of `%c` is %x, the percentage is %f \\n\", (char)97+i, Letters[i], (double)Letters[i]/Sum);\n }\n }\n\n }", "title": "" }, { "docid": "d0e744c9f56c31cb4a04a81787a7e400", "score": "0.5579943", "text": "public static void countingSort(int[] elements) {\n int maxValue = findMax(elements);\n int[] counts = new int[maxValue + 1];\n\n // Counting elements\n for (int i = 0; i < elements.length; i++) {\n counts[elements[i]]++;\n }\n\n // Writes results back\n int place = 0;\n for (int i = 0; i < counts.length; i++) {\n for (int j = 0; j < counts[i]; j++) {\n elements[place++] = i;\n }\n }\n }", "title": "" }, { "docid": "79aea2cdec016c291673a2fc302f9666", "score": "0.55782753", "text": "public int countClumps(int[] arr)\n\t{\n\t\tif(arr.length==0)\n\t\t\tthrow new AssertionError(\"Array is Empty\");\n\t\tint clumps=0;\n\t\tfor(int i=0;i<arr.length-1;i++){\n\t\t\tint flag=0;\n\t\t\twhile(i<arr.length-1 && arr[i]==arr[i+1]){\n\t\t\t\tflag=1;\n\t\t\t\ti++;\n\t\t\t}\n\t\t\tif(flag==1)\n\t\t\t\tclumps++;\n\t\t}\n\t\treturn clumps;\n\t}", "title": "" }, { "docid": "a01d0c1715858567e270d19bfefccd05", "score": "0.5557148", "text": "public static int numOfFactors(int[] mainArray) {\r\n\r\n\t\tScanner sc = new Scanner(System.in);\r\n\r\n\t\t//input\r\n\t\tSystem.out.println(\"Enter a positive integer: \");\r\n\t\tint integer = sc.nextInt();\r\n\r\n\t\t//variables\r\n\t\tint tally = 0;\r\n\r\n\t\tfor (int counter = 1; counter < integer / 2; counter ++) {\r\n\t\t\tif(integer % counter == 0) \r\n\t\t\t\ttally ++;\r\n\t\t}\r\n\t\treturn tally + 2;\r\n\n\t}", "title": "" }, { "docid": "178cecbb9aa7f2f8770e27d9f2d95b45", "score": "0.5554622", "text": "public int[] countGrades(int[] grades) {\n int[] gradeFrequencies = new int[11];\n for (int grade : grades) {\n gradeFrequencies[grade]++;\n }\n return gradeFrequencies;\n }", "title": "" }, { "docid": "e16f4e0a17fe1ea1ef2b345a6e363b8f", "score": "0.5550817", "text": "static int [] readFile() throws IOException {\n\n // Scanner used to get name of file from user\n Scanner in = new Scanner(System.in);\n System.out.println(\"Please enter the name of your file: \");\n String name = in.nextLine();\n\n File file = new File(name); \n \n // Scanner used to read file\n Scanner inputFile = new Scanner(file); \n // reads first line of file for length of array\n int x = inputFile.nextInt();\n\n //Creates array \n int [] scores = new int[x]; \n\n for (int i=0; i<x; i++) {\n int value = inputFile.nextInt();\n scores[i] = value;\n }\n inputFile.close();\n in.close();\n return scores; \n }", "title": "" }, { "docid": "546ff0fa2f7088827ff11d658a5680e4", "score": "0.55369675", "text": "public static void main(String[] args) {\n Random y = new Random(); //아무값 랜덤\r\n //0~ 99 까지의 1000개 중 50보다 큰값들을 프린트 \r\n int[] in = new int [1000]; \r\n for (int i = 0; i < in.length; i++) {\r\n \tin[i] = y.nextInt(100);\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n int count=0;\r\n for (int i = 0; i < 100; i++) {\r\n \tif (in[i] >= 50) {\r\n\t\t\t\t\t\tSystem.out.println(i+\":\"+in[i]);\r\n\t\t\t\t\t\tcount++;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n System.out.println(\"50보다 큰개수는 : \" + count\r\n \t\t);\r\n\t}", "title": "" }, { "docid": "25a5436523a760038533a77183ba08e5", "score": "0.5528202", "text": "@Test\n public void getCount() throws Exception {\n int[] a = new int[]{250, 501, 5000, 5, 4};\n\n Solution solution = new Solution();\n\n int c = solution.getCount(a, 0, 4, 0, 5);\n\n assertEquals(3, c);\n\n c = solution.getCount(a, 0, 4, 0, 10);\n\n assertEquals(2, c);\n\n c = solution.getCount(a, 0, 4, 2, 3);\n\n assertEquals(2, c);\n }", "title": "" }, { "docid": "92a5db2a5330cae9069fe09fdcf6851c", "score": "0.5522798", "text": "public static void main(String[] args) {\n\t\tint arr[]= {2, 5, 4, 2, 7, 4, 2};\r\n\t\tint n=arr.length;\r\n\t\toccurence(arr,n);\r\n\t}", "title": "" }, { "docid": "907f30dcc2c4666ad65797ece0023a9d", "score": "0.5522148", "text": "public static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\tint n = in.nextInt();\n\t\tin.nextLine();\n\t\tString[] input = new String[100];\n\t\tfor(int j = 0; j < n ; j++){\n\t\t\tString line = in.nextLine();\n\t\t\tint count = 0;\n\t\t\tfor(int i = 0; i < line.length()-1;i++){\n\t\t\t\tif(line.charAt(i) == line.charAt(i+1)){\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(count);\n\t\t} \n\t}", "title": "" }, { "docid": "d3d43167b5b6e54eb4e9a19dcdd59aa1", "score": "0.55179596", "text": "public double[] histogram() {\n int[][] data = toArray();\n double[] ans = new double[256];\n int totalSize = data.length * data[0].length;\n\n for (int i = 0; i < data.length; i++) {\n for (int j = 0; j < data[i].length; j++) {\n ans[data[i][j]]++;\n }\n }\n for (int i = 0; i < ans.length; i++) {\n ans[i] = ans[i] / totalSize;\n }\n return ans;\n }", "title": "" }, { "docid": "31070fa7548434f64574ad0cfeff900a", "score": "0.5515722", "text": "public static void main(String[] args) {\r\n \t try{\r\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\r\n String input=br.readLine();\r\n int N=Integer.parseInt(input);\r\n input=br.readLine();\r\n String[] values=input.split(\" \");\r\n int ints[]=genArray(values);\r\n printArray(ints);\r\n }\r\n catch(Exception e){\r\n \r\n }\r\n }", "title": "" }, { "docid": "ad59cbe0b086beca7917594040bd2c38", "score": "0.55125487", "text": "public static void main(String[] args) throws NumberFormatException, IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tBufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));\n\t\tStringTokenizer st;\n\t\tint arr[][] = new int[2][10000001];\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tst = new StringTokenizer(br.readLine());\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tint tmp = Integer.parseInt(st.nextToken());\n\t\t\tif(tmp>=0)\n\t\t\t\tarr[0][tmp]++;\n\t\t\telse\n\t\t\t\tarr[1][Math.abs(tmp)]++;\t\t\n\t\t}\n\t\tint m = Integer.parseInt(br.readLine());\n\t\tst = new StringTokenizer(br.readLine());\n\t\tfor(int i=0;i<m;i++) {\n\t\t\tint tmp = Integer.parseInt(st.nextToken());\n\t\t\tif(tmp>=0) {\n\t\t\t\tbw.write(String.valueOf(arr[0][tmp])+\" \");\n\t\t\t}\n\t\t\telse if(tmp<0) {\n\t\t\t\tbw.write(String.valueOf(arr[1][Math.abs(tmp)])+\" \");\n\t\t\t}\n\t\t}\n\t\tbw.close();\n\t}", "title": "" }, { "docid": "9bb03fc8bb80ea8acb8687db014fcb93", "score": "0.5490154", "text": "private int[] readCharacterFrequency(BitInputStream in) throws IOException {\r\n int[] freq = new int[n];\r\n for(int i = 0; i < n; i++){\r\n freq[i] = in.readInt();\r\n }\r\n return freq;\r\n }", "title": "" }, { "docid": "1c789e7649f37648f69b1767290af9dd", "score": "0.5489407", "text": "public static void main(String[] args) {\n\t\tScanner s=new Scanner(System.in);\r\n\t\tint n=s.nextInt();\r\n\t\tint a[]=new int[n];\r\n\t\tint even_count=0,odd_count=0;\r\n\t\tfor(int i=0;i<n;i++) {\r\n\t\t\ta[i]=s.nextInt();\r\n\t\t\tif(a[i]%2==0) {\r\n\t\t\t\teven_count+=1;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t\todd_count+=1;\r\n\t\t}\r\n\t\tSystem.out.println(\"even numbers are\"+even_count+\" \"+\"odd numbers are\"+odd_count);\r\n\t\ts.close();\r\n\t\t\r\n\r\n\t}", "title": "" }, { "docid": "fc8e745d6fffda1b3360a11c17f6eeb7", "score": "0.54874897", "text": "public static int[] readInts() {\n return readAllInts();\n }", "title": "" }, { "docid": "ca19bb49ae08935cec6304630f6b2896", "score": "0.5476893", "text": "public static int count(int[] a) {\n sort(a);\n int N = a.length;\n // print out the sorted array\n System.out.print(\"Sorted array: \");\n for (int i = 0; i < N; i++) {\n System.out.print(a[i] + \" \");\n }\n System.out.println();\n int count = 0;\n for (int i = 0; i < N; i++) {\n int j = i + 1;\n int k = N - 1;\n while (j < k) {\n if (a[i] + a[j] + a[k] == 0) {\n System.out.println(i + \",\" + j + \",\" + k);\n count++;\n j++;\n } else if (a[i] + a[j] + a[k] > 0) {\n k--;\n } else {\n j++;\n }\n }\n }\n return count;\n }", "title": "" }, { "docid": "d137e1741e87b909b724f96d2bcf36cf", "score": "0.54747105", "text": "int getUniqueNumbersCount();", "title": "" }, { "docid": "1088ee2f27e64318bf93addcc2131914", "score": "0.5469698", "text": "public static void main(String[] args) {\n \n Scanner input = new Scanner(System.in);\n int n = input.nextInt();\n String[] p = new String[n];\n int[] counter = new int[n];\n for(int i = 0; i<n;i++ ){\n \tp[i] = input.next();\n \t\n \tint j = 0;\n \twhile(j<p[i].length()){\n \t\tint t =1;\n \t\tif(j + t < p[i].length()){\n \t\twhile(p[i].charAt(j) == p[i].charAt(j+t) ){\n \t\t\tt++;\n \t\t\tcounter[i]++;\n \t\t\tif(j+t >= p[i].length())\n \t\t\t\tbreak;\n \t\t\t\n \t\t}\n \t\t}\n \t\tj = j+t;\n \t\t\n \t\t\n \t\t\n \t}\n }\n \n for(int i= 0; i<n;i++){\n\t System.out.println(counter[i]);\n }\n \n \n \n input.close();\n }", "title": "" }, { "docid": "9a16bfed17906b02918d6f46f4056c40", "score": "0.54684323", "text": "public static int pickingNumbers(List<Integer> a) {\n \n int[] freq = new int[100]; \n int max = 0;\n \n for(int i = 0; i < a.size(); i++){\n freq[a.get(i)]++;\n }\n \n for(int i = 0; i < 99; i++){\n if((freq[i] + freq[i+1]) > max)\n max = freq[i] + freq[i+1];\n }\n \n return max;\n }", "title": "" }, { "docid": "cf83ee3320042b294d288879087a7e98", "score": "0.5465406", "text": "public static int count(int[] arr){\n\t\tint[] remCounts = {0,0,0}; \n\t\tfor(int i=0; i<arr.length; i++)\n\t\t\tremCounts[arr[i]%3]++; \n\t\t\n\t\tint total = 0; \n\t\t/**\n\t\t * Count the group of size 2, two possibilities:\n\t\t * (1) both elements have remainder of 0 \n\t\t * => select 2 values from group 0 \n\t\t * (2) one has remainder of 1, and the other has 2 \n\t\t * => select 1 from group 1 and the other from group 2 \n\t\t */\n\t\ttotal += calcCombinations(remCounts[0], 2); \n\t\ttotal += (remCounts[1] * remCounts[2]); \n\t\t\n\t\t/**\n\t\t * count the group of size 3: \n\t\t * \n\t\t * (1) all of them are from group 0 \n\t\t * (2) all of them are from group 1 \n\t\t * (3) all of them are from group 2 \n\t\t * (4) each of them are from group 0, 1, and 2 respectively\n\t\t */\n\t\ttotal += calcCombinations(remCounts[0], 3);\n\t\ttotal += calcCombinations(remCounts[1], 3);\n\t\ttotal += calcCombinations(remCounts[2], 3);\n\t\ttotal += remCounts[0] * remCounts[1] * remCounts[2];\n\t\t\n\t\treturn total ; \n\t}", "title": "" }, { "docid": "6b7ccccc05affad0b28b88d73028db02", "score": "0.5460009", "text": "public int count_decoding_improved(char[] digits, int n){\n// if(n==0 || n==1)\n// return 1;\n\n int[] count = new int[n+1];\n\n count[0] = 1;\n count[1] = 1;\n //int count = 0;\n\n for(int i = 2; i <= n; i++){\n if(digits[i-1] > '0')\n count[i] = count[i-1];\n\n if(digits[i-2]=='1' || digits[i-2] == '2' && digits[i-1] < '7')\n count[i] += count[i-2];\n }\n\n\n\n return count[n];\n }", "title": "" }, { "docid": "c25112d3153ab88d946e6dc95e39238d", "score": "0.54596734", "text": "public int[] getArrayNumber(int maxValue) {\n int[] myArray = new int[maxValue];\n for (int i = 0; i < myArray.length; i++) {\n myArray[i] = i + 1;\n System.out.println(myArray[i]);\n }\n return myArray;\n }", "title": "" }, { "docid": "21a86b27b33b3ba238f1d664beab3070", "score": "0.5456578", "text": "private void determineCounts( )\n {\n for( int r = 0; r < rows; r++ )\n {\n for( int c = 0; c < cols; c++ )\n {\n if( theMines[ r ][ c ] == 1 )\n theCounts[ r ] [ c ] = 9;\n else\n count( r, c );\n }\n }\n }", "title": "" }, { "docid": "3cccfe3beddfca247a871928834bbdb4", "score": "0.5456226", "text": "public static int[] buildArray() throws IOException {\r\n\r\n //Variable initializations\r\n int[] intArray = {};\r\n int sumOfElements = 0;\r\n int index = 0;\r\n \r\n //Initialization of File and Scanner objects\r\n \r\n File sumOfIntegers = new File(fileInput);\r\n Scanner elementScanner = new Scanner(sumOfIntegers);\r\n\r\n //Loop that increases the num of array elements by 1 every time\r\n //it acknowledges an integer value within the file and subtracts\r\n //1 from the array elements when the sentinel value is reached.\r\n while (elementScanner.hasNextInt()) {\r\n sumOfElements++;\r\n \r\n \r\n //Assign next int scanner method to x variable\r\n //Used to process if boolean condition\r\n int x = elementScanner.nextInt();\r\n\r\n //When -999 sentinel value is reached reduce num of array elements\r\n //by 1 since we do not want it included\r\n if (x == -999) {\r\n sumOfElements = sumOfElements - 1;\r\n intArray = new int[sumOfElements];\r\n }\r\n //Assign sumOfElements as num of array elements\r\n intArray = new int[sumOfElements]; \r\n\r\n }\r\n\r\n //new scanner to reset abstract cursor of file\r\n elementScanner = new Scanner(sumOfIntegers);\r\n for (index = 0; index < sumOfElements; index++) {\r\n int x = elementScanner.nextInt();\r\n\r\n if (x != -999) {\r\n intArray[index] = x;\r\n }\r\n\r\n }\r\n\r\n //Closes the file/scanner\r\n elementScanner.close();\r\n\r\n return intArray;\r\n }", "title": "" }, { "docid": "0f2250264449ec2c48fb3a6ef5fdf960", "score": "0.5455517", "text": "public static void main(String[] args) {\n\t\t\r\n\t\tint flag1 =1,flag2=1, count=1;\r\n\t\tScanner scanner = new Scanner(System.in);\r\n\t\t\r\n\t\t//System.out.println(\"Enter the no of elements in an array\");\r\n\t\tint noOfElements = scanner.nextInt();\r\n\t\tif(noOfElements<0) {\r\n\t\t\tflag1=0;\r\n\t\t\tSystem.out.println(\"Invalid input\");\t\t\r\n\t\t}\r\n\t\t\r\n\t\tif(flag1 != 0) {\r\n\t\tint [] arr = new int [noOfElements];\r\n\t\t//System.out.println(\"enter the elemnts\");\r\n\t\t\r\n\t\t\r\n\t\tfor(int i=0;i<arr.length;i++) {\r\n\t\t\tarr[i] = scanner.nextInt();\r\n\t\t\tif(arr[i]<0) {\r\n\t\t\t\tSystem.out.println(\"Invalid input\");\r\n\t\t\t\tflag2=0;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\tif(flag2 != 0) {\r\n\t\tfor(int i=0;i<arr.length;i++) {\r\n\t\t\tint key = arr[i];\r\n\t\t\tfor(int j=i+1;j<arr.length;j++) {\r\n\t\t\t\tif(key==arr[j]) {\r\n\t\t\t\t\tcount++;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\tSystem.out.println(\"Count is:\"+count);\r\n\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "982beb8f604aa51825058d6993029610", "score": "0.5454954", "text": "public static int val(int[] a) {\n\n\t\tint count = 0;\n\t\tHashSet<Integer> set = new HashSet<Integer>();\n\t\tfor (int i = 0; i < a.length; i++)\n\t\t\tset.add(a[i]);\n\n\t\tHashMap<Integer, Integer> map = new HashMap<Integer, Integer>();\n\t\tfor (int i = 0, j = 0; i < a.length && j < a.length;) {\n\t\t\twhile (map.size() != set.size()) {\n\t\t\t\tmap.put(a[j], map.getOrDefault(a[j], 0) + 1);\n\t\t\t\tj++;\n\t\t\t\tif (j == a.length)\n\t\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\twhile (map.size() == set.size()) {\n\t\t\t\tcount += a.length - j + 1;\n\t\t\t\tif (map.get(a[i]) == 1)\n\t\t\t\t\tmap.remove(a[i]);\n\t\t\t\telse\n\t\t\t\t\tmap.put(a[i], map.get(a[i]) - 1);\n\t\t\t\ti++;\n\t\t\t}\n\t\t}\n\n\t\treturn count;\n\t}", "title": "" }, { "docid": "e2cd88e2de808bf262c5e17f1a683191", "score": "0.54527354", "text": "public static int count(int[] a) {\n int n = a.length;\n return count(a, 0, n - 1);\n }", "title": "" }, { "docid": "94caedcb65815c49f1a73b9aca500df1", "score": "0.54519457", "text": "private int[] getIntArray(int[][] histogram)\n {\n int[] histValues = new int[grid_size * BINS];\n int index = 0;\n for(int i = 0; i < histogram.length; i++)\n {\n for(int k = 0; k < histogram[i].length; k++)\n {\n histValues[index++] = histogram[i][k];\n }\n }\n\n return histValues;\n }", "title": "" }, { "docid": "2521c3a8cbeb772e19e9db0cd31e7090", "score": "0.5447958", "text": "public static void initializeCount(int[] count){\n\t\tif (count != null){\n\t\t\tfor (int i = 0; i < count.length; i++)\n\t\t\t\tcount[i] = 0;\n\t\t}\n\t}", "title": "" }, { "docid": "cb0ec220c60ec929d07fefd19fea0a28", "score": "0.54465824", "text": "public int[] numbers();", "title": "" }, { "docid": "7528908e75a16b7d5eec05c4bd2a5267", "score": "0.5443038", "text": "public static void main(String[] args) {\n int arr[]= new int[100];\n for(int i=0;i<=99;i++)\n {\n \t if(i!=55)\n \t\t arr[i]=i+1;\n \t System.out.print(arr[i]+\" \");\n }\n int sum=0,sum1=0;\n for(int i=0;i<100;i++)\n {\n \t sum=sum+(i+1);\n \t sum1=sum1+arr[i];\n \t \n }\n System.out.println(\"\\n\"+(sum-sum1));\n\t}", "title": "" }, { "docid": "80862abbee4b35c0f8f9e298147d31c3", "score": "0.54386044", "text": "public static int[] answer(int[] data, int n) {\n\t\tHashMap <Integer, Integer> h = new HashMap<Integer, Integer>();\r\n\t\t\r\n\t\tfor (int i=0; i<data.length; i++){\r\n\t\t\tif (!h.containsKey(data[i])){\r\n\t\t\t\th.put(data[i], 0);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\th.put(data[i], h.get(data[i])+1);\r\n\t\t\t//h[data[i]]++;\r\n\t\r\n\t\t\tif (h.get(data[i]) > n){\r\n\t\t\t\th.put(data[i], Integer.MIN_VALUE);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tArrayList<Integer> r = new ArrayList<Integer>();\r\n\t\t\r\n\t\tfor(int i=0; i<data.length; i++){\r\n\t\t\t\r\n\t\t\tif (h.get(data[i])>0){\r\n\t\t\t\tr.add(data[i]);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//pp(h);\r\n\t\t//System.out.println(h);\r\n\t\t\r\n\t\tint [] rr = new int [r.size()];\r\n\r\n\t\tfor(int k=0; k<r.size(); k++){\r\n\t\t\trr[k] = r.get(k);\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\treturn rr;\r\n }", "title": "" }, { "docid": "a8da68c77f92ca6d74f42adb442be5c1", "score": "0.5437831", "text": "public static int[] countingSort(int[] arr, int place, int n) {\n int max = getMax(arr, n);\n\n int[] countArr = new int[max + 1];\n int[] sortedArr = new int[n];\n\n // Set all elements of countArr equal to zero\n for (int i = 0; i < max; i++) {\n countArr[i] = 0;\n }\n\n // Count the number of appearances of a digit in nth digit place\n for (int i = 0; i < n; i++) {\n countArr[(arr[i] / place) % 10]++;\n }\n\n // We carry a cumulative number of appearances of the digits in nth digit place\n for (int i = 1; i < 10; i++) {\n countArr[i] = countArr[i] + countArr[i - 1];\n }\n\n // We place the elements in ther corresponding positions based on countArr and\n // decrease indeces count by one\n for (int i = n - 1; i >= 0; i--) {\n sortedArr[countArr[(arr[i] / place) % 10] - 1] = arr[i];\n countArr[(arr[i] / place) % 10]--;\n }\n\n // Copy arr results to the new sorted array\n for (int i = 0; i < n; i++) {\n arr[i] = sortedArr[i];\n }\n\n return sortedArr;\n }", "title": "" }, { "docid": "836d1a71149b335bfa5fd61b3097ab86", "score": "0.5436391", "text": "public int countOnes(int[] a) {\n int tot = 0;\n for (int i=0; i<a.length; i++) {\n tot += a[i];\n }\n return tot;\n }", "title": "" }, { "docid": "d0669d6cb497619fea9e583e3d637061", "score": "0.54331607", "text": "public static void countingSort(int[] arr, int min, int max) {\r\n int[] temp = new int[max - min + 2];\r\n for (int i = 0; i < arr.length; i++) {\r\n temp[arr[i] - min]++;\r\n }\r\n int index = 0;\r\n for (int i = 0; i <= max - min + 1; i++) {\r\n for (int j = 0; j < temp[i]; j++) {\r\n arr[index] = i + min;\r\n index++;\r\n }\r\n }\r\n }", "title": "" }, { "docid": "cb92e0ef20d6e8a92cb6907acd02332b", "score": "0.54257935", "text": "public int[] contarCodons(String seq){\n int [] countCodons=new int[65];\n for (int i=0;i<seq.length()-2;i=i+3){\n String c=seq.substring(i, i+3);\n int j=0;\n while (j<nameCodon.length && nameCodon[j].compareTo(c)!=0) j++;\n if (j<nameCodon.length)\n countCodons[j]++;\n else\n countCodons[64]++;\n }\n return countCodons;\n\n }", "title": "" }, { "docid": "9021241a9c1c03444be723ae1517de01", "score": "0.54240614", "text": "public static void main(String[] arrr){\n\t\tlong mod = 10000000011L;\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint[] arr = new int[n];\n\t\tfor (int i = 0; i < arr.length; i++) {\n\t\t\tarr[i]=sc.nextInt();\n\t\t}\n\t\tlong total=0;\n\t\tfor (int i = 0; i < arr.length; i++) {\n\t\t\ttotal = (total+((long)Math.pow((countBit(arr[i])),(i+1))%mod))%mod;\n\t\t}\n\t\tSystem.out.println(total);\n\t}", "title": "" }, { "docid": "6c3e1e061e702cad35027fcc7aec23fc", "score": "0.54219747", "text": "public static int [] getIntegers(int number) {\n\t\tScanner scanner =new Scanner(System.in);\n\t\tSystem.out.println(\"Enter \" +number+ \"integer value\");\n\t\tint[]values= new int[number];\n\t\tfor(int i=0; i<number; i++) {\n\tvalues[i]=scanner.nextInt();\t\n\t}\n\t\treturn values;\n\t}", "title": "" }, { "docid": "08aa0ea8c9f2514ad2e4d666e642902a", "score": "0.54195666", "text": "public interface Counter\n{\n\tlong count(int[] riceArray);\n}", "title": "" }, { "docid": "894e811eb115ad306d9ca1f6062de1fd", "score": "0.5417963", "text": "public void getCounts() {\t\r\n\t\t\r\n\t\tfor(int i = 0; i < 4; i++)\r\n\t\t\tfor(int j = 0; j < 3; j++)\r\n\t\t\t\tthecounts[i][j] = 0;\r\n\t\t\r\n\t\tfor(int i=0;i<maps.length-1;i++) {\r\n\t\t\tif(maps.Array1.charAt(i) == 'H' && maps.Array1.charAt(i+1) == 'E')\r\n\t\t\t\tthecounts[0][0]++;\r\n\t\t\telse if(maps.Array1.charAt(i) == 'E' && maps.Array1.charAt(i+1) =='-') \r\n\t\t\t\tthecounts[0][1]++;\r\n\t\t\telse if(maps.Array1.charAt(i) == '-' && maps.Array1.charAt(i+1) == 'H')\r\n\t\t\t\tthecounts[0][2]++;\r\n\t\t\tif(maps.Array2.charAt(i) == 'H' && maps.Array2.charAt(i+1) == 'E')\r\n\t\t\t\tthecounts[1][0]++;\r\n\t\t\telse if(maps.Array2.charAt(i) == 'E' && maps.Array2.charAt(i+1) == '-') \r\n\t\t\t\tthecounts[1][1]++;\r\n\t\t\telse if(maps.Array2.charAt(i) == '-' && maps.Array2.charAt(i+1) == 'H')\r\n\t\t\t\tthecounts[1][2]++;\r\n\t\t\tif(maps.Array3.charAt(i) == 'H' && maps.Array3.charAt(i+1) == 'E')\r\n\t\t\t\tthecounts[2][0]++;\r\n\t\t\telse if(maps.Array3.charAt(i) == 'E' && maps.Array3.charAt(i+1) == '-') \r\n\t\t\t\tthecounts[2][1]++;\r\n\t\t\telse if(maps.Array3.charAt(i) == '-' && maps.Array3.charAt(i+1) == 'H')\r\n\t\t\t\tthecounts[2][2]++;\r\n\t\t\tif(maps.Array4.charAt(i) == 'H' && maps.Array4.charAt(i+1) == 'E')\r\n\t\t\t\tthecounts[3][0]++;\r\n\t\t\telse if(maps.Array4.charAt(i) == 'E'&&maps.Array4.charAt(i+1) == '-') \r\n\t\t\t\tthecounts[3][1]++;\r\n\t\t\telse if(maps.Array4.charAt(i) == '-' && maps.Array1.charAt(i+1) == 'H')\r\n\t\t\t\tthecounts[3][2]++;\r\n\t\t}\r\n\t\t\r\n\t\t//Getting transition value between 1 and 0\r\n\t\tfor(int i=0;i<4;i++) {\r\n\t\t\tfor(int j=0;j<3;j++) {\r\n\t\t\t\tthecounts[i][j]/=maps.length;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//Displaying the obtained values\r\n\t\tSystem.out.println(\"\\nTRANSITION\");\r\n\t\tSystem.out.println(\"HYDROPHOBICITY: 1->2: \" + thecounts[0][0] + \" 2->3: \" + thecounts[0][1] + \" 3->1: \" + thecounts[0][2]);\r\n\t\tSystem.out.println(\"POLARIZABILITY: 1->2: \" + thecounts[1][0] + \" 2->3: \" + thecounts[1][1] + \" 3-1: \" + thecounts[1][2]);\r\n\t\tSystem.out.println(\"POLARITY: 1->2: \" + thecounts[2][0] + \" 2->3: \" + thecounts[2][1] + \" 3->1: \" + thecounts[2][2]);\r\n\t\tSystem.out.println(\"VAN DER WALLS VOLUME: 1->2: \" + thecounts[3][0] + \" 2->3: \" + thecounts[3][1] + \" 3->1: \" + thecounts[3][2]);\r\n\t\t\r\n\t}", "title": "" }, { "docid": "b94f4e74a5869d65fc87b309dfd5e6a0", "score": "0.54115975", "text": "private static void mostOccur(int[] is) {\n\t\t\t\n\t\t\t\n\t\t\tMap<Integer, Integer> numberCount = new HashMap<>();\n\t\t\t\n\t\t\t\n\t\t\tfor (int i=0; i<is.length; i++ ) {\n\t\t\t\tif(null==numberCount.get(i)) {\n\t\t\t\tnumberCount.put(i, 1);\n\t\t\t\t} else {\n\t\t\t\t\tnumberCount.put(i, numberCount.get(i) +1);\n\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//Iterator<Integer> it = numberCount.keySet().iterator();\n\t\t\tSet<Entry<Integer, Integer>> entries= numberCount.entrySet();\n\t\t\t\n\t\t\tint maxcount=1;\n\t\t\tint maxvalue = 0;\n\t\t\tfor(Entry<Integer, Integer> entry: entries) {\n\t\t\t\tif (entry.getValue()>maxcount) {\n\t\t\t\tmaxcount = entry.getValue();\n\t\t\t\tmaxvalue = entry.getKey();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tif(maxvalue == 0) {\n\t\t\t\tSystem.out.println(\"All numbers are same\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Most occurance\" + maxvalue + \"and count\" +maxcount);\n\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\n\t\t\t\n\t\t\t\n\t\t\t// TODO Auto-generated method stub\n\t\t\t\n\t\t}", "title": "" }, { "docid": "7216d079e33dac538c049ba0a287520e", "score": "0.54047847", "text": "private static void test1() {\n\n\tint n=10000;\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tint val=rand7();\n\t\t\tcount[val]++;\n\t\t}\n\t\t\n\t\tfor(int i:count)\n\t\t\tSystem.out.println(i);\n\t}", "title": "" }, { "docid": "dfb049225310255ea1672db8ff9b33fc", "score": "0.540455", "text": "public int singleNumber(int[] nums) {\n\n HashMap<Integer, Integer> occurrences = new HashMap<>();\n\n\n for (int i : nums) {\n occurrences.put(i, occurrences.getOrDefault(i, 0) + 1);\n }\n\n for (Map.Entry<Integer, Integer> m : occurrences.entrySet()) {\n System.out.printf(\"%d occur %d time(s)\\n\", m.getKey(), m.getValue());\n if (m.getValue() == 1) {\n return m.getKey();\n }\n\n\n }\n\n return 0;\n\n\n }", "title": "" }, { "docid": "2ff1da34d06016498898adc96d2322de", "score": "0.5402247", "text": "public static void main(String[] args) {\n\t\n\t\tScanner scanner=new Scanner(System.in);\n\t\tint noOftestCases = scanner.nextInt();\n\t\t\n\t\tfor (int p = 0; p < noOftestCases; p++) {\n\t\t\tint buffer[]=new int[100001];\n\t\t\tint size = scanner.nextInt();\n\t\t\t//int x[]=new int[size];\n\t\t\tfor (int i = 0; i < size; i++) {\n\t\t\t\tint temp=scanner.nextInt();\n\t\t\t\tbuffer[temp%100000]++;\n\t\t\t}\n\t\t\tint kSmallest = scanner.nextInt();\n\t\t\tint i=0;\n\t\t\twhile(kSmallest>0){\n\t\t\t\ti++;\n\t\t\t\tif(buffer[i]!=0)\n\t\t\t\t\tkSmallest-=buffer[i];\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(i);\n\t\t\t\n\t\t}\n\t}", "title": "" }, { "docid": "64e094cddb426932f483dbb4a9ea30a7", "score": "0.54018235", "text": "public int[] countBits(int num) {\n int[] m = new int[num+1];\n for (int i = 1; i <= num; i++) {\n m[i] = m[i/2] + (i & 1);\n }\n return m;\n }", "title": "" }, { "docid": "229adec84617e6556d31352cf4803a81", "score": "0.53989017", "text": "public static int[] readMysteriousNumbers(String filename) throws Exception {\n File file = new File(filename);\n Scanner counter = new Scanner(file);\n int numLines = 0;\n while(counter.hasNextLine()){\n counter.nextLine();\n numLines++;\n }\n int[] arr = new int[numLines];\n\n\n\n Scanner reader = new Scanner(file);\n int index = 0;\n while(reader.hasNextLine()){\n arr[index] = Integer.parseInt(reader.nextLine());\n index++;\n }\n\n\n\n\n return arr;\n /*\n List<Integer> nums = new ArrayList<>();\n while (scanner.hasNextInt()) {\n nums.add(scanner.nextInt());\n }\n int[] ret = new int[nums.size()];\n for(int i = 0;i < ret.length;i++) {\n ret[i] = nums.get(i);\n }\n return ret*/\n }", "title": "" } ]
494b09ae1932e6702d3cfc01d2559c50
Returns a list of all products in the user's shopping list
[ { "docid": "4d850116c065f8e5c00f605c3ac07e5d", "score": "0.71282166", "text": "public static List<Pair<Product, Integer>> getShoppingList(CustomerUser user)\n {\n ArrayList<Pair<Product, Integer>> shoppingList = new ArrayList<>();\n try {\n PreparedStatement searchStatement = DatabaseConnection.conn.prepareStatement(\"SELECT * FROM \" +\n TABLE_NAME + \", \" + ProductTable.TABLE_NAME +\n \" WHERE \" + Fields.CustomerUsername + \" = ? AND \" + TABLE_NAME + \".\" + Fields.ProductId + \" = \" + ProductTable.TABLE_NAME + \".\" + ProductTable.Fields.ProductId);\n searchStatement.setString(1, user.customerUsername);\n ResultSet rs = searchStatement.executeQuery();\n while(rs.next())\n {\n shoppingList.add(new Pair(ProductTable.productFromResultSet(rs), rs.getInt(Fields.Amount.toString())));\n }\n }\n catch(SQLException e)\n {\n e.printStackTrace();\n }\n return shoppingList;\n }", "title": "" } ]
[ { "docid": "9003a5c9f726e72b4b3f5d06c7139075", "score": "0.7240653", "text": "@Override\n\tpublic List<Product> showAllProduct() {\n\t\treturn myList;\n\t}", "title": "" }, { "docid": "adcfabd335d917961fadbfa7e79361cd", "score": "0.7134088", "text": "@GET\n public List<Product> getProducts() {\n return ProductManager.getInstance().getProducts();\n }", "title": "" }, { "docid": "722db982123bc5485c78c7d7880cf394", "score": "0.71216965", "text": "public List<Product> getAllProducts();", "title": "" }, { "docid": "23a06e0a64f0378cf2c2ba053806f7c1", "score": "0.7052642", "text": "public List<Product> allProducts() {\n return productRepository.findAll();\n }", "title": "" }, { "docid": "d2fc5845e40a4f7c618bff46f3e03ac4", "score": "0.7051695", "text": "@Override\r\n\tpublic List<Product_buy> getListProduct(int idUser) {\n\t\tList<Product_buy> lstProBuy = new ArrayList<>();\r\n\t\tlstProBuy = em.createNamedQuery(\"product_buy.findAllProBuy\", Product_buy.class).setParameter(\"id_user\", idUser)\r\n\t\t\t\t.getResultList();\r\n\t\treturn lstProBuy;\r\n\t}", "title": "" }, { "docid": "0cf83deb7647a22eba2071c0f71cd870", "score": "0.7031548", "text": "@Override\r\n\tpublic List<Product> showProducts() {\n\t\treturn repo.showProducts();\r\n\t}", "title": "" }, { "docid": "ff661e40ce522f607e43359f1693ec50", "score": "0.6975713", "text": "List<Product> getAllProducts();", "title": "" }, { "docid": "a9a0f21ecc2ec60a4bbba34c2c8e048b", "score": "0.69733983", "text": "public String showAllProducts()\n {\n List<ProductVO> products = new ArrayList<ProductVO>();\n productsList = productSessionService.getAllProducts();\n makeProductVOList(productsList, products);\n productHolder.setProducts(products);\n return AdminConstants.PAGE_VIEW_SHOW_PRODUCTS;\n }", "title": "" }, { "docid": "5022d07c4e1fb22143e9669b47bd494e", "score": "0.6952988", "text": "@RequestMapping(method = RequestMethod.GET)\n public List<Product> products() {\n log.info(\"get all products\");\n // Invoke the appropriate service method and return\n return service.findAll();\n }", "title": "" }, { "docid": "35b2c4312009bc1ed4e61fb1b907e1a9", "score": "0.69067556", "text": "@GetMapping(\"/getProducts\")\n\tpublic List<Product> getAllProducts() {\n\t\tLOGGER.info(\"All products Fetched\");\n\t\treturn productService.getAllProducts();\n\t}", "title": "" }, { "docid": "37668e0283f03e4acfa6fa6e7b66d9dd", "score": "0.68648005", "text": "public List getAllProduct() {\n\t\treturn sessionFactory.getCurrentSession().createQuery(\"from Product\").list();\r\n\t}", "title": "" }, { "docid": "0165fa1dcba068bd118849529bbd350a", "score": "0.6860475", "text": "public java.util.List<proto_def.UserMessage.BagResp.Product> getProductsList() {\n return products_;\n }", "title": "" }, { "docid": "8d75d8fa2c5b1da8f0fd8ddecc136bc7", "score": "0.68585", "text": "public List<Product> getAllProducts() {\n\n return (List<Product>) productRepository.findAll();\n }", "title": "" }, { "docid": "d18222908410d1078e3c916d570d01d3", "score": "0.682674", "text": "public List getProducts(Product product);", "title": "" }, { "docid": "f4fdf3591cc9d71b27cd4ce01393a815", "score": "0.68239015", "text": "@GetMapping\n public Iterable<Product> getAllTheProducts() {\n \t\n return productService.findAllProducts();\n }", "title": "" }, { "docid": "f90ea8dc440e6898cee3537e5adcf987", "score": "0.68067974", "text": "List<String> getProducts();", "title": "" }, { "docid": "f14aadc0b872313bbc2f6097bd7b17d1", "score": "0.6783794", "text": "public List<Product> getProducts() {\n\t\treturn productRepository.findAll(); \n\t}", "title": "" }, { "docid": "0c6ca674baba176b4f4f2f44c25b0932", "score": "0.67641914", "text": "public List<Product> getAllProducts() throws Exception {\n\t\tCollection<Product> values=productRepo.values();\n\t\tif(values==null ||values.isEmpty())throw new EmptyResultException(\"No Products are registered at the moment\");\n\t\treturn Collections.unmodifiableList(new ArrayList<Product>(values));\n\t}", "title": "" }, { "docid": "c86e7e02460a8139ccb52bb8379c0e67", "score": "0.6759157", "text": "public void listProducts() {\n\t\tIterator<Result> iterator = groceryStore.getAllProducts();\n\t\tif (iterator.hasNext()) {\n\t\t\t// displays the header of the table\n\t\t\tSystem.out.println(\"\\n\" + String.format(\"%-10s\", \"Product ID\") + \" \"\n\t\t\t\t\t+ String.format(\"%-25s\", \"Product Name\") + \" \" + String.format(\"%-13s\", \"Current Price\") + \" \"\n\t\t\t\t\t+ String.format(\"%-13s\", \"Stock On Hand\") + \" \" + String.format(\"%-13s\", \"Reorder Level\"));\n\t\t\tSystem.out.println(\"-\".repeat(82));\n\t\t\t// for loop prints all products\n\t\t\tfor (Iterator<Result> counter = iterator; counter.hasNext();) {\n\t\t\t\tResult result = counter.next();\n\t\t\t\tSystem.out.println(String.format(\"%-10s\", result.getProductId()) + \" \"\n\t\t\t\t\t\t+ String.format(\"%-25s\", fittedString(result.getProductName(), 25)) + \" \"\n\t\t\t\t\t\t+ String.format(\"%13.2f\", result.getProductCurrentPrice()) + \" \"\n\t\t\t\t\t\t+ String.format(\"%13s\", result.getProductStockOnHand()) + \" \"\n\t\t\t\t\t\t+ String.format(\"%13s\", result.getProductReorderLevel()));\n\t\t\t}\n\t\t} else {\n\t\t\t// in case the product database is empty\n\t\t\tSystem.out.println(\"No products in the database.\");\n\t\t}\n\t}", "title": "" }, { "docid": "cd78c497cb3dea1d0b2018d1fa746562", "score": "0.6758785", "text": "@GetMapping(\"/products\")\n\tpublic List<Product> getProducts() {\n\t\tlogger.info(\"getProducts() API invoked\");\n\t\tList<Product> products = service.getProducts();\n\n\t\treturn products;\n\t}", "title": "" }, { "docid": "a2e1b6bf31046804a96183edf4049e31", "score": "0.67367643", "text": "public List<Product> getProducts() {\n\t String sql=\"select * from spacesta.products\";\n\t List<Product> products = jdbcTemplate.query(sql, new ProductMapper());\n\t return products;\n }", "title": "" }, { "docid": "d5623de51eecbe1abe2ac8dbfa0190ca", "score": "0.67354095", "text": "private List<Product> getProductList() {\n List<Product> productList = new ArrayList<>();\n\n // TODO Get product list from Firebase\n // For now we just use some dummy data...\n productList.add(new Product(\"Some product\", 2));\n productList.add(new Product(\"Another product\", 2));\n productList.add(new Product(\"A third product\", 2));\n productList.add(new Product(\"More products\", 2));\n productList.add(new Product(\"Final product\", 2));\n\n return productList;\n }", "title": "" }, { "docid": "fef470916567d8289ad02442fb8ba831", "score": "0.669972", "text": "public List<Product> getProductList() {\n return productDao.getProductList();\n }", "title": "" }, { "docid": "a2b8f538d70c22f4bc20b62b70d3fa1d", "score": "0.6681279", "text": "@Override\n public List<Product> viewProducts() {\n return productdao.getAllProducts();\n }", "title": "" }, { "docid": "5deef3c1da9856b7adc5b0abcf7b293e", "score": "0.6676592", "text": "List<Product> listAll();", "title": "" }, { "docid": "a4b2ac4bad80ad81b261da25b9abb28b", "score": "0.6675638", "text": "@Override\n\tpublic List getAllProduct() {\n\t\treturn proddao.getAllProduct();\n\t}", "title": "" }, { "docid": "cead520da5e0624fa6d18dc01796cf4c", "score": "0.6663987", "text": "java.util.List<proto_def.UserMessage.BagResp.Product> \n getProductsList();", "title": "" }, { "docid": "719d649bf01de4907e102e01f5c041fc", "score": "0.6661707", "text": "@Override\n\tpublic List<Product> GetProducts() {\n\t\treturn productDal.GetProducts();\n\t}", "title": "" }, { "docid": "6863710a5e1919c22e2505f72767fe1d", "score": "0.666164", "text": "public List<Product> getallprods() {\n\t\treturn productdao.getallprods();\r\n\t}", "title": "" }, { "docid": "5d60ba910bbc5349caed576ac0e785af", "score": "0.6656075", "text": "public List<Product> findAllProducts() {\n\t\treturn productDao.getAllProduct();\r\n\t}", "title": "" }, { "docid": "aa03c0a9c9eb1acb063f9aedc11964d1", "score": "0.6652784", "text": "@SuppressWarnings(\"unchecked\")\r\n\t@Override\r\n\tpublic List<Product> getAllProduct() {\n\t\treturn HibernateUtil.getSessionFactory().getCurrentSession()\r\n\t\t\t\t.createQuery(\"from Product\").list();\r\n\t}", "title": "" }, { "docid": "ebdd667fdbd2601acffcf6cdc47a35aa", "score": "0.66517395", "text": "java.util.List<io.adetalhouet.order.system.product.grpc.Product> \n getProductsList();", "title": "" }, { "docid": "5aed0926034805c2b0f918b9da2320ba", "score": "0.6636562", "text": "@Transactional\n\tpublic List<product> getAllProducts() {\n\t\treturn productDAO.getAllProducts();\n\t}", "title": "" }, { "docid": "41f6f379b658ce3bf2c35f196a3e2497", "score": "0.6633489", "text": "Product[] getAllProducts();", "title": "" }, { "docid": "2a2ab1432263c1d260a9b32bdc8ea208", "score": "0.66205335", "text": "public Collection<SimpleDataRepository.Product> getAllProducts() {\n return dataRepository.getProducts();\n }", "title": "" }, { "docid": "21fa7c38f4e6321bb7e321d3a456ea57", "score": "0.661417", "text": "public java.util.List<proto_def.UserMessage.BagResp.Product> getProductsList() {\n if (productsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(products_);\n } else {\n return productsBuilder_.getMessageList();\n }\n }", "title": "" }, { "docid": "0815a0f1a1db4414b82332dbda2da865", "score": "0.6611176", "text": "@Transactional\n\t@Override\n\tpublic List<Product> getAllProducts() {\n\t\tList<Product> pList = productDao.getFeaturedItems();\n\t\treturn pList;\n\t}", "title": "" }, { "docid": "def5384fdd744ef23698d9a541170578", "score": "0.66060054", "text": "private List<Product> getAllProducts() {\n ticketList = new ArrayList<Product>();\n ticketList.add(new Product(\"Pan\", 2, 1.75));\n ticketList.add(new Product(\"Leche\", 4,2.50));\n ticketList.add(new Product(\"Chifon\", 1, 4.5));\n return ticketList;\n }", "title": "" }, { "docid": "4c4b0e7f0bc69f2ef98746eb0268333e", "score": "0.6600372", "text": "@GetMapping(\"/allproducts\")\n\t@ResponseBody\n\tpublic List<Product> getProducts() {\n\t\ttry {\n\t\t\tList<Product> products = productRepository.findAll();\n\t\t\treturn products;\n\t\t} catch (Exception ex) {\n\t\t\treturn null;\n\t\t}\n\t}", "title": "" }, { "docid": "6dc17e4c1c7c2a400c15ee74e67cf192", "score": "0.6588682", "text": "public List<Product> findAllProducts() {\n\t\treturn dao.getAll();\n\t}", "title": "" }, { "docid": "ea08bd5412c07213b83c8f6322d46a01", "score": "0.6588426", "text": "@Override\n\t@SuppressWarnings(\"unchecked\")\n\tpublic List<Product> listProduct() {\n\t\tList<Product> ProductList = sessionFactory.getCurrentSession()\n\t\t\t\t.createCriteria(Product.class).list();\n\t\treturn ProductList;\n\n\t}", "title": "" }, { "docid": "2291332aafe2be91269ce4e9f91197a5", "score": "0.657651", "text": "public List<Product> populateProductsFromDB(){\n\t\t\n\t\treturn productList;\n\t\t\n\t}", "title": "" }, { "docid": "86b364807e9c44f957762852fb64d692", "score": "0.65458626", "text": "public List<Product> getProducts() {\n return products;\n }", "title": "" }, { "docid": "6fade31886e414c432b421abdc98e5d1", "score": "0.6531986", "text": "@Override\n public List<Product> getAvailableProducts() {\n return productRepository.findAll().stream().filter(Product::hasStocks).collect(Collectors.toList());\n }", "title": "" }, { "docid": "eb7fd2df38a83f9c827f934ff097dfee", "score": "0.652346", "text": "public static ObservableList<Product> getAllProducts() {\n return allProducts;\n }", "title": "" }, { "docid": "e7a674f93c665b3f3ced65bdff29468e", "score": "0.65228486", "text": "public List<Product> selectProductAll() {\n\t\treturn this.mpd.selectProductAll();\n\t}", "title": "" }, { "docid": "9b47b4aed6f280ade83261d52f6abca6", "score": "0.6512626", "text": "@SuppressWarnings(\"unchecked\")\r\n\t@Override\r\n\tpublic List<Product> getListProduct() {\n\t\tQuery query = em.createQuery(\"Select u from Product u\");\r\n\t\tList<Product> list = query.getResultList();\r\n\t\treturn list;\r\n\t}", "title": "" }, { "docid": "e9b883eba689c675f21362fde839244e", "score": "0.65074295", "text": "public void findOutAllProductsList(){\n for (Shops s : Shops.shops){\n for (Product p : s.getProductList())\n allProductsList.put(p.getName(), p.getPrice());\n }\n }", "title": "" }, { "docid": "6b19505fc1a062859f78b59bf85ea2f9", "score": "0.6497351", "text": "public List<ProductDto> showAllProducts() {\n\n\t\tList<ProductDto> list = null;\n\n\t\tlist = hibernateTemplate.find(\"from ProductDto\");\n\n\t\treturn list;\n\n\t}", "title": "" }, { "docid": "374a2313e240e26f3ab3deb55af85740", "score": "0.6495709", "text": "public List<Product> getList(Product product);", "title": "" }, { "docid": "7db6c118dd57c57d002c636e401ecfa1", "score": "0.64690447", "text": "public static list<product> findAll() {\n\treturn product.find.all();\n}", "title": "" }, { "docid": "22198ccfe4e48037abef825a2e2fb1e0", "score": "0.6467864", "text": "private static ArrayList<Product> getProducts() {\n ArrayList<Product> products = new ArrayList<>();\n products.addAll(getTripleOProducts());\n products.addAll(getHyackProducts());\n products.addAll(getVCafeProducts());\n products.addAll(getSpaghettiFactoryProducts());\n products.addAll(getKiSushiProducts());\n products.addAll(getPivaProducts());\n products.addAll(getLudicaProducts());\n products.addAll(getPatsaraProducts());\n products.addAll(getSushiYenProducts());\n products.addAll(getBavariaProducts());\n return products;\n }", "title": "" }, { "docid": "49315745e19d20a745a4b7b428617067", "score": "0.6466711", "text": "@Override\r\n\tpublic ArrayList<Product> getAllProductList() {\n\t\tArrayList<Product> productList=new ArrayList<>();\r\n\t\ttry(Connection conn=JdbcUtil.getInstance().getConnection();) {\r\n\t\t\tString sql=\"select * from product order by id desc\";\r\n\t\t\tPreparedStatement ps=conn.prepareStatement(sql);\r\n\t\t\tResultSet rs=ps.executeQuery();\r\n\t\t\twhile(rs.next()) {\r\n\t\t\t\tProduct product=new Product();\r\n\t\t\t\tproduct.setProductId(rs.getInt(1));\r\n\t\t\t\tproduct.setProductName(rs.getString(2));\r\n\t\t\t\tproduct.setProductPrice(rs.getDouble(3));\r\n\t\t\t\tproduct.setProductInventory(rs.getInt(4));\r\n\t\t\t\tproduct.setProductSeller(rs.getString(5));\r\n\t\t\t\tproduct.setProductDes(rs.getString(6));\r\n\t\t\t\tproductList.add(product);\t\r\n\t\t\t}\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\t\r\n\t\t}\t\t\r\n\t\treturn productList;\r\n\t}", "title": "" }, { "docid": "9033767bab957601365b972e00031bb4", "score": "0.6454334", "text": "@NotNull\n public Collection<Product> getAllProducts() {\n return new ArrayList<>(products.values());\n }", "title": "" }, { "docid": "1a6d5a8cdd24b308130774d19e5fee9b", "score": "0.64512885", "text": "@Override\n\tpublic List<Products> findBoughtByUser(Accounts user) {\n\t\treturn orderDAO.findBoughtByUser(user);\n\t}", "title": "" }, { "docid": "f5e172eff255a62f5250a2236ec06443", "score": "0.6448158", "text": "public List<Product> getProductList() {\n\t\treturn dao.getProductList();\n\t}", "title": "" }, { "docid": "3d8768b7307a647e892adfc354305ae7", "score": "0.6432873", "text": "@Override\n\tpublic List<Product> getProducts() {\n\t\tString jpql = \"from Product\"; //select p from Product p;\n\t\tTypedQuery<Product> query = em.createQuery(jpql,Product.class);\n\t\treturn query.getResultList();\n\t}", "title": "" }, { "docid": "0b8868678fd9474a31d5f3090bbbdd67", "score": "0.6429878", "text": "List<Product> findAllProducts();", "title": "" }, { "docid": "66545c6517e740a292b226a625850664", "score": "0.642757", "text": "@Override\n\tpublic List<Products> getAll() {\n\t\treturn this.productDao.findAll();\n\t}", "title": "" }, { "docid": "0fa83ae4a7cd993bc6e2151bcaed1ce6", "score": "0.6413789", "text": "@GetMapping(value = \"/allProducts\")\n public List<Product> getAllProducts(){\n return(productService.getAllProducts());\n }", "title": "" }, { "docid": "9ec0fc69a94c5e3ef2cbc9e3e78085b7", "score": "0.63848263", "text": "public List<Product> getAll() {\n\t\treturn hibernateTemplate.loadAll(Product.class);\r\n\t}", "title": "" }, { "docid": "05bd6c6fd367a41c755b7a3ed74c8233", "score": "0.6371116", "text": "public ArrayList<String> GetAllProducts()\n {\n SQLiteDatabase dbase = this.getReadableDatabase();\n String sql = \"SELECT \" + PRODUCT_NAME +\n \" FROM \" + TABLE_NAME_PRODUCT;\n ArrayList<String> all_products = new ArrayList<String>();\n Cursor result;\n\n // Get all products\n result = dbase.rawQuery(sql, null);\n\n if (result == null)\n {\n return all_products;\n }\n\n if (result.moveToFirst())\n {\n all_products.add(result.getString(result.getColumnIndex(PRODUCT_NAME)));\n\n while(result.moveToNext())\n {\n all_products.add(result.getString(result.getColumnIndex(PRODUCT_NAME)));\n }\n }\n result.close();\n\n return all_products;\n }", "title": "" }, { "docid": "005aa436a505dba0666c032058b11c43", "score": "0.6366162", "text": "@Override\r\n\tpublic List<ShoppingCartModel> retrieveProducts() {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "17dcf69eef6d075c1220071e2268dc91", "score": "0.63170815", "text": "@GetMapping(\"/getAll\")\n\tpublic String viewAllProducts(Model model,HttpServletRequest request) throws UserNotFoundException, TokenExpiresException{\n\t\tList<ProductDTO> productList = productService.viewAllProduct();\n\t\tmodel.addAttribute(\"productList\", productList);\n\t\treturn \"productList\";\n\t\t\n\t}", "title": "" }, { "docid": "22e3b7dc8b45d032166070014d2e04ee", "score": "0.6294304", "text": "@Override\n\tpublic List<Product> getAllProductsByName() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "70e49dbd39809aa8e2367a74b4864a25", "score": "0.62930816", "text": "public List<ProductDvo> getProducts() {\n\t\tif (products == null) {\n\t\t\tlogger.debug(\"retrieving products from db..\");\n\t\t\tproducts = mongoTemplate.findAll(ProductDvo.class, \"productDvo\");\n\t\t\tlogger.debug(\"retrieved [\" + products.size()+ \"] products from db..\");\n\t\t} else {\n\t\t\tlogger.debug(\"returning [\" + products.size()+ \"] products from service...\");\n\t\t}\n\t\treturn products;\n\t}", "title": "" }, { "docid": "88b3d8ed2e28c3c9a00bd976357a73fe", "score": "0.6292646", "text": "@Override\n\tpublic List<Product> findAll() {\n\t\treturn prodDao.findAll();\n\t}", "title": "" }, { "docid": "ce6cf7ee3d093afd8f8da6ba2ea5415f", "score": "0.62919647", "text": "@Override\n\tpublic List<Cart> getCartproducts(String username) {\n\t\t return template.query(\"select * from public.cart where username='\"+username+\"'\",new RowMapper<Cart>(){ \n\t\t public Cart mapRow(ResultSet rs, int row) throws SQLException { \n\t\t Cart e=new Cart(); \n\t\t e.setCartid(rs.getInt(1)); \n\t\t e.setUsername(rs.getString(3)); \n\t\t e.setProductid(rs.getInt(2)); \n\t\t e.setProductname(rs.getString(4));\n\t\t return e; \n\t\t } \n\t\t }); \n\t}", "title": "" }, { "docid": "f25e8266105d8d001978778a8881112a", "score": "0.6290591", "text": "@Override\n\tpublic product getProducts() {\n\t\tList<vegitables> _vegitables = _vegitableRepository.findAll();\n\t\tList<books> _books = _BooksRepository.findAll();\n\t\tList<mobiles> _mobiles = _mobilesRepository.findAll();\n\t\t_product.setVegitables(_vegitables);\n\t\t_product.setBooks(_books);\n\t\t_product.setMobiles(_mobiles);\n\t\treturn _product;\n\n\t}", "title": "" }, { "docid": "ea5a68f8d463f7c663e87237d311356e", "score": "0.6288133", "text": "public List<ProductDto> retrieveAllProducts() {\n\t\treturn productRepository.findAll().stream().map(product -> modelMapper.map(product, ProductDto.class)).collect(Collectors.toList());\n\t}", "title": "" }, { "docid": "3a101d10028031238dafaf5f23692383", "score": "0.62788785", "text": "public List<Shop> getShops();", "title": "" }, { "docid": "beae795984baae7bc6a19b664ae54631", "score": "0.62761366", "text": "public List<ProductView> getProducts(String developerId) {\n LOG.debug(\"Enter. developerId: {}.\", developerId);\n\n List<ProductView> result = Lists.newArrayList();\n\n String key = String.format(RedisUtils.PRODUCT_KEY_FORMAT, developerId);\n Map<String, ProductView> cacheProducts = redisTemplate.opsForHash().entries(key);\n\n if (!CollectionUtils.isEmpty(cacheProducts)) {\n result = cacheProducts.values().stream()\n .sorted((view1, view2) -> view2.getCreatedAt().compareTo(view1.getCreatedAt()))\n .collect(Collectors.toList());\n }\n\n LOG.trace(\"Products: {}.\", result);\n LOG.debug(\"Exit. products size: {}.\", result.size());\n return result;\n }", "title": "" }, { "docid": "9c10d7ba13304be2b47c181f6eff042e", "score": "0.62756366", "text": "public static ArrayList<Product> allProducts() {\n ArrayList<Product> productsArrayList = new ArrayList<>();\n ResultSet rs;\n\n String query = selectAllFrom + \"Product;\";\n\n try {\n connect();\n rs = execute(query);\n // Populate the ArrayList with Product Objects\n while (rs.next()) {\n productsArrayList.add(new Product(\n rs.getString(1),\n rs.getDouble(2),\n rs.getString(3),\n rs.getInt(4),\n rs.getString(5)\n ));\n }\n disconnect();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n // Return populated Product ArrayList\n return productsArrayList;\n }", "title": "" }, { "docid": "2d710ba2de41e2b5cd9fdb23fb17036f", "score": "0.62666124", "text": "public ArrayList<Product> allProducts() {\n ArrayList<Product> productList = new ArrayList<>();\n try {\n Statement stm = dbconn.createStatement();\n ResultSet res = stm.executeQuery(\"Select ProductID, ProductName from dbo.products\");\n while (res.next()){\n Product productObject = new Product(res.getInt(1),res.getString(2));\n productList.add(productObject);\n }\n }\n catch (SQLException e) {\n e.printStackTrace();\n }\n finally {\n if (dbconn!=null){\n try {\n dbconn.close();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }\n }\n return productList;\n }", "title": "" }, { "docid": "fdfab380baeb55ab7e0f6b590544ca6f", "score": "0.62638444", "text": "public Collection<SimpleDataRepository.Product> getAllProductsFilteredByExpiresTrueAndSortedByName() {\n return dataRepository.getProducts();\n }", "title": "" }, { "docid": "bdb721d300f193785e431f65f8524448", "score": "0.6258851", "text": "@Override\n\tpublic List<ProductInfo> findAll() {\n\t\treturn getAll(SqlUtils.sqlFindByProperty(\"product_info\"), new ProductMapper());\n\t}", "title": "" }, { "docid": "eab73771dd87eca47edf9940f7c2d74b", "score": "0.62510705", "text": "@Override\r\n\tpublic List<Products> SelectAllCreditShop() {\n\t\treturn creditshopMapper.SelectAllCreditShop();\r\n\t}", "title": "" }, { "docid": "ef990854982f0bd5c382a64c71524906", "score": "0.6248226", "text": "@Override\r\n\tpublic Set<Product> getAllProducts() {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "d0b073d6ec6b3e486fd091f3d7fbd43e", "score": "0.62460554", "text": "@RequestMapping(value = \"/allproducts\")\r\n\r\n\tpublic ModelAndView allproducts() {\r\n\t\tList<Product> products = productDAO.list();\r\n\t\tList<ProductListModel> productlist = new ArrayList<>();\r\n\r\n\t\tProductListModel productModel = null;\r\n\r\n\t\tfor (Product p : products) {\r\n\t\t\tproductModel = new ProductListModel();\r\n\t\t\tproductModel.setProduct(p);\r\n\t\t\tproductModel.setCategoryName(categoryDAO.getCategory(p.getCategory_id()).getCategory_name());\r\n\t\t\tproductModel.setSupplierName(supplierDAO.getSupplier(p.getSupplierId()).getName());\r\n\t\t\tproductlist.add(productModel);\r\n\r\n\t\t}\r\n\t\tModelAndView mv = new ModelAndView(\"page\");\r\n\r\n\t\tmv.addObject(\"title\", \"View all products\");\r\n\t\tmv.addObject(\"products\", productlist);\r\n\t\tmv.addObject(\"ifAdminClickedSettings\", true);\r\n\t\tmv.addObject(\"ifAdminClickedViewAllProducts\", true);\r\n\t\treturn mv;\r\n\t}", "title": "" }, { "docid": "818f116898d98cc1546d36d6d2d4012a", "score": "0.6241832", "text": "private static ArrayList<Product> setupProducts() {\n\t\tArrayList<Product> products = new ArrayList<>();\n\t\t\n\t\t\n\t\t//Whiskey\n\t\tProduct a1 = new Product(\"Whiskey\", 50, 6.0, 1);\n\t\tProduct a2 = new Product(\"Whiskey\", 100, 12.0, 1);\n\t\tProduct a3 = new Product(\"Whiskey\", 700, 80.0, 1);\n\t\t\n\t\tproducts.add(a1);\n\t\tproducts.add(a2);\n\t\tproducts.add(a3);\n\t\t\n\t\t//Vodka\n\t\tProduct a4 = new Product(\"Vodka\", 50, 4.0, 2);\n\t\tProduct a5 = new Product(\"Vodka\", 100, 8.0, 2);\n\t\tProduct a6 = new Product(\"Vodka\", 700, 56.0, 2);\n\t\t\n\t\tproducts.add(a4);\n\t\tproducts.add(a5);\n\t\tproducts.add(a6);\n\t\t\n\t\t//Water\n\t\tProduct a7 = new Product(\"Water\", 0, 2, 4);\n\t\tproducts.add(a7);\n\t\t\n\t\t//Coca-Cola\n\t\tProduct a8 = new Product(\"Coca-Cola\", 0, 3, 5);\n\t\tproducts.add(a8);\n\t\t\n\t\t//Nuts\n\t\tProduct a9 = new Product(\"Nuts\", 0, 5, 6);\n\t\tproducts.add(a9);\n\t\t\n\t\t//Beer\n\t\tProduct a10 = new Product(\"Beer\", 0, 4, 7);\n\t\tproducts.add(a10);\n\t\t\n\t\t//Wine\n\t\tProduct a11 = new Product(\"Wine\", 1, 4, 3);\n\t\tProduct a12 = new Product(\"Wine\", 7, 28, 3);\n\t\tproducts.add(a11);\n\t\tproducts.add(a12);\n\t\t\n\t\t\n\t\treturn products;\n\t}", "title": "" }, { "docid": "e9b1c2ec03474ed0750b9eb250e4ae2b", "score": "0.6236704", "text": "public List<AmazonProduct> getShoppingItemsDetails() {\r\n try {\r\n Thread.sleep(2000);\r\n List<AmazonProduct> listAmazonProduct = new ArrayList<AmazonProduct>();\r\n for (int i = 2; i <= 6; i++) {\r\n String actProductContainerLocator =\r\n PRODUCT_CONTAINER.replace(\"[X]\", \"[\" + Integer.toString(i) + \"]\");\r\n\r\n amazonProduct.setLocatorProductName(actProductContainerLocator + PRODUCT_NAME_EXT);\r\n amazonProduct.setName(getProductName(actProductContainerLocator));\r\n amazonProduct.setStrPrice(getProductPrice(actProductContainerLocator));\r\n if ((amazonProduct.getStrPrice() != StrHlp.EMPTY_STRING)\r\n && (amazonProduct.getStrPrice() != null))\r\n amazonProduct\r\n .setPrice(Double.parseDouble((amazonProduct.getStrPrice().replace(\",\", \".\"))));\r\n listAmazonProduct.add(amazonProduct);\r\n }\r\n return listAmazonProduct;\r\n } catch (Exception e) {\r\n ErrorHandler.markTestCaseAsFailed(e);\r\n return null;\r\n }\r\n }", "title": "" }, { "docid": "991b757aea1e0ed349ec94e82ffc8824", "score": "0.6236031", "text": "@Override\n\tpublic List<Product> getAll() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "212ec42e85f2c8ec38a2bc16b97bea42", "score": "0.6232152", "text": "public ArrayList<Product> getProducts() {\n return products;\n }", "title": "" }, { "docid": "a4c177c42604b6bb61ece7f9e5b41bae", "score": "0.6226514", "text": "public List<Products_Fashion> getAllProduct() {\n\t\treturn fashionDAO.getAllProduct();\n\t}", "title": "" }, { "docid": "768eb7e725ece004fd435259d97d0fff", "score": "0.6208218", "text": "@GetMapping(\"/list\")\n public String listProducts(Model model) {\n List<Product> theProducts = productService.findAll();\n\n // add to the spring model\n model.addAttribute(\"products\", theProducts);\n\n return \"products/list-products\";\n }", "title": "" }, { "docid": "c4c5bfdd90882ed08a332673650cde88", "score": "0.62001866", "text": "@Override\r\n\tpublic List<Product> findAll() {\n\t\treturn productMapper.findAll();\r\n\t}", "title": "" }, { "docid": "e571457bb048997194edb888bfd1f958", "score": "0.61992955", "text": "public List<Item> getAllPurchasableItems(int user_id);", "title": "" }, { "docid": "7971011a58bfa25f637762e6151dd016", "score": "0.6195082", "text": "@Override\n public Collection<Product> getAllProducts() {\n List<Product> products = null;\n try{\n final String sql = \"SELECT * FROM PRODUCT_CATALOG\";\n products = jdbcTemplate.query(sql, new ProductRowMapper());\n } catch (Exception e){\n log.error(e.getMessage(), e);\n //throw e;\n }\n return products;\n }", "title": "" }, { "docid": "7714b83cc750cd1949dd8d6a23c974f9", "score": "0.61929476", "text": "public java.util.List<net.sf.RecordEditor.ProtoBuf.re.Test.SalesX.StoreSales3.Product> getProductList() {\n return java.util.Collections.unmodifiableList(result.product_);\n }", "title": "" }, { "docid": "0af14d3b47fb037b44532bb3ddd84636", "score": "0.61852777", "text": "public void displayProducts(){\r\n \tfor(int i = 0; i < products.size(); i++) {\r\n \t\tSystem.out.println(products.get(i).toString() + \"\\n\");\r\n \t}\r\n\t}", "title": "" }, { "docid": "9ea60b09fc8b17b58aff0e6328be4757", "score": "0.6180546", "text": "public List<ProductDto> getProducts(){\n return repository.findAll()\n .stream().map(p -> new ProductDto(p.getId().toString(), p.getName(), p.getImage(), p.getPrice().toString()))\n .collect(Collectors.toList());\n }", "title": "" }, { "docid": "9680a6082a0f9a548e5447eb739d340f", "score": "0.6177198", "text": "@Override\r\npublic Iterable<Product> listAllProducts() {\n\treturn prodDAO.findAll();\r\n}", "title": "" }, { "docid": "9d78a073ac8a952da5a7101df6031083", "score": "0.6170131", "text": "@RequestMapping(value=\"/shop/getall\", method= RequestMethod.GET)\n public Iterable<Shop> getAllShops() {\n return shopRepository.findAll();\n }", "title": "" }, { "docid": "777224a4d8dd1c6c61211fe1c90d5e25", "score": "0.6159722", "text": "@Override\n public List<Product> listAll() {\n String sql=\"SELECT id,name,price,stockNum FROM t_item\";\n Object[] params = {};\n JdbcTempate.query(sql,new BeanListHandler<Product>(Product.class),params);\n return JdbcTempate.query(sql,new BeanListHandler<Product>(Product.class),params);\n }", "title": "" }, { "docid": "ab1a0af4be31c6414af18b1188b2c820", "score": "0.61516184", "text": "public List<Product> getAllProducts()\n\n{\n\tList<Product> prodList = this.productDaoImpl.getAllProducts();\t\n return prodList;\n}", "title": "" }, { "docid": "7f8d7b520988e69a1a710ba6ed066b3e", "score": "0.6143644", "text": "public ArrayList<Product> getProductList() {\n return productList;\n }", "title": "" }, { "docid": "afd7571e16de7de872e748fea60002b8", "score": "0.613724", "text": "@Override\n\tpublic List<Productos> getAllProductos() {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "a49113e31f85fa04484e7424b6696aa7", "score": "0.6121946", "text": "@RequestMapping(value = \"/show/all/products\")\r\n\tpublic ModelAndView showAllProducts() {\r\n\t\tModelAndView mv = new ModelAndView(\"page\");\r\n\t\tmv.addObject(\"title\", \"All Products\");\r\n\r\n\t\t// passing the list of categories\r\n\t\tmv.addObject(\"categories\", categoryDAO.list());\r\n\t\tmv.addObject(\"allproduct\", productDAO.list());\r\n\t\tmv.addObject(\"userClickAllproducts\", true);\r\n\t\treturn mv;\r\n\t}", "title": "" }, { "docid": "ed95fa1dbe27e708801cdaee1241cad8", "score": "0.6115234", "text": "@SuppressWarnings(\"unchecked\")\r\n\tpublic List<Shop> getAllShop() {\r\n\r\n\t\tTransaction transaction = null;\r\n\t\tList<Shop> listOfShop = null;\r\n\t\ttry (Session session = HibernateUtil.getSessionFactory().openSession()) {\r\n\t\t\t// start a transaction\r\n\t\t\ttransaction = session.beginTransaction();\r\n\t\t\t// get an shop object\r\n\t\t\t\r\n\t\t\tlistOfShop = session.createQuery(\"from Shop\").getResultList();\r\n\t\t\t\r\n\t\t\t// commit transaction\r\n\t\t\ttransaction.commit();\r\n\t\t} catch (Exception e) {\r\n\t\t\tif (transaction != null) {\r\n\t\t\t\ttransaction.rollback();\r\n\t\t\t}\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn listOfShop;\r\n\t}", "title": "" }, { "docid": "922fa1b2c0c1a318186e40156d4ceb38", "score": "0.6111756", "text": "@Override\n\tpublic ProductResponse findAllProduct() {\n\t\ttry {\n\t\t\tlog.info(\"shoppe\");\n\t\t\tProductResponse response = new ProductResponse();\n\t\t\tList<ProductDetailsResponse> listProductDetail = new ArrayList<>();\n\t\t\t\n\t\t\tfor (int i = 0; i < 10; i++) {\n\t\t\t\tProductDetailsResponse detail = new ProductDetailsResponse();\n\t\t\t\tdetail.setId(UUID.randomUUID().toString());\n\t\t\t\tdetail.setProductName(\"Shoppe_\" + i);\n\t\t\t\tdetail.setCurrentPrice(Double.valueOf(i));\n\t\t\t\tdetail.setDiscountRate(Double.valueOf(i));\n\t\t\t\tdetail.setRate(Double.valueOf(i));\n\t\t\t\tlistProductDetail.add(detail);\n\t\t\t}\n\t\t\tresponse = new ProductResponse(HttpStatusCode._200.getCode(), HttpStatusCode._200.getValue(), listProductDetail);\n\t\t\treturn response;\n\t\t} catch (Exception e) {\n\t\t\tlog.error(\"[EXCEPTION]\", e.toString(), e);\n\t\t\tthrow new InternalServerErrorException(HttpStatusCode._500.getCode(), HttpStatusCode._500.getValue());\n\t\t}\n\t}", "title": "" } ]
ae06f691b7d5aca966cab76f24324203
User cancelled the dialog
[ { "docid": "c07cded8230cf01fd11dfd5d7998badd", "score": "0.0", "text": "public void onClick(DialogInterface dialog, int id) {\n\t\t\t\t\t\t\t}", "title": "" } ]
[ { "docid": "a30ba3acd04819968314bcef47ef4589", "score": "0.86170024", "text": "@Override\n public void cancel() {\n dialog.cancel();\n }", "title": "" }, { "docid": "edd464eaf9e9a88786840662deacd070", "score": "0.817844", "text": "@Override\n\t\t\t\t\tpublic void doCancel() {\n\t\t\t\t\t\thd.dialog.dismiss();\n\t\t\t\t\t}", "title": "" }, { "docid": "f5ae18e8756f0d140446d30cdbec2fcb", "score": "0.81227636", "text": "@Override\n\t\t\t\t\t\tpublic void onClickCancel(PromptDialog dialog) {\n\t\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t\t\tToast.makeText(_this, \"cancel\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\t\t\tfinish();\n\t\t\t\t\t\t}", "title": "" }, { "docid": "cd8b3eee730788cf86f0b20693fa1fec", "score": "0.812062", "text": "@Override\n\t\t\tpublic void onCancel(DialogInterface dialog) {\n\t\t\t\tisCanceled = true;\n\t\t\t}", "title": "" }, { "docid": "68ed0f327c474d8ea0cc8492d89de1c9", "score": "0.8109409", "text": "private void onCancel() {\n dialogResult = JOptionPane.CANCEL_OPTION;\n dispose();\n }", "title": "" }, { "docid": "d116adea3f3e201b6764ba0d0a3d8257", "score": "0.8100443", "text": "@Override\n\t\t\t\t\t\t\t\t\t\t\t\tpublic void onCancel(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tDialogInterface dialog) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tcancel(true);\n\t\t\t\t\t\t\t\t\t\t\t\t\tfinish();\n\t\t\t\t\t\t\t\t\t\t\t\t}", "title": "" }, { "docid": "35babe6cec4ffe338597154a4a7179dd", "score": "0.80922073", "text": "@Override\n\t\t\t\t\tpublic void onCancel(DialogInterface dialog) {\n\t\t\t\t\t\tcancel(true);\n\t\t\t\t\t\tfinish();\n\t\t\t\t\t}", "title": "" }, { "docid": "0249d9f21cf6f8488a5908fd31da45f3", "score": "0.7929125", "text": "@Override\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int arg) {\n\t\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t\t}", "title": "" }, { "docid": "09999231f263964ca4682db73f7b35e5", "score": "0.7896993", "text": "@Override\n public void onClick(DialogInterface dialog,\n int which)\n {\n dialog.cancel();\n }", "title": "" }, { "docid": "ebc07908540bb14b75c85ac951a4b7fb", "score": "0.7894509", "text": "@Override\n public void dismissDialog() {\n cancelButtonActionPerformed(null);\n }", "title": "" }, { "docid": "47d485916e33fb11139808dfe33e0190", "score": "0.78920704", "text": "@Override\r\n\t\t\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) \r\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tdialog.cancel();\r\n\t\t\t\t\t\t\t\t\t}", "title": "" }, { "docid": "cce3be7d9fc06d11dd67ad45e769a4e8", "score": "0.7883029", "text": "@Override\n\t\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t\t\t\t}", "title": "" }, { "docid": "891a31d04e9b8110745f14070d52189b", "score": "0.7878797", "text": "@Override\n public void onDismiss(DialogInterface arg0) {\n result.cancel();\n }", "title": "" }, { "docid": "5509c7d13ec90ed91cdfab9088a1712d", "score": "0.78629386", "text": "@Override\n public void onClick(DialogInterface dialog, int which)\n {\n dialog.cancel();\n }", "title": "" }, { "docid": "95f737090d8272ea22ccbaa613d89f38", "score": "0.78617364", "text": "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }", "title": "" }, { "docid": "173a6c3acdbbc6a5bd993c6f4ba378f4", "score": "0.7859599", "text": "void jbtCancel_actionPerformed(ActionEvent e) {\n // Close the dialog box\n setVisible(false);\n }", "title": "" }, { "docid": "77febe5b554fba89cc3733ea862c35fa", "score": "0.78572553", "text": "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }", "title": "" }, { "docid": "77febe5b554fba89cc3733ea862c35fa", "score": "0.78572553", "text": "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }", "title": "" }, { "docid": "77febe5b554fba89cc3733ea862c35fa", "score": "0.78572553", "text": "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }", "title": "" }, { "docid": "3ffe2b0a0e4d5cfb03dc9c138d241fe1", "score": "0.7856008", "text": "@Override\n public void onClick(DialogInterface dialog,\n int which) {\n dialog.cancel();\n }", "title": "" }, { "docid": "8ad536fd80fc97948a8ba511ff00e5de", "score": "0.7855664", "text": "@Override\n\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog,\n\t\t\t\t\t\t\t\t\tint which) {\n\t\t\t\t\t\t\t\tdialog.cancel();\n\n\t\t\t\t\t\t\t}", "title": "" }, { "docid": "aa7988c8c79ab36388ec097edec9f3c0", "score": "0.784568", "text": "@Override\n\tpublic void cancelPressed(){\t\t\n\t\tsetReturnCode(CANCEL);\n\t\tclose();\t\t\n\t}", "title": "" }, { "docid": "260ae4871882a8ac3ca8ef88945f6b5a", "score": "0.7838308", "text": "@Override\n\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t\t\t}", "title": "" }, { "docid": "d16dc8095ab34264fd1fdabb19f63a42", "score": "0.7829437", "text": "@Override\n\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog,\n\t\t\t\t\t\t\t\t\tint which) {\n\t\t\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t\t\t}", "title": "" }, { "docid": "e8189155ac49983a2d9fb4450878fe70", "score": "0.7824123", "text": "@Override\r\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\tdialog.cancel();\r\n\t\t\t\t}", "title": "" }, { "docid": "64f73a7f818739d59b02cdddfc434873", "score": "0.78226364", "text": "@Override\n public void doCancel() {\n confirmDialog.dismiss();\n }", "title": "" }, { "docid": "18ee732b4225cbfe07eee4a9ab688fdf", "score": "0.7816116", "text": "@Override\n public void doCancel() {\n confirmDialog.dismiss();\n }", "title": "" }, { "docid": "18ee732b4225cbfe07eee4a9ab688fdf", "score": "0.7816116", "text": "@Override\n public void doCancel() {\n confirmDialog.dismiss();\n }", "title": "" }, { "docid": "b36f0cf0dfe4a947b0e0b1849cd6311f", "score": "0.7813283", "text": "@Override\r\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\tdialog.cancel();\r\n\t\t\t\t\t\t}", "title": "" }, { "docid": "82df78cca79fecca42ce4f4264505e40", "score": "0.7804249", "text": "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }", "title": "" }, { "docid": "82df78cca79fecca42ce4f4264505e40", "score": "0.7804249", "text": "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }", "title": "" }, { "docid": "82df78cca79fecca42ce4f4264505e40", "score": "0.7804249", "text": "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }", "title": "" }, { "docid": "cc5ed9db1a41773ad7e72fb825df4d8f", "score": "0.7799033", "text": "@Override\n public void onClick(DialogInterface dialog,\n int id) {\n dialog.cancel();\n }", "title": "" }, { "docid": "8807245e342a2714e9bb9198c1370fc3", "score": "0.7792013", "text": "@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t}", "title": "" }, { "docid": "bee7138f413cb05d554e57d2dd8eac5b", "score": "0.7785669", "text": "@Override\r\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) \r\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tdialog.cancel();\r\n\t\t\t\t\t\t}", "title": "" }, { "docid": "bee7138f413cb05d554e57d2dd8eac5b", "score": "0.7785669", "text": "@Override\r\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) \r\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tdialog.cancel();\r\n\t\t\t\t\t\t}", "title": "" }, { "docid": "6cb3dbc6ff2a83bbbbb972e071f52fcc", "score": "0.7781991", "text": "@Override\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t\t}", "title": "" }, { "docid": "6cb3dbc6ff2a83bbbbb972e071f52fcc", "score": "0.7781991", "text": "@Override\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t\t}", "title": "" }, { "docid": "be151fd7ac5f4858f2bcdb0ae8c84522", "score": "0.7778868", "text": "@Override\n public void doCancel() {\n confirmDialog.dismiss();\n }", "title": "" }, { "docid": "1980555d3d4b76d19ea498c547b100bd", "score": "0.77766746", "text": "@Override\n\t\t\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t\t\t\t}", "title": "" }, { "docid": "1980555d3d4b76d19ea498c547b100bd", "score": "0.77766746", "text": "@Override\n\t\t\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t\t\t\t}", "title": "" }, { "docid": "1980555d3d4b76d19ea498c547b100bd", "score": "0.77766746", "text": "@Override\n\t\t\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t\t\t\t}", "title": "" }, { "docid": "71338925da68cbe7016f6752c8b5a309", "score": "0.7774749", "text": "@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tdialog.cancel();\n\t\t\t}", "title": "" }, { "docid": "71338925da68cbe7016f6752c8b5a309", "score": "0.7774749", "text": "@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tdialog.cancel();\n\t\t\t}", "title": "" }, { "docid": "23e9e8ddd60f19dc46e93ed4685c1d7a", "score": "0.77727497", "text": "@Override\r\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) \r\n\t\t\t\t\t{\n\t\t\t\t\t\tdialog.cancel();\r\n\t\t\t\t\t}", "title": "" }, { "docid": "23e9e8ddd60f19dc46e93ed4685c1d7a", "score": "0.77727497", "text": "@Override\r\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) \r\n\t\t\t\t\t{\n\t\t\t\t\t\tdialog.cancel();\r\n\t\t\t\t\t}", "title": "" }, { "docid": "23e9e8ddd60f19dc46e93ed4685c1d7a", "score": "0.77727497", "text": "@Override\r\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) \r\n\t\t\t\t\t{\n\t\t\t\t\t\tdialog.cancel();\r\n\t\t\t\t\t}", "title": "" }, { "docid": "01cc1e77345d9a1b91f48214749824b1", "score": "0.7770554", "text": "@Override\r\n\t\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\t\tdialog.cancel();\r\n\t\t\t\t\t\t}", "title": "" }, { "docid": "1ac314aed4837ec9736345034ef0538d", "score": "0.77695644", "text": "@Override\r\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tdialog.cancel();\r\n\t\t\t}", "title": "" }, { "docid": "1ac314aed4837ec9736345034ef0538d", "score": "0.77695644", "text": "@Override\r\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tdialog.cancel();\r\n\t\t\t}", "title": "" }, { "docid": "5fa585d1c8bb6d025bcc0555eec1b5f7", "score": "0.7765859", "text": "public void onCancel(DialogInterface dialog) {\n\t\t\t\t}", "title": "" }, { "docid": "64541f52729e1a02f08838c428d26ebb", "score": "0.7764087", "text": "@Override\r\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\tdialog.cancel() ;\r\n\t\t\t\t}", "title": "" }, { "docid": "dc4fcdbafa09a22f5dbd275838cf027b", "score": "0.7761063", "text": "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }", "title": "" }, { "docid": "dc4fcdbafa09a22f5dbd275838cf027b", "score": "0.7761063", "text": "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }", "title": "" }, { "docid": "dc4fcdbafa09a22f5dbd275838cf027b", "score": "0.7761063", "text": "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }", "title": "" }, { "docid": "dc4fcdbafa09a22f5dbd275838cf027b", "score": "0.7761063", "text": "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }", "title": "" }, { "docid": "dc4fcdbafa09a22f5dbd275838cf027b", "score": "0.7761063", "text": "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }", "title": "" }, { "docid": "dc4fcdbafa09a22f5dbd275838cf027b", "score": "0.7761063", "text": "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }", "title": "" }, { "docid": "dc4fcdbafa09a22f5dbd275838cf027b", "score": "0.7761063", "text": "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }", "title": "" }, { "docid": "658c84122ad43b193f0ac00efb413cc4", "score": "0.77594054", "text": "@Override\n public void onClick(DialogInterface dialog, int which) {\n\n dialog.cancel();\n }", "title": "" }, { "docid": "658c84122ad43b193f0ac00efb413cc4", "score": "0.77594054", "text": "@Override\n public void onClick(DialogInterface dialog, int which) {\n\n dialog.cancel();\n }", "title": "" }, { "docid": "587c4effe369d7f649589cb7a8b8d9b0", "score": "0.7755479", "text": "private void cancel_Click() throws Exception {\n Close();\n }", "title": "" }, { "docid": "eeee2ffd840301ad25645bd733362c7f", "score": "0.7732681", "text": "private void cancelPressed() {\n this.close();\n }", "title": "" }, { "docid": "71a56ce96dab72da7738518da5a89456", "score": "0.772856", "text": "@Override\n public void onCancel(DialogInterface dialog) {\n }", "title": "" }, { "docid": "2496d8fc47a12277b57309fa041a1b3b", "score": "0.7724297", "text": "@Override\n\t\t\t\t\t\tpublic void onCancel(DialogInterface dialog) {\n\t\t\t\t\t\t\tfinish();\n\t\t\t\t\t\t}", "title": "" }, { "docid": "270769a06f1cef5acd6d5c0d3b8235c3", "score": "0.77232194", "text": "@Override\r\n\tpublic void onCancel(DialogInterface dialog) {\n\t\t\r\n\t}", "title": "" }, { "docid": "7c49afc708b38d1afca4716b431d1428", "score": "0.7705031", "text": "@Override\r\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tdialog.cancel() ;\r\n\t\t\t}", "title": "" }, { "docid": "622e2e2f997fc9257893d80882546bee", "score": "0.7703468", "text": "public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }", "title": "" }, { "docid": "8cccc67b02ed8b2ee1373f406415ecfc", "score": "0.76897264", "text": "public void cancelActionPerformed(java.awt.event.ActionEvent evt) {\n this.closeDialog(new java.awt.event.WindowEvent(this, 0));\n }", "title": "" }, { "docid": "302e44d2f0f64df43e4eb09b92b14715", "score": "0.7684396", "text": "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tdialog.cancel();\n\t\t\t}", "title": "" }, { "docid": "302e44d2f0f64df43e4eb09b92b14715", "score": "0.7684396", "text": "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tdialog.cancel();\n\t\t\t}", "title": "" }, { "docid": "eaf9d8863eddee137335716d1abc4ca5", "score": "0.7674535", "text": "@Override\r\n public void onClick(DialogInterface dialog, int id) {\n dialog.cancel();\r\n\r\n }", "title": "" }, { "docid": "cacca6a15ffe1f865d9c7e595ab86b13", "score": "0.7668595", "text": "public void handleCancelPressed() {\n _dialogStage.close();\n }", "title": "" }, { "docid": "a0fb16c255b6287ae8991458258eab0c", "score": "0.7662937", "text": "public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\r\n }", "title": "" }, { "docid": "5721f24361c714296455c51ee977bcb6", "score": "0.7661978", "text": "void onCancel(DialogInterface dialog);", "title": "" }, { "docid": "234a7d44e560904a1fa903315f41a4ca", "score": "0.76443124", "text": "public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }", "title": "" }, { "docid": "c5824dd093a21ce276622c29a4ffe8c2", "score": "0.7637819", "text": "void onCancelChooser();", "title": "" }, { "docid": "660ee21491ece3c62edbd7cd6a9b046c", "score": "0.7629027", "text": "public void onClick(DialogInterface dialog,\n int which) {\n dialog.cancel();\n }", "title": "" }, { "docid": "d6f4866951d6aa13936fdab81c90e185", "score": "0.7620809", "text": "public void onClick(DialogInterface dialog, int which) {\n\n dialog.cancel();\n\n }", "title": "" }, { "docid": "4775b79835bcb7de7a3392441ffcd0bf", "score": "0.7620313", "text": "public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }", "title": "" }, { "docid": "4775b79835bcb7de7a3392441ffcd0bf", "score": "0.7620313", "text": "public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }", "title": "" }, { "docid": "84cf63c377f0220c3b1e90de23ea86a6", "score": "0.7617122", "text": "@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int id) {\n\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t}", "title": "" }, { "docid": "06dfa5054b9d1a6c5d14a2f48c26a3e2", "score": "0.75965774", "text": "public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\r\n }", "title": "" }, { "docid": "824f3a89121b19697048821815891834", "score": "0.7589548", "text": "public void cancel();", "title": "" }, { "docid": "824f3a89121b19697048821815891834", "score": "0.7589548", "text": "public void cancel();", "title": "" }, { "docid": "824f3a89121b19697048821815891834", "score": "0.7589548", "text": "public void cancel();", "title": "" }, { "docid": "d9e9b45f0387ade6b7f34827dfb26a8f", "score": "0.75876594", "text": "@Override\n \t\t\tpublic void onClick(DialogInterface dialog, int which) {\n \t\t\t\t dialog.cancel();\n \t\t\t}", "title": "" }, { "docid": "c930d75ed20e16c2700fcbb265182e42", "score": "0.7549953", "text": "public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }", "title": "" }, { "docid": "c930d75ed20e16c2700fcbb265182e42", "score": "0.7549953", "text": "public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }", "title": "" }, { "docid": "c930d75ed20e16c2700fcbb265182e42", "score": "0.7549953", "text": "public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }", "title": "" }, { "docid": "c930d75ed20e16c2700fcbb265182e42", "score": "0.7549953", "text": "public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }", "title": "" }, { "docid": "c930d75ed20e16c2700fcbb265182e42", "score": "0.7549953", "text": "public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }", "title": "" }, { "docid": "223f4d6ff6d4c22cfc70c40767e10356", "score": "0.7549924", "text": "private void buttonCancelClick() {\n this.dismiss();\n }", "title": "" }, { "docid": "024d2c5390be0a4f6408b4d13a2d06eb", "score": "0.75435114", "text": "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tdialog.cancel();\n\t\t\t}", "title": "" }, { "docid": "fbd1865165a1d1f69af2614654d78302", "score": "0.7539729", "text": "public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }", "title": "" }, { "docid": "fbd1865165a1d1f69af2614654d78302", "score": "0.7539729", "text": "public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }", "title": "" }, { "docid": "fbd1865165a1d1f69af2614654d78302", "score": "0.7539729", "text": "public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }", "title": "" }, { "docid": "fbd1865165a1d1f69af2614654d78302", "score": "0.7539729", "text": "public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }", "title": "" }, { "docid": "fbd1865165a1d1f69af2614654d78302", "score": "0.7539729", "text": "public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }", "title": "" }, { "docid": "fbd1865165a1d1f69af2614654d78302", "score": "0.7539729", "text": "public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }", "title": "" }, { "docid": "fbd1865165a1d1f69af2614654d78302", "score": "0.7539729", "text": "public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }", "title": "" } ]
559a2a0f99b4c7f251ba16989c665175
Returns the result of interpreting the object as an instance of 'Loaded By Type'. This implementation returns null; returning a nonnull result will terminate the switch.
[ { "docid": "f2673fc08aa75c9c0771c76056052627", "score": "0.7697294", "text": "public T caseLoadedByType(LoadedByType object) {\n\t\treturn null;\n\t}", "title": "" } ]
[ { "docid": "924bbef103279ae33d248a16dd85ae48", "score": "0.6764784", "text": "public T caseAppliedLoadType(AppliedLoadType object) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "790dd08303b1dacc6eb9987ace109f52", "score": "0.6474755", "text": "public T caseResultForLoadGroupType(ResultForLoadGroupType object) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "1a2087a3d854cca80daf8a017d68bbbf", "score": "0.64287144", "text": "String getLoadType();", "title": "" }, { "docid": "3a2881fdd903fe7e1e93c16386cbf5de", "score": "0.62891275", "text": "HLoader getTypeLoader();", "title": "" }, { "docid": "2088468293f1cfc599aa1217d27865b1", "score": "0.6283205", "text": "public abstract LoadoutType getLoadoutType();", "title": "" }, { "docid": "a0d037ea524ead26ed0e7cc876263f51", "score": "0.6102835", "text": "private boolean isObjectLoaded() {\n try {\n Method methodGetObject = this.classToLoad.getMethod(\"getObject\");\n this.loadedObject = methodGetObject.invoke(objectInstance);\n return true;\n } catch (NoSuchMethodException | IllegalAccessException | InvocationTargetException e) {\n e.printStackTrace();\n }\n return false;\n }", "title": "" }, { "docid": "34c9dd458b43775285aa350fbb7063ec", "score": "0.58261174", "text": "public T getLoadable() {\n\t\treturn this.loadable;\n\t}", "title": "" }, { "docid": "c31b67fbc977b1c8909db1af121dd013", "score": "0.58127385", "text": "public T caseObject_Type(Object_Type object) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "cf0cfaaaa3221659c647fa5eb7edb912", "score": "0.57530046", "text": "@Override\n public Object loadObject(Class objectClass) {\n for (Object object : inObjects) {\n if (object.getClass().getName().equals(objectClass.getName())) {\n return object;\n }\n }\n return null;\n }", "title": "" }, { "docid": "c5ecbc6866181b6017c19f8f883b05b0", "score": "0.5745165", "text": "public T caseHasResultsType(HasResultsType object) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "24664165fd3d4217f98f20cde3d1ea08", "score": "0.5696533", "text": "public T caseLateStartType(LateStartType object) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "98b6b12b15bbf7cfd94f6cc0034afdb1", "score": "0.56965095", "text": "public abstract TypeObject getType();", "title": "" }, { "docid": "07352a22ce88acf9329242496f31e755", "score": "0.5631766", "text": "abstract byte getObjectType();", "title": "" }, { "docid": "e5a44f6096b132041de97e3fd72bdd11", "score": "0.5615377", "text": "public CType get_type();", "title": "" }, { "docid": "c94fadb58300d9eaefbed51ecff7f8e2", "score": "0.5614366", "text": "@Ponder2op(\"load:\")\n\tprotected P2Object operation_load(String anObject) throws Ponder2Exception {\n\t\treturn Util.loadFactory(anObject);\n\t}", "title": "" }, { "docid": "6d4f5c7ecb486b501650ca5633dadb0f", "score": "0.55245525", "text": "public T caseIfcStructuralLoad(IfcStructuralLoad object) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "9c0065a58b9b1afb7365be5649255c40", "score": "0.5516241", "text": "@Override\n\t public Class getObjectType() {\n\t\t return null;\n\t }", "title": "" }, { "docid": "230c79faf05ba476f7fa6137a9a73494", "score": "0.55122006", "text": "public ClassType getJavaLangObject();", "title": "" }, { "docid": "b51fb9fce04004f3db548d8c187b168f", "score": "0.5512161", "text": "public T caseSubsequentAppliedLoadsType1(SubsequentAppliedLoadsType1 object) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "807d42e154a1164a784af5e593811436", "score": "0.54954594", "text": "String type();", "title": "" }, { "docid": "807d42e154a1164a784af5e593811436", "score": "0.54954594", "text": "String type();", "title": "" }, { "docid": "807d42e154a1164a784af5e593811436", "score": "0.54954594", "text": "String type();", "title": "" }, { "docid": "807d42e154a1164a784af5e593811436", "score": "0.54954594", "text": "String type();", "title": "" }, { "docid": "807d42e154a1164a784af5e593811436", "score": "0.54954594", "text": "String type();", "title": "" }, { "docid": "807d42e154a1164a784af5e593811436", "score": "0.54954594", "text": "String type();", "title": "" }, { "docid": "807d42e154a1164a784af5e593811436", "score": "0.54954594", "text": "String type();", "title": "" }, { "docid": "807d42e154a1164a784af5e593811436", "score": "0.54954594", "text": "String type();", "title": "" }, { "docid": "807d42e154a1164a784af5e593811436", "score": "0.54954594", "text": "String type();", "title": "" }, { "docid": "807d42e154a1164a784af5e593811436", "score": "0.54954594", "text": "String type();", "title": "" }, { "docid": "807d42e154a1164a784af5e593811436", "score": "0.54954594", "text": "String type();", "title": "" }, { "docid": "807d42e154a1164a784af5e593811436", "score": "0.54954594", "text": "String type();", "title": "" }, { "docid": "807d42e154a1164a784af5e593811436", "score": "0.54954594", "text": "String type();", "title": "" }, { "docid": "807d42e154a1164a784af5e593811436", "score": "0.54954594", "text": "String type();", "title": "" }, { "docid": "ddad38a2e9f8d6d06502b7e49d7ecec4", "score": "0.5493941", "text": "public T caseType(Type object) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "ddad38a2e9f8d6d06502b7e49d7ecec4", "score": "0.5493941", "text": "public T caseType(Type object) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "b19eab09654087d467db55be87835e9b", "score": "0.5487377", "text": "public T caseTexturesType(TexturesType object) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "0c7f23823608b0c9a075a952d5b5b7fa", "score": "0.54783255", "text": "@Test\n public void resolve_object() {\n assertThat(type(Descriptions.typeOf(String.class)), equalTo((Object) String.class));\n }", "title": "" }, { "docid": "5d82138a6d6b10cb29c4e8fc477365cd", "score": "0.5476516", "text": "public T caseIfcThermalLoadTypeEnumType(IfcThermalLoadTypeEnumType object) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "25d97ea921cc507ca0e529bc4506dd16", "score": "0.54723984", "text": "public T caseVaryingAppliedLoadLocationType(VaryingAppliedLoadLocationType object) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "834bb8bc49b074b13997a5b68095a2f7", "score": "0.54656833", "text": "protected ClassLoaderPolicy getClassLoaderPolicy(Object object)\n {\n if (object instanceof BaseClassLoader)\n return ((BaseClassLoader) object).getPolicy();\n \n if (object instanceof BaseClassLoaderSource)\n return getClassLoaderPolicy(((BaseClassLoaderSource) object).getClassLoader());\n \n return null;\n }", "title": "" }, { "docid": "7c48e79a0167e0a37529919a534e1eb5", "score": "0.54450494", "text": "public native String getType();", "title": "" }, { "docid": "5e2b5e3486aeae6a2ad79d21f40acb74", "score": "0.5435073", "text": "public T caseIfcLoadGroupTypeEnumType(IfcLoadGroupTypeEnumType object) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "b3eefb8faa61a8be62fb46916a77d729", "score": "0.54295856", "text": "public T casePreparedByType(PreparedByType object) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "f2d822296ac4e09111d24ecd36200af9", "score": "0.54248154", "text": "public Object readObject() throws LEAPSerializationException {\n\t\tString className = null; // This is defined here as it is used also inside the catch blocks\n\n\t\ttry {\n\t\t\tboolean presenceFlag = readBoolean();\n\n\t\t\tif (presenceFlag) {\n\t\t\t\tbyte id = readByte();\n\n\t\t\t\tswitch (id) {\n\t\t\t\t// Directly handle deserialization of classes that must be\n\t\t\t\t// deserialized more frequently\n\t\t\t\tcase Serializer.HORIZONTALCOMMAND_ID:\n\t\t\t\t\treturn deserializeHorizontalCommand();\n\t\t\t\tcase Serializer.ACL_ID:\n\t\t\t\t\treturn deserializeACL();\n\t\t\t\tcase Serializer.AID_ID:\n\t\t\t\t\treturn deserializeAID();\n\t\t\t\tcase Serializer.AIDARRAY_ID:\n\t\t\t\t\treturn deserializeAIDArray();\n\t\t\t\tcase Serializer.GENERICMESSAGE_ID:\n\t\t\t\t\treturn deserializeGenericMessage();\n\t\t\t\tcase Serializer.STRING_ID:\n\t\t\t\t\treturn readUTF();\n\t\t\t\tcase Serializer.CONTAINERID_ID:\n\t\t\t\t\treturn deserializeContainerID();\n\t\t\t\tcase Serializer.CONTAINERIDARRAY_ID:\n\t\t\t\t\treturn deserializeContainerIDArray();\n\t\t\t\tcase Serializer.BOOLEAN_ID:\n\t\t\t\t\treturn new Boolean(readBoolean());\n\t\t\t\tcase Serializer.INTEGER_ID:\n\t\t\t\t\treturn new Integer(readInt());\n\t\t\t\tcase Serializer.DATE_ID:\n\t\t\t\t\treturn deserializeDate();\n\t\t\t\tcase Serializer.STRINGARRAY_ID:\n\t\t\t\t\treturn deserializeStringArray();\n\t\t\t\tcase Serializer.VECTOR_ID:\n\t\t\t\t\treturn deserializeVector();\n\t\t\t\tcase Serializer.MTPDESCRIPTOR_ID:\n\t\t\t\t\treturn deserializeMTPDescriptor();\n\t\t\t\tcase Serializer.NODEDESCRIPTOR_ID:\n\t\t\t\t\treturn deserializeNodeDescriptor();\n\t\t\t\tcase Serializer.NODE_ID:\n\t\t\t\t\treturn deserializeNode();\n\t\t\t\tcase Serializer.PLATFORMMANAGER_ID:\n\t\t\t\t\treturn deserializePlatformManager();\n\t\t\t\tcase Serializer.NODEARRAY_ID:\n\t\t\t\t\treturn deserializeNodeArray();\n\t\t\t\tcase Serializer.ENVELOPE_ID:\n\t\t\t\t\treturn deserializeEnvelope();\n\t\t\t\tcase Serializer.ARRAYLIST_ID:\n\t\t\t\t\treturn deserializeArrayList();\n\t\t\t\tcase Serializer.BYTEARRAY_ID:\n\t\t\t\t\treturn deserializeByteArray();\n\t\t\t\tcase Serializer.PROPERTIES_ID:\n\t\t\t\t\treturn deserializeProperties();\n\t\t\t\tcase Serializer.RECEIVEDOBJECT_ID:\n\t\t\t\t\treturn deserializeReceivedObject();\n\t\t\t\tcase Serializer.SERVICEDESCRIPTOR_ID:\n\t\t\t\t\treturn deserializeServiceDescriptor();\n\t\t\t\tcase Serializer.SLICEPROXY_ID:\n\t\t\t\t\treturn deserializeSliceProxy();\n\t\t\t\t\t//#DOTNET_EXCLUDE_BEGIN\n\t\t\t\tcase Serializer.SERVICESLICEPROXY_ID:\n\t\t\t\t\treturn deserializeServiceSliceProxy();\n\t\t\t\t\t//#DOTNET_EXCLUDE_END\n\t\t\t\tcase Serializer.JICPADDRESS_ID:\n\t\t\t\t\treturn deserializeJICPAddress();\n\t\t\t\tcase Serializer.HTTPADDRESS_ID:\n\t\t\t\t\treturn deserializeHTTPAddress();\n\t\t\t\tcase Serializer.THROWABLE_ID:\n\t\t\t\t\treturn deserializeThrowable();\n\t\t\t\tcase Serializer.PROPERTY_ID:\n\t\t\t\t\treturn deserializeProperty();\n\t\t\t\t\t//#MIDP_EXCLUDE_BEGIN\n\t\t\t\tcase Serializer.SERIALIZABLE_ID:\n\t\t\t\t\tbyte[] bytes = deserializeByteArray();\n\t\t\t\t\tByteArrayInputStream inp = new ByteArrayInputStream(bytes);\n\t\t\t\t\tjava.io.ObjectInputStream decoder = new java.io.ObjectInputStream(inp);\n\t\t\t\t\tObject obj = decoder.readObject();\n\t\t\t\t\treturn obj;\n\t\t\t\t\t//#MIDP_EXCLUDE_END\n\t\t\t\tcase Serializer.DEFAULT_ID:\n\t\t\t\t\tString serName = readUTF();\n\t\t\t\t\tSerializer s = (Serializer) Class.forName(serName).newInstance();\n\t\t\t\t\tObject o = s.deserialize(this);\n\t\t\t\t\treturn o;\n\t\t\t\tdefault:\n\t\t\t\t\tthrow new LEAPSerializationException(\"Unknown class ID: \"+id);\n\t\t\t\t} \n\t\t\t} // END of if (presenceFlag)\n\t\t\telse {\n\t\t\t\treturn null;\n\t\t\t} \n\t\t} // END of try\n\t\tcatch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t\tthrow new LEAPSerializationException(\"I/O Error Deserializing a generic object\");\n\t\t} \n\t\tcatch(LEAPSerializationException leapse) {\n\t\t\tthrow leapse; // Let this one through\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tthrow new LEAPSerializationException(\"Error creating (de)Serializer: \"+e);\n\t\t} \n\t}", "title": "" }, { "docid": "a0fa9a4f03715affd16ebc4c4144b5bb", "score": "0.54154605", "text": "public abstract boolean isLoaded();", "title": "" }, { "docid": "102f464647c0a12f0b445072fdf8415f", "score": "0.54033947", "text": "final public boolean isLoaded() {\n\t\treturn (this.Ref.getTheType() != null) && (this.TypeStatus != Status.Unloaded);\n\t}", "title": "" }, { "docid": "b42258f8e9ea5688eb2d850838098fe3", "score": "0.5401859", "text": "OOType getType();", "title": "" }, { "docid": "efa06290c181a11e1c32d7b333561590", "score": "0.5395938", "text": "public Class<?> getLoadedClass(String name)\n {\n return super.findLoadedClass(name);\n }", "title": "" }, { "docid": "a66e3e9ae0f4d2de138d4d9b967c9cb6", "score": "0.5386029", "text": "public Class<?> load()\n/* */ {\n/* */ try\n/* */ {\n/* 313 */ return this.loader.loadClass(this.className);\n/* */ }\n/* */ catch (ClassNotFoundException e) {\n/* 316 */ throw new IllegalStateException(e);\n/* */ }\n/* */ }", "title": "" }, { "docid": "5c10c1de6830a72ea7891f2154b39192", "score": "0.5374942", "text": "public T caseRepresentationType(RepresentationType object) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "492a3688236926ea7e67a727eb60fe05", "score": "0.53630036", "text": "Regular getType();", "title": "" }, { "docid": "1f8e0afd5b3e6892c511c54c5af9edb5", "score": "0.53584135", "text": "public T caseIfcStructuralLoadStatic(IfcStructuralLoadStatic object) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "c39761a5c83994d67fda186862b95930", "score": "0.5341269", "text": "public T caseActualStartType(ActualStartType object) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "9a889fb1f27db902748f35f63b6f264d", "score": "0.53274757", "text": "private Class<?> getClassObject(String type_name) throws RemoteException {\n Class<?> type = class_cache.get(type_name);\n if (type == null) {\n try {\n type = Class.forName(type_name, false, class_loader);\n class_cache.put(type_name, type);\n } catch (ClassNotFoundException cnfe) {\n throw new RemoteException(\"Unable to find a Class<?> for \" + type_name, cnfe);\n }\n }\n return type;\n }", "title": "" }, { "docid": "ee4036f1daba9dea3e29203f6af08360", "score": "0.5321568", "text": "public T caseMappedRepresentationType(MappedRepresentationType object) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "968223bdea9037ee9d95411682a1f463", "score": "0.5303695", "text": "public <T extends Serializable> T loadObject(String name, Class<T> klass);", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.5301602", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.5301602", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.5301602", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.5301602", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.5301602", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.5301602", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.5301602", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.5301602", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.5301602", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.5301602", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.5301602", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.5301602", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.5301602", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.5301602", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.5301602", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.5301602", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.5301602", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.5301602", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.5301602", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.5301602", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.5301602", "text": "String getType();", "title": "" }, { "docid": "7febe900d9e379027a5e92be45e4789d", "score": "0.5301602", "text": "String getType();", "title": "" }, { "docid": "1e6b253159a56b5f0d68b92da2c836d7", "score": "0.5293467", "text": "public T caseVaryingAppliedLoadLocationType1(VaryingAppliedLoadLocationType1 object) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "5e6838f8b9f0d42de2f87ddffad63ff7", "score": "0.527976", "text": "public String getObjType() \r\n {\r\n return _objType;\r\n }", "title": "" }, { "docid": "678754349a2293775bbbaf1312dc5213", "score": "0.5260153", "text": "public T caseSubsequentAppliedLoadsType(SubsequentAppliedLoadsType object) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "358a1545cfe2281b7fd4584642517ae0", "score": "0.5248493", "text": "java.lang.String getType();", "title": "" }, { "docid": "358a1545cfe2281b7fd4584642517ae0", "score": "0.5248493", "text": "java.lang.String getType();", "title": "" }, { "docid": "358a1545cfe2281b7fd4584642517ae0", "score": "0.5248493", "text": "java.lang.String getType();", "title": "" }, { "docid": "358a1545cfe2281b7fd4584642517ae0", "score": "0.5248493", "text": "java.lang.String getType();", "title": "" }, { "docid": "358a1545cfe2281b7fd4584642517ae0", "score": "0.5248493", "text": "java.lang.String getType();", "title": "" }, { "docid": "358a1545cfe2281b7fd4584642517ae0", "score": "0.5248493", "text": "java.lang.String getType();", "title": "" }, { "docid": "358a1545cfe2281b7fd4584642517ae0", "score": "0.5248493", "text": "java.lang.String getType();", "title": "" }, { "docid": "358a1545cfe2281b7fd4584642517ae0", "score": "0.5248493", "text": "java.lang.String getType();", "title": "" }, { "docid": "358a1545cfe2281b7fd4584642517ae0", "score": "0.5248493", "text": "java.lang.String getType();", "title": "" }, { "docid": "bd5380ea69a5410293a22ccc26e256cf", "score": "0.52465796", "text": "public T caseCausedByType(CausedByType object) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "5939166dc0ed039e2aa60043cc2a556c", "score": "0.52240205", "text": "public Object handleType(Object in) throws AthenaException {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "654000690f3ec7c2d81fee2cf5cf5eeb", "score": "0.5209758", "text": "public T caseLoadServer(LoadServer object) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "8c081438759231c1ab1505945058dab1", "score": "0.5193548", "text": "public String loadPaymentType()\r\n {\r\n\ttry\r\n\t{\r\n\t SelectSC selSC = new SelectSC(new BigDecimal(66));// Payment Type\r\n\t if(ConstantsCommon.YES.equals(calledFromIPRS))\r\n\t {\r\n\t\tselSC.setLovCodesInlude(\"'P'\");\r\n\t }\r\n\t paymentType = returnLOV(selSC);\r\n\r\n\t}\r\n\tcatch(Exception e)\r\n\t{\r\n\t e.printStackTrace();\r\n\t}\r\n\treturn SUCCESS;\r\n }", "title": "" }, { "docid": "f03721d8f9649693b23fab56a6317f5e", "score": "0.51891834", "text": "public String type();", "title": "" }, { "docid": "0876ca7d591418cf02bd6222f3538480", "score": "0.5188685", "text": "String getArtefactType();", "title": "" }, { "docid": "2444062928b30776cbeca89e2f359488", "score": "0.5181979", "text": "public T casePntType(PntType object) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "8fe72650a5cb77fe53276a06ab1a31f1", "score": "0.51614726", "text": "public void testLoadClassClass() throws Exception{\n Repository repo= this.getRepository();\n assertEquals(\"java.lang.Object\", repo.loadClass(\"java.lang.Object\").getClassName());\n }", "title": "" }, { "docid": "b721fec05705fb4a0ca6db557f4951e0", "score": "0.515616", "text": "public T caseMappingType(MappingType object) {\n\t\treturn null;\n\t}", "title": "" }, { "docid": "987f16d5f35d39883bc6f25ca354a350", "score": "0.51439875", "text": "public interface HType {\n\n /**\n * The kind of type.\n */\n\n HTypeKind getTypeKind();\n\n /**\n * the loader which provided this type.\n */\n\n HLoader getTypeLoader();\n\n}", "title": "" } ]
759d2b20acbdacf50901042dde507f1a
Calculates the radius for the circle.
[ { "docid": "521ca45501704d78419e81fb0a6575c4", "score": "0.0", "text": "public static double getRoundCoverageRadius(double antennaHeight, double receiverHeight){\r\n \t\tif(receiverHeight < 0) receiverHeight = DEFAULT_RECEIVER_HEIGHT;\r\n \t\t\r\n \t\treturn 2.5*(Math.pow(antennaHeight, 0.5) + Math.pow(receiverHeight, 0.5))*1.852;\r\n \t\t\r\n \t}", "title": "" } ]
[ { "docid": "ebb658bcbfe3e412cd54691cccdd5c55", "score": "0.75622374", "text": "public double getCircleRadius()\r\n {\r\n double area = getArea();\r\n return area / (2*side);\r\n }", "title": "" }, { "docid": "193aa5a8f3e5b77e85069c933b1a5b39", "score": "0.74969983", "text": "public static double getRadius() {\n\t\treturn radius;\n\t}", "title": "" }, { "docid": "b338f47ee79b0bb501d011a9432e75f8", "score": "0.74407345", "text": "public int getRadius()\n {\n return (int)this.circle.getRadius();\n }", "title": "" }, { "docid": "a1536478f73c16cc5044d5fbbf0d21de", "score": "0.74280006", "text": "public native final double radius() /*-{\n\t\treturn this.radius;\n\t}-*/;", "title": "" }, { "docid": "219a9cd371bca859a0a26885213a9343", "score": "0.74184245", "text": "public double radius()\n\t{\n\t\tdouble volume = mass / density;\n\t\treturn Math.cbrt(0.75 * volume / Math.PI);\n\t}", "title": "" }, { "docid": "1fe786d72e929b2bb777342b7e8d88ae", "score": "0.74108577", "text": "double getRadius();", "title": "" }, { "docid": "88ebaa98c23d2a7a6709ebafde786bc7", "score": "0.7338779", "text": "public float radius() {\r\n\t\treturn this.radius;\r\n\t}", "title": "" }, { "docid": "59813616c48c1049e75fd84234c818cd", "score": "0.7294555", "text": "public double getRadius(){//getter method, return the radius\n \n return this.radius;\n //return radius;\n }", "title": "" }, { "docid": "9412bc685a5f15a195a32650c78f9ddb", "score": "0.7258348", "text": "public float getRadius()\n\t{\n\t\treturn radius;\n\t}", "title": "" }, { "docid": "c13fced39b6335130e3915529e76f399", "score": "0.7257317", "text": "float getRadius();", "title": "" }, { "docid": "c13fced39b6335130e3915529e76f399", "score": "0.7257317", "text": "float getRadius();", "title": "" }, { "docid": "196a440491f551082099189f875a595c", "score": "0.72521216", "text": "public double getRadius()\n\t{\n\t\treturn radius;\n\t}", "title": "" }, { "docid": "8fa859ec1c7027e25f41664f7c0aca2b", "score": "0.72512496", "text": "public double getRadius() {\r\n\t\treturn radius;\r\n\t}", "title": "" }, { "docid": "04890e8e54c1157b8d9d7d201d1424c1", "score": "0.72486454", "text": "double circumference() {\n double result = 2 * Math.PI * radius;\n return result;\n }", "title": "" }, { "docid": "fbafefdbec7ce0e9d13f3ef1c02f2d3d", "score": "0.7241349", "text": "public double getRadius() {\r\n return radius;\r\n }", "title": "" }, { "docid": "a5044d09f1bcd5a6bf366522e84eaeac", "score": "0.7226865", "text": "public double getRadius() {\r\n return radius;\r\n }", "title": "" }, { "docid": "c76a7f382c8e89460bb318bb23eb0337", "score": "0.7205593", "text": "@Override\n public synchronized float getRadius() {\n return radius;\n }", "title": "" }, { "docid": "6f2408227681a157dd627e070926a12f", "score": "0.7200416", "text": "public float getRadius() {\n return radius_;\n }", "title": "" }, { "docid": "30055bbdb905504f4479acec2774ad6a", "score": "0.71997046", "text": "public float getRadius() {\n return radius_;\n }", "title": "" }, { "docid": "c167dd4763502c25b7a0c898ab88e6f4", "score": "0.71983624", "text": "public double getRadius() {\n\t\treturn radius;\n\t}", "title": "" }, { "docid": "a279bc25729d223ec4e65713b433606e", "score": "0.71924746", "text": "long getRadius();", "title": "" }, { "docid": "53cc8761833269ca7d998ccd78e3977b", "score": "0.7189987", "text": "public double getRadius()\r\n {\r\n return radius;\r\n }", "title": "" }, { "docid": "632e62b87301e0b63ce652b66c4d5702", "score": "0.71835357", "text": "public float getRadius() {\n return radius;\n }", "title": "" }, { "docid": "632e62b87301e0b63ce652b66c4d5702", "score": "0.71835357", "text": "public float getRadius() {\n return radius;\n }", "title": "" }, { "docid": "f7c65199d7fa4000db8778b168188ab6", "score": "0.71705186", "text": "public double getRadius()\n {\n \treturn radius;\n }", "title": "" }, { "docid": "2e91e90a01f1851dfa2f0d48e3b5dd4b", "score": "0.7119299", "text": "public double calcCircumference ()\r\n {\n double circumference = 2 * PI * radius;\r\n return circumference;\r\n }", "title": "" }, { "docid": "b984c2c617598e7b0b4d460d6fd4ce62", "score": "0.71161777", "text": "public double getRadius() {\r\n\t\treturn this.radius;\r\n\t}", "title": "" }, { "docid": "05297022d545b8e189ef4ed3d2918149", "score": "0.7097552", "text": "public float getRadius() { return _radius; }", "title": "" }, { "docid": "080d031b105a5ee331fc1f281499303d", "score": "0.7084267", "text": "public double getRadius() {\n return this.radius;\n }", "title": "" }, { "docid": "2d8cac053d04d43a895082d018c60d9f", "score": "0.706756", "text": "public double getCircumference() {\r\n\t\treturn 2 * Math.PI * radius;\r\n\t}", "title": "" }, { "docid": "598e08870e6a3e41c1e40d89370da497", "score": "0.7063811", "text": "private long computeRadius(){\n long score = mNbUpvotes - mNbDownvotes;\n long computedRadius = Math.round(radius(score));\n mRadius = Math.max(MIN_VIEW_RADIUS, Math.min(MAX_VIEW_RADIUS, computedRadius));\n return mRadius;\n }", "title": "" }, { "docid": "dda526b07f237600d2f402c96f34205b", "score": "0.70345587", "text": "public int getRadius() {\n return radius;\n }", "title": "" }, { "docid": "dda526b07f237600d2f402c96f34205b", "score": "0.70345587", "text": "public int getRadius() {\n return radius;\n }", "title": "" }, { "docid": "dda526b07f237600d2f402c96f34205b", "score": "0.70345587", "text": "public int getRadius() {\n return radius;\n }", "title": "" }, { "docid": "4b4778c7242616dfcad8fb6c0ebe769e", "score": "0.70302474", "text": "public double getRadius(double radius){\r\n\t\tthis.radius=radius;\r\n\t\treturn radius;\r\n\t}", "title": "" }, { "docid": "1ea111a1f42c56053a08077d3899e990", "score": "0.70292354", "text": "public int getRadius() {\n\t\treturn radius;\n\t}", "title": "" }, { "docid": "1a001c66e9f7aa7ae9b906afd975056c", "score": "0.7024359", "text": "public Radius radius() {\r\n return radius;\r\n }", "title": "" }, { "docid": "b49745c90d0ccf76093f0bfc678d9a10", "score": "0.70133555", "text": "public double radiusOfTurn(){\r\n return (carProfile.getWeight()*Math.pow(currentSpeed.getMagnitude(), 2))/carProfile.getSteeringWheelPower();\r\n }", "title": "" }, { "docid": "73d253149d24b14dae9234e09ff62461", "score": "0.69642705", "text": "public int getRadius() {\n return r;\n }", "title": "" }, { "docid": "322417ad0c3a5c3aad34a123dd5b67f3", "score": "0.69549745", "text": "public Double getRadius() {\n\t\t\treturn radiusF.getDecimal();\n\t\t}", "title": "" }, { "docid": "16429ec49e01245aed54227f70056319", "score": "0.69405967", "text": "public int getRadius() { return radius; }", "title": "" }, { "docid": "16429ec49e01245aed54227f70056319", "score": "0.69405967", "text": "public int getRadius() { return radius; }", "title": "" }, { "docid": "607e3e69b6cb72b4b4bfcf01b67a94de", "score": "0.693443", "text": "public double getRadius()\n {\n return radius; \n }", "title": "" }, { "docid": "e97ddf20a6d2df60387fedde6db01f3d", "score": "0.6928396", "text": "public double getDiameter(){//getter method, returns the diameter of the circle based of the values of radius\n \n return (this.radius * 2);\n //retrun radius * 2;\n //alteranative:\n //double diameter = ( radius * 2 );\n //return diameter;\n }", "title": "" }, { "docid": "ee2a4380de0a5244af48339ef204c83b", "score": "0.69246274", "text": "private float getRadius()\r\n {\r\n return radius;\r\n }", "title": "" }, { "docid": "a872bce12a93c0328ca7f5ccf8c3ce10", "score": "0.6905853", "text": "@Basic\n\t@Raw\n\tpublic double getRadius(){\n\t\treturn this.radius;\n\t}", "title": "" }, { "docid": "c49cbd48e8fba18c9fb98bfc6685ad7a", "score": "0.6885464", "text": "public float getRadius() {\n return mRadius;\n }", "title": "" }, { "docid": "952f69160007a76da4084536e4e24475", "score": "0.68814564", "text": "public double getRadius(){\n return radius;\n }", "title": "" }, { "docid": "e3c9e0994509f7731722a9e5529eea43", "score": "0.6861849", "text": "private static double Circumference(double r) {\n\r\n return 2 * pi * r; // This returns 2 x pi x radius\r\n }", "title": "" }, { "docid": "bf619d177954d978b03b4e00e95a15f9", "score": "0.6820666", "text": "public double getCircumference(){//getter method, calculates and returns the circumference\n \n return Math.PI * 2 * this.radius;\n //return Math.PI * 2 * radius;\n //alternative:\n //double circumference = (Math.PI * 2 * radius);\n //return circumference;\n }", "title": "" }, { "docid": "cb6443e2f3b3d41098fb9a0f876b8d2e", "score": "0.6816318", "text": "public float getRadius(){\n return radius;\n }", "title": "" }, { "docid": "04730330a9e53bdb2282e69251bfd21b", "score": "0.67898077", "text": "public double getRadius () {\n\t return radius; \n }", "title": "" }, { "docid": "97643e41a43593f3bd30dccec015f7b1", "score": "0.67835623", "text": "public double getCircumference() {\n return 2 * Math.PI * this.radius;\n }", "title": "" }, { "docid": "2e30023c13bf3c02e5d34db47e8fb4f7", "score": "0.67734545", "text": "public double getRadius() {\n return getWidth() / 2;\n }", "title": "" }, { "docid": "348f97b2f5373adb1025c25805b6b7f4", "score": "0.6771108", "text": "public double getInnerRadius() {\n return _radius - (_arcWidth / 2);\n }", "title": "" }, { "docid": "52c7adf16135677729b467a9a815a8d9", "score": "0.6769781", "text": "public double getRadius() { return _radius; }", "title": "" }, { "docid": "76557eac283da5fbb5a697d84aed5445", "score": "0.6754291", "text": "public int getRadius() {\n return mRadius;\n }", "title": "" }, { "docid": "d9e03b5bed99cbd639468ba565e3c521", "score": "0.67373943", "text": "public double value() {\r\n return radius;\r\n }", "title": "" }, { "docid": "69eafb46a6c55956a37e2901d4f6f640", "score": "0.6722358", "text": "protected static double[] calculate_radius() {\n\t\tfor (int i = 0; i < temp.numClasses(); i++) {\n\t\t\tdouble radias = 0;\n\t\t\tfor (int j = 0; j < number_of_attributes - 1; j++) {\n\t\t\t\tradias += Math.pow(SDPerClass[i][j], 2);\n\t\t\t}\n\t\t\tradias = Math.sqrt(radias);\n\t\t\tradius[i] = radias;\n\t\t}\n\t\tSystem.out.println(\"in the calculate radius methods\" + Arrays.toString(radius));\n\t\treturn radius;\n\n\t}", "title": "" }, { "docid": "fd3bbb8e0ecab1201a5d97afdc29b061", "score": "0.6674072", "text": "public double calculatePerimeter() {\n\treturn radius * 2 * 3.14;\n}", "title": "" }, { "docid": "a0983e1c406268cf686ca54a5dda6705", "score": "0.667363", "text": "public double calculateRadius(int points) {\n\n return 10 * ((double)standardRadius*POINTS_MULTIPLIER/points);\n }", "title": "" }, { "docid": "930c11505758827d9db482fecf96040f", "score": "0.6650652", "text": "public double getOuterRadius() {\n return _radius + (_arcWidth / 2);\n }", "title": "" }, { "docid": "cb137284d4673ebe705747482b8deb93", "score": "0.6647332", "text": "public Radius(double radius) {\r\n this.radius = radius;\r\n }", "title": "" }, { "docid": "0576c5e7411f3ef93333bd773e1e9fed", "score": "0.6645027", "text": "@Override\n\tpublic double getRadius() {\n\t\treturn getValue(Property.RADIUS, getDefaultValues().getRadius());\n\t}", "title": "" }, { "docid": "c0eb37af37d9f0d8e2f70459245d88cf", "score": "0.6640106", "text": "public String getRadius()\n {\n return radius;\n }", "title": "" }, { "docid": "7815e0888ec74782c181ce3702cd74be", "score": "0.6622742", "text": "public float getRadius() {\n return 1;\n }", "title": "" }, { "docid": "a3b54cb69e7a562d9b3dc2ddd1b96b4f", "score": "0.65875775", "text": "public double bigRadius(){return this.outerRadius;}", "title": "" }, { "docid": "a14a83053c05845c8d15519cf7a0f22e", "score": "0.6580785", "text": "public float getRadius()\n {\n return 3;\n }", "title": "" }, { "docid": "0aa0ef6a01a402dd7d172c817b016220", "score": "0.6577723", "text": "public Circle( Radius radius ) {\r\n this.radius = radius;\r\n this.diameter = new Diameter(radius.value() * 2);\r\n this.area = new Area((Math.PI * radius.value() * radius.value()));\r\n }", "title": "" }, { "docid": "c72a456c3800a37e91f0db3bae56c356", "score": "0.6567451", "text": "private void calculateRadius(int viewWidthHalf, int viewHeightHalf){\n\n if(i == -1){\n outerCircleRadius = (viewWidthHalf > viewHeightHalf) ? (viewHeightHalf / 2) : (viewWidthHalf / 2);\n innerCircleRadius = (int) (outerCircleRadius * 0.8);\n i++;\n }else{\n\n outerCircleRadius += radiusIncrementValue;\n innerCircleRadius = (int) (outerCircleRadius * 0.8);\n\n if(i == 10){\n radiusIncrementValue = -1;\n }\n\n if(i == 20){\n radiusIncrementValue = 1;\n i = -1;\n }\n\n i++;\n\n }\n\n //since the outer circle radius changes, we need current points on circle. so we are calculating current points on circle using this method\n calculatePointsOnCircle(viewWidthHalf, viewHeightHalf);\n\n }", "title": "" }, { "docid": "84c72756a785f089582a972bcff9f641", "score": "0.6563635", "text": "public double computePerimeter() {\n\t\treturn radius*2*Math.PI; // return the circle's perimeter value\r\n\t}", "title": "" }, { "docid": "4ddf221a56b122eedc89d7ad1cf91541", "score": "0.6544752", "text": "public double getCircum(){\n return 2*pi*radius;\n }", "title": "" }, { "docid": "a36b01dee76828e9879068b0a7a62458", "score": "0.65274566", "text": "Circle (double radius)\n\t{\n\t\tthis.radius=radius;\n\t}", "title": "" }, { "docid": "56fa0d806dd8e9c6ef3a43f049019ee8", "score": "0.65213203", "text": "public Circle(int radius) {\n\t\tthis.radius = radius;\n\t}", "title": "" }, { "docid": "66c957e8ee91de849b1bf7d77f8d5913", "score": "0.65125626", "text": "public void setRadius(float radius_) { _radius = radius_; }", "title": "" }, { "docid": "cdb2616ababa13fd7bc939e76a54542a", "score": "0.65043586", "text": "public void getRadius() {\n GamePieceHex furthestNode =\n this.board.get(this.powerColInd).get(this.powerRowInd).furthestNode();\n int d = furthestNode.furthestDistance();\n this.radius = (d / 2) + 1;\n this.mostPSMoves =\n this.board.get(this.powerColInd).get(this.powerRowInd).furthestDistance() -\n this.radius;\n }", "title": "" }, { "docid": "57c570140fefaef228b7f673cc4e6f4d", "score": "0.64997107", "text": "public double areaOfCircle(double radius){\n double answer = Math.PI * Math.pow(radius,2);\r\n //send back answer\r\n return answer;\r\n }", "title": "" }, { "docid": "ca623a2bed37244afd301a984bb6ad42", "score": "0.64951664", "text": "public double getRadius()\r\n/* 44: */ {\r\n/* 45: 74 */ return this.radius;\r\n/* 46: */ }", "title": "" }, { "docid": "da78694acfcceffc29611de7a1a6302e", "score": "0.6481386", "text": "public double smallRadius(){return this.innerRadius;}", "title": "" }, { "docid": "ea3f4926c97fefd58f3051cc93398c9d", "score": "0.64802337", "text": "public void setRadius(int radius) { this.radius = radius; }", "title": "" }, { "docid": "4e39826b3d35ba7e6f26cf959e7f28a7", "score": "0.6467235", "text": "public static int getRadiusInMeters() {\n\t\treturn (int)radius * 1000;\n\t}", "title": "" }, { "docid": "cc24d8b18c40fab2ce0d993c63629ad7", "score": "0.6466754", "text": "public double calculatePerimeter(){\n double perimeter = 2 * PI * radius;\n return perimeter;\n }", "title": "" }, { "docid": "e8ec3a4e3cfdd7de73ebd855adb310aa", "score": "0.64599675", "text": "public native final ShapeConfig radius(double val) /*-{\n\t\tthis.radius = val;\n\t\treturn this;\n\t}-*/;", "title": "" }, { "docid": "0b90c9deaf9d662e2e83e18cca10301b", "score": "0.6395019", "text": "public static double perimeter(long radius){\n double per = 2*Math.PI*radius;\n return per;\n }", "title": "" }, { "docid": "4ccb3d8482cf1cd5e4ce0939da3f1a44", "score": "0.63924474", "text": "public double getWorldRadius() {\n int dataCount = getValidDataPoints().size();\n if (dataCount < 3 || circleFitter.trackerPanel == null) {\n return Double.NaN;\n }\n return radius / circleFitter.trackerPanel.getCoords().getScaleX(n);\n }", "title": "" }, { "docid": "7b07ded3011e522dc05f1b2db8b5e5c0", "score": "0.63795847", "text": "public double computeArea() { // method that compute the area of circle\r\n\t\treturn radius*radius*Math.PI; // return the circle's area value\r\n\t}", "title": "" }, { "docid": "62c02022de55b0eeadf3e8b00f77018c", "score": "0.63777786", "text": "public Double getInnerRadius();", "title": "" }, { "docid": "ba4aee64ff5600e363312576602a3c51", "score": "0.63677", "text": "@Override\n public int getRadius() {\n return 17;\n }", "title": "" }, { "docid": "3887a50720178645161bc3f6f1a3c2a8", "score": "0.634246", "text": "public Circle(){\n //generally sets default internal variables\n radius = 1.0;\n }", "title": "" }, { "docid": "9e89e980bc612154a742cb33eaec4e17", "score": "0.6336367", "text": "private int distanceFrom(Circle circle){\n return (int) Math.sqrt(\n Math.pow(Math.abs(circle.centerX - centerCircle.centerX),2)+ \n Math.pow(Math.abs(circle.centerY - centerCircle.centerY),2)\n ) * 1000;\n }", "title": "" }, { "docid": "b5e7c364aa5ead21612e0eb3641549d2", "score": "0.6333326", "text": "private double calcCircle(double dtheta, double xD, double yD, boolean left){ \n if(left){ //left\n return Math.abs(dtheta)*(calcR(xD, yD) - (dtheta/Math.abs(dtheta))*wheelBase); //greater when negative\n } else{ //right\n return Math.abs(dtheta)*(calcR(xD, yD) + (dtheta/Math.abs(dtheta))*wheelBase); //greater when positive\n }\n }", "title": "" }, { "docid": "74d2574b8ffa3371331afb1718381636", "score": "0.63293815", "text": "public double getRadiusFromUnits() {\n switch (this.units) {\n case \"miles\":\n return 3959.0;\n case \"kilometers\":\n return 6371.0;\n case \"nautical miles\":\n return 3440.0;\n case \"user defined\":\n return this.unitRadius;\n default:\n return 0;\n }\n }", "title": "" }, { "docid": "3ecf98425a77b6a239ff1ba5c5e26bf0", "score": "0.6328118", "text": "public Circle(int radius) {\r\n\t\t// TODO Auto-generated constructor stub\r\n\t}", "title": "" }, { "docid": "3a7e40766ed38360c37c2cf5dca112e5", "score": "0.63226694", "text": "public Circle(double newRadius) {\n this.radius = newRadius;\n }", "title": "" }, { "docid": "11a135659b6360faad5a9a3598d2bed3", "score": "0.63071334", "text": "public double getPerimeter() {\r\n return 2 * Math.PI * radius;\r\n }", "title": "" }, { "docid": "c6d3d12687adc5c0df4521d453103920", "score": "0.6299776", "text": "public static double radius(double edgeLength1, double edgeLength2, double edgeLength3) {\n return TriangleArea.triangleArea(edgeLength1, edgeLength2, edgeLength3)\n / (0.5 * TrianglePerimeter.trianglePerimeter(edgeLength1, edgeLength2, edgeLength3));\n }", "title": "" }, { "docid": "6224baf6530582523988619e2c99e4c0", "score": "0.6299611", "text": "public final Circle getCircle() {\n\t\treturn shape;\n\t}", "title": "" }, { "docid": "baa90547100a462e07cfe8648714d055", "score": "0.6276389", "text": "public Circle (double XPos, double YPos, double Radius){\n this.xPosition = XPos;\n this.yPosition = YPos;\n this.radius = Radius;\n }", "title": "" }, { "docid": "4d3e906af6de91cda38bd329e2e07169", "score": "0.62761515", "text": "double getPerimeter() {\n\t\treturn 2 * radius * Math.PI;\n\t}", "title": "" }, { "docid": "37c5544fbd0100d885c97e497ef0195e", "score": "0.6271223", "text": "public double getAbsRadius() {\r\n\t\treturn dRadius;\r\n\t}", "title": "" }, { "docid": "79db3776bf8eee2a46a79541aa0599e8", "score": "0.62495923", "text": "public void setRadius(double theRadius)\n {\n radius = theRadius;\n }", "title": "" } ]
8f14c8f6df088b74e74bf3a8a989538e
Called when another command which requires one or more of the same subsystems is scheduled to run
[ { "docid": "c54eb8483380f6d4ce5b3eef7dcac878", "score": "0.0", "text": "@Override\n protected void interrupted() {}", "title": "" } ]
[ { "docid": "2f3760edb35ff7b32df9dfc65fabd733", "score": "0.56685185", "text": "public AutonomousShootAndPickUpBalls(MecanumDriveSubsystem subsystem1) {\n m_subsystemDrive = subsystem1;\n // Use addRequirements() here to declare subsystem dependencies.\n addRequirements(subsystem1); \n addRequirements(RobotContainer.getInstance().Gyro); \n addRequirements(RobotContainer.getInstance().intakeSubsystem); \n }", "title": "" }, { "docid": "f7668eb31e00df7f003d26fcaa350cf3", "score": "0.56029963", "text": "protected void watchRemovedDetermineRequirementsTasks() {\n // Normal rescind processing is sufficient\n }", "title": "" }, { "docid": "f91fa9376d976b71aaaafcc5c1efafb6", "score": "0.54852057", "text": "public Yeet3(TurretSubsystem turretSubsystem, DriveTrainSubsystem driveTrainSubsystem, ConveyorSubsystem conveyorSubsystem, IntakeSubsystem intakeSubsystem, LidarSubsystem lidarSubsystem, BlasterSubsystem blasterSubsystem, XboxController joystick) {\n // Add your commands in the super() call, e.g.\n // super(new FooCommand(), new BarCommand());\n super(\n // new ParallelCommandGroup(\n new DriveForwardGyroDistanceCommand(driveTrainSubsystem, Constants.AUTON_DRIVE_OFF_LINE_DISTANCE, -Constants.AUTON_DRIVE_OFF_LINE_SPEED, 0, true),//true\n new TimedManualTurretCommand(turretSubsystem, () -> 0, () -> 1, 2350),\n new TimedManualTurretCommand(turretSubsystem, () -> 0, () -> 0, 1000),\n // ),\n\n // new TimedCommand(new TurnToTargetCommand(turretSubsystem, lidarSubsystem), 3000),\n new TurnToTargetCommand(turretSubsystem, lidarSubsystem),\n new TimedManualTurretCommand(turretSubsystem, () -> 0, () -> 0, 1000),\n // new TimedBlasterDistanceBasedCommand(blasterSubsystem, lidarSubsystem, 20),\n new TimedBlasterDistanceBasedCommand(blasterSubsystem, lidarSubsystem, 2000),\n new ParallelCommandGroup(\n new BlasterDistanceBasedCommand(blasterSubsystem, lidarSubsystem, joystick),\n new IndexToBlasterCommand(intakeSubsystem),\n new ConveyorCommand(conveyorSubsystem, ()->-.75)\n )\n );\n }", "title": "" }, { "docid": "0853d48f8f47ae5fb616b56efbbc9059", "score": "0.53503036", "text": "@Override\n public void onCommands(CommandFramework commandFramework)\n {\n commandFramework.registerCommands(new InvisiblityCommands(this));\n }", "title": "" }, { "docid": "f28489ce393ffc4feab135fa594869b5", "score": "0.52617025", "text": "private void addSubsystemsToDashboard(ArrayList<LoggableSubsystem> subsystems) {\n\t\tfor (LoggableSubsystem subsystem : subsystems) {\n\t\t\tif (subsystem != null && subsystem instanceof Subsystem) {\n\t\t\t\tSmartDashboard.putData((Subsystem) subsystem);\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "1bf27a42c9cd2022f0d8e3d10aee29ac", "score": "0.52601564", "text": "public void registerCommands(){\n getCommand(\"duel\").setExecutor(new DuelCommand(this));\n getCommand(\"dueladmin\").setExecutor(new DuelAdminCommand(this));\n }", "title": "" }, { "docid": "5d3a65abc2aea181ffa59d9166151608", "score": "0.5230745", "text": "public AutoShootDriveBack(PneumaticSubsystem pneumatics, ShooterSubsystem shooter, DriveSubsystem drive, LEDSubsystem led, IntakeSubsystem intake) {\n super(//new IntakeDown(pneumatics);\n new AutoSpinUp(shooter),\n new WaitCommand(0.5),\n new Shoot(pneumatics, intake),\n new WaitCommand(3),\n new ShootOff(pneumatics, intake),\n new ShooterOff(shooter),\n new AutoTurn(drive, 10.0),\n new AutoDrive(drive, 0.5)\n );\n\n\n // Add your commands in the super() call, e.g.\n // super(new FooCommand(), new BarCommand());\n // super(new SpinUpShooter(shooter, 3200), \n // new ShooterOff(shooter)),\n // new AutoDrive(drive, 1.0));\n // \n }", "title": "" }, { "docid": "0f0f73a8a83d82ef0e02ebef31082dbc", "score": "0.5220921", "text": "private void registerCommands(){\n \tthis.getCommand(\"inv\").setExecutor(new openInvCmd());\n \tthis.getCommand(\"create\").setExecutor(new createMobCommand());\n \tthis.getCommand(\"spawn\").setExecutor(new SpawnWeaponCommand());\n \tthis.getCommand(\"spawnMob\").setExecutor(new SpawnWeaponCommand());\n \tthis.getCommand(\"toggle\").setExecutor(new ToggleCommand());\n }", "title": "" }, { "docid": "56991d25d70cf68604bd4d99c2d698f1", "score": "0.51973283", "text": "private void addCommandstoWaitinglist() {\n\t\tfinal CommonCommand speed = new Speed();\n\t\tfinal CommonCommand rpm = new RPM();\n\t\t// final CommonCommand ltft1 = new LongTermTrimBank1();\n\t\t// final CommonCommand stft1 = new ShortTermTrimBank1();\n\t\t// final CommonCommand throttle = new TPS();\n\t\t// final CommonCommand engineLoad = new EngineLoad();\n\t\tfinal CommonCommand maf = new MAF();\n\t\t// final CommonCommand intakePressure = new IntakePressure();\n\t\t// final CommonCommand intakeTemperature = new IntakeTemperature();\n\n\t\tserviceConnector.addJobToWaitingList(speed);\n\t\tserviceConnector.addJobToWaitingList(rpm);\n\t\t// serviceConnector.addJobToWaitingList(ltft1);\n\t\t// serviceConnector.addJobToWaitingList(throttle);\n\t\t// serviceConnector.addJobToWaitingList(engineLoad);\n\t\tserviceConnector.addJobToWaitingList(maf);\n\t\t// serviceConnector.addJobToWaitingList(intakePressure);\n\t\t// serviceConnector.addJobToWaitingList(stft1);\n\t\t// serviceConnector.addJobToWaitingList(intakeTemperature);\n\t}", "title": "" }, { "docid": "104b6665d8d95c850c146db4b07d9375", "score": "0.5175225", "text": "@Override\n protected void initDefaultCommand() {\n // You're welcome to use this method. Remember each subsystem can only have 1 command require it\n testCommand = new TestCommand();\n }", "title": "" }, { "docid": "b1840728ac0e4de9b03555ce82e03364", "score": "0.5152091", "text": "@Override\n protected void doAdditionalModuleStartLogic() throws Exception {\n try {\n // this allows us to become aware of remote services, in case the application needs to use any of them during startup\n LOG.info(\"Synchronizing remote services with service bus after KSB startup...\");\n long startTime = System.currentTimeMillis();\n KsbApiServiceLocator.getServiceBus().synchronizeRemoteServices();\n long endTime = System.currentTimeMillis();\n LOG.info(\"...total time to synchronize remote services with service bus after KSB startup: \" + (endTime - startTime));\n } catch (WebServiceException e) {\n LOG.error(\"Caught web service exception synchronizing service bus while configuring KSB\", e);\n }\n }", "title": "" }, { "docid": "daaf995e13dfac0ba45912f723fdede2", "score": "0.5138431", "text": "protected void execute() {\n subsystem.update();\n }", "title": "" }, { "docid": "d5eaa50775f0df349f579467d7b62064", "score": "0.5134783", "text": "private void runScheduler() {\r\n \t\tIntent intent = new Intent(this, Scheduler.class);\r\n \t\tintent.putExtra(Keys.INTENT_FIRST, true);\r\n \t\tstartService(intent);\r\n \t}", "title": "" }, { "docid": "e1d5192c68fbeb77f275c901dbf29149", "score": "0.5119441", "text": "@Override\n public void processCommand(Command cmd) {\n \n }", "title": "" }, { "docid": "a25fe9c436c9c07899681bad4c44edb1", "score": "0.51184535", "text": "@Override\n\tpublic void configureTasks(ScheduledTaskRegistrar registrar) {\n\t\t\n\t}", "title": "" }, { "docid": "f623a7b1a07f75b7635569ea69f3ceb7", "score": "0.51169246", "text": "@Override\n public void teleopInit() {\n // stores all commands in defaultCommands\n Command[] defaultCommands = roboContainer.getAllDefaultCommands();\n \n // loops through all commands, schedules them to run\n for(Command c : defaultCommands) {\n c.schedule(false);\n }\n }", "title": "" }, { "docid": "b8b74f682656c1e0761f750b8dfd9f96", "score": "0.50997543", "text": "protected void watchAddedSelfOrgDeployAct(OrgActivity selfOrgAct) {\n if (logger.isInfoEnabled()) {\n printInfo(\"Adding orgActivity!: \" + selfOrgAct + \"\\nbegin\");\n }\n\n\n replaceDeployPlan(selfOrgAct);\n\n if (didRehydrate ()) {\n printInfo(\">>> Enter Rehydrate Handling of SelfOrg\");\n if (getDetermineRequirementsTask() != null) {\n\tint count = 0;\n\tif (getDetermineRequirementsTask().getPlanElement () != null) {\n\t Expansion exp = (Expansion) getDetermineRequirementsTask().getPlanElement ();\n\t for (Enumeration en = exp.getWorkflow().getTasks(); en.hasMoreElements();) {\n\t Task subtask = (Task)en.nextElement();\n\t if (subtask.getVerb().equals(Constants.Verb.TRANSPORT)){ // defensive, should always be TRANSPORT\n\t count++;\n\t }\n\t }\n\t}\n\n\tif (count < 2) // note: causes (re)-expand if planElement is null.\n\t updateDetermineRequirementsTask(); // (re)-expand the dr task\n }\n printInfo(\">>> Exit Rehydrate Handling of SelfOrg\");\n } else {\n updateDetermineRequirementsTask(); // (re)-expand the dr task\n }\n\n\n if (logger.isInfoEnabled()) {\n printInfo(\"Added orgActivity!: \"+selfOrgAct+\"\\ndone\");\n }\n }", "title": "" }, { "docid": "5af37701efcb80106c87a931b0b49056", "score": "0.509414", "text": "@Override\n\t public void subTask(String subTask) {\n\t }", "title": "" }, { "docid": "bb60e4052231b3b3d134cdf98adcbfaa", "score": "0.5093277", "text": "public static void main(String[] args) {\n\t\tSystem.out.println(\"***SCHEDULER SUBSYSTEM***\\n\\n\");\n\t\tString[] elevatorSubsystemInput = new String[4];\n\t\tScanner scanner = new Scanner(System.in);\n\t\tSystem.out.println(\"Enter the IP address of Elevator Subsystem 1: \");\n\t\televatorSubsystemInput[0] = scanner.nextLine();\n\t\tSystem.out.println(\"Enter the IP address of Elevator Subsystem 2: \");\n\t\televatorSubsystemInput[1] = scanner.nextLine();\n\t\tSystem.out.println(\"Enter the IP address of Elevator Subsystem 3: \");\n\t\televatorSubsystemInput[2] = scanner.nextLine();\n\t\tSystem.out.println(\"Enter the IP address of Elevator Subsystem 4: \");\n\t\televatorSubsystemInput[3] = scanner.nextLine();\n\t\tSystem.out.println(\"Enter the IP address of the Floor Subsystem: \");\n\t\tString floorSubsystemInput = scanner.nextLine();\n\t\tInetAddress[] elevatorAddress = new InetAddress[4];\n\t\tInetAddress floorAddress = null;\n\t\ttry {\n\t\t\televatorAddress[0] = InetAddress.getByName(elevatorSubsystemInput[0]);\n\t\t\televatorAddress[1] = InetAddress.getByName(elevatorSubsystemInput[1]);\n\t\t\televatorAddress[2] = InetAddress.getByName(elevatorSubsystemInput[2]);\n\t\t\televatorAddress[3] = InetAddress.getByName(elevatorSubsystemInput[3]);\n\t\t\tfloorAddress = InetAddress.getByName(floorSubsystemInput);\n\t\t} catch (UnknownHostException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tscanner.close();\n\t\tSpeed speed = new Speed();\n\t\tScheduler s = new Scheduler(new Output(\"text_files/output.txt\"), floorAddress, elevatorAddress, speed);\n\t\ts.toString(); // gets rid of warning... serves no purpose lol\n\t}", "title": "" }, { "docid": "f3da9df8932c15afcecdfbb99ba44f0c", "score": "0.5055252", "text": "@Override\r\n\t\tpublic void onTriggerBefforeCommand() {\n\t\t\t\r\n\t\t}", "title": "" }, { "docid": "1b7d0663282b0f02f693620be62e183a", "score": "0.50508165", "text": "public void management() {\r\n String input;\r\n\r\n while(true) {\r\n input = getInput();\r\n\r\n for (Command command : commands) {\r\n if (command.getCall().equals(input)) {\r\n command.getFunction().run();\r\n }\r\n }\r\n }\r\n }", "title": "" }, { "docid": "666568329dc9859ea35c74b935096603", "score": "0.5049011", "text": "public leftHookAutonomousCommandGroup() {\n\n \t//addParallel(new HomeGearShift(8.0));\t\t\t\t\t\t\t\t\t\t\t\t\t//could add this to home gear shift in parallel with first move\n addSequential(new AutonomousArcadeDrive((95.0) * Robot.drives.encodersPerInch, 8.0));\n addSequential(new Turn(60.0, 3.0));\n //addSequential(new CameraBasedDrive(6.0));\n //addSequential(new CameraBasedTurn(6.0));\n addSequential(new AutonomousArcadeDrive((35.0) * Robot.drives.encodersPerInch, 4.0));\n \n }", "title": "" }, { "docid": "f20df1313ae73f4203a172f9e4d51502", "score": "0.5035404", "text": "public abstract void run(WormSystem system);", "title": "" }, { "docid": "c3be171277a2e042d618ab7f557fea8d", "score": "0.5019182", "text": "@Override\n public void initDefaultCommand()\n {\n // Set the default command for a subsystem here.\n // setDefaultCommand(new MySpecialCommand());\n }", "title": "" }, { "docid": "29de9543d876ed7a3372edc3bfa12e59", "score": "0.4995305", "text": "private void onFailedToJoin(Command command) {\n }", "title": "" }, { "docid": "635d5c365568404d0cd3ea8ee5669257", "score": "0.4992004", "text": "@Override\n protected void loadCommands() {\n commandManager.loadCommands(this, CommandType.TYPE_GLOBAL, CommandType.TYPE_SERVER);\n }", "title": "" }, { "docid": "66972421d025d81e349a8d2538634a9e", "score": "0.49760085", "text": "protected void loadCommands() { CommandManager.loadGlobalCommands(this); }", "title": "" }, { "docid": "2012147917b1985ff113a03ef769c3e1", "score": "0.4969897", "text": "private void configTestingCommands() {\n\n\t\tstratComInterface.getSCSideTop().whenPressed(superStructure.extendIntake);\n\t\tstratComInterface.getSCSideTop().whenReleased(superStructure.retractIntake);\n\n\t\tstratComInterface.getSCSideBot().whenPressed(superStructure.extendOuttake);\n\t\tstratComInterface.getSCSideBot().whenReleased(superStructure.retractIntake);\n\n\t\tstratComInterface.getSCSideMid()\n\t\t\t\t.whenPressed(new InstantCommand(() -> intake.outtake(0.3)))\n\t\t\t\t.whenReleased(intake::stop);\n\n\t}", "title": "" }, { "docid": "3aa5b7567f4f1cfe967184ec52ae7991", "score": "0.49681637", "text": "public void doBeforeSchedule() {\r\n\r\n\t}", "title": "" }, { "docid": "20686dbbad834e6b91283a8b825234f9", "score": "0.49669546", "text": "@Override\n public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args) {\n if (!(sender.hasPermission(\"admin.chestshop\"))) {\n sender.sendMessage(new ItemChestShopServerMessages().getServerPrefix()\n + ChatColor.AQUA + \"You do not have permission to do this! If you think this is a mistake please contact an admin!\");\n return true;\n }\n if(args.length == 0) {\n getExecutor(\"achestshop\").onCommand(sender, cmd, commandLabel, args);\n return true;\n }\n if(args.length > 0) {\n if(exists(args[0])){\n getExecutor(args[0]).onCommand(sender, cmd, commandLabel, args);\n return true;\n } else {\n sender.sendMessage(new ItemChestShopServerMessages().getServerPrefix()\n + ChatColor.AQUA + \"That's not something you do yet, if you think this is an error please contact an admin!\");\n return true;\n }\n }\n return false;\n }", "title": "" }, { "docid": "74698931f7d47da2edff422eb9806c64", "score": "0.49579614", "text": "public void run() {\n\t\t\t\t\t\t\tString[] vals = AddCommandDialog.getStrings(GraphSynthServicePanel.this);\r\n\t\t\t\t\t\t\tif (node instanceof SynthServiceNode) {\r\n\t\t\t\t\t\t\t\t((SynthServiceNode)node).addCommand(vals[0], vals[1]);\r\n\t\t\t\t\t\t\t} else if (node instanceof GroupTreeNode) {\r\n\t\t\t\t\t\t\t\t((GroupTreeNode)node).addCommand(vals[0], vals[1]);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}", "title": "" }, { "docid": "095226d1b53571dd17f73aaba3009194", "score": "0.49511805", "text": "@Override\n public void init(BundleContext ctx, DependencyManager dm) throws Exception {\n dm.add(createComponent()\n .setImplementation(MeteringServiceImpl.class)\n .setInterface(MeteringService.class.getName(), null)\n .add(createServiceDependency().setService(Monitorable.class).setRequired(false).setCallbacks(\"add\", \"remove\")));\n \n // Declare the Gogo Metering Command\n Hashtable<String, Object> props = new Hashtable<>();\n props.put(CommandProcessor.COMMAND_SCOPE, \"casr.service.metering\");\n\tprops.put(\"casr.\"+CommandProcessor.COMMAND_SCOPE+\".alias\", \"asr.metering\");\n props.put(CommandProcessor.COMMAND_FUNCTION, new String[] { \n \"list\", \"update\", \"createRateMeter\" , \"createMaxValueMeter\", \n \"createMovingMaxValueMeter\", \"removeRateMeter\", \"removeMaxValueMeter\",\n \"createMergeMeters\"\n });\n\n \n dm.add(createComponent()\n .setInterface(MeteringRegistry.class.getName(), null)\n .setImplementation(MeteringRegistryImpl.class)\n .setCallbacks(null, \"init\", \"destroy\", null)\n .add(createServiceDependency().setService(Monitorable.class).setRequired(false).setCallbacks(\"bindMonitorable\", \"unbindMonitorable\")));;\n\n dm.add(createComponent()\n .setImplementation(GogoMetering.class)\n .setInterface(GogoMetering.class.getName(), props)\n\t .add(createServiceDependency().setService(MeteringRegistry.class).setRequired(true))\n\t .add(createServiceDependency().setService(MeteringService.class).setRequired(true))\n\t .add(createServiceDependency().setService(DerivedMeters2.class).setRequired(true)));\n \n// Declare the DerivedMeters Service\n// dm.add(createComponent()\n// .setImplementation(DerivedMeters.class)\n// .setAutoConfig (Component.class, false)\n// .add(createConfigurationDependency().setPid(MeteringServiceImpl.class.getName()))\n// .add(createServiceDependency().setService(MeteringService.class).setRequired(true)));\n\n dm.add(createComponent()\n \t .setImplementation(DerivedMeters1.class)\n \t .setAutoConfig (Component.class, false)\n \t .add(createConfigurationDependency().setPid(MeteringServiceImpl.class.getName()))\n \t .add(createServiceDependency().setService(MeteringRegistry.class).setRequired(true))\n \t .add(createServiceDependency().setService(MeteringService.class).setRequired(true)));\n \n dm.add(createComponent()\n\t .setImplementation(DerivedMeters2.class)\n\t .setAutoConfig (Component.class, false)\n\t .setInterface(DerivedMeters2.class.getName(), null)\n\t .add(createConfigurationDependency().setPid(MeteringServiceImpl.class.getName()))\n\t .add(createServiceDependency().setService(MeteringRegistry.class).setRequired(true))\n\t .add(createServiceDependency().setService(MeteringService.class).setRequired(true)));\n\t\n // Declare the ShutdownMeters Service\n dm.add(createComponent()\n .setImplementation(ShutdownMeters.class)\n .setInterface(com.alcatel.as.service.shutdown.Shutdownable.class.getName(), null)\n .setAutoConfig (Component.class, false)\n .add(createConfigurationDependency().setPid(MeteringServiceImpl.class.getName()))\n .add(createServiceDependency().setService(MeteringService.class).setRequired (true))\n .add(createServiceDependency().setService(PlatformExecutors.class).setRequired(true)));\n \n // Declare the Monitorable System Service (which has an optional dependency on a configuration, using a ManagedService).\n props = new Hashtable<>();\n props.put(Constants.SERVICE_PID, MeteringServiceImpl.class.getName());\n \n dm.add(createComponent()\n .setImplementation(MonitorableSystem.class)\n .add(createServiceDependency().setService(MeteringService.class).setRequired(true))\n .add(createServiceDependency().setService(PlatformExecutors.class).setRequired(true)));\n \n try {\n // Declare the MeteringServlet. Notice that the setHttpService callback is optional and will be called *AFTER*\n // all required dependencies have been injected.\n // (in DM, optional callbacks are always invoked after required callbacks and after start).\n dm.add(createComponent()\n .setImplementation(MeteringServlet.class)\n .add(createConfigurationDependency().setPid(MeteringServiceImpl.class.getName()))\n\t .add(createServiceDependency().setService(MeteringService.class).setRequired(true))\n\t .add(createServiceDependency().setService(MeteringRegistry.class).setRequired(true)) \n\t .add(createServiceDependency().setService(HttpService.class).setCallbacks(\"setHttpService\", null)));\n } catch (Throwable err) {\n _logger.warn(\"Metering servlet not registered: \" + err.toString());\n }\n }", "title": "" }, { "docid": "ca7d4338046e9306d5b3e800541ab7b6", "score": "0.49505603", "text": "public abstract void StartChildren() throws CommandException;", "title": "" }, { "docid": "1e505873572c86ab17b05f440f164e6a", "score": "0.49454305", "text": "@Override\n protected void aboutToBeDequeued(Scheduler s) {\n for(Job subTask: subTasks) {\n try {\n s.enqueue(subTask);\n }\n catch(Exception e) {\n logger.error(\"Updater failed to dequeue jobs for handling updated source files\");\n continue;\n }\n }\n super.aboutToBeDequeued(s);\n }", "title": "" }, { "docid": "025e01ce8144d6433d44658d57048170", "score": "0.49445537", "text": "protected abstract void runCustomCommand(Command command, String sentFrom);", "title": "" }, { "docid": "9343da4b152938740e96348bdd612459", "score": "0.49295202", "text": "@Override\n public void initDefaultCommand() {\n // Set the default command for a subsystem here.\n setDefaultCommand(new ManualLifter());\n }", "title": "" }, { "docid": "469da1b31cafd46f74d311ebcc9a04b4", "score": "0.49284294", "text": "@Override\n\tpublic void work() {\t\n\t\tif(getAvailable()==false) {\n\t\t\tsetTimeLeft(getTimeLeft()-1);\n\t\t\tif(getTimeLeft() == 0 && getPackagesSize()>0) {\n\t\t\t\tPackage p = getPackage(0);\n\t\t\t\tif(p.getStatus()==Status.COLLECTION) {// from hub to sender- set time to receiver\n\t\t\t\t\tsetTimeLeft(generateTimeLeftToDestination(p.getSenderAddress().getStreet(),p.getDestinationAddress().getStreet()));\n\t\t\t\t\tthis.setDestination(VerticeType.DestinationPackage, p.getPackageID());\n\t\t\t\t\tthis.setSource(VerticeType.SourchPackage, p.getPackageID());\n\t\t\t\t\tcollectPackage(getPackage(0));\n\t\t\t\t}\n\t\t\t\telse if(getPackage(0).getStatus()==Status.DISTRIBUTION) { //timeToArrive from Hub to Collection\n\t\t\t\t\tdeliverPackage(getPackage(0));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "19fc7f2138e366086f90fd1e8bf96a2c", "score": "0.49276468", "text": "java.lang.String getSubcommand();", "title": "" }, { "docid": "6c852dc5519166406fc99f33b508e40c", "score": "0.49253526", "text": "public void exec(CarSystem m);", "title": "" }, { "docid": "793cb8a9b80c8d1f3a0816004a89767f", "score": "0.49157244", "text": "@Override\n\tpublic void autonomousInit()\n\t{\n\t\t//m_autonomousCommand = m_chooser.getSelected();\n\n\t\t/*\n\t\t * String autoSelected = SmartDashboard.getString(\"Auto Selector\", \"Default\");\n\t\t * switch(autoSelected) { case \"My Auto\": autonomousCommand = new\n\t\t * MyAutoCommand(); break; case \"Default Auto\": default: autonomousCommand = new\n\t\t * ExampleCommand(); break; }\n\t\t */\n\n\t\t// schedule the autonomous command (example)\n\t\t// if (m_autonomousCommand != null)\n\t\t// {\n\t\t// \tm_autonomousCommand.start();\n\t\t// }\n\t}", "title": "" }, { "docid": "db39d76147c844ed4f98fa2f02ffa085", "score": "0.49094483", "text": "public void commandExecuted(Command cmd);", "title": "" }, { "docid": "a1df557579c6fb85c54ff1161f58196f", "score": "0.4909087", "text": "@Test\r\n \tpublic void shouldAllowTwoTasksInitMethodsToRunConcurrently() throws Exception {\r\n \t\tSchedulerService schedulerService = Context.getSchedulerService();\r\n \t\t\r\n \t\tTaskDefinition t3 = new TaskDefinition();\r\n \t\tt3.setId(3);\r\n \t\tt3.setStartOnStartup(false);\r\n \t\tt3.setStartTime(null); // so it starts immediately\r\n \t\tt3.setTaskClass(SimpleTask.class.getName());\r\n \t\tt3.setProperty(\"id\", \"TASK-3\");\r\n \t\tt3.setProperty(\"delay\", \"300\"); // must be longer than t4's delay\r\n \t\t\r\n \t\tTaskDefinition t4 = new TaskDefinition();\r\n \t\tt4.setId(4);\r\n \t\tt4.setStartOnStartup(false);\r\n \t\tt4.setStartTime(null); // so it starts immediately\r\n \t\tt4.setTaskClass(SimpleTask.class.getName());\r\n \t\tt4.setProperty(\"id\", \"TASK-4\");\r\n \t\tt4.setProperty(\"delay\", \"100\");\r\n \t\t\r\n \t\t// both of these tasks start immediately\r\n \t\tschedulerService.scheduleTask(t3); // starts first, ends last\r\n \t\tschedulerService.scheduleTask(t4); // starts last, ends first\r\n \t\tThread.sleep(500); // must be greater than task3 delay so that it prints out its end\r\n \t\tassertEquals(Arrays.asList(\"TASK-3\", \"TASK-4\", \"TASK-4\", \"TASK-3\"), outputForConcurrentInit);\r\n \t\t\r\n \t\t// cleanup\r\n \t\tschedulerService.shutdownTask(t3);\r\n \t\tschedulerService.shutdownTask(t4);\r\n \t}", "title": "" }, { "docid": "6ecc5e1addb860cc1e471a13361218aa", "score": "0.4903829", "text": "@Override\n public void robotPeriodic() {\n // Runs the Scheduler. This is responsible for polling buttons, adding newly-scheduled\n // commands, running already-scheduled commands, removing finished or interrupted commands,\n // and running subsystem periodic() methods. This must be called from the robot's periodic\n // block in order for anything in the Command-based framework to work.\n CommandScheduler.getInstance().run();\n }", "title": "" }, { "docid": "5c9d03d483eba50e4ee52d2a30b6435c", "score": "0.48992068", "text": "public void onCommand(){\n List<Event> sceneEvents = scene.getEvents();\n for (Event event: sceneEvents) {\n if (event.checkConditions(GameController.getInstance().globalState, sceneState)){\n event.doEvent(scene);\n }\n }\n\n //Do npc events\n for (Npc npc: scene.getNpcs()){\n for (Event event: npc.getEvents()){\n if (event.checkConditions(GameController.getInstance().globalState, sceneState)){\n event.doEvent(scene);\n }\n }\n }\n }", "title": "" }, { "docid": "716af3e040b79bfcda3f97969adab733", "score": "0.489477", "text": "@Override\n\tpublic void start() {\n\t\tif(tasks.isEmpty())\n\t\t\treturn;\n\t\t// Move the detractors to the back of the task\n\t\ttasks = new DynamicInputWithWaitScheduler(new LinkedList<DroneOrder>()).rearrangeTasks(tasks);\n\t\t\n\t\tsuper.setTasks(tasks);\n\t\tsuper.start();\n\t\n\t}", "title": "" }, { "docid": "60ace5a9f828d59070256656c24fc2e3", "score": "0.48945135", "text": "private void addCommandSingleJob() {\r\n String noGenExecReport = \"\";\r\n if (!getOptionExecutionReport()) {\r\n noGenExecReport = \" --dont-gen-exec-rpt\";\r\n }\r\n String win = \r\ngetEnvironmentSetupWin() + \"\\n\" +\r\n\"set VCAST_RPTS_PRETTY_PRINT_HTML=FALSE\\n\" +\r\n\"%VECTORCAST_DIR%\\\\manage --project \\\"@PROJECT@\\\" --status\\n\" +\r\n\"%VECTORCAST_DIR%\\\\manage --project \\\"@PROJECT@\\\" --release-locks\\n\" +\r\ngetExecutePreambleWin() +\r\n\" %VECTORCAST_DIR%\\\\manage --project \\\"@PROJECT@\\\" --build-execute --incremental --output \\\"@PROJECT_BASE@_manage_incremental_rebuild_report.html\\\" \\n\" +\r\n\"\\n\";\r\n if (getOptionUseReporting()) {\r\n win +=\r\n\"%VECTORCAST_DIR%\\\\vpython \\\"%WORKSPACE%\\\\vc_scripts\\\\generate-results.py\\\" --api 2 \\\"@PROJECT@\\\" \" + noGenExecReport + \"\\n\" +\r\n\"%VECTORCAST_DIR%\\\\manage --project \\\"@PROJECT@\\\" --full-status=\\\"@PROJECT_BASE@_full_report.html\\\"\\n\" +\r\n\"%VECTORCAST_DIR%\\\\manage --project \\\"@PROJECT@\\\" --create-report=aggregate --output=\\\"@PROJECT_BASE@_aggregate_report.html\\\"\\n\" +\r\n\"%VECTORCAST_DIR%\\\\manage --project \\\"@PROJECT@\\\" --create-report=metrics --output=\\\"@PROJECT_BASE@_metrics_report.html\\\"\\n\" +\r\n\"%VECTORCAST_DIR%\\\\manage --project \\\"@PROJECT@\\\" --create-report=environment --output=\\\"@PROJECT_BASE@_environment_report.html\\\"\\n\" +\r\n\"%VECTORCAST_DIR%\\\\manage --project \\\"@PROJECT@\\\" --full-status > \\\"@PROJECT_BASE@_full_report.txt\\\"\\n\" +\r\n\"%VECTORCAST_DIR%\\\\vpython \\\"%WORKSPACE%\\\\vc_scripts\\\\gen-combined-cov.py\\\" \\\"@PROJECT_BASE@_aggregate_report.html\\\"\\n\" +\r\n\"%VECTORCAST_DIR%\\\\vpython \\\"%WORKSPACE%\\\\vc_scripts\\\\getTotals.py\\\" --api 2 \\\"@PROJECT_BASE@_full_report.txt\\\"\\n\";\r\n }\r\n win += getEnvironmentTeardownWin() + \"\\n\";\r\n win = StringUtils.replace(win, \"@PROJECT@\", getManageProjectName());\r\n win = StringUtils.replace(win, \"@PROJECT_BASE@\", getBaseName());\r\n \r\n String unix = \r\ngetEnvironmentSetupUnix() + \"\\n\" +\r\n\"export VCAST_RPTS_PRETTY_PRINT_HTML=FALSE\\n\" +\r\n\"$VECTORCAST_DIR/manage --project \\\"@PROJECT@\\\" --status \\n\" +\r\n\"$VECTORCAST_DIR/manage --project \\\"@PROJECT@\\\" --release-locks \\n\" +\r\ngetExecutePreambleUnix() +\r\n\" $VECTORCAST_DIR/manage --project \\\"@PROJECT@\\\" --build-execute --incremental --output \\\"@PROJECT_BASE@_manage_incremental_rebuild_report.html\\\"\\n\" +\r\n\"\\n\";\r\n if (getOptionUseReporting()) {\r\n unix +=\r\n\"$VECTORCAST_DIR/vpython \\\"$WORKSPACE/vc_scripts/generate-results.py\\\" --api 2 \\\"@PROJECT@\\\" \" + noGenExecReport + \"\\n\" +\r\n\"$VECTORCAST_DIR/manage --project \\\"@PROJECT@\\\" --full-status=\\\"@PROJECT_BASE@_full_report.html\\\"\\n\" +\r\n\"$VECTORCAST_DIR/manage --project \\\"@PROJECT@\\\" --create-report=aggregate --output=\\\"@PROJECT_BASE@_aggregate_report.html\\\"\\n\" +\r\n\"$VECTORCAST_DIR/manage --project \\\"@PROJECT@\\\" --create-report=metrics --output=\\\"@PROJECT_BASE@_metrics_report.html\\\"\\n\" +\r\n\"$VECTORCAST_DIR/manage --project \\\"@PROJECT@\\\" --create-report=environment --output=\\\"@PROJECT_BASE@_environment_report.html\\\"\\n\" +\r\n\"$VECTORCAST_DIR/manage --project \\\"@PROJECT@\\\" --full-status > \\\"@PROJECT_BASE@_full_report.txt\\\"\\n\" +\r\n\"$VECTORCAST_DIR/vpython \\\"$WORKSPACE/vc_scripts/gen-combined-cov.py\\\" \\\"@PROJECT_BASE@_aggregate_report.html\\\"\\n\" +\r\n\"$VECTORCAST_DIR/vpython \\\"$WORKSPACE/vc_scripts/getTotals.py\\\" --api 2 \\\"@PROJECT_BASE@_full_report.txt\\\"\\n\";\r\n }\r\n unix += getEnvironmentTeardownUnix() + \"\\n\";\r\n unix = StringUtils.replace(unix, \"@PROJECT@\", getManageProjectName());\r\n unix = StringUtils.replace(unix, \"@PROJECT_BASE@\", getBaseName());\r\n \r\n VectorCASTCommand command = new VectorCASTCommand(win, unix);\r\n getTopProject().getBuildersList().add(command);\r\n }", "title": "" }, { "docid": "86a7442dc214d072c1c3af8db9c6f4ea", "score": "0.48882505", "text": "public void schedule(Topologies topologies, Cluster cluster) {\n TopologyDetails topology = topologies.getByName(\"special-topology\");\r\n\r\n // make sure the special topology is submitted,\r\n if (topology != null) {\r\n boolean needsScheduling = cluster.needsScheduling(topology);\r\n\r\n System.out.println(\"Our special topology needs scheduling.\");\r\n if (needsScheduling) {\r\n // find out all the needs-scheduling components of this topology\r\n Map<String, List<ExecutorDetails>> componentToExecutors = cluster.getNeedsSchedulingComponentToExecutors(topology);\r\n if (componentToExecutors.containsKey(\"special-spout\")) {\r\n System.out.println(\"Found the special-spout.\");\r\n List<ExecutorDetails> executors = componentToExecutors.get(\"special-spout\");\r\n\r\n // find out the our \"special-supervisor\" from the supervisor metadata\r\n Collection<SupervisorDetails> supervisors = cluster.getSupervisors().values();\r\n SupervisorDetails specialSupervisor = null;\r\n for (SupervisorDetails supervisor : supervisors) {\r\n Map meta = (Map) supervisor.getSchedulerMeta();\r\n\r\n if (meta.get(\"name\").equals(\"special-supervisor\")) {\r\n specialSupervisor = supervisor;\r\n break;\r\n }\r\n }\r\n\r\n // found the special supervisor\r\n if (specialSupervisor != null) {\r\n List<WorkerSlot> availableSlots = cluster.getAvailableSlots(specialSupervisor);\r\n // if there is no available slots on this supervisor, free some.\r\n if (availableSlots.isEmpty() && !executors.isEmpty()) {\r\n for (Integer port : specialSupervisor.getAllPorts()) {\r\n cluster.freeSlot(new WorkerSlot(specialSupervisor.getId(), port));\r\n }\r\n }\r\n\r\n // re-get the aviableSlots\r\n availableSlots = cluster.getAvailableSlots(specialSupervisor);\r\n\r\n // since it is just a demo, to keep things simple, we assign all the\r\n // executors into one slot.\r\n cluster.assign(availableSlots.get(0), topology.getId(), executors);\r\n System.out.println(\"We assigned executors:\" + executors + \" to slot: [\" + availableSlots.get(0).getNodeId() + \", \" + availableSlots.get(0).getPort() + \"]\");\r\n }\r\n }\r\n }\r\n }\r\n new DefaultScheduler().schedule(topologies, cluster);\r\n }", "title": "" }, { "docid": "719e0304935441933510d23f7ac04aa5", "score": "0.48771513", "text": "@Override\n\tpublic void autonomousInit() {\n\t\t/*\n\t\t * PUT AUTONOMOUS COMMANDS BELOW HERE:\n\t\t */\n\n\t\t//autonomousCommand = new PointTurns(pm);\n\t\t//autonomousCommand = new AutonRotate2();\n\t\tautonomousCommand = new DrivingAroundLikeHentaiLord();\n\t\t//autonomousCommand = new AutonRotate3();\n\t\t//autonomousCommand = new DriveInCircle(50, true);\n\n\t\t/*\n\t\t * String autoSelected = SmartDashboard.getString(\"Auto Selector\",\n\t\t * \"Default\"); switch(autoSelected) { case \"My Auto\": autonomousCommand\n\t\t * = new MyAutoCommand(); break; case \"Default Auto\": default:\n\t\t * autonomousCommand = new ExampleCommand(); break; }\n\t\t */\n\n\t\t// schedule the autonomous command (example)\n\t\tif (autonomousCommand != null){\n\t\t\tautonomousCommand.start();\n\t\t}\n\t}", "title": "" }, { "docid": "e35c867f4af72828eafe92cd2bffbb5d", "score": "0.48766336", "text": "@Override\n public void systemStatusChanged(BmhComponent component, String key) {\n if (component == BmhComponent.DAC) {\n retrievalJob.scheduleRetrieval(RetrieveType.DacTransmitter);\n } else {\n retrievalJob.scheduleRetrieval(RetrieveType.Process);\n }\n }", "title": "" }, { "docid": "ba14e5274a849005059bcfdcee19491f", "score": "0.48752803", "text": "@Override\r\n\tpublic void doCommand() {\n\t\t\r\n\t\tcommand.command();\r\n\t\t\r\n\t}", "title": "" }, { "docid": "2eb789f5463125f76c17094224b5e0f0", "score": "0.4869542", "text": "@Override\n public void run() {\n validateArgs();\n\n throw new ParameterException(spec.commandLine(), \"Missing required subcommand\");\n }", "title": "" }, { "docid": "0b0d4859b860e41cc94d3c4d7b47501b", "score": "0.48620108", "text": "public CommandProcessScheduler(AdventureService adventureService) {\n this.adventureService = adventureService;\n }", "title": "" }, { "docid": "91d2d14ffef718b1f15ebf9b28e02782", "score": "0.48586065", "text": "public interface ScheduledCommand<C extends Command<R>, R extends Result> {\n\n /**\n * Create the command which will be executed\n */\n C createCommand();\n \n /**\n * Callback after each execution\n * @param result\n */\n void handleResult(R result);\n \n /**\n * Callback if the action of the command throws an exception\n * @param throwable\n */\n void handleException(Throwable throwable);\n \n /**\n * Creates the trigger which defines the timing of the command execution\n */\n Trigger createTrigger();\n \n \n}", "title": "" }, { "docid": "7938cd441b593bcb3c78f8852237eff6", "score": "0.48551655", "text": "@Override\n public void initDefaultCommand() {\n // BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=DEFAULT_COMMAND\n\n\n // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=DEFAULT_COMMAND\n\n // Set the default command for a subsystem here.\n // setDefaultCommand(new SpinCommand());\n setDefaultCommand(new SpinRight());\n setDefaultCommand(new SpinRightFaster());\n setDefaultCommand(new SpinCommandFaster());\n setDefaultCommand(new SpinStop());\n\n }", "title": "" }, { "docid": "4d0767bb79883722ac362d67075eb6da", "score": "0.4848988", "text": "public void run() {\n List plannedCommands = executor.schedule.getPlannedCommands();\n getLogger().info(\"Executing the sequence of commands \" + plannedCommands.toString());\n //TODO handle macro command by expanding macros (recursively) before sequencing\n Command command = null;\n Command nextCommand = null;\n // TODO for now ignore timing\n Iterator commandIterator = plannedCommands.iterator();\n while (true) {\n if (executor.stopSchedule || (! commandIterator.hasNext())) {\n reportScheduleFinished();\n return;\n }\n if (command instanceof Goal &&\n executor.actuator instanceof DirectActuator) {\n //TODO wait for goal to occur and continue or timeout and return with\n // timeout status msg\n continue;\n }\n \n //TODO handle perceive command\n \n //TODO handle alternative choice command\n //TODO handle conditional command\n //TODO handle iterated command\n //TODO handle learning episode command\n //TODO handle ordering choice command\n //TODO handle subset choice command\n \n command = (Command) commandIterator.next();\n TaskCommand taskCommand = new TaskCommand(command, nextCommand);\n DoTaskMsg doTaskMsg = new DoTaskMsg(executor, taskCommand);\n getLogger().info(\"Sending the command \" + taskCommand.toString());\n executor.sendMsgToRecipient(executor.actuatorChannel, doTaskMsg);\n }\n }", "title": "" }, { "docid": "a9da0ccf6fd876d4bd4c3a2b43e36371", "score": "0.4847486", "text": "private static void CommandTest() {\n FileSystemReceiver fs = FileSystemReceiverUtil.getUnderlyingFileSystem();\n\n //creating command and associating with receiver\n OpenFileCommand openFileCommand = new OpenFileCommand(fs);\n\n //Creating invoker and associating with Command\n FileInvoker file = new FileInvoker(openFileCommand);\n\n //perform action on invoker object\n\n file.execute();\n\n WriteFileCommand writeFileCommand = new WriteFileCommand(fs);\n file = new FileInvoker(writeFileCommand);\n file.execute();\n\n CloseFileCommand closeFileCommand = new CloseFileCommand(fs);\n file = new FileInvoker(closeFileCommand);\n file.execute();\n }", "title": "" }, { "docid": "8c25b9955ad1293c2a40e4d82e3e762d", "score": "0.48383436", "text": "private void sendDashboardSubsystems() {\n \tSmartDashboard.putData(drivetrain);\n \tSmartDashboard.putData(intakeCube); \n \tSmartDashboard.putData(visionProcessor);\n \tSmartDashboard.putData(arm);\n \tSmartDashboard.putData(pneumaticsCube);\n \tSmartDashboard.putData(pneumaticsClimber);\n \tSmartDashboard.putData(tele);\n }", "title": "" }, { "docid": "219634e62392fa098293954671262483", "score": "0.48326015", "text": "public void initDefaultCommand() {\n // Set the default command for a subsystem here.\n //setDefaultCommand(new MySpecialCommand());\n \tsetDefaultCommand(new ArcadeDriveWithDriverXbox());\n }", "title": "" }, { "docid": "197a438627a620316249a3eef224a090", "score": "0.48212796", "text": "private void setupCommands(){\n\t\tgetCommand(\"Bastion\").setExecutor(new BastionCommandManager());\n\t\tgetCommand(\"bsi\").setExecutor(new ModeChangeCommand(Mode.INFO));\n\t\tgetCommand(\"bsd\").setExecutor(new ModeChangeCommand(Mode.DELETE));\n\t\tgetCommand(\"bso\").setExecutor(new ModeChangeCommand(Mode.NORMAL));\n\t\tgetCommand(\"bsb\").setExecutor(new ModeChangeCommand(Mode.BASTION));\n\t\tgetCommand(\"bsf\").setExecutor(new ModeChangeCommand(Mode.OFF));\n\t\tgetCommand(\"bsm\").setExecutor(new ModeChangeCommand(Mode.MATURE));\n\t}", "title": "" }, { "docid": "c9883b2dcd23cd40c402a6821e24bb19", "score": "0.48162302", "text": "public void executeCommand(String[] commands, double totalTime, String sysTime)\n\t{\n String sensorType = \"\";\n int sensorNum = 0;\n String eventType = \"\";\n int commandNumber = 0;\n String commandEntered = commands[0];\n\n if(commandEntered.equals(\"CONN\")){\n sensorType = commands[1];\n sensorNum = Integer.parseInt(commands[2]);\n }else if (commandEntered.equals(\"EVENT\")){\n eventType = commands[1];\n }else if((commands.length > 1 && commands[1] != null) && !commandEntered.equals(\"PRINTPWR\")){\n commandNumber = Integer.parseInt(commands[1]);\n }\n\n\t\tswitch (commandEntered){\n\t\t\tcase \"TIME\":{\n\t\t\t\tif (systemOn){\n\t\t\t\t\tevents.add(new Event(sysTime, log));\n\t\t\t\t} break;\n\t\t\t}\n\t\t\tcase \"ON\":{\n\t\t\t\tsystemOn = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase \"OFF\":{\n\t\t\t\tif (systemOn){\n\t\t\t\t\tsystemOn = false;\n isPrinterOn = false;\n\t\t\t\t} break;\n\t\t\t}\n\t\t\tcase \"RESET\":{\n\t\t\t\tif (systemOn){\n\t\t\t\t\tcurrentEvent = 0;\n isPrinterOn = false;\n\t\t\t\t\t//event = new Event(SysTime);\n\t\t\t\t} break;\n\t\t\t}\n\t\t\tcase \"CONN\":{\n\t\t\t\tif (systemOn){\n\t\t\t\t\tsensors[sensorNum-1] = new Sensor(sensorType,sensorNum,sensorToggle[sensorNum-1]);\n\t\t\t\t} break;\n\t\t\t}\n\t\t\tcase \"DISC\":{\n\t\t\t\tif (systemOn){\n\t\t\t\t\tsensors[commandNumber-1] = null;\n\t\t\t\t} break;\n\t\t\t}\n\t\t\tcase \"EVENT\":{\n\t\t\t\tif (systemOn){\n if(currentEvent == 0 && !eventCommandCalled){\n currentEvent++;\n }\n eventCommandCalled = true;\n\t\t\t\t\t//Sprint 2; need a way to tell the system what type of event to handle\n\t\t\t\t\tswitch(eventType){\n\t\t\t\t\t\tcase \"IND\":{//no change necessary, default case\n\t\t\t\t\t\t\tevents.add(new Event(sysTime, log));\n\t\t\t\t\t\t\tif(!isE1changed){\n\t\t\t\t\t\t\t\tcurrentEvent++;\n\t\t\t\t\t\t\t}\n isE1changed = false;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcase \"PARIND\":{\n\t\t\t\t\t\t\tevents.add(new PARIND(sysTime, log));\n\t\t\t\t\t\t\tif(!isE1changed){\n\t\t\t\t\t\t\t\tcurrentEvent++;\n\t\t\t\t\t\t\t}\n isE1changed = false;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcase \"GRP\":{\n\t\t\t\t\t\t\tif(!isE1changed){\n\t\t\t\t\t\t\t\tcurrentEvent++;\n\t\t\t\t\t\t\t}\n isE1changed = false;\n\t\t\t\t\t\t\tevents.add(new GRP(sysTime, log));\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcase \"PARGRP\":{\n\t\t\t\t\t\t\tevents.add(new PARGRP(sysTime, log));\n\t\t\t\t\t\t\tif(!isE1changed){\n\t\t\t\t\t\t\t\tcurrentEvent++;\n\t\t\t\t\t\t\t}\n isE1changed = false;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\teventRunning = true;\n\t\t\t\t} break;\n\t\t\t}\n\t\t\tcase \"TOGGLE\":{\n\t\t\t\tif (systemOn){\n\t\t\t\t\tif(sensors[commandNumber-1] != null){\n\t\t\t\t\t\tsensors[commandNumber-1].toggle();\n\t\t\t\t\t}else{\n sensorToggle[commandNumber-1] = !sensorToggle[commandNumber-1];\n }\n\t\t\t\t} break;\n\t\t\t}\n\t\t\tcase \"NUM\":{\n\t\t\t\tif (systemOn && eventRunning){\n\t\t\t\t\tevents.get(currentEvent).addRacer(commandNumber);\n\t\t\t\t\tlog.setLatestLine(commands[1] + \" \" + sysTime);\n\t\t\t\t} break;\n\t\t\t}\n\t\t\tcase \"TRIG\":{\n\t\t\t\tif (systemOn && eventRunning){\n\t\t\t\t\t/*if(sensors[Integer.parseInt(commands[1])-1] != null){\n\t\t\t\t\t\tevents.get(currentEvent).trigger(Integer.parseInt(commands[1])-1, TotalTime);\n\t\t\t\t\t}*/\n Event runningEvent = events.get(currentEvent);\n\t\t\t\t\tif(sensors[commandNumber-1] != null && sensors[commandNumber-1].canTriggerSensor()){\n\t\t\t\t\t\t\trunningEvent.trigger(commandNumber, totalTime);\n\t\t\t\t\t}\n\t\t\t\t}\n break;\n\t\t\t}\n\t\t\tcase \"START\":{\n\t\t\t\tif (systemOn && eventRunning){ //Sprint 2; \"shorthand for TRIG 1\"\n\t\t\t\t\tif(sensors[0] != null){\n\t\t\t\t\t//in GRP & PARGRP trig 1 starts all lanes, in PARIND this would start 1 & 3\n\t\t\t\t\t\tevents.get(currentEvent).trigger(3, totalTime);\n\t\t\t\t\t\tevents.get(currentEvent).trigger(1, totalTime);\n\t\t\t\t\t//trig 3 MUST be before trig 1 to allow PARIND start otherwise\n\t\t\t\t\t//would case a false-finish for GRP/PARGRP events\n\t\t\t\t\t}\n\t\t\t\t}break;\n\t\t\t}case \"FINISH\":{\n\t\t\t\tif (systemOn && eventRunning){ //Sprint 2; \"shorthand for TRIG 2\"\n\t\t\t\t\tif(sensors[1] != null){\n\t\t\t\t\t\t//DOES THIS NEED TO BE A SWITCH CASE????\n\t\t\t\t\t\tevents.get(currentEvent).trigger(2, totalTime);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}break;\n\t\t\t}\n\t\t\tcase \"DNF\":{\n\t\t\t\tif (systemOn && eventRunning){ //IND only???\n\t\t\t\t\t//Sprint 1; \"next competitor to finish will not finish\"\n\t\t\t\t\tevents.get(currentEvent).didNotFinish();\n\t\t\t\t}break;\n\t\t\t}\n\t\t\tcase \"CLR\":{\n\t\t\t\tif (systemOn && eventRunning){ \n\t\t\t\t\t//Sprint 2; \"clear NUM as the next competitor\" a.k.a. remove them from queue\n\t\t\t\t\tevents.get(currentEvent).removeRacer(commandNumber);\n\t\t\t\t}break;\n\t\t\t}\n\t\t\tcase \"SWAP\":{\n\t\t\t\tif (systemOn && eventRunning){ \n\t\t\t\t\t//Sprint 2; \"exchange next two competitors to finish in IND type\"\n\t\t\t\t\tevents.get(currentEvent).swap();\n\t\t\t\t}break;\n\t\t\t}\n\t\t\tcase \"PRINT\":{\n\t\t\t\t//if (systemOn && eventRunning){ \n\t\t\t\tif (systemOn && isPrinterOn){\n runData = \"\";\n\t\t\t\t\t//TODO: determine if printer is on; see \"Operation of Unit\" on p4\n\t\t\t\t\teventPrintLines = events.get(currentEvent).print(totalTime);\n\t\t\t\t\t//verify passed: System.out.println(eventPrintLines[0]);\n\t\t\t\t\t//j = getPrinterStartTime/Location, however we determine that\n\t\t\t\t\tfor(int j = 0; j < eventPrintLines.size(); j++){\n runData += eventPrintLines.get(j);\n runData += \"\\n\";\n\t\t\t\t\t}\n log.logRun(runData,commandNumber);\n\t\t\t\t}\n break;\n\t\t\t}\n case \"PRINTPWR\":{\n if(isPrinterOn){\n isPrinterOn = false;\n }else{\n isPrinterOn = true;\n }\n break;\n }\n\t\t\tcase \"EXPORT\":{\n\t\t\t\tif (systemOn){\n\t\t\t\t\tGson g = new Gson();\n\t\t\t\t\ttry{\n\t\t\t\t\t\tBufferedWriter writer = new BufferedWriter(new FileWriter(\"Export\"+commands[1]+\".json\"));\n\t\t\t\t\t\twriter.write(g.toJson(events.get(currentEvent)));\n\t\t\t\t\t\twriter.close();\n\t\t\t\t\t}catch(Exception IOException){\n\t\t\t\t\t\tSystem.out.println(\"Export in chronotimer failure\");\n\t\t\t\t\t}\n\t\t\t\t}break;\n\t\t\t}\n\t\t\tcase \"ENDRUN\":{\n\t\t\t\tif (systemOn && eventRunning){\n\t\t\t\t\teventRunning = false;\n runData = \"\";\n eventPrintLines = events.get(currentEvent).endRun(totalTime);\n for(int j = 0; j < eventPrintLines.size(); j++){\n runData += eventPrintLines.get(j);\n runData += \"\\n\";\n System.out.println(eventPrintLines.get(j));\n }\n log.logRun(runData);\n sendData(getJSON());\n\t\t\t\t} break;\n\t\t\t}\n\n\n\t\t\tcase \"NEWRUN\":{\n\t\t\t\tif (systemOn && !eventRunning){\n eventRunning = true;\n// if ( events.get(currentEvent).getClass().equals(PARIND.class)){\n// currentEvent++;\n// events.add(new PARIND(sysTime, log));\n// } else {\n// currentEvent++;\n// events.add(new Event(sysTime, log));\n// }\n // increment run number\n events.get(currentEvent).newRun();\n\t\t\t\t}\n break;\n\t\t\t}\n\t\t\tcase \"EXIT\":{\n\t\t\t\tSystem.exit(0);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "8bbfb22d90a94eab1c42f9fef0d50315", "score": "0.48149228", "text": "@Test\r\n \tpublic void shouldAllowTwoTasksToRunConcurrently() throws Exception {\r\n \t\tSchedulerService schedulerService = Context.getSchedulerService();\r\n \t\t\r\n \t\tTaskDefinition t1 = new TaskDefinition();\r\n \t\tt1.setId(1);\r\n \t\tt1.setStartOnStartup(false);\r\n \t\tt1.setStartTime(null);\r\n \t\tt1.setTaskClass(ExecutePrintingTask.class.getName());\r\n \t\tt1.setProperty(\"id\", \"TASK-1\");\r\n \t\tt1.setProperty(\"delay\", \"400\"); // must be longer than t2's delay\r\n \t\t\r\n \t\tTaskDefinition t2 = new TaskDefinition();\r\n \t\tt2.setId(2);\r\n \t\tt2.setStartOnStartup(false);\r\n \t\tt2.setStartTime(null);\r\n \t\tt2.setTaskClass(ExecutePrintingTask.class.getName());\r\n \t\tt2.setProperty(\"id\", \"TASK-2\");\r\n \t\tt2.setProperty(\"delay\", \"100\"); // must be shorter than t1's delay\r\n \t\t\r\n \t\tschedulerService.scheduleTask(t1);\r\n \t\tThread.sleep(50); // so t2 doesn't start before t1 due to random millisecond offsets\r\n \t\tschedulerService.scheduleTask(t2);\r\n \t\tThread.sleep(600); // must be longer than t2's delay\r\n \t\tassertEquals(Arrays.asList(\"TASK-1\", \"TASK-2\", \"TASK-2\", \"TASK-1\"), outputForConcurrentTasks);\r\n \t}", "title": "" }, { "docid": "2307120a9c636ee4f82fc9f349576a1d", "score": "0.48145336", "text": "protected void setup() {\r\n // Получает начальные аргументы\r\n MyTask[] tasks = (MyTask[]) getArguments();\r\n if (tasks != null && tasks.length > 0) {\r\n \tMyTask task =tasks[0];\r\n \ttime = task.time;\r\n \tcomp=task.competences;\r\n \t\r\n\t\t\t// Напечатать приветственное сообщение\r\n\t\t\tString StartMes = \"Агент-задача\" + getAID().getName() + \"с \" + \" готова к выполнению.\\n\";\r\n\t\t\tStartMes += \"\\tвыполняется за \" + time + \" часов.\\n Для выполнения требуются компетенции:\";\r\n\t\t\tmark+=task.name+\",\";\r\n\t\t\tmark+=time.toString();\r\n\t\t\tfor(int i=0;i<comp.length;i++)\r\n\t\t\t{\r\n\t\t\t\tmark+=\",\"+Boolean.toString(comp[i]);\r\n\t\t\t\tif(comp[i])\r\n\t\t\t\t\tStartMes += \"\\t \" + i;\r\n\t\t\t}\r\n System.out.println( StartMes );\r\n // Add a TickerBehaviour that schedules a request to specialty agents every 5 seconds\r\n addBehaviour(new OneShotBehaviour(this) {\r\n//new TickerBehaviour(this, 5000) {\r\n @Override\r\n\t\t\tpublic void action(){\r\n if (!isParticipated) {\r\n System.out.println(getAID().getName() + \r\n\t\t\t\t\t\t\t\" ищет программиста с проходными компетенциями \");\r\n // Update the list of specialty agents\r\n DFAgentDescription template = new DFAgentDescription();\r\n ServiceDescription sd = new ServiceDescription();\r\n sd.setType(\"Programmer\");\r\n template.addServices(sd);\r\n try {\r\n DFAgentDescription[] result = DFService.search(myAgent, template);\r\n String Specialties = \"Задача \" + getAID().getName() + \" нашла следующих программистов:\\n\";\r\n Specialties += \"(\\n\";\r\n \r\n\t\t\t\t\t\t\tspecialtyAgents = new AID[result.length];\r\n for (int i = 0; i < result.length; ++i) {\r\n \tif(!\"Очень низкие (свойства)\".equals(specialtyAgents[i])) {\r\n specialtyAgents[i] = result[i].getName();\r\n Specialties += \"\\t\" + specialtyAgents[i].getName() + \"\\n\";\r\n \t}\r\n }\r\n\t\t\t\t\t\t\tSpecialties += \")\";\r\n\t\t\t\t\t\t\tif\t(specialtyAgents.length > 0)\r\n\t\t\t\t\t\t\t\tSystem.out.println(Specialties);\r\n } catch (FIPAException fe) {\r\n fe.printStackTrace();\r\n }\r\n myAgent.addBehaviour(new RequestPerformer());\r\n }\r\n }\r\n });\r\n addBehaviour(new GetSpecialtyResponse());\r\n\r\n } else {\r\n // Make the agent terminate\r\n System.out.println(\"Агент-задача не может быть выполненна (?) \" + getAID().getName() + \"\");\r\n doDelete();\r\n }\r\n }", "title": "" }, { "docid": "2cb2344a7db01556e0888af13208f072", "score": "0.48103634", "text": "void grandSlam(){\n mRuns += GRAND_SLAM;\n }", "title": "" }, { "docid": "97765891db88d017305bd2f4ccb2fe9d", "score": "0.47999522", "text": "@Override\n protected void execute() {\n Robot.COLLECTOR_SUBSYSTEM.moveCollector(-Robot.COLLECTOR_SUBSYSTEM.KCollecterSpeed);\n Robot.CARRIAGE_SUBSYSTEM.moveCarriage(Robot.CARRIAGE_SUBSYSTEM.KCarriageSpeedIn);\n Robot.LIFT_SUBSYSTEM.moveLift(0);\n }", "title": "" }, { "docid": "75d794db08b974d8ed413e45bc99c775", "score": "0.47981694", "text": "public void WrongCommand() {\n }", "title": "" }, { "docid": "e4e0c05dbe896a5dec1120724da1bcc8", "score": "0.47981143", "text": "protected void perAct() {\n\n\t}", "title": "" }, { "docid": "522c5cba1e192666eed70bc972a71ee3", "score": "0.4795761", "text": "public void autonomousInit() {\n autonomousCommand.start();\n }", "title": "" }, { "docid": "a745dd03aef7a6304175706360576ce8", "score": "0.47897413", "text": "private void setupSystemRooms() {\n\t\tthis.setMultipleRooms(\"single\", this.NUM_OF_SINGLE);\n\t\tthis.setMultipleRooms(\"double\", this.NUM_OF_DOUBLE);\n\t\tthis.setMultipleRooms(\"suite\", this.NUM_OF_SUITE);\n\t\tSystem.out.println(\"System Rooms have been created and added\");\n\t}", "title": "" }, { "docid": "8d6b28c1465cc4ce4b58e887e273d528", "score": "0.47894573", "text": "public void updateRunStart(Dependency dependency) {\n }", "title": "" }, { "docid": "ddb64227485969e0ed5c6d156b32522c", "score": "0.47666863", "text": "@Override\n\tpublic void autonomousInit() {\n\t\tm_autonomousCommand = m_chooser.getSelected();\n\n\t\t/*\n\t\t * String autoSelected = SmartDashboard.getString(\"Auto Selector\",\n\t\t * \"Default\"); switch(autoSelected) { case \"My Auto\": autonomousCommand\n\t\t * = new MyAutoCommand(); break; case \"Default Auto\": default:\n\t\t * autonomousCommand = new ExampleCommand(); break; }\n\t\t */\n\n\t\t// schedule the autonomous command (example)\n\t\tif (m_autonomousCommand != null) {\n\t\t\tm_autonomousCommand.start();\n\t\t\t\n\t\t}\n\t}", "title": "" }, { "docid": "9db87d9d1261e87f21d86e7b103cbf6c", "score": "0.476394", "text": "public void initDefaultCommand() {\n\t\t// BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=DEFAULT_COMMAND\n\n setDefaultCommand(new BallCheck());\n\n // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=DEFAULT_COMMAND\n\n\t\t// Set the default command for a subsystem here.\n\t\t// setDefaultCommand(new MySpecialCommand());\n\t}", "title": "" }, { "docid": "fcd822714c11c67544b86d59b6324041", "score": "0.47621545", "text": "public void autonomousInit() {\n // schedule the autonomous command (example)\n if (autonomousCommand != null) {\n autonomousCommand.start();\n }\n }", "title": "" }, { "docid": "6f58c594636d5a89c1551d1a9c89b972", "score": "0.47590366", "text": "@Override\n\tpublic void addCommands() {\n\n\t}", "title": "" }, { "docid": "88500883694251697142b787d88f0472", "score": "0.47482005", "text": "@Override\n\tpublic void autonomousInit() {\n\n mode = (int) autoChooser.getSelected();\n station = (int) autoChooser.getSelected();\n if (station == 1) {\n SmartDashboard.putNumber(\"Station\", 1);\n //autonomousCommand = new SwitchScoring();\n autonomousCommand = new ScaleScoring();\n } else if (station == 2) {\n SmartDashboard.putNumber(\"Station\", 2);\n autonomousCommand = new Station2Auto();\n // autonomousCommand = new CenterSwitchScoring();\n } else if (station == 3) {\n SmartDashboard.putNumber(\"Station\", 3);\n autonomousCommand = new SwitchScoringRight();\n } else if (station == 1678) {\n SmartDashboard.putNumber(\"Station\", 1678);\n autonomousCommand = new SwitchScoring118();\n } else if (station == 118) {\n SmartDashboard.putNumber(\"Station\", 118);\n autonomousCommand = new SwitchScoring118();\n }\n\n // String position = DriverStation.getInstance().getGameSpecificMessage();\n // int station = DriverStation.getInstance().getLocation();\n // if (position.length() > 0) {\n // if (station == 1) {\n /*\n * autonomousCommand = new Station1Auto(position, station); } else if (station\n * == 2) { autonomousCommand = new Station2Auto(position, station); } else if\n * (station == 3) { autonomousCommand = new Station3Auto(position, station); }\n * else { autonomousCommand = null; }\n */\n // }\n // autonomousCommand = new DriveForwardDistance(.6 , 200);\n // schedule the autonomous command (example)\n if (autonomousCommand != null)\n autonomousCommand.start();\n }", "title": "" }, { "docid": "6678dda4386becfcaf01eabf837598de", "score": "0.47424", "text": "@Override\n public Event execute() {\n Customer customer = null;\n try {\n AuthenticationToken token = this.authenticationService.findValidAuthenticationTokenForAUser(userId);\n customer = this.storeModelService.getCustomerById(customerId, token.getTokenId());\n Basket basket = this.storeModelService.getBasketOfACustomer(customer.getCustomerId(), token.getTokenId());\n double weight = calculateBasketWeight(basket);\n logger.info(\"Customer \" + customer.getFirstName() + \" with basket \" + basket.getBasketId() +\n \" is requesting assistance because the basket currently weighs \" + weight);\n InventoryLocation customerLocation = customer.getCustomerLocation();\n List<Robot> robots = this.storeModelService.getAllRobotsWithinAnAisle(customerLocation.getStoreId(),\n customerLocation.getAisleNumber(), token.getTokenId());\n logger.info(\"Robot \"+ robots.get(0) + \" assigned to help customer \" + customer.getFirstName() + \" to car\");\n Command command = new Command(\"Help customer \" + customer.getFirstName() + \" in aisle \" +\n customerLocation.getAisleNumber() + \" to get to his/her car\");\n logger.info(robots.get(0).listenToCommand(command));\n List<Turnstile> turnstiles = this.storeModelService\n .getAllTurnstilesWithinAnAisle(customer.getCustomerLocation().getStoreId(),\n customer.getCustomerLocation().getAisleNumber(), token.getTokenId());\n this.storeModelService.openTurnstiles(turnstiles, token.getTokenId());\n logger.info(\"The customer has already checked out at this point and turnstile\" +turnstiles.get(0)+\n \"is opening for customer to exit\");\n logger.info(\"Turnstile \" + turnstiles.get(1) + \" opening for assisting robot\");\n this.storeModelService.closeTurnstiles(turnstiles, token.getTokenId());\n logger.info(\"Turnstiles closed\");\n } catch (StoreException e) {\n logger.warning(\"Robot unable to assist customer \");\n } catch (AccessDeniedException e) {\n logger.warning(\"Authentication failed \" + e.getReason() + \" : \" + e.getFix());\n }\n return new Event(AssistCustomerCommand.class.getName());\n }", "title": "" }, { "docid": "5d19fbb4ec0eb0b3d803786ef424c8e5", "score": "0.4741859", "text": "@Override\n protected void execute(CommandEvent event){\n if (Floatzel.joke){\n // set the joke name to be the right thing\n if (event.getGuild().getSelfMember().getNickname().isEmpty()){\n event.getGuild().getSelfMember().modifyNickname(Floatzel.jokename).queue();\n } else if (!event.getGuild().getSelfMember().getNickname().equals(Floatzel.jokename)){\n event.getGuild().getSelfMember().modifyNickname(Floatzel.jokename).queue();\n }\n // then fake out and act like it cant do anything if its not an admin command\n if (event.isOwner()) {\n event.reply(\"Warning: executing command may cause space-time continuum rips. Proceed with caution!\");\n } else {\n event.getTextChannel().sendMessage(Utils.getCirnoText()).queue();\n return;\n }\n } else {\n // is the name still the joke name\n try {\n if (event.getGuild().getSelfMember().getNickname().isEmpty()) {\n event.getGuild().getSelfMember().modifyNickname(Floatzel.normalname).queue();\n } else if (event.getGuild().getSelfMember().getNickname().equals(Floatzel.jokename)) {\n event.getGuild().getSelfMember().modifyNickname(Floatzel.normalname).queue();\n }\n } catch (NullPointerException e){\n // just set to normal nick\n event.getGuild().getSelfMember().modifyNickname(Floatzel.normalname).queue();\n }\n\n }\n // split the arguments\n argsplit = event.getArgs().split(\"\\\\s+\");\n // store the event for the error catcher\n erevent = event;\n String uid = event.getMessage().getAuthor().getId();\n // check to see if its an admin only command\n if (adminCommand && !event.isOwner()){\n // is the user that is running it an admin?\n if (!isAdmin(uid)){\n event.getChannel().sendMessage(\"Error: You do not have permission to run this\").queue();\n return;\n }\n }\n try {\n cmdrun(event);\n } catch (Exception e){\n Error.Catch(e, event);\n }\n }", "title": "" }, { "docid": "5b194a3f598091d7be89eb09cae1f69f", "score": "0.47376597", "text": "void executeBackends(BipPackage pack, ComponentInstance instance) {\n logger.log(Level.FINEST, \"executeBackends\");\n for (Map.Entry<String, Backendable> abe_kv : abstract_backends\n .entrySet()) {\n Backendable backend = abe_kv.getValue();\n String backend_id = abe_kv.getKey();\n boolean dirty = false;\n \n try {\n if (backend.isEnabled()) {\n logger.log(Level.FINEST,\n \"Backend enabled : \" + backend_id);\n if (backend.canGenerateFromPackage()){\n startProfile(\"BACKEND->TYPES\");\n BackendStatus status = backend.generateFromPackage(pack);\n if (status.getStatus().equals(BackendStatusEnum.SUCCESS)){\n stopProfile(\"BACKEND->TYPES\");\n logger.log(Level.FINEST,backend_id + \n \" backend successfuly generated types for package\");\n } else {\n dirty = true;\n logger.log(Level.SEVERE, backend_id + \n \" backend failed to generate types for package\");\n }\n }\n if (!dirty && backend.canGenerateFromInstance()){\n if (instance != null) {\n startProfile(\"BACKEND->INSTANCE\");\n BackendStatus status = backend.generateFromInstance(instance);\n if (status.getStatus().equals(BackendStatusEnum.SUCCESS)){\n stopProfile(\"BACKEND->INSTANCE\");\n logger.log(Level.FINEST, backend_id +\n \" backend successfuly executed for instance\");\n } else {\n dirty = true;\n logger.log(Level.SEVERE, backend_id +\n \"Backend failed execution for instance\");\n }\n } else {\n logger.log(Level.FINEST,\n \"Backend can generate from instance, but no instance provided\");\n }\n }\n if (dirty){\n logger.log(Level.FINEST, \"Backend failed : \"\n + backend_id);\n } else {\n logger.log(Level.FINEST, \"Backend executed successfully : \"\n + backend_id);\n }\n } else {\n logger.log(\n Level.FINEST,\n \"Backend disabled, not executing it : \"\n + backend_id);\n }\n } catch (Exception e) {\n e.printStackTrace();\n bailOut(\"Problem when invoking the backend\", -1);\n }\n }\n }", "title": "" }, { "docid": "ec508a40da5b398dd5ac8da9f3d5d4b1", "score": "0.4737297", "text": "@Override\r\n public void initDefaultCommand() {\r\n // BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=DEFAULT_COMMAND\r\n\r\n\r\n // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=DEFAULT_COMMAND\r\n\r\n // Set the default command for a subsystem here.\r\n // setDefaultCommand(new MySpecialCommand());\r\n }", "title": "" }, { "docid": "25d73e626b73f7cb7d6290f73039dd75", "score": "0.47367644", "text": "public void initDefaultCommand() {\n \t\n // Set the default command for a subsystem here.\n //setDefaultCommand(new MySpecialCommand());\n }", "title": "" }, { "docid": "0be7fa899d9a7aee8ea77f8c74509877", "score": "0.47359815", "text": "public void initDefaultCommand() {\n\t\t// Set the default command for a subsystem here.\n\t\t// setDefaultCommand(new MySpecialCommand());\n\t\tsetDefaultCommand(new SimpleDrive());\n\n\t}", "title": "" }, { "docid": "6fab9e89934e5bdbf9dda2fe3bbc44ff", "score": "0.4735153", "text": "public static void main(String[] args) {\n // register SDHook as shutdown hook\n Runtime.getRuntime().addShutdownHook(new SDHook());\n\n // variable stores the input command\n String command = args[0];\n\n // if the current node is a bootstrap server\n if (command.equals(\"-b\")) {\n EmptyClocks = new ArrayList<>();\n try {\n InetAddress IP = InetAddress.getLocalHost();\n NodeName = IP.getHostName();\n NodeIP = IP.getHostAddress();\n bootstrap = NodeIP;\n } catch (UnknownHostException ex) {\n System.out.println(\"**********************************************\");\n System.out.println(\"Exception while Process Identification in Main\");\n System.out.println(\"**********************************************\");\n }\n // Start registry\n try {\n r = LocateRegistry.createRegistry(port);\n r.rebind(\"process\", new RicAg());\n\n } catch (RemoteException ex) {\n System.out.println(\"*****************************************\");\n System.out.println(\"Exception while Creating Registry in Main\");\n System.out.println(\"*****************************************\");\n }\n System.out.println(\"bootstrap server has started\");\n System.out.println(\"Public IP for bootstrap is: \" + NodeIP);\n Thread bootstrapthread = new Thread(new bootstraprunner());\n bootstrapthread.start();\n\n // if the current node is a critical section\n } else if (command.equals(\"-cs\")) {\n try {\n ra = new RicAg();\n } catch (RemoteException ex) {\n System.out.println(\"*******************************************************\");\n System.out.println(\"Exception while instantiating new RicAg object at Main.\");\n System.out.println(\"*******************************************************\");\n }\n\n //ID the process\n try {\n InetAddress IP = InetAddress.getLocalHost();\n NodeName = IP.getHostName();\n NodeIP = IP.getHostAddress();\n CSMachine = NodeIP;\n System.out.println(\"Name: \" + NodeName + \" IP: \" + NodeIP + \" bootstrapIP: \" + args[1]);\n } catch (UnknownHostException ex) {\n System.out.println(\"**********************************************\");\n System.out.println(\"Exception while Process Identification in Main\");\n System.out.println(\"**********************************************\");\n }\n\n // Start registry\n try {\n r = LocateRegistry.createRegistry(port);\n r.rebind(\"process\", new RicAg());\n\n } catch (RemoteException ex) {\n System.out.println(\"*****************************************\");\n System.out.println(\"Exception while Creating Registry in Main\");\n System.out.println(\"*****************************************\");\n }\n\n try {\n r = LocateRegistry.getRegistry(args[1], port);\n RIF B = (RIF) r.lookup(\"process\");\n B.imcsmachine(NodeIP);\n } catch (RemoteException | NotBoundException ex) {\n Logger.getLogger(RicAg.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n // if the current node is a new Process\n } else if (!command.equals(\"-cs\") && !command.equals(\"-b\")) {\n bootstrap = command;\n try {\n ra = new RicAg();\n } catch (RemoteException ex) {\n System.out.println(\"*******************************************************\");\n System.out.println(\"Exception while instantiating new RicAg object at Main.\");\n System.out.println(\"*******************************************************\");\n }\n\n //ID the process\n try {\n InetAddress IP = InetAddress.getLocalHost();\n NodeName = IP.getHostName();\n NodeIP = IP.getHostAddress();\n } catch (UnknownHostException ex) {\n System.out.println(\"**********************************************\");\n System.out.println(\"Exception while Process Identification in Main\");\n System.out.println(\"**********************************************\");\n }\n\n //initialize clock\n clock = new int[max_allowed_processes];\n for (int i = 0; i < clock.length; i++) {\n clock[i] = 0;\n }\n queue = new ArrayList<>();\n\n System.out.println(\"*** Process Identification Completed ***\");\n System.out.println(\"Process Name: \" + NodeName + \"\\nProcess IP: \" + NodeIP);\n\n // Start registry\n try {\n r = LocateRegistry.createRegistry(port);\n r.rebind(\"process\", new RicAg());\n\n } catch (RemoteException ex) {\n System.out.println(\"*****************************************\");\n System.out.println(\"Exception while Creating Registry in Main\");\n System.out.println(\"*****************************************\");\n }\n\n //bind to the system\n try {\n r = LocateRegistry.getRegistry(command, port);\n RIF B = (RIF) r.lookup(\"process\");\n NodeID = B.addme(NodeIP, NodeName);\n if (NodeID == 0) {\n System.out.println(\"Could not connect. Network already full\");\n System.out.println(\"ending process...\");\n System.exit(0);\n }\n } catch (RemoteException | NotBoundException ex) {\n Logger.getLogger(RicAg.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n //if node is not already the bootstrap server or the CS Machine, start scheduler handler and transaction handler threads.\n if (!NodeIP.equals(CSMachine) && !NodeIP.equals(bootstrap)) {\n Thread scheduler;\n Thread trans;\n try {\n scheduler = new Thread(new RicAg());\n scheduler.start();\n trans = new Thread(new Transactions());\n trans.start();\n } catch (RemoteException ex) {\n System.out.println(\"*************************************************************************\");\n System.out.println(\"Exception while Creating Scheduler and Transaction handler Thread in Main\");\n System.out.println(\"*************************************************************************\");\n }\n }\n }\n }", "title": "" }, { "docid": "5734eb6b9e83632302e23bcc5bd3c3a8", "score": "0.47329965", "text": "@Scheduled(cron = \"${app.scheduler.corn.mainSchedule}\")\n public void mainSchedule() {\n logger.info(\"Start scheduler mainSchedule.....\");\n try {\n // Get all enable jobs from table\n List<BchCfgJobList> listBchCfgJobList = bchCfgJobListService.findByEnableFlagOrderBySeqId(\"Y\");\n this.doJobProcess(listBchCfgJobList);\n } catch (Exception e) {\n logger.error(\"Scheduler mainSchedule failed!\", e);\n }\n }", "title": "" }, { "docid": "d0b28b1da25c90fb1744dd830b6d4479", "score": "0.47312126", "text": "public void initDefaultCommand() {\n\t\t// Set the default command for a subsystem here.\n\t\t//setDefaultCommand(new UpdateDriverImage());\n\t}", "title": "" }, { "docid": "7f35b57073f90830bb116568f22955d7", "score": "0.47299635", "text": "public Subsystems()\n {\n /**\n * Usage:\n *\n * EXAMPLE_SUBSYSTEM = new ExampleSubsystem();\n */\n }", "title": "" }, { "docid": "934198d31d6ff6a663ebc5c96722e4d4", "score": "0.4729265", "text": "@Test\n public void testDelayedServiceLifeCycleEvents()\n throws IOException, DSLException, InterruptedException, PackagingException {\n\n String slowgsc;\n if (ScriptUtils.isWindows()) {\n slowgsc = Resources.getResource(\"slowgsc/slowgsc.bat\").getPath();\n } else {\n slowgsc = Resources.getResource(\"slowgsc/slowgsc.sh\").getPath();\n }\n FileUtils.copyFileToDirectory(new File(slowgsc), new File(ScriptUtils.getBuildBinPath()));\n\n // before we install the service manipulate gsc.xml\n File gscXml = new File(ScriptUtils.getBuildPath() + \"/config/gsa/gsc.xml\");\n\n try {\n IOUtils.replaceTextInFile(gscXml.getAbsolutePath(), \"/bin/gsc.\", \"/bin/slowgsc.\");\n testApplicationInstallLifecycleLogs();\n } finally {\n IOUtils.replaceTextInFile(gscXml.getAbsolutePath(), \"/bin/slowgsc.\", \"/bin/gsc.\");\n }\n\n }", "title": "" }, { "docid": "9f3a0e515ddc4268619e2af2d5dde005", "score": "0.4727909", "text": "void registerExecutable(ExecutableCommand processor);", "title": "" }, { "docid": "a4af3520d3d4f9b8732d4d49383ff905", "score": "0.47270754", "text": "@Override\r\n public void autonomousInit() {\r\n visionSubSys.refresh();\r\n this.autonomousCommand = this.autonChooser.getSelected();\r\n\r\n if (this.autonomousCommand != null) {\r\n this.autonomousCommand.start();\r\n }\r\n }", "title": "" }, { "docid": "92b1ff31a9c97c0176edb2f2b294a6a1", "score": "0.47252426", "text": "@Override\n\tpublic void onCommand(String[] labels, CommandSender sender, String[] args) {\n\t\tsender.sendMessage(\"sub!\");\n\t\t\n\t}", "title": "" }, { "docid": "39d747f7a7517e2f59b7569609aa3e5f", "score": "0.47250223", "text": "public AutonomousCommand() {\n requires(Robot.drivetrainSubsystem);\n // Add Commands here:\n // e.g. addSequential(new Command1());\n // addSequential(new Command2());\n // these will run in order.\n\n ArrayList<HolonomicDriveSignal> driveSequence = DrivetrainSubsystem.readDriveRecording(\"/home/lvuser/driveSequences/driveStraight.log\", true);\n \n AutonomousDriveCommand autonomousDriveCmd = new AutonomousDriveCommand(driveSequence, 13);\n addSequential(autonomousDriveCmd);\n\n\n //DriveCommand driveCommand = new DriveCommand(translation, rotation, fieldOriented);\n\n // To run multiple commands at the same time,\n // use addParallel()\n // e.g. addParallel(new Command1());\n // addSequential(new Command2());\n // Command1 and Command2 will run in parallel.\n\n // A command group will require all of the subsystems that each member\n // would require.\n // e.g. if Command1 requires chassis, and Command2 requires arm,\n // a CommandGroup containing them would require both the chassis and the\n // arm.\n }", "title": "" }, { "docid": "a7890f20b6945caca3992ddcdc041b54", "score": "0.47231922", "text": "public void robotInit() {\n // instantiate the command used for the autonomous period\n \n //Chooser for debug mode\n debugModeChooser = new SendableChooser();\n debugModeChooser.addDefault(\"Normal Mode\", DebugMode.NORMAL);\n debugModeChooser.addObject(\"Debug Mode\", DebugMode.DEBUG);\n SmartDashboard.putData(\"Debug Mode Chooser\", debugModeChooser);\n \n // Chooser for autonomous modes.\n autoChooser = new SendableChooser();\n autoChooser.addDefault(\"Shoot\", new AutonomousShootCommand());\n autoChooser.addObject(\"Shoot then Move\", new AutonomousShootMoveCommand());\n SmartDashboard.putData(\"Autonomous Mode Chooser\", autoChooser);\n \n // Chooser for climb modes.\n climbModeChooser = new SendableChooser();\n climbModeChooser.addDefault(\"Automatic climb\", ClimbMode.AUTOMATIC);\n climbModeChooser.addObject(\"Manual climb\", ClimbMode.MANUAL);\n SmartDashboard.putData(\"Climb Mode chooser\", climbModeChooser);\n \n // Chooser for driver modes.\n driveModeChooser = new SendableChooser();\n driveModeChooser.addDefault(\"Linear Drive\",DriveMode.LINEAR);\n driveModeChooser.addObject(\"Ramped Drive\",DriveMode.RAMPED);\n driveModeChooser.addObject(\"Square Drive\",DriveMode.SQUARE);\n driveModeChooser.addObject(\"Demo Drive Mode\", DriveMode.DEMO);\n SmartDashboard.putData(\"Drive Mode\", driveModeChooser);\n \n // Initialize all subsystems\n CommandBase.init();\n //\n// compressorStart = new CompressorStartCommand();\n }", "title": "" }, { "docid": "23ddb4196c4ca260b9149e9ef9cf69e0", "score": "0.47221133", "text": "@Override\n public void testInit() {\n CommandScheduler.getInstance().cancelAll();\n }", "title": "" }, { "docid": "23ddb4196c4ca260b9149e9ef9cf69e0", "score": "0.47221133", "text": "@Override\n public void testInit() {\n CommandScheduler.getInstance().cancelAll();\n }", "title": "" }, { "docid": "177e9427f10c058c0e7157e6639917ff", "score": "0.4721845", "text": "public interface Manager {\n String processGarbageCommand(Waste garbage);\n\n String statusCommand();\n\n String changeManagementRequirement(double minEnergy, double minCapital, String type);\n}", "title": "" }, { "docid": "68efc8311eef7ff54e205bae9d1da1db", "score": "0.47218126", "text": "public void onEnable() {\r\n\t\tgetServer().getLogger().info(\"oEssentials enabled\");\r\n\t\r\n\t\tgetCommand(\"oEssentials\").setExecutor(new oEssentials());\r\n\t\tgetCommand(\"spectate\").setExecutor(new Spectate());\r\n\t\tgetCommand(\"mystats\").setExecutor(new mystats());\r\n\t\tgetCommand(\"mystatsgui\").setExecutor(new BETA());\r\n\t}", "title": "" }, { "docid": "40da74bab68e2bc0e331e64a43a255e3", "score": "0.47207677", "text": "protected abstract void createScheduler(AssemblyLine line);", "title": "" }, { "docid": "1002a77149b5310e12769e6d43117550", "score": "0.47170642", "text": "private void registerSystemIO(){\n }", "title": "" }, { "docid": "b93727958a4a2932505b16fa8bce79af", "score": "0.47105998", "text": "@Override\n public void doCommand(List<Command> commandList) {\n }", "title": "" }, { "docid": "b0dc4552240a9d80eece44b4c215c60b", "score": "0.47089314", "text": "public String executeRequestedTask(String command) {\n\t\tString output = \"This is place holder and please write your own implementation in derived class\";\n\n\t\treturn output;\n\t}", "title": "" }, { "docid": "b41904993fadfd70c397629c15c877e4", "score": "0.47082597", "text": "@Override\n public void autonomousInit() {\n autoStartTime = Timer.getFPGATimestamp();\n m_autonomousCommand = m_chooser.getSelected();\n\n /*\n * String autoSelected = SmartDashboard.getString(\"Auto Selector\", \"Default\");\n * switch(autoSelected) { case \"My Auto\": autonomousCommand = new\n * MyAutoCommand(); break; case \"Default Auto\": default: autonomousCommand = new\n * ExampleCommand(); break; }\n */\n\n // schedule the autonomous command (example)\n if (m_autonomousCommand != null) {\n m_autonomousCommand.start();\n }\n }", "title": "" }, { "docid": "66df5bbdc7a55f189b131e8e40884ae4", "score": "0.46976024", "text": "boolean run(UpdatingSystemExtensionContext context, List<DeploymentScript> scriptsToBeRun);", "title": "" }, { "docid": "930d1767828b57cf34f1dd5e3d4cb8bd", "score": "0.4697046", "text": "public void initDefaultCommand() {\n // BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=DEFAULT_COMMAND\n\n setDefaultCommand(new driveMecanum());\n\n // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=DEFAULT_COMMAND\n\n // Set the default command for a subsystem here.\n // setDefaultCommand(new MySpecialCommand());\n }", "title": "" } ]
5d2333e828d5def1aa42cb730d57eac6
Show 3 total pages.
[ { "docid": "16060029f737d8fc4884531ef9412d10", "score": "0.0", "text": "@Override\n public int getCount() {\n return 3;\n }", "title": "" } ]
[ { "docid": "043a4fb5fc4960a9cf7eef82ce87505a", "score": "0.66175514", "text": "public int getTotalPage();", "title": "" }, { "docid": "d3ad5bb5950f3e94aafa244237d23ff6", "score": "0.6305067", "text": "private void makeResultPage(int totalCount, int resultCount) {\n\n\t}", "title": "" }, { "docid": "b6179cd189822e394f751ad698693dab", "score": "0.6246396", "text": "int getPagination();", "title": "" }, { "docid": "76082b60c9ca570574be9238f3291aae", "score": "0.61439186", "text": "int getPageAll();", "title": "" }, { "docid": "76082b60c9ca570574be9238f3291aae", "score": "0.61439186", "text": "int getPageAll();", "title": "" }, { "docid": "12f2988293af2578b40df8a501b2c4ac", "score": "0.6092447", "text": "public int knownPageCount();", "title": "" }, { "docid": "c5fdd06d666a7edd04dc529228124847", "score": "0.6084122", "text": "public static void setTotal_pages(int pages)\n {\n totalPages = pages;\n }", "title": "" }, { "docid": "4a591f70a8d49ad617e2b97dfb777389", "score": "0.60754424", "text": "public int getPageCount();", "title": "" }, { "docid": "78557eac5609d67fb41f743024d13b5a", "score": "0.5989242", "text": "public void setPage(Integer page) { this.page = page; }", "title": "" }, { "docid": "1239f17ca6fbbe32fff8d528f541abf8", "score": "0.5971767", "text": "public void setPages (int pages)\r\n {\r\n this.pages = pages;\r\n }", "title": "" }, { "docid": "0b72c10e75ae2ce5c6b7fced34f86236", "score": "0.5947936", "text": "static int getPagesCount() {\n return pages;\n }", "title": "" }, { "docid": "7540bdacf6cd097a493274a660a27f48", "score": "0.59447634", "text": "@Test\n public void testPageNo3() {\n int totalCount = 100;\n\n Pagination<String> partData = getPartData(new Pagination(2, 10, totalCount));\n List<String> list = partData.getList();\n System.out.println(list);\n\n }", "title": "" }, { "docid": "62799aae6260fc876fab2d74d3df89c5", "score": "0.59407425", "text": "int getPageSize();", "title": "" }, { "docid": "62799aae6260fc876fab2d74d3df89c5", "score": "0.59407425", "text": "int getPageSize();", "title": "" }, { "docid": "62799aae6260fc876fab2d74d3df89c5", "score": "0.59407425", "text": "int getPageSize();", "title": "" }, { "docid": "62799aae6260fc876fab2d74d3df89c5", "score": "0.59407425", "text": "int getPageSize();", "title": "" }, { "docid": "62799aae6260fc876fab2d74d3df89c5", "score": "0.59407425", "text": "int getPageSize();", "title": "" }, { "docid": "62799aae6260fc876fab2d74d3df89c5", "score": "0.59407425", "text": "int getPageSize();", "title": "" }, { "docid": "62799aae6260fc876fab2d74d3df89c5", "score": "0.59407425", "text": "int getPageSize();", "title": "" }, { "docid": "62799aae6260fc876fab2d74d3df89c5", "score": "0.59407425", "text": "int getPageSize();", "title": "" }, { "docid": "62799aae6260fc876fab2d74d3df89c5", "score": "0.59407425", "text": "int getPageSize();", "title": "" }, { "docid": "62799aae6260fc876fab2d74d3df89c5", "score": "0.59407425", "text": "int getPageSize();", "title": "" }, { "docid": "62799aae6260fc876fab2d74d3df89c5", "score": "0.59407425", "text": "int getPageSize();", "title": "" }, { "docid": "9cbff72d4007cc719e0cebf9debb6284", "score": "0.58687454", "text": "public int getPageSize();", "title": "" }, { "docid": "9cbff72d4007cc719e0cebf9debb6284", "score": "0.58687454", "text": "public int getPageSize();", "title": "" }, { "docid": "2997be3d45a657bdded9e56c9797803e", "score": "0.5860033", "text": "public void setPages(int pages) {\n this.pages = pages;\n }", "title": "" }, { "docid": "db697b2ec1a74a207b9df79f77aa27ea", "score": "0.5829361", "text": "public int getPage();", "title": "" }, { "docid": "ba422ce1668e21130ebe6483533404ba", "score": "0.5791429", "text": "@Test\n public void pageing() {\n IPage<Book> bookIPage = bookService.pageing(4l,\"quantity\",1,3);\n List<Book> bookList = bookIPage.getRecords();\n for (Book book: bookList){\n System.out.println(book.toString());\n }\n System.out.println(\"总页数:\"+bookIPage.getPages());\n System.out.println(\"总记录数:\"+bookIPage.getTotal());\n System.out.println(\"当前页:\"+bookIPage.getCurrent());\n System.out.println(\"页显示行数:\"+bookIPage.getSize());\n }", "title": "" }, { "docid": "0efc31ac19e28fd19015b7bb5622c0d8", "score": "0.5768778", "text": "@Test\n public void testBasics() {\n System.out.println(\"getNumResults\");\n\n\n pager1 = new Pager(102, 10, 1);\n\n msgt(\"Test: 102 results, 10 per page, page 1\");\n assertEquals(true, pager1.isPagerNecessary());\n\n assertEquals(102, pager1.getNumResults());\n assertEquals(1, pager1.getPreviousPageNumber());\n assertEquals(2, pager1.getNextPageNumber());\n assertEquals(false, pager1.hasPreviousPageNumber());\n assertEquals(true, pager1.hasNextPageNumber());\n\n msg(\"page list: \" + Arrays.toString(pager1.getPageNumberList()));\n //assertEquals(new int[]{1, 2, 3, 4, 5}, pager1.getPageNumberList());\n assertEquals(1, pager1.getPageNumberList()[0]);\n assertEquals(5, pager1.getPageNumberList()[4]);\n\n assertEquals(1, pager1.getStartCardNumber());\n assertEquals(10, pager1.getEndCardNumber());\n\n pager1 = new Pager(102, 10, 6);\n msgt(\"Test: 102 results, 10 per page, page 6\");\n\n msg(\"page list: \" + Arrays.toString(pager1.getPageNumberList()));\n assertEquals(4, pager1.getPageNumberList()[0]);\n assertEquals(8, pager1.getPageNumberList()[4]);\n\n msgt(\"Test: 100 results, 10 per page, page 9\");\n pager1 = new Pager(100, 10, 9);\n msg(\"page list: \" + Arrays.toString(pager1.getPageNumberList()));\n assertEquals(6, pager1.getPageNumberList()[0]);\n assertEquals(10, pager1.getPageNumberList()[4]);\n\n msgt(\"Test: 100 results, 10 per page, page 10\");\n pager1 = new Pager(100, 10, 10);\n msg(\"page list: \" + Arrays.toString(pager1.getPageNumberList()));\n assertEquals(6, pager1.getPageNumberList()[0]);\n assertEquals(10, pager1.getPageNumberList()[4]);\n\n msgt(\"Test: 102 results, 10 per page, page 9\");\n pager1 = new Pager(102, 10, 9);\n msg(\"page list: \" + Arrays.toString(pager1.getPageNumberList()));\n assertEquals(7, pager1.getPageNumberList()[0]);\n assertEquals(11, pager1.getPageNumberList()[4]);\n\n /*\n pager1 = new Pager(102, 10, 5);\n assertEquals(3, pager1.getPageNumberList()[0]);\n\n pager1 = new Pager(102, 10, 7);\n msg(\"page list Pager(102, 10, 7): \" + Arrays.toString(pager1.getPageNumberList()));\n // assertEquals(4, pager1.getPageNumberList()[0]);\n\n pager1 = new Pager(102, 10, 10);\n // assertEquals(6, pager1.getPageNumberList()[0]);\n*/\n }", "title": "" }, { "docid": "f0d76043818824e6dee35d4906b785a2", "score": "0.576806", "text": "@Override\n public void onPageSelected(int position) {\n count=0;\n count=position+1;\n fragment_no_tv.setText(count+\"/\"+total);\n }", "title": "" }, { "docid": "d87ea4cae2b233227b8564ed5e4b7015", "score": "0.57495195", "text": "public int getPages()\r\n {\r\n return pages;\r\n }", "title": "" }, { "docid": "5d25a8b4f8cd7c08c0a6377f1e82923b", "score": "0.5739663", "text": "int getPage();", "title": "" }, { "docid": "5d25a8b4f8cd7c08c0a6377f1e82923b", "score": "0.5739663", "text": "int getPage();", "title": "" }, { "docid": "7cdd82b2c6408b0095b9152eccaf6219", "score": "0.5738964", "text": "int getPageNo();", "title": "" }, { "docid": "4adec0f493fff48496b0063a69b49195", "score": "0.57385373", "text": "Integer getPageSize();", "title": "" }, { "docid": "d97b112dc214486c8c81edf64029d910", "score": "0.5728539", "text": "protected int caculate(int count) {\n\t\tint pagesize = 5;\n\t\tint endPage;\n\t\tendPage = count / pagesize;\n\t\tif (count % pagesize != 0) {\n\t\t\tendPage++;\n\t\t}\n\t\treturn endPage;\n\t}", "title": "" }, { "docid": "f2425f6811c3ee2ef18b13275a8a9f96", "score": "0.5709301", "text": "void setNumberPerPage(int numberPerPage);", "title": "" }, { "docid": "fce3810e6546b86513255674124f1c22", "score": "0.56976265", "text": "public int getPageCount() {\n if (total == 0) {\n pageCount = 1;\n return pageCount;\n }\n boolean isZero = total % pageSize == 0;\n pageCount = total / pageSize;\n pageCount = isZero? pageCount : pageCount + 1;\n return pageCount;\n }", "title": "" }, { "docid": "1a91677322d27ff17a7965ac21e39eed", "score": "0.56875527", "text": "long getPageSize();", "title": "" }, { "docid": "c9745373e046e8e65fa818d83438fe9c", "score": "0.56805295", "text": "public int getPages() {\n\treturn pages;\n }", "title": "" }, { "docid": "dcb95405ce4b805d9a15167c45e9fcf0", "score": "0.5680468", "text": "public void setPageSize(int pageSize);", "title": "" }, { "docid": "9e4b8e2c76df85d1cd91b767c5a11fcf", "score": "0.5652302", "text": "public int getPages() {\n return pages;\n }", "title": "" }, { "docid": "102bf9f1d84ec97b6fe820f8b3f35935", "score": "0.5614468", "text": "public T forPage(int page, int perPage);", "title": "" }, { "docid": "a3c0d03d319120e616502967de89aed1", "score": "0.56060207", "text": "public int getTotalPages() {\n return totalPages;\n }", "title": "" }, { "docid": "d2b02b4f4f8718e51ef300c17b357672", "score": "0.5582592", "text": "void print(int numPages);", "title": "" }, { "docid": "172f2aae70deee4c34bea9e2b5e92c73", "score": "0.55717564", "text": "public static void main(String[] args) {\n\t\tSystem.out.println(pageCount(6, 5));\n\t}", "title": "" }, { "docid": "85d7d17164c2d9d2e5ce8af8bbac50e7", "score": "0.5571011", "text": "@Override\n public int getCount() {\n return PAGE_COUNT;\n }", "title": "" }, { "docid": "4658cb1648449df7bfce38963a747598", "score": "0.5569459", "text": "T updatePagesByTotalCount(int totalCount, int pageSize, boolean silent);", "title": "" }, { "docid": "faec3cb9d4c9d42d1b545db0284e3320", "score": "0.55645066", "text": "T updatePagesByTotalCount(int totalCount, boolean silent);", "title": "" }, { "docid": "d8b18ee6449ad155784786edcbdc8c06", "score": "0.5561357", "text": "T updatePagesByTotalCount(int totalCount);", "title": "" }, { "docid": "fa3d6c885b292cbfde5ae5b6bf2c2072", "score": "0.55555594", "text": "public abstract void onLoadMore(int page, int totalItemsCount);", "title": "" }, { "docid": "fa3d6c885b292cbfde5ae5b6bf2c2072", "score": "0.55555594", "text": "public abstract void onLoadMore(int page, int totalItemsCount);", "title": "" }, { "docid": "3ae46a8979ca56303113c20ecd293147", "score": "0.55496407", "text": "public void setPage(int value) {\n this.page = value;\n }", "title": "" }, { "docid": "e4433f93505471ee1344e5052137f1a0", "score": "0.55327904", "text": "public void testPageCount() throws Exception\n {\n SimpleReportingComponent rc = new SimpleReportingComponent();\n // create/set the InputStream\n FileInputStream reportDefinition = new FileInputStream(\"resource/solution/test/reporting/report.prpt\"); //$NON-NLS-1$\n rc.setReportDefinitionInputStream(reportDefinition);\n rc.setOutputType(\"text/html\"); //$NON-NLS-1$\n\n // turn on pagination, by way of input (typical mode for xaction)\n HashMap<String, Object> inputs = new HashMap<String, Object>();\n inputs.put(\"paginate\", \"true\"); //$NON-NLS-1$ //$NON-NLS-2$\n inputs.put(\"accepted-page\", \"0\"); //$NON-NLS-1$ //$NON-NLS-2$\n rc.setInputs(inputs);\n\n FileOutputStream outputStream = new FileOutputStream(\"/tmp/\" + System.currentTimeMillis() + \".html\"); //$NON-NLS-1$ //$NON-NLS-2$\n rc.setOutputStream(outputStream);\n\n // execute the component\n assertTrue(rc.execute());\n\n // make sure this report has 8 pages (we know this report will produce 8 pages with sample data)\n assertEquals(8, rc.getPageCount());\n }", "title": "" }, { "docid": "17730caab7788e183ad064cc69685a60", "score": "0.5530396", "text": "private int getNumberPages() {\n return model.getNumberPages();\n }", "title": "" }, { "docid": "cc652fc068633622e9f48fbfbdab4273", "score": "0.5520507", "text": "public void setNumberOfPage(Integer numberOfPage) {\n this.numberOfPage = numberOfPage;\n }", "title": "" }, { "docid": "e193599c484ed4caf624ff00e807d47d", "score": "0.55185336", "text": "public void setPageSize(Integer pageSize) { this.pageSize = pageSize; }", "title": "" }, { "docid": "0645029e471cbfa4f0d017ea1fd7e94d", "score": "0.54977304", "text": "public int pageCount() {\n return (itemCount()/itemsPerPage)+1;\n }", "title": "" }, { "docid": "9d1f5bf984f21ff27abc36f30d406665", "score": "0.54954225", "text": "int getPageNum();", "title": "" }, { "docid": "78f1457f097b7b6dab4b2acb2c4e4a8a", "score": "0.54948765", "text": "public void setPages(Integer pages) {\n\t\tthis.pages = pages;\n\t}", "title": "" }, { "docid": "1ac6810fc07a4b80668b6bd634856828", "score": "0.54937255", "text": "@Test\n public void testPageNo2() {\n int totalCount = 100;\n\n Pagination<String> partData = getPartData(new Pagination(2, 10, totalCount));\n List<String> list = partData.getList();\n System.out.println(list);\n\n }", "title": "" }, { "docid": "dc87c6ec3f8aeda4dac88ec0d9849e76", "score": "0.54922485", "text": "@Override\r\n\tpublic int allCountPassage(String classify) {\n\t\t\t\tString classify2 = this.getClassify(classify);//获得数据库中相应类别所对应的名称\r\n\t\t\t\t\r\n\t\t\t\tint allCount;\r\n\t\t\t\tint Allpage=0;\r\n\t\t\t\tif(classify2.equals(\"所有\")){\r\n\t\t\t\t\tallCount=passdao.allcountByPublish();\r\n\t\t\t\t}else{\t\r\n\t\t\t\t\r\n\t\t\t\t\t allCount = passdao.allcountpassageByPublish(classify2);//调用dao层的方法获得文章的所有数量\r\n\t\t\t\t\t// 定义页码数量\r\n\t\t\t\t\t//定义 i,j临时变量算出到底页码数量为多少\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tint i=allCount/10;\r\n\t\t\t\tint j=allCount%10;\r\n\t\t\t\tif(j!=0){\r\n\t\t\t\t\tAllpage=i+1;\r\n\t\t\t\t}else{\r\n\t\t\t\t\tAllpage=i;\r\n\t\t\t\t}\r\n\t\t\t\treturn Allpage;\r\n\t}", "title": "" }, { "docid": "8cb5e980113d807f080dbbef1038ba83", "score": "0.54899776", "text": "long getPageNumber();", "title": "" }, { "docid": "6716054941230a9f96c301b8f710ad73", "score": "0.54808253", "text": "@Override\n public int getCount() {\n return PAGE_COUNT;\n }", "title": "" }, { "docid": "6716054941230a9f96c301b8f710ad73", "score": "0.54808253", "text": "@Override\n public int getCount() {\n return PAGE_COUNT;\n }", "title": "" }, { "docid": "415ea570fe54417b5ba064bd43b58972", "score": "0.5478048", "text": "Integer getPage();", "title": "" }, { "docid": "e6541f08d06cc02a9d051a0f958391f2", "score": "0.5475257", "text": "void setPageSize(Integer value);", "title": "" }, { "docid": "0e5c1d651daba5c940eb49765d420d38", "score": "0.5469879", "text": "@Override\n\tpublic int getTotalPagesNorth() {\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "d4cf2a93547648e1dd562d033f5a00e9", "score": "0.5469667", "text": "@Override\n\tpublic int getCount() {\n\t\treturn mPages.size();\n\t}", "title": "" }, { "docid": "947380a25ccd726ad915ad7d7d6905d2", "score": "0.5459062", "text": "public int getTotalPageNumber() {\n if (totalPageNumber < 0) {\n totalPageNumber = 0;\n for (PageConfig pageConfig : getPages()) {\n if (pageConfig.showPageNumber()) {\n totalPageNumber++;\n } else {\n break;\n }\n }\n }\n return totalPageNumber;\n }", "title": "" }, { "docid": "eb9add1f62010f443a4ba51fac7c6f91", "score": "0.54504144", "text": "public int getPageCount() \r\n {\n return m_countPage; \r\n }", "title": "" }, { "docid": "42ae11b98a09f0be1a57d8f8f76c3ca7", "score": "0.54494745", "text": "@XmlAttribute\n public long getTotalPages() {\n long pages = total / pageSize;\n long remainder = total % pageSize;\n pages += remainder == 0 ? 0 : 1;\n return pages;\n }", "title": "" }, { "docid": "d9efd58138d42d8ed6d71fdb1d12b06b", "score": "0.5444276", "text": "public void showPages(int p, int s) {\n\t\tPage<Product> page = productRepository.findAll(PageRequest.of(p, s));\n\t\tpage.getContent().stream().map(Product::getName).forEach(System.out::println);\n\t}", "title": "" }, { "docid": "6e88897da80807484b6575cf65abaf45", "score": "0.5434075", "text": "public void setPages(int numPages) {\n\tpages = numPages;\n }", "title": "" }, { "docid": "30c4903918cad7bb3169c35b27dff5cf", "score": "0.5430939", "text": "int findTotalPages(int pageSize) throws DAOException;", "title": "" }, { "docid": "30c4903918cad7bb3169c35b27dff5cf", "score": "0.5430939", "text": "int findTotalPages(int pageSize) throws DAOException;", "title": "" }, { "docid": "9f6c6037da477df84857845a440a2c47", "score": "0.5426758", "text": "@Test\n\tpublic void pdfPageCountTest() throws Exception {\n\t\tString aipfile = \"/data/asset-AIP-data/ITEM@123456789-8825.zip\";\n\t\tAIPDataItem aip = load(aipfile);\n\t\t\n\t\tAIPFileGroup original = aip.getAIPFileGroupDetail(NDLAssetType.ORIGINAL);\n\t\tbyte[] contents = aip.getBitstreamContentsByName(original.getName());\n\t\tSystem.out.println(\"Page count: \" + NDLDataUtils.getPDFPageCount(contents));\n\t}", "title": "" }, { "docid": "ce9ecb98adb324a895f49f98c3763f6a", "score": "0.54219997", "text": "T updatePagesByTotalCount(int totalCount, int pageSize);", "title": "" }, { "docid": "415e0eb038d638754f0ee338d9b4a3a0", "score": "0.53990793", "text": "@Override\n \tpublic int getCount() {\n \t\treturn pageViews.size();\n \t}", "title": "" }, { "docid": "eab0d6151c16f727c5cf5191b44e145f", "score": "0.5394197", "text": "@Test\n public void findAllWithGoodPageNumber() {\n Page<Computer> computers = computerDAO.findAllWithPaging(1, 5);\n assertTrue(computers.getResults().size() == 5);\n }", "title": "" }, { "docid": "cdf602d874af8b77f63bbf1b1231b029", "score": "0.53869176", "text": "public void ListaPages() {\r\n\t\tfor (Frame item : Memoria.values()) {\r\n\t\t\tif (item.Dados != null) {\r\n\t\t\t\tSystem.out.println(\"Página: \" + item.Page);\r\n\t\t\t\tSystem.out.println(\"Dirt: \" + item.Dirt);\r\n\t\t\t\tSystem.out.println(\"PinCount: \" + item.PinCount);\r\n\t\t\t\tSystem.out.println(\"Dados: \" + item.Dados);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "5e588cfeaa2e85f1eccbd708171556bc", "score": "0.53748626", "text": "public static void divisibleBy3(int num){\n\n for (int i = 0; i < 50; i++) {\n if (i % 3 == 0) {\n System.out.println(\"Frizz\");\n } else {\n System.out.println(i);\n }\n\n }\n }", "title": "" }, { "docid": "bc7b71a3073d44f393ff9657e6641ca4", "score": "0.53629595", "text": "public void setNoOfPages(int newNumber)\n {\n noOfPages = newNumber;\n }", "title": "" }, { "docid": "77da8198844abb3a19434315c4a489c5", "score": "0.53595734", "text": "public int getPageAll() {\n return pageAll_;\n }", "title": "" }, { "docid": "77da8198844abb3a19434315c4a489c5", "score": "0.53595734", "text": "public int getPageAll() {\n return pageAll_;\n }", "title": "" }, { "docid": "4fcb5ee3fbca3160037da5826c095ec7", "score": "0.5356764", "text": "public void setPage(int page) {\n this.page = page;\n }", "title": "" }, { "docid": "75e046680a0919c8435c99ef39490434", "score": "0.53554964", "text": "public static int getNumPages() {\n return NUM_PAGES;\n }", "title": "" }, { "docid": "9939bd55a2cd397ef047acc7f70c4ad2", "score": "0.5355135", "text": "public int totalPages(){\n \treturn pdDoc.getNumberOfPages();\n }", "title": "" }, { "docid": "624afb25028b0ece77c885129d8f46d5", "score": "0.5353123", "text": "int page();", "title": "" }, { "docid": "fb29253fd0326942b41f880e1cf757df", "score": "0.5350022", "text": "@Test\n public void testPageNo1() {\n int totalCount = 100;\n\n Pagination<String> partData = getPartData(new Pagination(1, 10, totalCount));\n List<String> list = partData.getList();\n System.out.println(\"list = \" + list);\n }", "title": "" }, { "docid": "56cb6a059f89101d54115da3cb8276a5", "score": "0.53357625", "text": "public void setPageCount(int pageCount) {\n this.pageCount = pageCount;\n }", "title": "" }, { "docid": "3be5bae3dc819b7a4a16919621862455", "score": "0.5326081", "text": "public String selectPage(){\n int currentPage = (int)Math.ceil(this.getCurrentClasificacion().getExistenciaCollection().indexOf(this.searchResult) / 5) + 1;\n this.setSearchMode(false); \n\n if(this.pgr.getPageIndex() > currentPage){\n int diff = this.pgr.getPageIndex() - currentPage;\n for(int i=1; i<=diff; i++){\n this.pgr.gotoPreviousPage(); \n }\n }\n else{\n int diff = currentPage - this.pgr.getPageIndex();\n for(int i=1; i<=diff; i++){\n this.pgr.gotoNextPage(); \n }\n }\n return \"done\";\n }", "title": "" }, { "docid": "20cc2d683e056a776163f63312afc2c5", "score": "0.53163946", "text": "int getNumPages() {\r\n\t\treturn numPages;\r\n\t}", "title": "" }, { "docid": "777e75d8c803d29876e5ca34bed7e37c", "score": "0.5313549", "text": "public int getTotalContact() {\n int listLimit;\n int total;\n int totalPage;\n listLimit = getContactRowCount();\n clickGoToLastPageBtn();\n // Has to used this method instead of goToPageBtn().size() since the maximum size of the goToPageBtn list is always 10\n totalPage = Integer.parseInt(goToPageBtn().get(goToPageBtn().size() - 1).getText().trim());\n total = getContactRowCount() + listLimit * totalPage;\n return total;\n }", "title": "" }, { "docid": "9350f61c4c0eada618cf13357a7db275", "score": "0.5313413", "text": "public void setNumberOfPages(int numberOfPages) \r\n\t{\r\n\t\tthis.numberOfPages = numberOfPages;\r\n\t}", "title": "" }, { "docid": "102ed331de0ae7516ffaf9aacd071c9c", "score": "0.5309745", "text": "public int countItemsDisplayed() throws InterruptedException \r\n\t{\r\n\t\tboolean items = true;\r\n\r\n\t\t/* Using HashMap to display the page number and the number of items displayed in each page. */\r\n\r\n\t\tHashMap<Integer, Integer> pageItems = new HashMap<Integer, Integer>();\r\n\r\n\t\tint pageno = 1;\r\n\t\tint totalItems=0 ;\r\n\r\n\t\tSystem.out.println(driver.getTitle());\r\n\t\t// Boolean variables \"items\" is true as long as the next page arrow is present along with page numbers.\r\n\r\n\t\twhile(items)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Page : \" + pageno);\r\n\t\t\tSystem.out.println(driver.getCurrentUrl());\t\t\t\r\n\t\t\tThread.sleep(7000);\t\t\t\t\t\t\t\t\t \r\n\t\t\tpageItems.put(pageno, countItems());\r\n\t\t\tSystem.out.println(pageItems.get(pageno));\r\n\t\t\ttotalItems=pageItems.get(pageno)+totalItems;\r\n\r\n\t\t\ttry\r\n\t\t\t{\r\n\t\t\t\t// finding the right arrow indicator \r\n\r\n\t\t\t\tdriver.findElement(By.xpath(\"//a[@class='arrowRight arrowButton paginationSpacer']\")).click();\r\n\t\t\t\tpageno = pageno + 1;\r\n\r\n\t\t\t}\r\n\t\t\tcatch(Exception e)\r\n\t\t\t{\r\n\t\t\t\titems=false;\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(totalItems);\r\n\t\treturn totalItems;\r\n\t}", "title": "" }, { "docid": "be53b02882ae42b30bedbcb354160699", "score": "0.53065157", "text": "@Test\n public void testPageNo0() {\n int totalCount = 100;\n\n Pagination<String> partData = getPartData(new Pagination(0, 10, totalCount));\n List<String> list = partData.getList();\n System.out.println(\"list = \" + list);\n }", "title": "" }, { "docid": "8f115f0ef238608c873ab030e6d4bcf7", "score": "0.5293898", "text": "public int getAllPageCount() {\r\n return calculateAllPageCount(_allRecordCount, _pageSize);\r\n }", "title": "" }, { "docid": "38c3a95da4826187a62ab9cb763c24c0", "score": "0.5280435", "text": "public long getRecordsPerPage();", "title": "" }, { "docid": "61b257c34f66a6d4849a36908a4fc72b", "score": "0.52739197", "text": "void setNumPages(int newPages) {\r\n\t\tthis.numPages = newPages; //Replaces current number of pages with parameter\r\n\t}", "title": "" }, { "docid": "9c5defb53f8c8f567463b701fc9f96ef", "score": "0.5273883", "text": "@Override\r\n\tpublic int getCount() {\n\t\tif (it.size() % 3 != 0) {\r\n\t\t\treturn (it.size() / 3 + 1 - 1);\r\n\t\t} else {\r\n\t\t\treturn (it.size() / 3 - 1);\r\n\t\t}\r\n\r\n\t}", "title": "" } ]
4daa78536163389d928de6d3da1a97f9
This function checks if the Date text is filled and if it is, stores the information.
[ { "docid": "4ea6f7a975727476f8f196d208ae07bf", "score": "0.72743297", "text": "private boolean checkDate() {\n EditText dateText = findViewById(R.id.datetext);\n if (dateText.getText() == null || dateText.getText().toString().length() == 0) {\n dateText.setError(\"Please enter date!\");\n return false;\n } else {\n eventDate = dateText.getText().toString();\n return true;\n }\n }", "title": "" } ]
[ { "docid": "4462d68f374ae7231ba8aafd63600c7c", "score": "0.626002", "text": "private boolean checkDate() {\n if (fld_birthDate.getEditor().getText().equals(\"\")) {\n lbl_error_birthdate.setText(\"must enter birth date\");\n lbl_error_birthdate.setVisible(true);\n return false;\n }\n else {\n lbl_error_birthdate.setVisible(false);\n }\n return true;\n }", "title": "" }, { "docid": "b9733570f5322643755671a2a41153c1", "score": "0.6222936", "text": "public boolean validate()\n {\n if (tv_datepick.getText().toString().matches(\"Date\"))\n {\n Toast.makeText(context, \"Specify Date\", Toast.LENGTH_SHORT).show();\n }\n else if (tv_timepick.getText().toString().matches(\"Time\"))\n {\n Toast.makeText(context, \"Specify Time\", Toast.LENGTH_SHORT).show();\n }\n else if (ed_note.getText().toString().matches(\"\"))\n {\n Toast.makeText(context, \"Enter Remark\", Toast.LENGTH_SHORT).show();\n }\n else\n {\n str_date = tv_datepick.getText().toString();\n str_time = str_time_pick ; //tv_timepick.getText().toString();\n str_remark = ed_note.getText().toString();\n\n return true;\n }\n\n return false;\n }", "title": "" }, { "docid": "db4a92ee9679c3d3193f66fa2c288afa", "score": "0.6135827", "text": "private Date getDob() {\n String date;\n System.out.println(constants.getDateMessage); \n do {\n date = scanner.nextLine();\n\t if (null == employeeController.isValidDate(date)) { \n\t System.out.println(constants.invalidDetails);\n\t date = \"invalidDate\";\n }\n } while(\"invalidDate\".equals(date));\n return employeeController.isValidDate(date);\n }", "title": "" }, { "docid": "35788ff223e52dddfd6f9a93423791a2", "score": "0.6094699", "text": "public void validateDate() {\n\t\trentsave.disableProperty().bind(\n\t\t\t (rentDate.valueProperty().isNull()).or(userID.textProperty().isEmpty()).or(NoOfDays.textProperty().isEmpty())\n\t\t\t);\n\t\t\n// \n\t}", "title": "" }, { "docid": "5c2c36f70728bbfcb566373659978f33", "score": "0.6087668", "text": "private void enterDate() {\n\t\ttheAppMgr.setSingleEditArea(res.getString(\"Enter date. (MM/DD/YYYY) or \\\"C\\\" for Calendar.\"), \"DATE\", new Date(), CMSMaskConstants.CALENDAR_MASK);\n\t}", "title": "" }, { "docid": "ea91679318974fdfd82b5be9f3d66c16", "score": "0.60723376", "text": "public static boolean validateDate(String text) {\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyMMdd\");\r\n //!! It's important to type exactly the date format, year y in lower-case,\r\n //!! month M in upper-case and day d in lower-case, otherwise, even if the \r\n //!! typed CNP is correct, the program outputs an invalid date for CNP !!!\r\n \r\n // by adding setLenient(false), SimpleDateFormat rejects invalid dates!\r\n sdf.setLenient(false);\r\n try {\r\n sdf.parse(text);\r\n return true;\r\n } catch (ParseException ex) {\r\n return false;\r\n }\r\n }", "title": "" }, { "docid": "004f6853b1fc3c0d5fc364739f60bb4b", "score": "0.60706115", "text": "private String validarFecha(){\n String fechaCaducidad = ((EditText)requireActivity().findViewById(R.id.textFechaExp)).getText().toString();\n if (fechaCaducidad.isEmpty()) return \"Ingrese una fecha de validez\";\n if (fechaCaducidad.length() == 5){\n //La tarjeta expira el ultimo dia del mes que esta impreso. Googleado.\n int mes = Integer.parseInt(fechaCaducidad.substring(0,2));\n int ano = Integer.parseInt(fechaCaducidad.substring(3,5));\n ano += 2000;\n\n if (mes > 12 || mes == 0) return \"Ingrese un mes válido\";\n\n int mesActual = Calendar.getInstance().get(Calendar.MONTH);\n int anoActual = Calendar.getInstance().get(Calendar.YEAR);\n\n if(ano > anoActual || (ano == anoActual && mes >= mesActual)){\n return \"OK\";\n }\n else return \"La tarjeta expiró\";\n\n }\n return \"Ingrese una fecha válida\";\n }", "title": "" }, { "docid": "d9c7849583aacd00f4ec19dd4cad1e8c", "score": "0.6032692", "text": "private void validationDate( String date) throws Exception {\n if ( date != null ) {\n if (!DateFormat.correctFormatDate(date)) {\n throw new Exception( \"It should be dd-mm-yyyy\" );\n } else if(!DateFormat.possibleDate(date)) {\n throw new Exception( \"Time travel ? nice\" );\n }\n }\n else {\n throw new Exception( \"You are not that old! You can lie you know...\" );\n }\n }", "title": "" }, { "docid": "591971f32665724ebf737d49432378ef", "score": "0.60091066", "text": "private static Date parseDate(String textDate) {\n\ttry {\n\treturn new SimpleDateFormat(\"dd-MMM-yyyy\").parse(textDate);\n\t} catch (Exception e) {\n\te.printStackTrace();\n\tthrow new RuntimeException(e);\n\t}\n\t}", "title": "" }, { "docid": "44696d72ecca39a9609a960055173496", "score": "0.59766924", "text": "protected JTextField getTextDate() {\n return textDate;\n }", "title": "" }, { "docid": "ccf1a7f134e06432dcc33c03ee933a5c", "score": "0.5970158", "text": "private void setPurchaseDate() throws IncorrectTypeException {\n try {\n stock.setPurchaseDate(purchaseDate.getText());\n } catch (IncorrectTypeException e) {\n JOptionPane.showMessageDialog(null, \"Please enter a valid Date in the format \"\n + \"\\\"yyyy-MM-dd\\\" for the amount!\");\n throw new IncorrectTypeException();\n }\n }", "title": "" }, { "docid": "6c3a2bf2e0253d04e51eb1c1c5f22454", "score": "0.5965184", "text": "private static java.util.Date buildDate(String text, boolean checkEmptyTime) {\n\t\ttext = StringUtils.getEmptyAsNull(text);\n\n\t\tif (text == null) {\n\t\t\treturn null;\n\t\t}\n\n\t\tint dateSeparatorCount = StringUtils.countChars(text, '/');\n\n\t\tCalendar c = new GregorianCalendar();\n\t\tint currentMillenium = (c.get(Calendar.YEAR) / 100) * 100;\n\t\tc.clear();\n\n\t\tint dateTimeSeparator = text.indexOf(' ');\n\n\t\tif (dateTimeSeparator == -1) {\n\t\t\tdateTimeSeparator = text.length();\n\t\t}\n\n\t\tboolean hasTime = false;\n\n\t\tif (dateSeparatorCount != 0) {\n\t\t\tif (dateSeparatorCount != 2) {\n\t\t\t\tthrow new IllegalArgumentException(\"Data invlida: \" + text);\n\t\t\t}\n\n\t\t\tString date = text.substring(0, dateTimeSeparator).trim();\n\n\t\t\tif (StringUtils.countChars(date, '/') != 2) {\n\t\t\t\tthrow new IllegalArgumentException(\"Data invlida: \" + text);\n\t\t\t}\n\n\t\t\t// Essa matriz possui o field do Calendar a ser setado e um valor de ajuste que este field dever sofrer.\n\t\t\t// no caso do ms esse valor -1 pois o ms ZERO-BASED (janeiro 0) no Calendar :-(\n\t\t\tint[][] dateComponents = { { Calendar.DATE, 0 }, { Calendar.MONTH, -1 }, { Calendar.YEAR, 0 } };\n\t\t\tint componentIndex = 0;\n\n\t\t\tStringTokenizer tokenizer = new StringTokenizer(date, \"/\");\n\n\t\t\twhile (tokenizer.hasMoreTokens()) {\n\t\t\t\tint val = Integer.parseInt(tokenizer.nextToken().trim());\n\t\t\t\tc.set(dateComponents[componentIndex][0], val + dateComponents[componentIndex++][1]);\n\t\t\t}\n\n\t\t\tif (c.get(Calendar.YEAR) < 1000) {\n\t\t\t\tc.add(Calendar.YEAR, currentMillenium);\n\t\t\t}\n\n\t\t\tString time = (dateTimeSeparator < text.length()) ? text.substring(dateTimeSeparator).trim() : \"\";\n\n\t\t\tif (time.length() > 0) {\n\t\t\t\tint timeSeparatorCount = StringUtils.countChars(time, ':');\n\n\t\t\t\tif (timeSeparatorCount == 0) {\n\t\t\t\t\ttime = insertTimeSeparator(time);\n\t\t\t\t}\n\n\t\t\t\tif (timeSeparatorCount > 2) {\n\t\t\t\t\tthrow new IllegalArgumentException(\"Hora invlida: \" + text);\n\t\t\t\t}\n\n\t\t\t\ttokenizer = new StringTokenizer(time, \":\");\n\n\t\t\t\tint[] timeComponents = { Calendar.HOUR_OF_DAY, Calendar.MINUTE, Calendar.SECOND };\n\t\t\t\tcomponentIndex = 0;\n\n\t\t\t\twhile (tokenizer.hasMoreTokens()) {\n\t\t\t\t\tint timeField = Integer.parseInt(tokenizer.nextToken().trim());\n\t\t\t\t\tc.set(timeComponents[componentIndex++],timeField);\n\t\t\t\t\thasTime = hasTime || timeField > 0;\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\thasTime = true;\n\t\t\tint timeSeparatorCount = StringUtils.countChars(text, ':');\n\n\t\t\tif (timeSeparatorCount > 2) {\n\t\t\t\tthrow new IllegalArgumentException(\"Hora invlida: \" + text);\n\t\t\t}\n\n\t\t\tStringTokenizer tokenizer = new StringTokenizer(text, \":\");\n\n\t\t\tint[] timeComponents = { Calendar.HOUR_OF_DAY, Calendar.MINUTE, Calendar.SECOND };\n\t\t\tint componentIndex = 0;\n\n\t\t\twhile (tokenizer.hasMoreTokens()) {\n\t\t\t\tc.set(timeComponents[componentIndex++], Integer.parseInt(tokenizer.nextToken().trim()));\n\t\t\t}\n\t\t}\n\n\t\tif(checkEmptyTime && !hasTime) {\n\t\t\treturn new OnlyDate(c.getTimeInMillis());\n\t\t} else {\n\t\t\treturn new Timestamp(c.getTimeInMillis());\n\t\t}\n\n\t}", "title": "" }, { "docid": "8b6e9719968799430c9a27fbfe57abef", "score": "0.5939164", "text": "private boolean validarData(String data){\r\n\t\tjava.text.DateFormat format = new java.text.SimpleDateFormat(\"dd/MM/yyyy\");\r\n\r\n\t format.setLenient(false);\r\n\r\n\t try {\r\n\t format.parse(data);\r\n\t } catch (java.text.ParseException e) {\r\n\t return false;\r\n\t }\t\t\r\n\t\treturn true;\r\n\t\t\r\n\t}", "title": "" }, { "docid": "615044a7a325fcf4400e83967af8a4bc", "score": "0.59284186", "text": "public boolean dateNotEmpty(String date);", "title": "" }, { "docid": "bf0ecc23f150fc2b5f0f61bb2c28a00d", "score": "0.5916261", "text": "private boolean checkDateValid(){\n boolean result = false;\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"dd/MM/yyyy\");\n Date date = new Date(this.SpinYear.getValue().toString()+\"/\"+this.SpinMonth.getValue().toString()+\"/\"+this.SpinDay.getValue().toString());\n if((this.SpinDay.getValue().toString()+\"/\"+this.SpinMonth.getValue().toString()+\"/\"+this.SpinYear.getValue().toString()).equals(dateFormat.format(date))) return true;\n else return result;\n }", "title": "" }, { "docid": "90aaae5207e54c290f0e69d7c89e5221", "score": "0.5904292", "text": "@Override\n public void onTextChanged() {\n if (!mExpirationDateEditText.isExpirationDateValid() &&\n mExpirationDateEditText.getText().length() != 0) {\n mExpirationDateEditText.setError(getString(R.string.date_not_valid));\n } else {\n mExpirationDateEditText.setError(null);\n }\n }", "title": "" }, { "docid": "8954c99e75313c3575f758ae29db8122", "score": "0.58905846", "text": "@Override\n public boolean onTouch(View v, MotionEvent event) {\n if (event.getAction() == MotionEvent.ACTION_UP){\n String curChose=getText().toString();\n if (curChose!=null && !curChose.isEmpty()){\n try {\n Date curDate=datePickerSDF.parse(curChose);\n setDate(curDate);\n\n } catch (ParseException e) {\n e.printStackTrace();\n }\n }\n mDate.show();\n return true;\n }\n\n return false;\n }", "title": "" }, { "docid": "a80305fa2f14e721c4f6ace87bfd7f59", "score": "0.58858144", "text": "private boolean checkForm() {\n boolean isPass = true;\n final String title = mTitle.getText().toString();\n final String desc = mDesc.getText().toString();\n\n if (title.isEmpty()) {\n mTitle.setError(getString(R.string.title_empty_error));\n isPass = false;\n } else {\n mTitle.setError(null);\n }\n\n if (title.length() > 20 || desc.length() > 150) isPass = false;\n\n if (!isEveryDay && startTime.compareTo(endTime) > 0) {\n isPass = false;\n Toast.makeText(_mActivity, R.string.date_error, Toast.LENGTH_SHORT).show();\n }\n return isPass;\n }", "title": "" }, { "docid": "ccbba8ca70d04e3bd8e31296c22a343e", "score": "0.5844985", "text": "public Date textToDate(String text) throws IllegalArgumentException {\n\t\n\t\tSimpleDateFormat useThisSDF = this.sdf3;\n\t \n\n\t\ttry {\n\t\t\tif(text.equals(\"\"))\n\t\t\t\treturn null;\n\t\t\t \n\t\t\t\t \n\t \n\t\t\treturn new Date(useThisSDF.parse(text).getTime());\n\t\t\t\n\t\t} catch (ParseException ex) {\n\t\t\tthrow new IllegalArgumentException(\"Could not parse date: \"\n\t\t\t\t\t+ ex.getMessage(), ex);\n\t\t}\n\t}", "title": "" }, { "docid": "88a7952028db8e0158fa02fa5e971d23", "score": "0.5831452", "text": "@Test\n public void testDateValidity()\n {\n assertEquals(true, textVali1.validDate(\"09/12/2019\"));\n assertEquals(false, textVali2.validDate(\"32/12/2019\"));\n assertEquals(false, textVali3.validDate(\"12/13/2019\"));\n assertEquals(false, textVali4.validDate(\"25/07/1989\"));\n assertEquals(true, textVali1.validDate(\"06/07/2020\"));\n assertEquals(false, textVali2.validDate(\"7/8/2019\"));\n assertEquals(true, textVali3.validDate(\"20/12/2021\"));\n assertEquals(false, textVali4.validDate(\"28/11/2008\"));\n assertEquals(false, textVali1.validDate(\"0912/2019\"));\n }", "title": "" }, { "docid": "b4a815619be41efc4c6d9c905bf8c01a", "score": "0.5783057", "text": "private void purchaseDateField() {\n JLabel purchaseDateLabel = new JLabel(\"Please enter purchase date in the format \\\"yyyy-MM-dd\\\":\");\n panel.add(purchaseDateLabel);\n purchaseDate = new JTextField();\n panel.add(purchaseDate);\n }", "title": "" }, { "docid": "6dcb201b33156f721fb9895d9952e5d9", "score": "0.5773874", "text": "public boolean checkDateWithSpace(String str) throws ServiceInvalidEntryException;", "title": "" }, { "docid": "2f6d788ac53e5625b65af5d023ad85a6", "score": "0.5751139", "text": "private static Date readDate(String message, String formatString, Boolean emptyPermitted) {\n Date inDate = new Date();\n boolean retry = true;\n while (retry) {\n System.out.print(message);\n String s = scanIn.nextLine().trim();\n if (s.isEmpty() && emptyPermitted) {\n return null;\n }\n try {\n inDate = new SimpleDateFormat(formatString).parse(s);\n retry = false;\n } catch (ParseException ex) {\n System.out.println(\"Παρακαλώ πληκτρολογείστε μια έγκυρη τιμή με τη μορφή \" + formatString);\n }\n }\n return inDate;\n }", "title": "" }, { "docid": "46eb315ec89a47c255db7820bb28d51a", "score": "0.5739755", "text": "public static void inputBookingDate(double kilometer,double totalWithGst) {\r\n\t\tScanner cs = new Scanner(System.in);\r\n\t\tSystem.out.println(\"Enter the Journey date(format yyyy/mm/dd): \");\r\n\t\tString journeyDateStr = cs.next(); //format yyyy-mm-dd\r\n\t\tif(BookingTime.bookingDateDisplay(journeyDateStr)) {\r\n\t\t\tinputBookingTime(kilometer, totalWithGst ,journeyDateStr); //Proceeds to next if date is valid\r\n\t\t}\r\n\t\telse {\r\n\t\t\tinputBookingDate(kilometer,totalWithGst); /*If the date is not valid asks for input\r\n\t\t\t until valid time is given*/ \r\n\t\t}\r\n\t}", "title": "" }, { "docid": "15888f12a868654695a3684781d94f10", "score": "0.57388264", "text": "private static Date scrapeService(HtmlPage page) {\n\t\tHtmlElement postedDate = (HtmlElement) page.getFirstByXPath(\"//div[@class='content']//*[contains(text(),'Date')]/parent::li\");\n\t\t\n\t\t// if else condition += postedDate.asText() != \"\"\n\t\tif (postedDate != null)\n\t\t\treturn parseDate(postedDate.asText().substring(postedDate.asText().indexOf(\": \") + 2));\n\t\telse\n\t\t\treturn null;\n\t}", "title": "" }, { "docid": "7d23046796b12c55a6d6572aba36d46d", "score": "0.56812143", "text": "public boolean isEmpty() {\r\n\t\tif (((JFormattedTextField) getDateEditor()).getText().equals(\"\")) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "f697fc84d690d5eb3031676a12a04544", "score": "0.5673482", "text": "public void onDateSet(DatePicker view, int year, int month, int day) {\n String dateMoin = day + \"/\" + (month + 1) + \"/\" + year;\n String initialSplit = dateMoin;\n String[] arr = initialSplit.split(\":\");\n String temp123 = arr[0].toString();\n String[] arr2 = temp123.split(\"/\");\n int dateRecieved = Integer.parseInt(arr2[0]);\n int monthRecieved = Integer.parseInt(arr2[1]);\n int yearRecieved = Integer.parseInt(arr2[2]);\n\n String TodaysDate = new SimpleDateFormat(\"dd-MM-yyyy\").format(new Date());\n String[] arr12 = TodaysDate.split(\"-\");\n int todaysDate = Integer.parseInt(arr12[0]);\n int todaysMonth = Integer.parseInt(arr12[1]);\n int todaysYear = Integer.parseInt(arr12[2]);\n\n passedTextView.setText(\"Select Date\");\n backUpTextView.setAlpha(0.0f);\n if (yearRecieved < todaysYear) {\n MoinUtils.getReference().showMessage(myContext, \"Please Select Date Ahead Of Today's Date\");\n } else {\n if (monthRecieved < todaysMonth) {\n MoinUtils.getReference().showMessage(myContext, \"Please Select Date Ahead Of Today's Date\");\n } else {\n if (monthRecieved == todaysMonth) {\n if (dateRecieved <= todaysDate) {\n MoinUtils.getReference().showMessage(myContext, \"Please Select Date Ahead Of Today's Date\");\n } else {\n backUpTextView.setAlpha(1.0f);\n passedTextView.setText(dateMoin);\n }\n } else {\n backUpTextView.setAlpha(1.0f);\n passedTextView.setText(dateMoin);\n }\n }\n }\n }", "title": "" }, { "docid": "d4dfd82df6cf1a2f86a5b63abc6af2e3", "score": "0.56448436", "text": "public boolean validarFechayHora(String text, String date) {\r\n boolean valido=true;\r\n String fechaSist[] = obtenerFecha(fecha+\"\").split(\"-\");\r\n String fechaCita[] = date.split(\"-\");\r\n String horaSist[] = obtenerHora(fecha+\"\").split(\":\");\r\n String horaCita[] = text.split(\":\");\r\n int horaSis=Integer.parseInt(horaSist[0]);\r\n int minSis=Integer.parseInt(horaSist[1]);\r\n int horaCit=Integer.parseInt(horaCita[0]);\r\n int minCit=Integer.parseInt(horaCita[1]);\r\n int yearSist=Integer.parseInt(fechaSist[0]);\r\n int monthSist=Integer.parseInt(fechaSist[1]);\r\n int daySist=Integer.parseInt(fechaSist[2]);\r\n int yearDate=Integer.parseInt(fechaCita[0]);\r\n int monthDate=Integer.parseInt(fechaCita[1]);\r\n int dayDate=Integer.parseInt(fechaCita[2]);\r\n if(yearDate<yearSist){\r\n showMessageDialog(null,\"Fecha no disponible\");\r\n valido=false;\r\n return valido;\r\n }\r\n if(yearDate==yearSist && monthDate<monthSist){\r\n showMessageDialog(null,\"Fecha no disponible\");\r\n valido=false;\r\n return valido;\r\n }\r\n if(yearDate==yearSist && monthDate==monthSist && dayDate<daySist){\r\n showMessageDialog(null,\"Fecha no disponible\");\r\n valido=false;\r\n return valido;\r\n }\r\n if(yearDate==yearSist && monthDate==monthSist && dayDate==daySist){\r\n //verificar la hora\r\n if(horaCit<horaSis){\r\n showMessageDialog(null,\"Fecha no disponible\");\r\n valido=false;\r\n return valido;\r\n }\r\n if(horaCit==horaSis && minCit<=minSis){\r\n showMessageDialog(null,\"Fecha no disponible\");\r\n valido=false;\r\n return valido;\r\n }\r\n }\r\n return valido;\r\n }", "title": "" }, { "docid": "b77c0ba382d675225b5697bbeca89004", "score": "0.56294537", "text": "public boolean invalidDate() {\n\n // if either is blank\n if((dueDate.length() == 0) ^ (dueTime.length() == 0)) return true;\n \n // if user entered both date and time\n if(dueDate.length() > 0 && dueTime.length() > 0) {\n Helper helper = new Helper();\n Date dueDateTime = helper.convertStringToDate(dueDate, dueTime);\n Date now = new Date();\n \n if (dueDateTime.getTime() <= now.getTime()) {\n return true;\n }\n\n // if (dueDateTime.before(now)) {\n // return true;\n // }\n }\n return false;\n }", "title": "" }, { "docid": "99b6407379dfee436759a2b6b791ecdb", "score": "0.5628818", "text": "public String checkIfValid() throws DukeException {\n int atIndex = input.indexOf(\" /at \");\n boolean containsAt = input.contains(\" /at \");\n boolean missingDate = true;\n if (atIndex >= 0) {\n missingDate = input.substring(input.indexOf(\" /at \")).length() == 5;\n }\n boolean missingTaskDescription = input.contains(\"event /at \");\n if (missingTaskDescription) {\n throw new DukeException(\"Where is your event description?!\");\n } else if (!containsAt || missingDate) {\n throw new DukeException(\"Oi, when is this event at??\");\n } else {\n try {\n boolean validDateFormat = Event.checkDateFormat(input.substring(atIndex + 5));\n Event task = new Event(input.substring(6, atIndex), input.substring(atIndex + 5));\n return task.toString();\n } catch (DukeException e) {\n throw new DukeException(e.getMessage());\n }\n }\n }", "title": "" }, { "docid": "96aa1fca4aa655874f626c0929774919", "score": "0.56227404", "text": "public boolean validateDOB(){\n if(datOfBirthTV.getText().toString().equals(\"\")){\n datOfBirthTV.setError(\"Missing date of birth field\");\n return false;\n }else{\n datOfBirthTV.setError(null);\n return true;\n }\n }", "title": "" }, { "docid": "3f9a740540e8ca3e587f76000ede33af", "score": "0.5607401", "text": "private static boolean isDate(String nextWord) {\n DateParser dateParser = new DateParser();\n return dateParser.tryParse(nextWord);\n }", "title": "" }, { "docid": "1c1a9577319178f84a4d18ae8797a4cf", "score": "0.5600347", "text": "@DISPID(2204)\r\n @PropGet\r\n boolean getTextDate();", "title": "" }, { "docid": "9e358e46eddd6ef033a3b22aa2289e7a", "score": "0.55966675", "text": "@Override\n public void parseToDate(String input) {\n try {\n if(input.contains(PARAM_DELIMIT_TO)){\n String[] dates = Parser.splitInput(input, PARAM_DELIMIT_TO);\n startDate = stringToDate.parse(dates[0].trim());\n endDate = stringToDate.parse(dates[1].trim());\n isDateString= 2;\n }else{\n startDate = stringToDate.parse(input.trim());\n isDateString= 1;\n }\n\n } catch (ParseException e) {\n isDateString= 0;\n }\n\n }", "title": "" }, { "docid": "3095ad4286d27f30271109357fe2c058", "score": "0.55808324", "text": "public String validate() {\n\t\t\tif (TimerHelper.isDayOff(date) || TimerHelper.isSaturdayOrSunday(date)) {\n\t\t\t\treturn \"Veuillez saisir un jour ouvré.\";\n\t\t\t}\n\t\t\treturn null;\n\t\t}", "title": "" }, { "docid": "3fd6d2ba6fb4c6a0ed46054d6c53695d", "score": "0.557859", "text": "public boolean checkDate(String date)\r\n {\r\n char d = date.charAt(0);\r\n if(Character.isDigit(d))\r\n {\r\n return true;\r\n }else\r\n {\r\n return false;\r\n }\r\n }", "title": "" }, { "docid": "75a80a098b84f9d3deeb68396365098f", "score": "0.55670494", "text": "private void setDate(String line){\n\t\tthis.date = line.substring(0, 10);\t\t\n\t}", "title": "" }, { "docid": "d8f6629f8be4107a811d667ccf12badf", "score": "0.5546501", "text": "public void setDate() {\n if (this.checkPermission() != PL.COORDINATOR)\n return;\n Scanner input = new Scanner(System.in);\n System.out.println(\"What would you like the new date of \" + this.getName() + \" to be? XX/XX/XXXX format.\");\n\n System.out.print(\"Day: \");\n int day = input.nextInt();\n System.out.print(\"Month: \");\n int month = input.nextInt();\n System.out.print(\"Year: \");\n int year = input.nextInt();\n this.date.setDay(day);\n this.date.setMonth(month);\n this.date.setYear(year);\n }", "title": "" }, { "docid": "8b04ce730fda8e4fbc3aecec62e23553", "score": "0.55207837", "text": "private void assignValues()\n\t{\n\t\t/*\n\t\t * v1.1 edit: Set this if to catch for null strings rather than use an\n\t\t * exception that would close the program\n\t\t */\n\t\tif (!dollarAmount.getText().isEmpty() && !yearAmount.getText().isEmpty() && !interestAmount.getText().isEmpty())\n\t\t{\n\t\t\toutputText();\n\t\t}\n\t\telse\n\t\t{\n\t\t\toutputValue.setText(\"One or more of your fields is blank!\");\n\t\t}\n\t}", "title": "" }, { "docid": "6747ab9a44f594b1431363878d5232c8", "score": "0.5510874", "text": "private void checkEmployeeInformation()\n {\n \n checkEmptyString(firstNameText.getText()); \n checkEmptyString(lastNameText.getText());\n checkEmptyString(genderText.getText());\n checkEmptyString(addressText.getText());\n checkEmptyString(phoneNumberText.getText());\n checkEmptyString(sinText.getText());\n checkEmptyString(yearText.getText());\n checkEmptyString(monthText.getText());\n checkEmptyString(dayText.getText());\n \n //try to parse text into int, catch exception\n try\n {\n checkInt(Integer.parseInt(sinText.getText())); \n }\n catch(Exception e)\n {\n checkInt(\"sin\",sinText.getText()); \n appendToFile(e);\n }\n \n try\n {\n checkInt(Integer.parseInt(dayText.getText())); \n }\n catch(Exception e)\n {\n checkInt(\"day\",dayText.getText()); \n appendToFile(e);\n }\n \n try\n {\n checkInt(Integer.parseInt(monthText.getText())); \n }\n catch(Exception e)\n {\n checkInt(\"month\",monthText.getText()); \n appendToFile(e);\n }\n \n try\n {\n checkInt(Integer.parseInt(yearText.getText())); \n }\n catch(Exception e)\n {\n checkInt(\"year\",yearText.getText()); \n appendToFile(e);\n } \n }", "title": "" }, { "docid": "9a9f2c5e90203bab65a7395e2b2ca779", "score": "0.5508995", "text": "private void verify_NFC_TAG() {\n //apply the date to variable todaysDate\n String todaysDate = getTodaysDate();\n boolean matchingDate = textView5.getText().toString().contains(todaysDate);\n if (matchingDate) {\n Toast.makeText(\n this,\n \"You are successfully signed in as 'Present' in the Tap4Register system!\",\n Toast.LENGTH_SHORT).show();\n //get students name\n // call the main function to register that student\n markAsPresent();\n } else {\n Toast.makeText(\n this, \"Something went wrong, tap again!\",\n Toast.LENGTH_SHORT).show();\n }\n }", "title": "" }, { "docid": "24bbe0b3bfff62063d3de93761aef6ab", "score": "0.5498251", "text": "private static String isDate(int idx, String[] text){\r\n String word = removePeriod(text[idx]);\r\n String valueToReturn = \"\";\r\n if (idx + 1 < text.length) {\r\n //date range case\r\n valueToReturn = isDateRange(idx, text);\r\n if (valueToReturn != \"\")\r\n return valueToReturn;\r\n\r\n if (isNumericValue(word)) {\r\n int val = Float.valueOf(word).intValue();\r\n if (val < 10)\r\n word = \"0\" + word;\r\n String month = getMonth(removePeriod(text[idx + 1]));\r\n if (Integer.valueOf(word) <= 31) {\r\n valueToReturn = month + \"-\" + word;\r\n } else { // is this else case really necessary??\r\n valueToReturn = word + \"-\" + month;\r\n }\r\n } else {\r\n String month = getMonth(word);\r\n String num = removePeriod(text[idx + 1]);\r\n int number = Integer.parseInt(num);\r\n if (number < 10)\r\n num = \"0\" + num;\r\n // maybe check that it is a valid month ??\r\n if (Integer.valueOf(num) <= 31) {\r\n valueToReturn = month + \"-\" + num;\r\n } else { // is this else case really necessary??\r\n valueToReturn = num + \"-\" + month;\r\n }\r\n }\r\n }\r\n return valueToReturn;\r\n }", "title": "" }, { "docid": "35ed4da6aa6ee41884e8964327ac1f88", "score": "0.54920375", "text": "public Boolean check_input_day(String day) {\n\t\tString d = \"\", m = \"\", y = \"\";\n\t\tBoolean valid = false;\n\n\t\tif (day.length() == 8) {\n\t\t\td = day.substring(0, 2);\n\t\t\tm = day.substring(2, 4);\n\t\t\ty = day.substring(4, 8);\n\t\t}\n\t\tif (day.length() == 10) {\n\t\t\td = day.substring(0, 2);\n\t\t\tm = day.substring(3, 5);\n\t\t\ty = day.substring(6, 10);\n\t\t}\n\t\tif ((day.length() == 8) || (day.length() == 10)) {\n\t\t\tint yy = Integer.parseInt(y);\n\t\t\tint mm = Integer.parseInt(m);\n\t\t\tint dd = Integer.parseInt(d);\n\t\t\tint du = yy % 4;\n\t\t\tif ((!d.equals(\"00\")) && (!m.equals(\"00\")) && (!y.equals(\"0000\"))) {\n\n\t\t\t\tif ((m.equals(\"01\")) || (m.equals(\"03\")) || (m.equals(\"05\"))\n\t\t\t\t\t\t|| (m.equals(\"07\")) || (m.equals(\"08\"))\n\t\t\t\t\t\t|| (m.equals(\"10\")) || (m.equals(\"12\"))) {\n\t\t\t\t\tif (dd > 31) {\n\t\t\t\t\t\tApplication.getApp().showMessageDialog(\n\t\t\t\t\t\t\t\tMessageDialog.TYPE_ERROR\n\t\t\t\t\t\t\t\t\t\t+ MessageDialog.CONTROLS_OK,\n\t\t\t\t\t\t\t\t\"Không có ngày này trong tháng..\" + m + \"/\"\n\t\t\t\t\t\t\t\t\t\t+ yy + \"..@@@@\");\n\t\t\t\t\t\tvalid = false;\n\t\t\t\t\t} else\n\t\t\t\t\t\tvalid = true;\n\t\t\t\t}\n\t\t\t\tif ((m.equals(\"04\")) || (m.equals(\"06\")) || (m.equals(\"09\"))\n\t\t\t\t\t\t|| (m.equals(\"11\"))) {\n\t\t\t\t\tif (dd > 30) {\n\t\t\t\t\t\tApplication.getApp().showMessageDialog(\n\t\t\t\t\t\t\t\tMessageDialog.TYPE_ERROR\n\t\t\t\t\t\t\t\t\t\t+ MessageDialog.CONTROLS_OK,\n\t\t\t\t\t\t\t\t\"Không có ngày này trong tháng..\" + m + \"/\"\n\t\t\t\t\t\t\t\t\t\t+ yy + \"..@@@@\");\n\t\t\t\t\t\tvalid = false;\n\t\t\t\t\t} else\n\t\t\t\t\t\tvalid = true;\n\t\t\t\t}\n\t\t\t\tif (m.equals(\"02\")) {\n\t\t\t\t\tif (du != 0) {\n\t\t\t\t\t\tif (dd > 28) {\n\t\t\t\t\t\t\tApplication.getApp().showMessageDialog(\n\t\t\t\t\t\t\t\t\tMessageDialog.TYPE_ERROR\n\t\t\t\t\t\t\t\t\t\t\t+ MessageDialog.CONTROLS_OK,\n\t\t\t\t\t\t\t\t\t\"Không có ngày này trong tháng..\" + m + \"/\"\n\t\t\t\t\t\t\t\t\t\t\t+ yy + \"..@@@@\");\n\t\t\t\t\t\t\tvalid = false;\n\n\t\t\t\t\t\t} else\n\t\t\t\t\t\t\tvalid = true;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (dd > 29) {\n\t\t\t\t\t\t\tApplication.getApp().showMessageDialog(\n\t\t\t\t\t\t\t\t\tMessageDialog.TYPE_ERROR\n\t\t\t\t\t\t\t\t\t\t\t+ MessageDialog.CONTROLS_OK,\n\t\t\t\t\t\t\t\t\t\"Không có ngày này trong tháng..\" + m + \"/\"\n\t\t\t\t\t\t\t\t\t\t\t+ yy + \"..@@@@\");\n\t\t\t\t\t\t\tvalid = false;\n\t\t\t\t\t\t} else\n\t\t\t\t\t\t\tvalid = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif ((mm > 12) || yy < 1900) {\n\t\t\t\t\tApplication.getApp().showMessageDialog(\n\t\t\t\t\t\t\tMessageDialog.TYPE_ERROR\n\t\t\t\t\t\t\t\t\t+ MessageDialog.CONTROLS_OK,\n\t\t\t\t\t\t\t\"Ngày tháng năm không tồn tại..@@@@@\");\n\t\t\t\t\tvalid = false;\n\t\t\t\t} else\n\t\t\t\t\tvalid = true;\n\t\t\t} else {\n\t\t\t\tApplication.getApp().showMessageDialog(\n\t\t\t\t\t\tMessageDialog.TYPE_ERROR + MessageDialog.CONTROLS_OK,\n\t\t\t\t\t\t\"Ngày tháng năm không tồn tại..@@@@\");\n\t\t\t\tvalid = false;\n\t\t\t}\n\t\t} else {\n\t\t\tApplication\n\t\t\t\t\t.getApp()\n\t\t\t\t\t.showMessageDialog(\n\t\t\t\t\t\t\tMessageDialog.TYPE_ERROR\n\t\t\t\t\t\t\t\t\t+ MessageDialog.CONTROLS_OK,\n\t\t\t\t\t\t\t\"Giá trị nhập vào chưa đúng\"\n\t\t\t\t\t\t\t\t\t+ '\\n'\n\t\t\t\t\t\t\t\t\t+ \"Nhập vào chuổi 8 ký tự theo định dạng ddmmyyyy VD: bạn muốn nhập 01/01/2013\"\n\t\t\t\t\t\t\t\t\t+ \" thì nhập 01012013\");\n\t\t\tvalid = false;\n\t\t}\n\t\treturn valid;\n\t}", "title": "" }, { "docid": "d98445bb073b191fbe688d953a94e523", "score": "0.54873914", "text": "private void checkEdit() {\n\t\teeppInput = eepp.getText().toString().trim();\r\n\t\tendTimeInput = endTime.getText().toString().trim();\r\n\t\taddressInput = address.getText().toString().trim();\r\n\t\ttypesInput = types.getText().toString().trim();\r\n\t\tphoneInput = phone.getText().toString().trim();\r\n\t\tdisciptInput = discipt.getText().toString().trim();\r\n\t\tLog.e(\"----------\", eeppInput + \"555\");\r\n\t\tMyMethod.showToast(getApplicationContext(), typesInput);\r\n\t\tif (endTimeInput.equals(\"\")) {\r\n\t\t\tMyMethod.showToast(getApplicationContext(), \"日期为空\");\r\n\t\t\treturn;\r\n\t\t} else if (addressInput.equals(\"\")) {\r\n\t\t\tMyMethod.showToast(getApplicationContext(), \"地址为空\");\r\n\t\t\treturn;\r\n\t\t} else if (typesInput.equals(\"\")) {\r\n\t\t\tMyMethod.showToast(getApplicationContext(), \"类型为空\");\r\n\t\t\treturn;\r\n\t\t} else if (phoneInput.equals(\"\")) {\r\n\t\t\tMyMethod.showToast(getApplicationContext(), \"电话为空\");\r\n\t\t\treturn;\r\n\t\t} else if (eeppInput.equals(\"\")) {\r\n\t\t\tMyMethod.showToast(getApplicationContext(), \"描述为空\");\r\n\t\t\treturn;\r\n\t\t} else if (disciptInput.equals(\"\")) {\r\n\t\t\tMyMethod.showToast(getApplicationContext(), \"描述为空\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t}", "title": "" }, { "docid": "78411e79ad5709faaeaa10d39d8c3942", "score": "0.54820395", "text": "public void function() {\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd\");\n this.setInformation(dateFormat.format(this.getDate()));\n }", "title": "" }, { "docid": "8d813b81540637743cb96b3d27ab7c17", "score": "0.5472047", "text": "private boolean isValidDate(String value) {\n return value.matches(DATE_REGEX);\n }", "title": "" }, { "docid": "ed5139cb8ce35ea1c7a375fb6c18f2c2", "score": "0.54691124", "text": "public boolean validateDateSpendEntries(String value, String description, String place){\n\n\n if(value.isEmpty() && description.isEmpty() && place.isEmpty()){\n Toast.makeText(MenuVoyageActivity.this, \"Fields cannot be empty! \", Toast.LENGTH_SHORT).show();\n return false;\n }\n\n return true;\n }", "title": "" }, { "docid": "71f2001b390179ca8de6530f9f557a94", "score": "0.5467391", "text": "public static DateTime checkDate() {\n\t\tdo {\n\t\t\ttry {\n\t\t\t\tSystem.out.println(\"Please enter a valid date:\");\n\t\t\t\tScanner sc = new Scanner(System.in);\n\t\t\t\tString input = sc.nextLine();\n\t\t\t\tDateTimeFormatter formatter = DateTimeFormatter.ofPattern(\"dd/MM/yyyy\");\n\t\t\t\tLocalDate date = formatter.parse(input, LocalDate::from);\n\t\t\t\tDateTime dt = new DateTime(date.getDayOfMonth(),date.getMonthValue(),date.getYear());\n\t\t\t\tsc.close();\n\t\t\t\treturn dt;\t\t\t\t\n\t\t\t\t}\n\t\t\tcatch(Exception ex) {\n\t\t\t\tSystem.out.println(ex.getMessage());\n\t\t\t}\n\t\t\t}while(true);\n\t}", "title": "" }, { "docid": "105fbe7ec2628b4cf401f924a79c6bf2", "score": "0.54651576", "text": "private void updateDateView() {\n\t\tif( this.date == null) {\n\t\t\treturn;\n\t\t}\n\n\t}", "title": "" }, { "docid": "ade79f0a5b91721676c031ba972ac27a", "score": "0.5464416", "text": "public boolean hasDate() {\n return false;\n }", "title": "" }, { "docid": "7f1b2d10924df9245ae3643a7821e3d0", "score": "0.5457796", "text": "public void ConvData (String data) {\n\n try {\n dataInicial = new SimpleDateFormat(\"yyyy-MM-dd\").parse(data);\n databanco = new SimpleDateFormat(\"dd/MM/yyyy\").format(dataInicial);\n } catch (ParseException ex) {\n JOptionPane.showMessageDialog(null, \"Ocorreu um erro\");\n }\n \n }", "title": "" }, { "docid": "c32de7a55308d7860c5370c8f45e169b", "score": "0.54406357", "text": "public void setCustomDate() {\n Scanner sc = new Scanner(System.in);\n int year = 0, month = 0, day = 0;\n \n printHeader(\"SET CUSTOM DATE\");\n \n //This allows the user to set the date \n try {\n System.out.print (\"Enter year: \");\n year = sc.nextInt();\n System.out.print (\"Enter month: \");\n month = sc.nextInt();\n System.out.print (\"Enter day: \");\n day = sc.nextInt();\n } catch (InputMismatchException imx) {\n sc.nextLine();\n System.out.print (\"Invalid input. Press any key to try again: \");\n sc.nextLine();\n System.out.println();\n manageDateOption();\n }\n /* Error trapping: returns error message if the given input does not match the variable's datatype\n Also, goes back to previous menu and allow the user to repeat the step\n */\n \n if (restaurantDate.setCustomDate (year, month, day) != null) { // Logic error trapping\n restaurantDate = restaurantDate.setCustomDate (year, month, day);\n restaurantFinances.setRestaurantDate(restaurantDate);\n updateOrdersByDate(restaurantDate);\n resetTables();\n \n sc.nextLine();\n \n System.out.println (\"Successfully updated date to \" + restaurantDate);\n System.out.print (\"Press any key to continue: \");\n sc.nextLine();\n System.out.println();\n ownerOption();\n } else {\n sc.nextLine();\n System.out.print (\"Invalid input. Press any key to try again: \");\n System.out.println();\n sc.nextLine();\n manageDateOption();\n }\n }", "title": "" }, { "docid": "340fbcaf41e9c6905cb85434d25a6c06", "score": "0.54395443", "text": "@RequiresApi(api = Build.VERSION_CODES.M)\n private void lastValues() {\n\n if (inputData.getString(\"Data\") != null) {\n cal.set(Calendar.HOUR_OF_DAY, Integer.parseInt(inputData.getString(\"hour\")));\n cal.set(Calendar.MINUTE, Integer.parseInt(inputData.getString(\"minute\")));\n\n etPlace.setText(inputData.getString(\"place\"));\n\n\n int year = Integer.parseInt(inputData.getString(\"year\"));\n int month = inputData.getInt(\"month\");\n int day = Integer.parseInt(inputData.getString(\"day\"));\n\n cal.set(year, month, day);\n\n if (inputData.getString(\"priority\") == \"Low\") {\n rgpriority.check(R.id.rbLow);\n } else if (inputData.getString(\"priority\") == \"Normal\") {\n rgpriority.check(R.id.rbNormal);\n } else {\n rgpriority.check(R.id.rbHigh);\n }\n\n tvTime.setText(cal.get(Calendar.HOUR_OF_DAY) + \":\" + cal.get(Calendar.MINUTE));\n tvDate.setText(cal.get(Calendar.DAY_OF_MONTH) + \"-\" + cal.get(Calendar.MONTH) + \"-\" + cal.get(Calendar.YEAR));\n\n\n }\n }", "title": "" }, { "docid": "f5d2a97b71aa9ae5d796c920bea75f92", "score": "0.54295397", "text": "public Date StringDate(String fecha){\n Date fechaE = null;\n try{\n fechaE = formato.parse(fecha);\n return fechaE;\n }catch(ParseException ex){\n return null;\n }\n}", "title": "" }, { "docid": "a4ae320ccc62100481cc5994971aae96", "score": "0.5424899", "text": "public boolean isIstituzioneValida(Date data, String nomeIstituzione);", "title": "" }, { "docid": "493432f4347d3511fa18bd7db6f1695c", "score": "0.5423636", "text": "public void focusLost(FocusEvent arg0) {\r\n\t\tSimpleDateFormat sf = new SimpleDateFormat(\"dd-MM-yyyy\");\r\n\t\t\r\n\t\tif (this.dateEdit.getText().length() <10)\r\n\t\t\treturn;\r\n\t\t\r\n\t\tjava.util.Date geburtsdatum = null;\r\n\t\ttry {\r\n\t\t\tgeburtsdatum = sf.parse(dateEdit.getText());\r\n\t\t\tvalue = new java.sql.Date( geburtsdatum.getTime());\r\n\t\t} catch (ParseException e) {\r\n\t\t\tJOptionPane.showMessageDialog(null, \"Error: \"+e.toString(),\"Error!\",JOptionPane.ERROR_MESSAGE);\r\n\t\t\t}\r\n\t}", "title": "" }, { "docid": "783ede2611b64c35458610c730af5cf1", "score": "0.54234123", "text": "private boolean setUpCutoffDate() {\n String message = \"Enter the date of the previous release in the format \\\"YYYY-MM-DD\\\"\\n\" +\n \"to check newly created StableIdentifiers:\";\n Date cutoffDate = escapeHelper.inputCutoffDate(message, \n this.parentComp);\n if (cutoffDate == null)\n return false; // Cancelled\n escapeHelper.setCutoffDate(cutoffDate);\n return true;\n }", "title": "" }, { "docid": "f130291818f2d4a7add0127b7f160018", "score": "0.5406256", "text": "private void departureDate() {\n try {\n long beforeDateLong = System.currentTimeMillis() - 1000*60*60*24;\n Date beforeDate = new Date(beforeDateLong);\n Date date1;\n\n do {\n System.out.println(\"Enter Departure Date: \");\n String departureDate = input.next();\n date1 = new SimpleDateFormat(\"dd-MM-yy\").parse(departureDate);\n\n if (beforeDate.after(date1)) {\n System.out.println(\"Date is invalid!\");\n } else {\n System.out.println(date1);\n }\n } while (beforeDate.after(date1));\n\n } catch (ParseException ex) {\n System.out.println(\"Exception Message: \" + ex);\n\n //Recalling Method()\n departureDate();\n }\n }", "title": "" }, { "docid": "ef3c82abd001e6487821e757813e0bdb", "score": "0.54023963", "text": "@Override\r\n\tpublic void clean() {\n\t\tsuper.clean();\r\n\t\tif(\"0001-01-01T00:00:00\".equals(this.ReleaseDate)||\"0001-01-01 00:00:00\".equals(this.ReleaseDate)){\r\n\t\t\tthis.ReleaseDate = null;\r\n\t\t}\r\n\t}", "title": "" }, { "docid": "1a7183ee1e522711c77d092b040b8a84", "score": "0.5401801", "text": "@Override\n public void onDateSet(DatePicker view, int year, int monthOfYear, int dayOfMonth) {\n myCalendar.set(Calendar.YEAR, year);\n myCalendar.set(Calendar.MONTH, monthOfYear);\n myCalendar.set(Calendar.DAY_OF_MONTH, dayOfMonth);\n if (isErorMessage) {\n setDate2(editText);\n } else {\n setDate(editText);\n }\n }", "title": "" }, { "docid": "3562539762775baf11d45575c3f41f8c", "score": "0.5401335", "text": "public void setDate(String value) {\n\n\t}", "title": "" }, { "docid": "59cd30b26d2442a98f5c5b92c28cf6cf", "score": "0.5401259", "text": "public static boolean validateJavaDate(String strDate)\n {\n if (strDate.trim().equals(\"\"))\n {\n return true;\n }\n /* Date is not 'null' */\n else\n {\n /*\n * Set preferred date format,\n * For example MM-dd-yyyy, MM.dd.yyyy,dd.MM.yyyy etc.*/\n SimpleDateFormat sdfrmt = new SimpleDateFormat(\"MM/dd/yyyy\");\n sdfrmt.setLenient(false);\n /* Create Date object\n * parse the string into date\n */\n try\n {\n Date javaDate = sdfrmt.parse(strDate);\n System.out.println(strDate+\" is valid date format\");\n }\n /* Date format is invalid */\n catch (ParseException e)\n {\n System.out.println(strDate+\" is Invalid Date format\");\n return false;\n }\n /* Return true if date format is valid */\n return true;\n }\n }", "title": "" }, { "docid": "ff7c65fc1ae835808f9306dfcab10911", "score": "0.5399005", "text": "public void doCore(){\n int day = UI.askInt(\"Day: \");\n int month = UI.askInt(\"Month: \");\n int year = UI.askInt(\"Year: \");\n this.validateDateCore(day, month, year);\n }", "title": "" }, { "docid": "eaf484f9eb6274ea4afb0f7a321aeb5b", "score": "0.5395491", "text": "@Override\n public Date getDischargedDate() {\n Date d = new Date();\n // System.out.print(\"Please input discharged date: \");\n //Date d = Validation.checkInputDate();\n return d;\n }", "title": "" }, { "docid": "57d26e38b84ac81973a416892a7954ac", "score": "0.5388611", "text": "private String checkDatesValid(){\r\n if(startDatePicker.getValue() == null || lastDatePicker.getValue() == null)\r\n return \"NULL\";//lack of input\r\n LocalDate startDate = startDatePicker.getValue();\r\n LocalDate lastDate = lastDatePicker.getValue();\r\n if(startDate.isBefore(lastDate)) return \"NORMAL\";//correct input\r\n if(startDate.isEqual(lastDate)) return \"ONEDAY\";//start date is last date\r\n return \"WRONG\";//start date is after last date\r\n }", "title": "" }, { "docid": "a2a8de5b51a9c1bc46f5e3cf3c2e3d3e", "score": "0.53849745", "text": "public boolean validate() {\n String sDayCheck = sDayView.getText().toString();\n String eDayCheck = eDayView.getText().toString();\n String sTimeCheck = sTimeView.getText().toString();\n String eTimeCheck = eTimeView.getText().toString();\n\n if ((titleView.getText().toString().matches(\"\")) || (roomView.getText().toString().matches(\"\"))) {\n Toast.makeText(getApplicationContext(),\"Please fill in all fields.\",Toast.LENGTH_SHORT).show();\n return false;\n }\n\n if ((sDayCheck.length() != 10) ||\n (eDayCheck.length() != 10) ||\n (sTimeCheck.length() != 5) ||\n (eTimeCheck.length() != 5)) {\n Toast.makeText(getApplicationContext(),\"Please check your Date and Time fields.\",Toast.LENGTH_SHORT).show();\n return false;\n } else if ((sDayCheck.charAt(2) != '/') || (sDayCheck.charAt(5) != '/') ||\n (eDayCheck.charAt(2) != '/') || (eDayCheck.charAt(5) != '/')) {\n Toast.makeText(getApplicationContext(), \"Please check your Date fields.\", Toast.LENGTH_SHORT).show();\n return false;\n } else if ((sTimeCheck.charAt(2) != ':') || (eTimeCheck.charAt(2) != ':')) {\n Toast.makeText(getApplicationContext(), \"Please check your Time fields.\", Toast.LENGTH_SHORT).show();\n return false;\n }\n if (!endDateAfter(sDayCheck, eDayCheck)) {\n Toast.makeText(getApplicationContext(), \"End date must be on or after the Start date.\", Toast.LENGTH_SHORT).show();\n return false;\n }\n if (!endTimeAfter(sTimeCheck, eTimeCheck)) {\n Toast.makeText(getApplicationContext(), \"End time must be on or after the Start time.\", Toast.LENGTH_SHORT).show();\n return false;\n }\n if (isOutOfDate(eDayCheck)) {\n Toast.makeText(getApplicationContext(), \"End date must be on or after Today's Date.\", Toast.LENGTH_SHORT).show();\n return false;\n }\n return true;\n }", "title": "" }, { "docid": "7e4208d91d1857b7025ace4f5041b330", "score": "0.5376121", "text": "@Override\n public void membusuk() {\n SimpleDateFormat format = new SimpleDateFormat(\"yyyy-MM-dd\");\n Date date = new Date();\n String tgl = format.format(date);\n boolean exp = dftrDateExp.contains(tgl); // mencari data dengan tanggal sekarang\n if (exp){\n int gt = dftrDateExp.indexOf(tgl); // mendapatkan index dari data yang telah ada\n dftrStatus.set(gt, \"expired\"); // mereplace data format(index, value_baru_yang_dirubah)\n }\n }", "title": "" }, { "docid": "7f8f74eb0f98ad5b730b6dd0d2505508", "score": "0.5375729", "text": "@TargetApi(Build.VERSION_CODES.GINGERBREAD)\n public Boolean emptyFields(){\n String qty_data = qty.getText().toString();\n String price_data = price.getText().toString();\n String date_data = date.getText().toString();\n if(qty_data.isEmpty() || price_data.isEmpty() || date_data.isEmpty()){\n return false;\n }else{\n return true;\n }\n }", "title": "" }, { "docid": "05e6b9573d8738d00d0937a2eaa0d877", "score": "0.53749424", "text": "@SuppressWarnings(\"unused\")\r\n\tprivate boolean parseDate(String date, Calendar outDate) {\r\n try {\r\n outDate.setTime(mDateFormat.parse(date));\r\n return true;\r\n } catch (ParseException e) {\r\n \tReporter.reportError(getContext(), this.getClass().toString(), Thread.currentThread().getStackTrace()[2].getMethodName().toString(), e.getMessage());\r\n return false;\r\n }\r\n }", "title": "" }, { "docid": "e08d035a463b0955802488c49d976ee8", "score": "0.5372254", "text": "private static boolean validateDate(String newValue) {\n\t\treturn validateDate(newValue, newValue);\n\t}", "title": "" }, { "docid": "152bc20af1b9639f9630aada1f0544bc", "score": "0.5366504", "text": "public boolean isInvalid() throws FileNotFoundException {\r\n SimpleDateFormat sdf = new SimpleDateFormat(\"MM/dd/yyyy\");\r\n sdf.setLenient(true);\r\n String uDate = dateTextField.getText();\r\n try{\r\n sdf.parse(uDate);\r\n return false;\r\n }\r\n catch(Exception e)\r\n {\r\n \t \r\n }\r\n\treturn true;\r\n }", "title": "" }, { "docid": "1ebe6dc4f765006033a1e5515b220a4e", "score": "0.536201", "text": "@SuppressWarnings(\"deprecation\")\n\t@Test\n\tpublic void testParseToDate1() {\n\t\tDate obtainedDate = testClass.parseToDate(\"11 jan 1993 3am\");\n\t\tassertEquals(\"checking for day\", 11, obtainedDate.getDate());\n\t\tassertEquals(\"checking for month\", 0, obtainedDate.getMonth());\n\t\tassertEquals(\"checking for year\", 1993 - 1900, obtainedDate.getYear());\n\t\tassertEquals(\"checking for hour\", 03, obtainedDate.getHours());\n\t\tassertEquals(\"checking for minute\", 00, obtainedDate.getMinutes());\n\t}", "title": "" }, { "docid": "4495982c797329b12268cbca3a052d0d", "score": "0.5359229", "text": "private DateField parseDateFieldType(FormFieldParseData data) throws KintoneAPIException {\n DateField date = new DateField(data.getCode());\n\n if (data.getDefaultValue() == null ) {\n date.setDefaultValue(null);\n } else if (data.getDefaultValue() instanceof String) {\n date.setDefaultValue((String)data.getDefaultValue());\n } else {\n throw new KintoneAPIException(\"Invalid default value data type:\" + data.getDefaultValue());\n }\n date.setDefaultNowValue(data.getDefaultNowValue());\n date.setUnique(data.getUnique());\n\n return date;\n }", "title": "" }, { "docid": "274a1a60d93206e2f4f995b5ad32d0ce", "score": "0.53515834", "text": "public void showEvent(){\n\t\ttry{\n\t\tSystem.out.println(\"Enter a date in the form of MM/DD/YYYY\");\n\t\tString dayViewOfDate = s.nextLine();\n\t\tDate dvd = new java.sql.Date(dateFormat.parse(dayViewOfDate).getTime());\n\t\tif(m.containsKey(dvd)){\n\t\t\tString month = cl.getDisplayName(Calendar.MONTH, Calendar.LONG, Locale.getDefault());\n\t\t\tString day = cl.getDisplayName(Calendar.DAY_OF_WEEK, Calendar.LONG, Locale.getDefault());\n\t\t\tSystem.out.println(day+\", \"+month+\" \"+cl.get(Calendar.DATE)+\", \"+cl.get(Calendar.YEAR));\n\t\t\tSystem.out.println(m.get(dvd));\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"No event on day \"+dayViewOfDate);\n\t\t}\n\t\t}\n\t\tcatch(ParseException e){\n\t\t\tSystem.err.println(\"Date not in the right format\");\n\t\t}\n\t}", "title": "" }, { "docid": "0eeb6a995004a4d44629b5b76e0f76c3", "score": "0.5340558", "text": "@SuppressWarnings(\"deprecation\")\n\t@Test\n\tpublic void testParseToDate() {\n\t\tDate obtainedDate = testClass.parseToDate(\"1 Jan 14 2pm\");\n\t\tassertEquals(\"checking for day\", 1, obtainedDate.getDate());\n\t\tassertEquals(\"checking for month\", 0, obtainedDate.getMonth());\n\t\tassertEquals(\"checking for year\", 2014 - 1900, obtainedDate.getYear());\n\t\tassertEquals(\"checking for hour\", 14, obtainedDate.getHours());\n\t\tassertEquals(\"checking for minute\", 00, obtainedDate.getMinutes());\n\t}", "title": "" }, { "docid": "7967a9426c3f790ccb9f4ae4a4c6e0d0", "score": "0.5335262", "text": "static void addDate(String record) {\n Date date = new Date(Integer.parseInt(record.substring(6, 8)), Integer.parseInt(record.substring(9, 11)));\n if (!record.substring(12, 14).equals(\"00\")) {\n date.nextDay();\n }\n String idDate = date.toString();\n GuardDate gd = (dates.containsKey(idDate) ? dates.get(idDate) : new GuardDate());\n gd.date = date.toString();\n int minute = Integer.parseInt(record.substring(15, 17));\n switch (record.charAt(19)) {\n case 'f':\n gd.states[minute] = GuardState.ASLEEP;\n break;\n case 'w':\n gd.states[minute] = GuardState.AWAKE;\n break;\n case 'G':\n StringBuilder sb = new StringBuilder();\n int i = 25;\n while (record.charAt(i) != ' ') {\n sb.append(record.charAt(i));\n i++;\n }\n gd.idGuard = sb.toString();\n break;\n }\n dates.put(idDate, gd);\n }", "title": "" }, { "docid": "4ad403f10339a1c9474f816bf435d30a", "score": "0.5334575", "text": "public static boolean isDate(String s) {\n\t\tDate d = null;\n\t\tif (isNotNull(s)) {\n\t\t\td = DataUtility.getDate(s);\n\t\t}\n\t\treturn d != null;\n\t}", "title": "" }, { "docid": "2b08f90a992ed396a6002d66df430e27", "score": "0.53343624", "text": "public java.sql.Date formataData(String string) {\n \t \n \t if (string != null & (!string.equals(\"\"))) {\n \t\t DateFormat dateFormat = new SimpleDateFormat(\"dd/MM/yyyy\");\n \t \t\tdateFormat.setCalendar(Calendar.getInstance());\n Date data = null;\n\t\t \n\t\t\t try {\n\t\t\t\tdata = dateFormat.parse(string);\n\t\t\t} catch (ParseException e) {\t\t\t\n\t\t\t\t e.printStackTrace();\t\t \n\t\t\t}\n\t\t \n\t\t return new java.sql.Date(data.getTime());\n \t }\n \t return null;\n\t \n }", "title": "" }, { "docid": "b4386bc63118cbf8d6923cfea855482d", "score": "0.5329619", "text": "public boolean isValid() {\n if (!txt_order_name.getText().isBlank() &&\n !txt_order_desc.getText().isBlank() &&\n !txt_name.getText().isBlank() &&\n !txt_contact.getText().isBlank() &&\n !txt_address.getText().isBlank() &&\n !txt_city.getText().isBlank() &&\n !txt_postcode.getText().isBlank() &&\n !txt_state.getText().isBlank() && \n !txt_country.getText().isBlank() &&\n dp_order_date.getValue() != null &&\n (cb_auto_assign.isSelected() || txt_assign_to.getValue() != null)) {\n if(dp_deli_date.getValue() != null) {\n System.out.println(dp_deli_date.getValue().compareTo(dp_order_date.getValue()));\n if(dp_deli_date.getValue().compareTo(dp_order_date.getValue()) >= 0) {\n return true;\n }\n } else {\n return true;\n }\n }\n return false; \n }", "title": "" }, { "docid": "f2f9234887ece6667b4e53e7fae45b2e", "score": "0.53255934", "text": "boolean DateCheck() {\n String patternNumber = \"(19[0-8][0-9]|199[0-9]|20[0-4][0-9]|2050)\";\n Pattern patNumb = Pattern.compile(patternNumber);\n Matcher matcherNumb= patNumb.matcher(Date);\n return matcherNumb.matches();\n }", "title": "" }, { "docid": "04b55e6f4e333971598d4fb2c3e40c2e", "score": "0.532308", "text": "public void creerDate(){\n Scanner sc = new Scanner(System.in);\n //Boucle pour rentrer une date (condition d'arrêt : la fonction vérif date renvoie false, c-à-d que la date est valide)\n do {\n System.out.println(\"Jour : \");\n this.jour=sc.nextInt();\n System.out.println(\"Mois : \");\n this.mois=sc.nextInt();\n System.out.println(\"Année : \");\n this.annee=sc.nextInt();\n } while(verifDate());\n }", "title": "" }, { "docid": "da89f2280948831d3c1a24186b951e81", "score": "0.53205717", "text": "public void enterDatebyTemplateType(String templateId) throws TemplateNotFoundException {\n if (tm.getTemplateById(templateId).getTemplateType().equals(\"DailyTemplate\")) {\n System.out.println(\"Please enter schedule date: yyyy MM dd\");\n } else if (tm.getTemplateById(templateId).getTemplateType().equals(\"MonthlyTemplate\")) {\n System.out.println(\"Please enter schedule month: yyyy MM\");\n } else{\n System.out.println(\"Please enter schedule date: yyyy MM dd. This is going to be the first day of\" +\n \" your weekly schedule.\");\n }\n }", "title": "" }, { "docid": "48b8f8de4cb307c1680f06662f75a65e", "score": "0.5317773", "text": "public void saveDateNote() {\n JTextArea textPanel = (JTextArea) tabbedPane.getSelectedComponent();\n String note = textPanel.getText();\n if (!note.isEmpty()) {\n FileUtils.writeObject(note);\n }\n updateListGUI();\n }", "title": "" }, { "docid": "cc88ffc2ee7c3a6c049937381c763b44", "score": "0.5316987", "text": "public boolean validateDate(String strDate) {\n\t\tif (strDate.trim().equals(\"\"))\n\t\t{\n\t\t return false;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t/**\n\t\t * Set preferred date format,\n\t\t * For example dd-MM-yyyy etc.*/\n\t\t SimpleDateFormat sdfrmt = new SimpleDateFormat(\"dd-MM-yyyy\");\n\t\t sdfrmt.setLenient(false);\n\t\t /* Create Date object\n\t\t * parse the string into date \n\t */\n\t\t try\n\t\t {\n\t\t \tDateFormat df = new SimpleDateFormat(\"dd-MM-yyyy\");\n\t\t \tString now = df.format(new Date());\n\t\t Date javaDate = sdfrmt.parse(strDate);\n\t\t Date nowDate = sdfrmt.parse(now);\n\t\t if (javaDate.before(nowDate)) {\n\t\t \tLOG.error(\"Date in the past is not allowed: {}, {}\",strDate, nowDate);\n\t\t \treturn false;\n\t\t }\n\t\t LOG.info(\"{} is valid date\",strDate);\n\t\t }\n\t\t /* Date format is invalid */\n\t\t catch (ParseException e)\n\t\t {\n\t\t \tLOG.debug(\"{} is Invalid Date format\",strDate);\n\t\t return false;\n\t\t }\n\t\t return true;\n\t\t}\n\t}", "title": "" }, { "docid": "d4186d99ec4895c49b8c82fb8746424e", "score": "0.5313699", "text": "@Override\n public void datePicked(String year, String month, String day) {\n\n String date = day+\".\"+(Integer.parseInt(month)+1)+\".\"+year;\n SPHelper sph = new SPHelper(this);\n NutritionRecord nr = new NutritionRecord(sph.getActiveUser(),desc,cal);\n nr.setDate(year,month,day);\n sph.addNutritionRecord(nr);\n Toast.makeText(this,\"saved for \" + date,Toast.LENGTH_LONG).show();\n et_description.setText(\"\");\n et_calories.setText(\"\");\n }", "title": "" }, { "docid": "c5471c6807664e72003467dc5c5ff61b", "score": "0.53109777", "text": "boolean hasDate();", "title": "" }, { "docid": "c5471c6807664e72003467dc5c5ff61b", "score": "0.53109777", "text": "boolean hasDate();", "title": "" }, { "docid": "c5471c6807664e72003467dc5c5ff61b", "score": "0.53109777", "text": "boolean hasDate();", "title": "" }, { "docid": "c5471c6807664e72003467dc5c5ff61b", "score": "0.53109777", "text": "boolean hasDate();", "title": "" }, { "docid": "c5471c6807664e72003467dc5c5ff61b", "score": "0.53109777", "text": "boolean hasDate();", "title": "" }, { "docid": "dae17002ce16defda99e9ffbd6941206", "score": "0.53084415", "text": "private void DataCadastroUsuario() {\n java.util.Date DataSistema = new java.util.Date();\n SimpleDateFormat formato = new SimpleDateFormat(\"dd/MM/yyyy\");\n txtDataCadastro.setText(formato.format(DataSistema));\n }", "title": "" }, { "docid": "d9556015647b5090ebcfbb81530243b2", "score": "0.5307292", "text": "@Override\n public void onDateSet(DatePicker view, int year, int month, int day){\n month = month +1;\n selectedDate = year + \"-\" + month + \"-\" + day;\n editTextDate.setText(selectedDate);\n\n //check if date is earlier than today\n Calendar calendar = Calendar.getInstance();\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\n\n try {\n day = day+1;\n String modifiedDate = year + \"-\" + month + \"-\" + day;//allow to select the current date.\n Date now = new Date(System.currentTimeMillis());\n Date parsedDate = sdf.parse(modifiedDate);\n if (parsedDate.compareTo(now) < 0 ){ //parsedDate.compareTo(now) returns -1 if selected date is earlier than today, otherwise, returns 1.\n editTextDate.setError(\"please select today or future date\");\n System.out.println(parsedDate.compareTo(now));\n }else{\n editTextDate.setError(null);\n }\n\n } catch (ParseException e) {\n e.printStackTrace();\n }\n\n }", "title": "" }, { "docid": "ada867cdafec148b0e5fe1f12ce61e40", "score": "0.5306699", "text": "public static Date formataData(String data) throws Exception { \n if (data == null || data.equals(\"\")) \n return null; \n \n Date date = null; \n try { \n DateFormat formatter = new SimpleDateFormat(\"dd/MM/yyyy\"); \n date = (java.util.Date)formatter.parse(data); \n } catch (ParseException e) { \n throw e; \n } \n return date; \n }", "title": "" }, { "docid": "f4129ec23a53e9f9bff76a21aac62bec", "score": "0.5302876", "text": "public static void dateField(final TextField textField) {\n maxField(textField, 10);\n\n textField.lengthProperty().addListener(new ChangeListener<Number>() {\n @Override\n public void changed(ObservableValue<? extends Number> observable, Number oldValue, Number newValue) {\n if (newValue.intValue() < 11) {\n String value = textField.getText();\n value = value.replaceAll(\"[^0-9]\", \"\");\n value = value.replaceFirst(\"(\\\\d{2})(\\\\d)\", \"$1/$2\");\n value = value.replaceFirst(\"(\\\\d{2})\\\\/(\\\\d{2})(\\\\d)\", \"$1/$2/$3\");\n textField.setText(value);\n positionCaret(textField);\n }\n }\n });\n }", "title": "" }, { "docid": "0e7d246e9d80f68102aee392845dabc8", "score": "0.5297754", "text": "public static void validateDate(String date) {\n\t\tPattern p = Pattern.compile(\"\\\\d{2}\\\\/\\\\d{2}\\\\/\\\\d{4}\");\n\n\t\t// m matches our pattern to the string inputted\n\t\tMatcher m = p.matcher(date);\n\n\t\t// find any matches true or false\n\t\tif (m.find()) {\n\t\t\tSystem.out.println(\"Date is valid\");\n\t\t} else {\n\t\t\tSystem.out.println(\"Date is not valid !\");\n\t\t}\n\t}", "title": "" }, { "docid": "9aaaa97ccce7a60c07f7581865cd9a45", "score": "0.5294811", "text": "private void doSetDate(Date theDate) {\n\n\t\tif (!allowNullDate && (null == theDate)) {\n\t\t\ttheDate = getToday();\n\t\t}\n\n\t\tcurrentDate = theDate;\n\t\tif (null != currentDate) {\n\t\t\tdateLabel.setText(AppCore.formatDate(currentDate));\n\t\t\tif (null != dayLabel) {\n\t\t\t\tdayLabel.setText(AppCore.formatDay(currentDate));\n\t\t\t}\n\t\t} else {\n\t\t\tdateLabel.setText(\" \");\n\t\t\tif (null != dayLabel) {\n\t\t\t\tdayLabel.setText(\" \");\n\t\t\t}\n\t\t}\n\t}", "title": "" }, { "docid": "3c155e01b933ea620c56997db669f913", "score": "0.5293806", "text": "private static void parseDate() {\n\t\t\n\t\tString in = \"18/05/1988 21:59\";\n\t\tString pattern = \"dd/MM/yyyy HH:mm\";\n\t\tDateTimeFormatter formatter = DateTimeFormatter.ofPattern(pattern);\n\t\t\n\t\ttry {\n\t\t\t\n\t\t\tLocalDate date = LocalDate.parse(in, formatter);\n\t\t\tSystem.out.println(date);\n\t\t\t\n\t\t\t//LocalDateTime também possui o método parse que recebe o formatador\n\t\t\tLocalDateTime dateTime = LocalDateTime.parse(in, formatter);\n\t\t\tSystem.out.println(dateTime);\n\t\t\t\n\t\t\tin = \"1980-07-19\";\n\t\t\tdate = LocalDate.parse(in);\n\t\t\tSystem.out.println(date);\n\t\t\t\n\t\t\tin = \"19590709\";\n\t\t\tdate = LocalDate.parse(in, DateTimeFormatter.BASIC_ISO_DATE);\n\t\t\tSystem.out.println(date);\n\t\t\t\n\t\t\tin = \"2016-06-27\";\n\t\t\tdate = LocalDate.parse(in, formatter); //DateTimeParseException here\n\t\t\t\n\t\t} catch(DateTimeParseException e ){ \n\t\t\tSystem.out.println(\"String date \" + in + \" and pattern \" + pattern + \"does not match!\");\n\t\t}\n\t\t\n\t}", "title": "" }, { "docid": "be92e34b12b55a7765573a230bd9bc28", "score": "0.5292976", "text": "public void setDate(String Date)\n\t{\n\t SimpleDateFormat df = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t try {\n\t df.parse(Date);\n\t String[] parts = Date.split(\"-\");\n\t this.expiryDate = Calendar.getInstance(TimeZone.getDefault());\n\t this.expiryDate.set(Integer.parseInt(parts[0]),\n Integer.parseInt(parts[1])-1,\n Integer.parseInt(parts[2]),0,0,0);\n\t // get here and we know the format is correct\n\t } catch (ParseException e) {\n\t \tSystem.out.println(\"Please put the Date in proper format... yyyy-MM-dd\");\n\t \te.printStackTrace();\n\t // ignore the parse failure\n\t }\n\t}", "title": "" }, { "docid": "045a1c9a3f5038bda7cd0277f9bb5f1c", "score": "0.5292715", "text": "public static Date getDateData() {\n\n System.out.println(\"Unesite datum odrzavanja ispita: \");\n String date = scanner.next();\n\n System.out.println(\"Unesite termin odrzavanja ispita: \");\n String time = scanner.next();\n\n Date date1 = new Date();\n\n date1.setDate(date);\n date1.setTime(time);\n\n return date1;\n }", "title": "" }, { "docid": "56f9b37358bc00577bab4fb72b5c9257", "score": "0.5291289", "text": "private boolean anyTextNull(){\n\t\tif(newEventObj.eventDate.getText() == null){\n\t\t\treturn true;\n\t\t}\n\t\tif(newEventObj.eventDisc.getText() == null){\n\t\t\treturn true;\n\t\t}\n\t\tif(newEventObj.eventLoc.getText() == null){\n\t\t\treturn true;\n\t\t}\n\t\tif(newEventObj.eventName.getText() == null){\n\t\t\treturn true;\n\t\t}\n\t\tif(newEventObj.checkbox.isSelected()){\n\t\t\tif(ARadioIsSelected()){\n\t\t\t\tif(newEventObj.numTimesRepeated.getText() == null){\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse{\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t}", "title": "" } ]
7477b9e39a592443316c366623d37b02
/ returns list of Tuple3 (key, val from table, val from row)
[ { "docid": "14fdc46e5c0277f16fafe5e619497836", "score": "0.52193815", "text": "private <T1, T2> List<Tuple3<K, T1, T2>> join(Multimap<K, T1> tab, List<Pair<K, T2>> rows,\n JoinType leftType, JoinType rightType) {\n List<Tuple3<K, T1, T2>> res = new ArrayList<>();\n for (Pair<K, T2> row : rows) {\n K key = row.getFirst();\n Collection<T1> values = tab.removeAll(key);\n if (values.isEmpty()) {\n if (rightType == JoinType.OUTER) {\n res.add(new Tuple3<>(row.getFirst(), null, row.getSecond()));\n }\n } else {\n for (T1 mapValue : values) {\n res.add(new Tuple3<>(row.getFirst(), mapValue, row.getSecond()));\n }\n }\n }\n // whatever remains in the tab are non matching left rows.\n if (leftType == JoinType.OUTER) {\n for (Map.Entry<K, T1> row : tab.entries()) {\n res.add(new Tuple3<>(row.getKey(), row.getValue(), null));\n }\n }\n return res;\n }", "title": "" } ]
[ { "docid": "7ed879e521bb83dd9a81691169900608", "score": "0.6375978", "text": "private <T> Multimap<K, T> getJoinTable(List<Pair<K, T>> rows) {\n Multimap<K, T> m = ArrayListMultimap.create();\n for (Pair<K, T> v : rows) {\n m.put(v.getFirst(), v.getSecond());\n }\n return m;\n }", "title": "" }, { "docid": "28ca7648687bc960da05191adb5a9aa9", "score": "0.6344852", "text": "public List getTuples() {\r\n if (sortedTableListCache == null) getSortedTables();\r\n if (sortedTableListCache.size() == 1) return ((Table) sortedTableListCache.get(0)).getTuples();\r\n if (isRemote()) importDatabaseToLocal();\r\n return joinAll();\r\n }", "title": "" }, { "docid": "3a8ada7a4c1e389c5160305fdb1bf965", "score": "0.6269449", "text": "java.util.List<io.dstore.engine.procedures.ImGetCorrespondingValuesAd.Response.Row> \n getRowList();", "title": "" }, { "docid": "6a0df0e8d9b5081fad3048fccfdfa409", "score": "0.6002872", "text": "public List<Object> getRow(){\n\t\treturn table.get(row);\n\t}", "title": "" }, { "docid": "91f9a13320d9e2edd2eb6c35506e2fb3", "score": "0.59072983", "text": "List<Pair<String, Value>> fields();", "title": "" }, { "docid": "738df81d782b0135c55537a4a124f640", "score": "0.58029777", "text": "private static List<Map<String, String>> retrieveTableInfo(String tableName) {\r\n\t\tList<Map<String, String>> result = new ArrayList<Map<String, String>>();\r\n\t\ttry {\r\n\t\t\tClass.forName(jdbcDriver).newInstance();\r\n\t\t\tConnection conn = DriverManager.getConnection(jdbcUrl, jdbcUser,\r\n\t\t\t\t\tjdbcPassword);\r\n\t\t\tDatabaseMetaData md = conn.getMetaData();\r\n\t\t\tResultSet rs = md.getColumns(conn.getCatalog(), null, tableName,\r\n\t\t\t\t\tnull);\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tString columnName = generateCamelStyleName(rs\r\n\t\t\t\t\t\t.getString(\"COLUMN_NAME\"));\r\n\t\t\t\tString columnType = rs.getString(\"DATA_TYPE\");\r\n\t\t\t\tString columnTypeName = rs.getString(\"TYPE_NAME\");\r\n\t\t\t\tString dataSize = rs.getString(\"COLUMN_SIZE\");\r\n\t\t\t\tString digits = rs.getString(\"DECIMAL_DIGITS\");\r\n\t\t\t\tString nullable = rs.getString(\"NULLABLE\");\r\n\t\t\t\tMap<String, String> map = new HashMap<String, String>();\r\n\t\t\t\tmap.put(\"columnName\", columnName);\r\n\t\t\t\tmap.put(\"columnType\", columnType);\r\n\t\t\t\tmap.put(\"columnTypeName\", columnTypeName);\r\n\t\t\t\tmap.put(\"dataSize\", dataSize);\r\n\t\t\t\tmap.put(\"digits\", digits);\r\n\t\t\t\tmap.put(\"nullable\", nullable);\r\n\t\t\t\tresult.add(map);\r\n\t\t\t}\r\n\t\t} catch (ClassNotFoundException e) {\r\n\t\t\tlogger.error(e.getLocalizedMessage(), e);\r\n\t\t} catch (SQLException e) {\r\n\t\t\tlogger.error(e.getLocalizedMessage(), e);\r\n\t\t} catch (InstantiationException e) {\r\n\t\t\tlogger.error(e.getLocalizedMessage(), e);\r\n\t\t} catch (IllegalAccessException e) {\r\n\t\t\tlogger.error(e.getLocalizedMessage(), e);\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "title": "" }, { "docid": "c7aa898e383c5e932c4c10dd75326767", "score": "0.5773696", "text": "java.util.List<? extends io.dstore.engine.procedures.ImGetCorrespondingValuesAd.Response.RowOrBuilder> \n getRowOrBuilderList();", "title": "" }, { "docid": "bf489a567fc33dbf7a5f09a350a3e547", "score": "0.5740932", "text": "@SuppressWarnings(\"unchecked\")\n\tprivate static ArrayList<HashMap<String, Object>> interpretResultSet(ResultSet rs) {\n\t\tArrayList<HashMap<String, Object>> list = new ArrayList<HashMap<String, Object>>(100);\n\t\ttry { //TODO:implement function\n\t\t\tResultSetMetaData md = rs.getMetaData();\n\t\t\tint columns = md.getColumnCount();\n\t\t\twhile (rs.next()){\n\t\t\t\tHashMap<String, Object> row = new HashMap<String, Object>(columns);\n\t\t\t for(int i=1; i<=columns; i++){\n\t\t\t \trow.put(md.getColumnName(i), rs.getObject(i));\n\t\t\t }\n\t\t\t list.add(row);\n\t\t\t}\n\t\t\treturn list;\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn list;\n\t}", "title": "" }, { "docid": "541ff7716da2ff75dfe357133b33d658", "score": "0.5731538", "text": "public HashMap<String, List<String>> getTableData()\n \t{\t\n \t\tHashMap<String,List<String>> tableData = new HashMap<String, List<String>>();\n \t\tfor(Vertex v : currentlyInUse)\n \t\t{\n \t\t\tString k = v.getWord();\n \t\t\tLinkedList<String> synms = new LinkedList<String>();\n \t\t\tfor(AdjListNode n : v.getAdjList())\n \t\t\t{\n \t\t\t\tsynms.add(handler.getVertex(n.getVertexNumber()).word);\n \t\t\t}\n \t\t\ttableData.put(k,synms);\n \t\t}\t\n \t\treturn tableData;\n \t}", "title": "" }, { "docid": "9a256332728c55672d0a136e90f188e8", "score": "0.5718444", "text": "java.util.List<com.mysql.cj.x.protobuf.MysqlxExpr.Expr> \n getValueList();", "title": "" }, { "docid": "23d42d8dcce81ff31245cfb2d340c4bc", "score": "0.5710754", "text": "private <E extends DatabaseKey> List<Map<E, String>> parseResultSet(ResultSet result, E[] keys) throws SQLException {\n\t\tList<Map<E, String>> list = new ArrayList<>();\n\t\twhile (result.next()) {\n\t\t\tMap<E, String> map = new HashMap<>();\n\t\t\tfor (int i = 0; i < keys.length; i++) {\n\t\t\t\tmap.put(keys[i], result.getString(i + 1));\n\t\t\t}\n\t\t\tlist.add(map);\n\t\t}\n\t\treturn list;\n\t}", "title": "" }, { "docid": "b878dba19b8730a7f8550b0440099621", "score": "0.5710153", "text": "io.dstore.engine.procedures.ImGetCorrespondingValuesAd.Response.Row getRow(int index);", "title": "" }, { "docid": "0b44258c1fc93c96920f0d773acbdc19", "score": "0.57082707", "text": "public abstract List<String> selectAllKeys(int tableID, String sessionid) throws DatabaseException;", "title": "" }, { "docid": "fcd5fc34f364036d3949e7152d683d21", "score": "0.5685816", "text": "@SuppressWarnings(\"rawtypes\")\r\n\tpublic synchronized Collection getValues() {\r\n\t\tList<Object> values = new ArrayList<Object>();\r\n\t\tfor (int i = 0; i < capacity; i++) {\r\n\t\t\tif (table[i] != null) {\r\n\t\t\t\tEntry<K, V> entry = table[i];\r\n\t\t\t\twhile (entry != null) {\r\n\t\t\t\t\tvalues.add(entry.value);\r\n\t\t\t\t\tentry = entry.next;\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\treturn values;\r\n\r\n\t}", "title": "" }, { "docid": "358c75bb48475a00807d896f45b68165", "score": "0.5607879", "text": "public List<Tag_valuesTuple> getTagValues() throws U_Exception {\n\t\treturn tag_valuesTable.select();\n\t}", "title": "" }, { "docid": "a8708b13dce205a11efedf8f795950c8", "score": "0.5590457", "text": "public List<Map<String, String>> getData() throws SQLException, ClassNotFoundException {\n\t\t\ttry {\n\t\t\t\tgetConnection();\n\t\t\t\tString sql = prepareSelectSQl();\n\t\t\t\tList metadataRows = new ArrayList();\n\t\t\t\tstmt = con.createStatement();\n\t\t\t\trs = stmt.executeQuery(sql);\n\t\t\t\tmetadata = rs.getMetaData();\n\t\t\t\tnoofColumn = metadata.getColumnCount();\n\t\t\t\twhile (rs.next()) {\n\t\t\t\t\tTreeMap map = new TreeMap();\n\t\t\t\t\tfor (int i = 1; i <= noofColumn; i++) {\n\t\t\t\t\t\tString field = metadata.getColumnName(i);\n\t\t\t\t\t\tmap.put(field, rs.getString(i));\n\t\t\t\t\t}\n\t\t\t\t\tmetadataRows.add(map);\n\t\t\t\t}\n\t\t\t\treturn metadataRows;\n\t\t\t} finally {\n\t\t\t\tcloseConnection();\n\t\t\t}\n\t\t}", "title": "" }, { "docid": "8926fe93142707a7552005d3513f0389", "score": "0.55682886", "text": "public static ArrayList<Hashtable<String, String>> getContent(SQLiteDatabase db) {\n\t\tCursor cursor = db.rawQuery(\"SELECT * FROM \" + TABLE_NAME, null);\n\t\t\n\t\tArrayList<Hashtable<String, String>> content = new ArrayList<Hashtable<String, String>>();\n\t\t\n\t\twhile (cursor.moveToNext()) {\n\t\t\tHashtable<String, String> contentRow = new Hashtable<String, String>();\n\t\t\t\n\t\t\tfor (int i = 0; i < COLUMNS.length; i++) {\n\t\t\t\tcontentRow.put(COLUMNS[i], cursor.getString(i));\n\t\t\t}\n\t\t\t\n\t\t\tcontent.add(contentRow);\n\t\t}\n\t\t\n\t\treturn content;\n\t}", "title": "" }, { "docid": "2afcdeddd45e72c58aab282045a896fc", "score": "0.5562577", "text": "public ArrayList<V> values() {\n \n \t\tMyHashTable<V, K> hashTable=new MyHashTable<V, K>(this.numBuckets);\n \t\tfor(LinkedList<HashPair<K,V>> list: this.buckets) \n \t\t{\n \t\t\tfor(HashPair<K,V> item: list) \n \t\t\t{\n \t\t\t\thashTable.put(item.getValue(), item.getKey());\n \t}\t\n \t}\n \t\t\n \t\tArrayList<V> values=new ArrayList<V>(hashTable.numEntries);\n \t\tfor(LinkedList<HashPair<V,K>> list: hashTable.buckets) \n \t\t{\n \t\t\tfor(HashPair<V,K> item: list) \n \t\t\t{\n \t\t\t\tvalues.add(item.getKey());\n \t}\t\n \t}\n \t\treturn values;\n \n }", "title": "" }, { "docid": "69c712f2401417901919f16f3744b991", "score": "0.5543361", "text": "private static void loadData() {\n df.cache();\n numberTuples = df.count();\n\n /*int tupleId = 0;\n //Read and paste data into TranslationMaps\n while (tupleId < numberTuples) {\n Row row = table.get(tupleId);\n List<String> row_as_list = new ArrayList<String>();\n for (int i = 0; i < numberAttributes; i++) {\n //System.out.println(((Long)row.get(i)).intValue());\n\n String content = row.get(i).toString();\n row_as_list.add(content);\n }\n tuples.add(row_as_list);\n tupleId++;\n if(tupleId%100000 == 0) System.out.println(\"Copied tuple: \" + tupleId);\n }*/\n }", "title": "" }, { "docid": "e7ea57cea92ba5cafb10dc3c7415ff40", "score": "0.5517893", "text": "public static List<Map<String, Object>> runSQLQuery(String query) throws SQLException {\n resultSet = statement.executeQuery(query);\n ResultSetMetaData rsMeta = resultSet.getMetaData();\n List<Map<String, Object>> listOfMaps = new ArrayList<>();\n int columnCount = rsMeta.getColumnCount();\n\n while (resultSet.next()) {\n Map<String, Object> row = new HashMap<>();\n\n for (int i = 1; i <= columnCount; i++) {\n String columName=rsMeta.getColumnName(i);\n Object columnValue=resultSet.getObject(columName);\n row.put(columName,columnValue);\n }\n listOfMaps.add(row);\n }\n\n return listOfMaps;\n }", "title": "" }, { "docid": "9b67602d4f02e64f227fdc18ee944018", "score": "0.5516377", "text": "protected abstract String[] getKeyColumns();", "title": "" }, { "docid": "dfc0ecb18e0d94184354b29b263531ee", "score": "0.5508215", "text": "public static List<List<Writable>> fromTable(Table table) {\n List<List<Writable>> ret = new ArrayList<>();\n for(int i = 0; i < table.rowCount(); i++) {\n ret.add(new ArrayList<>());\n for(int j = 0; j < table.columnCount(); j++) {\n ret.get(i).add(new DoubleWritable(Double.valueOf(table.get(j,i))));\n }\n }\n return ret;\n }", "title": "" }, { "docid": "fd90400fbcf92f0f988ec0d21e3128bd", "score": "0.5488409", "text": "private List<String> buildTableSlotMapKeys() {\r\n List<String> result = new ArrayList<String>();\r\n int[] partitionCount = this.keyPartitionFunction.getCount();\r\n int[] partitionLength = this.keyPartitionFunction.getLength();\r\n int firstValue = this.keyPartitionFunction.getFirstValue();\r\n\r\n for (int i = 0; i < partitionCount.length; i++) {\r\n for (int j = 0; j < partitionCount[i]; j++) {\r\n int key = firstValue + partitionLength[i];\r\n firstValue = key;\r\n result.add(String.valueOf(key));\r\n }\r\n }\r\n\r\n return result;\r\n }", "title": "" }, { "docid": "614d06d6467ab3ee5ab1c460d1a0d321", "score": "0.54741275", "text": "public List<String> getColumnKeys();", "title": "" }, { "docid": "9cf54dbcfe7fb066cb22bfebb954f30c", "score": "0.5465883", "text": "public HashMap<String, TableColumn> mapMaker(ArrayList<TableColumn> table){\n HashMap<String, TableColumn> map = new HashMap<String,TableColumn>(table.size());\n for(TableColumn id:table){\n map.put((String) id.getKey(),id);\n }\n return map;\n }", "title": "" }, { "docid": "8e105006891d806f640711a710c6378a", "score": "0.54625905", "text": "public List<String> getAllColumnValueFromCloudSqlTable(String tableName) {\n// setConnection();\n List<String> list = new LinkedList<>();\n try {\n stmt = connection.createStatement();\n resultSet = stmt.executeQuery(\"SELECT * FROM \" + tableName + \" where ROWNUM <= 20\");\n ResultSetMetaData rsmd = resultSet.getMetaData();\n\n while (resultSet.next()) {\n String values = \"\";\n for (int i = 1; i <= rsmd.getColumnCount(); i++) {\n String fieldtype = rsmd.getColumnTypeName(i);\n String value = orformatter(fieldtype, resultSet.getString(i));\n String string = OracleNULLValueFormatter(value);\n values = values + string.replace(\"\\\"\", \"\") + \"@@@\";\n }\n list.add(values);\n }\n close();\n } catch (SQLException e) {\n e.getMessage();\n }\n return list;\n }", "title": "" }, { "docid": "ba16640b6a3600b98a607627b18b5634", "score": "0.54407954", "text": "java.util.List<io.dstore.engine.procedures.PmExportPersonDataAd.Response.Row> \n getRowList();", "title": "" }, { "docid": "ce63528b93cb579a65c508dfc14c1bfe", "score": "0.5439315", "text": "public List<TableValueKeypro> getListTableValue(String tableName, String columnSelect, String whereClause, String orderBy, int pageNo) {\n return sessionFactory.getCurrentSession().createSQLQuery(\n \"SELECT ROWID id,\" + columnSelect + \" \" +\n \"FROM \" + tableName + \" \" +\n \"WHERE \" + whereClause + \" \" +\n \"ORDER BY \" + orderBy)\n .addEntity(TableValueKeypro.class)\n .setFirstResult((pageNo - 1) * RECORDS_PER_PAGE)\n .setMaxResults(RECORDS_PER_PAGE)\n .list();\n }", "title": "" }, { "docid": "9a516641d1f4756250dbb903fa8e3710", "score": "0.54302907", "text": "public Object[] getAllKeys() {\r\n \tObject[] keys = new Object[numKeys];\r\n \tint index = 0; //index for keys array\r\n \tfor(int i = 0; i < table.length; i++) {\r\n \t\tif(table[i] != null) {\r\n \t\t\twhile(table[i] != null) {\r\n \t\t\t\tkeys[index] = table[i].key; \r\n \t\t\t\tindex++; \r\n \t\t\t\ttable[i] = table[i].next;\r\n \t\t\t}\r\n \t\t}\r\n \t}\r\n \treturn keys; \r\n }", "title": "" }, { "docid": "dfd71ddc2d72ed12ba5a85f812140fb7", "score": "0.5420519", "text": "protected CompareableTuple<Object> getRow(ResultSet set,\n\t\t\tMap<String, ColDesc> tableDescription) throws SQLException {\n\t\tCompareableTuple<Object> ret = new CompareableTuple<Object>(\n\t\t\t\ttableDescription.size(), comparisonRules);\n\t\tfor (ColDesc colDesc : tableDescription.values()) {\n\t\t\tObject o;\n//\t\t\tif (colDesc.fuzzy) {\n//\t\t\t\tdouble d = set.getDouble(colDesc.name);\n//\t\t\t\tdouble v;\n//\t\t\t\tif (d != 0)\n//\t\t\t\t\tif (Math.abs(d) < 0.0001)\n//\t\t\t\t\t\tv = 0;\n//\t\t\t\t\telse\n//\t\t\t\t\t\tv = Double\n//\t\t\t\t\t\t\t\t.longBitsToDouble(Double.doubleToLongBits(d) & 0xfffffffffffff000L);\n//\t\t\t\telse\n//\t\t\t\t\tv = 0; // eliminate -0.0/+0.0 diffs\n//\t\t\t\to = Double.valueOf(v);\n//\t\t\t} else\n\t\t\t\to = set.getObject(colDesc.name);\n\t\t\tret.add(o);\n\t\t}\n\t\treturn ret;\n\t}", "title": "" }, { "docid": "87f5e2ac1751756686e1b39f5532f824", "score": "0.5403486", "text": "List<ColumnDefinition> getKeyColumns();", "title": "" }, { "docid": "951c5c92f032fc3eafda62165445a124", "score": "0.5400515", "text": "private List<Pair> getBookList(String column, int value) {\n try {\n Statement statement = connection.createStatement();\n ResultSet rs = statement.executeQuery(\"SELECT name, author FROM books WHERE \" + column + \" = \" + value);\n List<Pair> result = new ArrayList<>();\n while (rs.next()) {\n result.add(new Pair(rs.getString(\"author\"), rs.getString(\"name\")));\n }\n return result;\n } catch (SQLException e) {\n return Collections.emptyList();\n }\n }", "title": "" }, { "docid": "90ea652a0e240e771d2713a5c6893f2d", "score": "0.53967685", "text": "private HashMap<Integer, int[]> getDataMap(SQLiteDatabase db) {\n Log.d(TAG, \"sxsexe----> ++++++++ getDataMap \");\n String sql = \"select * from favorites where screen > 0\";\n Cursor cursor = db.rawQuery(sql, null);\n HashMap<Integer, int[]> allData = new HashMap<Integer, int[]>();\n \n if(cursor != null) {\n while(cursor.moveToNext()) {\n int[] indexes = new int[3];\n int cellYIndex = cursor.getColumnIndexOrThrow(Favorites.CELLY);\n int cellXIndex = cursor.getColumnIndexOrThrow(Favorites.CELLX);\n int idIndex = cursor.getColumnIndexOrThrow(Favorites._ID);\n int screenIndex = cursor.getColumnIndex(Favorites.SCREEN);\n indexes[0] = cursor.getInt(screenIndex);\n indexes[1] = cursor.getInt(cellXIndex);\n indexes[2] = cursor.getInt(cellYIndex);\n int id = cursor.getInt(idIndex);\n Log.d(TAG, \"sxsexe--->getDataMap id \" + id + \" screen \" + indexes[0] + \" cellX \" + indexes[1] + \" cellY \" + indexes[2]);\n allData.put(id, indexes);\n }\n cursor.close();\n }\n Log.d(TAG, \"sxsexe----> -------- getDataMap \");\n return allData;\n }", "title": "" }, { "docid": "0353ca2e2d7badf421e7cdee5115ac8a", "score": "0.5374406", "text": "List<Object> getFieldCharacterAndGroupFieldCharacters(TableCharacter table);", "title": "" }, { "docid": "8f0c22b6f50af4a782be1603a2b9c954", "score": "0.5353262", "text": "private static Tuple getTableIndex(char[][] table, char c){\n\t\tTuple res = new Tuple();\n\t\tif(c == 'j'){\n\t\t\tres.set(4,4);\n\t\t\treturn res;\n\t\t}\n\t\tfor (int i=0;i<5;i++){\n\t\t\tfor (int j=0; j<5; j++){\n\t\t\t\tif(table[i][j] == c){\n\t\t\t\t\tres.set(i,j);\n\t\t\t\t\treturn res;\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn res;\n\t}", "title": "" }, { "docid": "5b6cab6423834731452c1cd1c293e8a3", "score": "0.5348319", "text": "public interface Tuple extends Iterable<Object> {\n /**\n * Creates a tuple.\n *\n * @return A new tuple.\n */\n static Tuple create() {\n return new TupleImpl();\n }\n\n /**\n * Creates a tuple with specified initial capacity.\n *\n * @param capacity Initial capacity.\n * @return A new tuple.\n */\n static Tuple create(int capacity) {\n return new TupleImpl(capacity);\n }\n\n /**\n * Creates a tuple from given mapping.\n *\n * @param map Column values.\n * @return A new tuple.\n */\n static Tuple create(Map<String, Object> map) {\n TupleImpl tuple = new TupleImpl(map.size());\n\n for (Map.Entry<String, Object> entry : map.entrySet())\n tuple.set(entry.getKey(), entry.getValue());\n\n return tuple;\n }\n\n /**\n * Creates a tuple copy.\n *\n * @param tuple Tuple to copy.\n * @return A new tuple.\n */\n static Tuple create(Tuple tuple) {\n return new TupleImpl(tuple);\n }\n\n /**\n * Returns the hash code value for the tuple.\n * <p>\n * The hash code of a tuple is defined to be the sum of the hash codes of each pair of column name and column value.\n * This ensures that {@code m1.equals(m2)} implies that {@code m1.hashCode()==m2.hashCode()} for any tuples\n * {@code m1} and {@code m2}, as required by the general contract of {@link Object#hashCode}.\n * <p>\n * The hash code of a pair of column name and column value {@code i} is defined to be:\n * <pre>(columnName(i).hashCode()) ^ (value(i)==null ? 0 : value(i).hashCode())</pre>\n *\n * @param tuple Tuple.\n * @return The hash code value for the tuple.\n */\n static int hashCode(Tuple tuple) {\n int hash = 0;\n\n for (int idx = 0; idx < tuple.columnCount(); idx++) {\n String columnName = tuple.columnName(idx);\n Object columnValue = tuple.value(idx);\n\n hash += columnName.hashCode() ^ (columnValue == null ? 0 : columnValue.hashCode());\n }\n\n return hash;\n }\n\n /**\n * Compares tuples for equality.\n * <p>\n * Returns {@code true} if both tuples represent the same column name to column value mappings.\n * <p>\n * This implementation first checks if both tuples is of same size; if not, it returns {@code false};\n * If so, it iterates over columns of first tuple and checks that the second tuple contains each mapping\n * that the first one contains. If the second tuple fails to contain such a mapping, {@code false} is returned;\n * If the iteration completes, {@code true} is returned.\n *\n * @param firstTuple First tuple to compare.\n * @param secondTuple Second tuple to compare.\n * @return {@code true} if the first tuple is equal to the second tuple.\n */\n static boolean equals(Tuple firstTuple, Tuple secondTuple) {\n if (firstTuple == secondTuple)\n return true;\n\n int columns = firstTuple.columnCount();\n\n if (columns != secondTuple.columnCount())\n return false;\n\n for (int idx = 0; idx < columns; idx++) {\n int idx2 = secondTuple.columnIndex(firstTuple.columnName(idx));\n\n if (idx2 < 0)\n return false;\n\n if (!Objects.deepEquals(firstTuple.value(idx), secondTuple.value(idx2)))\n return false;\n }\n\n return true;\n }\n\n /**\n * Gets the number of columns in this tuple.\n *\n * @return Number of columns.\n */\n int columnCount();\n\n /**\n * Gets the name of the column with the specified index.\n *\n * @param columnIndex Column index.\n * @return Column name.\n * @throws IndexOutOfBoundsException If a value for a column with given index doesn't exists.\n */\n String columnName(int columnIndex);\n\n /**\n * Gets the index of the column with the specified name.\n *\n * @param columnName Column name.\n * @return Column index, or {@code -1} when a column with given name is not present.\n */\n int columnIndex(@NotNull String columnName);\n\n /**\n * Gets column value when a column with specified name is present in this tuple; returns default value otherwise.\n *\n * @param columnName Column name.\n * @param defaultValue Default value.\n * @param <T> Column default value type.\n * @return Column value if this tuple contains a column with the specified name. Otherwise returns {@code defaultValue}.\n */\n <T> T valueOrDefault(@NotNull String columnName, T defaultValue);\n\n /**\n * Sets column value.\n *\n * @param columnName Column name.\n * @param value Value to set.\n * @return {@code this} for chaining.\n */\n Tuple set(@NotNull String columnName, Object value);\n\n /**\n * Gets column value for given column name.\n *\n * @param columnName Column name.\n * @param <T> Value type.\n * @return Column value.\n * @throws IllegalArgumentException If column with given name doesn't exists.\n */\n <T> T value(@NotNull String columnName);\n\n /**\n * Gets column value for given column index.\n *\n * @param columnIndex Column index.\n * @param <T> Value type.\n * @return Column value.\n * @throws IndexOutOfBoundsException If column with given index doesn't exists.\n */\n <T> T value(int columnIndex);\n\n /**\n * Gets binary object column.\n *\n * @param columnName Column name.\n * @return Column value.\n * @throws IllegalArgumentException If column with given name doesn't exists.\n */\n BinaryObject binaryObjectValue(@NotNull String columnName);\n\n /**\n * Gets binary object column.\n *\n * @param columnIndex Column index.\n * @return Column value.\n * @throws IndexOutOfBoundsException If column with given index doesn't exists.\n */\n BinaryObject binaryObjectValue(int columnIndex);\n\n /**\n * Gets {@code byte} column value.\n *\n * @param columnName Column name.\n * @return Column value.\n * @throws IllegalArgumentException If column with given name doesn't exists.\n */\n byte byteValue(@NotNull String columnName);\n\n /**\n * Gets {@code byte} column value.\n *\n * @param columnIndex Column index.\n * @return Column value.\n * @throws IndexOutOfBoundsException If column with given index doesn't exists.\n */\n byte byteValue(int columnIndex);\n\n /**\n * Gets {@code short} column value.\n *\n * @param columnName Column name.\n * @return Column value.\n * @throws IllegalArgumentException If column with given name doesn't exists.\n */\n short shortValue(@NotNull String columnName);\n\n /**\n * Gets {@code short} column value.\n *\n * @param columnIndex Column index.\n * @return Column value.\n * @throws IndexOutOfBoundsException If column with given index doesn't exists.\n */\n short shortValue(int columnIndex);\n\n /**\n * Gets {@code int} column value.\n *\n * @param columnName Column name.\n * @return Column value.\n * @throws IllegalArgumentException If column with given name doesn't exists.\n */\n int intValue(@NotNull String columnName);\n\n /**\n * Gets {@code int} column value.\n *\n * @param columnIndex Column index.\n * @return Column value.\n * @throws IndexOutOfBoundsException If column with given index doesn't exists.\n */\n int intValue(int columnIndex);\n\n /**\n * Gets {@code long} column value.\n *\n * @param columnName Column name.\n * @return Column value.\n * @throws IllegalArgumentException If column with given name doesn't exists.\n */\n long longValue(@NotNull String columnName);\n\n /**\n * Gets {@code long} column value.\n *\n * @param columnIndex Column index.\n * @return Column value.\n * @throws IndexOutOfBoundsException If column with given index doesn't exists.\n */\n long longValue(int columnIndex);\n\n /**\n * Gets {@code float} column value.\n *\n * @param columnName Column name.\n * @return Column value.\n * @throws IllegalArgumentException If column with given name doesn't exists.\n */\n float floatValue(@NotNull String columnName);\n\n /**\n * Gets {@code float} column value.\n *\n * @param columnIndex Column index.\n * @return Column value.\n * @throws IndexOutOfBoundsException If column with given index doesn't exists.\n */\n float floatValue(int columnIndex);\n\n /**\n * Gets {@code double} column value.\n *\n * @param columnName Column name.\n * @return Column value.\n * @throws IllegalArgumentException If column with given name doesn't exists.\n */\n double doubleValue(@NotNull String columnName);\n\n /**\n * Gets {@code double} column value.\n *\n * @param columnIndex Column index.\n * @return Column value.\n * @throws IndexOutOfBoundsException If column with given index doesn't exists.\n */\n double doubleValue(int columnIndex);\n\n /**\n * Gets {@code String} column value.\n *\n * @param columnName Column name.\n * @return Column value.\n * @throws IllegalArgumentException If column with given name doesn't exists.\n */\n String stringValue(@NotNull String columnName);\n\n /**\n * Gets {@code String} column value.\n *\n * @param columnIndex Column index.\n * @return Column value.\n * @throws IndexOutOfBoundsException If column with given index doesn't exists.\n */\n String stringValue(int columnIndex);\n\n /**\n * Gets {@code UUID} column value.\n *\n * @param columnName Column name.\n * @return Column value.\n * @throws IllegalArgumentException If column with given name doesn't exists.\n */\n UUID uuidValue(@NotNull String columnName);\n\n /**\n * Gets {@code UUID} column value.\n *\n * @param columnIndex Column index.\n * @return Column value.\n * @throws IndexOutOfBoundsException If column with given index doesn't exists.\n */\n UUID uuidValue(int columnIndex);\n\n /**\n * Gets {@code BitSet} column value.\n *\n * @param columnName Column name.\n * @return Column value.\n * @throws IllegalArgumentException If column with given name doesn't exists.\n */\n BitSet bitmaskValue(@NotNull String columnName);\n\n /**\n * Gets {@code BitSet} column value.\n *\n * @param columnIndex Column index.\n * @return Column value.\n * @throws IndexOutOfBoundsException If column with given index doesn't exists.\n */\n BitSet bitmaskValue(int columnIndex);\n\n /**\n * Gets {@code LocalDate} column value.\n *\n * @param columnName Column name.\n * @return Column value.\n * @throws IllegalArgumentException If column with given name doesn't exists.\n */\n LocalDate dateValue(String columnName);\n\n /**\n * Gets {@code LocalDate} column value.\n *\n * @param columnIndex Column index.\n * @return Column value.\n * @throws IndexOutOfBoundsException If column with given index doesn't exists.\n */\n LocalDate dateValue(int columnIndex);\n\n /**\n * Gets {@code LocalTime} column value.\n *\n * @param columnName Column name.\n * @return Column value.\n * @throws IllegalArgumentException If column with given name doesn't exists.\n */\n LocalTime timeValue(String columnName);\n\n /**\n * Gets {@code LocalTime} column value.\n *\n * @param columnIndex Column index.\n * @return Column value.\n * @throws IndexOutOfBoundsException If column with given index doesn't exists.\n */\n LocalTime timeValue(int columnIndex);\n\n /**\n * Gets {@code LocalDateTime} column value.\n *\n * @param columnName Column name.\n * @return Column value.\n * @throws IllegalArgumentException If column with given name doesn't exists.\n */\n LocalDateTime datetimeValue(String columnName);\n\n /**\n * Gets {@code LocalDateTime} column value.\n *\n * @param columnIndex Column index.\n * @return Column value.\n * @throws IndexOutOfBoundsException If column with given index doesn't exists.\n */\n LocalDateTime datetimeValue(int columnIndex);\n\n /**\n * Gets {@code Instant} column value.\n *\n * @param columnName Column name.\n * @return Column value.\n * @throws IllegalArgumentException If column with given name doesn't exists.\n */\n Instant timestampValue(String columnName);\n\n /**\n * Gets {@code Instant} column value.\n *\n * @param columnIndex Column index.\n * @return Column value.\n * @throws IndexOutOfBoundsException If column with given index doesn't exists.\n */\n Instant timestampValue(int columnIndex);\n\n /**\n * Returns the hash code value for this tuple.\n *\n * @return the hash code value for this tuple.\n * @see #hashCode(Tuple)\n * @see Object#hashCode()\n */\n int hashCode();\n\n /**\n * Indicates whether some other object is \"equal to\" this one.\n *\n * @return {@code true} if this object is the same as the obj argument; {@code false} otherwise.\n * @see Tuple#equals(Tuple, Tuple)\n * @see Object#equals(Object)\n */\n boolean equals(Object obj);\n}", "title": "" }, { "docid": "30ee2c0b01277d525915a47e94125c79", "score": "0.5335054", "text": "List<Riga_tabella> getData();", "title": "" }, { "docid": "e4abce242e7515eff14e4c6bf91f0ee9", "score": "0.53021395", "text": "public Hashtable<String, String> getAllFakultetet() {\n\t\tConnection conn = DBConnect.Connect2DB(\"fiekdb\");\n\t\tCallableStatement cstmt = null;\n\t\ttry {\n\t\t\tList<Object> param = new ArrayList<Object>();\n\t\t\tResultSet res = DBConnect.executeProcedure(conn,cstmt,\"getAllFakultetet\", param);\t\t\n\t\t\twhile(res.next()) {\n\t\t\t\tfakultetetIDs.put(res.getString(\"id\"), res.getString(\"fakulteti\"));\t\n\t\t\t}\n\t\t\tres.close();\n\t\t\tconn.close();\n\t\t\tcstmt.close();\n\t\t} catch (Exception e) {\n\n\t\t}\n\t this.fakultetet = fakultetetIDs.elements(); \n\t /*\n\t while (e.hasMoreElements()) { \n\t System.out.println(e.nextElement()); \n\t } \n\t\t*/\n\t return this.fakultetetIDs;\n\t}", "title": "" }, { "docid": "a44a3408030c4aa0de55bd23edb54d56", "score": "0.52871794", "text": "public ArrayList<V> values() {\n\t\t//ADD CODE BELOW HERE\n\t\t//ArrayList<V> v = new ArrayList<V>();\n\t\tMyHashTable<V, Integer> s = new MyHashTable <V, Integer>(7);\n\t\tfor(int i = 0; i<buckets.size();i++) {\n\t\t\tfor(int j = 0; j<buckets.get(i).size(); j++) {\n\t\t//\tk.add(buckets.get(i).get(j).getKey());\n\t\t\t\ts.put(buckets.get(i).get(j).getValue(), 0);\n\t\t\t}\n\t\t}\n\t\treturn s.keys();\n\t}", "title": "" }, { "docid": "8330183b5c0fe34a2e747438af88ed76", "score": "0.5282338", "text": "TranspositionTableEntry get(Board board);", "title": "" }, { "docid": "10eeee3cb3f4b63c433f662f19a9dab9", "score": "0.52795124", "text": "public Object[] getArray(){\n\t\treturn table.get(row).toArray();\n\t}", "title": "" }, { "docid": "2223e18679eb4416bb6d4ca61a437db0", "score": "0.52754974", "text": "private HashMap<Integer, String> getAttractionList(Connection conn) throws SQLException\r\n\t{\r\n\t\tStatement stmt = null;\r\n\t\tResultSet rs = null;\r\n\t\tResultSetMetaData rsmd = null; \r\n\t\tHashMap<Integer, String> map = new HashMap<Integer, String>();\r\n\r\n\t\ttry \r\n\t\t{\r\n\t\t\tstmt = conn.createStatement();\r\n\t\t\tstmt.execute(\"SELECT distinct name AS attraction \" +\r\n\t\t\t\t\t\"FROM TRexView\");\r\n\r\n\t\t\trs = stmt.getResultSet();\r\n\t\t\trsmd = rs.getMetaData();\r\n\r\n\t\t\tint count = 1;\r\n\t\t\twhile (rs.next()) \r\n\t\t\t{\r\n\t\t\t\tmap.put(new Integer(count++), (String)rs.getString(1));\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\tfinally\r\n\t\t{\r\n\t\t\tif (rs != null) \r\n\t\t\t\trs.close();\r\n\t\t\tif (stmt != null) stmt.close();\r\n\t\t\t//if (conn != null) conn.close();\r\n\r\n\t\t}\r\n\t\treturn map;\r\n\t}", "title": "" }, { "docid": "15b31ad0024bb8bb9a919b902eb72daf", "score": "0.527425", "text": "public List<String> getOraclePrimaryKey(String tableName) {\n //set_Oracle_Connection();\n String primaryKey = \"\";\n\n List<String> pkey = new ArrayList<>();\n List<String> columnList = new ArrayList<>();\n try {\n stmt = connection.createStatement();\n resultSet = stmt.executeQuery(\"SELECT * FROM \" + tableName + \" where ROWNUM <= 5\");\n ResultSetMetaData rsmd = resultSet.getMetaData();\n for (int i = 1; i <= rsmd.getColumnCount(); i++) {\n String colums = rsmd.getColumnName(i);\n columnList.add(colums);\n }\n } catch (SQLException e) {\n e.getMessage();\n }\n\n try {\n DatabaseMetaData dmd = connection.getMetaData();\n resultSet = dmd.getPrimaryKeys(null, null, tableName);\n while (resultSet.next()) {\n primaryKey = resultSet.getString(\"COLUMN_NAME\");\n if ((pkey.isEmpty() && (columnList.contains(primaryKey)))) {\n pkey.add(primaryKey);\n } else if ((!pkey.contains(primaryKey)) && (columnList.contains(primaryKey))) {\n pkey.add(primaryKey);\n } else {\n continue;\n }\n }\n close();\n } catch (Exception e) {\n e.getMessage();\n }\n return pkey;\n }", "title": "" }, { "docid": "0bd0f92f12585125c36cd7999825a500", "score": "0.5264428", "text": "public static String listaTupla (String table, int numeroLinha) throws SQLException, Exception {\n\t\t\n\t\tConnection connection = new ConnectionPool().getConnection();\n\t\t\n\t\tString str = \"\";\n\t\tString sql = \"SELECT * FROM \" + table;\n\t\tStatement statement = connection.createStatement();\n\t\tstatement.execute(sql);\n\t\tResultSet resultSet = statement.getResultSet();\n\t\t\n\t\tfor (int i = 0; i < numeroLinha; i++)\n\t\t\tresultSet.next();\n\t\t\n\t\tint contagemColuna = resultSet.getMetaData().getColumnCount();\n\t\tfor (int i = 1; i <= contagemColuna; i++)\n\t\t{\n\t\t\tString string = resultSet.getString(i);\n\t\t\tString nomeColuna = resultSet.getMetaData().getColumnName(i);\n\t\t\tstr = str + nomeColuna + \": \" + string + \"\\n\";\n\t\t}\n\t\t\n\t\tresultSet.close();\n\t\tstatement.close();\n\t\tconnection.close();\n\t\t\n\t\tSystem.out.println(str);\n\t\t\n\t\treturn str;\n\t}", "title": "" }, { "docid": "8e2a7d94e7bab4425eadc253bf6ec791", "score": "0.525703", "text": "public static List executeQueryList(String query) {\n Connection con = null;\n Statement stm = null;\n ResultSet rs = null;\n try {\n con = getConnection();\n stm = con.createStatement();\n rs = stm.executeQuery(query);\n\n List list = new ArrayList();\n while (rs.next()) {\n Map map = new HashMap();\n int colCount = rs.getMetaData().getColumnCount();\n for (int i = 1; i <= colCount; i++) {\n String name = rs.getMetaData().getColumnName(i);\n map.put(name, rs.getObject(name));\n }\n\n list.add(map);\n }\n\n return list;\n\n } catch (SQLException sqlex) {\n throw new TrafficException(sqlex);\n } finally {\n close(rs);\n close(stm);\n close(con);\n } \n }", "title": "" }, { "docid": "2df070f3c9b2b0a8272ffdecfae87d0a", "score": "0.5231877", "text": "public DbIterator iterator() {\n // some code goes here\n //throw new UnsupportedOperationException(\"please implement me for proj2\");\n TupleDesc td = makeTupleDesc();\n ArrayList<Tuple> res = new ArrayList<Tuple>();\n\n for (Integer key : inthash.keySet()) {\n Tuple t = new Tuple(td);\n int val = inthash.get(key);\n\n IntField gb = new IntField(key);\n IntField a = new IntField(val);\n\n if (hasGrouping()) {\n t.setField(0, gb);\n t.setField(1, a);\n } else {\n t.setField(0, a);\n }\n res.add(t);\n }\n for (String key : strhash.keySet()) {\n Tuple t = new Tuple(td);\n int val = strhash.get(key);\n\n StringField gb = new StringField(key, Type.STRING_LEN);\n IntField a = new IntField(val);\n if (hasGrouping()) {\n t.setField(0, gb);\n t.setField(1, a);\n } else {\n t.setField(0, a);\n }\n res.add(t);\n }\n return new TupleIterator(td, res);\n }", "title": "" }, { "docid": "35a737e80f14ded33a4e0b676e789353", "score": "0.5223879", "text": "@Override \n\t public Turma getRowData(String rowKey) {\n\t \n\t @SuppressWarnings(\"unchecked\")\n\t\t\tList<Turma> Turmas = (List<Turma>) getWrappedData(); \n\t \n\t for(Turma Turma : Turmas) { \n\t if(Turma.getIdturma().equals(rowKey)) \n\t return Turma; \n\t } \n\t \n\t return null; \n\t }", "title": "" }, { "docid": "c7d00c6e85f0b53e825da3c5629316de", "score": "0.5204458", "text": "java.util.List<io.dstore.engine.procedures.OmModifyPurchaseOrderQueueAd.Response.Row> \n getRowList();", "title": "" }, { "docid": "d2ca847bff2beffdfa58a7be4749969c", "score": "0.5202291", "text": "public static List execValListQry(String query) {\n Connection con = null;\n Statement stm = null;\n ResultSet rs = null;\n try {\n con = getConnection();\n stm = con.createStatement();\n rs = stm.executeQuery(query);\n\n List list = new ArrayList();\n while (rs.next()) {\n String name = rs.getMetaData().getColumnName(1); \n list.add(rs.getObject(name).toString());\n }\n return list;\n\n } catch (SQLException sqlex) {\n throw new TrafficException(sqlex);\n } finally {\n close(rs);\n close(stm);\n close(con);\n } \n }", "title": "" }, { "docid": "c0dfe99186c55c51fe0014f4a843a126", "score": "0.52021515", "text": "public List<HashMap<String, Object>> convertResultSetToList(ResultSet rs)\n throws SQLException {\n ResultSetMetaData md = rs.getMetaData();\n int columns = md.getColumnCount();\n List<HashMap<String, Object>> list = new ArrayList<HashMap<String, Object>>();\n\n while (rs.next()) {\n HashMap<String, Object> row = new HashMap<String, Object>(columns);\n for (int i = 1; i <= columns; ++i) {\n row.put(md.getColumnName(i), rs.getObject(i));\n }\n list.add(row);\n }\n\n return list;\n }", "title": "" }, { "docid": "5bc39c75ddb639aaf7ead310765a0c32", "score": "0.5175563", "text": "public List<Map<String, Object>> executeQuery(String sql) {\n List<Map<String, Object>> result = null;\n try {\n result = new ArrayList<Map<String, Object>>();\n st = conn.createStatement();\n rs = st.executeQuery(sql);\n ResultSetMetaData metaData = rs.getMetaData();\n int columnCount = metaData.getColumnCount();\n while (rs.next()) {\n Map<String, Object> map = new HashMap<String, Object>();\n for (int i = 1; i <= columnCount; i++) {\n String name = metaData.getColumnName(i);\n Object value = rs.getObject(name);\n map.put(name, value);\n }\n result.add(map);\n }\n rs.close();\n st.close();\n } catch (SQLException e) {\n logger.error(\"Failed to execute query\\n\" + e.fillInStackTrace());\n }\n return result;\n }", "title": "" }, { "docid": "030f3273819baaed0ec7c82a8a6c3c3f", "score": "0.51731974", "text": "public ArrayList<TableColumn> makeMatchList(){\n ArrayList<TableColumn> matchList = new ArrayList<TableColumn>();\n matchList.add(new TableIntegerColumn(MatchContract.MatchEntry.COLUMN_NAME_ID));\n matchList.add(new TableIntegerColumn(MatchContract.MatchEntry.COLUMN_NAME_EVENT_ID));\n matchList.add(new TableStringColumn(MatchContract.MatchEntry.COLUMN_NAME_TBA_MATCH_KEY));\n matchList.add(new TableStringColumn(MatchContract.MatchEntry.COLUMN_NAME_MATCH_COMP_LEVEL));\n matchList.add(new TableStringColumn(MatchContract.MatchEntry.COLUMN_NAME_MATCH_SET_NUMBER));\n matchList.add(new TableStringColumn(MatchContract.MatchEntry.COLUMN_NAME_MATCH_NUMBER));\n matchList.add(new TableStringColumn(MatchContract.MatchEntry.COLUMN_NAME_MATCH_STATUS));\n matchList.add(new TableIntegerColumn(MatchContract.MatchEntry.COLUMN_NAME_RED_1));\n matchList.add(new TableIntegerColumn(MatchContract.MatchEntry.COLUMN_NAME_RED_2));\n matchList.add(new TableIntegerColumn(MatchContract.MatchEntry.COLUMN_NAME_RED_3));\n matchList.add(new TableIntegerColumn(MatchContract.MatchEntry.COLUMN_NAME_RED_AUTO_SCORE));\n matchList.add(new TableIntegerColumn(MatchContract.MatchEntry.COLUMN_NAME_RED_TELEOP_SCORE));\n matchList.add(new TableIntegerColumn(MatchContract.MatchEntry.COLUMN_NAME_RED_TOTAL_SCORE));\n matchList.add(new TableIntegerColumn(MatchContract.MatchEntry.COLUMN_NAME_RED_QP));\n matchList.add(new TableIntegerColumn(MatchContract.MatchEntry.COLUMN_NAME_RED_FOUL_POINTS));\n matchList.add(new TableIntegerColumn(MatchContract.MatchEntry.COLUMN_NAME_BLUE_1));\n matchList.add(new TableIntegerColumn(MatchContract.MatchEntry.COLUMN_NAME_BLUE_2));\n matchList.add(new TableIntegerColumn(MatchContract.MatchEntry.COLUMN_NAME_BLUE_3));\n matchList.add(new TableIntegerColumn(MatchContract.MatchEntry.COLUMN_NAME_BLUE_AUTO_SCORE));\n matchList.add(new TableIntegerColumn(MatchContract.MatchEntry.COLUMN_NAME_BLUE_TELEOP_SCORE));\n matchList.add(new TableIntegerColumn(MatchContract.MatchEntry.COLUMN_NAME_BLUE_TOTAL_SCORE));\n matchList.add(new TableIntegerColumn(MatchContract.MatchEntry.COLUMN_NAME_BLUE_QP));\n matchList.add(new TableIntegerColumn(MatchContract.MatchEntry.COLUMN_NAME_BLUE_FOUL_POINTS));\n matchList.add(new TableStringColumn(MatchContract.MatchEntry.COLUMN_NAME_MATCH_WINNER));\n matchList.add(new TableStringColumn(MatchContract.MatchEntry.COLUMN_NAME_DRIVE_TEAM_COMMENTS));\n\n return matchList;\n }", "title": "" }, { "docid": "3fcee0ed910db8f1ad00fd4fead4d164", "score": "0.516731", "text": "@JRubyMethod\n public IRubyObject values(ThreadContext context) {\n int len = res.getRows().size();\n RubyArray array = context.runtime.newArray();\n for(int i = 0; i < len; i++) {\n array.append(rowToArray(context, i));\n }\n return array;\n }", "title": "" }, { "docid": "0cc4457511c9d75f1ce212e64a6abfd7", "score": "0.5162586", "text": "protected abstract VHashMap getElements();", "title": "" }, { "docid": "d860df3e2834ebd2a9a52a210a4727fa", "score": "0.51592815", "text": "java.util.List<io.dstore.engine.procedures.MiModifyApplicPartsTreeAd.Response.Row> \n getRowList();", "title": "" }, { "docid": "5870c3b5db76d7e8040cef54e7773e44", "score": "0.5153688", "text": "public List<T> getRow (int rowIndex);", "title": "" }, { "docid": "6f88038d541521de7b23a349ede578b1", "score": "0.515367", "text": "public static Object[] getRowFromCursor(Cursor cursor) {\n Cursor cursor2 = cursor;\n if (cursor2 == null) {\n return null;\n }\n int index = 0 + 1;\n String key = cursor2.getString(0);\n int index2 = index + 1;\n String packageName = cursor2.getString(index);\n int index3 = index2 + 1;\n String title = cursor2.getString(index2);\n int index4 = index3 + 1;\n String text = cursor2.getString(index3);\n int index5 = index4 + 1;\n int dismissible = cursor2.getInt(index4);\n int index6 = index5 + 1;\n int ongoing = cursor2.getInt(index5);\n int index7 = index6 + 1;\n byte[] smallIconData = cursor2.getBlob(index6);\n int index8 = index7 + 1;\n int channel = cursor2.getInt(index7);\n int index9 = index8 + 1;\n int index10 = cursor2.getInt(index8);\n int index11 = index9 + 1;\n int progressMax = cursor2.getInt(index9);\n int index12 = index11 + 1;\n int index13 = cursor2.getInt(index11);\n int index14 = index12 + 1;\n int index15 = index14 + 1;\n int index16 = index15 + 1;\n return new Object[]{key, packageName, title, text, Integer.valueOf(dismissible), Integer.valueOf(ongoing), smallIconData, Integer.valueOf(channel), Integer.valueOf(index10), Integer.valueOf(progressMax), Integer.valueOf(index13), cursor2.getBlob(index12), cursor2.getString(index14), cursor2.getString(index15), cursor2.getString(index16)};\n }", "title": "" }, { "docid": "e549005a4c6d1c4cd93d61c07fd82de3", "score": "0.5152079", "text": "@Test\n public void getWhereListManyRowsTest() \n \tthrows Exception {\n \tColumn[] newRow = createColumns(3);\n\n \tLongColumn uids = (LongColumn) newRow[UID_COLUMN];\n \tLongColumn myLongs = (LongColumn) newRow[LONG_COLUMN];\n \tStringColumn myStrings = (StringColumn) newRow[STRING_COLUMN];\n\n \tuids.values[0] = 0;\n \tmyLongs.values[0] = 0;\n \tmyStrings.values[0] = \"zero\";\n \tuids.values[1] = 1;\n \tmyLongs.values[1] = 1;\n \tmyStrings.values[1] = \"one\";\n \tuids.values[2] = 2;\n \tmyLongs.values[2] = 2;\n \tmyStrings.values[2] = \"two\";\n \t\n \tmyTable.addData(newRow);\n \t\n\t\tlong[] ids = myTable.getWhereList(\"(Uid==\"+ 1 +\")\", null, 0, \n\t\t\t\tmyTable.getNumberOfRows(), 1);\n\t\t\n\t\t// getWhereList should have returned one row\n\t\tassertTrue(ids.length==1); \n\t\t\n //Retrieve data again\n Data myData = myTable.read(ColNumbers, 0L, myTable.getNumberOfRows());\n\n myStrings = (StringColumn) myData.columns[STRING_COLUMN];\n myLongs = (LongColumn) myData.columns[LONG_COLUMN];\n\n // Row's time string and value should be the same\n assertTrue((myLongs.values[(int) ids[0]])==1);\n assertTrue((myStrings.values[(int) ids[0]]).equals(\"one\"));\n }", "title": "" }, { "docid": "5e5d4eb1d61004b9461567325ca7bf3c", "score": "0.51508635", "text": "public static Map execSingleRowQry(String query) {\n Connection con = null;\n Statement stm = null;\n ResultSet rs = null;\n try {\n con = getConnection();\n stm = con.createStatement();\n rs = stm.executeQuery(query);\n\n Map map = new HashMap();\n if (rs.next()) {\n int colCount = rs.getMetaData().getColumnCount();\n for (int i = 1; i <= colCount; i++) {\n String name = rs.getMetaData().getColumnName(i);\n map.put(name, rs.getObject(name));\n }\n }\n\n return map;\n\n } catch (SQLException sqlex) {\n throw new TrafficException(sqlex);\n } finally {\n close(rs);\n close(stm);\n close(con);\n } \n }", "title": "" }, { "docid": "b297b8917944fa38f11bb4da113530f2", "score": "0.512239", "text": "@Override\n\tpublic Object[] columnsFromXMLRPC(String table) {\n\t\treturn myClient.execute(\"sensorpress.columns\", \n\t\t\t\tnew Object[]{myClient.getUser(),myClient.getPwrd(),table});\n\t}", "title": "" }, { "docid": "710e2f3e3fe8c878e9c47e1d5a283ffb", "score": "0.5120702", "text": "public ArrayList<KeyValueStoreEntry> getDBTableMetadata(SQLiteDatabase db, String tableId,\n String partition, String aspect, String key) {\n\n ArrayList<KeyValueStoreEntry> entries = new ArrayList<KeyValueStoreEntry>();\n\n Cursor c = null;\n try {\n StringBuilder b = new StringBuilder();\n ArrayList<String> selArgs = new ArrayList<String>();\n if (tableId != null) {\n b.append(KeyValueStoreColumns.TABLE_ID).append(\"=?\");\n selArgs.add(tableId);\n }\n if (partition != null) {\n if (b.length() != 0) {\n b.append(\" AND \");\n }\n b.append(KeyValueStoreColumns.PARTITION).append(\"=?\");\n selArgs.add(partition);\n }\n if (aspect != null) {\n if (b.length() != 0) {\n b.append(\" AND \");\n }\n b.append(KeyValueStoreColumns.ASPECT).append(\"=?\");\n selArgs.add(aspect);\n }\n if (key != null) {\n if (b.length() != 0) {\n b.append(\" AND \");\n }\n b.append(KeyValueStoreColumns.KEY).append(\"=?\");\n selArgs.add(key);\n }\n\n c = db.query(DatabaseConstants.KEY_VALUE_STORE_ACTIVE_TABLE_NAME, null, b.toString(),\n selArgs.toArray(new String[selArgs.size()]), null, null, null);\n if (c.moveToFirst()) {\n int idxPartition = c.getColumnIndex(KeyValueStoreColumns.PARTITION);\n int idxAspect = c.getColumnIndex(KeyValueStoreColumns.ASPECT);\n int idxKey = c.getColumnIndex(KeyValueStoreColumns.KEY);\n int idxType = c.getColumnIndex(KeyValueStoreColumns.VALUE_TYPE);\n int idxValue = c.getColumnIndex(KeyValueStoreColumns.VALUE);\n\n do {\n KeyValueStoreEntry e = new KeyValueStoreEntry();\n e.partition = c.getString(idxPartition);\n e.aspect = c.getString(idxAspect);\n e.key = c.getString(idxKey);\n e.type = c.getString(idxType);\n e.value = c.getString(idxValue);\n entries.add(e);\n } while (c.moveToNext());\n }\n } finally {\n if (c != null && !c.isClosed()) {\n c.close();\n }\n }\n return entries;\n }", "title": "" }, { "docid": "0cd8dc9f706fa437f1ccdd42eb69445d", "score": "0.51043355", "text": "protected void extractTableKeys(List ls, File tokenFile) \n throws XmlPullParserException, IOException\n {\n XmlPullParser xpp = new MXParser();\n xpp.setFeature(XmlPullParser.FEATURE_PROCESS_NAMESPACES, true);\n\n FileReader in = new FileReader(tokenFile);\n xpp.setInput(in);\n int tuple[] = new int[2];\n boolean intoken = false;\n boolean instring = false;\n String key = null;\n StringBuffer buf = new StringBuffer();\n\n int eventType = xpp.getEventType();\n do {\n if (eventType == xpp.START_TAG) {\n if (xpp.getDepth() == 2 && xpp.getName().equals(\"token\")) {\n intoken = true;\n }\n if (intoken && xpp.getDepth() == 3\n && xpp.getName().equals(\"key\")) {\n instring = true;\n }\n if (intoken && xpp.getDepth() == 3 \n && xpp.getName().equals(\"value\")) {\n instring = true;\n }\n }\n if (eventType == xpp.TEXT) {\n if (instring) {\n char ch[] = xpp.getTextCharacters(tuple);\n int start = tuple[0];\n int length = tuple[1];\n buf.append(ch, start, length);\n }\n }\n if (eventType == xpp.END_TAG) {\n if (xpp.getDepth() == 2 && intoken) {\n if (key != null && key.length() > 0) {\n ls.add(key);\n }\n key = null;\n intoken = false;\n }\n if (xpp.getDepth() == 3 && instring) {\n if (xpp.getName().equals(\"key\")) {\n key = buf.toString();\n }\n instring = false;\n buf.setLength(0);\n }\n }\n eventType = xpp.next();\n } while (eventType != xpp.END_DOCUMENT);\n\n in.close();\n }", "title": "" }, { "docid": "f19d4672374cfc4113785a63ef84b0fb", "score": "0.509733", "text": "public static ArrayList<String> getUniqueValues(String tableName) {\n ArrayList<String> uniqueValues = new ArrayList<>();\n String sql = \"SELECT distinct provider FROM \" + tableName;\n try {\n Connection conn = AccessFile.connect(); //Attempting to connect to our database\n Statement stmt = conn.createStatement();\n ResultSet rs = stmt.executeQuery(sql); //Executing the sql statement\n while (rs.next()) {\n uniqueValues.add(rs.getString(\"provider\"));\n }\n AccessFile.disconnect(conn);\n return uniqueValues;\n } catch (SQLException e) { //Catching the connection error\n System.out.println(\"Error accessing data...\");\n System.out.println(e.getMessage());\n return uniqueValues;\n }\n }", "title": "" }, { "docid": "21384a0f0cc5c3bf33a6422bf3843176", "score": "0.50966376", "text": "public synchronized List<HashMap<String, Object>> consultar(String sql) throws SQLException {\r\n\r\n Connection conn = null;\r\n Statement stmt = null;\r\n\r\n List results = new ArrayList();\r\n\r\n try {\r\n conn = DriverManager.getConnection(DB_URL, USUARIO, PASSWORD);\r\n\r\n stmt = conn.createStatement();\r\n\r\n ResultSet rs = stmt.executeQuery(sql);\r\n\r\n while (rs.next()) {\r\n Map result = new HashMap();\r\n ResultSetMetaData rsMetaData = rs.getMetaData();\r\n int numberOfColumns = rsMetaData.getColumnCount();\r\n // get the column names; column indexes start from 1\r\n for (int i = 1; i < numberOfColumns + 1; i++) {\r\n String columnName = rsMetaData.getColumnName(i);\r\n int type = rsMetaData.getColumnType(i);\r\n result.put(columnName, rs.getObject(columnName));\r\n }\r\n results.add(result);\r\n }\r\n\r\n rs.close();\r\n stmt.close();\r\n conn.close();\r\n } finally {\r\n if (stmt != null) {\r\n stmt.close();\r\n }\r\n if (conn != null) {\r\n conn.close();\r\n }\r\n }\r\n return results;\r\n }", "title": "" }, { "docid": "4e953b34a0a660e7ce38016cc2d1dd10", "score": "0.5094298", "text": "List<Object> getFieldBinaryAndGroupFieldBinaries(TableBinary table);", "title": "" }, { "docid": "3235827add5c4744c2cb4ce0dbc55117", "score": "0.50933295", "text": "@Override\r\n\tpublic Map<String, String> queryRowKeyQulifierAndValues() {\n\t\treturn null;\r\n\t}", "title": "" }, { "docid": "95f79ee38e62a853a05c183909d5bc00", "score": "0.50899184", "text": "public static List<LetterMerge> tableToList(DataTable table) throws Exception {\n List<LetterMerge> retVal = new List<LetterMerge>();\n LetterMerge letterMerge;\n for (int i = 0;i < table.Rows.Count;i++)\n {\n letterMerge = new LetterMerge();\n letterMerge.LetterMergeNum = PIn.Long(table.Rows[i][\"LetterMergeNum\"].ToString());\n letterMerge.Description = PIn.String(table.Rows[i][\"Description\"].ToString());\n letterMerge.TemplateName = PIn.String(table.Rows[i][\"TemplateName\"].ToString());\n letterMerge.DataFileName = PIn.String(table.Rows[i][\"DataFileName\"].ToString());\n letterMerge.Category = PIn.Long(table.Rows[i][\"Category\"].ToString());\n retVal.Add(letterMerge);\n }\n return retVal;\n }", "title": "" }, { "docid": "a13fa910162165448d82b0ac460e6ff9", "score": "0.5088373", "text": "private List<String> findValuesByColumn(String query) {\r\n\t\tList<String> values = new ArrayList<String>();\r\n\t\tConnection connection = ConnectionHolder.getConnection();\r\n\t\tPreparedStatement pstmt = null;\r\n\t\tResultSet rs = null;\r\n\t\ttry {\r\n\t\t\tpstmt = connection.prepareStatement(query);\r\n\t\t\trs = pstmt.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tvalues.add(rs.getString(1));\r\n\t\t\t}\r\n\t\t} catch (SQLException ex) {\r\n\t\t\tLOG.warn(ex.getMessage());\r\n\t\t\tthrow new DAOException(Const.ErrMsg.FIND_VALUES_BY_COLUMN, ex);\r\n\t\t} finally {\r\n\t\t\tclose(rs);\r\n\t\t\tclose(pstmt);\r\n\t\t}\r\n\t\treturn values;\r\n\t}", "title": "" }, { "docid": "0c1c42069d48171faac9b017288226fe", "score": "0.5081842", "text": "public List<MatcherValue> getMatcherValues(Connection con) throws DAOException {\n\t\tPreparedStatement ps = null;\n\t\tResultSet result = null;\n\t\ttry {\n\t\t\tcon.setAutoCommit(true);\n\t\t\tps = con.prepareStatement(createSQL(SQL_READ_ALL_1, SQL_READ_ALL_2));\n\t\t\tresult = ps.executeQuery();\n\t\t\tArrayList<MatcherValue> ret = new ArrayList<MatcherValue>();\n\t\t\twhile(result.next())\n\t\t\t\tret.add(rowMapper.map(result));\n\t\t\treturn ret;\n\t\t} catch (SQLException e) {\n\t\t\tlog.error(\"getMatcherValues(\"+con+\")\", e);\n\t\t\tthrow new DAOSQLException(e);\n\t\t} finally {\n\t\t\tnet.anotheria.db.util.JDBCUtil.release(result);\n\t\t\tnet.anotheria.db.util.JDBCUtil.release(ps);\n\t\t}\n\t}", "title": "" }, { "docid": "12230682829822cee35abaf2b3491ac4", "score": "0.5081317", "text": "public static ArrayList<Map<String, String>> getRowList(String sql, Object... params) throws Exception\r\n\t{\r\n\t\treturn getRowList(0, sql, params);\r\n\t}", "title": "" }, { "docid": "51869c2cd600cd5409339138fb56e7c2", "score": "0.50812256", "text": "private int[] extractKeys() {\n int[] keys = new int[size];\n for (int i = 0; i < size; ++i) {\n keys[i] = entries[i].getKey();\n }\n return keys;\n }", "title": "" }, { "docid": "65e8e2af5b89e29bfdc0c9a08986ed52", "score": "0.50788325", "text": "java.util.List<? extends io.dstore.engine.procedures.PmExportPersonDataAd.Response.RowOrBuilder> \n getRowOrBuilderList();", "title": "" }, { "docid": "cc8e1fbfdeb84f3939e77991b4c44717", "score": "0.50688803", "text": "public static Map[] executeQuery(String query) {\n Connection con = null;\n Statement stm = null;\n ResultSet rs = null;\n try {\n con = getConnection();\n stm = con.createStatement();\n rs = stm.executeQuery(query);\n\n List list = new ArrayList();\n while (rs.next()) {\n Map map = new HashMap();\n int colCount = rs.getMetaData().getColumnCount();\n for (int i = 1; i <= colCount; i++) {\n String name = rs.getMetaData().getColumnName(i);\n map.put(name, rs.getObject(name));\n }\n\n list.add(map);\n }\n\n Map[] map = new Map[list.size()];\n for (int i = 0; i < list.size(); i++) {\n map[i] = (Map) list.get(i);\n }\n\n return map;\n\n } catch (SQLException sqlex) {\n throw new TrafficException(sqlex);\n } finally {\n close(rs);\n close(stm);\n close(con);\n } \n }", "title": "" }, { "docid": "02495cf50688698fa4e3a9b4acd89698", "score": "0.50643873", "text": "public List<Map<String, Object>> queryForList(String sql)\r\n/* 333: */ throws DataAccessException\r\n/* 334: */ {\r\n/* 335: 495 */ return query(sql, getColumnMapRowMapper());\r\n/* 336: */ }", "title": "" }, { "docid": "7a69ee03f3d49839f6ff0cf7bb1e7a7f", "score": "0.5063794", "text": "@Override\n public Tuple getNextTuple() {\n\n if (this.tableFile.hasNextLine()) {\n int cellNumber = this.table.header.columnHeaders.size();\n ArrayList<Integer> row = new ArrayList<>();\n\n for (int i = 0; i < cellNumber; i++) {\n if (this.tableFile.hasNextInt()) {\n row.add(this.tableFile.nextInt());\n }\n }\n\n return (new Tuple(row));\n } else {\n return null;\n }\n }", "title": "" }, { "docid": "28dd60642d66917534b2bb705afd855e", "score": "0.5059329", "text": "public LongArrayList getRowIDs() throws JSONException {\r\n final LongArrayList rowIDs = new LongArrayList();\r\n final JSONArray rowArray = jTable.getJSONArray(\"row\");\r\n for (int i = 0; i < rowArray.length(); i++) {\r\n final JSONObject row = rowArray.getJSONObject(i);\r\n final long rowKey = row.getLong(\"ID\");\r\n rowIDs.add(rowKey);\r\n }\r\n return rowIDs;\r\n }", "title": "" }, { "docid": "c2df56323e361262bc4383ede3b8baf7", "score": "0.5057295", "text": "public ArrayList<String> listaColsPK(String nombreTabla){\n\t\tArrayList<String> colsPK = new ArrayList<String>();\n\t\tNodeList listaNodos = rootElement.getElementsByTagName(\"tabla\");\n\t\tfor (int x=0; x<listaNodos.getLength(); x++){\n\t\t\torg.w3c.dom.Node nodoTabla = listaNodos.item(x);\n\t\t\tif (nodoTabla.getNodeType() == Node.ELEMENT_NODE){\n\t\t\t\tElement tElement = (Element) nodoTabla;\n\t\t\t\tNodeList list = tElement.getElementsByTagName(\"constraints\");\t\t\t\t\n\t\t\t\tfor (int y=0; y<list.getLength(); y++){\n\t\t\t\t\torg.w3c.dom.Node nodo = list.item(y);\n\t\t\t\t\tif (nodo.getNodeType() == Node.ELEMENT_NODE) {\t \n\t\t\t Element eElement = (Element) nodo;\n\t\t\t if (nombreTabla.equals(tElement.getElementsByTagName(\"nombreTabla\").item(0).getTextContent())){\n\t\t\t\t // Para primary keys de la misma tabla\n\t\t\t \t NodeList listPK = eElement.getElementsByTagName(\"primaryKey\");\n\t\t\t\t for (int z=0; z<listPK.getLength(); z++){\n\t\t\t\t \t org.w3c.dom.Node nodoPK = listPK.item(z);\n\t\t\t\t\t\t\t\tif (nodoPK.getNodeType() == Node.ELEMENT_NODE) {\t \n\t\t\t\t\t\t Element eElementPK = (Element) nodoPK;\n\t\t\t\t\t\t NodeList listaIdCols = eElementPK.getElementsByTagName(\"idColumna\");\n\t\t\t\t\t \t for (int v=0; v<listaIdCols.getLength(); v++){\n\t\t\t\t\t \t\t org.w3c.dom.Node nodoIdCols = listaIdCols.item(v);\t\t\t\t\t \t\t \n\t\t\t\t\t \t\t if (nodoIdCols.getNodeType() == Node.ELEMENT_NODE){\n\t\t\t\t\t \t\t\t Element eElementIdCols = (Element) nodoIdCols;\n\t\t\t\t\t \t\t\t colsPK.add(eElementIdCols.getTextContent());\n\t\t\t\t\t \t\t }\n\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}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn colsPK;\n\t}", "title": "" }, { "docid": "52153a9a4260cd66175c98896fa67177", "score": "0.5049266", "text": "private List<Tuple> getTuples(int pageNumber) throws TransactionAbortedException, \n \t\tDbException\n \t{\n \t\tPageId pageId = new HeapPageId(getId(), pageNumber);\n \t\tPage pg = Database.getBufferPool().getPage(tid, pageId, Permissions.READ_ONLY);\n \t\t\n \t\t//create an ArrayList of tuples\n \t\tList<Tuple> list_tuples = new ArrayList<Tuple>();\n \t\t//get all tuples from first page using HeapPage iterator\n \t\tHeapPage heap_pg = (HeapPage)pg;\n \t\tIterator<Tuple> itr = heap_pg.iterator();\n \t\t\n \t\twhile(itr.hasNext())\n \t\t{\n \t\t\tlist_tuples.add(itr.next());\n \t\t}\n \t\treturn list_tuples;\n \t}", "title": "" }, { "docid": "f18eb5fe74b1d96b1730f4ad037b96dd", "score": "0.5044898", "text": "public char[] getRowKeys(){\r\n\t\treturn this.rowKeys;\r\n\t}", "title": "" }, { "docid": "3e277225f0d86bf56673010f90f38b5c", "score": "0.50400984", "text": "Hashtable<Tag, Integer> getUniqueTagTable();", "title": "" }, { "docid": "be5ecd3cb6ab215810ed434d83f587b9", "score": "0.5039108", "text": "public List<String> getColumn(String table) {\n\n List<String> listOfColumn = new ArrayList<>();\n try {\n stmt = connection.createStatement();\n resultSet = stmt.executeQuery(\"SELECT * FROM \" + table + \" where ROWNUM <= 10\");\n ResultSetMetaData rsmd = resultSet.getMetaData();\n for (int i = 1; i <= rsmd.getColumnCount(); i++) {\n String colums = rsmd.getColumnName(i);\n listOfColumn.add(colums);\n }\n close();\n } catch (Exception e) {\n e.getMessage();\n }\n return listOfColumn;\n }", "title": "" }, { "docid": "062491fd884d4f3106eaf2f7690999cc", "score": "0.5033616", "text": "public Tuple2<Long, Row> call(Row row) throws Exception {\n\t\t\t\treturn new Tuple2<Long, Row>(row.getLong(0), row);\r\n\t\t\t}", "title": "" }, { "docid": "48dfd4568740578e7155237d50e3292b", "score": "0.50331014", "text": "public ArrayList<TableItem> getRowsAsArrayList(String tableName)\n {\n return dbData.getTableItemByColumnsAsArrayList(tableName, null, null, false, DbHelper.C_ID);\n }", "title": "" }, { "docid": "26377b330a1bae416c7fdba73d25c69d", "score": "0.50287277", "text": "protected final Object[] getKeyArray() {\r\n\t\treturn m_keyTable;\r\n\t}", "title": "" }, { "docid": "7ac7e4fa2f1f5e1a0293d265ba8544e4", "score": "0.5025523", "text": "public int getAttributeWithMostDistinctValues(PrivateTable table, HashMap<ArrayList, Integer> freqList){\n String attribute /*attribute2*/ ;\n int qIAttributeColumn = 0;\n //int attributeColumn2 = 0;\n TableRow quasiId = table.quasiIden;\n \n //I will make a quasi identifier list of Lists (of all the unique values)\n ArrayList<ArrayList> quasiIden = new ArrayList<>();\n for (int i = 0; i < quasiId.data.size(); i++){\n //it has the list of all values for every quasi identifier column\n quasiIden.add(new ArrayList<>());//wtf does this do again\n }\n ArrayList[] setOfKeys = new ArrayList[freqList.size()];//freqList has distinct keys but it's in row form\n setOfKeys = freqList.keySet().toArray(setOfKeys);\n for(int i = 0; i < setOfKeys.length; i++){\n for(int j = 0; j < setOfKeys[i].size(); j++){\n if(quasiIden.get(j).contains(setOfKeys[i].get(j)) == false)\n quasiIden.get(j).add(setOfKeys[i].get(j)); \n }\n }\n int max = 0;\n //int secondMax = 0;\n for(int i = 0; i < quasiIden.size(); i++){ \n if(quasiIden.get(i).size() > max ){\n max = quasiIden.get(i ).size();\n qIAttributeColumn = i;\n } \n }\n System.out.println(\"qIAttributeColumn - \" + qIAttributeColumn);\n attribute = quasiId.data.get(qIAttributeColumn);\n System.out.println(attribute);\n return table.topRow.data.indexOf(attribute); \n }", "title": "" }, { "docid": "180af75fc058e5ce84800c83a0206625", "score": "0.50231725", "text": "public org.apache.spark.unsafe.KVIterator<UnsafeRow, UnsafeRow> rowIterator() {\n/* 386 */ return batch.rowIterator();\n/* 387 */ }", "title": "" }, { "docid": "5391f30b4a598219523394892d526939", "score": "0.50219166", "text": "public ArrayList<int[]> updateValuesRecord()\n\t{\n\t\tArrayList<int[]> arr = new ArrayList<int[]>();\n\t\t\n\t\tfor(int i = 0; i < recordCount; i++)\n\t\t{\n\t\t\t arr.add(hmNode.get(i).getKeys(i));\n\t\t}\n\t\t\n\t\treturn arr;\n\t}", "title": "" }, { "docid": "95bed33ad78f60f807d1612ee2824c14", "score": "0.50211805", "text": "Row next();", "title": "" }, { "docid": "06fa26843df047da4cac6bbc5c6bd490", "score": "0.50121784", "text": "private int[] getSelectedKeys() {\n\t\tint[] rows = apptTable.getSelectedRows();\n\t\tList<Integer> keyList = new ArrayList<Integer>();\n\t\tfor (int i = 0; i < rows.length; ++i) {\n\t\t\tint row = rows[i];\n\t\t\tTableSorter tm = (TableSorter) apptTable.getModel();\n\t\t\tkeyList.add((Integer) tm.getValueAt(row, 2));\n\t\t}\n\n\t\tint[] keys = new int[keyList.size()];\n\t\tfor (int i = 0; i < keyList.size(); ++i)\n\t\t\tkeys[i] = keyList.get(i).intValue();\n\n\t\treturn keys;\n\t}", "title": "" }, { "docid": "7ad400971a5a46c89a8fbbef741b8108", "score": "0.5007023", "text": "public ArrayList<TableItem> getRowsAsArrayList(String tableName, String[] inputColumnNames, String[] values)\n {\n return dbData.getTableItemByColumnsAsArrayList(tableName, inputColumnNames, values, false, DbHelper.C_ID);\n }", "title": "" }, { "docid": "8d82c4e62fb57efcbe6a724a8aa4c2ad", "score": "0.50027555", "text": "public abstract Map<String, Integer> getDvTable();", "title": "" }, { "docid": "975ea703cfed9a11978a6e7e887b5d99", "score": "0.4982609", "text": "public Tuple getValueTuple(NullableTuple ntup, int index, Object key) throws ExecException {\n Object origKey = this.key;\n this.key = key;\n Tuple retTuple = super.getValueTuple(ntup, index);\n this.key = origKey;\n return retTuple;\n }", "title": "" }, { "docid": "96c86b556e279393d83640a9f43d76e8", "score": "0.4975843", "text": "public List getValues() {\r\n return bndSJTable.getValues();\r\n }", "title": "" }, { "docid": "dad26d6c1847aa37b57952385d8f40d1", "score": "0.49695116", "text": "java.util.List<com.mysql.cj.x.protobuf.MysqlxDatatypes.Any> \n getValueList();", "title": "" }, { "docid": "2f0bac837dea86ba0e0aa11ae93f259b", "score": "0.49640158", "text": "public String[] queryDatabaseForPrimaryKeys(Connection conn)\r\n\t{\r\n\t\tResultSet rs = null;\r\n\t\tString selectStmt = \"SELECT P_Name FROM PLAYER_CHAR\";\r\n\t\tString selectCount = \"SELECT COUNT(*) FROM PLAYER_CHAR\";\r\n\t\tString[] data = null;\r\n\r\n\t\ttry\r\n\t\t{\r\n\t\t\t// Retrieve the count of primary keys in the table\r\n\t\t\tStatement stmt = conn.createStatement();\r\n\t\t\trs = stmt.executeQuery(selectCount);\r\n\t\t\tint count = 1;\r\n\t\t\twhile (rs.next())\r\n\t\t\t{\r\n\t\t\t\tcount = rs.getInt(1);\r\n\t\t\t}\r\n\r\n\t\t\tdata = new String[count + 1];\r\n\t\t\tdata[0] = \"(new entry)\";\r\n\r\n\t\t\t// Retrieve the primary keys from the table\r\n\t\t\t// and store each one in an array of Strings\r\n\t\t\trs = stmt.executeQuery(selectStmt);\r\n\t\t\tint i = 0;\r\n\t\t\twhile (rs.next() && i < data.length)\r\n\t\t\t{\r\n\t\t\t\tdata[i + 1] = rs.getString(\"P_Name\");\r\n\t\t\t\ti++;\r\n\t\t\t}\r\n\t\t} catch (SQLException e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\treturn data;\r\n\t}", "title": "" }, { "docid": "0adaa5e3261877ef4592216dbe1328e1", "score": "0.49635804", "text": "public java.util.List<io.dstore.engine.procedures.ImGetCorrespondingValuesAd.Response.Row> getRowList() {\n return row_;\n }", "title": "" }, { "docid": "6a0af03a5acf65024d5e54a82afb1751", "score": "0.49635103", "text": "List<Object> getFieldDelimitedAndGroupFieldDelimiteds(TableDelimited table);", "title": "" }, { "docid": "81c03afa616a6aebdba1146e078bc2ac", "score": "0.4961575", "text": "Integer[] getValuesInRow( int rowID ) \n\t\t{ \n\t\t\tif ( rowID < m_values_curr.length ) return m_values_curr[ rowID ]; \n\t\t\telse return null; \n\t\t}", "title": "" }, { "docid": "0740cafa7f5eb613ff3b7fd738a7e608", "score": "0.49528235", "text": "public static List<Etrans> tableToList(DataTable table) throws Exception {\n List<Etrans> retVal = new List<Etrans>();\n Etrans etrans;\n for (int i = 0;i < table.Rows.Count;i++)\n {\n etrans = new Etrans();\n etrans.EtransNum = PIn.Long(table.Rows[i][\"EtransNum\"].ToString());\n etrans.DateTimeTrans = PIn.DateT(table.Rows[i][\"DateTimeTrans\"].ToString());\n etrans.ClearingHouseNum = PIn.Long(table.Rows[i][\"ClearingHouseNum\"].ToString());\n etrans.Etype = (EtransType)PIn.Int(table.Rows[i][\"Etype\"].ToString());\n etrans.ClaimNum = PIn.Long(table.Rows[i][\"ClaimNum\"].ToString());\n etrans.OfficeSequenceNumber = PIn.Int(table.Rows[i][\"OfficeSequenceNumber\"].ToString());\n etrans.CarrierTransCounter = PIn.Int(table.Rows[i][\"CarrierTransCounter\"].ToString());\n etrans.CarrierTransCounter2 = PIn.Int(table.Rows[i][\"CarrierTransCounter2\"].ToString());\n etrans.CarrierNum = PIn.Long(table.Rows[i][\"CarrierNum\"].ToString());\n etrans.CarrierNum2 = PIn.Long(table.Rows[i][\"CarrierNum2\"].ToString());\n etrans.PatNum = PIn.Long(table.Rows[i][\"PatNum\"].ToString());\n etrans.BatchNumber = PIn.Int(table.Rows[i][\"BatchNumber\"].ToString());\n etrans.AckCode = PIn.String(table.Rows[i][\"AckCode\"].ToString());\n etrans.TransSetNum = PIn.Int(table.Rows[i][\"TransSetNum\"].ToString());\n etrans.Note = PIn.String(table.Rows[i][\"Note\"].ToString());\n etrans.EtransMessageTextNum = PIn.Long(table.Rows[i][\"EtransMessageTextNum\"].ToString());\n etrans.AckEtransNum = PIn.Long(table.Rows[i][\"AckEtransNum\"].ToString());\n etrans.PlanNum = PIn.Long(table.Rows[i][\"PlanNum\"].ToString());\n etrans.InsSubNum = PIn.Long(table.Rows[i][\"InsSubNum\"].ToString());\n retVal.Add(etrans);\n }\n return retVal;\n }", "title": "" }, { "docid": "36c5e5ea501fadca98b2671015cf4703", "score": "0.4952229", "text": "public ArrayList<HashMap<String, String>> getRecords() {\n\r\n\t\tCursor c = db.query(DATABASE_TABLE, col_text, null, null, null, null,\r\n\t\t\t\torder_by + \" DESC\");\r\n\r\n\t\t// int id_pos = c.getColumnIndex(KEY_ROWID);\r\n\r\n\t\tint name_pos = c.getColumnIndex(KEY_NAME);\r\n\r\n\t\tint add1_pos = c.getColumnIndex(KEY_ADDRESS1);\r\n\r\n\t\tint add2_pos = c.getColumnIndex(KEY_ADDRESS2);\r\n\r\n\t\tint area_pos = c.getColumnIndex(KEY_AREA);\r\n\r\n\t\tint pin_pos = c.getColumnIndex(KEY_PIN);\r\n\r\n\t\tint state_pos = c.getColumnIndex(KEY_STATE);\r\n\r\n\t\tint country_pos = c.getColumnIndex(KEY_COUNTRY);\r\n\r\n\t\tint email_pos = c.getColumnIndex(KEY_EMAIL);\r\n\r\n\t\tint phone_pos = c.getColumnIndex(KEY_PHONE);\r\n\r\n\t\tint pan_pos = c.getColumnIndex(KEY_PAN);\r\n\r\n\t\tint usertype_pos = c.getColumnIndex(KEY_USERTYPE);\r\n\r\n\t\tfor (c.moveToFirst(); !(c.isAfterLast()); c.moveToNext()) {\r\n\r\n\t\t\tString name = c.getString(name_pos);\r\n\r\n\t\t\tString add1 = c.getString(add1_pos);\r\n\r\n\t\t\tString add2 = c.getString(add2_pos);\r\n\r\n\t\t\tString area = c.getString(area_pos);\r\n\r\n\t\t\tString pin = c.getString(pin_pos);\r\n\r\n\t\t\tString state = c.getString(state_pos);\r\n\r\n\t\t\tString country = c.getString(country_pos);\r\n\r\n\t\t\tString email = c.getString(email_pos);\r\n\r\n\t\t\tString phone = c.getString(phone_pos);\r\n\r\n\t\t\tString pan = c.getString(pan_pos);\r\n\r\n\t\t\tString usertype = c.getString(usertype_pos);\r\n\r\n\t\t\tHashMap<String, String> map = new HashMap<String, String>();\r\n\r\n\t\t\t// adding each child node to HashMap key => value\r\n\r\n\t\t\tmap.put(KEY_NAME, name);\r\n\r\n\t\t\tmap.put(KEY_ADDRESS1, add1);\r\n\r\n\t\t\tmap.put(KEY_ADDRESS2, add2);\r\n\r\n\t\t\tmap.put(KEY_AREA, area);\r\n\r\n\t\t\tmap.put(KEY_PIN, pin);\r\n\r\n\t\t\tmap.put(KEY_STATE, state);\r\n\r\n\t\t\tmap.put(KEY_COUNTRY, country);\r\n\r\n\t\t\tmap.put(KEY_EMAIL, email);\r\n\r\n\t\t\tmap.put(KEY_PHONE, phone);\r\n\r\n\t\t\tmap.put(KEY_PAN, pan);\r\n\r\n\t\t\tmap.put(KEY_USERTYPE, usertype);\r\n\r\n\t\t\t// adding HashList to ArrayList\r\n\t\t\tuserList.add(map);\r\n\t\t}\r\n\t\tc.close();\r\n\r\n\t\treturn userList;\r\n\r\n\t}", "title": "" } ]
4331b7f58497e784af783df668ce50fd
/ renamed from: c
[ { "docid": "5bb2262640878ca065afc3642fb4880f", "score": "0.0", "text": "public int m2332c() {\n return this.f1432d;\n }", "title": "" } ]
[ { "docid": "1e50fdc0a079e9ccff8941a7c9d7b183", "score": "0.66310865", "text": "@Override\n\tpublic void c() {\n\t\t\n\t}", "title": "" }, { "docid": "1e50fdc0a079e9ccff8941a7c9d7b183", "score": "0.66310865", "text": "@Override\n\tpublic void c() {\n\t\t\n\t}", "title": "" }, { "docid": "a94a6d9e59f3f2dad4d922f47778734d", "score": "0.6501937", "text": "public void c() {}", "title": "" }, { "docid": "b06757d3db76f334f5b5b81a8f130cac", "score": "0.64215803", "text": "@Override\n public void c() {\n }", "title": "" }, { "docid": "db6bac8aa4d040ff79e8dffe4167b7d3", "score": "0.63199997", "text": "interface C1048c {\n /* renamed from: c */\n void mo5718c();\n }", "title": "" }, { "docid": "df60db6481e84d315bdbaeb9ca8b54f6", "score": "0.6264676", "text": "void mo7285a(C45920c c45920c);", "title": "" }, { "docid": "87a21cdda67b9067a667e729015b416b", "score": "0.6158433", "text": "void mo94846c();", "title": "" }, { "docid": "ba494dac9e2914cd43b3607939171f80", "score": "0.6157089", "text": "void mo119517c();", "title": "" }, { "docid": "f046e5ece3fa4749560acebf8d3d7232", "score": "0.615034", "text": "java.lang.String getC();", "title": "" }, { "docid": "88b9b4853e158c24c985603f8f46926a", "score": "0.61378765", "text": "public final int c(int c) {\n/* 378 */ return this.ae.a.m[c];\n/* */ }", "title": "" }, { "docid": "36dd7cff00be88f3e0bb29cb4a2e5f0b", "score": "0.6121328", "text": "void mo11420c();", "title": "" }, { "docid": "6f2eef930733373963cd2e976d0c721b", "score": "0.60990196", "text": "String getC();", "title": "" }, { "docid": "698bd80f57144efbbedb7bc98f78a626", "score": "0.6075888", "text": "void mo11594c();", "title": "" }, { "docid": "fbc142e9d81d0176d2c3ce6c20da0f68", "score": "0.6060137", "text": "void mo5523a(C1926o c1926o);", "title": "" }, { "docid": "997052ae05c0f7d9d47cbf6b599dce2e", "score": "0.6056655", "text": "void mo15373c();", "title": "" }, { "docid": "8bec9ec5f49954d29a642dcd9e71166e", "score": "0.6051116", "text": "void mo5529c();", "title": "" }, { "docid": "5d0ceef421c5109f3e4d9dfe82955ac5", "score": "0.60403717", "text": "void mo5718c();", "title": "" }, { "docid": "c91e15bd69a0c64d139e91d5c9836a53", "score": "0.6037556", "text": "void mo1088e(C1310b c1310b);", "title": "" }, { "docid": "d53b1f29bba6cf93e95876d70fcb48ed", "score": "0.60246253", "text": "void mo100383c();", "title": "" }, { "docid": "5262e9def483af2b41c887a76f57a6f3", "score": "0.6002194", "text": "public void mo1286c() {\n }", "title": "" }, { "docid": "8a32cf92eff03c70bc79f6853b9fb468", "score": "0.59470975", "text": "void mo29068u();", "title": "" }, { "docid": "f0cc2a9e9ecb01fc21e265bbd70126e5", "score": "0.5939744", "text": "public abstract void mo1277a(C1894a c1894a);", "title": "" }, { "docid": "60946184725554c1cec7e8d45bdd6d7a", "score": "0.59059983", "text": "C2043fq mo13924c();", "title": "" }, { "docid": "a55a150557f80abcbd733ee3162b0661", "score": "0.5865279", "text": "private void m18301a() {\n }", "title": "" }, { "docid": "1bce2a310aa52b19f3be7b0aac6a1a9e", "score": "0.5864377", "text": "public abstract void mo12293c();", "title": "" }, { "docid": "ec76ad319b8986015b425de9783b1014", "score": "0.58619803", "text": "void mo1089f(C1310b c1310b);", "title": "" }, { "docid": "644691e97067f6b679ec01e343328802", "score": "0.5856158", "text": "File mo96288c();", "title": "" }, { "docid": "e0a7fd165dcae8d419623119b18bc4e9", "score": "0.5848499", "text": "void mo49267c(C18741c cVar);", "title": "" }, { "docid": "4d45dc3fea871476ef05fb7a1f59f998", "score": "0.58257484", "text": "@Override\n\tpublic void genC(PW pw) {\n\t\t\n\t}", "title": "" }, { "docid": "e7317df0048a21a367c84f71c1012fdf", "score": "0.5824434", "text": "public abstract void mo108273c();", "title": "" }, { "docid": "78ab022b842ef6615d4112cd9e182b52", "score": "0.58239186", "text": "C1557h mo1232c();", "title": "" }, { "docid": "165290837ce2f0737ba3004bb85e1af5", "score": "0.58120984", "text": "void mo649a(C0759b c0759b);", "title": "" }, { "docid": "16fad75b6697782fd43384f36524bcb6", "score": "0.58114225", "text": "protected void a()\r\n/* 10: */ {\r\n/* 11:20 */ this.c = new cbu(0.5F);\r\n/* 12:21 */ this.d = new cbu(1.0F);\r\n/* 13: */ }", "title": "" }, { "docid": "91293370ed0c81fe812e09deb7cb1c74", "score": "0.58092535", "text": "void mo11520c(String str);", "title": "" }, { "docid": "656716153b22493864f462d3892b023d", "score": "0.5796636", "text": "public abstract void mo79857c();", "title": "" }, { "docid": "0078dfae5cb5678c8d96f67a9c83738a", "score": "0.5783945", "text": "boolean mo18679c(C5986c cVar);", "title": "" }, { "docid": "cd57cb25484f51dac87673dc1642f632", "score": "0.5780036", "text": "public abstract void mo1276a(C1737a c1737a);", "title": "" }, { "docid": "64f1afd83083e0e7270e9f639fd295e0", "score": "0.5776239", "text": "public interface C1311c {\n /* renamed from: b */\n boolean mo1085b(C1310b c1310b);\n\n /* renamed from: c */\n boolean mo1086c(C1310b c1310b);\n\n /* renamed from: d */\n boolean mo1087d(C1310b c1310b);\n\n /* renamed from: e */\n void mo1088e(C1310b c1310b);\n\n /* renamed from: f */\n void mo1089f(C1310b c1310b);\n\n /* renamed from: i */\n boolean mo1090i();\n}", "title": "" }, { "docid": "eaaaeedf96c1e26aaa7946558dc5f352", "score": "0.5771415", "text": "@Override\n protected void visit(LOConst cs)\n throws VisitorException {\n\n }", "title": "" }, { "docid": "55640419327a584902412e6739817b09", "score": "0.57694185", "text": "public abstract int mo108209a(C45391c cVar);", "title": "" }, { "docid": "f3735638000bc6f59c62c681500d1864", "score": "0.57667476", "text": "void mo16154c();", "title": "" }, { "docid": "87986eeb0ab6a2497265f2ac04778a59", "score": "0.57589585", "text": "protected interface C4775c {\n /* renamed from: a */\n void mo16108a(boolean z, File file);\n }", "title": "" }, { "docid": "1be79f23bcc45d29488346e496adf778", "score": "0.5758446", "text": "public static java.lang.String c() {\n /*\n java.lang.String r0 = \"0000000000000000\"\n r1 = 0\n java.io.FileInputStream r2 = new java.io.FileInputStream // Catch:{ Exception -> 0x0074, all -> 0x005d }\n java.io.File r3 = new java.io.File // Catch:{ Exception -> 0x0074, all -> 0x005d }\n java.lang.String r4 = \"/proc/cpuinfo\"\n r3.<init>(r4) // Catch:{ Exception -> 0x0074, all -> 0x005d }\n r2.<init>(r3) // Catch:{ Exception -> 0x0074, all -> 0x005d }\n java.io.InputStreamReader r3 = new java.io.InputStreamReader // Catch:{ Exception -> 0x005b, all -> 0x0058 }\n r3.<init>(r2) // Catch:{ Exception -> 0x005b, all -> 0x0058 }\n java.io.LineNumberReader r4 = new java.io.LineNumberReader // Catch:{ Exception -> 0x0056, all -> 0x0054 }\n r4.<init>(r3) // Catch:{ Exception -> 0x0056, all -> 0x0054 }\n r1 = 1\n r5 = 1\n L_0x001b:\n r6 = 100\n if (r5 >= r6) goto L_0x004a\n java.lang.String r6 = r4.readLine() // Catch:{ Exception -> 0x0048, all -> 0x0045 }\n if (r6 == 0) goto L_0x004a\n java.lang.String r7 = \"Serial\"\n int r7 = r6.indexOf(r7) // Catch:{ Exception -> 0x0048, all -> 0x0045 }\n if (r7 < 0) goto L_0x0042\n java.lang.String r5 = \":\"\n int r5 = r6.indexOf(r5) // Catch:{ Exception -> 0x0048, all -> 0x0045 }\n int r5 = r5 + r1\n int r1 = r6.length() // Catch:{ Exception -> 0x0048, all -> 0x0045 }\n java.lang.String r1 = r6.substring(r5, r1) // Catch:{ Exception -> 0x0048, all -> 0x0045 }\n java.lang.String r1 = r1.trim() // Catch:{ Exception -> 0x0048, all -> 0x0045 }\n r0 = r1\n goto L_0x004a\n L_0x0042:\n int r5 = r5 + 1\n goto L_0x001b\n L_0x0045:\n r0 = move-exception\n r1 = r4\n goto L_0x0060\n L_0x0048:\n r1 = r4\n goto L_0x0076\n L_0x004a:\n r4.close() // Catch:{ Exception -> 0x004d }\n L_0x004d:\n r3.close() // Catch:{ Exception -> 0x0050 }\n L_0x0050:\n r2.close() // Catch:{ Exception -> 0x0087 }\n goto L_0x0087\n L_0x0054:\n r0 = move-exception\n goto L_0x0060\n L_0x0056:\n goto L_0x0076\n L_0x0058:\n r0 = move-exception\n r3 = r1\n goto L_0x0060\n L_0x005b:\n r3 = r1\n goto L_0x0076\n L_0x005d:\n r0 = move-exception\n r2 = r1\n r3 = r2\n L_0x0060:\n if (r1 == 0) goto L_0x0067\n r1.close() // Catch:{ Exception -> 0x0066 }\n goto L_0x0067\n L_0x0066:\n L_0x0067:\n if (r3 == 0) goto L_0x006e\n r3.close() // Catch:{ Exception -> 0x006d }\n goto L_0x006e\n L_0x006d:\n L_0x006e:\n if (r2 == 0) goto L_0x0073\n r2.close() // Catch:{ Exception -> 0x0073 }\n L_0x0073:\n throw r0\n L_0x0074:\n r2 = r1\n r3 = r2\n L_0x0076:\n if (r1 == 0) goto L_0x007d\n r1.close() // Catch:{ Exception -> 0x007c }\n goto L_0x007d\n L_0x007c:\n L_0x007d:\n if (r3 == 0) goto L_0x0084\n r3.close() // Catch:{ Exception -> 0x0083 }\n goto L_0x0084\n L_0x0083:\n L_0x0084:\n if (r2 == 0) goto L_0x0087\n goto L_0x0050\n L_0x0087:\n if (r0 != 0) goto L_0x008b\n java.lang.String r0 = \"\"\n L_0x008b:\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.alipay.d.a.a.b.b.c():java.lang.String\");\n }", "title": "" }, { "docid": "1e1f745cab288e156f57951acc6f6ec1", "score": "0.5748092", "text": "public abstract void a(a.c cVar);", "title": "" }, { "docid": "9684f916572fc8aba08e0fbd60f29285", "score": "0.5747429", "text": "void mo18681d(C5986c cVar);", "title": "" }, { "docid": "980e5441d6bfa8d32b1fcdde5c213bf1", "score": "0.570794", "text": "void mo5522a(C1909h c1909h);", "title": "" }, { "docid": "9ccd8b58e8ca41802585d21230328942", "score": "0.5705257", "text": "public interface C28488d {\n /* renamed from: F */\n void mo46456F(String str, String str2, int i);\n\n /* renamed from: a */\n void mo46457a(Context context, String str, String str2, int i, String str3, String str4);\n\n /* renamed from: a */\n void mo46458a(Context context, String str, String str2, String str3, int i, int i2, cfh cfh, String str4);\n\n /* renamed from: a */\n void mo46459a(Context context, String str, String str2, String str3, int i, int i2, String str4);\n\n /* renamed from: a */\n void mo46460a(String str, byte[] bArr, String str2, String str3);\n\n /* renamed from: eZ */\n void mo46461eZ(String str, String str2);\n\n /* renamed from: q */\n void mo46462q(String str, String str2, boolean z);\n}", "title": "" }, { "docid": "b3920a029e938044fdd300e4568121a4", "score": "0.5705071", "text": "public interface C20071d {\n /* renamed from: a */\n Context mo53700a();\n\n /* renamed from: b */\n String mo53701b();\n\n /* renamed from: c */\n int mo53702c();\n\n /* renamed from: d */\n String mo53703d();\n\n /* renamed from: e */\n String mo53704e();\n\n /* renamed from: f */\n int mo53705f();\n}", "title": "" }, { "docid": "6051299cd209ea446bb4ee6a2b77d3c2", "score": "0.57034594", "text": "public void mo21811b(C26942j c26942j) {\n }", "title": "" }, { "docid": "e4932d66732cdd6e64aa23936f425878", "score": "0.5700941", "text": "public interface C35477b {\n }", "title": "" }, { "docid": "247911bf6b48665ccc38c09146214c22", "score": "0.56894755", "text": "void mo5521a(C1889b c1889b);", "title": "" }, { "docid": "bb909966ee3d037c324ed2038adf94fb", "score": "0.5689198", "text": "CharSequence mo3100c();", "title": "" }, { "docid": "dd7a00150b5c2e71163d8c684316f9ed", "score": "0.5686678", "text": "public void mo3638c() {\n }", "title": "" }, { "docid": "0b64d09be9a900862e74e49dff973ce7", "score": "0.5675489", "text": "void mo49266b(C18741c cVar);", "title": "" }, { "docid": "9e6337de247a154bfc497fbcdfd5e554", "score": "0.56659406", "text": "public String toString() {\n\t\treturn \"c\";\n\t}", "title": "" }, { "docid": "9841fc5dd9958abb08514a3e3ddc0c44", "score": "0.5662038", "text": "public void mo49267c(C18741c cVar) {\n }", "title": "" }, { "docid": "172be9eaefb0b1c2958e6cec07d5df6a", "score": "0.56552094", "text": "void mo49265a(C18741c cVar);", "title": "" }, { "docid": "2d43b7f01469acd4f92cb49c6e1e1ec5", "score": "0.5648146", "text": "String getCushioning();", "title": "" }, { "docid": "91e9fa2778dc02ee9204ed64f281702c", "score": "0.5642842", "text": "private interface C0184d {\n }", "title": "" }, { "docid": "a3ae4124d6912c41f4fc3153d5bbc51a", "score": "0.5640658", "text": "public interface C5987d {\n /* renamed from: b */\n boolean mo18677b(C5986c cVar);\n\n /* renamed from: c */\n boolean mo18679c(C5986c cVar);\n\n /* renamed from: d */\n void mo18681d(C5986c cVar);\n\n /* renamed from: d */\n boolean mo18682d();\n\n /* renamed from: e */\n void mo18683e(C5986c cVar);\n\n /* renamed from: f */\n boolean mo18684f(C5986c cVar);\n}", "title": "" }, { "docid": "4dd0ba9c04df4101440124910afc08a6", "score": "0.5632385", "text": "public final void mo17895c() {\n }", "title": "" }, { "docid": "93f54a266dac07c904c955de31a73bf7", "score": "0.56307244", "text": "C7361c<_Var> mo15890a(C5685b c5685b);", "title": "" }, { "docid": "6832b7958ae871fb339e882262fe4212", "score": "0.5628818", "text": "public String c()\r\n/* 77: */ {\r\n/* 78: 99 */ return null;\r\n/* 79: */ }", "title": "" }, { "docid": "ca7fc13348707515bc21b779e576c80d", "score": "0.5625153", "text": "File mo96289d();", "title": "" }, { "docid": "5462c361ff524d9c2c3e6529a7e9f2ac", "score": "0.5620906", "text": "@Override\r\n\tpublic void compile(CodeBlock c, Environment e) throws UndeclaredIdentifier, IOException {\n\t\t\r\n\t}", "title": "" }, { "docid": "6873d8e39984045dc8da03641681d124", "score": "0.56186", "text": "public boolean cn()\r\n/* 138: */ {\r\n/* 139: 242 */ return cl();\r\n/* 140: */ }", "title": "" }, { "docid": "6d5cf7b7cf64c1b2c7043cd301b1d08c", "score": "0.56141704", "text": "public final void mo23899c() {\n }", "title": "" }, { "docid": "8c79111c2b0eb1204b33ec864cb2285a", "score": "0.56045395", "text": "public interface C8290a {\n }", "title": "" }, { "docid": "e6c1cc5db627a39ccaacb6dbf07316d9", "score": "0.56030583", "text": "public abstract boolean mo5704c(C45475ag c45475ag);", "title": "" }, { "docid": "1dd3313e5fa7516b89cd6e774320e173", "score": "0.5588311", "text": "void mo18683e(C5986c cVar);", "title": "" }, { "docid": "bfa693894da7f7854a72a025a089e0ff", "score": "0.5580966", "text": "interface C0632c {\n /* renamed from: a */\n void mo5659a(MenuItem menuItem, char c, int i);\n\n /* renamed from: a */\n void mo5660a(MenuItem menuItem, ColorStateList colorStateList);\n\n /* renamed from: a */\n void mo5661a(MenuItem menuItem, Mode mode);\n\n /* renamed from: a */\n void mo5662a(MenuItem menuItem, CharSequence charSequence);\n\n /* renamed from: b */\n void mo5663b(MenuItem menuItem, char c, int i);\n\n /* renamed from: b */\n void mo5664b(MenuItem menuItem, CharSequence charSequence);\n }", "title": "" }, { "docid": "7cae9b5bc32ca04d353bf95f8ecf1cd9", "score": "0.5572951", "text": "int mo5518a(C1930r c1930r, C1919l c1919l);", "title": "" }, { "docid": "eb3d0f6af7c5fabf9aa6e01f8bff21cd", "score": "0.55721813", "text": "interface C0462c {\n /* renamed from: a */\n void mo1056a(MenuItem menuItem, char c, int i);\n\n /* renamed from: a */\n void mo1057a(MenuItem menuItem, ColorStateList colorStateList);\n\n /* renamed from: a */\n void mo1058a(MenuItem menuItem, Mode mode);\n\n /* renamed from: a */\n void mo1059a(MenuItem menuItem, CharSequence charSequence);\n\n /* renamed from: b */\n void mo1060b(MenuItem menuItem, char c, int i);\n\n /* renamed from: b */\n void mo1061b(MenuItem menuItem, CharSequence charSequence);\n }", "title": "" }, { "docid": "45786d1095e25735b46b3097b211dadd", "score": "0.557021", "text": "public abstract int mo6191c();", "title": "" }, { "docid": "41e3abd2de4f1b2faf5dc9e368e86e60", "score": "0.5569497", "text": "C7361c<_Var> mo15891b(C5703d c5703d);", "title": "" }, { "docid": "85603d4efecc578f590e71e907a9617b", "score": "0.5562139", "text": "void mo30338iC(String str);", "title": "" }, { "docid": "c8bc85a021b7ce03d93bdd4c52f2cd3c", "score": "0.55614203", "text": "public boolean cy()\r\n/* 236: */ {\r\n/* 237: 326 */ return w(16);\r\n/* 238: */ }", "title": "" }, { "docid": "4634907995acb86c45057411c337bed6", "score": "0.55597585", "text": "C46759do mo41908e();", "title": "" }, { "docid": "2e15f74af4b18e3c46c1cf814e8253af", "score": "0.5556574", "text": "public interface C1307a {\n }", "title": "" }, { "docid": "dc7d58d74998f7823c9cae850dd7115a", "score": "0.5552403", "text": "public final int d(int c) {\n/* 389 */ return this.ae.a.n[c];\n/* */ }", "title": "" }, { "docid": "d7cea394d88a207e7cf238e0bbcd6e37", "score": "0.5543832", "text": "public af c()\r\n/* 31: */ {\r\n/* 32:87 */ return this.a.n();\r\n/* 33: */ }", "title": "" }, { "docid": "9b1f03bfe56348e29966c29843881ce9", "score": "0.5539907", "text": "public void mo49266b(C18741c cVar) {\n }", "title": "" }, { "docid": "65b4a52e3a5786d726f378887cc7ae2a", "score": "0.5539863", "text": "File mo96287b();", "title": "" }, { "docid": "20be3e47f42c0dd3fabcae68a1b7aa4b", "score": "0.55319357", "text": "public int cj()\r\n/* 76: */ {\r\n/* 77: 186 */ return this.data.getByte(19);\r\n/* 78: */ }", "title": "" }, { "docid": "95448e1988a9b80b552700312a18d707", "score": "0.55283326", "text": "interface C2041fo {\n /* renamed from: a */\n int mo13922a();\n\n /* renamed from: b */\n boolean mo13923b();\n\n /* renamed from: c */\n C2043fq mo13924c();\n}", "title": "" }, { "docid": "628966336d9f6e7e60bebe43d09ec66c", "score": "0.55278236", "text": "public void cltd() {\n\n }", "title": "" }, { "docid": "1916991662e321a937bddb6c5d6f4c80", "score": "0.55248475", "text": "void mo20079b();", "title": "" }, { "docid": "66c74d203d677f9933f6f07226ce6a3e", "score": "0.5519675", "text": "boolean mo1086c(C1310b c1310b);", "title": "" }, { "docid": "0fbb1f1f15af82a39a60fc0134c720d7", "score": "0.55195343", "text": "public int cA()\r\n/* 272: */ {\r\n/* 273: 355 */ return this.bo;\r\n/* 274: */ }", "title": "" }, { "docid": "7df02f3b62022e98c78f33da9a456d69", "score": "0.5517829", "text": "public interface C37561an {\n /* renamed from: c */\n void mo94846c();\n}", "title": "" }, { "docid": "370e37ddaee27735b4090b2c9a33a192", "score": "0.55162233", "text": "public int c()\r\n/* 70: */ {\r\n/* 71: 74 */ return this.f;\r\n/* 72: */ }", "title": "" }, { "docid": "9351bbef3a6a929f8196b35b0de1a4d3", "score": "0.5513633", "text": "public int getCompULY(int c) {\n return 0;\n }", "title": "" }, { "docid": "49a7a76c7e7bec52e93bec745db31aaa", "score": "0.5512301", "text": "public int getCompSubsY(int c) {\n return 1;\n }", "title": "" }, { "docid": "8dd6a2912f540d28725bf7312fd7e35e", "score": "0.55105346", "text": "void mo11414b();", "title": "" }, { "docid": "fec601082d754de9f306808a534fa446", "score": "0.5507031", "text": "public void mo49265a(C18741c cVar) {\n }", "title": "" }, { "docid": "a2e8453ace831a5ee57535d9cf29149e", "score": "0.5502251", "text": "C0380o mo5730b();", "title": "" }, { "docid": "4892512fbf4964590d039517af9395de", "score": "0.5502053", "text": "public int getCompSubsX(int c) {\n return 1;\n }", "title": "" }, { "docid": "35cff01da46c81e25c5815851f001493", "score": "0.5501927", "text": "public interface C12917f {\n}", "title": "" }, { "docid": "9e927d17fd5d7bf51372ab77690e081a", "score": "0.5500468", "text": "void mo40265a();", "title": "" }, { "docid": "136383934af3af32c8850c6dd3d540d7", "score": "0.549986", "text": "public interface C0586b {\n /* renamed from: a */\n int mo3098a();\n\n /* renamed from: b */\n String mo3099b();\n\n /* renamed from: c */\n CharSequence mo3100c();\n\n /* renamed from: d */\n C0585a mo3101d();\n }", "title": "" }, { "docid": "659d7934ef33bad8d479ca464068f9f3", "score": "0.54987526", "text": "public int c(bec parambec)\r\n/* 24: */ {\r\n/* 25:33 */ return ((azj)parambec.b(a)).a();\r\n/* 26: */ }", "title": "" } ]
7ef0cd5013641d4eed73fb5d469bf4e9
/ Create and display the form
[ { "docid": "bc5505d84a927a19bdee96bab04bdbe3", "score": "0.0", "text": "public static void main(String args[]) throws FileNotFoundException {\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n new Tarifa().setVisible(true);\n }\n });\n }", "title": "" } ]
[ { "docid": "d659f94e02c35251110bb62546ffc541", "score": "0.78871393", "text": "FORM createFORM();", "title": "" }, { "docid": "3ae2dda271c477faa4dcb1c844ac2e40", "score": "0.72069126", "text": "public static Result newForm() {\n return ok(newForm.render(palletForm, setOfArticleForm));\n }", "title": "" }, { "docid": "3c984d46ea8680d348cb671b2752197f", "score": "0.67488194", "text": "public static Result startNewForm() {\r\n\t\tString formName = ChangeOrderForm.NAME;\r\n\t\tDecision firstDecision = CMSGuidedFormFill.startNewForm(formName,\r\n\t\t\t\tCMSSession.getEmployeeName(), CMSSession.getEmployeeId());\r\n\t\treturn ok(backdrop.render(firstDecision));\r\n\t}", "title": "" }, { "docid": "af76d62985851d797d5e0c687370e68b", "score": "0.6683667", "text": "@RequestMapping(\"showForm\")\n\tpublic String showForm( Model theModel) {\n\t\t\n\t\t//create a student\n\t\tStudent theStudent = new Student();\n\t\t\n\t\t//add student to the model\n\t\ttheModel.addAttribute(\"student\", theStudent);\n\t\t\n\t\treturn \"student-form\";\n\t}", "title": "" }, { "docid": "7852196b5a66669a060b93380c21fbae", "score": "0.65669", "text": "public frmNewArtist() {\n initComponents();\n lblID.setText(Controller.Agent.ManageController.getNewArtistID());\n lblGreeting.setText(\"Dear \"+iMuzaMusic.getLoggedUser().getFirstName()+\", please use the form below to add an artist to your ranks.\");\n \n }", "title": "" }, { "docid": "2fd50f155cad29b99a913e7fc3372f6d", "score": "0.6534331", "text": "public CreateAccountGUI() throws Exception{\n\r\n\t\tsuper();\r\n\r\n\t\tsetTitle(\"Create an account\");\r\n\t\tsetSize(600, 400);\r\n\t\tsetBackground(Color.CYAN);\r\n\t\tsetResizable(false);\r\n\t\tsetDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);\r\n\t\tsetLocationRelativeTo(null);\r\n\r\n\t\tString[] labels = {\"Username: \", \"First Name: \", \"Surname: \",\r\n \"Mobile Number: \", \"Date Of Birth: \", \"City: \",\n \"Profile Pic (e.g. pic.png): \"};\n\t\tint input = labels.length;\n\n ArrayList<JTextField> fields = new ArrayList<JTextField>();\n\n\t\tJPanel create = new JPanel(new SpringLayout());\r\n\t\tfor (int i = 0; i < input; i++) {\r\n\t\t\tJLabel para = new JLabel(labels[i], JLabel.TRAILING);\r\n\t\t\tcreate.add(para);\r\n\t\t\tJTextField form = new JTextField(10);\n fields.add(form);\n\t\t\tpara.setLabelFor(form);\r\n\t\t\tcreate.add(form);\r\n\t\t\tsuper.add(create);\r\n\t\t}\r\n\t\tJButton fin = new JButton(\"Create\");\r\n\t\tfin.addActionListener(new ActionListener(){\r\n\t\t\tpublic void actionPerformed(ActionEvent sendMessage){\n try\n {\n String username = fields.get(0).getText();\n String firstname = fields.get(1).getText();\n String surname = fields.get(2).getText();\n String mobnum = fields.get(3).getText();\n String dob = fields.get(4).getText();\n String city = fields.get(5).getText();\n String imgpath = fields.get(6).getText();\n Account acc = new Account(username, firstname, surname,\n mobnum, dob, city, 0, null, imgpath);\n ReadWriteAccount rwa = new ReadWriteAccount(\"data.db\");\n rwa.write(acc);\n get_main().set_home(acc);\n dispose();\n }\n catch(Exception e)\n {\n System.out.println(e);\n }\n\t\t\t}\r\n\t\t});\r\n\t\tsuper.add(fin, BorderLayout.SOUTH);\r\n\t\tCreateAccountGUI.makeForm(create,\r\n\t\t\t\tinput, 2,\r\n\t\t\t\t6, 6,\r\n\t\t\t\t20, 20);\n\n setVisible(true);\n\r\n\t}", "title": "" }, { "docid": "32160a91a6cffd2d1a59a7149138b53f", "score": "0.6516789", "text": "public void buildAndShowMenuForm() {\n SimpleForm.Builder builder =\n SimpleForm.builder()\n .translator(MinecraftLocale::getLocaleString, session.locale())\n .title(\"gui.advancements\");\n\n List<String> rootAdvancementIds = new ArrayList<>();\n for (Map.Entry<String, GeyserAdvancement> advancement : storedAdvancements.entrySet()) {\n if (advancement.getValue().getParentId() == null) { // No parent means this is a root advancement\n builder.button(MessageTranslator.convertMessage(advancement.getValue().getDisplayData().getTitle(), session.locale()));\n rootAdvancementIds.add(advancement.getKey());\n }\n }\n\n if (rootAdvancementIds.isEmpty()) {\n builder.content(\"advancements.empty\");\n }\n\n builder.validResultHandler((response) -> {\n String id = rootAdvancementIds.get(response.clickedButtonId());\n if (!id.equals(\"\")) {\n if (id.equals(currentAdvancementCategoryId)) {\n // The server thinks we are already on this tab\n buildAndShowListForm();\n } else {\n // Send a packet indicating that we intend to open this particular advancement window\n ServerboundSeenAdvancementsPacket packet = new ServerboundSeenAdvancementsPacket(id);\n session.sendDownstreamPacket(packet);\n // Wait for a response there\n }\n }\n });\n\n session.sendForm(builder);\n }", "title": "" }, { "docid": "9d3a8416f3556f73086f81e27976e4b1", "score": "0.647264", "text": "public Form getCreationForm() throws ProcessManagerException {\r\n try {\r\n Action creation = processModel.getCreateAction();\r\n return processModel.getPublicationForm(creation.getName(), currentRole,\r\n getLanguage());\r\n } catch (WorkflowException e) {\r\n throw new ProcessManagerException(\"SessionController\",\r\n \"processManager.ERR_NO_CREATION_FORM\", e);\r\n }\r\n }", "title": "" }, { "docid": "5fdd6e5834ab43f63a09bb11f5262c42", "score": "0.6467334", "text": "private void buildView() {\n this.setHeaderInfo(model.getHeaderInfo());\n\n CWButtonPanel buttonPanel = this.getButtonPanel();\n \n buttonPanel.add(saveButton);\n buttonPanel.add(saveAndCloseButton);\n buttonPanel.add(cancelButton);\n \n FormLayout layout = new FormLayout(\"pref, 4dlu, 200dlu, 4dlu, min\",\n \"pref, 2dlu, pref, 2dlu, pref, 2dlu, pref\"); // rows\n\n layout.setRowGroups(new int[][]{{1, 3, 5}});\n \n CellConstraints cc = new CellConstraints();\n this.getContentPanel().setLayout(layout);\n \n this.getContentPanel().add(nameLabel, cc.xy (1, 1));\n this.getContentPanel().add(nameTextField, cc.xy(3, 1));\n this.getContentPanel().add(descLabel, cc.xy(1, 3));\n this.getContentPanel().add(descTextField, cc.xy(3, 3));\n this.getContentPanel().add(amountLabel, cc.xy(1, 5));\n this.getContentPanel().add(amountTextField, cc.xy(3, 5));\n }", "title": "" }, { "docid": "82fabc3d5d3f3cae29e7a718da847736", "score": "0.64596075", "text": "@Override\n\tpublic void createForm(ERForm form) {\n\t\t\tString sql = \"insert into project1.reimbursementInfo (userName, fullName, thedate, eventstartdate, thelocation, description, thecost, gradingformat, passingpercentage, eventtype, filename,status,reason) values (?,?,?,?,?,?,?,?,?,?,?,?,?);\";\n\t\t\ttry {PreparedStatement stmt = conn.prepareCall(sql);\n\t\t\t//RID should auto increment, so this isnt necessary\n\t\t\t\n\t\t\tstmt.setString(1, form.getUserName());\n\t\t\tstmt.setString(2, form.getFullName());\n\t\t\tstmt.setDate(3, Date.valueOf(form.getTheDate()));\n\t\t\tstmt.setDate(4, Date.valueOf(form.getEventStartDate()));\n\t\t\tstmt.setString(5, form.getTheLocation());\n\t\t\tstmt.setString(6, form.getDescription());\n\t\t\tstmt.setDouble(7, form.getTheCost());\n\t\t\tstmt.setString(8, form.getGradingFormat());\n\t\t\tstmt.setString(9, form.getPassingPercentage());\n\t\t\tstmt.setString(10, form.getEventType());\n\t\t\tstmt.setString(11, form.getFileName());\n\t\t\tstmt.setString(12, \"pending\");\n\t\t\tstmt.setString(13, \"\");\n\t\t\tstmt.executeUpdate();\n\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "a564eb9b0a7fe5611a9769032775f959", "score": "0.64408696", "text": "public createNew(){\n\t\tsuper(\"Create\"); // title for the frame\n\t\t//layout as null\n\t\tgetContentPane().setLayout(null);\n\t\t//get the background image\n\t\ttry {\n\t\t\tbackground =\n\t\t\t\t\tnew ImageIcon (ImageIO.read(getClass().getResource(\"Wallpaper.jpg\")));\n\t\t}//Catch for file error\n\t\tcatch (IOException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tJOptionPane.showMessageDialog(null, \n\t\t\t\t\t\"ERROR: File(s) Not Found\\n Please Check Your File Format\\n\"\n\t\t\t\t\t\t\t+ \"and The File Name!\");\n\t\t}\n\t\t//Initialize all of the compenents \n\t\tlblBackground = new JLabel (background);\n\t\tlblTitle = new JLabel (\"Create Menu\");\n\t\tlblTitle.setFont(new Font(\"ARIAL\",Font.ITALIC, 30));\n\t\tlblName = new JLabel(\"Please Enter Your First Name.\");\n\t\tlblLastName= new JLabel (\"Please Enter Your Last Name.\");\n\t\tlblPhoneNumber = new JLabel (\"Please Enter Your Phone Number.\");\n\t\tlblAddress = new JLabel (\"Please Enter Your Address.\");\n\t\tlblMiddle = new JLabel (\"Please Enter Your Middle Name (Optional).\");\n\t\tbtnCreate = new JButton (\"Create\");\n\t\tbtnBack = new JButton (\"Back\");\n\t\t//set the font\n\t\tlblName.setFont(new Font(\"Times New Roman\",Font.BOLD, 18));\n\t\tlblLastName.setFont(new Font(\"Times New Roman\",Font.BOLD, 18));\n\t\tlblPhoneNumber.setFont(new Font(\"Times New Roman\",Font.BOLD, 18));\n\t\tlblAddress.setFont(new Font(\"Times New Roman\",Font.BOLD, 18));\n\t\tlblMiddle.setFont(new Font(\"Times New Roman\",Font.BOLD, 18));\n\n\t\t//add action listener\n\t\tbtnCreate.addActionListener(this);\n\t\tbtnBack.addActionListener(this);\n\t\t//set bounds for all the components\n\t\tbtnCreate.setBounds(393, 594, 220, 36);\n\t\ttxtMiddle.setBounds(333, 249, 342, 36);\n\t\ttxtName.setBounds(333, 158, 342, 36);\n\t\ttxtLastName.setBounds(333, 339, 342, 36);\n\t\ttxtPhoneNumber.setBounds(333, 429, 342, 36);\n\t\ttxtAddress.setBounds(333, 511, 342, 36);\n\t\tbtnBack.setBounds(6,716,64,36);\n\t\tlblTitle.setBounds(417, 0, 182, 50);\n\t\tlblMiddle.setBounds(333, 201, 342, 36);\n\t\tlblName.setBounds(387, 110, 239, 36);\n\t\tlblLastName.setBounds(387, 297, 239, 36);\n\t\tlblPhoneNumber.setBounds(369, 387, 269, 36);\n\t\tlblAddress.setBounds(393, 477, 215, 30);\n\t\tbtnBack.setBounds(6,716,64,36);\n\t\tlblTitle.setBounds(417, 0, 182, 50);\n\t\tlblBackground.setBounds(0, 0, 1000, 1000);\n\t\t//add components to frame\n\t\tgetContentPane().add(btnCreate);\n\t\tgetContentPane().add(txtMiddle);\n\t\tgetContentPane().add(txtLastName);\n\t\tgetContentPane().add(txtAddress);\n\t\tgetContentPane().add(txtPhoneNumber);\n\t\tgetContentPane().add(txtName);\n\t\tgetContentPane().add(lblMiddle);\n\t\tgetContentPane().add(lblLastName);\n\t\tgetContentPane().add(lblAddress);\n\t\tgetContentPane().add(lblPhoneNumber);\n\t\tgetContentPane().add(lblName);\n\t\tgetContentPane().add(btnBack);\n\t\tgetContentPane().add(lblTitle);\n\t\tgetContentPane().add(lblBackground);\n\t\t//set size, visible and action for close\n\t\tsetSize(1000,1000);\n\t\tsetVisible(true);\n\t\tsetDefaultCloseOperation(EXIT_ON_CLOSE);\n\n\t}", "title": "" }, { "docid": "4d8d0ef9945f4396da438dbe212700d2", "score": "0.63925266", "text": "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}", "title": "" }, { "docid": "438737619ce71573cbd9636718d9d723", "score": "0.6341222", "text": "@RequestMapping(\"/showForm\")\n\tpublic String showForm(Model theModel) {\n\t\tCustomer customer = new Customer();\n\n\t\t// add Customer object to the model\n\t\ttheModel.addAttribute(\"customer\", customer);\n\t\t\n\t\treturn \"customer-form\";\n\t}", "title": "" }, { "docid": "28a5db632e25a50ee65fbb222a152a81", "score": "0.6318285", "text": "@RequestMapping(\"/new\")\n\tpublic String displayProjectForm(Model model) {\n\t\tProject aproject = new Project();\n\t//Iterable<Employee> employees = \tpro.getall();\n\t\n\t\tmodel.addAttribute(\"project\", aproject);\n\n\t\t//model.addAttribute(\"allEmployees\", employees);\n\t\t\n\t\t\n\t\treturn \"newproject\";\n\t\t\n\t}", "title": "" }, { "docid": "7f993f31d2a83b13049df5f5477b174a", "score": "0.63148266", "text": "public Form(){\n\t\ttypeOfLicenseApp = new TypeOfLicencsApplication();\n\t\toccupationalTrainingList = new ArrayList<OccupationalTraining>();\n\t\taffiadavit = new Affidavit();\n\t\tapplicationForReciprocity = new ApplicationForReciprocity();\n\t\teducationBackground = new EducationBackground();\n\t\toccupationalLicenses = new OccupationalLicenses();\n\t\tofficeUseOnlyInfo = new OfficeUseOnlyInfo();\n\t}", "title": "" }, { "docid": "42578958077c7175ee139fb0a5ccd084", "score": "0.6305247", "text": "@RequestMapping(\"/showForm\")\n\tpublic String showForm(Model theModel) {\n\t\tStudent theStudent = new Student();\n\t\t\n\t\t// add student object to the model\n\t\ttheModel.addAttribute(theStudent);\n\t\t\n\t\t// add the department options to the model \n\t theModel.addAttribute(\"departmentOptions\", departmentOptions); \n\t \n\t LinkedHashMap<String, String> favoriteLanguageOptions = new LinkedHashMap<String, String>();\n\t favoriteLanguageOptions.put(\"Java\", \"Java\");\n favoriteLanguageOptions.put(\"C#\", \"C#\");\n favoriteLanguageOptions.put(\"PHP\", \"PHP\");\n favoriteLanguageOptions.put(\"Ruby\", \"Ruby\"); \n\t theModel.addAttribute(\"favoriteLanguageOptions\", favoriteLanguageOptions); \n\n\t\treturn \"student-form\";\n\t}", "title": "" }, { "docid": "c317a8d604019ae8249750c0088bcc5e", "score": "0.6303609", "text": "public void buildAndShowListForm() {\n GeyserAdvancement categoryAdvancement = storedAdvancements.get(currentAdvancementCategoryId);\n String language = session.locale();\n\n SimpleForm.Builder builder =\n SimpleForm.builder()\n .title(MessageTranslator.convertMessage(categoryAdvancement.getDisplayData().getTitle(), language))\n .content(MessageTranslator.convertMessage(categoryAdvancement.getDisplayData().getDescription(), language));\n\n List<GeyserAdvancement> visibleAdvancements = new ArrayList<>();\n if (currentAdvancementCategoryId != null) {\n for (GeyserAdvancement advancement : storedAdvancements.values()) {\n boolean earned = isEarned(advancement);\n if (earned || !advancement.getDisplayData().isHidden()) {\n if (advancement.getParentId() != null && currentAdvancementCategoryId.equals(advancement.getRootId(this))) {\n String color = earned ? advancement.getDisplayColor() : \"\";\n builder.button(color + MessageTranslator.convertMessage(advancement.getDisplayData().getTitle()) + '\\n');\n\n visibleAdvancements.add(advancement);\n }\n }\n }\n }\n\n builder.button(GeyserLocale.getPlayerLocaleString(\"gui.back\", language));\n\n builder.closedResultHandler(() -> {\n // Indicate that we have closed the current advancement tab\n session.sendDownstreamPacket(new ServerboundSeenAdvancementsPacket());\n\n }).validResultHandler((response) -> {\n if (response.getClickedButtonId() < visibleAdvancements.size()) {\n GeyserAdvancement advancement = visibleAdvancements.get(response.clickedButtonId());\n buildAndShowInfoForm(advancement);\n } else {\n buildAndShowMenuForm();\n // Indicate that we have closed the current advancement tab\n session.sendDownstreamPacket(new ServerboundSeenAdvancementsPacket());\n }\n });\n\n session.sendForm(builder);\n }", "title": "" }, { "docid": "1792ca0c4a68c5d17111bea70cfef3a5", "score": "0.62985253", "text": "private void create() {\n\t\tGridLayout grid = new GridLayout(3,2);\n\t\tthis.setLayout(grid);\n\t\tthis.setBackground(Color.WHITE);\n\t\t\n\t\tadd(new JLabel(\"Username/Library Card #:\", SwingConstants.LEFT), grid);\n\t\tusername.setPreferredSize(new Dimension(1, 12));\n\t\tadd(username,grid);\n\t\t\n\t\tadd(new JLabel(\"Password:\", SwingConstants.LEFT), grid);\n\t\tadd(password, grid);\n\t\t\n\t\tLoginAction();\n\t\tadd(submit, grid);\n\t}", "title": "" }, { "docid": "4a684241247ae1821b0cbb873290726f", "score": "0.6295479", "text": "public form() {\n initComponents();\n }", "title": "" }, { "docid": "0bf8eb858ebee65d7fec8711348d5ead", "score": "0.62871814", "text": "public static AssessmentCreationForm openFillCreationForm(Assessment assm) {\n openCreationSearchForm(Roles.STAFF, WingsTopMenu.WingsStaffMenuItem.P_ASSESSMENTS, Popup.Create);\n\n Logger.getInstance().info(\"Fill out the required fields with valid data\");\n AssessmentCreationForm creationForm = new AssessmentCreationForm();\n creationForm.fillAssessmentInformation(new User(Roles.STAFF), assm);\n\n return new AssessmentCreationForm();\n }", "title": "" }, { "docid": "ee91c26ea5a16eded1518757fc775ffc", "score": "0.62837225", "text": "@RequestMapping(\"/showForm\")\n\tpublic String showForm(Model theModel) {\n\t\tRegister theRegister = new Register();\n\t\t\n\t // add register object to the model\n\t\ttheModel.addAttribute(\"register\", theRegister);\n\t\t\n\t\treturn \"register-form\";\n\t}", "title": "" }, { "docid": "1a282bebf3e1f95550471cf936a215fd", "score": "0.6279994", "text": "@GetMapping(\"/create\")\n public ModelAndView create(@ModelAttribute(\"form\") final CardCreateForm form) {\n return getCreateForm(form);\n }", "title": "" }, { "docid": "408db23a9481a003ae884c06c154cf44", "score": "0.62631565", "text": "private Node createFormContents() {\n\t\tGridPane grid = new GridPane();\n\t\tgrid.setAlignment(Pos.CENTER);\n\t\tgrid.setHgap(10);\n\t\tgrid.setVgap(10);\n\t\tgrid.setPadding(new Insets(25, 25, 25, 25));\n\n\t\t// Add the components to the grid.\n\n\t\t// Add the labels.\n\t\tgrid.add(typeNameLBL, 0, 0);\n\t\tgrid.add(unitsLBL, 0, 1);\n\t\tgrid.add(unitMeasureLBL, 0, 2);\n\t\tgrid.add(validityDaysLBL, 0, 3);\n\t\tgrid.add(reorderPointLBL, 0, 4);\n\t\tgrid.add(notesLBL, 0, 5);\n\t\tgrid.add(statusLBL, 0, 6);\n\n\t\t// Add the text fields.\n\t\tgrid.add(typeNameTF, 1, 0);\n\t\tgrid.add(unitsTF, 1, 1);\n\t\tgrid.add(unitMeasureTF, 1, 2);\n\t\tgrid.add(validityDaysTF, 1, 3);\n\t\tgrid.add(reorderPointTF, 1, 4);\n\t\tgrid.add(notesTF, 1, 5);\n\t\tgrid.add(statusCB, 1, 6);\n\n\t\t// Add the button.\n\t\tgrid.add(submitBTN, 0, 7);\n\t\tgrid.add(cancelBTN, 1, 7);\n\n\t\t// Add the message label.\n\t\tgrid.add(messageLBL, 0, 8, 2, 1);\n\n\t\t// Event handlers.\n\n\t\tsubmitBTN.setOnAction(new EventHandler<ActionEvent>() {\n\t\t\tpublic void handle(ActionEvent e) {\n\t\t\t\tprocessAction(e);\n\t\t\t}\n\t\t});\n\n\t\tcancelBTN.setOnAction(new EventHandler<ActionEvent>() {\n\t\t\tpublic void handle(ActionEvent e) {\n\t\t\t\tnew Manager();\n\t\t\t}\n\t\t});\n\n\t\treturn grid;\n\t}", "title": "" }, { "docid": "72a015396c247511dffa918d57ae7078", "score": "0.6248203", "text": "private void creatingElements() {\n\t\ttf1 = new JTextField(20);\n\t\ttf2 = new JTextField(20);\n\t\ttf3 = new JTextField(20);\n\t\tJButton btn = new JButton(\"Add\");\n\t\tbtn.addActionListener(control);\n\t\tbtn.setActionCommand(\"add\");\n\t\t\n\t\tJPanel panel = new JPanel();\n\t\tpanel.add(tf1);\n\t\tpanel.add(tf2);\n\t\tpanel.add(btn);\n\t\tpanel.add(tf3);\n\t\t\n\t\tthis.add(panel);\n\t\t\n\t\tthis.validate();\n\t\tthis.repaint();\t\t\n\t\t\n\t}", "title": "" }, { "docid": "afa1b29ed070e6252b33e3762078a875", "score": "0.62362003", "text": "public FormInserir() {\n initComponents();\n }", "title": "" }, { "docid": "8188c6af998286b023cf94b1dfefe703", "score": "0.62175703", "text": "public String create() {\n\n if (log.isDebugEnabled()) {\n log.debug(\"create()\");\n }\n FacesContext context = FacesContext.getCurrentInstance();\n StringBuffer sb = registration(context);\n sb.append(\"?action=Create\");\n forward(context, sb.toString());\n return (null);\n\n }", "title": "" }, { "docid": "efdf9fe5e5797f85045045d6caf4907f", "score": "0.62098765", "text": "public String formCreated()\r\n {\r\n return formError(\"201 Created\",\"Object was created\");\r\n }", "title": "" }, { "docid": "d2fa737693da207278ffaf9f2f7e2116", "score": "0.62082636", "text": "public static void create(Formulario form){\n daoFormulario.create(form);\n }", "title": "" }, { "docid": "66f21488bbbf2ee1a0d07da040fdfe95", "score": "0.61940503", "text": "private void fillCreateOrEditForm(String name, String branch) {\n waitForElementVisibility(xpathFormHeading);\n String actual = assertAndGetAttributeValue(xpathFormHeading, \"innerText\");\n assertEquals(actual, FORM_HEADING,\n \"Actual heading '\" + actual + \"' should be same as expected heading '\" + FORM_HEADING\n + \"'.\");\n logger.info(\"# User is on '\" + actual + \"' form\");\n assertAndType(xpathNameTF, name);\n logger.info(\"# Entered staff name: \" + name);\n selectByVisibleText(xpathSelectBranch, branch);\n logger.info(\"# Select branch name: \" + branch);\n }", "title": "" }, { "docid": "8de73afb1411944fc14dc7eae9d42dcb", "score": "0.61823976", "text": "@RequestMapping(value={\"/projects/add\"}, method= RequestMethod.GET)\r\n\tpublic String createProjectForm(Model model) {\r\n\t\tUser loggedUser= sessionData.getLoggedUser();\r\n\t\tmodel.addAttribute(\"loggedUser\", loggedUser);\r\n\t\tmodel.addAttribute(\"projectForm\", new Project());\r\n\t\treturn \"addProject\";\r\n\t}", "title": "" }, { "docid": "fcda16b09d77b1afde628cb6a1020bbe", "score": "0.6177286", "text": "@Override\n\tpublic Pane generateForm() {\n\t\treturn painelPrincipal;\n\t}", "title": "" }, { "docid": "6f49735cb43972d43a657c5666a2a8ad", "score": "0.61770743", "text": "@RequestMapping(\"/showForm\")\n\tpublic String showForm(final Model model)\n\t{\n\t\tfinal Student theStudent = new Student();\n\n\t\t// --- add student object to the model ---\n\t\tmodel.addAttribute(\"student\", theStudent);\n\n\t\treturn \"student-form\";\n\t}", "title": "" }, { "docid": "0f7ab3ff873c026f112ee54d86eef87e", "score": "0.6147881", "text": "@Override\n\tpublic void onFormCreate(AbstractForm arg0, DataMsgBus arg1) {\n\t}", "title": "" }, { "docid": "dcdf637df21d3b0daea83eafa729e991", "score": "0.6128299", "text": "public SalidaCajaForm() {\n\t\tinicializarComponentes();\n }", "title": "" }, { "docid": "e90d60e633eaaac6a525782704a45ec0", "score": "0.61260617", "text": "private void fillCreateOrEditForm(String name, int branchId) {\n waitForElementVisibility(xpathFormHeading);\n String actual = assertAndGetAttributeValue(xpathFormHeading, \"innerText\");\n assertEquals(actual, FORM_HEADING,\n \"Actual heading '\" + actual + \"' should be same as expected heading '\" + FORM_HEADING\n + \"'.\");\n logger.info(\"# User is on '\" + actual + \"' form\");\n assertAndType(xpathNameTF, name);\n logger.info(\"# Entered staff name: \" + name);\n selectByValue(xpathSelectBranch, \"number:\" + branchId);\n logger.info(\"# Select branch id: \" + branchId);\n }", "title": "" }, { "docid": "8b7d7c52215f0a476e52d28f96c5c6e9", "score": "0.6117599", "text": "@GetMapping(\"/list/showFormForAdd\")\n\tpublic String showFormForAdd(Model theModel) {\n\t\tPerson thePerson = new Person();\n\t\ttheModel.addAttribute(\"person\", thePerson);\n\n\t\treturn \"person-form\";\n\t}", "title": "" }, { "docid": "ff87d43ff65c440a0f7ef3408f6b8ca7", "score": "0.6113585", "text": "@RequestMapping(params = \"new\", method = RequestMethod.GET)\n\t@PreAuthorize(\"hasRole('ADMIN')\")\n\tpublic String createProductForm(Model model) { \t\n \t\n\t\t//Security information\n\t\tmodel.addAttribute(\"admin\",security.isAdmin()); \n\t\tmodel.addAttribute(\"loggedUser\", security.getLoggedInUser());\n\t\t\n\t model.addAttribute(\"product\", new Product());\n\t return \"products/newProduct\";\n\t}", "title": "" }, { "docid": "77271097f03084cbe6e1f1290c44e350", "score": "0.6105017", "text": "public SpeciesForm() {\n initComponents();\n setTitle(Application.TITLE_APP + \" Species\");\n processor = new SpeciesProcessor();\n loadData(); \n \n \n }", "title": "" }, { "docid": "99ec99c935af62d76b90f8041d789d93", "score": "0.6104951", "text": "public form_for_bd() {\n initComponents();\n }", "title": "" }, { "docid": "2e3c8f94fdbb5c7939120f9810e6d96e", "score": "0.6103973", "text": "@GetMapping(value = \"/showForm\")\n\tpublic String showForm(Model model) {\n\t\tmodel.addAttribute(\"person\", new Person());\n\n\t\t// In order to test 500 internal server error\n\t\t// int g = 7/0;\n\n\t\treturn FORM_VIEW;\n\t}", "title": "" }, { "docid": "c79337bc8eff076bde6488605afbd64f", "score": "0.60996115", "text": "protected void createContents() {\n\t\tregister Register = new register();\n\t\tRegisterDAOImpl RDI = new RegisterDAOImpl();\t\n\t\t\n\t\tload = new Shell();\n\t\tload.setSize(519, 370);\n\t\tload.setText(\"XX\\u533B\\u9662\\u6302\\u53F7\\u7CFB\\u7EDF\");\n\t\tload.setLayout(new FormLayout());\n\t\t\n\t\tLabel name = new Label(load, SWT.NONE);\n\t\tFormData fd_name = new FormData();\n\t\tfd_name.top = new FormAttachment(20);\n\t\tfd_name.left = new FormAttachment(45, -10);\n\t\tname.setLayoutData(fd_name);\n\t\tname.setFont(SWTResourceManager.getFont(\"微软雅黑\", 12, SWT.NORMAL));\n\t\tname.setText(\"\\u59D3\\u540D\");\n\t\t\n\t\tLabel subjet = new Label(load, SWT.NONE);\n\t\tFormData fd_subjet = new FormData();\n\t\tfd_subjet.left = new FormAttachment(44);\n\t\tfd_subjet.top = new FormAttachment(50);\n\t\tsubjet.setLayoutData(fd_subjet);\n\t\tsubjet.setFont(SWTResourceManager.getFont(\"微软雅黑\", 12, SWT.NORMAL));\n\t\tsubjet.setText(\"\\u79D1\\u5BA4\");\n\t\t\n\t\tLabel doctor = new Label(load, SWT.NONE);\n\t\tFormData fd_doctor = new FormData();\n\t\tfd_doctor.top = new FormAttachment(60);\n\t\tfd_doctor.left = new FormAttachment(45, -10);\n\t\tdoctor.setLayoutData(fd_doctor);\n\t\tdoctor.setFont(SWTResourceManager.getFont(\"微软雅黑\", 12, SWT.NORMAL));\n\t\tdoctor.setText(\"\\u533B\\u751F\");\n\t\t\n\t\tnametext = new Text(load, SWT.BORDER);\n\t\tnametext.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_BACKGROUND));\n\t\tnametext.setFont(SWTResourceManager.getFont(\"微软雅黑\", 12, SWT.NORMAL));\n\t\tFormData fd_nametext = new FormData();\n\t\tfd_nametext.right = new FormAttachment(50, 94);\n\t\tfd_nametext.top = new FormAttachment(20);\n\t\tfd_nametext.left = new FormAttachment(50);\n\t\tnametext.setLayoutData(fd_nametext);\n\t\t\n\t\tLabel titlelabel = new Label(load, SWT.NONE);\n\t\tFormData fd_titlelabel = new FormData();\n\t\tfd_titlelabel.right = new FormAttachment(43, 176);\n\t\tfd_titlelabel.top = new FormAttachment(10);\n\t\tfd_titlelabel.left = new FormAttachment(43);\n\t\ttitlelabel.setLayoutData(fd_titlelabel);\n\t\ttitlelabel.setFont(SWTResourceManager.getFont(\"楷体\", 18, SWT.BOLD));\n\t\ttitlelabel.setText(\"XX\\u533B\\u9662\\u95E8\\u8BCA\\u6302\\u53F7\");\n\t\t\n\t\tLabel label = new Label(load, SWT.NONE);\n\t\tFormData fd_label = new FormData();\n\t\tfd_label.top = new FormAttachment(40);\n\t\tfd_label.left = new FormAttachment(44, -10);\n\t\tlabel.setLayoutData(fd_label);\n\t\tlabel.setFont(SWTResourceManager.getFont(\"微软雅黑\", 12, SWT.NORMAL));\n\t\tlabel.setText(\"\\u6302\\u53F7\\u8D39\");\n\t\t\n\t\tcosttext = new Text(load, SWT.BORDER);\n\t\tcosttext.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_BACKGROUND));\n\t\tcosttext.setFont(SWTResourceManager.getFont(\"微软雅黑\", 12, SWT.NORMAL));\n\t\tFormData fd_costtext = new FormData();\n\t\tfd_costtext.right = new FormAttachment(nametext, 0, SWT.RIGHT);\n\t\tfd_costtext.top = new FormAttachment(40);\n\t\tfd_costtext.left = new FormAttachment(50);\n\t\tcosttext.setLayoutData(fd_costtext);\n\t\t\n\t\tLabel type = new Label(load, SWT.NONE);\n\t\tFormData fd_type = new FormData();\n\t\tfd_type.top = new FormAttachment(30);\n\t\tfd_type.left = new FormAttachment(45, -10);\n\t\ttype.setLayoutData(fd_type);\n\t\ttype.setFont(SWTResourceManager.getFont(\"微软雅黑\", 12, SWT.NORMAL));\n\t\ttype.setText(\"\\u7C7B\\u578B\");\n\t\t\n\t\tCombo typecombo = new Combo(load, SWT.NONE);\n\t\ttypecombo.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_BACKGROUND));\n\t\ttypecombo.setFont(SWTResourceManager.getFont(\"微软雅黑\", 12, SWT.NORMAL));\n\t\tFormData fd_typecombo = new FormData();\n\t\tfd_typecombo.right = new FormAttachment(nametext, 0, SWT.RIGHT);\n\t\tfd_typecombo.top = new FormAttachment(30);\n\t\tfd_typecombo.left = new FormAttachment(50);\n\t\ttypecombo.setLayoutData(fd_typecombo);\n\t\ttypecombo.setText(\"\\u95E8\\u8BCA\\u7C7B\\u578B\");\n\t\ttypecombo.add(\"普通门诊\",0);\n\t\ttypecombo.add(\"专家门诊\",1);\n\t\tMySelectionListener3 ms3 = new MySelectionListener3(typecombo,costtext);\n\t\ttypecombo.addSelectionListener(ms3);\n\t\t\n\t\tCombo doctorcombo = new Combo(load, SWT.NONE);\n\t\tdoctorcombo.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_BACKGROUND));\n\t\tdoctorcombo.setFont(SWTResourceManager.getFont(\"微软雅黑\", 12, SWT.NORMAL));\n\t\tFormData fd_doctorcombo = new FormData();\n\t\tfd_doctorcombo.right = new FormAttachment(nametext, 0, SWT.RIGHT);\n\t\tfd_doctorcombo.top = new FormAttachment(60);\n\t\tfd_doctorcombo.left = new FormAttachment(50);\n\t\tdoctorcombo.setLayoutData(fd_doctorcombo);\n\t\tdoctorcombo.setText(\"\\u9009\\u62E9\\u533B\\u751F\");\n\t\t\n\t\tCombo subject = new Combo(load, SWT.NONE);\n\t\tsubject.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_BACKGROUND));\n\t\tsubject.setFont(SWTResourceManager.getFont(\"微软雅黑\", 12, SWT.NORMAL));\n\t\tfd_subjet.right = new FormAttachment(subject, -6);\n\t\tfd_subjet.top = new FormAttachment(subject, -1, SWT.TOP);\n\t\tFormData fd_subject = new FormData();\n\t\tfd_subject.right = new FormAttachment(nametext, 0, SWT.RIGHT);\n\t\tfd_subject.top = new FormAttachment(50);\n\t\tfd_subject.left = new FormAttachment(50);\n\t\tsubject.setLayoutData(fd_subject);\n\t\tsubject.setText(\"\\u79D1\\u5BA4\\uFF1F\");\n\t\tsubject.add(\"神经内科\", 0);\n\t\tsubject.add(\"呼吸科\", 1);\n\t\tsubject.add(\"泌尿科\", 2);\n\t\tsubject.add(\"放射科\", 3);\n\t\tsubject.add(\"五官\", 4);\n\t\tMySelectionListener myselection = new MySelectionListener(i,subject,doctorcombo,pdtabledaoimpl);\n\t\tsubject.addSelectionListener(myselection);\n\t\t\n\t\tMySelectionListener2 ms2 = new MySelectionListener2(subject,doctorcombo,Register,nametext,RDI);\n\t\tdoctorcombo.addSelectionListener(ms2);\n\t\t\n\t\tButton surebutton = new Button(load, SWT.NONE);\n\t\tFormData fd_surebutton = new FormData();\n\t\tfd_surebutton.top = new FormAttachment(70);\n\t\tfd_surebutton.left = new FormAttachment(44);\n\t\tsurebutton.setLayoutData(fd_surebutton);\n\t\tsurebutton.setFont(SWTResourceManager.getFont(\"楷体\", 12, SWT.BOLD));\n\t\tsurebutton.setText(\"\\u786E\\u5B9A\");\n\t\tsurebutton.addSelectionListener(new SelectionAdapter() {\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n \t Register register = new Register();\n\t\t\t\tPatientDAOImpl patientdaoimpl = new PatientDAOImpl();\n\n/*\t\t\t\tregisterdaoimpl.Save(Register);*/\n\t\t\t\tPatientInfo patientinfo = null;\n\t\t\t\tpatientinfo = patientdaoimpl.findByname(nametext.getText());\n\t\t\t\tif(patientinfo.getId() > 0 ){\n\t\t\t\t\tMessageBox messagebox = new MessageBox(load);\n\t\t\t\t\tmessagebox.setMessage(\"挂号成功!\");\n\t\t\t\t\tmessagebox.open();\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tMessageBox messagebox = new MessageBox(load);\n\t\t\t\t\tmessagebox.setMessage(\"此用户不存在,请先注册\");\n\t\t\t\t\tmessagebox.open();\n\t\t\t\t\tload.dispose();\n\t\t\t\t\tregister.open();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\tButton registerbutton = new Button(load, SWT.NONE);\n\t\tFormData fd_registerbutton = new FormData();\n\t\tfd_registerbutton.top = new FormAttachment(70);\n\t\tfd_registerbutton.left = new FormAttachment(53);\n\t\tregisterbutton.setLayoutData(fd_registerbutton);\n\t\tregisterbutton.setFont(SWTResourceManager.getFont(\"楷体\", 12, SWT.BOLD));\n\t\tregisterbutton.setText(\"\\u6CE8\\u518C\");\n\t\tregisterbutton.addSelectionListener(new SelectionAdapter() {\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\t\n\t\t\t\tRegister register = new Register();\n\t\t\t\tload.close();\n\t\t\t\tregister.open();\n\t\t\t}\n\t\t});\n\t}", "title": "" }, { "docid": "3d68e2c2d1cb4e5a084cff9b2c57447f", "score": "0.6092158", "text": "public myForm() {\n\t\t\tinitComponents();\n\t\t}", "title": "" }, { "docid": "31589955c0da833ca84a2c9ebf4e7f27", "score": "0.6091877", "text": "@GetMapping(\"/students/new\")\n\tpublic String createStudentForm(Model model) throws ParseException\n\t{\n\t\t\n\t\tStudent student=new Student(); //To hold form Data.\n\t\t\n\t\tmodel.addAttribute(\"student\",student);\n\t\t\n\t\t// go to create_student.html page\n\t\treturn \"create_student\";\n\t}", "title": "" }, { "docid": "1b06ea951e1597c22d9550afa79f0417", "score": "0.6086974", "text": "private void generateScreen(String form,String text) throws IOException {\r\n \r\n MainScreenController.formName = text;\r\n Stage stage = new Stage();\r\n Parent root = FXMLLoader.load(getClass().getResource(form));\r\n stage.setScene(new Scene(root));\r\n stage.initModality(Modality.APPLICATION_MODAL);\r\n stage.initOwner(partAddBtn.getScene().getWindow());\r\n stage.showAndWait();\r\n \r\n }", "title": "" }, { "docid": "ab1e9a008c2de179e3447a2cb1f3a769", "score": "0.60862815", "text": "private void createForm(ArrayList<HashMap<String, String>> data) {\n\t\tLayoutInflater inflater = LayoutInflater.from(IPropertyRegistrationActivity.this);\n\t\tLinearLayout.LayoutParams params = new LinearLayout.LayoutParams(android.widget.LinearLayout.LayoutParams.MATCH_PARENT,\n\t\t\t\tandroid.widget.LinearLayout.LayoutParams.WRAP_CONTENT);\n\t\tparams.topMargin = 10;\n\n\t\tfields = data;\n\t\tLinearLayout layout = null;\n\t\tint len = fields.size();\n\t\tfor (int j = 0; j < len; j++) {\n\t\t\tfinal HashMap<String, String> field = fields.get(j);\n\t\t\tView fieldView = inflater.inflate(R.layout.iproperty_registration_dynamic_view_item, null);\n\n\t\t\tif (field.get(TYPE).equals(LABEL)) {\n\t\t\t\tfinal IjoomerEditText edit;\n\t\t\t\tlayout = ((LinearLayout) fieldView.findViewById(R.id.lnrLabel));\n\t\t\t\tlayout.setVisibility(View.VISIBLE);\n\t\t\t\tedit = ((IjoomerEditText) layout.findViewById(R.id.txtValue));\n\t\t\t} else if (field.get(TYPE).equals(PASSWORD)) {\n\t\t\t\tfinal IjoomerEditText edit;\n\t\t\t\tlayout = ((LinearLayout) fieldView.findViewById(R.id.lnrEdit));\n\t\t\t\tlayout.setVisibility(View.VISIBLE);\n\t\t\t\tedit = ((IjoomerEditText) layout.findViewById(R.id.txtValue));\n\t\t\t\tif (field.get(NAME).contains(getString(R.string.phone)) || field.get(NAME).contains(getString(R.string.year))) {\n\t\t\t\t\tedit.setInputType(InputType.TYPE_CLASS_NUMBER);\n\t\t\t\t} else if (field.get(NAME).contains(getString(R.string.website)) || field.get(NAME).contains(getString(R.string.email))) {\n\t\t\t\t\tedit.setInputType(InputType.TYPE_TEXT_VARIATION_EMAIL_ADDRESS);\n\t\t\t\t}\n\t\t\t} else if (field.get(TYPE).equals(TEXT)) {\n\t\t\t\tfinal IjoomerEditText edit;\n\t\t\t\tlayout = ((LinearLayout) fieldView.findViewById(R.id.lnrEdit));\n\t\t\t\tlayout.setVisibility(View.VISIBLE);\n\t\t\t\tedit = ((IjoomerEditText) layout.findViewById(R.id.txtValue));\n\t\t\t\tif (field.get(NAME).contains(getString(R.string.phone)) || field.get(NAME).contains(getString(R.string.year))) {\n\t\t\t\t\tedit.setInputType(InputType.TYPE_CLASS_NUMBER);\n\t\t\t\t} else if (field.get(NAME).contains(getString(R.string.website)) || field.get(NAME).contains(getString(R.string.email))) {\n\t\t\t\t\tedit.setInputType(InputType.TYPE_TEXT_VARIATION_EMAIL_ADDRESS);\n\t\t\t\t}\n\t\t\t} else if (field.get(TYPE).equals(TEXTAREA)) {\n\t\t\t\tfinal IjoomerEditText edit;\n\t\t\t\tlayout = ((LinearLayout) fieldView.findViewById(R.id.lnrEditArea));\n\t\t\t\tlayout.setVisibility(View.VISIBLE);\n\t\t\t\tedit = ((IjoomerEditText) layout.findViewById(R.id.txtValue));\n\n\t\t\t\tif (field.get(VALUE).toString().trim().length() > 0) {\n\t\t\t\t\tedit.setText(field.get(VALUE));\n\t\t\t\t} else {\n\t\t\t\t}\n\n\t\t\t} else if (field.get(TYPE).equals(MAP)) {\n\t\t\t\tfinal IjoomerEditText edit;\n\t\t\t\tfinal ImageView imgMap;\n\t\t\t\tlayout = ((LinearLayout) fieldView.findViewById(R.id.lnrEditMap));\n\t\t\t\tlayout.setVisibility(View.VISIBLE);\n\t\t\t\tedit = ((IjoomerEditText) layout.findViewById(R.id.txtValue));\n\t\t\t\timgMap = ((ImageView) layout.findViewById(R.id.imgMap));\n\t\t\t\tif (field.get(NAME).equalsIgnoreCase(getString(R.string.state))) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tAddress address = IjoomerUtilities.getAddressFromLatLong(0, 0);\n\t\t\t\t\t\tedit.setText(address.getAdminArea().replace(address.getCountryName() == null ? \"\" : address.getCountryName(), \"\")\n\t\t\t\t\t\t\t\t.replace(address.getPostalCode() == null ? \"\" : address.getPostalCode(), \"\"));\n\t\t\t\t\t} catch (Throwable e) {\n\t\t\t\t\t\tedit.setText(\"\");\n\t\t\t\t\t}\n\t\t\t\t} else if (field.get(NAME).equalsIgnoreCase(getString(R.string.city_town))) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tAddress address = IjoomerUtilities.getAddressFromLatLong(0, 0);\n\t\t\t\t\t\tedit.setText(address.getSubAdminArea());\n\t\t\t\t\t} catch (Throwable e) {\n\t\t\t\t\t\tedit.setText(\"\");\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\timgMap.setOnClickListener(new OnClickListener() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\teditMap = edit;\n\t\t\t\t\t\tIntent intent = new Intent(IPropertyRegistrationActivity.this, IjoomerMapAddress.class);\n\t\t\t\t\t\tstartActivityForResult(intent, GET_ADDRESS_FROM_MAP);\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t} else if (field.get(TYPE).equals(SELECT)) {\n\t\t\t\tlayout = ((LinearLayout) fieldView.findViewById(R.id.lnrSpin));\n\t\t\t\tlayout.setVisibility(View.VISIBLE);\n\t\t\t\tfinal Spinner spn;\n\t\t\t\tspn = ((Spinner) layout.findViewById(R.id.txtValue));\n\t\t\t\tspn.setAdapter(IjoomerUtilities.getSpinnerAdapter(field));\n\t\t\t\tif (field.get(NAME).equalsIgnoreCase(getString(R.string.country))) {\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\tAddress address = IjoomerUtilities.getAddressFromLatLong(0, 0);\n\t\t\t\t\t\tString country = address.getCountryName();\n\t\t\t\t\t\tint selectedIndex = 0;\n\t\t\t\t\t\tJSONArray jsonArray = null;\n\n\t\t\t\t\t\tjsonArray = new JSONArray(field.get(OPTIONS));\n\t\t\t\t\t\tint optionSize = jsonArray.length();\n\t\t\t\t\t\tfor (int k = 0; k < optionSize; k++) {\n\t\t\t\t\t\t\tJSONObject options = (JSONObject) jsonArray.get(k);\n\n\t\t\t\t\t\t\tif (options.getString(VALUE).equalsIgnoreCase(country)) {\n\t\t\t\t\t\t\t\tselectedIndex = k;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tspn.setSelection(selectedIndex);\n\t\t\t\t\t} catch (Throwable e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\tspn.setSelection(0);\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t} else if (field.get(TYPE).equals(DATE)) {\n\t\t\t\tfinal IjoomerEditText edit;\n\t\t\t\tlayout = ((LinearLayout) fieldView.findViewById(R.id.lnrEditClickable));\n\t\t\t\tlayout.setVisibility(View.VISIBLE);\n\t\t\t\tedit = ((IjoomerEditText) layout.findViewById(R.id.txtValue));\n\t\t\t\tedit.setOnClickListener(new OnClickListener() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(final View v) {\n\t\t\t\t\t\tIjoomerUtilities.getDateDialog(((IjoomerEditText) v).getText().toString(), true, new CustomClickListner() {\n\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void onClick(String value) {\n\t\t\t\t\t\t\t\t((IjoomerEditText) v).setText(value);\n\t\t\t\t\t\t\t\t((IjoomerEditText) v).setError(null);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t} else if (field.get(TYPE).equals(TIME)) {\n\t\t\t\tfinal IjoomerEditText edit;\n\t\t\t\tlayout = ((LinearLayout) fieldView.findViewById(R.id.lnrEditClickable));\n\t\t\t\tlayout.setVisibility(View.VISIBLE);\n\t\t\t\tedit = ((IjoomerEditText) layout.findViewById(R.id.txtValue));\n\t\t\t\tedit.setOnClickListener(new OnClickListener() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(final View v) {\n\t\t\t\t\t\tIjoomerUtilities.getTimeDialog(((IjoomerEditText) v).getText().toString(), new CustomClickListner() {\n\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void onClick(String value) {\n\t\t\t\t\t\t\t\t((IjoomerEditText) v).setText(value);\n\t\t\t\t\t\t\t\t((IjoomerEditText) v).setError(null);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t} else if (field.get(TYPE).equals(MULTIPLESELECT)) {\n\t\t\t\tfinal IjoomerEditText edit;\n\t\t\t\tlayout = ((LinearLayout) fieldView.findViewById(R.id.lnrEditClickable));\n\t\t\t\tlayout.setVisibility(View.VISIBLE);\n\t\t\t\tedit = ((IjoomerEditText) layout.findViewById(R.id.txtValue));\n\t\t\t\tedit.setOnClickListener(new OnClickListener() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(final View v) {\n\t\t\t\t\t\tIjoomerUtilities.getMultiSelectionDialog(field.get(NAME), field.get(OPTIONS), ((IjoomerEditText) v).getText().toString(), new CustomClickListner() {\n\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void onClick(String value) {\n\t\t\t\t\t\t\t\t((IjoomerEditText) v).setText(value);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\n\t\t\tif (field.get(REQUIRED).equalsIgnoreCase(\"1\")) {\n\t\t\t\t((IjoomerTextView) layout.findViewById(R.id.txtLable)).setText(field.get(NAME) + \" *\");\n\t\t\t} else {\n\t\t\t\t((IjoomerTextView) layout.findViewById(R.id.txtLable)).setText(field.get(NAME));\n\t\t\t}\n\n\t\t\t((LinearLayout) fieldView.findViewById(R.id.lnrEdit)).setVisibility(View.GONE);\n\t\t\t((LinearLayout) fieldView.findViewById(R.id.lnrEditArea)).setVisibility(View.GONE);\n\t\t\t((LinearLayout) fieldView.findViewById(R.id.lnrSpin)).setVisibility(View.GONE);\n\t\t\t((LinearLayout) fieldView.findViewById(R.id.lnrEditClickable)).setVisibility(View.GONE);\n\t\t\t((LinearLayout) fieldView.findViewById(R.id.lnrLabel)).setVisibility(View.GONE);\n\n\t\t\tlayout = ((LinearLayout) fieldView.findViewById(R.id.lnrReadOnly));\n\t\t\tlayout.setVisibility(View.VISIBLE);\n\n\t\t\t((IjoomerTextView) layout.findViewById(R.id.txtLable)).setText(field.get(NAME));\n\t\t\t((IjoomerEditText) layout.findViewById(R.id.txtValue)).setText(field.get(VALUE));\n\t\t\tfieldView.setTag(field);\n\t\t\tlnr_form.addView(fieldView, params);\n\t\t}\n\t}", "title": "" }, { "docid": "0e76300467b5f0af25eded55145d05e3", "score": "0.60859317", "text": "private HStack createEditForm() {\r\n\t\teditFormHStack = new HStack();\r\n\t\t\r\n\t\tVStack editFormVStack = new VStack();\r\n\t\teditFormVStack.addMember(addStarRatings());\r\n\t\t\r\n\t\tboundSwagForm = new DynamicForm();\r\n\t\tboundSwagForm.setNumCols(2);\r\n//\t\tboundSwagForm.setLongTextEditorThreshold(40);\r\n\t\tboundSwagForm.setDataSource(SmartGWTRPCDataSource.getInstance());\r\n\t\tboundSwagForm.setAutoFocus(true);\r\n\r\n\t\tHiddenItem keyItem = new HiddenItem(\"key\");\r\n\t\tTextItem nameItem = new TextItem(\"name\");\r\n\t\tnameItem.setLength(50);\r\n\t\tnameItem.setSelectOnFocus(true);\r\n\t\tTextItem companyItem = new TextItem(\"company\");\r\n\t\tcompanyItem.setLength(20);\r\n\t\tTextItem descriptionItem = new TextItem(\"description\");\r\n\t\tdescriptionItem.setLength(100);\r\n\t\tTextItem tag1Item = new TextItem(\"tag1\");\r\n\t\ttag1Item.setLength(15);\r\n\t\tTextItem tag2Item = new TextItem(\"tag2\");\r\n\t\ttag2Item.setLength(15);\r\n\t\tTextItem tag3Item = new TextItem(\"tag3\");\r\n\t\ttag3Item.setLength(15);\r\n\t\tTextItem tag4Item = new TextItem(\"tag4\");\r\n\t\ttag4Item.setLength(15);\r\n\t\t\r\n\t\tStaticTextItem isFetchOnlyItem = new StaticTextItem(\"isFetchOnly\");\r\n\t\tisFetchOnlyItem.setVisible(false);\r\n\t\tStaticTextItem imageKeyItem = new StaticTextItem(\"imageKey\");\r\n\t\timageKeyItem.setVisible(false);\r\n\t\t\r\n\t\tTextItem newImageURLItem = new TextItem(\"newImageURL\");\r\n\r\n\t\tboundSwagForm.setFields(keyItem, nameItem, companyItem, descriptionItem, tag1Item,\r\n\t\t\t\ttag2Item, tag3Item, tag4Item, isFetchOnlyItem, imageKeyItem, newImageURLItem);\r\n\t\teditFormVStack.addMember(boundSwagForm);\r\n\t\t\r\n\t\tcurrentSwagImage = new Img(\"/images/no_photo.jpg\"); \r\n\t\tcurrentSwagImage.setImageType(ImageStyle.NORMAL); \r\n\t\teditFormVStack.addMember(currentSwagImage);\r\n\t\teditFormVStack.addMember(createImFeelingLuckyImageSearch());\r\n\t\t\r\n\t\tIButton saveButton = new IButton(\"Save\");\r\n\t\tsaveButton.setAutoFit(true);\r\n\t\tsaveButton.addClickHandler(new ClickHandler() {\r\n\t\t\tpublic void onClick(ClickEvent event) {\r\n\t\t\t\t//TODO\r\n\t\t\t\t//uploadForm.submitForm();\r\n\t\t\t\t//Turn off fetch only (could have been on from them rating the item\r\n\t\t\t\tboundSwagForm.getField(\"isFetchOnly\").setValue(false);\r\n\t\t\t\tboundSwagForm.saveData();\r\n\t\t\t\thandleSubmitComment(); //in case they commented while editing\r\n\t\t\t\t//re-sort\r\n\t\t\t\tdoSort();\r\n\t\t\t\tif (boundSwagForm.hasErrors()) {\r\n\t\t\t\t\tWindow.alert(\"\" + boundSwagForm.getErrors());\r\n\t\t\t\t} else {\r\n\t\t\t\t\tboundSwagForm.clearValues();\r\n\t\t\t\t\t\r\n\t\t\t\t\teditFormHStack.hide();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tIButton cancelButton = new IButton(\"Cancel\");\r\n\t\tcancelButton.setAutoFit(true);\r\n\t\tcancelButton.addClickHandler(new ClickHandler() {\r\n\t\t\tpublic void onClick(ClickEvent event) {\r\n\t\t\t\tboundSwagForm.clearValues();\r\n\t\t\t\teditFormHStack.hide();\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tIButton deleteButton = new IButton(\"Delete\");\r\n\t\tdeleteButton.setAutoFit(true);\r\n\t\tdeleteButton.addClickHandler(new ClickHandler() {\r\n\t\t\tpublic void onClick(ClickEvent event) {\r\n\t\t\t\tshowConfirmRemovePopup(itemsTileGrid.getSelectedRecord());\r\n\t\t\t\teditFormHStack.hide();\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\teditButtonsLayout = new HLayout();\r\n\t\teditButtonsLayout.setHeight(20);\r\n\t\teditButtonsLayout.addMember(saveButton);\r\n\t\teditButtonsLayout.addMember(cancelButton);\r\n\t\teditButtonsLayout.addMember(deleteButton);\r\n\t\t\r\n\t\teditFormVStack.addMember(editButtonsLayout);\r\n\t\t\r\n\t\ttabSet = new TabSet();\r\n\t\ttabSet.setDestroyPanes(false);\r\n tabSet.setTabBarPosition(Side.TOP);\r\n tabSet.setTabBarAlign(Side.LEFT);\r\n tabSet.setWidth(570);\r\n tabSet.setHeight(570);\r\n \r\n\r\n Tab viewEditTab = new Tab();\r\n viewEditTab.setPane(editFormVStack);\r\n\r\n commentsTab = new Tab(\"Comments\");\r\n commentsTab.setPane(createComments());\r\n \r\n tabSet.addTab(viewEditTab);\r\n tabSet.addTab(commentsTab);\r\n //put focus in commentsEditor when they click the Comments tab\r\n tabSet.addClickHandler(new ClickHandler() {\r\n\t\t\tpublic void onClick(ClickEvent event) {\r\n\t\t\t\tTab selectedTab = tabSet.getSelectedTab();\r\n\t\t\t\tif (commentsTab==selectedTab) {\r\n\t\t\t\t\trichTextCommentsEditor.focus();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n \r\n VStack tabsVStack = new VStack();\r\n itemEditTitleLabel = new Label(); \r\n itemEditTitleLabel.setHeight(30); \r\n itemEditTitleLabel.setAlign(Alignment.LEFT); \r\n itemEditTitleLabel.setValign(VerticalAlignment.TOP); \r\n itemEditTitleLabel.setWrap(false); \r\n tabsVStack.addMember(itemEditTitleLabel);\r\n //make sure this is drawn since we set the tab names early\r\n tabSet.draw();\r\n tabsVStack.addMember(tabSet);\r\n\t\teditFormHStack.addMember(tabsVStack);\r\n\t\teditFormHStack.hide();\r\n\t\treturn editFormHStack;\r\n\t}", "title": "" }, { "docid": "d2ed2ee2ccf69fdb8e271bd738f2b463", "score": "0.60854083", "text": "@GetMapping(\"/showFormForAdd\")\r\n\tpublic String showFormForAdd(Model theModel){\n\t\tCustomer theCustomer = new Customer();\r\n\t\t\r\n\t\ttheModel.addAttribute(\"customer\",theCustomer);\r\n\t\t\r\n\t\treturn \"customer-form\";\r\n\t}", "title": "" }, { "docid": "a405e691d5991745ea993656f69ee1d6", "score": "0.6081444", "text": "public CreateAccount() {\n initComponents();\n selectionall();\n }", "title": "" }, { "docid": "dc3661041a41050785746fdf7e195d0b", "score": "0.606896", "text": "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}", "title": "" }, { "docid": "6039ff161e14290d9b6e797264a8e932", "score": "0.60689414", "text": "@GetMapping(\"/students/new\")\r\n\tpublic String createStudentForm(Model model) {\n\t\tStudent student =new Student();\r\n\t\tmodel.addAttribute(\"student\",student);\r\n\t\treturn \"create_student\";\r\n\t}", "title": "" }, { "docid": "71f3bd20b60fd49cffb7644fa2577c96", "score": "0.6066387", "text": "@RequestMapping(method = RequestMethod.GET)\n \tpublic String createForm(Model model, ForgotLoginForm form) {\n \t\tmodel.addAttribute(\"form\", form);\n \t\treturn \"forgotlogin/index\";\n \t}", "title": "" }, { "docid": "d77cb08dda300d3e609c0f73b54482c4", "score": "0.6051323", "text": "@Override\n\tprotected Fragment createFragment() {\n\t\treturn new FormFragment();\n\t}", "title": "" }, { "docid": "3b24ed12734cfe9b2040d80d322407ef", "score": "0.604666", "text": "@GetMapping(\"/showAddFormUser\")\n\tpublic String showAddForm(Model model) {\n\t\tUser user = new User();\n\t\tmodel.addAttribute(\"user\", user);\n\t\t\n\t\t// add page title\n\t\tmodel.addAttribute(\"pageTitle\", \"Add User\");\n\t\treturn \"user-form\";\n\t}", "title": "" }, { "docid": "afae8c59c4c6d1c2b0e76d91b64a0d97", "score": "0.6042848", "text": "public String createQuiz() {\n quiz = quizEJB.createQuiz(quiz);\n quizList = quizEJB.listQuiz();\n FacesContext.getCurrentInstance().addMessage(\"successForm:successInput\", new FacesMessage(FacesMessage.SEVERITY_INFO, \"Success\", \"New record added successfully\"));\n return \"quiz-list.xhtml\";\n }", "title": "" }, { "docid": "daa51ec38f3380d639f7737b569f9e1b", "score": "0.6041101", "text": "public MechanicForm() {\n initComponents();\n }", "title": "" }, { "docid": "93257a9320b5fd3a0c4da6e5f89edef1", "score": "0.6038654", "text": "public TorneoForm() {\n initComponents();\n }", "title": "" }, { "docid": "f91cbba7d3a6c349261577e64fb2ff19", "score": "0.60294706", "text": "@GetMapping(value = { \"/\", \"/addContact\" })\r\n\tpublic String loadForm(Model model) {\r\n\t\tmodel.addAttribute(\"contact\", new Contact());\r\n\t\treturn \"contactInfo\";\r\n\t}", "title": "" }, { "docid": "ba8fb4a852d01bdbd42bd5d05b048fa5", "score": "0.60264075", "text": "public View() {\n initComponents();\n this.setTitle(\"Pet Registration\");\n this.setLocationRelativeTo(null);\n this.getRootPane().setDefaultButton(submitButton);\n this.setVisible(true);\n }", "title": "" }, { "docid": "4399b1224b99d1eb63106f88f8b2966c", "score": "0.602573", "text": "public void createHomePage(){\n\t\tsetLayout(new GridBagLayout());\n\t\tGridBagConstraints c = new GridBagConstraints(); \n\t\t//insert username and password fields\n\t\tJLabel title;\n\n\t\t//build the title panel\n\t\ttitlePanel = new JPanel();\n\t\ttitle = new JLabel(\"Budgie\");\n\t\ttitle.setSize(new Dimension(40, 40));\n\t\ttitlePanel.add(title);\n\n\t\tc.anchor = GridBagConstraints.CENTER;\n\t\tc.gridy = 0;\n\t\tc.weighty = .5;\n\t\tadd(titlePanel, c);\n\n\t\tinputField = addinputField();\n\n\t\t//positioning of the grid field\n\t\tc.fill = GridBagConstraints.HORIZONTAL;\n\t\tc.gridy = 1;\n\t\tc.ipady = 10;\n\t\tc.weighty = .5;\n\t\tadd(inputField, c);\n\n\t\tc.gridy++;\n\t\tJButton debug = new JButton(\"Debug\");\n\t\tdebug.addActionListener(new ActionListener(){\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tDebugPrinter.toggleDebug();\n\t\t\t}\n\n\t\t});\n\t\tadd(debug,c);\n\n\n\t\tpack();\n\n\n\t}", "title": "" }, { "docid": "ca03ac79469871cb805bc85fb674dcbb", "score": "0.60113096", "text": "public Managing_Staff_Main_Form() {\n initComponents();\n }", "title": "" }, { "docid": "82718f08c042160454b656d046e2fdc1", "score": "0.6004849", "text": "public frmPrincipal() {\n initComponents(); \n inicializar();\n \n }", "title": "" }, { "docid": "d3d6be3cc9f750323da8b223cddfc820", "score": "0.60013545", "text": "@RequestMapping(\"/save\")\n\tpublic String createProjectForm(Project project, Model model) {\n\t\t\n\tproRep.save(project);\n\tList<Project> getall = (List<Project>) proRep.getAll();\n\tmodel.addAttribute(\"projects\", getall);\n\t\n\treturn \"listproject\";\n\t\t\n\t}", "title": "" }, { "docid": "64aba2a114ecd1f23aed1c41152bc6c0", "score": "0.59993774", "text": "public ViewPrescriptionForm() {\n initComponents();\n }", "title": "" }, { "docid": "88509726c346b8b2d09f677e22e76198", "score": "0.5988694", "text": "@GetMapping(\"/showForm\")\n public String showFormForAdd(Model theModel) {\n Customer theCustomer = new Customer();\n theModel.addAttribute(\"customer\", theCustomer);\n return \"customer-form\";\n }", "title": "" }, { "docid": "c79526e4cae91f7668eb63c1ebf02280", "score": "0.59849817", "text": "public frm_tutor_subida_prueba() {\n }", "title": "" }, { "docid": "3085fc87715cac88529f7dae55ce591b", "score": "0.59823805", "text": "private void initialize() {\n setFrame(new JFrame());\n getFrame().setBounds(100, 100, 310, 270);\n getFrame().setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n getFrame().getContentPane().setLayout(null);\n\n JLabel lblTitle = new JLabel(\"Crear nuevo profesor\");\n lblTitle.setFont(new Font(\"Arial\", Font.BOLD | Font.ITALIC, 13));\n lblTitle.setBounds(10, 11, 264, 16);\n getFrame().getContentPane().add(lblTitle);\n\n JLabel lblNombre = new JLabel(\"Nombre\");\n lblNombre.setBounds(10, 36, 46, 14);\n getFrame().getContentPane().add(lblNombre);\n\n textNombre = new JTextField();\n textNombre.setBounds(66, 33, 86, 20);\n getFrame().getContentPane().add(textNombre);\n textNombre.setColumns(10);\n\n JLabel lbDni = new JLabel(\"DNI\");\n lbDni.setBounds(10, 61, 46, 14);\n getFrame().getContentPane().add(lbDni);\n\n textDni = new JTextField();\n textDni.setBounds(66, 58, 86, 20);\n getFrame().getContentPane().add(textDni);\n textDni.setColumns(10);\n\n JLabel lblEdad = new JLabel(\"Edad\");\n lblEdad.setBounds(10, 86, 46, 14);\n getFrame().getContentPane().add(lblEdad);\n\n textEdad = new JTextField();\n textEdad.setBounds(66, 83, 86, 20);\n getFrame().getContentPane().add(textEdad);\n textEdad.setColumns(10);\n\n JLabel lbCurso = new JLabel(\"Curso\");\n lbCurso.setBounds(10, 111, 46, 14);\n getFrame().getContentPane().add(lbCurso);\n\n textCurso = new JTextField();\n textCurso.setBounds(66, 108, 86, 20);\n getFrame().getContentPane().add(textCurso);\n textCurso.setColumns(10);\n\n JLabel lblSueldo = new JLabel(\"Sueldo\");\n lblSueldo.setBounds(10, 136, 46, 14);\n getFrame().getContentPane().add(lblSueldo);\n\n textSueldo = new JTextField();\n textSueldo.setBounds(66, 133, 86, 20);\n getFrame().getContentPane().add(textSueldo);\n textSueldo.setColumns(10);\n\n JLabel lblNewLabel = new JLabel(\"Todos los campos son obligatorios\");\n lblNewLabel.setForeground(Color.RED);\n lblNewLabel.setFont(new Font(\"Arial\", Font.BOLD | Font.ITALIC, 11));\n lblNewLabel.setBounds(10, 161, 264, 14);\n getFrame().getContentPane().add(lblNewLabel);\n\n JButton btnCrear = new JButton(\"Crear profesor\");\n btnCrear.setForeground(Color.WHITE);\n btnCrear.setBackground(Color.DARK_GRAY);\n btnCrear.setFont(new Font(\"Arial\", Font.BOLD, 12));\n btnCrear.addActionListener(new ActionListener() {\n\n /**\n * Al presionar el boton 'btnCrear' este crea un objeto de tipo Profesor y\n * accede la informacion dentreo de cada JTextField() asignanco al objeto creado\n * estos valores obtenidos.\n *\n * @param e el evento.\n * @see #Ficheros.\n */\n public void actionPerformed(ActionEvent e) {\n Profesor p = new Profesor();\n p.setNombre(textNombre.getText().toUpperCase());\n p.setDni(textDni.getText().toUpperCase());\n p.setEdad(Integer.parseInt(textEdad.getText()));\n p.setCurso(Integer.parseInt(textCurso.getText()));\n p.setSueldo(Integer.parseInt(textSueldo.getText()));\n try {\n Ficheros.guardar(p, Ficheros.D_PROFESORES);\n } catch (IOException e2) {\n System.out.println(\"Fichero no encontrado - guardarAlumno()\");\n }\n }\n });\n btnCrear.setBounds(10, 186, 119, 33);\n getFrame().getContentPane().add(btnCrear);\n\n JButton btnMostrar = new JButton(\"Mostrar profesores\");\n btnMostrar.setForeground(Color.WHITE);\n btnMostrar.setBackground(Color.DARK_GRAY);\n btnMostrar.setFont(new Font(\"Arial\", Font.BOLD, 12));\n btnMostrar.setBounds(139, 186, 145, 33);\n btnMostrar.addActionListener(new ActionListener() {\n /**\n * Muestra los profesores almacenados en los ficheros desde Class Ficheros.\n *\n * @param e el evento.\n * @see #Ficheros.\n */\n public void actionPerformed(ActionEvent e) {\n Profesor p = null;\n System.out.println(\"---- Profesores ----\");\n Ficheros.leerFicheros(p, Ficheros.D_PROFESORES);\n }\n });\n getFrame().getContentPane().add(btnMostrar);\n }", "title": "" }, { "docid": "da10933e70bb1690f0754ced72be9c8b", "score": "0.5971754", "text": "private void createForm() throws IOException {\n\t\t\t\n\t\t\t \n\t\t\tweatherData tmp = new weatherData();\n\t\t\ttry {\n\t\t\t\tapp.grab(app.getVisibleLocation().getCityID(), app.getUnits());\n\t\t\t} catch (IOException e) {\n\t\t\t\tthrow new IOException(\"error\");\n\t\t\t}\n\t\t\t\n\t\t\ttmp = app.getCurrent();\n\t\t\t\n\t\t\tJLabel lblcity = new JLabel(tmp.getName() + \", \" + tmp.getCount() + \", \" + tmp.getLon() + \", \" + tmp.getLat()); //displays location info\n\t\t\tlblcity.setForeground(Color.WHITE);\n\t\t\tlblcity.setFont(new Font(\"Lucida Console\", Font.PLAIN, 40));\n\t\t\tJLabel lbldescrip = new JLabel(\"Weather Condition: \");\n\t\t\tlbldescrip.setForeground(Color.WHITE);\n\t\t\tlbldescrip.setFont(new Font(\"Courier New\", Font.BOLD, 18));\n\t\t\tJLabel lbldescrip2 = new JLabel(\"\" +tmp.getCondit());\n\t\t\t\n\t\t\tlbldescrip2.setForeground(Color.WHITE);\n\t\t\tlbldescrip2.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lbltemp = new JLabel(\"Temp: \"); //label for temp\n\t\t\tlbltemp.setForeground(Color.WHITE);\n\t\t\tlbltemp.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lbltemp2 = new JLabel(\"\" + tmp.getTemp()); //actual temp\n\t\t\tlbltemp2.setForeground(Color.WHITE);\n\t\t\tlbltemp2.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lblmin = new JLabel(\"Min Temp: \"); //label for min\n\t\t\tlblmin.setForeground(Color.WHITE);\n\t\t\tlblmin.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lblmin2 = new JLabel(\"\" + tmp.getMin()); //actual min\n\t\t\tlblmin2.setForeground(Color.WHITE);\n\t\t\tlblmin2.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lblmax = new JLabel(\"Max Temp: \" ); //label for max\n\t\t\tlblmax.setForeground(Color.WHITE);\n\t\t\tlblmax.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lblmax2 = new JLabel(\"\" + tmp.getMax()); //actual max\n\t\t\tlblmax2.setForeground(Color.WHITE);\n\t\t\tlblmax2.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lblspeed = new JLabel(\"Wind Speed: \"); //label for speed\n\t\t\tlblspeed.setForeground(Color.WHITE);\n\t\t\tlblspeed.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lblspeed2 = new JLabel(\"\" + tmp.getSpeed()); //actual speed\n\t\t\tlblspeed2.setForeground(Color.WHITE);\n\t\t\tlblspeed2.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lbldir = new JLabel(\"Wind Direction: \"); //label for dir \n\t\t\tlbldir.setForeground(Color.WHITE);\n\t\t\tlbldir.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lbldir2 = new JLabel(\"\" + tmp.getDir()); //actual dir\n\t\t\tlbldir2.setForeground(Color.WHITE);\n\t\t\tlbldir2.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lblpress = new JLabel(\"Air Pressure: \"); //label for pressure\n\t\t\tlblpress.setForeground(Color.WHITE);\n\t\t\tlblpress.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lblpress2 = new JLabel(\"\" + tmp.getPress()); //actual pressure\n\t\t\tlblpress2.setForeground(Color.WHITE);\n\t\t\tlblpress2.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lblhumid = new JLabel(\"Humidity: \"); //label for humid\n\t\t\tlblhumid.setForeground(Color.WHITE);\n\t\t\tlblhumid.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lblhumid2 = new JLabel(\"\" + tmp.getHumid()); //actual humid\n\t\t\tlblhumid2.setForeground(Color.WHITE);\n\t\t\tlblhumid2.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lblrise = new JLabel(\"Sunrise Time: \"); //label for sunrise\n\t\t\tlblrise.setForeground(Color.WHITE);\n\t\t\tlblrise.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lblrise2 = new JLabel(\"\" + tmp.getSunrise()); //actual sunrise\n\t\t\tlblrise2.setForeground(Color.WHITE);\n\t\t\tlblrise2.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lblset = new JLabel(\"Sunset Time: \"); //label for susnet\n\t\t\tlblset.setForeground(Color.WHITE);\n\t\t\tlblset.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\tJLabel lblset2 = new JLabel(\"\" + tmp.getSunset()); //actual sunset\n\t\t\tlblset2.setForeground(Color.WHITE);\n\t\t\tlblset2.setFont(new Font(lbldescrip.getFont().getFontName(), Font.BOLD, lbldescrip.getFont().getSize()));\n\t\t\t\n\t\t\t//used to set picture\n\t\t\tBufferedImage pic = tmp.getIcon();\n\t\t\t//pic = Scalr.resize(pic, 80);\n\t\t\tJLabel lblPic = new JLabel(new ImageIcon(pic)); //holds picture\n\t\t\t\n\t\t\t//Set the colours for the background gradient\n\t\t\tsetBgColours(tmp);\n\t\t\t\n\t\t\t//adds control with layout organization\n\t\t\tGroupLayout layout = new GroupLayout(currentPanel);\n\t\t\tcurrentPanel.setLayout(layout);\n\t\t\tlayout.setAutoCreateGaps(true);\n\t\t\tlayout.setAutoCreateContainerGaps(true);\n\t\t\tlayout.setHorizontalGroup( layout.createSequentialGroup() //sets horizontal groups\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(GroupLayout.Alignment.CENTER) //holds all the identifier labels\n\t\t\t\t\t\t\t.addComponent(lblcity)\n\t\t\t\t\t\t\t.addComponent(lblPic)\n\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t.addComponent(lbldescrip)\n\t\t\t\t\t\t\t\t\t.addComponent(lbltemp)\n\t\t\t\t\t\t\t\t\t.addComponent(lblmin)\n\t\t\t\t\t\t\t\t\t.addComponent(lblmax)\n\t\t\t\t\t\t\t\t\t.addComponent(lblspeed)\n\t\t\t\t\t\t\t\t\t.addComponent(lbldir)\n\t\t\t\t\t\t\t\t\t.addComponent(lblpress)\n\t\t\t\t\t\t\t\t\t.addComponent(lblhumid)\n\t\t\t\t\t\t\t\t\t.addComponent(lblrise)\n\t\t\t\t\t\t\t\t\t.addComponent(lblset)\n\t\t\t\t\t\t\t)\n\n\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING) //sets weather Data labels\n\t\t\t\t\t\t\t\t\t.addComponent(lbldescrip2)\n\t\t\t\t\t\t\t\t\t.addComponent(lbltemp2)\n\t\t\t\t\t\t\t\t\t.addComponent(lblmin2)\n\t\t\t\t\t\t\t\t\t.addComponent(lblmax2)\n\t\t\t\t\t\t\t\t\t.addComponent(lblspeed2)\n\t\t\t\t\t\t\t\t\t.addComponent(lbldir2)\n\t\t\t\t\t\t\t\t\t.addComponent(lblpress2)\n\t\t\t\t\t\t\t\t\t.addComponent(lblhumid2)\n\t\t\t\t\t\t\t\t\t.addComponent(lblrise2)\n\t\t\t\t\t\t\t\t\t.addComponent(lblset2)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t)\n\t\t\t\t\t)\n\t\t\t\t);\n\t\t\t\n\t\t\tlayout.setVerticalGroup( layout.createSequentialGroup() //sets verticsal groups\n\t\t\t\t\t.addGroup( layout.createParallelGroup(GroupLayout.Alignment.BASELINE) //city is on its own\n\t\t\t\t\t\t\t.addComponent(lblcity)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t.addGroup( layout.createParallelGroup(GroupLayout.Alignment.BASELINE) //pic is on its own\n\t\t\t\t\t\t\t.addComponent(lblPic)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t.addGroup( layout.createParallelGroup(GroupLayout.Alignment.BASELINE) //the rest have the identifier, followed by the actual data\n\t\t\t\t\t\t\t.addComponent(lbldescrip)\n\t\t\t\t\t\t\t.addComponent(lbldescrip2)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t.addGroup( layout.createParallelGroup(GroupLayout.Alignment.BASELINE)\n\t\t\t\t\t\t\t.addComponent(lbltemp)\n\t\t\t\t\t\t\t.addComponent(lbltemp2)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t.addGroup( layout.createParallelGroup(GroupLayout.Alignment.BASELINE)\n\t\t\t\t\t\t\t.addComponent(lblmin)\n\t\t\t\t\t\t\t.addComponent(lblmin2)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t.addGroup( layout.createParallelGroup(GroupLayout.Alignment.BASELINE)\n\t\t\t\t\t\t\t.addComponent(lblmax)\n\t\t\t\t\t\t\t.addComponent(lblmax2)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t.addGroup( layout.createParallelGroup(GroupLayout.Alignment.BASELINE)\n\t\t\t\t\t\t\t.addComponent(lblspeed)\n\t\t\t\t\t\t\t.addComponent(lblspeed2)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t.addGroup( layout.createParallelGroup(GroupLayout.Alignment.BASELINE)\n\t\t\t\t\t\t\t.addComponent(lbldir)\n\t\t\t\t\t\t\t.addComponent(lbldir2)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t.addGroup( layout.createParallelGroup(GroupLayout.Alignment.BASELINE)\n\t\t\t\t\t\t\t.addComponent(lblpress)\n\t\t\t\t\t\t\t.addComponent(lblpress2)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t.addGroup( layout.createParallelGroup(GroupLayout.Alignment.BASELINE)\n\t\t\t\t\t\t\t.addComponent(lblhumid)\n\t\t\t\t\t\t\t.addComponent(lblhumid2)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t.addGroup( layout.createParallelGroup(GroupLayout.Alignment.BASELINE)\n\t\t\t\t\t\t\t.addComponent(lblrise)\n\t\t\t\t\t\t\t.addComponent(lblrise2)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t.addGroup( layout.createParallelGroup(GroupLayout.Alignment.BASELINE)\n\t\t\t\t\t\t\t.addComponent(lblset)\n\t\t\t\t\t\t\t.addComponent(lblset2)\n\t\t\t\t\t\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\t//currentPanel.setLayout(layout); //sets the layout\t\t\n\t\t\tcurrentPanel.validate();\n\t\t\tcurrentPanel.repaint();\n\n\t\t\t try {\n\t\t\t\t\tapp.storePref();\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tJFrame error = new JFrame();\n\t\t\t\t\tJOptionPane.showMessageDialog(error, \"An error occured\");\n\t\t\t\t}\n\t\t\t}", "title": "" }, { "docid": "53e690d2302e8213d68259a0df61678f", "score": "0.59646356", "text": "public frmAfiliado() {\n initComponents();\n \n }", "title": "" }, { "docid": "60473dd208f3d68ca73f3d064e6f3fcc", "score": "0.59638506", "text": "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 }", "title": "" }, { "docid": "e04078052e560837e2ae8fdc3c218e49", "score": "0.59595746", "text": "private void formFiller(FormLayout fl)\n\t{\n fl.setSizeFull();\n\n\t\ttf0=new TextField(\"Name\");\n\t\ttf0.setRequired(true);\n\t\t\n sf1 = new Select (\"Customer\");\n try \n {\n\t\t\tfor(String st :db.selectAllCustomers())\n\t\t\t{\n\t\t\t\tsf1.addItem(st);\n\t\t\t}\n\t\t} \n \tcatch (UnsupportedOperationException | SQLException e) \n \t{\n \t\tErrorWindow wind = new ErrorWindow(e); \n\t UI.getCurrent().addWindow(wind);\n \t\te.printStackTrace();\n \t}\n sf1.setRequired(true);\n \n sf2 = new Select (\"Project Type\");\n sf2.addItem(\"In house\");\n sf2.addItem(\"Outsourcing\");\n df3=new DateField(\"Start Date\");\n df3.setDateFormat(\"d-M-y\");\n df3.setRequired(true);\n \n df4=new DateField(\"End Date\");\n df4.setDateFormat(\"d-M-y\");\n \n df4.setRangeStart(df3.getValue());\n \n df5=new DateField(\"Next DeadLine\");\n df5.setDateFormat(\"d-M-y\");\n df5.setRangeStart(df3.getValue());\n df5.setRangeEnd(df4.getValue());\n sf6 = new Select (\"Active\");\n sf6.addItem(\"yes\");\n sf6.addItem(\"no\");\n sf6.setRequired(true);\n \n tf7=new TextField(\"Budget(mandays)\");\n \n tf8=new TextArea(\"Description\");\n \n tf9=new TextField(\"Inserted By\");\n \n tf10=new TextField(\"Inserted At\");\n \n tf11=new TextField(\"Modified By\");\n \n tf12=new TextField(\"Modified At\");\n \n if( project.getName()!=null)tf0.setValue(project.getName());\n else tf0.setValue(\"\");\n\t\tif(!editable)tf0.setReadOnly(true);\n fl.addComponent(tf0, 0);\n \n\n if(project.getCustomerID()!=-1)\n\t\t\ttry \n \t{\n\t\t\t\tsf1.setValue(db.selectCustomerforId(project.getCustomerID()));\n\t\t\t}\n \tcatch (ReadOnlyException | SQLException e) \n \t{\n \t\tErrorWindow wind = new ErrorWindow(e); \n\t\t UI.getCurrent().addWindow(wind);\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\telse sf1.setValue(\"\");\n if(!editable)sf1.setReadOnly(true);\n fl.addComponent(sf1, 1);\n \n \n if(project.getProjectType()!=null)sf2.setValue(project.getProjectType());\n else sf2.setValue(\"\");\n if(!editable)sf2.setReadOnly(true);\n fl.addComponent(sf2, 2);\n \n if(project.getStartDate()!=null) df3.setValue(project.getStartDate());\n if(!editable)df3.setReadOnly(true);\n fl.addComponent(df3, 3);\n \n if(project.getEndDate()!=null) df4.setValue(project.getEndDate());\n if(!editable)df4.setReadOnly(true);\n fl.addComponent(df4, 4);\n \n if(project.getNextDeadline()!=null)df5.setValue(project.getNextDeadline());\n if(!editable)df5.setReadOnly(true);\n fl.addComponent(df5, 5);\n \n if (project.isActive())sf6.setValue(\"yes\");\n else sf6.setValue(\"no\");\n if(!editable)sf6.setReadOnly(true);\n fl.addComponent(sf6, 6);\n \n if(project.getBudget()!=-1.0) tf7.setValue(String.valueOf(project.getBudget()));\n else tf7.setValue(\"\");\n if(!editable)tf7.setReadOnly(true);\n fl.addComponent(tf7, 7);\n \n if(project.getDescription()!=null)tf8.setValue(project.getDescription());\n else tf8.setValue(\"\");\n if(!editable)tf8.setReadOnly(true);\n fl.addComponent(tf8, 8);\n \n if(project.getInserted_by()!=null)tf9.setValue(project.getInserted_by());\n else tf9.setValue(\"\");\n tf9.setEnabled(false);\n fl.addComponent(tf9, 9);\n \n if(project.getInserted_at()!=null)tf10.setValue(project.getInserted_at().toString());\n else tf10.setValue(\"\");\n tf10.setEnabled(false);\n fl.addComponent(tf10, 10);\n \n if(project.getModified_by()!=null)tf11.setValue(project.getModified_by());\n else tf11.setValue(\"\");\n tf11.setEnabled(false);\n fl.addComponent(tf11, 11);\n \n if(project.getModified_at()!=null)tf12.setValue(project.getModified_at().toString());\n else tf12.setValue(\"\");\n tf12.setEnabled(false);\n fl.addComponent(tf12, 12);\n \n \n\t}", "title": "" }, { "docid": "52c08d68a333fe9b596ef70e1fb7fa90", "score": "0.5959045", "text": "private JFrame createFrame() {\n\t\tJFrame frmProfessorgui = new JFrame();\n\t\tfrmProfessorgui.getContentPane().setBackground(new Color(153, 204, 204));\n\t\tfrmProfessorgui.getContentPane().setForeground(SystemColor.desktop);\n\t\tfrmProfessorgui.setTitle(\"ProfessorGUI\");\n\t\tfrmProfessorgui.setBounds(100, 100, 600, 475);\n\t\tfrmProfessorgui.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n\t\tfrmProfessorgui.getContentPane().setLayout(null);\n\n\n\t\t//List, ScrollPane and Button Components\n\t\tmodel = new DefaultListModel();\n\t\tsetList();\n\t\tlist = new JList(model);\n\t\tlist.setBackground(new Color(255, 245, 238));\n\t\tJScrollPane scrollPane = new JScrollPane(list, JScrollPane.VERTICAL_SCROLLBAR_ALWAYS, JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);\n\t\tscrollPane.setBounds(10, 46, 293, 365);\n\t\tfrmProfessorgui.getContentPane().add(scrollPane);\n\n\t\tlist.setFont(new Font(\"Dialog\", Font.PLAIN, 13));\n\t\tlist.setBorder(new LineBorder(new Color(128, 128, 128), 2, true));\n\n\t\tcourse = new JButton(\"View Course\");\n\t\tcourse.setFont(new Font(\"Dialog\", Font.PLAIN, 13));\n\t\tcourse.addActionListener(new profMainListener());\n\n\t\tcourse.setBounds(390, 207, 126, 22);\n\t\tfrmProfessorgui.getContentPane().add(course);\n\n\t\tcreate = new JButton(\"Create Course\");\n\t\tcreate.setFont(new Font(\"Dialog\", Font.PLAIN, 13));\n\t\tcreate.setBounds(390, 250, 126, 22);\n\t\tfrmProfessorgui.getContentPane().add(create);\n\t\tcreate.addActionListener(new profMainListener());\n\n\t\tactivate = new JButton(\"Activate\");\n\t\tactivate.addActionListener(new profMainListener()); \n\t\tactivate.setFont(new Font(\"Dialog\", Font.PLAIN, 13));\n\t\tactivate.setBounds(390, 296, 126, 22);\n\t\tfrmProfessorgui.getContentPane().add(activate);\n\n\t\tdeactivate = new JButton(\"Deactivate\");\n\t\tdeactivate.addActionListener(new profMainListener());\n\n\t\tdeactivate.setFont(new Font(\"Dialog\", Font.PLAIN, 13));\n\t\tdeactivate.setBounds(390, 340, 126, 22);\n\t\tfrmProfessorgui.getContentPane().add(deactivate);\n\n\n\t\t//Aesthetic Pieces\n\t\tJLabel lblCourseList = new JLabel(\"Course List\");\n\t\tlblCourseList.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tlblCourseList.setFont(new Font(\"Dialog\", Font.BOLD, 16));\n\t\tlblCourseList.setBounds(21, 11, 261, 24);\n\t\tfrmProfessorgui.getContentPane().add(lblCourseList);\n\n\t\tJLabel lblWelcome = new JLabel(\"Welcome\");\n\t\tlblWelcome.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tlblWelcome.setFont(new Font(\"Dialog\", Font.BOLD, 16));\n\t\tlblWelcome.setBounds(357, 49, 191, 46);\n\t\tfrmProfessorgui.getContentPane().add(lblWelcome);\n\n\t\tJLabel lblNewLabel = new JLabel(prof.getFirstName() + \" \" + prof.getLastName());\n\t\tlblNewLabel.setFont(new Font(\"Dialog\", Font.ITALIC, 16));\n\t\tlblNewLabel.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tlblNewLabel.setBounds(335, 82, 239, 40);\n\t\tfrmProfessorgui.getContentPane().add(lblNewLabel);\n\n\t\tJPanel panel = new JPanel();\n\t\tpanel.setBorder(new LineBorder(new Color(128, 128, 128), 2, true));\n\t\tpanel.setBackground(new Color(204, 255, 255));\n\t\tpanel.setBounds(367, 178, 174, 213);\n\t\tfrmProfessorgui.getContentPane().add(panel);\n\n\t\treturn frmProfessorgui;\n\t}", "title": "" }, { "docid": "ec88a1949bdd4fba1010b9b7f365df42", "score": "0.59559906", "text": "public void clickCreate() {\n\t\tbtnCreate.click();\n\t}", "title": "" }, { "docid": "e492d282d89edbd196890804477eb580", "score": "0.5946488", "text": "public FormCompra() {\n initComponents();\n }", "title": "" }, { "docid": "c255c695943c245b8e63f877026440ea", "score": "0.5945852", "text": "public formPrincipal() {\n initComponents();\n }", "title": "" }, { "docid": "cd7063c639e48977a4f10ad03246c2c9", "score": "0.59443974", "text": "public void onNew() {\t\t\n\t\tdesignWidget.addNewForm();\n\t}", "title": "" }, { "docid": "a6a3e0d518f1cf809081fc51a8c1f0a1", "score": "0.5937873", "text": "private void createUserInterface()\r\n {\r\n // get content pane for attaching GUI components\r\n Container contentPane = getContentPane();\r\n\r\n // enable explicit positioning of GUI components\r\n contentPane.setLayout( null );\r\n \r\n // set up side1JLabel\r\n side1JLabel = new JLabel();\r\n side1JLabel.setBounds( 16, 16, 40, 24 );\r\n side1JLabel.setText( \"Side1:\" );\r\n contentPane.add( side1JLabel );\r\n \r\n // set up side1JTextField\r\n side1JTextField = new JTextField();\r\n side1JTextField.setBounds( 72, 16, 90, 24 );\r\n side1JTextField.setHorizontalAlignment( JTextField.RIGHT ); \r\n contentPane.add( side1JTextField );\r\n \r\n // set up side2JLabel\r\n side2JLabel = new JLabel();\r\n side2JLabel.setBounds( 16, 56, 40, 24 );\r\n side2JLabel.setText( \"Side2:\" );\r\n contentPane.add( side2JLabel );\r\n \r\n // set up side2JTextField\r\n side2JTextField = new JTextField();\r\n side2JTextField.setBounds( 72, 56, 90, 24 );\r\n side2JTextField.setHorizontalAlignment( JTextField.RIGHT );\r\n contentPane.add( side2JTextField );\r\n \r\n // set up side3JLabel\r\n side3JLabel = new JLabel();\r\n side3JLabel.setBounds( 16, 96, 40, 24 );\r\n side3JLabel.setText( \"Side3:\" );\r\n contentPane.add( side3JLabel );\r\n \r\n // set up side3JTextField\r\n side3JTextField = new JTextField();\r\n side3JTextField.setBounds( 72, 96, 90, 24 );\r\n side3JTextField.setHorizontalAlignment( JTextField.RIGHT );\r\n contentPane.add( side3JTextField );\r\n \r\n // set up messageJTextField\r\n messageJTextField = new JTextField();\r\n messageJTextField.setBounds( 16, 140, 252, 24 );\r\n messageJTextField.setEditable( false );\r\n contentPane.add( messageJTextField );\r\n \r\n // set up createJButton\r\n createJButton = new JButton();\r\n createJButton.setBounds( 178, 16, 90, 24 );\r\n createJButton.setText( \"Create\" );\r\n contentPane.add( createJButton );\r\n createJButton.addActionListener( \r\n \r\n new ActionListener() // anonymous inner class\r\n {\r\n // event handler called when createJButton is pressed\r\n public void actionPerformed( ActionEvent event )\r\n {\r\n createJButtonActionPerformed( event );\r\n }\r\n \r\n } // end anonymous inner class\r\n \r\n ); // end call to addActionListener\r\n \r\n // set properties of application's window\r\n setTitle( \"Triangle Creator\" ); // set title bar string\r\n setSize( 290, 208 ); // set window size\r\n setVisible( true ); // display window\r\n \r\n }", "title": "" }, { "docid": "5c887c6bce2589ba19d5c6a02dd78244", "score": "0.5937142", "text": "public quanlixe_form() {\n initComponents();\n }", "title": "" }, { "docid": "68ec1433855b074b899dc157357b520c", "score": "0.5932718", "text": "public AddForensicsForm()\r\n\t{\r\n\t\t//sets the layout to border layout as the default layout for a jpanel is flow.\r\n\t\tthis.setLayout(new BorderLayout());\r\n\t\t\r\n\t\t//creates the number format that stops letters being entered into certain textfields\r\n\t\tnumForm = NumberFormat.getIntegerInstance();\r\n\t\tnumForm.setGroupingUsed(false);\r\n\t\tnumForm.setMinimumIntegerDigits(0);\r\n\t\t\r\n\t\t/* Creates the form panel that will hold all the labels and text fields for the form.\r\n\t\t * It is given a grid layout so that each row will be a different section of the form e.g \r\n\t\t * what case it is a part of then on the next line the ID number of the forensic file etc.*/\r\n\t\tform = new JPanel();\r\n\t\tform.setLayout(new GridLayout(0,2,5,5));\r\n\t\tform.setBorder(new CompoundBorder(new EmptyBorder(5,5,5,5), new CompoundBorder(new EtchedBorder(), new EmptyBorder(5,5,5,5))));\r\n\t\t\r\n\t\t/* this is the label and textfield that is used to link the forensic file to the case, this has to be\r\n\t\t * done manually as new forensic files could be added for older cases as well as newer and there is no\r\n\t\t * way to predetermine what case the file is for. */\r\n\t\tevidenceLabel = new JLabel(\"Forensic File for case: \");\r\n\t\tevidenceID = new JFormattedTextField(numForm);\r\n\t\tform.add(evidenceLabel);\r\n\t\tform.add(evidenceID);\r\n\t\t\r\n\t\t/* This is the label and text field that holds the information for the ID of the forensics file\r\n\t\t * as this is unique and assigned automatically the field is set to uneditable by default\r\n\t\t * the assignID method in the forensic class is used to assign a unique ID to the forensic file*/\r\n\t\tforensicLabel = new JLabel(\"Forensics ID: \");\r\n\t\tforensicID = new JFormattedTextField();\r\n\t\tforensicID.setEditable(false);\r\n\t\tf1.assignID();\r\n\t\tforensicID.setText(String.valueOf(f1.getForensicID()));\r\n\t\tform.add(forensicLabel);\r\n\t\tform.add(forensicID);\r\n\t\t\r\n\t\t/* This is the label and combobox for biological evidence, it uses the confirmation\r\n\t\t * array to give it the values for the combobox*/\r\n\t\tbioLabel = new JLabel(\"Presence of Biological Evidence:\");\r\n\t\tbioBox = new JComboBox(confirmation);\r\n\t\tform.add(bioLabel);\r\n\t\tform.add(bioBox);\r\n\t\t\r\n\t\t/* This is the label and combobox for print evidence e.g finger prints and toe prints, it uses the confirmation\r\n\t\t * array to give it the values for the combobox*/\r\n\t\tprintsLabel = new JLabel(\"Presence of Finger Prints:\");\r\n\t\tprintsBox = new JComboBox(confirmation);\r\n\t\tform.add(printsLabel);\r\n\t\tform.add(printsBox);\r\n\t\t\r\n\t\t/* This is the label and combobox for Track evidence e.g boot and tire, it uses the confirmation\r\n\t\t * array to give it the values for the combobox*/\r\n\t\ttracksLabel = new JLabel(\"Presence of Vehicle/Foot Tracks:\");\r\n\t\ttracksBox = new JComboBox(confirmation);\r\n\t\tform.add(tracksLabel);\r\n\t\tform.add(tracksBox);\r\n\t\t\r\n\t\t/* This is the label and combobox for digital evidence e.g phones and tablets, it uses the confirmation\r\n\t\t * array to give it the values for the combobox*/\r\n\t\tdigitalLabel = new JLabel(\"Presence of Digital Evidence: \");\r\n\t\tdigitalBox = new JComboBox(confirmation);\r\n\t\tform.add(digitalLabel);\r\n\t\tform.add(digitalBox);\r\n\t\t\r\n\t\t/* This is the label and combobox for tool mark evidence, it uses the confirmation\r\n\t\t * array to give it the values for the combobox*/\r\n\t\ttoolMarkLabel = new JLabel(\"Presence of tool marks\");\r\n\t\ttoolMarkBox = new JComboBox(confirmation);\r\n\t\tform.add(toolMarkLabel);\r\n\t\tform.add(toolMarkBox);\r\n\t\t\t\t\r\n\t\t/* This is the label and combobox for narcotic evidence, it uses the confirmation\r\n\t\t * array to give it the values for the combobox*/\r\n\t\tnarcoticLabel = new JLabel(\"Presence of Narcotics: \");\r\n\t\tnarcoticBox = new JComboBox(confirmation);\r\n\t\tform.add(narcoticLabel);\r\n\t\tform.add(narcoticBox);\r\n\t\t\r\n\t\t/* This is the label and combobox for firearm evidence, it uses the confirmation\r\n\t\t * array to give it the values for the combobox*/\r\n\t\tfirearmLabel = new JLabel(\"Presence of Firearms: \");\r\n\t\tfirearmBox = new JComboBox(confirmation);\r\n\t\tform.add(firearmLabel);\r\n\t\tform.add(firearmBox);\r\n\t\t\r\n\t\t/* these are the buttons to cancel and sumbit and the panel that holds them\r\n\t\t * Submit uses the inner class listener to perform a function\r\n\t\t * and the cancel button is used by the window handler class to\r\n\t\t * return to the previous menu*/\r\n\t\tbuttons = new JPanel();\r\n\t\tsubmit = new JButton(\"Submit\");\r\n\t\tsubmit.addActionListener(this);\r\n\t\tcancel = new JButton(\"Cancel\");\r\n\t\tbuttons.add(submit);\r\n\t\tbuttons.add(cancel);\r\n\t\t\r\n\t\t//this is the container that holds both the button and form panel.\r\n\t\tcontainer = new JPanel();\r\n\t\tcontainer.setLayout(new GridLayout(0,1));\r\n\t\tcontainer.setBorder(new EmptyBorder(200, 0, 0, 0));\r\n\t\tcontainer.add(form);\r\n\t\tcontainer.add(buttons);\r\n\t\t\r\n\t\t//adds the container to the main panel.\r\n\t\tadd(container, BorderLayout.CENTER);\r\n\t}", "title": "" }, { "docid": "e2eda73a5faa9002fa3f21f10d135921", "score": "0.5931332", "text": "@RequestMapping(value = \"/enrollment.html\", method = RequestMethod.GET)\n public String displayForm(Model model) {\n model.addAttribute(\"fixture\", new FixtureModel());\n return \"fixtures/enrollment\";\n }", "title": "" }, { "docid": "17bd04609a94a51a6d141f1b983300d8", "score": "0.5917079", "text": "private void loadForm() {\n CodingProxy icd9 = problem.getIcd9Code();\n \n if (icd9 != null) {\n txtICD.setText(icd9.getProxiedObject().getCode());\n }\n \n String narr = problem.getProviderNarrative();\n \n if (narr == null) {\n narr = icd9 == null ? \"\" : icd9.getProxiedObject().getDisplay();\n }\n \n String probId = problem.getNumberCode();\n \n if (probId == null || probId.isEmpty()) {\n probId = getBroker().callRPC(\"BGOPROB NEXTID\", PatientContext.getActivePatient().getIdElement().getIdPart());\n }\n \n String pcs[] = probId.split(\"\\\\-\", 2);\n lblPrefix.setValue(pcs[0] + \" - \");\n txtID.setValue(pcs.length < 2 ? \"\" : pcs[1]);\n txtNarrative.setText(narr);\n datOnset.setValue(problem.getOnsetDate());\n \n if (\"P\".equals(problem.getProblemClass())) {\n radPersonal.setSelected(true);\n } else if (\"F\".equals(problem.getProblemClass())) {\n radFamily.setSelected(true);\n } else if (\"I\".equals(problem.getStatus())) {\n radInactive.setSelected(true);\n } else {\n radActive.setSelected(true);\n }\n \n int priority = NumberUtils.toInt(problem.getPriority());\n cboPriority.setSelectedIndex(priority < 0 || priority > 5 ? 0 : priority);\n loadNotes();\n }", "title": "" }, { "docid": "bdc9631d3bef074687a568d37a341cf3", "score": "0.5909069", "text": "private void readForm() {\n }", "title": "" }, { "docid": "d9dc08523d156a021d068be9aa358aba", "score": "0.5899165", "text": "public Project_Create() {\n initComponents();\n }", "title": "" }, { "docid": "3c462c6f3ef93150018f6281cefced7c", "score": "0.5896299", "text": "private ShowCreateAnswerPage() {\n this.service = UserService.retrieve();\n this.validator = Validator.retrieve();\n }", "title": "" }, { "docid": "dc3fea898e789e45ee8acc339654befe", "score": "0.5889441", "text": "private void showNewForm(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n RequestDispatcher dispatcher = request.getRequestDispatcher(\"customer/newCustomer.jsp\");\n dispatcher.forward(request, response);\n }", "title": "" }, { "docid": "1cd55b4997451c8c0359a6c5abf2f5e3", "score": "0.5885667", "text": "@GetMapping(\"/createRegistro\")\n\tpublic String crearValidacion(Model model) {\n\t\tList<Barrio> localidades = barrioService.obtenerBarrios();\n\t\tmodel.addAttribute(\"localidades\",localidades);\n\t\tmodel.addAttribute(\"persona\",persona);\n\t\tmodel.addAttribute(\"validacion\",validacion);\n\t\tmodel.addAttribute(\"registro\",registro);\n\t\tmodel.addAttribute(\"barrio\",barrio);\n\t\treturn \"RegistroForm\";\n\t}", "title": "" }, { "docid": "a6f902bbf277704060e7a2f14aea66b4", "score": "0.588551", "text": "public void showFormInstitucion(ActionEvent event) {\r\n\t\tlog.info(\"-------------------------------------Debugging showFormInstitucion-------------------------------------\");\r\n\t\tlog.info(\"blnShowFormInstitucion: \"+getBlnShowFormInstitucion());\r\n\t\tsetBlnShowFormInstitucion(true);\r\n\t\tsetOnNewDisabledInsti(true); //Deshabilita los controles por defecto cuando se desea crear un nuevo registro.\r\n\t\tsetRenderConfigN1(false);\r\n\t\tsetStrBtnAgregarN1(\"Agregar Configuración\");\r\n\t\tsetRenderProcesPlanillaN1(false);\r\n\t\tsetRenderAdministraN1(false);\r\n\t\tsetRenderCobChequesN1(false);\r\n\t\tlimpiarFormInstitucion();\r\n\t}", "title": "" }, { "docid": "9045f0329c446c4d2a283eb9c13dcb02", "score": "0.58831817", "text": "public Add_Lecture_Form() {\n initComponents();\n \n this.setVisible(true);\n this.pack();\n this.setLocationRelativeTo(null);\n }", "title": "" }, { "docid": "460711ad6fd3dd83ff6633e2a102c35b", "score": "0.5880526", "text": "public KorisnikForma() {\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t\tsetBounds(100, 100, 629, 613);\n\t\tcontentPane = new JPanel();\n\t\tcontentPane.setBorder(new EmptyBorder(5, 5, 5, 5));\n\t\tsetContentPane(contentPane);\n\t\tcontentPane.setLayout(null);\n\t\t\n\t\tJLabel lblRegistracija = new JLabel(\"Registracija !!!\");\n\t\tlblRegistracija.setFont(new Font(\"Tahoma\", Font.BOLD, 26));\n\t\tlblRegistracija.setBounds(189, 35, 306, 36);\n\t\tcontentPane.add(lblRegistracija);\n\t\t\n\t\ttfImePrezime = new JTextField();\n\t\ttfImePrezime.setBounds(425, 143, 153, 20);\n\t\tcontentPane.add(tfImePrezime);\n\t\ttfImePrezime.setColumns(10);\n\t\t\n\t\ttfUser = new JTextField();\n\t\ttfUser.setBounds(425, 207, 153, 20);\n\t\tcontentPane.add(tfUser);\n\t\ttfUser.setColumns(10);\n\t\t\n\t\ttfPass = new JTextField();\n\t\ttfPass.setBounds(425, 267, 153, 20);\n\t\tcontentPane.add(tfPass);\n\t\ttfPass.setColumns(10);\n\t\t\n\t\ttfTelefon = new JTextField();\n\t\ttfTelefon.setBounds(425, 382, 153, 20);\n\t\tcontentPane.add(tfTelefon);\n\t\ttfTelefon.setColumns(10);\n\t\tImage img2= new ImageIcon(this.getClass().getResource(\"/download.png\")).getImage();\n\t\t\n\t\tJLabel lblImePrezime = new JLabel(\"Ime i prezime :\");\n\t\tlblImePrezime.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tlblImePrezime.setBounds(273, 143, 89, 17);\n\t\tcontentPane.add(lblImePrezime);\n\t\t\n\t\tJLabel lblzvezda = new JLabel(\"*\");\n\t\tlblzvezda.setForeground(Color.RED);\n\t\tlblzvezda.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tlblzvezda.setBounds(396, 144, 19, 14);\n\t\tcontentPane.add(lblzvezda);\n\t\t\n\t\tJLabel label = new JLabel(\"*\");\n\t\tlabel.setForeground(Color.RED);\n\t\tlabel.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tlabel.setBounds(396, 208, 19, 14);\n\t\tcontentPane.add(label);\n\t\t\n\t\tJLabel label_1 = new JLabel(\"*\");\n\t\tlabel_1.setForeground(Color.RED);\n\t\tlabel_1.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tlabel_1.setBounds(396, 268, 19, 14);\n\t\tcontentPane.add(label_1);\n\t\t\n\t\tJLabel label_2 = new JLabel(\"*\");\n\t\tlabel_2.setForeground(Color.RED);\n\t\tlabel_2.setBackground(Color.WHITE);\n\t\tlabel_2.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tlabel_2.setBounds(396, 325, 19, 14);\n\t\tcontentPane.add(label_2);\n\t\t\n\t\tJLabel label_3 = new JLabel(\"*\");\n\t\tlabel_3.setForeground(Color.RED);\n\t\tlabel_3.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tlabel_3.setBounds(396, 383, 19, 14);\n\t\tcontentPane.add(label_3);\n\t\t\n\t\tJLabel lblUserName = new JLabel(\"Username : \");\n\t\tlblUserName.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tlblUserName.setBounds(273, 207, 89, 17);\n\t\tcontentPane.add(lblUserName);\n\t\t\n\t\tJLabel lblNewLabel = new JLabel(\"* Obavezna polja za unos ! \");\n\t\tlblNewLabel.setForeground(Color.RED);\n\t\tlblNewLabel.setFont(new Font(\"Tahoma\", Font.BOLD | Font.ITALIC, 14));\n\t\tlblNewLabel.setBounds(375, 523, 211, 23);\n\t\tcontentPane.add(lblNewLabel);\n\t\t\n\t\tJLabel lblPass = new JLabel(\"Password :\");\n\t\tlblPass.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tlblPass.setBounds(273, 267, 89, 17);\n\t\tcontentPane.add(lblPass);\n\t\t\n\t\tJLabel lblDate = new JLabel(\"Datum rodjenja : \");\n\t\tlblDate.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tlblDate.setBounds(273, 324, 113, 17);\n\t\tcontentPane.add(lblDate);\n\t\t\n\t\tJLabel lblNewLabel_2 = new JLabel(\"Telefon :\");\n\t\tlblNewLabel_2.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tlblNewLabel_2.setBounds(273, 382, 100, 17);\n\t\tcontentPane.add(lblNewLabel_2);\n\t\t\n\t\tJLabel lblImage = new JLabel(\"\");\n\t\tImage img3 = new ImageIcon(this.getClass().getResource(\"/admin.png\")).getImage();\n\t\tlblImage.setIcon(new ImageIcon(img3));\n\t\tlblImage.setBounds(38, 82, 170, 357);\n\t\tcontentPane.add(lblImage);\n\t\t\n\t\tJButton btnSacuvaj = new JButton(\"Sacuvaj\");\n\t\tbtnSacuvaj.setFont(new Font(\"Tahoma\", Font.BOLD, 14));\n\t\tImage img4 = new ImageIcon(this.getClass().getResource(\"/download.png\")).getImage();\n\t\tbtnSacuvaj.setIcon(new ImageIcon(img4));\n\t\tbtnSacuvaj.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\n\t\t\t\tDateFormat df= new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\t\t\t\n\t\t\t\t if(tfImePrezime.getText().length()==0) // Checking for empty field\n\t\t\t\t JOptionPane.showMessageDialog(null, \"NEKO POLJE JE OSTALO PRAZNO,POPUNITE GA ZA NASTAVAK !\");\n\t\t\t\t else if(tfUser.getText().length ()==0) // Checking for empty field\n\t\t\t\t JOptionPane.showMessageDialog(null, \"NEKO POLJE JE OSTALO PRAZNO,POPUNITE GA ZA NASTAVAK !\");\n\t\t\t\t else if(tfPass.getText().length()==0) // Checking for empty field\n\t\t\t\t JOptionPane.showMessageDialog(null, \"NEKO POLJE JE OSTALO PRAZNO,POPUNITE GA ZA NASTAVAK !\");\n\t\t\t\t else if(dcDatum.getDate() == null) // Checking for empty field\n\t\t\t\t JOptionPane.showMessageDialog(null, \"NEKO POLJE JE OSTALO PRAZNO,POPUNITE GA ZA NASTAVAK !\");\n\t\t\t\t else if(tfTelefon.getText().length ()==0) // Checking for empty field\n\t\t\t\t\t JOptionPane.showMessageDialog(null, \"NEKO POLJE JE OSTALO PRAZNO,POPUNITE GA ZA NASTAVAK !\");\n\t\t\t\t else{\n\t\t\t\ttry {\n\t\t\t\tString imePrezime = tfImePrezime.getText().toString();\n\t\t\t\tString userName = tfUser.getText().toString();\n\t\t\t\tString password = tfPass.getText().toString();\n\t\t\t\tString date =df.format(dcDatum.getDate());\n\t\t\t\tString telefon = tfTelefon.getText().toString();\n\t\t\t\t\n\t\t\t\tKontroler.getInstanca().upisiKorisnika(imePrezime,userName,password,date,telefon);\n\t\t\t\tJOptionPane.showMessageDialog(null,\"Uspesna registracija\");\n\t\t\t\t\n\t\t\t\t}catch(Exception e1) {\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnSacuvaj.setBounds(450, 451, 128, 23);\n\t\tcontentPane.add(btnSacuvaj);\n\t\t\n\t\tJButton btnNazad = new JButton(\"Nazad\");\n\t\tImage img5 = new ImageIcon(this.getClass().getResource(\"/nazad1.png\")).getImage();\n\t\tbtnNazad.setIcon(new ImageIcon(img5));\n\t\tbtnNazad.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\n\t\t\t\tLogovanje l = new Logovanje();\n\t\t\t\tl.setVisible(true);\n\t\t\t\tdispose();\n\t\t\t}\n\t\t});\n\t\tbtnNazad.setBounds(10, 11, 105, 23);\n\t\tcontentPane.add(btnNazad);\n\t\t\n\t\tdcDatum = new JDateChooser();\n\t\tdcDatum.setBounds(425, 319, 153, 20);\n\t\tcontentPane.add(dcDatum);\n\t\t\n\t\n\t\t\n\t}", "title": "" }, { "docid": "c3e58580f64d30468b4fd39e7757e2e8", "score": "0.5879992", "text": "public createclass() {\n initComponents();\n this.setLocationRelativeTo(null);\n getdata();\n }", "title": "" }, { "docid": "7e678f0d2a1bfe18c4eb8a00a20f62ee", "score": "0.5875015", "text": "private void callForm(boolean isIncome) {\n\t\t\n\t\t/* we load the form fxml*/\n\t\tFXMLLoader loader = new FXMLLoader(\n\t\t\t\tgetClass().getResource(\"/gui/view/formTransaction.fxml\"));\n\t\t\n\t\t/*Create a instance of the controller of bank account form*/\n\t\tController_formTransaction controller = new Controller_formTransaction(\n\t\t\t\tthis, isIncome, null);\n\t\t\n\t\t/*Sets the controller associated with the root object*/\n\t\tloader.setController(controller);\n\t\t\n\t\tpaneForm.setVisible(true);\n\t\tpaneForm.setMouseTransparent(false);\n\t\t\n\t\ttry {\n\t\t\t\n\t\t\tAnchorPane pane = loader.load();\n\t\t\tpaneForm.getChildren().add(pane);\n\t\t} catch (IOException e) {\n\t\t\t\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "title": "" }, { "docid": "c25a2c3bd717fc865867b07b1200cee4", "score": "0.58731616", "text": "public UserForm(){ }", "title": "" }, { "docid": "bae1bbcc3547e0290d0d4e25a7ea176a", "score": "0.5872133", "text": "@GetMapping(\"/userAddForm\")\n\tpublic String userAddForm(Model theModel) {\n\t\tUser theUser = new User();\n\t\ttheModel.addAttribute(\"user\", theUser);\n\t\treturn \"registration-form\";\n\t}", "title": "" }, { "docid": "88491ce8556acaf6f83d7572b9d5896e", "score": "0.5870379", "text": "public static void createUI (JTextField fName, JTextField lName, JTextField vDesc, JTextField cLoc,\r\n JTextField dLoc, JTextField pNum, JPanel panel) {\n panel.setLayout(new BoxLayout(panel, BoxLayout.Y_AXIS));\r\n panel.setAlignmentX(Component.LEFT_ALIGNMENT);\r\n panel.add(new JLabel(\"First Name:\"));\r\n panel.add(fName);\r\n panel.add(Box.createHorizontalStrut(15)); // a spacer\r\n panel.add(new JLabel(\"Last Name:\"));\r\n panel.add(lName);\r\n panel.add(new JLabel(\"Vehicle Description:\"));\r\n panel.add(vDesc);\r\n panel.add(new JLabel(\"Pick Up Location\"));\r\n panel.add(cLoc);\r\n panel.add(new JLabel(\"Drop Off Location\"));\r\n panel.add(dLoc);\r\n panel.add(new JLabel(\"Phone Number\"));\r\n panel.add(pNum);\r\n }", "title": "" }, { "docid": "cf213ae173fd499a0fc0190d7e883131", "score": "0.5869755", "text": "private void createInputBloodDonationForm( HttpServletRequest req, HttpServletResponse resp )\n throws ServletException, IOException {\n String path = req.getServletPath();\n req.setAttribute( \"path\", path );\n req.setAttribute( \"title\", path.substring( 1 ) );\n \n BloodDonationLogic logic = LogicFactory.getFor(\"BloodDonation\");\n req.setAttribute( \"bloodDonationColumnNames\", logic.getColumnNames().subList(1, logic.getColumnNames().size()));\n req.setAttribute( \"bloodDonationColumnCodes\", logic.getColumnCodes().subList(1, logic.getColumnCodes().size()));\n req.setAttribute(\"bloodGroupList\", Arrays.asList(BloodGroup.values()));\n req.setAttribute(\"rhdList\", Arrays.asList(RhesusFactor.values()));\n BloodBankLogic bloodBankLogic = LogicFactory.getFor(\"BloodBank\");\n List<String> bloodBankIDs = new ArrayList<>();\n bloodBankIDs.add(\"\");\n for (BloodBank bb : bloodBankLogic.getAll()) {\n bloodBankIDs.add(bb.getId().toString());\n }\n req.setAttribute( \"bloodBankIDs\", bloodBankIDs);\n req.setAttribute( \"request\", toStringMap( req.getParameterMap() ) );\n \n if (errorMessage != null && !errorMessage.isEmpty()) {\n req.setAttribute(\"errorMessage\", errorMessage);\n }\n //clear the error message if when reload the page\n errorMessage = \"\";\n \n req.getRequestDispatcher( \"/jsp/CreateRecord-BloodDonation.jsp\" ).forward( req, resp );\n }", "title": "" }, { "docid": "75c039e3ed980c8ccec4da3519e92549", "score": "0.5866001", "text": "public MainForm() {\n\t\tsuper(\"Hospital\", List.IMPLICIT);\n\n\t\tstartComponents();\n\t}", "title": "" }, { "docid": "6e3135d1bb0237a7c330373f7ffe6611", "score": "0.5865027", "text": "@RequestMapping(\"/book/new\")\n public String newBook(Model model){\n model.addAttribute(\"book\", new Book ());\n return \"bookform\";\n }", "title": "" }, { "docid": "5ef5d2c9d4bf6451a3990a09b0032f7f", "score": "0.58636135", "text": "private void initialize() {\n\t\tfrmAddForm = new JFrame();\n\t\tfrmAddForm.setTitle(\"Add Form\");\n\t\tfrmAddForm.setBounds(100, 100, 450, 300);\n\t\tfrmAddForm.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tfrmAddForm.getContentPane().setLayout(null);\n\t\t\n\t\tJLabel addFormTitle = new JLabel(\"Add Form\");\n\t\taddFormTitle.setFont(new Font(\"Tahoma\", Font.BOLD, 19));\n\t\taddFormTitle.setBounds(174, 10, 108, 23);\n\t\tfrmAddForm.getContentPane().add(addFormTitle);\n\t\t\n\t\tJLabel firstNameLabel = new JLabel(\"First Name:\");\n\t\tfirstNameLabel.setFont(new Font(\"Tahoma\", Font.BOLD, 12));\n\t\tfirstNameLabel.setBounds(10, 72, 76, 13);\n\t\tfrmAddForm.getContentPane().add(firstNameLabel);\n\t\t\n\t\tJLabel lastNameLabel = new JLabel(\"Last Name:\");\n\t\tlastNameLabel.setFont(new Font(\"Tahoma\", Font.BOLD, 12));\n\t\tlastNameLabel.setBounds(10, 120, 76, 13);\n\t\tfrmAddForm.getContentPane().add(lastNameLabel);\n\t\t\n\t\tJLabel ageLabel = new JLabel(\"Age:\");\n\t\tageLabel.setFont(new Font(\"Tahoma\", Font.BOLD, 12));\n\t\tageLabel.setBounds(10, 165, 76, 13);\n\t\tfrmAddForm.getContentPane().add(ageLabel);\n\t\t\n\t\tfirstNameText = new JTextField();\n\t\tfirstNameText.setToolTipText(\"Enter first name.\");\n\t\tfirstNameText.setBounds(146, 70, 96, 19);\n\t\tfrmAddForm.getContentPane().add(firstNameText);\n\t\tfirstNameText.setColumns(10);\n\t\t\n\t\tlastNameText = new JTextField();\n\t\tlastNameText.setToolTipText(\"Enter last name.\");\n\t\tlastNameText.setColumns(10);\n\t\tlastNameText.setBounds(146, 118, 96, 19);\n\t\tfrmAddForm.getContentPane().add(lastNameText);\n\t\t\n\t\tageText = new JTextField();\n\t\tageText.setToolTipText(\"Enter age.\");\n\t\tageText.setColumns(10);\n\t\tageText.setBounds(146, 163, 96, 19);\n\t\tfrmAddForm.getContentPane().add(ageText);\n\t\t\n\t\tJLabel statusLabel = new JLabel(\"\");\n\t\tstatusLabel.setFont(new Font(\"Tahoma\", Font.BOLD, 12));\n\t\tstatusLabel.setBounds(294, 121, 122, 23);\n\t\tfrmAddForm.getContentPane().add(statusLabel);\n\t\t\n\t\tJButton addButton = new JButton(\"Add\");\n\t\taddButton.setFont(new Font(\"Tahoma\", Font.BOLD, 12));\n\t\taddButton.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\t// holds the values from text fields later\n\t\t\t\t\tString firstName = \"\";\n\t\t\t\t\tString lastName = \"\";\n\t\t\t\t\tint age = 0;\n\t\t\t\t\t\n\t\t\t\t\tString user = \"root\";\n\t\t\t\t\tString password = \"\";\n\t\t\t\t\tConnection con = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/test\", user, password);\n\t\t\t\t\tStatement stmnt = con.createStatement();\n\t\t\t\t\t\n\t\t\t\t\t// get the values from text field\n\t\t\t\t\tfirstName = firstNameText.getText();\n\t\t\t\t\tlastName = lastNameText.getText();\n\t\t\t\t\tage = Integer.parseInt(ageText.getText());\n\t\t\t\t\t\n\t\t\t\t\tString sql = \"insert into test (firstName, lastName, age)\" + \n\t\t\t\t\t\"values (\" + \"'\" + firstName + \"',\" + \"'\" + lastName + \"',\" + \"'\" + age + \"')\"; \n\t\t\t\t\t\n\t\t\t\t\tif (stmnt.execute(sql) == false) {\n\t\t\t\t\t\t//System.out.println(\"Record added.\");\n\t\t\t\t\t\tString message = \"Record added.\";\n\t\t\t\t\t\tstatusLabel.setText(message);\n\t\t\t\t\t\tfirstNameText.setText(null);\n\t\t\t\t\t\tlastNameText.setText(null);\n\t\t\t\t\t\tageText.setText(null);\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\t//System.out.println(\"Recorded failed to add.\");\n\t\t\t\t\t\tString message = \"Failed to add record.\";\n\t\t\t\t\t\tstatusLabel.setText(message);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcatch (Exception a) {\n\t\t\t\t\ta.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\taddButton.setToolTipText(\"Add record to database.\");\n\t\taddButton.setBounds(157, 211, 85, 42);\n\t\tfrmAddForm.getContentPane().add(addButton);\n\t\t\n\t\tJButton backButton = new JButton(\"Back\");\n\t\tbackButton.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tfrmAddForm.setVisible(false);\n\t\t\t\tMenu menu = new Menu();\n\t\t\t\tmenu.run();\n\t\t\t}\n\t\t});\n\t\tbackButton.setBounds(0, 0, 85, 21);\n\t\tfrmAddForm.getContentPane().add(backButton);\n\t}", "title": "" }, { "docid": "37a5472d5b0f35cf64a077bc1dd978c4", "score": "0.5860484", "text": "public Form() {\n initComponents();\n }", "title": "" }, { "docid": "7ba2e64157441a6c4b3334d36351640f", "score": "0.5859238", "text": "@AutoGenerated\n\tprivate FormLayout buildFormLayout() {\n\t\tformLayout = new FormLayout();\n\t\tformLayout.setImmediate(false);\n\t\tformLayout.setWidth(\"400px\");\n\t\tformLayout.setHeight(\"-1px\");\n\t\tformLayout.setMargin(false);\n\t\tformLayout.setSpacing(true);\n\t\t\n\t\t// fieldArtist\n\t\tfieldArtist = new TextField();\n\t\tfieldArtist.setCaption(\"Artist\");\n\t\tfieldArtist.setImmediate(true);\n\t\tfieldArtist.setWidth(\"100.0%\");\n\t\tfieldArtist.setHeight(\"-1px\");\n\t\tformLayout.addComponent(fieldArtist);\n\t\t\n\t\t// fieldTitle\n\t\tfieldTitle = new TextField();\n\t\tfieldTitle.setCaption(\"Title\");\n\t\tfieldTitle.setImmediate(true);\n\t\tfieldTitle.setWidth(\"100.0%\");\n\t\tfieldTitle.setHeight(\"-1px\");\n\t\tformLayout.addComponent(fieldTitle);\n\t\t\n\t\treturn formLayout;\n\t}", "title": "" }, { "docid": "c5d28f29ffbe98e7995ba38f4ad071d5", "score": "0.58578277", "text": "public Formulario() {\n initComponents();\n }", "title": "" }, { "docid": "52a1ed5cd46d588a4d0acefe4cbd87e0", "score": "0.58577585", "text": "public FormUtama() {\n initComponents();\n }", "title": "" } ]